* alloc.c (mark_stack): Move local variables into the #ifdef region where
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5df8f01b
PE
12011-03-15 Paul Eggert <eggert@cs.ucla.edu>
2
e5aab7e7 3 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
ae35e756
PE
4 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
5 Rename locals to avoid shadowing.
dff45157
PE
6 (mark_stack): Move local variables into the #ifdef region where
7 they're used.
ae35e756 8
e5aab7e7
PE
9 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
10 avoids undefined behavior in theory.
11
4da60324
PE
12 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
13
88043301
PE
14 Use functions, not macros, for up- and down-casing (Bug#8254).
15 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
16 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
17 to use the following functions instead of these macros.
18 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
19 EMACS_INT, since callers assume the returned value fits in int.
20 (upcase1): Likewise, for UPCASE_TABLE.
21 (uppercasep, lowercasep, upcase): New static inline functions.
0da09c43 22 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
db69b0cd 23 the race-condition problem in the old DOWNCASE.
88043301 24
19ed5445
PE
25 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
26 Rename locals to avoid shadowing.
27 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
abbd1bcf
PE
28 (regex_compile, re_search_2, re_match_2_internal):
29 Remove unused local vars.
952db0d7
PE
30 (FREE_VAR): Rewrite so as not to use empty "else",
31 which gcc can warn about.
da053e48 32 (regex_compile, re_match_2_internal): Mark locals as initialized.
b313f9d8
PE
33 (RETALLOC_IF): Define only if needed.
34 (WORDCHAR_P): Likewise. This one is never needed, but is used
35 only in a comment talking about a compiler bug, so put inside
36 the #if 0 of that comment.
37 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
38 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
39 Remove; unused.
19ed5445 40
1f3561e4 41 * search.c (boyer_moore): Rename locals to avoid shadowing.
76ef09b7
PE
42 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
43 (PREV_CHAR_BOUNDARY): Likewise.
1f3561e4 44
ded6f8f7
PE
45 * search.c (simple_search): Remove unused var.
46
dbd37a95
PE
47 * dired.c (compile_pattern): Move decl from here ...
48 * lisp.h: ... to here, so that it can be checked.
49 (struct re_registers): New forward decl.
50
7e47afad
PE
51 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
52
85f24f61
PE
53 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
54 All uses changed.
55 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
56 Rename locals to avoid shadowing.
5671df8f 57 (Fvertical_motion): Mark locals as initialized.
85f24f61 58
181aa2be 59 * casefiddle.c (casify_object, casify_region): Now static.
e45a141a 60 (casify_region): Mark local as initialized.
181aa2be 61
930d429c
PE
62 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
63
7082eac6
PE
64 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
65 New macros, so that the caller can use some names other than
66 gcpro1, gcpro2, etc.
67 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
68 of the new macros.
69 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
70 argument, for consistency with GCPRO2_VAR, etc: it is now the
71 prefix of the variable, not the variable itself. All uses
72 changed.
38b2c076
PE
73 * dired.c (directory_files_internal, file_name_completion):
74 Rename locals to avoid shadowing.
75
15206ed9
PE
76 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
77 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
78 dired.c's scmp function, had undefined behavior.
79 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
80 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
81 * buffer.h: ... to here, because these macros use current_buffer,
82 and the new implementation with inline functions needs to have
83 current_buffer in scope now, rather than later when the macros
84 are used.
85 (downcase, upcase1): New static inline functions.
86 (DOWNCASE, UPCASE1): Reimplement using these functions.
87 This avoids undefined behavior in expressions like
88 DOWNCASE (x) == DOWNCASE (y), which previously suffered
89 from race conditions in accessing the global variables
90 case_temp1 and case_temp2.
91 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
92 * lisp.h (case_temp1, case_temp2): Remove their decls.
93 * character.h (ASCII_CHAR_P): Move from here ...
94 * lisp.h: ... to here, so that the inline functions mentioned
95 above can use them.
96
4a6bea26
PE
97 * dired.c (directory_files_internal_unwind): Now static.
98
f14b7e14
PE
99 * fileio.c (file_name_as_directory, directory_file_name):
100 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
101 Now static.
2893f146
PE
102 (file_name_as_directory): Use const pointers when appropriate.
103 (Fexpand_file_name): Likewise. In particular, newdir might
104 point at constant storage, so make it a const pointer.
fd4ead52 105 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
b14aac08
PE
106 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
107 signedness issues.
f839df0c
PE
108 (Fset_file_times, Finsert_file_contents, auto_save_error):
109 Rename locals to avoid shadowing.
f14b7e14 110
5716756e 111 * minibuf.c (choose_minibuf_frame_1): Now static.
62137a95
PE
112 (Ftry_completion, Fall_completions): Rename or remove locals
113 to avoid shadowing.
5716756e 114
b4c3046a
PE
115 * marker.c (bytepos_to_charpos): Remove; unused.
116
b45db522
PE
117 * lisp.h (verify_bytepos, count_markers): New decls,
118 so that gcc does not warn that these functions aren't declared.
119
85876d07
PE
120 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
121 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
f0cb4a60 122 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
40ef059e 123 (copy_text): Remove unused local var.
85876d07 124
03d78a21 125 * filelock.c (within_one_second): Now static.
b3dd38ab 126 (lock_file_1): Rename local to avoid shadowing.
03d78a21 127
5df8f01b
PE
128 * buffer.c (fix_overlays_before): Mark locals as initialized.
129 (fix_start_end_in_overlays): Likewise. This function should be
130 simplified by using pointers-to-pointers, but that's a different
131 matter.
132
59d6fe83
PE
1332011-03-14 Paul Eggert <eggert@cs.ucla.edu>
134
c3bd59b5 135 * buffer.c (switch_to_buffer_1): Now static.
8f54f30a
PE
136 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
137 (report_overlay_modification): Rename locals to avoid shadowing.
c3bd59b5 138
a70072c9 139 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
fbd02d7b 140 Fix pointer signedness issue.
edced198
PE
141 (sys_subshell): Mark local as volatile if checking for lint,
142 to suppress a gcc -Wclobbered warning that does not seem to be right.
15dfd3d9 143 (MAXPATHLEN): Define only if needed.
a70072c9 144
a0977c44
PE
145 * process.c (serial_open, serial_configure): Move decls from here ...
146 * systty.h: ... to here, so that they can be checked.
147
a884fdcc
PE
148 * fns.c (get_random, seed_random): Move extern decls from here ...
149 * lisp.h: ... to here, so that they can be checked.
150
604efe86 151 * sysdep.c (reset_io): Now static.
b8950c94 152 (wait_for_termination_signal): Remove; unused.
604efe86 153
38fc62d9
PE
154 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
155 (copy_keymap_item, append_key, push_text_char_description):
156 Now static.
1004a21a 157 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
dbbb8427 158 (DENSE_TABLE_SIZE): Remove; unused.
c1141155
PE
159 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
160 (describe_map_tree):
161 Rename locals to avoid shadowing.
38fc62d9 162
2f2650da
PE
163 * keyboard.c: Declare functions static if they are not used elsewhere.
164 (echo_char, echo_dash, cmd_error, top_level_2):
165 (poll_for_input, handle_async_input): Now static.
69a058fa
PE
166 (read_char, kbd_buffer_get_event, make_lispy_position):
167 (make_lispy_event, make_lispy_movement, apply_modifiers):
168 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
169 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
170 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
c8a06054 171 (read_key_sequence, read_char): Mark locals as initialized.
3ac94672 172 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
2f2650da 173
a053e86c 174 * keyboard.h (make_ctrl_char): New decl.
da2f2dd9
PE
175 (mark_kboards): Move decl here ...
176 * alloc.c (mark_kboards): ... from here.
a053e86c 177
4752793e
PE
178 * lisp.h (force_auto_save_soon): New decl.
179
74f10ca7 180 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
244fc23d
PE
181 (DEFINE_DUMMY_FUNCTION): New macro.
182 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
183 Use it.
c03cd23f
PE
184 (main): Add casts to avoid warnings
185 if GCC considers string literals to be constants.
74f10ca7 186
022e70d4
PE
187 * lisp.h (fatal_error_signal): Add decl, since it's exported.
188
59d6fe83
PE
189 * dbusbind.c: Pointer signedness fixes.
190 (xd_signature, xd_append_arg, xd_initialize):
191 (Fdbus_call_method, Fdbus_call_method_asynchronously):
192 (Fdbus_method_return_internal, Fdbus_method_error_internal):
193 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
194 (Fdbus_register_signal): Use SSDATA when the context wants char *.
195
78320123
PE
196 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
197 if GCC considers string literals to be constants.
49cebcca 198 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
78320123 199
cffc6f3b
CY
2002011-03-13 Chong Yidong <cyd@stupidchicken.com>
201
202 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
203 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
204 These macros can no longer be used for assignment.
205
206 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
207 struct members directly, instead of using BUF_BEGV etc.
208 (record_buffer_markers, fetch_buffer_markers): New functions for
209 recording and fetching special buffer markers.
210 (set_buffer_internal_1, set_buffer_temp): Use them.
211
212 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
213
214 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
215
216 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
217 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
218
219 * xdisp.c (hscroll_window_tree):
220 (reconsider_clip_changes): Use PT instead of BUF_PT.
221
d251f04b
EZ
2222011-03-13 Eli Zaretskii <eliz@gnu.org>
223
224 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
225 $(EMACS_ROOT)/lib/intprops.h.
226
f0c77cd1
PE
2272011-03-13 Paul Eggert <eggert@cs.ucla.edu>
228
3eca4629
PE
229 Fix more problems found by GCC 4.5.2's static checks.
230
7c86ee98
PE
231 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
232 to unsigned char * to avoid compiler diagnostic.
b0afc268
PE
233 (xg_free_frame_widgets): Make it clear that a local variable is
234 needed only if USE_GTK_TOOLTIP.
01e0b5ad
PE
235 (gdk_window_get_screen): Make it clear that this macro is needed
236 only if USE_GTK_TOOLTIP.
1e5524e7
PE
237 (int_gtk_range_get_value): New function, which avoids a diagnostic
238 from gcc -Wbad-function-cast.
239 (xg_set_toolkit_scroll_bar_thumb): Use it.
240 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
241 diagnostic from gcc -Wbad-function-cast.
65dc836c
PE
242 (get_utf8_string, xg_get_file_with_chooser):
243 Rename locals to avoid shadowing.
244 (create_dialog): Move locals to avoid shadowing.
7c86ee98 245
41729b81
PE
246 * xgselect.c (xg_select): Remove unused var.
247
f0c77cd1
PE
248 * image.c (four_corners_best): Mark locals as initialized.
249 (gif_load): Initialize transparent_p to zero (Bug#8238).
250 Mark another local as initialized.
ec6cf4c6 251 (my_png_error, my_error_exit): Mark with NO_RETURN.
f0c77cd1 252
ce0ad53d 253 * image.c (clear_image_cache): Now static.
d5d5a617 254 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
e22cffbc 255 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
77a765fd
PE
256 (x_edge_detection): Remove unnecessary cast that
257 gcc -Wbad-function-cast diagnoses.
2037898d 258 (gif_load): Fix pointer signedness.
6ae141d6
PE
259 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
260 (jpeg_load, gif_load): Rename locals to avoid shadowing.
ce0ad53d 261
3eca4629
PE
2622011-03-11 Paul Eggert <eggert@cs.ucla.edu>
263
d32df629
PE
264 Improve quality of tests for time stamp overflow.
265 For example, without this patch (encode-time 0 0 0 1 1
266 1152921504606846976) returns the obviously-bogus value (-948597
267 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
268 reports time overflow. See
269 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
b8d9bd41
PE
270 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
271 * editfns.c: Include limits.h and intprops.h.
272 (TIME_T_MIN, TIME_T_MAX): New macros.
273 (time_overflow): Move earlier, to before first use.
274 (hi_time, lo_time): New functions, for an accurate test for
275 out-of-range times.
276 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
277 (Fget_internal_run_time): Don't assume time_t fits in int.
278 (make_time): Use list2 instead of Fcons twice.
279 (Fdecode_time): More accurate test for out-of-range times.
280 (check_tm_member): New function.
281 (Fencode_time): Use it, to test for out-of-range times.
d32df629
PE
282 (lisp_time_argument): Don't rely on undefined left-shift and
283 right-shift behavior when checking for time stamp overflow.
8be6f318 284
fe31d94c
PE
285 * editfns.c (time_overflow): New function, refactoring common code.
286 (Fformat_time_string, Fdecode_time, Fencode_time):
287 (Fcurrent_time_string): Use it.
288
8be6f318
PE
289 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
290 * dired.c (make_time): Move to ...
291 * editfns.c (make_time): ... here.
292 * systime.h: Note the move.
293
09d9db2c 2942011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c47cbdfd 295
126bc0dc
YM
296 * fringe.c (update_window_fringes): Remove unused variables.
297
c47cbdfd
YM
298 * unexmacosx.c (copy_data_segment): Also copy __got section.
299 (Bug#8223)
300
7ac80be9
EZ
3012011-03-12 Eli Zaretskii <eliz@gnu.org>
302
058e5dad
EZ
303 * termcap.c [MSDOS]: Include "msdos.h.
304 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
305 Constify `char *' arguments and their references according to
306 prototypes in tparam.h.
307
ecb0f94d 308 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
058e5dad 309
7ac80be9
EZ
310 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
311 Adapt all references accordingly.
312
313 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
314
ef1fd07e
TT
3152011-03-11 Tom Tromey <tromey@redhat.com>
316
317 * buffer.c (syms_of_buffer): Remove obsolete comment.
318
7ef4b50c
EZ
3192011-03-11 Eli Zaretskii <eliz@gnu.org>
320
321 * termhooks.h (encode_terminal_code): Declare prototype.
322
323 * msdos.c (encode_terminal_code): Don't declare prototype.
324
325 * term.c (encode_terminal_code): Now external again, used by
326 w32console.c and msdos.c.
327
328 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
329 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
330
4b1ec863 3312011-03-11 Paul Eggert <eggert@cs.ucla.edu>
f78faa98 332
1714f52b 333 Fix some minor problems found by GCC 4.5.2's static checks.
83316bf4 334
4b1ec863
PE
335 * fringe.c (update_window_fringes): Mark locals as initialized
336 (Bug#8227).
337 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
bf60f616 338
524c7aa6
PE
339 * alloc.c (mark_fringe_data): Move decl from here ...
340 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
341 to check its interface.
342 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
343
a5c0af81 344 * fontset.c (free_realized_fontset): Now static.
7519b8cd 345 (Fset_fontset_font): Rename local to avoid shadowing.
cc6e5db1 346 (fontset_font): Mark local as initialized.
a9a06e0b 347 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
a5c0af81 348
b4716021
PE
349 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
350
811e9bac 351 * xselect.c (x_disown_buffer_selections): Remove; not used.
7b83e2f1 352 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
aa0daa9f
PE
353 (x_own_selection, Fx_disown_selection_internal): Rename locals
354 to avoid shadowing.
355 (x_handle_dnd_message): Remove local to avoid shadowing.
811e9bac 356
7e3ab302
PE
357 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
358 so that the caller can use some name other than gcpro1.
359 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
58d2d479
PE
360 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
361 (Fx_backspace_delete_keys_p):
362 Use them to avoid shadowing, and rename vars to avoid shadowing.
363 (x_decode_color, x_set_name, x_window): Now static.
6b437900 364 (Fx_create_frame): Add braces to silence GCC warning.
c0951e53 365 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
06b0c8a0
PE
366 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
367 Remove unused locals.
7e3ab302
PE
368 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
369 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
370 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
371 macros.
f78faa98 372
e2b13473
PE
373 * xterm.h (x_mouse_leave): New decl.
374
77f23912
PE
375 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
376 Remove unused functions.
cdf4ba58
PE
377 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
378 (x_calc_absolute_position): Now static.
7411c686 379 (XTread_socket): Don't define label "out" unless it's used.
2b07bcff 380 Don't declare local "event" unless it's used.
ed7bf3a5
PE
381 (x_iconify_frame, x_free_frame_resources): Don't declare locals
382 unless they are used.
38d0b34a
PE
383 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
384 (x_fatal_error_signal): Remove; not used.
a6067996
PE
385 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
386 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
387 (x_error_catcher, x_connection_closed, x_error_handler):
388 (x_error_quitter, xembed_send_message, x_iconify_frame):
389 (my_log_handler): Rename locals to avoid shadowing.
28f1c698 390 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
2a8fade0 391 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
77f23912 392
071048a3
PE
393 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
394 or move locals to avoid shadowing.
6b463e58 395 (tty_defined_color, merge_face_heights): Now static.
5967d051 396 (free_realized_faces_for_fontset): Remove; not used.
1e9966ea
PE
397 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
398 does not deduce is never used uninitialized.
73719eba
PE
399 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
400 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
071048a3 401
426994c3 402 * terminal.c (store_terminal_param): Now static.
5489860b 403
032f1620 404 * xmenu.c (menu_highlight_callback): Now static.
9d66f88e 405 (set_frame_menubar): Remove unused local.
d4323972 406 (xmenu_show): Rename parameter to avoid shadowing.
6d1f7fee
PE
407 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
408 since they might point to immutable storage.
281585b0
PE
409 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
410 since it's unused otherwise.
032f1620 411
367c19e5 412 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
53df7c11 413 Add a FIXME, since the code still doesn't look right. (Bug#8215)
9f36b9fd
PE
414 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
415 avoids a gcc -Wuninitialized diagnostic.
0e086e8f 416 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
44a3a108
PE
417 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
418 does not deduce are never used uninitialized.
70739cbe 419
07b48fa9
PE
420 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
421
8868a238 422 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
4554d213
PE
423 * window.c (window_loop, size_window):
424 (run_window_configuration_change_hook, enlarge_window): Likewise.
8868a238 425
7e5cf297 426 * window.c (display_buffer): Now static.
d6550a9f
PE
427 (size_window): Mark variables that gcc -Wuninitialized
428 does not deduce are never used uninitialized.
a586633d
PE
429 * window.h (check_all_windows): New decl, to forestall
430 gcc -Wmissing-prototypes diagnostic.
5b555da1 431 * dispextern.h (bidi_dump_cached_states): Likewise.
7e5cf297 432
f6095868
PE
433 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
434 shadowing.
435 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
726929c4
PE
436 Include <limits.h>.
437 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
438 and to avoid gcc -Wuninitialized warning.
89ef49df
PE
439 (load_charset_map): Mark variables that gcc -Wuninitialized
440 does not deduce are never used uninitialized.
53df7c11 441 (load_charset): Abort instead of using uninitialized var (Bug#8229).
f6095868 442
f38b440c
PE
443 * coding.c (coding_set_source, coding_set_destination):
444 Use "else { /* comment */ }" rather than "else /* comment */;"
445 for clarity, and to avoid gcc -Wempty-body warning.
2735d060
PE
446 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
447 a block, when the outer 'i' will do.
448 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
449 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
450 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
451 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
452 (Fdecode_sjis_char, Fdefine_coding_system_internal):
453 Rename locals to avoid shadowing.
454 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
e2f1bab9
PE
455 * coding.c (emacs_mule_char, encode_invocation_designation):
456 Now static, since they're not used elsewhere.
413bb2db 457 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
c4a63b12 458 (decode_coding_object, encode_coding_object, detect_coding_system):
ee05f961
PE
459 (decode_coding_emacs_mule): Mark variables that gcc
460 -Wuninitialized does not deduce are never used uninitialized.
160b01f6
PE
461 (detect_coding_iso_2022): Initialize a local variable that might
462 be used uninitialized. Leave a FIXME because it's not clear that
53df7c11 463 this initialization is needed. (Bug#8211)
5f58e762
PE
464 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
465 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
466 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
467 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
468 Remove unused macros.
f38b440c 469
232b38b9 470 * category.c (hash_get_category_set): Remove unused local var.
9f3b5e69 471 (copy_category_table): Now static, since it's not used elsewhere.
d0891610 472 * character.c (string_count_byte8): Likewise.
232b38b9 473
fb90da1b
PE
474 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
475 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
476
fb93dbc2
PE
477 * chartab.c (copy_sub_char_table): Now static, since it's not used
478 elsewhere.
5c156ace
PE
479 (sub_char_table_ref_and_range, char_table_ref_and_range):
480 Rename locals to avoid shadowing.
bbcd0949 481 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
fb93dbc2 482
7d3b3862 483 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
630d6892 484 (BIDI_BOB): Remove unused macro.
7d3b3862 485
6be7d3da
PE
486 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
487 deduce are never used uninitialized.
c2ed9c8b 488 * term.c (encode_terminal_code): Likewise.
6be7d3da 489
75f8807f 490 * term.c (encode_terminal_code): Now static. Remove unused local.
72abad34 491
50938595
PE
492 * tparam.h: New file.
493 * term.c, tparam.h: Include it.
494 * deps.mk (term.o, tparam.o): Depend on tparam.h.
495 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
496 Move these decls to tparam.h, and make them agree with what
497 is actually in tparam.c. The previous trick of using incompatible
498 decls in different modules does not conform to the C standard.
499 All callers of tparam changed to use tparam's actual API.
500 * tparam.c (tparam1, tparam, tgoto):
501 Use const pointers where appropriate.
502
fbceeba2
PE
503 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
504 * cm.h (struct cm): Likewise.
505 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
506 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
507 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
508 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
509 (turn_on_face, init_tty): Likewise.
510 * termchar.h (struct tty_display_info): Likewise.
fbceeba2 511
7f3f1250
PE
512 * term.c (term_mouse_position): Rename local to avoid shadowing.
513
e6ca6543
PE
514 * alloc.c (mark_ttys): Move decl from here ...
515 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
516
c40f8d15
AS
5172011-03-11 Andreas Schwab <schwab@linux-m68k.org>
518
519 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
520
cfe0661d
JB
5212011-03-09 Juanma Barranquero <lekktu@gmail.com>
522
523 * search.c (compile_pattern_1): Remove argument regp, unused since
524 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
525 (compile_pattern): Don't pass it.
526
0afb4571
J
5272011-03-08 Jan Djärv <jan.h.d@swipnet.se>
528
529 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
530 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
531 for ! HAVE_GTK3.
532 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
533
534 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
535
536 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
537 gdk_window_get_screen, gdk_window_get_geometry,
538 gdk_x11_window_lookup_for_display and GDK_KEY_g.
539 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
540 (xg_get_pixbuf_from_pixmap): New function.
541 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
542 to Pixmap, take frame as parameter, remove GdkColormap parameter.
543 Call xg_get_pixbuf_from_pixmap instead of
544 gdk_pixbuf_get_from_drawable.
545 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
546 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
547 (xg_check_special_colors): Use GtkStyleContext and its functions
548 for HAVE_GTK3.
549 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
550 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
551 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
552 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
553 gtk_widget_get_preferred_size.
554 (xg_frame_resized): gdk_window_get_geometry only takes 5
555 parameters.
556 (xg_win_to_widget, xg_event_is_for_menubar): Call
557 gdk_x11_window_lookup_for_display.
558 (xg_set_widget_bg): New function.
559 (delete_cb): New function.
560 (xg_create_frame_widgets): connect delete-event to delete_cb.
561 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
562 (xg_set_background_color): Call xg_set_widget_bg.
563 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
564 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
565 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
566 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
567 if ! HAVE_GTK3.
568 (update_frame_tool_bar): Call gtk_widget_hide.
569 (xg_initialize): Use GDK_KEY_g.
570
571 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
572 if ! HAVE_GTK3
573 (x_session_initialize): Call gdk_x11_set_sm_client_id.
574
575 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
576 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
577 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
578
1c2cc4ef
JB
5792011-03-08 Juanma Barranquero <lekktu@gmail.com>
580
581 * w32xfns.c (select_palette): Check success of RealizePalette against
582 GDI_ERROR, not zero.
583
7faeca66
BK
5842011-03-07 Ben Key <bkey76@gmail.com>
585
586 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
587 (file_dialog_callback): Fix locating the window handle of the File Name
588 text field. After disabling it, set focus on the list control.
589 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
590 Name text field to "Current Directory" if it does not already have
cfe0661d 591 another value. (Bug#8181)
7faeca66 592
cf715c3c
AR
5932011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
594
595 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
596 parameter for hbar cursors. Based on a patch by Ben Key
597 <bkey76@gmail.com>.
598
ef272f1f
CY
5992011-03-06 Chong Yidong <cyd@stupidchicken.com>
600
601 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
602 change.
603
5489860b
PE
6042011-03-06 Paul Eggert <eggert@cs.ucla.edu>
605
5f349a89
PE
606 current_column: Now returns EMACS_INT, fixing some iftc
607 that was introduced in the 2002-06-02 change "temporarily"; see
608 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
7831777b
PE
609 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
610 * cmds.c (internal_self_insert): Likewise.
611 * indent.c (Fcurrent_column): Likewise.
612 * keymap.c (describe_command): Likewise.
613 * minibuf.c (read_minibuf): Likewise.
614 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
615 to int.
616 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
617 Likewise.
618 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
619 not int or double, if they might contain a column number.
620 * indent.c (current_column, Findent_to, indented_beyond_p):
621 (compute_motion, vmotion): Likewise.
622 * keymap.c (describe_command): Likewise.
623 * xdisp.c (pint2str): Likewise.
624 * indent.c (last_known_column): Now EMACS_INT, not int.
625 * minibuf.c (minibuf_prompt_width): Likewise.
626 * indent.c (current_column, current_column_1, position_indentation):
627 Return EMACS_INT, not double.
628 * lisp.h (current_column): Likewise.
629 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
630 All callers changed.
631 * lisp.h (indented_beyond_p): Likewise.
632
e9588e2e
PE
633 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
634 from xdisp.c, and make static, since these are used only here.
635 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
636 Remove decls.
637
1e12733b 638 * cmds.c (internal_self_insert): Reindent to match Emacs style.
179b8720 639 * xdisp.c (redisplay_window): Likewise.
1e12733b 640
5489860b
PE
641 * xdisp.c: Rename or move local decls to avoid shadowing.
642 (init_iterator, handle_fontified_prop, handle_single_display_spec):
643 (message_dolog, message_with_string, redisplay_internal):
644 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
645 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
646 (display_line, display_string, rows_from_pos_range):
647 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
648 Rename or move local decls.
7b781e9f 649 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
841081e1
PE
650 (produce_glyphless_glyph): Make a pointer "const"
651 since it might point to immutable storage.
cfe0661d 652 (update_window_cursor): Now static, since it's not used elsewhere.
acbfe54c 653 (SKIP_GLYPHS): Removed unused macro.
5489860b 654
aa248733
MS
6552011-03-06 Michael Shields <shields@msrl.com> (tiny change)
656
657 * window.c (Fnext_window): Doc fix. (Bug#5567)
658
04cb6840
CY
6592011-03-05 Chong Yidong <cyd@stupidchicken.com>
660
661 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
662
22c28cb8 6632011-03-02 Ken Brown <kbrown@cornell.edu>
5aef9e9a
KB
664
665 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
666
6c0dea8a
PE
6672011-03-02 Paul Eggert <eggert@cs.ucla.edu>
668
669 Work around some portability problems with symlinks.
670
671 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
672 generate a special message for it. Suggested by Eli Zaretskii in
673 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
674 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
675 Simplify the code by assuming that the readlink and symlink calls
676 exist, even if they always fail on this host.
677 (Ffile_readable_p): Likewise, for fifos.
678 * config.in: Regenerate.
679
52eb77a6
CY
6802011-02-27 Chong Yidong <cyd@stupidchicken.com>
681
682 * frame.c (store_frame_param): Don't store value directly in
683 buffer_list and buried_buffer_list; copy the list and remove dead
684 buffers (Bug#7898).
685
0f7bb05d
EZ
6862011-02-27 Eli Zaretskii <eliz@gnu.org>
687
40be44e2
EZ
688 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
689
01c35094 690 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
40be44e2 691
0f7bb05d
EZ
692 * w32.c (symlink, readlink): New stub functions.
693
27786b2f
PE
6942011-02-27 Paul Eggert <eggert@cs.ucla.edu>
695
c783d15b
PE
696 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
697 This avoids a gcc warning in some configurations.
698
76c1cebc
PE
699 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
700
0ff162fc
PE
701 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
702 (set_menu_bar_lines, x_get_resource_string): New decls.
703 * msdos.c (set_menu_bar_lines): Omit decl.
704
fdb0b28b
PE
705 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
706 It's always given int values and used as an int. This suppresses
707 a gcc "comparison of unsigned expression >= 0" warning in some
708 configurations.
709
27786b2f
PE
710 * dispnew.c: Rename locals to avoid shadowing.
711 (update_text_area, scrolling_window, update_frame_1): Rename locals.
712
09ad5a91
PE
7132011-02-26 Paul Eggert <eggert@cs.ucla.edu>
714
715 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
716 (copy_glyph_row_contents): Remove; not used.
717 (frame_row_to_window, check_current_matrix_flags):
718 (window_change_signal): Now static, since they're not used elsewhere.
719 (check_current_matrix_flags): Surround with "#if 0", since its
720 only use is in a comment. Maybe both the comment and the "#if 0"
721 stuff should be removed?
722
d2d37ddc
PE
723 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
724 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
725 contexts that actually need it.
726
003fa8b6
EZ
7272011-02-26 Eli Zaretskii <eliz@gnu.org>
728
729 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
730 (lstat): Define for DJGPP < 2.04.
731
b1894766
PE
7322011-02-25 Paul Eggert <eggert@cs.ucla.edu>
733
734 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
735 as per recent filemodestring API change. Reported by Jonas Öster in
736 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
737
e18c0aa3 7382011-02-23 Ben Key <bkey76@gmail.com>
2c6584e8
BK
739
740 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
741 directly, for bar cursors.
742
7432011-02-23 Chong Yidong <cyd@stupidchicken.com>
744
745 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
746 into the frame's cursor_width.
747
617a0e83
SM
7482011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
749
750 * print.c (print_object): Never print old-style backquotes.
751 Obey escapeflag for hash tables as well.
752
cce7d530 7532011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
754
755 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 756 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 757
8d40723d
PE
7582011-02-22 Paul Eggert <eggert@cs.ucla.edu>
759
760 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
761
aa0f73d1
WJ
7622011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
763
764 * lread.c (openp): Correct Boolean typo in last commit.
765
bdaa0745
AR
7662011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
767
768 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 769 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 770
f68c809d
PE
7712011-02-22 Paul Eggert <eggert@cs.ucla.edu>
772
773 Assume S_ISLNK etc. work, since gnulib supports this.
774 * config.in: Regenerate.
775 * dired.c (lstat): Remove.
776 (file_name_completion): Assume S_ISDIR works.
777 (file_name_completion_stat): Assume S_ISLNK works.
778 Do not bother calling stat unless lstat says it's a symlink.
779 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
780 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
781 (check_writable, Ffile_writable_p, Fset_file_times):
782 Assume S_ISDIR works.
783 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
784 fifos exist.
2f8f196d 785 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
786 * filelock.c (S_ISLNK): Remove.
787 * lread.c (openp): Assume S_ISDIR works.
788 * xrdb.c (S_ISDIR): Remove.
789
25c51af3
EZ
7902011-02-21 Eli Zaretskii <eliz@gnu.org>
791
792 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 793 lib/makefile.w32-in.
25c51af3
EZ
794 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
795 (GLOBAL_SOURCES): Remove filemode.c.
796 (OBJ1): Remove $(BLD)/filemode.$(O).
797
5c185672
PE
7982011-02-21 Paul Eggert <eggert@cs.ucla.edu>
799
800 Import filemode module from gnulib.
801 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
802 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
803 (filemode.o): Remove; this is now in ../lib.
804 * dired.c: Include <filemode.h>.
805 (filemodestring): Remove now-redundant decl.
806 * config.in: Regenerate.
807
32159fc3
CS
8082011-02-20 Eli Zaretskii <eliz@gnu.org>
809
810 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
811 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
812
2f8f196d 8132011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
814
815 * makefile.w32-in: Remove md5.$(O).
816 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
817 lib/makefile.w32-in.
818
61353ac8 8192011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 820
61353ac8
PE
821 Import crypto/md5 and stdint modules from gnulib.
822 * Makefile.in (base_obj): Remove md5.o, since this file
823 is in lib now.
824 * config.in: Regenerate.
825 * md5.h, md5.h: Move to ../lib.
826 * deps.mk (md5.o): Remove.
827 (fns.o): Depend on ../lib/md5.h, not md5.h.
828
9d9d12cd
EZ
8292011-02-19 Eli Zaretskii <eliz@gnu.org>
830
f601db19
EZ
831 * termcap.c (tputs): Don't declare baud_rate.
832
9d9d12cd
EZ
833 * s/msdos.h (strtold): Define to _strtold.
834
aa56f361
SM
8352011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
836
cbe81f1d
SM
837 * process.c (Fstart_process, Fmake_serial_process)
838 (Fmake_network_process, server_accept_connection):
839 Use empty_unibyte_string.
840
841 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
842
aa56f361
SM
843 * lread.c (Qdir_ok): New constant.
844 (syms_of_lread): Initialize it.
845 (openp): Don't ignore directories if the predicate returns dir-ok.
846
d6de49a1
EZ
8472011-02-18 Eli Zaretskii <eliz@gnu.org>
848
42af913d
EZ
849 * xdisp.c (display_line): Fix the change made for bug#7939.
850
d6de49a1
EZ
851 * terminal.c (create_terminal): Use default-keyboard-coding-system
852 and default-terminal-coding-system to initialize coding systems of
853 the new terminal. (Bug#7840)
854
b286858c
SM
8552011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
856
857 * lisp.h (BYTE_MARK_STACK): New macro.
858 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
859
860 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
861 (struct byte_stack): Only define `top' and `bottom' if used.
862 (mark_byte_stack): Only define if used.
863 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
864 is not set.
865 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
866
867 * term.c (OUTPUT_IF): Use OUTPUT.
868
869 * alloc.c (Fgarbage_collect): When using stack scanning, don't
870 redundantly scan byte-code stacks, catchlist, and handlerlist.
871
124c9ff0
JD
8722011-02-17 Jan Djärv <jan.h.d@swipnet.se>
873
874 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
875 (Fns_read_file_name): Replace B_ with BVAR.
876
877 * nsterm.m (ns_term_init): Use KVAR.
878
05c65251
EZ
8792011-02-16 Eli Zaretskii <eliz@gnu.org>
880
026d69ec
EZ
881 * msdos.c (internal_terminal_init): Use KVAR.
882
05c65251
EZ
883 * w32fns.c (Fx_create_frame): Use KVAR.
884
885 * w32term.c (w32_create_terminal): Use KVAR.
886
887 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 888 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
889
890 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
891
b286858c
SM
892 * fileio.c (Finsert_file_contents, Fwrite_region):
893 Remove references to buffer_file_type.
05c65251
EZ
894 (syms_of_fileio): Don't intern and staticpro
895 find-buffer-file-type.
896
897 * callproc.c (syms_of_callproc): Remove references to
898 buffer_file_type.
899
900 * buffer.c (reset_buffer_local_variables): Don't set
901 buffer_file_type.
902 (init_buffer_once): Likewise.
903 (syms_of_buffer): Don't define buffer-file-type.
904
905 * buffer.h (struct buffer): Remove buffer_file_type.
906
1344aad4
TT
9072011-02-16 Tom Tromey <tromey@parfait>
908
15f58304
EZ
909 * callint.c (Fcall_interactively): Update for change to field names.
910 * doc.c (Fsubstitute_command_keys): Update for change to field names.
911 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 912 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 913 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
914 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
915 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 916 Update for change to field names.
1344aad4
TT
917 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
918 (echo_length, echo_truncate, cmd_error, command_loop_1)
919 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
920 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
921 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
922 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
923 Update for change to field names.
924 * xfns.c (Fx_create_frame): Update for change to field names.
925 * xterm.c (x_connection_closed, x_term_init): Update for change to
926 field names.
1344aad4 927 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 928 Update for change to field names.
1344aad4 929 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 930 Update for change to field names.
1344aad4 931 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 932 (delete_frame): Update for change to field names.
1344aad4
TT
933 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
934 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
935 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
936
eb4916d7
TT
9372011-02-16 Tom Tromey <tromey@redhat.com>
938
939 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
940
4b4deea2
TT
9412011-02-16 Tom Tromey <tromey@parfait>
942
943 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
944 * xfaces.c (compute_char_face): Replace B_ with BVAR.
945 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
946 (message_dolog, update_echo_area, ensure_echo_area_buffers)
947 (with_echo_area_buffer, setup_echo_area_for_printing)
948 (set_message_1, update_menu_bar, update_tool_bar)
949 (text_outside_line_unchanged_p, redisplay_internal)
950 (try_scrolling, try_cursor_movement, redisplay_window)
951 (try_window_reusing_current_matrix, row_containing_pos)
952 (try_window_id, get_overlay_arrow_glyph_row, display_line)
953 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
954 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
955 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
956 BVAR.
957 * window.c (window_display_table, unshow_buffer, window_loop)
958 (window_min_size_2, set_window_buffer, Fset_window_buffer)
959 (select_window, Fforce_window_update, temp_output_buffer_show)
960 (Fset_window_configuration, save_window_save): Replace B_ with
961 BVAR.
962 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
963 Replace B_ with BVAR.
964 * undo.c (record_point, record_insert, record_delete)
965 (record_marker_adjustment, record_first_change)
966 (record_property_change, Fundo_boundary, truncate_undo_list)
967 (Fprimitive_undo): Replace B_ with BVAR.
968 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
969 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
970 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
971 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
972 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
973 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
974 (string_match_1, fast_looking_at, newline_cache_on_off)
975 (search_command, search_buffer, simple_search, boyer_moore)
976 (Freplace_match): Replace B_ with BVAR.
977 * process.c (get_process, list_processes_1, Fstart_process)
978 (Fmake_serial_process, Fmake_network_process)
979 (read_process_output, send_process, exec_sentinel)
980 (status_notify, setup_process_coding_systems): Replace B_ with
981 BVAR.
982 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
983 (strout, print_string, temp_output_buffer_setup, print_object):
984 Replace B_ with BVAR.
985 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
986 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
987 Replace B_ with BVAR.
4b4deea2
TT
988 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
989 (set_marker_both, set_marker_restricted_both, unchain_marker):
990 Replace B_ with BVAR.
991 * lread.c (readchar, unreadchar, openp, readevalloop)
992 (Feval_buffer, Feval_region): Replace B_ with BVAR.
993 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
994 * keymap.c (Flocal_key_binding, Fuse_local_map)
995 (Fcurrent_local_map, push_key_description)
996 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
997 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
998 (read_key_sequence): Replace B_ with BVAR.
999 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1000 * intervals.c (set_point_both, get_local_map): Replace B_ with
1001 BVAR.
1002 * insdel.c (check_markers, insert_char, insert_1_both)
1003 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1004 (adjust_after_replace, replace_range, del_range_2)
1005 (modify_region, prepare_to_modify_buffer)
1006 (Fcombine_after_change_execute): Replace B_ with BVAR.
1007 * indent.c (buffer_display_table, recompute_width_table)
1008 (width_run_cache_on_off, current_column, scan_for_column)
1009 (Findent_to, position_indentation, compute_motion, vmotion):
1010 Replace B_ with BVAR.
1011 * fringe.c (get_logical_cursor_bitmap)
1012 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1013 with BVAR.
1014 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1015 * font.c (font_at): Replace B_ with BVAR.
1016 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1017 Replace B_ with BVAR.
1018 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1019 (unlock_buffer): Replace B_ with BVAR.
1020 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1021 (Ffile_regular_p, Ffile_selinux_context)
1022 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1023 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1024 (Finsert_file_contents, choose_write_coding_system)
1025 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1026 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1027 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1028 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1029 (save_excursion_restore, Fprevious_char, Fchar_before)
1030 (general_insert_function, Finsert_char, Finsert_byte)
1031 (make_buffer_string_both, Finsert_buffer_substring)
1032 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1033 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1034 (Ftranslate_region_internal, save_restriction_restore)
1035 (Fchar_equal): Replace B_ with BVAR.
1036 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1037 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1038 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1039 * dired.c (directory_files_internal): Replace B_ with BVAR.
1040 * data.c (swap_in_symval_forwarding, set_internal)
1041 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1042 Replace B_ with BVAR.
1043 * composite.c (fill_gstring_header)
1044 (composition_compute_stop_pos, composition_adjust_point)
1045 (Ffind_composition_internal): Replace B_ with BVAR.
1046 * coding.c (decode_coding, encode_coding)
1047 (make_conversion_work_buffer, decode_coding_gap)
1048 (decode_coding_object, encode_coding_object)
1049 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1050 (Funencodable_char_position, Fcheck_coding_systems_region):
1051 Replace B_ with BVAR.
1052 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1053 with BVAR.
1054 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1055 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1056 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1057 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1058 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1059 * category.c (check_category_table, Fcategory_table)
1060 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1061 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1062 BVAR.
1063 * casefiddle.c (casify_object, casify_region): Replace B_ with
1064 BVAR.
1065 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1066 with BVAR.
1067 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1068 BVAR.
1069 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1070 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1071 with BVAR.
1072 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1073 (get_truename_buffer, Fget_buffer_create)
1074 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1075 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1076 (Fbuffer_local_value, buffer_lisp_local_variables)
1077 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1078 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1079 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1080 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1081 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1082 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1083 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1084 (record_overlay_string, overlay_strings, init_buffer_once)
1085 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1086
8678d9e4 10872011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
1088
1089 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1090 window is changed inside calls to do_pending_window_change.
1091 (Bug#8020)
1092
1f5d53eb
PE
10932011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1094
1095 Remove no-longer needed getloadavg symbols.
1096 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1097 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1098 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1099 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1100 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1101 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1102 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1103 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1104 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1105 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1106 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1107 (LDAV_SYMBOL): Remove.
1108 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1109 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1110
1111 Import getloadavg module from gnulib.
1112 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1113 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1114 now does this.
1115 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1116 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1117 * config.in: Regenerate.
1118
8017fd6b
EZ
11192011-02-15 Eli Zaretskii <eliz@gnu.org>
1120
1121 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1122
75b43359
MWD
11232011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1124
1125 * print.c (float_to_string): Ensure that a decimal point is
1126 printed if using dtoastr (Bug#8033).
1127
fc3ca113
EZ
11282011-02-14 Eli Zaretskii <eliz@gnu.org>
1129
1f5d53eb 1130 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
1131 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1132
fc3ca113
EZ
1133 * dired.c (directory_files_internal):
1134 * fileio.c (Finsert_file_contents):
1135 * insdel.c (prepare_to_modify_buffer):
1136 * xdisp.c (pos_visible_p):
1137 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1138 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1139 Use B_ for the MS-Windows build.
1140
3928f2b6
JD
11412011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1142
1143 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1144 resource that specifies helvetica for menus and dialogs.
1145
1146 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1147 (apply_systemfont_to_menu): Set resources *menubar*font and
1148 *popup*font. Remove defflt.
b286858c
SM
1149 (set_frame_menubar, create_and_show_popup_menu):
1150 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 1151
4bb81cc2
TT
11522011-02-14 Tom Tromey <tromey@redhat.com>
1153
fc3ca113
EZ
1154 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1155
4bb81cc2
TT
1156 * keyboard.h: Remove obsolete comment.
1157
5d8ea120
TT
11582011-02-14 Tom Tromey <tromey@parfait>
1159
1160 * composite.c (fill_gstring_header)
1161 (composition_compute_stop_pos, composition_adjust_point)
1162 (Ffind_composition_internal): Use B_.
1163 * intervals.c (set_point_both, get_local_map): Use B_.
1164 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1165 * process.c (get_process, list_processes_1, Fstart_process)
1166 (Fmake_serial_process, Fmake_network_process)
1167 (read_process_output, send_process, exec_sentinel)
1168 (status_notify, setup_process_coding_systems): Use B_.
1169 * bytecode.c (Fbyte_code): Use B_.
1170 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1171 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1172 (skip_syntaxes, scan_lists): Use B_.
1173 * lread.c (readchar, unreadchar, openp, readevalloop)
1174 (Feval_buffer, Feval_region): Use B_.
1175 * print.c (printchar, strout, print_string, PRINTDECLARE)
1176 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1177 (print_object): Use B_.
1178 * font.c (font_at): Use B_.
b286858c
SM
1179 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1180 Use B_.
5d8ea120
TT
1181 * callint.c (check_mark, Fcall_interactively): Use B_.
1182 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1183 (save_excursion_restore, Fprevious_char, Fchar_before)
1184 (general_insert_function, Finsert_char, Finsert_byte)
1185 (make_buffer_string_both, Finsert_buffer_substring)
1186 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1187 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1188 (Ftranslate_region_internal, save_restriction_restore)
1189 (Fchar_equal): Use B_.
1190 * data.c (swap_in_symval_forwarding, set_internal)
1191 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1192 Use B_.
1193 * undo.c (record_point, record_insert, record_delete)
1194 (record_marker_adjustment, record_first_change)
1195 (record_property_change, Fundo_boundary, truncate_undo_list)
1196 (Fprimitive_undo): Use B_.
1197 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1198 (string_match_1, fast_looking_at, newline_cache_on_off)
1199 (search_command, search_buffer, simple_search, boyer_moore)
1200 (Freplace_match): Use B_.
1201 * indent.c (buffer_display_table, recompute_width_table)
1202 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
1203 (Findent_to, position_indentation, compute_motion, vmotion):
1204 Use B_.
5d8ea120
TT
1205 * casefiddle.c (casify_object, casify_region): Use B_.
1206 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1207 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1208 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1209 (Ffile_regular_p, Ffile_selinux_context)
1210 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1211 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1212 (Finsert_file_contents, choose_write_coding_system)
1213 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1214 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1215 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1216 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1217 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
1218 (set_marker_both, set_marker_restricted_both, unchain_marker):
1219 Use B_.
5d8ea120
TT
1220 * insdel.c (check_markers, insert_char, insert_1_both)
1221 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1222 (adjust_after_replace, replace_range, del_range_2)
1223 (modify_region, prepare_to_modify_buffer)
1224 (Fcombine_after_change_execute): Use B_.
1225 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1226 (unlock_buffer): Use B_.
1227 * keymap.c (Flocal_key_binding, Fuse_local_map)
1228 (Fcurrent_local_map, push_key_description)
1229 (Fdescribe_buffer_bindings): Use B_.
1230 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1231 (read_key_sequence): Use B_.
1232 * fringe.c (get_logical_cursor_bitmap)
1233 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1234 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1235 * xfaces.c (compute_char_face): Use B_.
1236 * character.c (chars_in_text, Fget_byte): Use B_.
1237 * category.c (check_category_table, Fcategory_table)
1238 (Fset_category_table, char_category_set): Use B_.
1239 * coding.c (decode_coding, encode_coding)
1240 (make_conversion_work_buffer, decode_coding_gap)
1241 (decode_coding_object, encode_coding_object)
1242 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
1243 (Funencodable_char_position, Fcheck_coding_systems_region):
1244 Use B_.
5d8ea120
TT
1245 * charset.c (Ffind_charset_region): Use B_.
1246 * window.c (window_display_table, unshow_buffer, window_loop)
1247 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1248 (select_window, Fforce_window_update, temp_output_buffer_show)
1249 (Fset_window_configuration, save_window_save): Use B_.
1250 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1251 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1252 (with_echo_area_buffer, setup_echo_area_for_printing)
1253 (set_message_1, update_menu_bar, update_tool_bar)
1254 (text_outside_line_unchanged_p, redisplay_internal)
1255 (try_scrolling, try_cursor_movement, redisplay_window)
1256 (try_window_reusing_current_matrix, row_containing_pos)
1257 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1258 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1259 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1260 (get_window_cursor_type, note_mouse_highlight): Use B_.
1261 * frame.c (make_frame_visible_1): Use B_.
1262 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1263 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1264 (WINDOW_WANTS_MODELINE_P): Use B_.
1265 * syntax.h (Vstandard_syntax_table): Update.
1266 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1267 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1268 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1269 * character.h (FETCH_CHAR_ADVANCE): Update.
1270 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1271 * category.h (Vstandard_category_table): Update.
1272 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1273 names.
1274 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1275 * buffer.c (swapfield_): New macro.
1276 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1277 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1278 (Fget_buffer_create, clone_per_buffer_values)
1279 (Fmake_indirect_buffer, reset_buffer)
1280 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1281 (Fbuffer_local_value, buffer_lisp_local_variables)
1282 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1283 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1284 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1285 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1286 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1287 (Fbuffer_swap_text, Fset_buffer_multibyte)
1288 (swap_out_buffer_local_variables, record_overlay_string)
1289 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1290 Use B_.
1291 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1292 (BUFFER_INTERNAL_FIELD, B_): New macro.
1293 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1294
42f60557
JD
12952011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1296
1297 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1298 is null.
1299
2f9a22e2
J
13002011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1301
1302 * callproc.c (Fcall_process):
1303 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1304 comment.
1305
84eb0351 13062011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
1307
1308 * window.c (select_window): Check inhibit_point_swap argument when
1309 deciding whether to return immediately.
1310
84eb0351 13112011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
1312
1313 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1314 zero (Bug#7348).
1315
84eb0351
CY
13162011-02-12 Chong Yidong <cyd@stupidchicken.com>
1317
1318 * config.in (TERMINFO): New definition.
1319
1320 * s/netbsd.h: Use it to choose between terminfo and termcap
1321 (Bug#7642).
1322
33d605d0
PE
13232011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1324
1325 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1326 The difference doesn't matter here, in practice, and sizeof is
1327 more portable to non-GCC compilers. Also, this makes the code
1328 match the already-existing comment.
1329
c0ad4ea5
AS
13302011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1331
1332 * process.c (create_process): Reset SIGPIPE handler in the child.
1333 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1334
50fd938f
EZ
13352011-02-12 Eli Zaretskii <eliz@gnu.org>
1336
1337 * xdisp.c <this_line_min_pos>: New variable.
1338 (move_it_in_display_line_to): Record in this_line_min_pos the
1339 smallest position iterated across.
1340 (display_line): Use this_line_min_pos to record the smallest
1341 position in the line even if it is not displayed due to
1342 hscrolling. (Bug#7939)
1343
af59aa6e
PE
13442011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1345
cec81b22
PE
1346 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1347 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1348 (struct md5_ctx): Use it.
1349
af59aa6e
PE
1350 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1351 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1352 defined.
1353 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1354 FC_HINT_STYLE is supported.
1355
02c3706c
JD
13562011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1357
1358 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1359 Make sure we don't do x_catch_errors twice.
1360
5ac75e8f
GM
13612011-02-10 Glenn Morris <rgm@gnu.org>
1362
1363 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1364
d37f40ed
EZ
13652011-02-09 Eli Zaretskii <eliz@gnu.org>
1366
5ac75e8f
GM
1367 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1368 New macros.
d37f40ed
EZ
1369 (globals.h, gl-stamp): New targets.
1370 (clean): Clean gl-stamp and globals.h.
1371
33cd3ee4
AS
13722011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1373
1374 * Makefile.in (gl-stamp): Create globals.h here.
1375 (globals.h): Don't do it here.
1376 (mostlyclean): Clean globals.h and gl-stamp.
1377
f9f2e7f5
PE
13782011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1379
1380 * Makefile.in ($(otherobj)): Depend on globals.h.
1381 Otherwise 'make -j10' failed on my host, because the build lacked
1382 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1383
00b3c7ac
TT
13842011-02-08 Tom Tromey <tromey@redhat.com>
1385
1386 * Makefile.in (NS_OBJC_OBJ): New variable.
1387 (base_obj): Rename from 'obj'.
1388 (obj): New variable.
1389 (globals.h, gl-stamp, $(obj)): New targets.
1390 (GLOBAL_SOURCES): New variable.
1391 * globals.h: Remove.
1392 * nsselect.m (Vselection_alist): Define. Reverts part of
1393 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1394 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1395 variable.
1396 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1397
8f3b2e12
KH
13982011-02-08 Kenichi Handa <handa@m17n.org>
1399
1400 * font.c (Ffont_get): Do not cache :otf value.
1401
4f043d0f
PE
14022011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1403
1404 conform to C89 pointer rules
1405
1406 * dired.c (scmp, file_name_completion):
1407 Change types between char * and unsigned char *, to satisfy C89
1408 rules about pointer type compatibility.
47ce90e4 1409 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 1410 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
1411 * alloc.c (make_string, make_specified_string, make_pure_string):
1412 Likewise.
57ace6d0 1413 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
1414 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1415 (print_object): Likewise.
e7f8264d
PE
1416 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1417 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1418 (Fformat): Likewise.
a2db9982 1419 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
1420 * fns.c (string_make_multibyte, string_to_multibyte):
1421 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1422 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1423 Likewise.
4a25e32a 1424 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
1425 * process.c (read_process_output, send_process, Fprocess_send_region):
1426 Likewise.
0ca76b1e 1427 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
1428 * doprnt.c (doprnt): Likewise.
1429 * indent.c (compute_motion): Likewise.
efe0234f 1430 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 1431 * ralloc.c (resize_bloc): Likewise.
b19beacc 1432 * image.c (tiff_load): Likewise.
c45e5276 1433 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
1434 * character.c (strwidth): Make its argument const char *, not const
1435 unsigned char *, since more callers prefer it that way. All callers
1436 changed.
4f043d0f 1437
9eee99eb
PE
14382011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1439
4c83cffc
PE
1440 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1441 Emacs assumes two's complement elsewhere, but the assumption is
1442 easy to remove here, and this suppresses a warning with Sun C 5.8.
1443
82470039
PE
1444 conform to C89 pointer rules
1445
1446 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1447 (same_x_server, x_term_init):
9eee99eb
PE
1448 Change types between char * and unsigned char *, to satisfy C89
1449 rules about pointer type compatibility.
82470039
PE
1450 * doc.c (get_doc_string, Fsnarf_documentation):
1451 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
1452 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1453 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 1454 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
1455 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1456 Likewise.
01c9aa3a 1457 * keymap.c (Ftext_char_description): Likewise.
637de37e 1458 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
1459 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1460 (DRIVE_LETTER) [defined DOS_NT]:
1461 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1462 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1463 (search_embedded_absfilename, Fsubstitute_in_file_name):
1464 (barf_or_query_if_file_exists, Fmake_directory_internal):
1465 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1466 (Finsert_file_contents, Fwrite_region):
1467 Likewise.
b68864e5
PE
1468 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1469 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1470 Likewise. This changes these functions' signatures, which is
1471 more convenient since most callers use char *. All remaining
1472 callers changed.
1473 * editfns.c (general_insert_function): Change signature to
1474 match changes to insert functions' signatures.
b286858c
SM
1475 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1476 Use explicit cast when converting between void * and function pointer
01c9aa3a 1477 types, as C89 requires this.
9eee99eb 1478
32299e33
PE
14792011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1480
1481 don't ignore chdir failure
1482 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1483 failure and exit.
1484 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1485 remaining unchecked chdir calls in this function; some DOS/NT
1486 expert needs to fix them.
1487 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1488 in this function; some NextStep expert needs to fix them.
1489
233ba4d9 14902011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
1491
1492 * xfaces.c (Finternal_set_lisp_face_attribute):
1493 Try to clarify some error messages. (Bug#2659)
1494
233ba4d9 14952011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
1496
1497 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1498 current_column cache (bug#7946).
1499
233ba4d9 15002011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
1501
1502 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1503
1504 * xftfont.c (xftfont_open): Likewise.
1505
233ba4d9 15062011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
1507
1508 * window.c (Fselect_window): Add missing return value.
1509
d67985d3
PE
15102011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1511
25a48bd0
PE
1512 xstrcasecmp: conform to C89 pointer rules
1513 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1514 to const char *, since they're usually low-level C strings, and
1515 this stays compatible with C89 pointer rules. All callers changed.
1516
2f8f196d 1517 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
1518 (define_charset_internal): Switch between char * and unsigned char *.
1519
2f8f196d 1520 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
1521 (xmenu_show, xdialog_show): Declare local var as char *, not
1522 const char *, to stay compatible with C89 const rules.
1523
2f8f196d 1524 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
1525 (store_mode_line_noprop, display_string, reseat_to_string):
1526 (c_string_pos, number_of_chars, message_dolog):
1527 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1528 (display_mode_element, display_string):
1529 Switch between char * and unsigned char * to stay compatible wth
1530 C89 pointer rules.
1531
2f8f196d 1532 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
1533 (re_wctype): Add cast, as C89 does not allow assigning between
1534 char * and unsigned char *.
1535 (regex_compile): Likewise.
1536
d67985d3
PE
1537 sync from gnulib to remove HAVE_STDBOOL_H
1538 * config.in: Regenerate.
1539
a5d733f5
EZ
15402011-02-04 Eli Zaretskii <eliz@gnu.org>
1541
f90e08f5
EZ
1542 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1543 Replace all uses of lisp.h with $(LISP_H), and all uses of
1544 process.h with $(PROCESS_H).
1545 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
1546 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
1547
be50df37
EZ
1548 * deps.mk: Update for recent changes: gnutls support, gnulib
1549 imports, addition of globals.h.
1550
f90e08f5
EZ
1551 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
1552 ../lib/ignore-value.h.
a5d733f5 1553
67342916
PE
15542011-02-03 Paul Eggert <eggert@cs.ucla.edu>
1555
1556 allow C code to suppress warnings about ignored return values
1557
1558 We need to go through the code and for each such warning, either
1559 fix the code to pay attention to the returned value, or tell GCC
1560 that we really do want to ignore the returned value. Here is one
1561 example of how to do the latter.
1562 * sysdep.c: Include <ignore-value.h>.
1563 (sys_subshell): Suppress an undesirable warning about not checking
1564 the returned value of 'write', as there's nothing useful one can
1565 do with that returned value.
1566
36941b32
JD
15672011-02-03 Jan Djärv <jan.h.d@swipnet.se>
1568
1569 * xterm.c (x_connection_closed): Remove all calls that calls
1570 XSync (Bug#7949).
1571
3082f617
EZ
15722011-02-01 Eli Zaretskii <eliz@gnu.org>
1573
1574 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
1575 TIFFClientOpen.
1576
4df0af9b
JD
15772011-02-01 Jan Djärv <jan.h.d@swipnet.se>
1578
1579 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
1580 (x_session_check_input): Change args and return type so it can be used
1581 as argument to add_read_fd. Make static. Remove call to select.
1582 Call kbd_buffer_store_event for emacs_event.
1583 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
1584 (ice_conn_watch_CB): Call add_read_fd.
1585
1586 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
1587 x_session_check_input.
1588 (x_session_initialized): Remove definition.
1589 (x_initialize): Remove setting of x_session_initialized.
1590
1591 * xterm.h (x_session_check_input): Remove declaration.
1592
a4180391
PE
15932011-02-01 Paul Eggert <eggert@cs.ucla.edu>
1594
1595 format-time-string now supports subsecond time stamp resolution
b286858c 1596 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
1597 for consistency with its new argument and with gnulib nstrftime.
1598 All callers changed. New argument NS.
1599 (Fformat_time_string): Check that the time argument's microseconds
1600 component, if any, is in range; this avoids integer overflow and
1601 also nstrftime needs this. Document %N.
1602
14beddf4 16032011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
1604
1605 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
1606 of int. All uses adjusted.
1607 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
1608 (svg_load_image): Remove casts.
1609
14beddf4 16102011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
1611
1612 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
1613 function definitions for compiling with libpng-1.5.
1614 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
1615 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
1616 (Bug#7908).
1617
70b0d280
EZ
16182011-01-31 Eli Zaretskii <eliz@gnu.org>
1619
8b3c625b
EZ
1620 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
1621
70b0d280
EZ
1622 * makefile.w32-in (OBJ2): Remove strftime.$(O).
1623 ($(BLD)/strftime.$(O)): Remove prerequisites.
1624
16fab143
PE
16252011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1626
1627 src/emacs.c now gets version number from configure.in
1628 * emacs.c (emacs_version): Set to VERSION so that it
1629 is determined automatically from ../configure.in.
1630
546961a9
JM
16312011-01-31 Jim Meyering <meyering@redhat.com>
1632
1633 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
1634 Use xmalloc rather than malloc.
1635
42a5b22f
PE
16362011-01-30 Paul Eggert <eggert@cs.ucla.edu>
1637
16c3e636
PE
1638 strftime: import from gnulib
1639 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
1640 * deps.mk (strftime.o): Remove.
1641 * editfns.c: Include <strftime.h>, supplied by gnulib.
1642 (emacs_strftimeu): Remove decl.
1643 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
1644 emacs_strftimeu.
1645 * config.in: Regenerate.
1646 * strftime.c: Remove; we now use strftime from gnulib.
1647
42a5b22f
PE
1648 Use SSDATA when the context wants char *.
1649 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
1650 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
1651 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
1652 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
1653 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
1654 Use SSDATA (not SDATA) when the context of the expression wants
1655 char * (not unsigned char *).
1656
2787bba3
JD
16572011-01-30 Jan Djärv <jan.h.d@swipnet.se>
1658
1659 * .gdbinit: Read global lisp variables as globals.f_V*.
1660
4ec88040
AS
16612011-01-30 Andreas Schwab <schwab@linux-m68k.org>
1662
1663 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
1664 All uses changed.
1665 (PROP_SAVE): Likewise.
1666
b6bcd048
CY
16672011-01-29 Chong Yidong <cyd@stupidchicken.com>
1668
1669 * keyboard.c (make_lispy_position): Fix typo in last change
1670 (Bug#7935).
1671
f915f0f7
EZ
16722011-01-29 Eli Zaretskii <eliz@gnu.org>
1673
1674 * s/ms-w32.h (HAVE_MKTIME): Remove.
1675
1676 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1677 (GNULIB): New variable.
1678 (LIBS): Add $(GNULIB).
1679 $(TEMACS): Depend on $(GNULIB).
1680 <top-level>: Fix font-lock disrupted by a lone `"'.
1681
497a1925
JD
16822011-01-29 Jan Djärv <jan.h.d@swipnet.se>
1683
1684 * nsselect.m (ns_string_from_pasteboard): Get length of string
1685 and use make_string instead of build_string (Bug#7934).
1686 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
1687 instead of stringWithUTF8String (Bug#7934).
1688
2f8f196d 16892011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 1690
2f8f196d
JB
1691 * nsfont.m (nsfont_open): Ensure that fonts with inexact
1692 descenders would not become one pixel too tall (Bug#7887).
481ae085 1693
6b918613
CY
16942011-01-28 Chong Yidong <cyd@stupidchicken.com>
1695
1696 * keyboard.c (make_lispy_position): For clicks on right fringe or
1697 margin, compute text position using the X coordinate relative to
1698 the left of the text area (Bug#7839).
1699
9e269017
KH
17002011-01-28 Kenichi Handa <handa@m17n.org>
1701
1702 * ftfont.c (ftfont_spec_pattern): Check each extra property
1703 value.
1704
17dd1fc8
SM
17052011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1706
1707 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
1708
372fb76b
CY
17092011-01-27 Chong Yidong <cyd@stupidchicken.com>
1710
1711 * font.c (font_parse_fcname): Undefine a temporary macro.
1712
e7f7fbaa
SM
17132011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
1714
1715 Let the debugger continue to the normal handler (bug#7825).
1716 * eval.c (maybe_call_debugger): Declare before new use.
1717 (find_handler_clause): Don't call debugger any more.
1718 Ignore Vstack_trace_on_error.
1719 Use XCAR/XCDR.
1720 (syms_of_eval): Remove Vstack_trace_on_error.
1721 (Fsignal): Only modify handlerlist when we know we need to do it.
1722 Call the debugger when necessary.
1723 * globals.h (Vstack_trace_on_error): Remove.
1724
6608a7d8
CY
17252011-01-26 Chong Yidong <cyd@stupidchicken.com>
1726
1727 * font.c (font_parse_fcname): Rewrite GTK font name parser.
1728
06d8ace5 17292011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
1730
1731 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
1732 the buffer's point-max (bug#7876).
1733
06d8ace5 17342011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
1735
1736 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 1737 Remove unused case (Bug#6811).
19634648 1738
8ab70320
JD
17392011-01-23 Jan Djärv <jan.h.d@swipnet.se>
1740
1741 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
1742 setFrameTopLeftPoint is constrained.
1743
51b59d79
PE
17442011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1745
9055082e
PE
1746 Check return values of some library calls.
1747 * emacs.c (main): Check dup result.
1748 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1749 (frame_name_fnn_p): Check strtol result.
1750
5c7d01a5 1751 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
1752 when calling XpmCreatePixmapFromData.
1753
51b59d79
PE
1754 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1755 * lisp.h (SSDATA): New macro.
1756 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1757 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1758 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1759 * xsmfns.c (SSDATA): Likewise.
1760
e6b84b30
MR
17612011-01-22 Martin Rudalics <rudalics@gmx.at>
1762
1763 * window.c (select_window): New function.
1764 (Fselect_window): Call it.
1765 (inhibit_point_swap): Variable deleted.
1766 (Fset_window_configuration): Call select_window directly.
1767
3fb69558
JD
17682011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1769
1770 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1771
449ab399
JD
17722011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1773
e2f79c8d
JD
1774 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1775 screen, not the window screen.
1776 (x_set_window_size): Remove constraints.
1777 Calculate origin.y only if zooming is 0 and without referring to a
1778 screen.
1779 (windowWillResize): Don't modify frameSize.
1780 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
1781 (initFrameFromEmacs): Initialize ns_userRect.
1782 (windowShouldZoom): Set zooming to one. Remove all other code.
1783 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
1784 Zero it after restore.
1785 (constrainFrameRect): New method for EmacsWindow.
1786 (mouseDragged): Always post NSWindowDidResizeNotification after call to
1787 windowWillResize.
1788
1789 * nsterm.h (ns_output): Add dont_constrain and zooming.
1790 (EmacsView): Add ns_userRect.
1791
449ab399
JD
1792 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
1793 if ns_alternate_modifier is none.
1794
e885315d
JD
17952011-01-20 Jan Djärv <jan.h.d@swipnet.se>
1796
1797 * unexmacosx.c: Add comment about include order.
1798
bb1c6663
GM
17992011-01-20 Glenn Morris <rgm@gnu.org>
1800
c11136ec
GM
1801 * minibuf.c (syms_of_minibuf) <read-expression-history>:
1802 Give it a doc string.
1803 * globals.h: Add Vread_expression_history.
1804
bb1c6663
GM
1805 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
1806 Give it a doc string.
1807 * globals.h: Add Vkbd_macro_termination_hook.
1808
9aea757b
CY
18092011-01-20 Chong Yidong <cyd@stupidchicken.com>
1810
1811 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
1812
e1ef0dac
PE
18132011-01-19 Paul Eggert <eggert@cs.ucla.edu>
1814
1815 Fix X11 compilation failure.
1816 * globals.h (struct emacs_globals): Document f_Vselection_alist.
1817 * xselect.c (Vselection_alist): Remove declaration, moving its
1818 documentation to globals.h. This fixes a compilation failure
1819 induced by the earlier change to globals.h today.
1820
fb9d0f5a
JD
18212011-01-19 Jan Djärv <jan.h.d@swipnet.se>
1822
8beb828a
JD
1823 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
1824
fb9d0f5a
JD
1825 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
1826 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
1827 (ns_input_spi_name, ns_input_spi_arg)
1828 (ns_alternate_modifier, ns_right_alternate_modifier)
1829 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
1830 (ns_right_control_modifier, ns_function_modifier)
1831 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
1832 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
1833 (x_underline_at_descent_line): Remove declaration.
1834 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
1835
01c35094 1836 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
fb9d0f5a
JD
1837 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
1838 (syms_of_nsselect): Remove & from DEFVAR_LISP.
1839
1840 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
1841 Remove declaration.
1842
1843 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
1844 globals.h.
1845 (syms_of_nsfont): Remove & from DEFVAR_LISP.
1846
1847 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
1848 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
1849 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
1850
1851 * globals.h (struct emacs_globals): Add f_ns_input_file,
1852 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
1853 f_ns_input_color, f_ns_input_text, f_ns_working_text,
1854 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
1855 f_ns_right_alternate_modifier, f_ns_command_modifier,
1856 f_ns_right_command_modifier, f_ns_control_modifier,
1857 f_ns_right_control_modifier, f_ns_function_modifier,
1858 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
1859 f_Vns_version_string, f_Vns_sent_selection_hooks,
1860 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
1861 and corresponding defines.
1862
4e55715e
SS
18632011-01-19 Sam Steingold <sds@gnu.org>
1864
1865 * w32.c (check_windows_init_file): Remove declarations of
1866 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 1867 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 1868
ef79d2fa
TT
18692011-01-19 Tom Tromey <tromey@redhat.com>
1870
1871 * window.c: Fix error introduced by previous patch.
1872
29208e82
TT
18732011-01-18 Tom Tromey <tromey@parfait>
1874
1875 * globals.h: New file.
1876 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
1877 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
1878 (Vwindow_system_version): Remove declaration.
1879 * w32term.h (Vw32_enable_palette)
1880 (Vx_pixel_size_width_font_regexp): Remove declaration.
1881 * w32menu.c (Voverriding_local_map)
1882 (Voverriding_local_map_menu_flag): Remove declaration.
1883 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1884 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1885 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1886 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1887 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1888 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1889 (w32_use_full_screen_buffer): Remove declaration.
1890 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1891 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1892 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1893 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1894 (no_redraw_on_reenter, visible_bell): Remove declaration.
1895 * sysdep.c (Vsystem_name): Remove declaration.
1896 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1897 * menu.h (Vmenu_updating_frame): Remove declaration.
1898 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1899 Remove declaration.
1900 * lisp.h (Vafter_init_time, Vafter_load_alist)
1901 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1902 (Vcompletion_regexp_list, Vcurrent_load_list)
1903 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1904 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1905 (Vexec_directory, Vexec_path, Vexec_suffixes)
1906 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1907 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1908 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1909 (Vinstallation_directory, Vinvocation_directory)
1910 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1911 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1912 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1913 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1914 (Vscalable_fonts_allowed, Vselect_active_regions)
1915 (Vshell_file_name, Vstandard_input, Vstandard_output)
1916 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1917 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1918 (Vuser_login_name, Vwindow_scroll_functions)
1919 (Vwindow_system_version, Vx_no_window_manager)
1920 (Vx_resource_class, Vx_resource_name, baud_rate)
1921 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1922 (history_delete_duplicates, inhibit_x_resources)
1923 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1924 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
1925 (use_dialog_box, use_file_dialog): Remove declaration.
1926 Include globals.h.
29208e82 1927 * keymap.h (Voverriding_local_map)
b286858c
SM
1928 (Voverriding_local_map_menu_flag, meta_prefix_char):
1929 Remove declaration.
29208e82
TT
1930 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1931 (Vinput_method_function, Vkey_translation_map)
1932 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1933 (do_mouse_tracking, extra_keyboard_modifiers)
1934 (num_nonmacro_input_events): Remove declaration.
1935 * intervals.h (Vchar_property_alias_alist)
1936 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1937 (Vtext_property_default_nonsticky): Remove declaration.
1938 * gtkutil.h (x_gtk_file_dialog_help_text)
1939 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1940 (x_gtk_whole_detached_tool_bar): Remove declaration.
1941 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1942 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1943 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1944 (focus_follows_mouse): Remove declaration.
1945 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1946 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
1947 (Vuse_default_ascent, Vvertical_centering_font_regexp):
1948 Remove declaration.
29208e82
TT
1949 * font.h (Vfont_log): Remove declaration.
1950 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1951 (Vdos_windows_version, dos_codepage, dos_country_code)
1952 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
1953 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
1954 Remove declaration.
1955 * disptab.h (Vglyph_table, Vstandard_display_table):
1956 Remove declaration.
29208e82
TT
1957 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
1958 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
1959 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
1960 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
1961 (inverse_video, mode_line_in_non_selected_windows)
1962 (tool_bar_button_relief, tool_bar_max_label_size)
1963 (underline_minimum_offset)
1964 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1965 Remove declaration.
1966 * composite.h (Vauto_composition_function)
1967 (Vcomposition_function_table): Remove declaration.
1968 * commands.h (Vexecuting_kbd_macro)
1969 (Vminibuffer_local_completion_map)
1970 (Vminibuffer_local_filename_completion_map)
1971 (Vminibuffer_local_filename_must_match_map)
1972 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1973 (Vminibuffer_local_ns_map, Vthis_command)
1974 (Vunread_command_events, cursor_in_echo_area)
1975 (last_command_event, last_nonmenu_event, unread_command_char):
1976 Remove declaration.
1977 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
1978 (Vdefault_file_name_coding_system)
1979 (Vdefault_process_coding_system, Vfile_name_coding_system)
1980 (Vlast_coding_system_used, Vlocale_coding_system)
1981 (Vselect_safe_coding_system_function)
1982 (Vtranslation_table_for_input, coding_system_require_warning)
1983 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
1984 (eol_mnemonic_unix, inherit_process_coding_system):
1985 Remove declaration.
1986 * charset.h (Vcharset_list, Vcurrent_iso639_language):
1987 Remove declaration.
29208e82
TT
1988 * character.h (Vauto_fill_chars, Vchar_direction_table)
1989 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
1990 (Vscript_representative_chars, Vtranslation_table_vector)
1991 (Vunicode_category_table): Remove declaration.
1992 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
1993 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
1994 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
1995 (inhibit_modification_hooks): Remove declaration.
1996 * xterm.c (syms_of_xterm): Update.
1997 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
1998 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
1999 (x_mouse_click_focus_ignore_position)
2000 (x_underline_at_descent_line)
2001 (x_use_underline_position_properties): Remove.
2002 * xsmfns.c (syms_of_xsmfns): Update.
2003 (Vx_session_id, Vx_session_previous_id): Remove.
2004 * xsettings.c (syms_of_xsettings): Update.
2005 (Vxft_settings, use_system_font): Remove.
2006 * xselect.c (syms_of_xselect): Update.
2007 (Vselection_converter_alist, Vx_lost_selection_functions)
2008 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2009 * xfns.c (syms_of_xfns): Update.
2010 (Vgtk_version_string, Vmotif_version_string)
2011 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2012 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2013 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2014 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2015 (Vx_sensitive_text_pointer_shape)
2016 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2017 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2018 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2019 Remove.
2020 * xfaces.c (syms_of_xfaces): Update.
2021 (Vface_default_stipple, Vface_font_rescale_alist)
2022 (Vface_ignored_fonts, Vface_new_frame_defaults)
2023 (Vface_remapping_alist, Vfont_list_limit)
2024 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2025 * xdisp.c (syms_of_xdisp): Update.
2026 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2027 (Vdisplay_pixels_per_inch, Vfontification_functions)
2028 (Vframe_title_format, Vglobal_mode_string)
2029 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2030 (Vicon_title_format, Vinhibit_redisplay)
2031 (Vline_number_display_limit, Vline_prefix)
2032 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2033 (Vmenu_updating_frame, Vmessage_log_max)
2034 (Vmouse_autoselect_window, Vnobreak_char_display)
2035 (Voverlay_arrow_position, Voverlay_arrow_string)
2036 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2037 (Vresize_mini_windows, Vshow_trailing_whitespace)
2038 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2039 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2040 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2041 (Vwindow_text_change_functions, Vwrap_prefix)
2042 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2043 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2044 (highlight_nonselected_windows, hscroll_margin)
2045 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2046 (inhibit_menubar_update, inhibit_try_cursor_movement)
2047 (inhibit_try_window_id, inhibit_try_window_reusing)
2048 (line_number_display_limit_width)
2049 (make_cursor_line_fully_visible_p, message_truncate_lines)
2050 (mode_line_inverse_video, multiple_frames, overline_margin)
2051 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2052 (tool_bar_max_label_size, underline_minimum_offset)
2053 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2054 Remove.
2055 * window.c (syms_of_window): Update.
2056 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2057 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2058 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2059 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2060 (mode_line_in_non_selected_windows, next_screen_context_lines)
2061 (window_min_height, window_min_width): Remove.
2062 (scroll_margin): Remove declaration.
2063 * w32term.c (syms_of_w32term): Update.
2064 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2065 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2066 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2067 (w32_use_visible_system_caret, x_underline_at_descent_line)
2068 (x_use_underline_position_properties): Remove.
2069 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2070 Remove declaration.
2071 * w32select.c (syms_of_w32select): Update.
2072 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2073 * w32proc.c (syms_of_ntproc): Update.
2074 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2075 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2076 (Vw32_start_process_inherit_error_mode)
2077 (Vw32_start_process_share_console)
2078 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2079 (Vsystem_name): Remove declaration.
2080 * w32font.c (syms_of_w32font): Update.
2081 (Vw32_charset_info_alist): Remove.
2082 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2083 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2084 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2085 (Vw32_enable_palette, Vw32_lwindow_modifier)
2086 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2087 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2088 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2089 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2090 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2091 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2092 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2093 (Vx_sensitive_text_pointer_shape)
2094 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2095 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2096 (w32_mouse_move_interval)
2097 (w32_pass_extra_mouse_buttons_to_system)
2098 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2099 (w32_strict_fontnames, w32_strict_painting): Remove.
2100 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2101 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
2102 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2103 Remove declaration.
29208e82
TT
2104 * w32console.c (syms_of_ntterm): Update.
2105 (w32_use_full_screen_buffer): Remove.
2106 (Vtty_defined_color_alist): Remove declaration.
2107 * w16select.c (syms_of_win16select): Update.
2108 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2109 * undo.c (syms_of_undo): Update.
2110 (Vundo_outer_limit, Vundo_outer_limit_function)
2111 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2112 Remove.
2113 * textprop.c (syms_of_textprop): Update.
2114 (Vchar_property_alias_alist, Vdefault_text_properties)
2115 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2116 Remove.
2117 * terminal.c (syms_of_terminal): Update.
2118 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2119 * term.c (syms_of_term): Update.
2120 (Vresume_tty_functions, Vsuspend_tty_functions)
2121 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2122 Remove.
2123 * syntax.c (syms_of_syntax): Update.
2124 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2125 (open_paren_in_column_0_is_defun_start)
2126 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2127 (words_include_escapes): Remove.
2128 * search.c (syms_of_search): Update.
2129 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2130 * process.c (syms_of_process): Update.
2131 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2132 (delete_exited_processes): Remove.
2133 * print.c (syms_of_print): Update.
2134 (Vfloat_output_format, Vprint_charset_text_property)
2135 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2136 (Vprint_length, Vprint_level, Vprint_number_table)
2137 (Vstandard_output, print_escape_multibyte)
2138 (print_escape_newlines, print_escape_nonascii, print_quoted):
2139 Remove.
2140 * msdos.c (syms_of_msdos): Update.
2141 (Vdos_unsupported_char_glyph): Remove.
2142 (unibyte_display_via_language_environment): Remove declaration.
2143 * minibuf.c (syms_of_minibuf): Update.
2144 (Vcompletion_regexp_list, Vhistory_add_new_input)
2145 (Vhistory_length, Vminibuffer_completing_file_name)
2146 (Vminibuffer_completion_confirm)
2147 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2148 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2149 (Vminibuffer_history_position, Vminibuffer_history_variable)
2150 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2151 (Vread_buffer_function, Vread_expression_map)
2152 (completion_ignore_case, enable_recursive_minibuffers)
2153 (history_delete_duplicates, minibuffer_allow_text_properties)
2154 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2155 Remove.
2156 * marker.c (syms_of_marker): Update.
2157 (byte_debug_flag): Remove.
2158 * macros.c (syms_of_macros): Update.
2159 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2160 * lread.c (syms_of_lread): Update.
2161 (Vafter_load_alist, Vbyte_boolean_vars)
2162 (Vbytecomp_version_regexp, Vcurrent_load_list)
2163 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2164 (Vload_history, Vload_path, Vload_read_function)
2165 (Vload_source_file_function, Vload_suffixes, Vobarray)
2166 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2167 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2168 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2169 (force_load_messages, load_convert_to_unibyte)
2170 (load_dangerous_libraries, load_force_doc_strings)
2171 (load_in_progress): Remove.
2172 * keymap.c (syms_of_keymap): Update.
2173 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2174 (Vminibuffer_local_completion_map)
2175 (Vminibuffer_local_filename_completion_map)
2176 (Vminibuffer_local_filename_must_match_map)
2177 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2178 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2179 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2180 Remove.
2181 * keyboard.c (syms_of_keyboard): Update.
2182 (Vauto_save_timeout, Vcommand_error_function)
2183 (Vcommand_hook_internal, Vdeactivate_mark)
2184 (Vdeferred_action_function, Vdeferred_action_list)
2185 (Vdisable_point_adjustment, Vdouble_click_time)
2186 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2187 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2188 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2189 (Vinput_method_function, Vinput_method_previous_message)
2190 (Vkey_translation_map, Vlast_event_frame)
2191 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2192 (Vminibuffer_message_timeout, Voverriding_local_map)
2193 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2194 (Vpre_command_hook, Vprefix_help_command)
2195 (Vsaved_region_selection, Vselect_active_regions)
2196 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2197 (Vthis_command, Vthis_command_keys_shift_translated)
2198 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2199 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2200 (Vtty_erase_char, Vunread_command_events)
2201 (Vunread_input_method_events, Vunread_post_input_method_events)
2202 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2203 (double_click_fuzz, extra_keyboard_modifiers)
2204 (inhibit_local_menu_bar_menus, last_command_event)
2205 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2206 (menu_prompting, meta_prefix_char, num_input_keys)
2207 (num_nonmacro_input_events, polling_period, unread_command_char):
2208 Remove.
2209 * insdel.c (syms_of_insdel): Update.
2210 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2211 * indent.c (syms_of_indent): Update.
2212 (indent_tabs_mode): Remove.
2213 * image.c (syms_of_image): Update.
2214 (Vimage_cache_eviction_delay, Vimage_types)
2215 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2216 (cross_disabled_images): Remove.
2217 * fringe.c (syms_of_fringe): Update.
2218 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2219 * frame.c (syms_of_frame): Update.
2220 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2221 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2222 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2223 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2224 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2225 Remove.
2226 * fontset.c (syms_of_fontset): Update.
2227 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2228 (Vfontset_alias_alist, Vignore_relative_composition)
2229 (Votf_script_alist, Vuse_default_ascent)
2230 (Vvertical_centering_font_regexp): Remove.
2231 * font.c (syms_of_font): Update.
2232 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2233 (Vfont_weight_table, Vfont_width_table): Remove.
2234 * fns.c (syms_of_fns): Update.
2235 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2236 * filelock.c (syms_of_filelock): Update.
2237 (Vtemporary_file_directory): Remove.
2238 * fileio.c (syms_of_fileio): Update.
2239 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2240 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2241 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2242 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2243 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2244 (Vwrite_region_annotate_functions)
2245 (Vwrite_region_annotations_so_far)
2246 (Vwrite_region_post_annotation_function)
2247 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2248 (Vw32_get_true_file_attributes): Remove declaration.
2249 * eval.c (syms_of_eval): Update.
2250 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2251 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2252 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2253 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2254 (max_lisp_eval_depth, max_specpdl_size): Remove.
2255 * emacs.c (syms_of_emacs): Update.
2256 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2257 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2258 (Vinstallation_directory, Vinvocation_directory)
2259 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2260 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2261 (Vsystem_configuration, Vsystem_configuration_options)
2262 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2263 (inhibit_x_resources, noninteractive1): Remove.
2264 * editfns.c (syms_of_editfns): Update.
2265 (Vbuffer_access_fontified_property)
2266 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2267 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2268 (Vuser_login_name, Vuser_real_login_name): Remove.
2269 * dosfns.c (syms_of_dosfns): Update.
2270 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2271 (dos_codepage, dos_country_code, dos_decimal_point)
2272 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2273 (dos_super_key, dos_timezone_offset): Remove.
2274 * doc.c (syms_of_doc): Update.
2275 (Vbuild_files, Vdoc_file_name): Remove.
2276 * dispnew.c (syms_of_display): Update.
2277 (Vglyph_table, Vinitial_window_system)
2278 (Vredisplay_preemption_period, Vstandard_display_table)
2279 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2280 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2281 * dired.c (syms_of_dired): Update.
2282 (Vcompletion_ignored_extensions): Remove.
2283 (Vw32_get_true_file_attributes): Remove declaration.
2284 * dbusbind.c (syms_of_dbusbind): Update.
2285 (Vdbus_debug, Vdbus_registered_buses)
2286 (Vdbus_registered_objects_table): Remove.
2287 * data.c (syms_of_data): Update.
2288 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2289 * composite.c (syms_of_composite): Update.
2290 (Vauto_composition_function, Vauto_composition_mode)
2291 (Vcompose_chars_after_function, Vcomposition_function_table):
2292 Remove.
2293 * coding.c (syms_of_coding): Update.
2294 (Vcharset_revision_table, Vcoding_category_list)
2295 (Vcoding_system_alist, Vcoding_system_for_read)
2296 (Vcoding_system_for_write, Vcoding_system_list)
2297 (Vdefault_process_coding_system, Venable_character_translation)
2298 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2299 (Vlast_coding_system_used, Vlatin_extra_code_table)
2300 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2301 (Vprocess_coding_system_alist)
2302 (Vselect_safe_coding_system_function)
2303 (Vstandard_translation_table_for_decode)
2304 (Vstandard_translation_table_for_encode)
2305 (Vtranslation_table_for_input, coding_system_require_warning)
2306 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2307 (eol_mnemonic_unix, inherit_process_coding_system)
2308 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2309 (inhibit_null_byte_detection): Remove.
2310 * cmds.c (syms_of_cmds): Update.
2311 (Vpost_self_insert_hook): Remove.
2312 * charset.c (syms_of_charset): Update.
2313 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2314 (inhibit_load_charset_map): Remove.
2315 * character.c (syms_of_character): Update.
2316 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2317 (Vchar_width_table, Vprintable_chars)
2318 (Vscript_representative_chars, Vtranslation_table_vector)
2319 (Vunicode_category_table): Remove.
2320 * ccl.c (syms_of_ccl): Update.
2321 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2322 (Vtranslation_hash_table_vector): Remove.
2323 * category.c (syms_of_category): Update.
2324 (Vword_combining_categories, Vword_separating_categories): Remove.
2325 * callproc.c (syms_of_callproc): Update.
2326 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2327 (Vexec_directory, Vexec_path, Vexec_suffixes)
2328 (Vinitial_environment, Vprocess_environment)
2329 (Vshared_game_score_directory, Vshell_file_name): Remove.
2330 * callint.c (syms_of_callint): Update.
2331 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2332 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2333 * bytecode.c (syms_of_bytecode): Update.
2334 (Vbyte_code_meter, byte_metering_on): Remove.
2335 * buffer.c (syms_of_buffer): Update.
2336 (Vafter_change_functions, Vbefore_change_functions)
2337 (Vchange_major_mode_hook, Vfirst_change_hook)
2338 (Vinhibit_read_only, Vkill_buffer_query_functions)
2339 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2340 * alloc.c (syms_of_alloc): Update.
2341 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2342 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2343 (cons_cells_consed, floats_consed, garbage_collection_messages)
2344 (gc_cons_threshold, gcs_done, intervals_consed)
2345 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2346 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2347
2348 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2349 (DEFVAR_INT): Assume global is in `globals'.
2350 * alloc.c (globals): Define.
2351
448c0820
TT
23522011-01-18 Tom Tromey <tromey@redhat.com>
2353
2354 * image.c (Vimagemagick_render_type): Remove redundant
2355 definition.
2356
8442d95d
TT
23572011-01-18 Tom Tromey <tromey@redhat.com>
2358
2359 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2360 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2361 (redisplay_window): Update.
2362 (syms_of_xdisp): Update.
2363
cab0ba98
TT
23642011-01-18 Tom Tromey <tromey@redhat.com>
2365
2366 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2367 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2368 Declare.
2369 * gtkutil.c (xg_uses_old_file_dialog):
2370 (xg_get_file_with_chooser):
2371 (xg_tool_bar_detach_callback): Don't redeclare globals.
2372
422745d0
TT
23732011-01-18 Tom Tromey <tromey@redhat.com>
2374
2375 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2376 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2377
7cae64b4
PE
23782011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2379
2380 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2381 defined __GNUC__. ../configure now checks for this GCC feature,
2382 which is now also supported by IBM and Oracle compilers.
2383 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2384 since Solaris malloc returns mult-of-8.
2385
a9faac5c 23862011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
2387
2388 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2389
a3e44e79 23902011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 2391
6e8e6bf2
PE
2392 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2393 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2394 * data.c (Fnumber_to_string): Use it.
2395 * print.c (float_to_string, print_object): Likewise.
2396
4004364e
PE
2397 Include <unistd.h> unilaterally.
2398 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2399 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2400 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2401 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2402 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2403 * xterm.c:
2404 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2405 unistd.h is always present now, possibly supplied by gnulib.
2406
e84aba69
PE
2407 * mktime.c: Remove; moving to ../lib.
2408
1e11dbe3
PE
2409 Use gnulib's mktime module.
2410 * deps.mk (mktime.o): Remove rule.
2411
fa2c4f56
PE
2412 Use gnulib's ftoastr module.
2413 * print.c: Include ftoastr.h.
2414 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2415 Remove; no longer needed.
2416 (float_to_string): Use dtoastr rather than rolling our own code,
2417 which had an off-by-one bug on non-IEEE hosts.
2418
9a514d4a
PE
2419 Automate syncing from gnulib.
2420 * Makefile.in (lib): New macro.
2421 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2422 ($(lib)/libgnu.a): New rule.
2423 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2424
717c30e0
PE
2425 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2426 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2427 so change the type of 'ign' to unsigned int from int.
2428
8865d794
PE
2429 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2430
4ef36a7b
PE
2431 * xterm.h (struct x_display_info): Remove stray semicolon.
2432 The extra semicolon didn't conform to the C standard.
2433 Problem reported by Sun cc.
2434
6df4097e
PE
2435 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2436 These changes make compilation easier to follow with Sun cc.
2437 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2438 EMACS_INT values without provoking overflow diagnostics.
2439 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2440 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2441 diagnostic with signed left shift.
9fba3563 2442
410ed5c3
PE
2443 * fileio.c (make_temp_name): Remove unreachable code.
2444
97be3ce3
PE
2445 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2446 Previously it was marked by preceding it with "return;", but
2447 Sun cc complains about this.
2448
9fba3563
PE
2449 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2450 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2451 which fixed Bug#2370. Caught by Sun cc.
2452
6dc1d2d3
MR
24532011-01-15 Martin Rudalics <rudalics@gmx.at>
2454
2455 * window.c (inhibit_point_swap): New variable.
2456 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2457 point this time.
2458 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2459 of setting selected_window to nil (Bug#7728).
2460
f853f599
TH
24612011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2462
8dabbfd6
SM
2463 * image.c (imagemagick_load_image, Finit_image_library):
2464 Free intermediate image after creating a MagickWand from it.
2465 Terminate MagickWand environment after image loading.
f853f599 2466
2bc92a93
MA
24672011-01-10 Michael Albinus <michael.albinus@gmx.de>
2468
2469 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2470 unexpected return values.
2471 (Fdbus_register_method): Remove connection initialization.
2472
24732011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
2474
2475 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2476 used by Fdbus_register_service.
2477 (QCdbus_request_name_replace_existing): Likewise.
2478 (QCdbus_request_name_do_not_queue): Likewise.
2479 (QCdbus_request_name_reply_primary_owner): Likewise.
2480 (QCdbus_request_name_reply_in_queue): Likewise.
2481 (QCdbus_request_name_reply_exists): Likewise.
2482 (QCdbus_request_name_reply_already_owner): Likewise.
2483 (Fdbus_register_service): New function.
2484 (Fdbus_register_method): Use Fdbus_register_service to do the name
2485 registration.
2486 (syms_of_dbusbind): Add symbols dbus-register-service,
2487 :allow-replacement, :replace-existing, :do-not-queue,
2488 :primary-owner, :existing, :in-queue and :already-owner.
2489
21a76236
CY
24902011-01-09 Chong Yidong <cyd@stupidchicken.com>
2491
2492 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2493 when removing extra buttons.
2494
3d91e302
CY
24952011-01-08 Chong Yidong <cyd@stupidchicken.com>
2496
2497 * fns.c (Fyes_or_no_p): Doc fix.
2498
0d23ffb5
AS
24992011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2500
2501 * fns.c (Fyes_or_no_p): Add usage.
2502
9dc3366b
GM
25032011-01-08 Glenn Morris <rgm@gnu.org>
2504
d0981f82
GM
2505 * makefile.w32-in ($(EMACS)):
2506 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2507
9dc3366b
GM
2508 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2509 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2510
466cbae9
AS
25112011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2512
2513 * image.c (imagemagick_load_image): Fix some resource leaks and
2514 error handling.
2515
8c51d2a2
CY
25162011-01-07 Chong Yidong <cyd@stupidchicken.com>
2517
2518 * fns.c (Fyes_or_no_p): Accept format string args.
2519
66b7b0fe
GM
25202011-01-07 Glenn Morris <rgm@gnu.org>
2521
2522 * emacs.c (no_site_lisp): New int.
2523 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2524 (main): Set no_site_lisp.
2525 (standard_args): Add --no-site-lisp.
2526 * lisp.h (no_site_lisp): New int.
2527 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2528 directories to Vload_path.
2529
2018939f
AS
25302011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2531
2532 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2533
6ed843e5
MA
25342011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2535
8dabbfd6 2536 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
2537 dont_register_service. Updated docstring accordingly.
2538
3f9b7090
GM
25392011-01-04 Glenn Morris <rgm@gnu.org>
2540
2541 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2542
d82bce4a
EZ
25432011-01-03 Eli Zaretskii <eliz@gnu.org>
2544
2545 * image.c (png_jmpbuf): Remove definition.
2546 (my_png_error, png_load): Don't use png_jmpbuf.
2547
7c420169
CY
25482011-01-02 Eli Zaretskii <eliz@gnu.org>
2549
2550 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
2551
25522011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
2553
2554 * image.c <Qlibpng_version>: New variable.
2555 (syms_of_image): Intern and staticpro it. Set its value to the
2556 version of PNG library we were compiled with.
2557 (my_png_error, png_load): Avoid GCC warnings about direct access
2558 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
2559 (png_jmpbuf): New macro.
2560 (my_png_error, png_load): Use it instead of #ifdef'ing according
2561 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 2562
7c420169 25632011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
2564
2565 * .gdbinit (xgetptr): Fix the union+lsb case.
2566 (xbacktrace): Fix the union case.
2567
7c420169 25682011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
2569
2570 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
2571 different from selected-window's.
2572
7c420169 25732011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 2574
71fe378d
EZ
2575 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
2576 equivalent of a menu item when the key sequence is given by the
2577 `:keys' attribute. (Bug#7662)
2578
2e4ab211
EZ
2579 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
2580 the basic faces are supported.
2581
7c420169 25822011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
2583
2584 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
2585
7c420169 25862011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
2587
2588 * xdisp.c (Fformat_mode_line): Fix last change.
2589
7c420169 25902011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
2591
2592 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
2593 faces (Bug#7587).
2594
7c420169 25952011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
2596
2597 * fileio.c (Fexpand_file_name): One more doc fix.
2598
3afff00e
CY
25992011-01-01 Chong Yidong <cyd@stupidchicken.com>
2600
2601 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
2602 image or label in the container.
2603 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
2604 (xg_show_toolbar_item): Function deleted.
2605 (xg_tool_item_stale_p): New function.
2606 (update_frame_tool_bar): Calculate tool-bar style once per call.
2607 Instead of hiding text labels, omit them. Don't use
2608 xg_show_toolbar_item; create new GtkToolItems from scratch if
2609 necessary, instead of trying to re-use them. This avoids an
2610 annoying animation when changing tool-bars.
2611
aeb7e951
JD
26122010-12-31 Jan Djärv <jan.h.d@swipnet.se>
2613
2614 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
2615 title and buffer filename only for RepresentedFilename.
2616 Handle bad UTF-8 in buffer name (Bug#7517).
2617
5bbb4727
JD
26182010-12-30 Jan Djärv <jan.h.d@swipnet.se>
2619
2620 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
2621
2622 * nsfns.m (ns_set_name_iconic): Remove.
2623 (ns_set_name_internal): New function (Bug#7517).
2624 (Vicon_title_format): Extern declare.
2625 (ns_set_name): Call ns_set_name_internal.
2626 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
2627 (x_implicitly_set_name): Ditto.
2628 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
2629 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
2630
f1aab3ff
ŠN
26312010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
2632
2633 * window.c (syms_of_window): Add missing defsubr for
2634 window-use-time.
2635
365525b3
AS
26362010-12-28 Andreas Schwab <schwab@linux-m68k.org>
2637
2638 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
2639 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
2640
59fc5cf9
AS
26412010-12-27 Andreas Schwab <schwab@linux-m68k.org>
2642
2f7c71a1
AS
2643 * buffer.c: Remove unused declarations.
2644 * buffer.h: Likewise.
2645 * charset.h: Likewise.
2646 * composite.h: Likewise.
2647 * dispextern.h: Likewise.
2648 * dispnew.c: Likewise.
2649 * font.h: Likewise.
2650 * fontset.c: Likewise.
2651 * fontset.h: Likewise.
2652 * intervals.h: Likewise.
2653 * keymap.h: Likewise.
2654 * lisp.h: Likewise.
2655 * syntax.c: Likewise.
2656 * syntax.h: Likewise.
2657 * termhooks.h: Likewise.
2658 * window.h: Likewise.
2659 * xsettings.h: Likewise.
2660 * xterm.c: Likewise.
2661 * xterm.h: Likewise.
2662
2663 * chartab.c (sub_char_table_ref): Make static.
2664 * dispnew.c (line_hash_code, required_matrix_height)
2665 (required_matrix_width): Likewise.
2666 * eval.c (interactive_p, apply_lambda): Likewise.
2667 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
2668 Likewise.
2669 * font.c (QCadstyle, QCregistry, font_make_spec)
2670 (font_parse_fcname, font_encode_char, font_at): Likewise.
2671 * frame.c (x_frame_get_arg): Likewise.
2672 * keymap.c (get_keyelt): Likewise.
2673 * lread.c (read_filtered_event): Likewise.
2674 * print.c (write_string_1): Likewise.
2675 * window.c (delete_window, window_height, window_width)
2676 (foreach_window): Likewise.
2677 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
2678 * xterm.c (x_scroll_bar_clear, xembed_set_info)
2679 (xembed_send_message): Likewise.
2680
2681 * eval.c (run_hook_list_with_args): Delete.
2682 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
2683 * terminal.c (get_terminal_param): Likewise.
2684 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
2685
c4b607ed
AS
2686 * scroll.c: Fix comment.
2687
59fc5cf9
AS
2688 * dispnew.c (add_window_display_history)
2689 (add_frame_display_history, glyph_row_slice_p)
2690 (find_glyph_row_slice, flush_stdout)
2691 (check_matrix_pointer_lossage, matrix_row)
2692 (check_matrix_invariants, check_window_matrix_pointers)
2693 (check_matrix_pointers, window_to_frame_vpos)
2694 (window_to_frame_hpos): Prototize.
2695 * textprop.c (erase_properties): Likewise.
2696
a65b85b5
SM
26972010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2698
17870c01
SM
2699 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
2700 (print_preprocess): Fix handling of uninterned symbols in last change.
2701
a65b85b5
SM
2702 * print.c (print, print_preprocess, print_object): Use a hash table
2703 rather than a linear table for Vprint_number_table.
2704
f13183cf
CY
27052010-12-20 Chong Yidong <cyd@stupidchicken.com>
2706
2707 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
2708
94975270
CY
27092010-12-20 Chong Yidong <cyd@stupidchicken.com>
2710
2711 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
2712 (parse_tool_bar_item): Use it to obtain image separators for
2713 displays not using native tool-bar separators.
2714
2715 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
2716 specially, since this is now done in parse_tool_bar_item.
2717
ef1b0ba7
SM
27182010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2719
2720 Minor clean up to silence some gcc warnings.
2721 * window.c (Fset_window_buffer):
2722 * xterm.c (x_set_frame_alpha): Restructure code to silence
2723 compiler warning.
2724 (handle_one_xevent): Remove unused var `p'.
2725 (do_ewmh_fullscreen): Remove unused var `lval'.
2726 (xembed_set_info): Remove unused var `atom'.
2727 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
2728 compiler warning.
2729 * fontset.c (fontset_id_valid_p, dump_fontset):
2730 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
2731 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
2732 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
2733 label only when it's used.
2734 * image.c (x_create_bitmap_from_xpm_data):
2735 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
2736 its callers.
2737 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
2738 `consumed_chars'.
2739 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
2740 (decode_coding_emacs_mule): Remove unused label `retry'.
2741 (detect_eol): Add parens to silence compiler warning.
2742 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
2743 it's used to silence the compiler.
2744 (make_number): Modernize k&r declaration.
2745 (mark_char_table): Add parens to silence compiler warning.
2746
4039c786
CY
27472010-12-17 Chong Yidong <cyd@stupidchicken.com>
2748
2749 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2750 tool-bar maps.
2751 (menu_separator_name_p): New function, from gtkutil.c.
2752 (separator_names): Move from gtkutil.c.
2753
2754 * keyboard.h (menu_separator_name_p): Add prototype.
2755
2756 * gtkutil.c (XG_BIN_CHILD): New macro.
2757 (xg_get_menu_item_label, xg_update_menubar)
2758 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2759 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2760 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
2761 (create_menus, xg_update_submenu, update_frame_tool_bar):
2762 Use menu_separator_name_p.
4039c786
CY
2763
2764 * nsmenu.m (name_is_separator): Function deleted.
2765 (addItemWithWidgetValue): Use menu_separator_name_p.
2766
2767 * w32menu.c (name_is_separator): Function deleted.
2768 (add_menu_item): Use menu_separator_name_p.
2769
aa936e8e
JD
27702010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2771
2772 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2773 same as the background, use the face forground as cursor.
2774
f49d1f52 27752010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
2776
2777 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2778
f49d1f52 27792010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 2780
f0559026
EZ
2781 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
2782 (face_before_or_after_it_pos, next_element_from_string)
2783 (next_element_from_c_string, produce_stretch_glyph): Remove unused
2784 calculations of maximum string length before calling
2785 string_char_and_length and STRING_CHAR_AND_LENGTH.
2786 (string_char_and_length): Update commentary: MAXLEN is no longer
2787 needed.
2788
f49d1f52 27892010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
2790
2791 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
2792 as (Qsave_session arg).
2793
2794 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
2795 (smc_die_CB): Make an event with arg Qt.
2796 (Fhandle_save_session): If event has Qt as argument,
2797 call Fkill_emacs (Bug#7552).
2798
f49d1f52
SM
27992010-12-13 Chong Yidong <cyd@stupidchicken.com>
2800
2801 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
2802
28032010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
2804
2805 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
2806
f49d1f52 28072010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
2808
2809 * dispextern.h (struct it): New member overlay_strings_charpos.
2810
2811 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
2812 charpos where we computed n_overlay_strings.
2813 (next_overlay_string): Load overlay strings at recorded position,
2814 which may not be the same as the iterator's charpos (Bug#7016).
2815
f49d1f52 28162010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
2817
2818 * xdisp.c (try_scrolling): Avoid infloop if the first line is
2819 obscured due to a vscroll (Bug#7537).
2820
f49d1f52 28212010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
2822
2823 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2824
2825 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
2826 Use FRAME_TOOLBAR_HEIGHT.
2827 (x_set_offset): Handle XNegative and YNegative in
2828 f->size_hint_flags (Bug#7510).
2829
39321b94
EZ
28302010-12-11 Eli Zaretskii <eliz@gnu.org>
2831
2832 * w32fns.c (Fx_show_tip): Call try_window with last argument
2833 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
2834 solved. Round up the tip height to an integral multiple of the
2835 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
2836 (Bug#7398)
2837
ec1b9b17
GM
28382010-12-08 Glenn Morris <rgm@gnu.org>
2839
2840 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
2841
3c2317e8
LMI
28422010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
2843
2844 * xml.c (parse_region): Ignore blank HTML nodes.
2845 (make_dom): Return CDATA sections (like <style>foo</style>) as
2846 text nodes.
2847
bba3e508
SM
28482010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2849
2850 * lread.c (read1): Allow newstyle unquote outside of backquote.
2851 Disallow old-style backquotes inside new-style backquotes.
2852 Don't count unquotes to figure out when we're "syntactically inside
2853 but semantically outside of a backquote" any more.
2854 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
2855 to all contexts.
2856
d23d8608
CY
28572010-12-05 Chong Yidong <cyd@stupidchicken.com>
2858
2859 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
2860
d6a003a8
AS
28612010-12-04 Andreas Schwab <schwab@linux-m68k.org>
2862
2863 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
2864 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
2865 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
2866
201ef780
AS
28672010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2868
2869 * lisp.h (union Lisp_Object): Explicitly declare signedness of
2870 bit-field.
2871 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
2872 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
2873 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2874 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2875 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
2876 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
2877 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
2878 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
2879 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
2880 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2881 * m/hp800.h: Remove file.
2882 * m/mips.h: Remove file.
2883
146490c3
JD
28842010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2885
2886 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2887 with cursor color and draw a rectangle around the image (Bug#7412).
2888
babc8f0d
AS
28892010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2890
2891 * frame.c (x_set_font): Remove unused variable.
2892
9583e9a0
JD
28932010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2894
dd723bbd
JD
2895 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2896
9583e9a0
JD
2897 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2898 drawing text under filled box cursor (Bug#7479).
2899
07976ae3 29002010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
2901
2902 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2903 i.e. integer.
bba3e508 2904 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
2905 (init_charset_once): Likewise.
2906
bba3e508
SM
2907 * charset.h (emacs_mule_charset): Adjust the prototype.
2908 Delete duplicated extern.
b84ae584
KH
2909
2910 * coding.c (emacs_mule_char): Adjust for the change of
2911 emacs_mule_charset.
2912
2913 * lread.c (read_emacs_mule_char): Adjust for the change of
2914 emacs_mule_charset.
2915
07976ae3 29162010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
2917
2918 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2919 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2920
07976ae3 29212010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
2922
2923 * alloc.c (mark_terminals): Ensure that the image cache is marked
2924 even if the terminal object was marked earlier (Bug#6301).
2925
35f1de62
CY
29262010-11-21 Chong Yidong <cyd@stupidchicken.com>
2927
2928 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2929
07976ae3 29302010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
2931
2932 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2933 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 2934 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 2935
8547874a
EZ
29362010-11-26 Eli Zaretskii <eliz@gnu.org>
2937
228482b2
EZ
2938 * xdisp.c (set_message_1): Force paragraph direction in echo area
2939 be left-to-right.
2940
8547874a
EZ
2941 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2942 when the click is on the header or mode line.
2943
1e2dddbe
EZ
29442010-11-25 Eli Zaretskii <eliz@gnu.org>
2945
2946 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2947 `cursor' property of the first character in overlay strings.
12365240 2948 (Bug#7474) (Bug#7481)
1e2dddbe 2949
50795d1f
JD
29502010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2951
2952 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2953 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
2954 (keyDown): Parse left and right keys separately (Bug#7458).
2955 Compare Left key masks exactly (Bug#7458).
50795d1f 2956
f8ab8c1f
EZ
29572010-11-23 Eli Zaretskii <eliz@gnu.org>
2958
2959 * intervals.c (temp_set_point_both): Define before calling, to
2960 avoid GCC warnings.
2961
2e8a4797
DN
29622010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
2963
b29116ef
DN
2964 * nsmenu.m: Use #include <config.h> instead of "config.h".
2965
b932f8b1 2966 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 2967 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
2968 Move declarations ...
2969 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 2970 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
2971 ... here.
2972
42c8bc9b
DN
2973 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
2974 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
2975 (gdb_pvec_type):
2976 * print.c (print_output_debug_flag):
2977 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
2978 (safe_debug_print): New declaration.
2979
2e8a4797
DN
2980 * xterm.c:
2981 * systty.h:
2982 * sound.c: Include <sys/ioctl.h> unconditionally.
2983
b609f591
YM
29842010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2985
2986 * alloc.c (mark_maybe_object): Return early if given a Lisp
2987 integer (Bug#6301).
2988
731e263a
KB
29892010-11-21 Ken Brown <kbrown@cornell.edu>
2990
2991 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
2992
b7d1e144
JD
29932010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2994
2995 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
2996 Define (Bug#7458).
2997 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
2998 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
2999 NSRightControlKeyMask also (Bug#7458).
3000 (keyDown): Ditto (Bug#7458).
3001 (syms_of_nsterm): Defvar ns-right-command-modifier and
3002 ns-right-control-modifier (Bug#7458).
3003
b7982059
DN
30042010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3005
bee3419f
DN
3006 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3007 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3008
b7982059
DN
3009 * intervals.h (temp_set_point, temp_set_point_both):
3010 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3011
01664ed1
KB
30122010-11-20 Ken Brown <kbrown@cornell.edu>
3013
3014 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3015
7c2d713b
EZ
30162010-11-20 Eli Zaretskii <eliz@gnu.org>
3017
3018 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3019 \xNNNNNN for hex-code display of glyphless characters.
3020
d2bd5189
JD
30212010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3022
3023 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3024 Set important to ! vert_only.
3025 (xg_show_toolbar_item): Don't show label horizontally if
3026 tool item isn't important.
3027 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3028 xg_make_tool_item, or update important on existing tool item.
3029
3030 * keyboard.c (QCvert_only): New variable.
3031 (parse_tool_bar_item): Check for QCvert_only.
3032 (syms_of_keyboard): Initialize QCvert_only.
3033
3034 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3035
d9a95e67
EZ
30362010-11-20 Eli Zaretskii <eliz@gnu.org>
3037
3038 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3039 same in-line.
3040
b6557553
AS
30412010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3042
3043 * xfaces.c (lookup_face): Make static.
3044 * dispnew.c (copy_row_except_pointers): Likewise.
3045 * syntax.c (dec_bytepos): Likewise.
3046 (inc_bytepos): Remove.
3047 * dispextern.h (lookup_face): Remove declaration.
3048
f48fe1f0
EZ
30492010-11-19 Eli Zaretskii <eliz@gnu.org>
3050
3051 * xdisp.c (set_cursor_from_row): Display cursor after all the
3052 glyphs that come from an overlay. Don't overstep the last glyph
3053 when skipping glyphs from an overlay. (Bug#6687)
3054
654ef137
DN
30552010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3056
84dfc8a7
DN
3057 * alloc.c (refill_memory_reserve): Move declaration ...
3058 * lisp.h (refill_memory_reserve): ... here.
3059
94fa3833
DN
3060 * strftime.c (_strftime_copytm): Add declaration.
3061
dde990a0
DN
3062 * callproc.c (syms_of_callproc): Use intern_c_string.
3063
50c77428
DN
3064 Move declarations from .c files to .h files.
3065 * process.c (timers_run):
3066 * minibuf.c (quit_char):
3067 * lread.c (read_emacs_mule_char):
3068 * keyboard.c (minibuf_level, message_enable_multibyte)
3069 (pending_malloc_warning):
3070 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3071 (Qonly): Remove declarations.
3072 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3073 (Vselect_active_regions):
2f8f196d 3074 * keyboard.h (timers_run): Add declarations.
50c77428 3075
654ef137
DN
3076 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3077 (tm_diff): Convert definitions to standard C.
3078 (extra_args_spec_iso): Remove, unused.
3079
4a47c275 30802010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
3081
3082 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3083
3084 * config.in (HAVE_G_TYPE_INIT): New symbol.
3085
4a47c275 30862010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
3087
3088 * lread.c (Fload): Mention `load-in-progress' and
3089 `load-file-name'. (Bug#7346)
3090
86520d8c
EZ
3091 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3092 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3093 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3094 subprocesses. Use buffer_free only ifdef subprocesses.
3095
3096 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3097 the subprocesses version, not in the non-subprocesses one.
3098
794a4b6d
EZ
3099 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3100
146d267b
EZ
31012010-11-17 Eli Zaretskii <eliz@gnu.org>
3102
3103 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3104 lines on text-mode terminals. (bug#7417)
3105
fad0d565
SM
31062010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3107
3108 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3109 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3110
6b4bb703
KH
31112010-11-17 Kenichi Handa <handa@m17n.org>
3112
3113 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3114 change (set charset-ID list instead of charset-symbol list).
3115
9173a8fb
CY
31162010-11-16 Chong Yidong <cyd@stupidchicken.com>
3117
3118 * keyboard.c (make_lispy_position): For text area clicks, record Y
3119 pixel position relative to the text area, excluding header line.
3120 Also change X and Y to Lisp_Objects, not pointers; don't return
3121 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3122 buffer_posn_from_coords counting from the start of the text area.
3123 (Fposn_at_x_y, make_lispy_event): Callers changed.
3124
3125 * window.c (coordinates_in_window): Change X and Y to ints rather
3126 than pointers; don't return coordinates via pointers.
3127 (struct check_window_data): Change X and Y from pointers to ints.
3128 (window_from_coordinates): Remove args WX and WY; don't return
3129 coordinates via pointers.
3130 (Fcoordinates_in_window_p, window_from_coordinates):
3131 (check_window_containing, Fwindow_at): Callers changed.
3132 (window_relative_x_coord): New function.
3133
3134 * window.h (window_from_coordinates, window_relative_x_coord):
3135 Update prototypes.
3136
3137 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3138 the start of the text area.
3139
3140 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3141 call. Use window_relative_x_coord.
3142 (note_mouse_highlight): Change window_from_coordinates call.
3143
3144 * w32term.c (w32_read_socket):
3145 * msdos.c (dos_rawgetc):
3146 * xterm.c (handle_one_xevent): Likewise.
3147
d2762c86
DN
31482010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3149
3150 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3151 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3152 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3153 Convert definitions to standard C.
3154 * regex.c: Do not include <stdlib.h>, config.h does it.
3155 Include unistd.h.
3156 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3157 (regerror, regfree): Convert definitions to standard C.
3158 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3159 (__mktime_internal): Convert definitions to standard C.
3160
c2f0866a
DN
31612010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3162
42a7e7f1
DN
3163 * w32proc.c:
3164 * w32inevt.c:
3165 * w32heap.c:
3166 * w32.c: Remove config.h include guards.
3167
67802943
DN
3168 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3169 No code changes.
3170
f0e1af46
DN
3171 * process.c: Include <sys/ioctl.h> unconditionally,
3172 keyboard.c already does it.
3173
c2f0866a
DN
3174 * keyboard.c (pending_malloc_warning): Add const to match
3175 definition in alloc.c.
3176 (Fset_input_interrupt_mode): Simplify #ifdefs.
3177
92d3ab7e
DN
31782010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3179
12e610e8
DN
3180 Clean up systty.h macros.
3181 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3182 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3183 definition in all uses.
3184 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3185 * sysdep.c (discard_tty_input, child_setup_tty)
3186 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3187 * emacs.c (shut_down_emacs):
3188 * callproc.c (child_setup):
3189 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3190
92d3ab7e
DN
3191 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3192
a3e6bad4
CY
31932010-11-14 Chong Yidong <cyd@stupidchicken.com>
3194
3195 * w32fns.c (Fx_create_frame):
3196 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3197 resource here; it's now done at startup.
3198
5a232ffb
J
31992010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3200
3201 * xterm.c (set_wm_state): Add Qnil to final cons.
3202
3203 * xselect.c (x_send_client_event): Remove unused variables cons and
3204 size.
3205
24021b38
YM
32062010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3207
2f8f196d 3208 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
3209 arg NAME_TABLE.
3210 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3211 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3212 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3213 Add const to array elements.
3214 (scroll_bar_parts): Make static. Fix position of const.
3215
3216 * w32fns.c (lispy_function_keys): Add const to extern.
3217
3218 * w32inevt.c (lispy_function_keys): Likewise.
3219
afa42fe3
CY
32202010-11-14 Chong Yidong <cyd@stupidchicken.com>
3221
3222 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3223 resource here; it's now done at startup.
3224
53260a94
DN
32252010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3226
c865c575 3227 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 3228
c865c575 3229 Fix compilation on Solaris.
ff2e8052
DN
3230 * sysdep.c: Do not #include <term.h>.
3231 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3232
53260a94
DN
3233 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3234
933e29ff
J
32352010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3236
3237 * xterm.c (set_wm_state): Don't put Atom in cons, call
3238 make_fixnum_or_float on them first.
3239 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3240 Xatom_net_supported correctly.
3241
3242 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3243 (Fx_send_client_event): to here.
3244
a048073e
MR
32452010-11-13 Martin Rudalics <rudalics@gmx.at>
3246
3247 * window.c (Fwindow_use_time): New function.
3248
0eb025fb
EZ
32492010-11-13 Eli Zaretskii <eliz@gnu.org>
3250
3251 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3252 zero-width characters.
3253
3254 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3255
3256 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3257 box before drawing the glyphs inside it.
3258
3259 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3260
bba3e508
SM
3261 * dispextern.h (enum glyphless_display_method):
3262 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3263 All users changed.
0eb025fb 3264
bba3e508
SM
3265 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3266 Fix comments.
0eb025fb
EZ
3267 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3268 whitespace in "[]", to simulate a box. Don't use uninitialized
3269 variable `width'.
3270
c869cc37
JD
32712010-11-11 Julien Danjou <julien@danjou.info>
3272
2d9074ba
JD
3273 * xsettings.c (init_xsettings): Use already fetch atoms.
3274
3275 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3276 from dpyinfo.
3277
3278 * xselect.c (Fx_send_client_event): Split and create
3279 x_send_client_event.
3280
3281 * lisp.h: Do not EXFUN Fx_send_client_event.
3282
3283 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3284 from dpyinfo.
3285 (wm_supports): Use atoms from dpyinfo.
3286 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3287 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3288 (xembed_set_info): Use atoms from dpyinfo.
3289 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3290 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3291 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3292 Get all atoms in one round-trip.
3293 (set_wm_state): Use x_send_client_event rather than
3294 Fx_send_client_event, using Atom directly.
3295 (x_ewmh_activate_frame): Ditto.
3296 (x_set_sticky): Pass atoms to set_wm_state.
3297 (do_ewmh_fullscreen): Ditto.
3298
2d9074ba
JD
3299 * xterm.h (x_display_info): Add Xatom_net_supported,
3300 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3301 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3302
c869cc37
JD
3303 * xfns.c (Fx_show_tip): Fix typo in docstring.
3304
1a4236ea
SM
33052010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3306
3307 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3308 it's not negative.
3309
3106121c
YM
33102010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3311
3312 * font.c (font_filter_properties): Add const to array elements of
3313 properties args.
3314
3315 * font.h (font_filter_properties): Likewise.
3316
3317 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3318 elements.
3319
3320 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3321
da1fec2b
MA
33222010-11-10 Michael Albinus <michael.albinus@gmx.de>
3323
3324 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3325 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3326 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3327 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3328 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3329
bd6bc222
GM
33302010-11-10 Glenn Morris <rgm@gnu.org>
3331
3332 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3333
c0098065
EZ
33342010-11-09 Eli Zaretskii <eliz@gnu.org>
3335
bd6bc222 3336 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 3337
d607b96b 33382010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
3339
3340 * image.c (free_image): Don't garbage the frame here, since this
3341 function can be called while redisplaying (Bug#7210).
3342 (uncache_image): Garbage the frame here (Bug#6426).
3343
d607b96b 33442010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 3345
d607b96b
SM
3346 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3347 parent is the root window. Check this after traversing window tree.
184765cc 3348
d607b96b 3349 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 3350
d607b96b 3351 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 3352
d607b96b
SM
3353 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3354 before traversing window tree (Bug#5721).
c2e124a9 3355
27f92be7
J
33562010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3357
66b16767
J
3358 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3359
25f38310
SM
3360 * xdisp.c (note_mode_line_or_margin_highlight):
3361 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 3362
a971c0a7
EZ
33632010-11-06 Eli Zaretskii <eliz@gnu.org>
3364
3365 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3366 adjust width of tool-tip frame to the width of text, excluding the
3367 stretch glyph at the beginning of R2L glyph rows.
3368
3369 * w32fns.c (Fx_show_tip): Likewise.
3370
80417b95
JD
33712010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3372
3373 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 3374 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 3375
28118eb6
EZ
33762010-11-05 Eli Zaretskii <eliz@gnu.org>
3377
c1fc2d3a 3378 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
3379
3380 * term.c: Remove static mouse_face_* variables. All users
3381 changed.
3382 (term_show_mouse_face, term_clear_mouse_face)
3383 (fast_find_position, term_mouse_highlight): Functions deleted.
3384 (tty_draw_row_with_mouse_face): New function.
3385 (term_mouse_movement): Call note_mouse_highlight instead of
3386 term_mouse_highlight.
3387
bbf534ce
EZ
3388 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3389 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3390 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3391 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3392 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3393 Replace Display_Info with Mouse_HLInfo everywhere where
3394 mouse_face_* members were accessed for mouse highlight purposes.
3395
3396 * xterm.c (x_update_window_begin, x_update_window_end)
3397 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
3398 (handle_one_xevent, x_free_frame_resources, x_term_init):
3399 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
3400 members were accessed for mouse highlight purposes.
3401
3402 * w32term.c (x_update_window_begin, x_update_window_end)
3403 (x_update_end, w32_read_socket, x_free_frame_resources)
3404 (w32_initialize_display_info): Replace Display_Info with
3405 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3406 for mouse highlight purposes.
3407
3408 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3409 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3410 unless the frame is on a window-system.
c1fc2d3a 3411 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
3412 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3413 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3414 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3415 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3416 Replace Display_Info with Mouse_HLInfo everywhere where
3417 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 3418 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
3419 HAVE_WINDOW_SYSTEM conditional.
3420 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3421 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
3422 (try_window_id) [HAVE_GPM || MSDOS]:
3423 Call x_clear_window_mouse_face.
d009ae66 3424 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
3425 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3426 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3427 calling draw_glyphs directly.
d009ae66
EZ
3428 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3429 (cursor_in_mouse_face_p, rows_from_pos_range)
3430 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3431 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3432 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3433 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3434 fragments.
3435 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3436 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3437 integer.
3438 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
3439 (x_consider_frame_title, tool_bar_lines_needed):
3440 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
3441 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3442 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3443 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3444 part.
d009ae66
EZ
3445
3446 * dispnew.c (mirror_make_current): Set Y coordinate of the
3447 mode-line and header-line rows.
c1fc2d3a
EZ
3448 (init_display): Setup initial frame's output_data for text
3449 terminal frames.
d009ae66 3450
c1fc2d3a
EZ
3451 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3452 its own definition on msdos.c.
d009ae66
EZ
3453
3454 * msdos.c (show_mouse_face, clear_mouse_face)
3455 (fast_find_position, IT_note_mode_line_highlight)
3456 (IT_note_mouse_highlight): Functions deleted.
3457 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3458 instead of IT_note_mouse_highlight.
3459 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
3460 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3461 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3462 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3463 where mouse_face_* members were accessed for mouse highlight
3464 purposes.
3465
3466 * msdos.h (initialize_msdos_display): Add prototype.
3467
3468 * frame.h (MOUSE_HL_INFO): New macro.
3469
3470 * lisp.h (Mouse_HLInfo): New data type.
3471
3472 * xterm.h (struct x_display_info):
3473 * w32term.h (struct w32_display_info):
3474 * nsterm.h (struct ns_display_info):
3475 * termchar.h (struct tty_display_info): Use it instead of
3476 mouse_face_* members.
3477
3478 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3479 1st argument.
3480 (frame_to_window_pixel_xy, note_mouse_highlight)
3481 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3482 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3483 HAVE_WINDOW_SYSTEM conditional.
3484 (draw_row_with_mouse_face): Declare prototype.
3485 (tty_draw_row_with_mouse_face): Declare prototype.
3486
6e8d7c47
EZ
34872010-11-05 Eli Zaretskii <eliz@gnu.org>
3488
bba3e508
SM
3489 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3490 Remove unused variables.
6e8d7c47 3491
f31ba3f0
AR
34922010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3493
3494 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3495 logic pointed out by Eli Zaretskii.
3496
448e17d6
LMI
34972010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3498
0c3a9a9f
GM
3499 * coding.c (coding-category-list): Refer to set-coding-system-priority
3500 instead of the obsolete set-coding-priority in the doc string.
448e17d6 3501
3fdebbf9 35022010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 3503
2f8f196d 3504 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
3505 correct value.
3506 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3507 don't change the method signature, change the return.
3508
35092010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
3510
3511 * nsfont.m (nsfont_draw)
3512 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 3513 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 3514
17c0c952
JD
35152010-11-03 Julien Danjou <julien@danjou.info>
3516
3517 * image.c (gif_load): Add support for transparency and specified
3518 :background.
3519
b18fad6d
KH
35202010-11-01 Kenichi Handa <handa@m17n.org>
3521
3522 * dispextern.h (lookup_glyphless_char_display): Extern it.
3523
3524 * termhooks.h (struct terminal): New member charset_list.
3525
3526 * coding.c (Fset_terminal_coding_system_internal): Set the
3527 `charset_list' member of struct terminal.
3528
a8039db1 3529 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
3530 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3531
3532 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3533 (lookup_glyphless_char_display): Set it->what at the end.
3534 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3535 (last_glyphless_glyph_merged_face_id): Make them non-static.
3536
a8039db1
JB
3537 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3538 Fix the arg with_background for font->driver->draw.
65b6b59a 3539
a8039db1 35402010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 3541
a8039db1
JB
3542 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3543 Surround chp by parentheses.
0269bd90 3544
a8039db1 35452010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
3546
3547 Implement various display methods for glyphless characters.
3548
3549 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
3550 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
3551 (Qzero_width): New variables.
3552 (THIN_SPACE_WIDTH): New macro.
01c35094 3553 (lookup_glyphless_char_display): New function.
b2cca856
KH
3554 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3555 (last_glyphless_glyph_merged_face_id): New variables.
3556 (get_next_display_element): Check glyphless characters.
3557 (redisplay_internal): Initialize last_glyphless_glyph_frame and
3558 last_glyphless_glyph_face_id.
3559 (fill_glyphless_glyph_string): New function.
3560 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
3561 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
3562 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3563 (x_produce_glyphs): If a suitable font is not found, produce a
3564 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
3565 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
3566 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
3567 Qzero_width.
3568 (Vglyphless_char_display): Declare it as a Lisp variable.
3569
3570 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
3571 (struct glyph): Change the size of the member "type" to 3.
3572 Add glyphless to the union slice and u.
b2cca856
KH
3573 (enum display_element_type): Add IT_GLYPHLESS.
3574 (enum glyphless_display_method): New enum.
3575 (struct it): New member glyphless_method.
3576 (Vglyphless_char_display): Extern it.
3577
3578 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
3579 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3580
a8039db1 3581 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
3582 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3583
3584 * nsterm.m (ns_draw_glyph_string): Handle the case
3585 GLYPHLESS_GLYPH (the detail is not yet implemented).
3586
c8c59954
GM
35872010-10-31 Glenn Morris <rgm@gnu.org>
3588
80696982
GM
3589 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
3590
c8c59954
GM
3591 * frame.c (syms_of_frame) <tool-bar-mode>:
3592 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
3593
46eadc7a
CY
35942010-10-31 Chong Yidong <cyd@stupidchicken.com>
3595
3596 * xterm.c (x_connection_closed): Print informative error message
3597 when aborting on GTK. This requires using shut_down_emacs
3598 directly instead of Fkill_emacs.
3599
ffe75e6b
EZ
36002010-10-29 Eli Zaretskii <eliz@gnu.org>
3601
3602 * emacs.c (main): Call syms_of_filelock unconditionally.
3603
3604 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
3605 clause, but keep part of it conditioned on CLASH_DETECTION.
3606
9d794026
GM
36072010-10-29 Glenn Morris <rgm@gnu.org>
3608
4f4f2973
GM
3609 * nsfns.m (Fx-display-save-under, Fx-open-connection)
3610 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
3611 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
3612 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
3613 Sync docs between X, W32, NS.
3614
9d794026
GM
3615 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
3616 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
3617
d46f6bbb
JB
36182010-10-26 Juanma Barranquero <lekktu@gmail.com>
3619
3620 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
3621 otherwise, bootstrapping on Windows fails to compile macroexp.el.
3622
2e35f1a2
EZ
36232010-10-26 Eli Zaretskii <eliz@gnu.org>
3624
3625 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 3626 zero or negative. (Bug#7281)
2e35f1a2 3627
8daaeda6
J
36282010-10-26 Jan Djärv <jan.h.d@swipnet.se>
3629
3630 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
3631
6a5c2175
GM
36322010-10-25 Glenn Morris <rgm@gnu.org>
3633
3634 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
3635
7c051dd8
GM
36362010-10-24 Glenn Morris <rgm@gnu.org>
3637
3638 * w32fns.c (Fx_synchronize, Fx_change_window_property)
3639 (Fx_window_property, Fx_file_dialog):
3640 * xfns.c (Fx_synchronize, Fx_change_window_property)
3641 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
3642
23c261f5
CY
36432010-10-24 Chong Yidong <cyd@stupidchicken.com>
3644
3645 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
3646
d414c713 36472010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
3648
3649 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
3650
3651 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
3652 Deprecate use as a boolean flag.
3653
947f5e01
JM
36542010-10-24 Jim Meyering <jim@meyering.net>
3655
3656 * emacs.c (argmatch): Don't treat "--" as "--chdir".
3657
65807d73
GM
36582010-10-24 Glenn Morris <rgm@gnu.org>
3659
f5f25615
GM
3660 * w16select.c (syms_of_win16select) <selection-coding-system>:
3661 <next-selection-coding-system>:
3662 * w32select.c (syms_of_w32select) <selection-coding-system>:
3663 <next-selection-coding-system>:
3646b86d
GM
3664 Sync docs with select.el.
3665
46710489
GM
3666 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
3667 Lisp version.
3668
ea883883
GM
3669 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3670 Sync doc with the xterm.c version.
3671
65807d73
GM
3672 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
3673 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
3674
f3d87560
GM
36752010-10-23 Glenn Morris <rgm@gnu.org>
3676
66c6abf0 3677 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 3678 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 3679 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 3680 <hourglass-delay>: Sync docs with Lisp.
f3d87560 3681
7b7e2c18
EZ
36822010-10-23 Eli Zaretskii <eliz@gnu.org>
3683
d1d6801e 3684 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
3685
3686 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
3687 (mouse_face_from_string_pos): New function, replaces
3688 fast_find_string_pos.
3689 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
3690 (note_mode_line_or_margin_highlight): Support bidi-reordered
3691 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
3692 (note_mouse_highlight): When bidi reordering is turned on in a
3693 buffer, call next-single-property-change and
ef1b0ba7
SM
3694 previous-single-property-change with last argument nil.
3695 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 3696 glyph that stands for no text beyond the line end.
1f382a02
EZ
3697 (row_containing_pos): Don't return too early when CHARPOS is in a
3698 bidi-reordered continued line. Return immediately when the first
3699 hit is found in a line that is not continued, or when an exact
3700 match for CHARPOS is found.
d1d6801e
EZ
3701 (rows_from_pos_range): New function.
3702 (mouse_face_from_buffer_pos): Use it instead of calling
3703 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
3704 function to support mouse highlight in bidi-reordered lines and
3705 not to assume that START_CHARPOS is always in mouse_face_beg_row.
3706 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
3707 that the former is always above the latter or identical to it.
1554d88e 3708 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
3709 (coords_in_mouse_face_p): New function, bidi-aware.
3710 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
3711 Call it instead of comparing with mouse-face members of dpyinfo.
3712 (note_mode_line_or_margin_highlight): Fix confusingly swapped
3713 usage of hpos and vpos.
544bbc31 3714
dee186b6
J
37152010-10-22 Jan Djärv <jan.h.d@swipnet.se>
3716
3717 * xrdb.c: Include keyboard.h for MOTIF.
3718
3719 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
3720 MOTIF (Bug#7263).
3721
3722 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
3723 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
3724 Make ANSI prototypes.
dee186b6 3725
5fb59edb
GM
37262010-10-22 Glenn Morris <rgm@gnu.org>
3727
3728 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
3729 Remove ccl and duplicate mouse.
3730
8b78d5e3
CY
37312010-10-21 Chong Yidong <cyd@stupidchicken.com>
3732
3733 * insdel.c (prepare_to_modify_buffer): Don't set
3734 saved-region-selection if modification hooks are disabled.
3735
b8a47412
CY
37362010-10-19 Chong Yidong <cyd@stupidchicken.com>
3737
3738 * cmds.c (Fdelete_char): Doc fix.
3739
ca3fa302 37402010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
3741
3742 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
3743
ca3fa302 37442010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
3745
3746 Fix incorrect font metrics when the same font is opened with
3747 different pixelsizes.
3748
3749 * xftfont.c: Include composite.h.
3750 (xftfont_shape): New function.
3751 (syms_of_xftfont): Set xftfont_driver.shape.
3752
c978536f
JD
37532010-10-18 Julien Danjou <julien@danjou.info>
3754
3755 * frame.c (Fframe_pointer_visible_p):
3756 Add `frame-pointer-visible-p' to get the pointer visibility.
3757
4b2d9ec2
LMI
37582010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3759
3760 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3761 non-"EAGAIN"-like error to signal to Emacs that the socket should
3762 be closed.
3763
9cf66cf2
EZ
37642010-10-15 Eli Zaretskii <eliz@gnu.org>
3765
c3911ead
EZ
3766 * unexcoff.c (make_hdr): Fix prototype according to changes in
3767 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3768
9cf66cf2
EZ
3769 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3770
be98da05
TH
37712010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3772
3773 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3774 made building the X menu fail.
cc98b256 3775 (really-oldXMenu): Fix my previous fix.
be98da05 3776
220d91b8 37772010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
3778
3779 Fix handling of font properties on Windows (bug#6303).
3780 * font.c (font_filter_properties): New function, refactored from
3781 ftfont_filter_properties.
3782 * font.h (font_filter_properties): Declare.
3783 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
3784 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
3785 (w32font_filter_properties): New function.
3786 (w32font_driver): Add w32font_filter_properties.
3787
220d91b8 37882010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 3789
c0943d3d 3790 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
3791 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
3792
24f981c9
JB
37932010-10-14 Juanma Barranquero <lekktu@gmail.com>
3794
3795 * w32fns.c (w32_wnd_proc, file_dialog_callback):
3796 * w32font.c (w32_generic_family):
3797 * w32inevt.c (key_event):
3798 * w32menu.c (fill_in_menu):
3799 * w32proc.c (reader_thread, w32_executable_type, compare_env)
3800 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
3801 * w32term.c (w32_read_socket): Make static.
3802
850690cc
JB
38032010-10-13 Juanma Barranquero <lekktu@gmail.com>
3804
3805 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
3806 prototypes; all callers changed.
3807
5e371708
JB
38082010-10-13 Juanma Barranquero <lekktu@gmail.com>
3809
3810 * makefile.w32-in (TLIB2): Rename from TLIBW32.
3811 (OBJ2): New macro.
3812 (WIN32OBJ, FONTOBJ): Remove.
3813 (OBJ1): Redistribute object files with OBJ2.
3814 (LIBS, $(TEMACS)): Use TLIB2.
3815 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
3816 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
3817
2e288d54
JB
38182010-10-13 Juanma Barranquero <lekktu@gmail.com>
3819
3820 * emacs.c (Vdynamic_library_alist)
3821 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
3822 Doc fix.
3823
3824 * lisp.h (Vdynamic_library_alist): Declare extern.
3825
3826 * image.c (Vimage_library_alist)
3827 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
3828 (lookup_image_type): Use Vdynamic_library_alist.
3829 (Finit_image_library): Doc fix.
3830
aba1381b
DN
38312010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
3832
3833 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
3834 (lispdir): Remove trailing /, update all uses.
3835
4c14013d 38362010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
3837
3838 * nsterm.m (Qleft): Declare.
01c35094 3839 (ns_right_alternate_modifier): New variable.
a2e35ef5
JD
3840 (NSRightAlternateKeyMask): New define.
3841 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
3842 ns_right_alternate_modifier isn't Qleft.
3843 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
3844 as emacs modifier for NSRightAlternateKeyMask.
3845 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
3846
355cdaf3
LMI
38472010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
3848
3849 * gnutls.c (emacs_gnutls_write): If we're trying to write before
3850 gnutls is ready, return EAGAIN as the errno.
3851
4c620157
DN
38522010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
3853
edfd76ce
DN
3854 * vm-limit.c:
3855 * unexhp9k800.c:
3856 * unexelf.c:
3857 * unexaix.c:
3858 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
3859
a4daeecf
DN
3860 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
3861 (PROFILING_LDFLAGS): Remove, not needed anymore.
3862
01c35094 3863 * Makefile.in: Use $(...) everywhere instead of ${...}.
4cf3ad30
DN
3864 (CRT_DIR): Move near potential user.
3865 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 3866
4c620157
DN
3867 * sysdep.c (LPASS8): Remove, unused.
3868 (emacs_ospeed): Change from being a global to a local in the only
3869 user: init_baud_rate.
3870
b845653d
LMI
38712010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3872
3873 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 3874 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 3875 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 3876 gnutls_read. This allows us to actually read lots of data from
b845653d 3877 the GnuTLS stream.
2e6c74c5
LMI
3878 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3879 According to the documentation, this is correct, and it seems to
3880 make things work.
b845653d 3881
3625b3e2
CY
38822010-10-09 Chong Yidong <cyd@stupidchicken.com>
3883
3884 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3885
8b1c619f
MA
38862010-10-08 Michael Albinus <michael.albinus@gmx.de>
3887
3888 * keyboard.c: Revert last change; it was not intended to be
3889 synchronized with the trunk.
3890
93d50df8
KH
38912010-10-08 Kenichi Handa <handa@m17n.org>
3892
2b7c9342 3893 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 3894
4628bef1 38952010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
3896
3897 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3898 (Fdbus_init_bus): ... here. (Bug#7113)
3899
4628bef1 39002010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
3901
3902 * buffer.c (before-change-functions, after-change-functions):
3903 Three-year overdue doc fix following 2007-08-13 change.
3904
4628bef1 39052010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
3906
3907 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3908 eol-format, inherit from the system's default.
3909 (complement_process_encoding_system): Make a new coding system
3910 inherit the original eol-format.
3911
4628bef1 39122010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
3913
3914 * coding.c (complement_process_encoding_system): New function.
3915
3916 * coding.h (complement_process_encoding_system): Extern it.
3917
3918 * callproc.c (Fcall_process): Complement the coding system for
3919 encoding arguments.
3920 (Fcall_process_region): Complement the coding system for encoding
3921 the input to the process.
3922
3923 * process.c (Fstart_process): Complement the coding system for
3924 encoding arguments.
3925 (send_process): Complement the coding system for encoding what
3926 sent to the process.
3927
4628bef1 39282010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
3929
3930 * xfont.c (xfont_open): Fix setting of font->average_width from
3931 :avgwidth property (Bug#7123).
3932
4628bef1 39332010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
3934
3935 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3936 is more portable.
3937
3938 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 3939 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
3940 has not defined SIGIO.
3941
389454fb
CY
39422010-10-08 Chong Yidong <cyd@stupidchicken.com>
3943
3944 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3945 draw the outermost line using the black relief, for legibility.
3946 Omit drawing the four corner pixels.
3947
51b403bd
CY
39482010-10-04 Chong Yidong <cyd@stupidchicken.com>
3949
3950 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3951 (read_key_sequence): Inline echo_prompt.
3952 (echo_dash): Add a dash only if key is continued (Bug#7137).
3953
3e6ae1a4
DN
39542010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
3955
3956 Remove O_RDONLY, O_WRONLY definitions, not needed.
3957 * unexcoff.c:
3958 * lread.c:
3959 * fileio.c:
3960 * doc.c:
3961 * callproc.c:
3962 * alloc.c:
3963 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
3964
c1ae068b
LMI
39652010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
3966
3967 * gnutls.h (GNUTLS_LOG2): Convenience macro.
3968
3969 * gnutls.c: Add property list symbol holders.
3970 (emacs_gnutls_handshake): Clarify how sockets are passed to
3971 GnuTLS.
3972 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
3973 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
3974 and keyfiles to be a list of file names. Default to "NORMAL" for
3975 the priority string. Improve logging.
3976
e2afe435
GM
39772010-10-03 Glenn Morris <rgm@gnu.org>
3978
3979 * fileio.c (Vdirectory_sep_char): Remove.
3980
dd5ecd6b
DN
39812010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
3982
b5437a05
DN
3983 * termhooks.h: Remove #ifdef CONSP.
3984
4777478a
DN
3985 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
3986
a3d5088d
DN
3987 Include <fcntl.h> unconditionally.
3988 * termcap.c:
3989 * sysdep.c:
3990 * lread.c:
3991 * keyboard.c:
3992 * filelock.c:
3993 * fileio.c:
3994 * doc.c:
3995 * callproc.c:
3996 * alloc.c: Remove include guards for <fcntl.h>, process.c already
3997 does it.
3998
82719735
DN
3999 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4000
9de940b5
DN
4001 * sysdep.c (flush_pending_output): Remove code, does not do
4002 anything on any platform.
4003
57507bf8 4004 Remove unused code.
bba3e508
SM
4005 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4006 Remove select emulation, all systems support select.
57507bf8
DN
4007 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4008 * process.c (create_process): Remove #if 0 code.
4009
dd5ecd6b
DN
4010 Remove unused arguments for unexec.
4011 The third one is never used, and the last two are always passed as zero.
4012 * emacs.c (unexec): Add declaration.
4013 (Fdump_emacs): Only pass the first two arguments to unexec.
4014 Simplify #ifdef.
4015 * unexw32.c (unexec):
4016 * unexsol.c (unexec):
4017 * unexhp9k800.c (unexec):
4018 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4019 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4020 (find_section): Use const.
4021 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4022 (unexec_error): Declare it NO_RETURN.
4023 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4024 it as an argument, remove data_start and entry_address arguments, unused.
4025 (unexec): Remove bss_start, data_start and
4026 entry_address arguments.
4027 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4028 it as an argument, remove data_start and entry_address arguments, unused.
4029 (unexec): Remove bss_start, data_start and
4030 entry_address arguments.
4031
74f1829d
JB
40322010-10-03 Juanma Barranquero <lekktu@gmail.com>
4033
7f467e14
JB
4034 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4035
74f1829d
JB
4036 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4037 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4038 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4039 Fix typos in docstrings.
4040 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4041 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4042
6926550f
CY
40432010-10-03 Chong Yidong <cyd@stupidchicken.com>
4044
4045 * keyboard.c (command_loop_1): Make sure the mark is really alive
4046 before using it (Bug#7044).
4047
54b65f7b
JB
40482010-10-02 Juanma Barranquero <lekktu@gmail.com>
4049
4050 * makefile.w32-in (tags): Rename target to full-tags.
4051
383ebd15
EZ
40522010-10-02 Eli Zaretskii <eliz@gnu.org>
4053
4054 * emacs.c (main): Remove !WINDOWSNT conditional.
4055 (Fkill_emacs): Don't mention exemption on MS-Windows.
4056
9c524fcb
GM
40572010-10-02 Glenn Morris <rgm@gnu.org>
4058
3226d6ca
GM
4059 * character.c (Fchar_bytes): Remove obsolete function.
4060 (syms_of_character): Remove Schar_bytes.
4061
9c524fcb
GM
4062 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4063 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4064 in batch-mode.
4065 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4066 (kill-emacs-hook): Doc fix.
4067
1b217849
LMI
40682010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4069
4070 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 4071 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
4072 renamed to reflect that these are the libxml functions.
4073
54cc6a83
EZ
40742010-10-01 Eli Zaretskii <eliz@gnu.org>
4075
0ebf79de
EZ
4076 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4077 screen dimensions in tty->Wcm.
4078
54cc6a83
EZ
4079 * xdisp.c (set_cursor_from_row): When the row is truncated and
4080 point is outside the range of displayed characters, position the
4081 cursor inside the scroll margin. (Bug#6349)
4082
321401d1
DN
40832010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4084
4cacd822
DN
4085 Do not include stdlib.h and string.h, config.h does it.
4086 * xfont.c:
4087 * w32term.c:
4088 * w32reg.c:
4089 * w32inevt.c:
4090 * w32heap.c:
4091 * w32console.c:
4092 * w16select.c:
4093 * unexsol.c:
4094 * term.c:
4095 * sound.c:
4096 * scroll.c (m):
4097 * gtkutil.c:
4098 * font.c:
4099 * filelock.c:
4100 * fileio.c:
4101 * dosfns.c:
4102 * dbusbind.c:
4103 * bidi.c:
4104 * callproc.c:
4105 * process.c:
4106 * msdos.c:
4107 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4108
bba3e508
SM
4109 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4110 defines it.
0781e7ab 4111
9bf58201
DN
4112 * process.c: Move #include <pty.h> earlier.
4113 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4114 (pty_name): Move definition later.
4115
088dcc3e
DN
4116 * nsselect.m (syms_of_nsselect):
4117 * nsmenu.m (syms_of_nsmenu):
4118 * nsfns.m (syms_of_nsfns):
4119 * msdos.c (syms_of_msdos):
4cacd822 4120
088dcc3e
DN
4121 * image.c (syms_of_image):
4122 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4123
321401d1
DN
4124 * point.h: Remove, unused.
4125
73077a9a
EZ
41262010-10-01 Eli Zaretskii <eliz@gnu.org>
4127
4128 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4129 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4130 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4131
55e572ef
DN
41322010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4133
4134 * xml.c (parse_string): Use const.
4135
d4b6d95d
LMI
41362010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4137
ef1b0ba7
SM
4138 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4139 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
4140 the level to 8 to produce more useful backtraces for bug reports.
4141
e4b6db12
DN
41422010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4143
4144 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4145
1becef93
JB
41462010-09-30 Juanma Barranquero <lekktu@gmail.com>
4147
4148 * w32console.c (vga_stdcolor_name): Remove unused function;
4149 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4150
df7fcaff
LMI
41512010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4152
bac5cef8
LMI
4153 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4154 (Fgnutls_boot): Start the handshake.
4155 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
4156 (Fgnutls_boot): Remove some debugging messages.
4157 Change indentation throughout to use the Emacs style.
4158 (emacs_gnutls_handshake): Cast the fds to something that's
4159 possibly the expected length.
4160 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 4161
df7fcaff
LMI
4162 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4163
4164 * process.c (make_process): Set the gnutls_p field to zero by
4165 default.
4166 (read_process_output): Always call the gnutls_read function if the
4167 stream is a gnutls stream.
4168 (send_process): Ditto for writes.
4169
4170 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4171 or write anything until the state is GNUTLS_STAGE_READY.
4172 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4173
d585695f
EZ
41742010-09-29 Eli Zaretskii <eliz@gnu.org>
4175
af7ef32d
EZ
4176 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4177 NEUTRAL_DIR.
4178 (handle_invisible_prop, iterate_out_of_display_property)
4179 (next_element_from_buffer): If bidi_it.first_elt is set, call
4180 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4181 (Bug#7128)
4182
d585695f
EZ
4183 * print.c (print_object): Fix format string and argument types for
4184 printing a Lisp_Misc_Marker.
4185
4186 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4187 (load_overlay_strings, get_overlay_strings_1)
4188 (get_overlay_strings, forward_to_next_line_start)
4189 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4190 (get_next_display_element, next_element_from_string)
4191 (next_element_from_c_string, next_element_from_buffer)
4192 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4193 (message_dolog, message_log_check_duplicate, message2_nolog)
4194 (message3, message3_nolog, vmessage, set_message, set_message_1)
4195 (hscroll_window_tree, text_outside_line_unchanged_p)
4196 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4197 (find_last_unchanged_at_beg_row)
4198 (find_first_unchanged_at_end_row, row_containing_pos)
4199 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
4200 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4201 Use EMACS_INT for buffer and string positions.
d585695f
EZ
4202
4203 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4204 (row_containing_pos): Adjust prototype.
4205
4206 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4207 (message2_nolog, set_message): Adjust prototypes.
4208
a6f3211f
SM
42092010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4210
4211 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4212 (Fgnutls_boot): Use SDATA.
4213 (Fgnutls_handshake): Remove unused var `max_log_level'.
4214
e0720500
MA
42152010-09-27 Michael Albinus <michael.albinus@gmx.de>
4216
11a5af7c 4217 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
4218 (Bug#7113)
4219
d8a4b27a
J
42202010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4221
42d3022b
J
4222 * xgselect.c (xg_select): Clear file descriptors not set from
4223 rfds and wfds.
4224
d8a4b27a
J
4225 * process.c (wait_reading_process_output): Add missing FD_CLR
4226 for write_mask (must mirror connect_wait_mask).
4227
8ed70bf3
LMI
42282010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4229
4230 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4231 prefix.
4232 (Fgnutls_boot): Use changed process members. Use log level with a
4233 function parameter to set it. Bring back Emacs-level debugging
4234 messages at log level 1 and 2.
4235
4236 * process.c (make_process): Initialize gnutls_log_level.
4237
4238 * process.h: Add gnutls_log_level and rename x509_cred and
4239 anon_cred to have the gnutls_ prefix for consistency.
4240
4241 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4242
bedf4aab
JB
42432010-09-27 Juanma Barranquero <lekktu@gmail.com>
4244
4245 * w32.c (g_b_init_get_sid_identifier_authority)
4246 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4247 Remove, not used.
4248 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4249 (init_winsock): Remove useless assignment.
4250 (open_process_token, get_token_information, lookup_account_sid)
4251 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4252 (get_security_descriptor_owner, get_security_descriptor_group)
4253 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4254 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4255 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4256 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4257 (unc_volume_file_attributes, convert_from_time_t)
4258 (create_toolhelp32_snapshot, process32_first, process32_next)
4259 (open_thread_token, impersonate_self, revert_to_self)
4260 (get_process_memory_info, get_process_working_set_size)
4261 (global_memory_status, global_memory_status_ex, socket_to_fd)
4262 (shutdown_handler): Make static.
4263
08609ffd
MA
42642010-09-27 Michael Albinus <michael.albinus@gmx.de>
4265
4266 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4267 (xd_pending_messages): Functions removed.
4268 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4269 order to be compatible with add_read_fd. Determine bus from data,
4270 and call xd_read_message just for this bus.
4271 (xd_add_watch): Use xd_read_queued_messages as callback function.
4272 Add data.
4273
4274 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4275
d2e9d0bb
LMI
42762010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4277
ef1b0ba7 4278 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 4279 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 4280
4be9765d
KH
42812010-09-27 Kenichi Handa <handa@m17n.org>
4282
4283 These changes are to remove restriction on the number of glyphs in
4284 one composition.
4285
4286 * dispextern.h (struct glyph): Change the member "slice" to union.
4287 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 4288 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
4289
4290 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4291 instead of glyph->slice.
4292 (marginal_area_string): Likewise.
4293
4294 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4295 glyph->u.cmp.
4296 (append_composite_glyph): Likewise.
4297
4298 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4299 glyph->u.cmp.
4300 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4301 (append_composite_glyph): Likewise.
4302 (fill_image_glyph_string): Use glyph->slice.img instead of
4303 glyph->slice.
4304 (append_glyph, produce_image_glyph, append_stretch_glyph)
4305 (note_mouse_highlight): Likewise.
4306
3fad2ad2
J
43072010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4308
bf05eed6
J
4309 * process.c (add_keyboard_wait_descriptor)
4310 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
4311 (wait_reading_process_output): Don't pass write_mask to select
4312 if SELECT_CANT_DO_WRITE_MASK is defined.
4313 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 4314
3fad2ad2
J
4315 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4316 (delete_write_fd): Declare.
4317
4318 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4319 (write_mask): New variable.
ef1b0ba7 4320 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 4321 (fd_callback_info): New variable.
70e31436
JB
4322 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4323 New functions.
3fad2ad2
J
4324 (Fmake_network_process): FD_SET write_mask.
4325 (deactivate_process): FD_CLR write_mask.
4326 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
4327 check_connect removed. check_write is new. Remove references to gpm.
4328 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
4329 NON_BLOCKING_CONNECT) instead of Connecting.
4330 Loop over file descriptors and call callbacks in fd_callback_info
4331 if file descriptor is ready for I/O.
4332 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4333 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4334 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
4335 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4336 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
4337 (init_process): Initialize write_mask and fd_callback_info.
4338
4339 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4340
4341 * dbusbind.c: Include process.h.
4342 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4343 (xd_read_message_1): New functions.
70e31436
JB
4344 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4345 Handle watch for both read and write.
3fad2ad2
J
4346 (Fdbus_init_bus): Also register xd_toggle_watch.
4347 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4348 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4349 to dbus_connection_flush.
70e31436 4350 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
4351 Call xd_read_message_1 until status is COMPLETE.
4352
dce4c2ac
DN
43532010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4354
4355 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
4356 (init_tty): Reorder code to reduce the number of #ifdefs.
4357 No code changes.
dce4c2ac 4358
8af55556
TZ
43592010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4360
4361 * process.h: Set up GnuTLS support.
4362
4363 * process.c (make_process, Fstart_process)
4364 (read_process_output, send_process): Set up GnuTLS support for
4365 process input/output file descriptors.
4366
4367 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4368
4369 * gnutls.c: The source code for GnuTLS support in Emacs.
4370
4371 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4372
4373 * config.in: Set up GnuTLS support.
4374
4375 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4376 (obj, LIBES): Set up GnuTLS support.
4377
83e245c4
JB
43782010-09-26 Juanma Barranquero <lekktu@gmail.com>
4379
4380 * w32.c (get_emacs_configuration_options): Fix previous change.
4381
d24ec09a
CY
43822010-09-25 Chong Yidong <cyd@stupidchicken.com>
4383
4384 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4385 alive before using it (Bug#6977).
4386
b7bdc47c
LMI
43872010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4388
a952d5f3
LMI
4389 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4390
4391 * dispextern.h: EMACS_INT/int fixup.
4392
4393 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4394 fixup.
4395
b7bdc47c
LMI
4396 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4397
41118bd3
EZ
43982010-09-25 Eli Zaretskii <eliz@gnu.org>
4399
2452438f
EZ
4400 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4401 (Fselect_window, window_scroll_pixel_based)
4402 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4403 Use EMACS_INT for buffer positions.
4404
4405 * textprop.c (validate_interval_range, interval_of)
4406 (property_change_between_p, Fadd_text_properties)
4407 (set_text_properties_1, Fremove_text_properties)
4408 (Fremove_list_of_text_properties, Ftext_property_any)
4409 (Ftext_property_not_all, copy_text_properties)
4410 (text_property_list, extend_property_ranges)
4411 (verify_interval_modification): Use EMACS_INT for buffer
4412 positions.
4413
f877c546
EZ
4414 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4415 for buffer positions.
4416
4417 * process.c (read_process_output, send_process)
4418 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4419 and string positions and size.
4420
da43f021
EZ
4421 * print.c (print_object, print_string, strout): Use EMACS_INT for
4422 string indices.
4423
4424 * minibuf.c (string_to_object): Use EMACS_INT for string position
4425 and size.
4426
4427 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4428
4429 * lread.c <read_from_string_index, read_from_string_index_byte>
4430 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4431 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4432 buffer positions and string length.
4433
41118bd3
EZ
4434 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4435 EMACS_INT.
4436 (echo_truncate, adjust_point_for_property, read_char)
4437 (gen_help_event, make_lispy_event, modify_event_symbol)
4438 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4439 for buffer positions and string length.
4440
4441 * keyboard.h (gen_help_event): Adjust prototype.
4442
4443 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4444
4445 * commands.h <last_point_position>: Declare EMACS_INT.
4446
4447 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4448 (truncate_echo_area): Accept EMACS_INT argument.
4449
4450 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4451
4452 * lisp.h (truncate_echo_area): Adjust prototype.
4453
4454 * composite.c (composition_adjust_point): Return EMACS_INT.
4455
4456 * composite.h (composition_adjust_point): Adjust prototype.
4457
ba3033ee
JB
44582010-09-25 Juanma Barranquero <lekktu@gmail.com>
4459
4460 * process.c (Fmake_network_process): When arg :host is 'local,
4461 use address 127.0.0.1, not name "localhost". (Bug#6781)
4462
4f3a2f8d
EZ
44632010-09-24 Eli Zaretskii <eliz@gnu.org>
4464
5816888b
EZ
4465 * indent.c (Fcurrent_indentation, indented_beyond_p)
4466 (compute_motion): Use EMACS_INT for buffer position variables.
4467
4468 * lisp.h (indented_beyond_p): Adjust prototype.
4469
4470 * buffer.c (overlay_strings): Return EMACS_INT.
4471
4472 * buffer.h (overlay_strings): Adjust prototype.
4473
4474 * region-cache.c (pp_cache): Adjust format to arguments.
4475
4476 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4477 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4478 (verror): Use EMACS_INT for size of allocated buffer.
4479
ace1712c
EZ
4480 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4481 positions.
4482
4483 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
4484 (set_cursor_from_row, find_first_unchanged_at_end_row):
4485 Use EMACS_INT for buffer positions.
ace1712c 4486
f5276b75 4487 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
4488
4489 * dispnew.c (increment_matrix_positions)
4490 (increment_row_positions, copy_glyph_row_contents)
4491 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4492 positions.
4493
4494 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
4495 (increment_matrix_positions, increment_row_positions):
4496 Adjust prototypes.
ace1712c
EZ
4497
4498 * data.c (Faref, Faset): Use EMACS_INT for string length and
4499 positions.
4500
4501 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4502 characters to insert.
4503
4504 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4505 position and size.
4506
4f3a2f8d
EZ
4507 * syntax.c (scan_words, update_syntax_table)
4508 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
4509 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4510 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
4511
4512 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4513
4514 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4515 positions.
4516
db063399
LMI
45172010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4518
f0812d35
LMI
4519 * scroll.c (calculate_scrolling, line_ins_del)
4520 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4521 conversion.
4522
f5c7fc27
LMI
4523 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4524 (region_cache_backward, region_cache_forward)
4525 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4526 conversion.
4527
db063399
LMI
4528 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4529
4530 * eval.c (verror): Fix EMACS_INT/int conversion.
4531
07914cd0 4532 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
4533 (print_preprocess, print_check_string_charset_prop)
4534 (print_object): Fix EMACS_INT/int conversion.
4535
4536 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4537
e6d4aefa
EZ
45382010-09-24 Eli Zaretskii <eliz@gnu.org>
4539
69481da7
EZ
4540 * callproc.c (Fcall_process): Use EMACS_INT for count of
4541 characters read from the subprocess.
4542
61bfec98
EZ
4543 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4544 positions.
4545 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
4546 positions.
4547
145582a0
EZ
4548 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4549 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
4550 length.
4551 (advance_to_char_boundary, Fset_buffer_multibyte)
4552 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
4553 (overlay_touches_p, record_overlay_string, overlay_strings)
4554 (recenter_overlay_lists, fix_start_end_in_overlays)
4555 (modify_overlay, Fmove_overlay, report_overlay_modification)
4556 (evaporate_overlays): Use EMACS_INT for buffer positions.
4557
bba3e508
SM
4558 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
4559 Adjust prototypes.
145582a0 4560
446470a9
EZ
4561 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
4562 positions.
4563
e6d4aefa
EZ
4564 * fns.c (Fcompare_strings, Fstring_lessp, concat)
4565 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
4566 (Fsubstring_no_properties, substring_both, Ffillarray)
4567 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
4568 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
4569 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
4570 (Fmd5): Use EMACS_INT for buffer and string positions and length
4571 variables and arguments.
4572
4573 * lisp.h (substring_both): Adjust prototype.
4574
eb652396
JB
45752010-09-24 Juanma Barranquero <lekktu@gmail.com>
4576
4577 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
4578 * w32fns.c (clipboard_sequence_fn): Don't declare.
4579 (globals_of_w32fns): Don't initialize it.
4580
266a86bd 45812010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
4582
4583 * syntax.c (back_comment): Detect the case where a 1-char comment
4584 starter is also the 2nd char of a 2-char comment ender.
4585
266a86bd 45862010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
4587
4588 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
4589
40283062
LMI
45902010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4591
db063399
LMI
4592 * eval.c (verror): EMACS_INT/int cleanup.
4593
faf8b5bc
LMI
4594 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
4595 unwind_protect more than 2GB worth of functions.
4596
4597 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
4598
40283062
LMI
4599 * lisp.h: Have oblookup take EMACS_INT to allow interning big
4600 string and avoid compiler warnings.
4601 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
4602 all users.
4603
4604 * lread.c (oblookup): EMACS_INT/int cleanup.
4605
4606 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
4607
fe3537c3
EZ
46082010-09-23 Eli Zaretskii <eliz@gnu.org>
4609
4610 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
4611
4612 * lisp.h (clip_to_bounds): Adjust prototype.
4613
4614 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
4615
0350982f
LMI
46162010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4617
84c9ce05
LMI
4618 * lisp.h: doprnt.c EMACS_INT/int cleanup.
4619
4620 * doprnt.c (doprnt): EMACS_INT/int cleanup.
4621
4622 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
4623 cleanup.
4624
0350982f
LMI
4625 * lisp.h: Change the definition of all marker.c functions that
4626 take and return buffer stuff to be EMACS_INT instead of int.
4627
4628 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
4629 (buf_charpos_to_bytepos, bytepos_to_charpos)
4630 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
4631 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
4632 for all buffer positions.
4633
c50bd0d2
CY
46342010-09-23 Chong Yidong <cyd@stupidchicken.com>
4635
4636 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4637 (split_interval_right, find_interval, next_interval)
4638 (delete_node, delete_interval, interval_deletion_adjustment)
4639 (adjust_intervals_for_deletion, merge_interval_right)
4640 (merge_interval_left, graft_intervals_into_buffer)
4641 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
4642
4643 * intervals.h (traverse_intervals): Update prototype.
4644
14162469
EZ
46452010-09-23 Eli Zaretskii <eliz@gnu.org>
4646
c098fdb8
EZ
4647 * indent.c (compute_motion): Use EMACS_INT for arguments to
4648 region_cache_forward.
4649
bba3e508
SM
4650 * region-cache.c (struct boundary, struct region_cache):
4651 Use EMACS_INT for positions.
c098fdb8
EZ
4652 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
4653 (delete_cache_boundaries, set_cache_region)
4654 (invalidate_region_cache, know_region_cache)
bba3e508
SM
4655 (region_cache_forward, region_cache_backward, pp_cache):
4656 Use EMACS_INT for buffer positions.
c098fdb8
EZ
4657
4658 * region-cache.h (know_region_cache, invalidate_region_cache)
4659 (region_cache_forward, region_cache_backward): Adjust prototypes.
4660
4661 * search.c (string_match_1, fast_c_string_match_ignore_case)
4662 (looking_at_1, scan_buffer, scan_newline)
4663 (find_next_newline_no_quit, find_before_next_newline)
4664 (search_command, trivial_regexp_p, search_buffer, simple_search)
4665 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
4666 and string positions and length.
4667
caefdbe7
EZ
4668 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
4669 (find_before_next_newline): Adjust prototypes.
c098fdb8 4670
29cdc13e
EZ
4671 * editfns.c (transpose_markers, update_buffer_properties)
4672 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
4673 (get_pos_property, Fconstrain_to_field)
4674 (Fline_beginning_position, Fline_end_position, Fprevious_char)
4675 (Fchar_after, Fchar_before, Finsert_char)
4676 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
4677 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
4678 Use EMACS_INT for buffer and string position variables.
c098fdb8 4679 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
4680
4681 * lisp.h (clip_to_bounds): Adjust prototype.
4682
e79123aa
EZ
4683 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4684 (balance_an_interval, split_interval_right, split_interval_left)
4685 (find_interval, next_interval, update_interval)
4686 (adjust_intervals_for_insertion, delete_node, delete_interval)
4687 (interval_deletion_adjustment, adjust_intervals_for_deletion)
4688 (offset_intervals, merge_interval_right, merge_interval_left)
4689 (graft_intervals_into_buffer, adjust_for_invis_intang)
4690 (move_if_not_intangible, get_local_map, copy_intervals)
4691 (copy_intervals_to_string, compare_string_intervals)
4692 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 4693 and for interval tree size.
e79123aa
EZ
4694
4695 * intervals.h (traverse_intervals, split_interval_right)
4696 (split_interval_left, find_interval, offset_intervals)
4697 (graft_intervals_into_buffer, copy_intervals)
4698 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
4699 (update_interval): Adjust prototypes.
4700
579c18d0
EZ
4701 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
4702 Use EMACS_INT for buffer position variables and arguments.
4703
4704 * composite.c (get_composition_id, find_composition)
4705 (run_composition_function, compose_text)
4706 (composition_gstring_width, autocmp_chars)
4707 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
4708 for buffer positions and string length variables and arguments.
4709
4710 * composite.h (get_composition_id, find_composition, compose_text)
4711 (composition_gstring_width): Adjust prototypes.
4712
4713 * editfns.c (Fformat): Use EMACS_INT for string size variables.
4714
bba3e508
SM
4715 * xdisp.c (store_mode_line_noprop, display_mode_element):
4716 Use EMACS_INT for string positions.
579c18d0
EZ
4717
4718 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
4719 position arguments.
4720
4721 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
4722
4723 * character.c (parse_str_as_multibyte, str_as_multibyte)
4724 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 4725 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
4726 (strwidth, lisp_string_width, multibyte_chars_in_text):
4727 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4728
4729 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 4730 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
4731 (c_string_width, strwidth, lisp_string_width):
4732 Adjust prototypes.
14162469 4733
579c18d0
EZ
4734 * font.c (font_intern_prop): Use EMACS_INT for string length
4735 variables.
4736
4737 * font.c (font_intern_prop): Use EMACS_INT for string length
4738 variables.
4739
14162469
EZ
4740 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
4741 variables.
4742
4743 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
4744 (Fmake_string): Protect against too large strings.
4745 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4746 (live_misc_p): Use ptrdiff_t instead of int for pointer
4747 differences.
4748 (string_bytes, check_sblock, check_string_free_list)
4749 (allocate_string_data, compact_small_strings, Fmake_string)
4750 (Fmake_bool_vector, make_string, make_unibyte_string)
4751 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
4752 (make_specified_string_string, Fmake_list, Fmake_vector):
4753 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4754 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4755 (Fpurecopy): Use EMACS_INT for string size.
4756 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4757 for vector size.
4758
4759 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4760 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
4761 (make_pure_string, string_bytes, check_point_in_composition):
4762 Adjust prototypes.
14162469 4763
c8a66ab8
EZ
47642010-09-22 Eli Zaretskii <eliz@gnu.org>
4765
4766 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4767 (check_translation): Use EMACS_INT for buffer positions and
4768 length.
4769
4770 * undo.c (record_marker_adjustment, record_delete)
4771 (record_change, record_point, record_insert)
4772 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4773 buffer positions.
4774
4775 * lisp.h (record_marker_adjustment, record_delete)
4776 (record_change, record_point, record_insert)
4777 (record_property_change, Fprimitive_undo): Adjust prototypes.
4778
38c54d9d
JB
47792010-09-22 Juanma Barranquero <lekktu@gmail.com>
4780 Eli Zaretskii <eliz@gnu.org>
4781
4782 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
4783
413d18e7
EZ
47842010-09-22 Eli Zaretskii <eliz@gnu.org>
4785
4786 * minibuf.c (Fminibuffer_contents)
4787 (Fminibuffer_contents_no_properties)
4788 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
4789 positions.
4790
4791 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
4792 mark.
4793
4794 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
4795 (allocate_string_data): Accept EMACS_INT for string length.
4796
4797 * editfns.c (Ffield_string, Ffield_string_no_properties)
4798 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
4799 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
4800 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
4801 (Ffield_end): Use EMACS_INT for buffer positions.
4802
4803 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
4804 point with mark.
4805
4806 * lisp.h (allocate_string_data, make_uninit_string)
4807 (make_uninit_multibyte_string, make_buffer_string)
4808 (make_buffer_string_both): Adjust prototypes.
4809
4b9832a6
CY
48102010-09-22 Chong Yidong <cyd@stupidchicken.com>
4811
4812 * xml.c: Switch to GNU indentation.
4813 (make_dom): Change parse tree format to match xml.el.
4814 (Fxml_parse_html_string_internal): Rename from html-parse-string.
4815 (Fxml_parse_string_internal): Rename from xml-parse-string.
4816
86282aab
KH
48172010-09-22 Kenichi Handa <handa@m17n.org>
4818
4819 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
4820 only if we are not at a composition.
4821 (set_iterator_to_next): Give it->end_charpos to
4822 composition_compute_stop_pos.
4823 (set_iterator_to_next, next_element_from_buffer): Likewise.
4824
4825 * dispnew.c (buffer_posn_from_coords): Fix position when the
4826 current display element is a grapheme cluster in bidi-reordered
4827 region.
4828
840b985a
AR
48292010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
4830
4831 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
4832 the regions may overlap.
4833
5bc88f4b
JB
48342010-09-21 Juanma Barranquero <lekktu@gmail.com>
4835
4836 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
4837
92bc9a36
DN
48382010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4839
d19e096e
DN
4840 * emacs.c: Do not include sys/ioctl.h, not needed.
4841
92bc9a36
DN
4842 * doprnt.c: Do not include stdlib.h, config.h does it.
4843 Move #include before macro definition.
4844
15f844ac
DN
48452010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
4846
48e24408
DN
4847 * Makefile.in (temacs): Link using $(CC) not $(LD).
4848 (LD_FIRSTFLAG): Define using autoconf.
4849 (LD): Remove.
4850
65539506
DN
4851 Remove HAVE_TERMIOS definitions.
4852 * s/usg5-4-common.h (HAVE_TERMIOS):
4853 * s/template.h (HAVE_TERMIOS):
4854 * s/gnu-linux.h (HAVE_TERMIOS):
4855 * s/darwin.h (HAVE_TERMIOS):
4856 * s/cygwin.h (HAVE_TERMIOS):
4857 * s/bsd-common.h (HAVE_TERMIOS):
4858 * s/aix4-2.h (HAVE_TERMIOS):
4859 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
4860 defined on all non-MS platforms.
4861 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
4862
15f844ac
DN
4863 * xterm.c (xt_action_hook): Use const.
4864
7d701334
JB
48652010-09-20 Juanma Barranquero <lekktu@gmail.com>
4866
4867 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
4868 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4869 (gethostname) [!HAVE_SOCKETS]: Remove.
4870 (SOCK_REPLACE_HANDLE): Remove macro.
4871 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
4872 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
4873 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4874 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
4875
f3ec267a
EZ
48762010-09-18 Eli Zaretskii <eliz@gnu.org>
4877
4878 * deps.mk (xml.o): Add dependencies.
4879
93acd23d
JB
4880 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4881 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
4882
4883 * bidi.c (bidi_paragraph_init): Accept an additional argument
4884 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4885 search back until a paragraph with a strong directional character
4886 is found, and use that to determine paragraph's base direction.
4887
4888 * dispextern.h (bidi_paragraph_init): Update prototype.
4889
69e847be
EZ
48902010-09-17 Eli Zaretskii <eliz@gnu.org>
4891
4892 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4893 of w32api >= 3.15. (Bug#6989)
4894
283357a7
LMI
48952010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4896
4897 * process.c (wait_reading_process_output): Don't message about
4898 accept-process-output unless the time limit really is zero.
4899
4ddb20d6
SM
49002010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4901
4902 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4903 int/Lisp_Object mixup).
4904
e24ad6dd
J
49052010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4906
4907 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4908 not HELP.
4909
fb0cf781
J
49102010-09-17 Stephen Berman <stephen.berman@gmx.net>
4911
4912 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4913 bar's pixel width to Lisp (Bug#7048).
4914
4ddb20d6
SM
49152010-09-14 Juanma Barranquero <lekktu@gmail.com>
4916
4917 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 4918
318a04c6
J
49192010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4920
4921 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4922 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4923
78a21772
KH
49242010-09-17 Kenichi Handa <handa@m17n.org>
4925
4926 * ftfont.c (ftfont_check_otf): Fix previous change.
4927
fa3f6039
KH
49282010-09-14 Kenichi Handa <handa@m17n.org>
4929
4930 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4931 existence of GSUB or GPOS.
4932
2b5491fa
JB
49332010-09-14 Juanma Barranquero <lekktu@gmail.com>
4934
4935 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4936
c97c655f
LMI
49372010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4938
ef1b0ba7 4939 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
4940 what it does.
4941 (parse_string): Return nil when the document can't be parsed.
4942
6664fc59 49432010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
4944
4945 * xterm.c (get_current_vm_state): New function.
4946 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4947 want_fullscreen so set_wm_state calls are few (Bug#7013).
4948 (x_handle_net_wm_state): Move code to get_current_vm_state and
4949 call that function.
4950
6664fc59 49512010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
4952
4953 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
4954
6664fc59 49552010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
4956
4957 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4958 we may use designation or locking-shift.
4959
6664fc59 49602010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
4961
4962 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
4963 sequence when the source is multibyte.
4964
1da70e99
AS
49652010-09-14 Andreas Schwab <schwab@linux-m68k.org>
4966
6664fc59
JB
4967 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
4968 Don't make first argument optional. Doc fix.
1da70e99 4969
26632d8d
LMI
49702010-09-14 Leo <sdl.web@gmail.com> (tiny change)
4971
4972 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
4973 parameters for the doc string.
4974
21fa8e37
LMI
49752010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
4976
4977 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4978
5616cc54
SM
49792010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4980
4981 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
4982 (syms_of_fns): Don't defsubr Sy_or_n_p.
4983 * lisp.h: Don't declare Fy_or_n_p.
4984 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
4985
381408e2
LMI
49862010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4987
4988 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4989
49902010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4991
4992 * xml.c: New file.
4993 (Fhtml_parse_buffer): New function to interface to the libxml2
4994 html parsing function.
4995
733946e7
JB
49962010-09-05 Juanma Barranquero <lekktu@gmail.com>
4997
4998 * biditype.h: Regenerate.
4999
7574650a
AS
50002010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5001
5002 * nsimage.m (ns_load_image): Check argument types.
5003
5004 * image.c: Remove all uses of gcpro.
5005 (xpm_load): Check all lisp types.
5006 (pbm_load): Likewise.
5007 (png_load): Likewise.
5008 (jpeg_load): Likewise.
5009 (tiff_load): Likewise.
5010 (gif_load): Likewise.
5011 (imagemagick_load_image): Likewise.
5012 (imagemagick_load): Likewise.
5013 (svg_load): Likewise.
5014 (gs_load): Likewise.
5015
6e6b8e25
EZ
50162010-09-04 Eli Zaretskii <eliz@gnu.org>
5017
bba3e508
SM
5018 * w32uniscribe.c (uniscribe_shape): Update commentary.
5019 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
5020 hold them in the logical order.
5021 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5022 return glyph codes in the logical order.
5023
dbfe4532
AS
50242010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5025
5026 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 5027 (imagemagick_load_image): Fix type mismatch.
5e5992c2 5028 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 5029
6d7cc563
JD
50302010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5031
5032 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5033
5034 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5035
5036 * xselect.c: Remove declaration of cut-buffer objects and functions.
5037 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5038 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5039 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5040 (Fx_rotate_cut_buffers_internal): Remove.
5041 (syms_of_xselect): Remove defsubr of above.
5042 Remove intern of QCUT_BUFFERn.
5043
8f4e9110
SM
50442010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5045
5046 * cmds.c (Vblink_paren_function): Remove.
5047 (internal_self_insert): Make it insert N chars at a time.
5048 Don't call blink-paren-function.
5049 (Fself_insert_command): Adjust accordingly.
5050 (syms_of_cmds): Don't declare blink-paren-function.
5051
d419e1d9
KH
50522010-08-31 Kenichi Handa <handa@m17n.org>
5053
5054 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5055 characters.
5056
5057 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
5058 (produce_glyphs): Don't set it->char_to_display here.
5059 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
5060 (produce_special_glyphs): Set temp_it.char_to_display before
5061 calling produce_glyphs.
5062
5063 * xdisp.c (get_next_display_element): Set it->char_to_display
5064 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5065 characters.
5066 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5067 calling PRODUCE_GLYPHS.
5068 (append_space_for_newline): Save and store it->char_to_display.
5069 Set it->char_to_display before calling PRODUCE_GLYPHS.
5070 (extend_face_to_end_of_line): Set it->char_to_display before
5071 calling PRODUCE_GLYPHS.
5072 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5073 character to its byte value.
5074 (get_char_glyph_code): New function.
5075 (produce_stretch_glyph): Set it2.char_to_display too before
5076 calling x_produce_glyphs.
5077 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
5078 non-ASCII characters. Don't set it->char_to_display here.
5079 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 5080 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 5081
b819f760
SM
50822010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5083
5084 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5085
07fa68a7
CY
50862010-08-31 Chong Yidong <cyd@stupidchicken.com>
5087
5088 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5089
cd196f12
SM
50902010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5091
5092 * marker.c (Fcopy_marker): Make the first arg optional.
5093
49a752bb
KH
50942010-08-30 Kenichi Handa <handa@m17n.org>
5095
5096 * composite.c (composition_update_it): Fix computing of
5097 cmp_it->width.
5098
769ae9e1
KH
50992010-08-29 Kenichi Handa <handa@m17n.org>
5100
9e69cb05 5101 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 5102 corresponding bytes.
9e69cb05 5103
4520b858
J
51042010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5105
5106 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5107
fe50eb41
KH
51082010-08-26 Kenichi Handa <handa@m17n.org>
5109
5110 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5111 on calling composition_compute_stop_pos.
5112
f6aa6ec6
KH
51132010-08-25 Kenichi Handa <handa@m17n.org>
5114
9dfdbc0a
KH
5115 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5116 :otf.
5117
f6aa6ec6
KH
5118 * composite.c (composition_compute_stop_pos): Don't break
5119 composition at PT.
5120 (composition_reseat_it): Likewise. Fix calculation of character
5121 position starting a composition.
5122 (Fcomposition_get_gstring): Don't limit the number of components
5123 for automatic composition.
5124
ff94e32c
KH
51252010-08-25 Kenichi Handa <handa@m17n.org>
5126
5127 * composite.c (composition_compute_stop_pos): In forward search,
5128 pay attention to the possibility that some character after ENDPOS
5129 will be composed with charactrs before ENDPOS.
5130
1c409d0b
CY
51312010-08-24 Chong Yidong <cyd@stupidchicken.com>
5132
5133 * keyboard.c (command_loop_1): Don't clobber primary selection
5134 during handle-switch-frame (Bug#6872).
5135
0c372655
MA
51362010-08-23 Michael Albinus <michael.albinus@gmx.de>
5137
5138 * dbusbind.c: Accept UNIX domain sockets as bus address.
5139 (Fdbus_close_bus): New function.
5140 (Vdbus_registered_buses): New variable.
5141 (xd_initialize): Implement string as bus address.
5142 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5143 (Fdbus_get_unique_name, Fdbus_call_method)
5144 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5145 (Fdbus_method_error_internal, Fdbus_send_signal)
5146 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5147 check. This is done in xd_initialize_bus. Adapt doc string, if
5148 necessary.
5149 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5150 Vdbus_registered_buses.
5151 (Vdbus_registered_objects_table): Create hash.
5152
7133b7ee
JL
51532010-08-22 Juri Linkov <juri@jurta.org>
5154
5155 * keyboard.c (Fexecute_extended_command): Move reading a command name
5156 with `completing-read' to a new Elisp function `read-extended-command'.
5157 Call it to read a command to `function' (bug#5364, bug#5214).
5158
198a7a97
CY
51592010-08-22 Chong Yidong <cyd@stupidchicken.com>
5160
5161 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5162
b0126eac 51632010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
5164
5165 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5166 instead of SAFE_ALLOCA.
5167
b0126eac 51682010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
5169
5170 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5171 (Bug#6214).
5172
b0126eac 51732010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
5174
5175 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5176
b0126eac
CY
51772010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5178
5179 * doc.c (Fsnarf_documentation): Initialize skip_file before
5180 build-files test.
5181
692f3ddc 51822010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 5183
692f3ddc
JB
5184 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5185 New definitions.
b0126eac
CY
5186 (HAVE_TERMIO): Remove.
5187
5f2f0bc1
EZ
51882010-08-22 Eli Zaretskii <eliz@gnu.org>
5189
b613941b
EZ
5190 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5191
a583bbef
EZ
5192 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5193 for w32.
5194
5195 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5196 it's done in nt/config.nt.
5197
5198 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5199
5f2f0bc1
EZ
5200 * unexcoff.c (report_error, make_hdr, write_segment)
5201 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5202 Convert argument lists and prototypes to ANSI C.
5203 (make_hdr, write_segment): Remove unused variables.
5204 (unexec): Remove commented-out line. Initialize `new' to shut up
5205 compiler warnings.
5206
a7ebc409
DN
52072010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5208
5209 Simplify termio code.
5210 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5211 HAVE_TERMIO code is obsolete.
5212 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5213 * systty.h: Do not define HAVE_TCATTR.
5214 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5215 Do not define EMACS_HAVE_TTY_PGRP. Only define
5216 EMACS_GET_TTY_PGRP for !DOS_NT.
5217 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
5218 sys/ioctl.h and termios.h, systty.h does it.
5219 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
5220 (init_baud_rate): Remove HAVE_TERMIO code.
5221 (child_setup_tty): Remove HAVE_TERMIO code.
5222 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5223 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5224 (new_ltchars, new_tchars): Remove, unused.
5225 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
5226 code. Remove special casing for __mips__, it was a no-op.
5227 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
5228 (init_sys_modes): Remove HPUX special case.
5229 * process.c: Include stdlib.h unconditionally. Do not include
5230 fcntl.h, systty.h does it. Remove conditional code for
5231 HAVE_SERIAL, it is always true.
5232 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5233 always true when SIGNALS_VIA_CHARACTERS is true.
5234 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5235 !WINDOWSNT means HAVE_TERMIOS.
5236 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5237 conditional, which is true for all HAVE_TERMIOS systems.
5238 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5239 instead of HAVE_TERMIOS.
5240 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5241 EMACS_HAVE_TTY_PGRP.
5242 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5243 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5244 anyway.
5245
914f049b 52462010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
5247
5248 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5249 mirroring pixel positions.
5250
d931da8c
DN
52512010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5252
b5c76d0c
DN
5253 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5254 write only.
5255 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5256 malloc_sbrk_used, nothing uses them.
5257
74815588
DN
5258 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5259 defined, unconditionally defined in lisp.h.
5260
f5817d1c
DN
5261 * term.c: Do not include <termios.h>, systty.h does it.
5262
d931da8c
DN
5263 * s/unixware.h (HAVE_TCATTR):
5264 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5265 systty.h defines it when HAVE_TERMIOS is defined.
5266
ff2de6d2 52672010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 5268
b43c883c 5269 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 5270 terminals: add one-character offset for R2L lines.
b43c883c 5271
491a1546
EZ
5272 * emacs.c <emacs_version>: Add a comment regarding
5273 msdos/mainmake.v2's dependency on the syntax of this declaration.
5274
2396cbba
EZ
52752010-08-20 Eli Zaretskii <eliz@gnu.org>
5276
5277 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5278 position for R2L lines by mirroring the pixel position wrt the
5279 text are box. Improve commentary.
5280
7df6150a
AS
52812010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5282
5283 * image.c (imagemagick_clear_image): Remove debugging output.
5284
a2e5caf7
SM
52852010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5286
5287 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5288 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5289 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5290 self-insert-face.
5291 (syms_of_cmds): Initialize the new vars.
5292
20d60baf
JR
52932010-08-19 Jason Rumney <jasonr@gnu.org>
5294
cc477da7
JR
5295 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5296
20d60baf
JR
5297 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5298
2c0ac867
J
52992010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5300
5301 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5302
93352106
EZ
53032010-08-18 Eli Zaretskii <eliz@gnu.org>
5304
5305 * xterm.c (x_draw_bar_cursor):
5306 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5307 R2L, draw the bar cursor on its right rather than on its left.
5308
c785836d
SM
53092010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5310
0193499f
SM
5311 * eval.c (Fdefmacro): Only obey one declaration.
5312
c785836d
SM
5313 * casefiddle.c (casify_region): Setup gl_state.
5314
9cb728a5
J
53152010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5316
5317 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5318
e1e18511
J
53192010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5320
1d77b63e 5321 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 5322
64cb6c78
J
53232010-08-18 David De La Harpe Golden <david@harpegolden.net>
5324
5325 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5326 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5327 QPRIMARY => NXPrimaryPboard.
5328 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5329 NXPrimaryPboard => QPRIMARY.
5330 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5331 NXSecondaryPboard = SecondarySelection.
5332 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5333
0c9b8993
GM
53342010-08-18 Joakim Verona <joakim@verona.se>
5335
5336 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5337 defined:
5338 (imagemagick_image_p): New function to test for ImageMagic image.
5339 (imagemagick_load): New function to load ImageMagick image.
5340 (imagemagick_load_image): New function, helper for imagemagick_load.
5341 (imagemagick-types): New function.
5342 (Qimagemagick): New Lisp_object.
5343 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 5344
c3554f68
SM
53452010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5346
5347 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5348 is a string.
5349
1ff2e434
J
53502010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5351
5352 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5353 x_set_tool_bar_position handler.
5354
0cc56427
EZ
53552010-08-17 Eli Zaretskii <eliz@gnu.org>
5356
5357 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5358 x_set_tool_bar_position handler, needed to support changes from
5359 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5360
e45a249b
JD
53612010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5362
2f8f196d 5363 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 5364 declaration (Bug#6863).
573d150b 5365 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 5366
e45a249b
JD
5367 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5368
5369 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5370
7c23dd44
CY
53712010-08-16 Chong Yidong <cyd@stupidchicken.com>
5372
5373 * keyboard.c (command_loop_1): Avoid setting selection twice,
5374 since it's done in deactivate-mark as well.
5375 (Vselect_active_regions): Change default to t. Replace `lazy'
5376 with non-default value `only', meaning only set PRIMARY for
5377 temporarily active regions.
5378
5379 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5380 select-active-regions.
5381
0005830c
J
53822010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5383
5384 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5385 isn't a string.
5386
603dfc72
AS
53872010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5388
5389 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5390
c25ce9d0
J
53912010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5392
c3554f68
SM
5393 * keyboard.c (parse_tool_bar_item): malloc buf.
5394 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5395 new_lbl (Bug#6855).
c25ce9d0 5396
5872c762
EZ
53972010-08-14 Eli Zaretskii <eliz@gnu.org>
5398
b236615c
EZ
5399 * xterm.c (x_draw_stretch_glyph_string):
5400 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5401 the cursor on the right edge of the stretch glyph.
5402
c3554f68
SM
5403 * xdisp.c (window_box_right_offset, window_box_right):
5404 Fix commentary.
b236615c 5405
5872c762
EZ
5406 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5407 direction when point is inside a run of whitespace characters.
5408
5409 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5410
e66f9a1b
JR
54112010-08-14 Jason Rumney <jasonr@gnu.org>
5412
5413 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5414
79d6f59e
CY
54152010-08-14 Chong Yidong <cyd@stupidchicken.com>
5416
5417 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5418
1c9b4129
JR
54192010-08-13 Jason Rumney <jasonr@gnu.org>
5420
5421 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5422 (MessageBoxW_Proc): New function typedef.
5423 (unicode-message-box): New function pointer.
2f8f196d 5424 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 5425
2b4e6277
J
54262010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5427
5428 * frame.h (Qtool_bar_position): Declare.
5429
5430 * xfns.c (Fx_create_frame): Call x_default_parameter for
5431 Qtool_bar_position.
5432
94c97d85
EZ
54332010-08-13 Eli Zaretskii <eliz@gnu.org>
5434
8ee81892
EZ
5435 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5436 (report_error, report_error_1): Ditto.
5437 (write_segment): Remove "#if 0" unused code.
5438 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5439 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5440 (start_of_text): Remove unused function (was used only if NO_REMAP
5441 was NOT defined).
5442
891ef8f7
EZ
5443 * msdos.c (IT_set_face): Fix format string to match argument
5444 types.
5445 (IT_write_glyphs, IT_note_mode_line_highlight)
5446 (IT_set_frame_parameters): Remove unused variables.
5447 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5448 (IT_set_terminal_modes): Disambiguate expression in if clause.
5449 (Fmsdos_remember_default_colors): Return Qnil.
5450 (IT_set_frame_parameters): Add parens to disambiguate boolean
5451 expression for logging the cursor type to termscript.
5452 (keyboard_layout_list, keypad_translate_map)
5453 (grey_key_translate_map): Add braces in inner initializers.
5454 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5455 (dos_rawgetc): Remove unused label.
5456 (XMenuActivate): Add braces to remove ambiguous `else'.
5457 (dos_ttraw): Always return a value.
5458 (spawnve): Declare.
5459 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5460
5461 * dosfns.h (x_set_title): Declare.
5462
5463 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5464 Remove unused variables.
5465
5466 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5467 variables.
5468 (init_dosfns): Declare get_lim_data.
5469 (system_process_attributes): Declare Fget_internal_run_time.
5470
38e41e0e
EZ
5471 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5472 list to be consistent with menu.h.
5473
94c97d85
EZ
5474 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5475 warnings due to mixing of "char *" and "const char *".
5476
c5683ceb
SM
54772010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5478
5479 Introduce a new comment style "c" flag.
5480 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5481 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5482 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5483 (syntax_prefix_flag_p): New function.
5484 (Fstring_to_syntax): Understand new "c" flag.
5485 (Finternal_describe_syntax_value): Recognize new flag; use the
5486 SYNTAX_FLAGS_* macros.
5487 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5488 comment style to accomodate the new styles.
5489 (back_comment, forw_comment, Fforward_comment, scan_lists)
5490 (scan_sexps_forward): Update code to obey the new comment style flag.
5491
5492 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5493
5494 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5495
7aee76f4
J
54962010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5497
3a46642b
J
5498 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5499 first.
94dff98f 5500 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
5501
5502 * gtkutil.h (xg_check_special_colors): Declare.
5503
5504 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5505 (xg_create_frame_widgets): Connect theme name changes to
5506 style_changed_cb.
5507
42ca4633
J
5508 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5509 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5510 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 5511 string literal. file is const char*.
42ca4633
J
5512
5513 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5514 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5515 props. Free them at the end.
5516
5517 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5518
c5683ceb
SM
5519 * xrdb.c (get_system_app): Make path const and use char *p for
5520 non-const char.
42ca4633
J
5521
5522 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 5523 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
5524 char *.
5525 (button_names): Is const char *.
5526 (xdialog_show): error_name and pane_string is const.
5527
5528 * process.h (synch_process_death): Is const char*.
5529
5530 * w32menu.c (w32_menu_show):
5531 * nsmenu.m (ns_menu_show): error parameter is const char **.
5532
5533 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5534 is const char **.
5535
5536 * menu.c (Fx_popup_menu): error_name is const.
5537
5538 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5539 with unsigned char and XtPointer with void *.
5540
5541 * gtkutil.h: Replace widget_value with struct _widget_value.
5542 (enum button_type, struct _widget_value): Remove and use the one from
5543 keyboard.h.
5544
5545 * gtkutil.c (get_utf8_string): Always return an allocated string.
5546 Parameter is const.
5547 (create_dialog, xg_create_one_menuitem, create_menus)
5548 (xg_item_label_same_p, xg_update_menu_item): Free result from
5549 get_utf8_string.
5550 (xg_separator_p, xg_item_label_same_p): label is const.
5551
5552 * font.h (font_open_by_name): Make name const.
5553
5554 * font.c (font_open_by_name): Make name const.
5555
5556 * floatfns.c (matherr): Use a const char* variable for x->name.
5557
5558 * emacs.c (main): Pass char[] to putenv instead of literal.
5559
5560 * callproc.c (synch_process_death): Make const.
5561 (Fcall_process): Make signame const.
5562
9c5bd55a
J
5563 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
5564 (addDisplayItemWithImage): Use const char*.
5565
5566 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
5567 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
5568
5569 * nsfont.m (ns_descriptor_to_entity): Use const char*.
5570
5571 * keyboard.h (_widget_value): name, value and key are const char*.
5572
7aee76f4
J
5573 * unexmacosx.c (unexec_error): Use const char *.
5574
09d93395
DN
55752010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5576
5577 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5578 (font_parse_name, font_open_by_name):
09d93395 5579 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5580 (font_parse_name, font_open_by_name): Remove const.
09d93395 5581
671d409f
AS
55822010-08-09 Andreas Schwab <schwab@linux-m68k.org>
5583
5584 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
5585 definition.
5586
5587 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
5588 * m/amdx86-64.h: Likewise.
5589 * m/arm.h: Likewise.
5590 * m/hp800.h: Likewise.
5591 * m/ia64.h: Likewise.
5592 * m/ibmrs6000.h: Likewise.
5593 * m/ibms390.h: Likewise.
5594 * m/intel386.h: Likewise.
5595 * m/iris4d.h: Likewise.
5596 * m/m68k.h: Likewise.
5597 * m/macppc.h: Likewise.
5598 * m/mips.h: Likewise.
5599 * m/sh3.h: Likewise.
5600 * m/sparc.h: Likewise.
5601 * m/template.h: Likewise.
5602 * m/vax.h: Likewise.
5603 * m/xtensa.h: Likewise.
5604 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
5605 WORDS_BIG_ENDIAN.
5606 * lisp.h: Likewise.
5607 * md5.c: Likewise.
5608 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
5609
8ea90aa3
DN
56102010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5611
5612 Use const char* instead of char*.
5613 Reduce the number of warnings with -Wwrite-strings.
5614 * xrdb.c (get_environ_db, get_system_name):
5615 * unexelf.c (find_section):
5616 * term.c (string_cost, string_cost_one_line, per_line_cost)
5617 (get_named_tty, init_tty):
5618 * sysdep.c (sys_subshell):
5619 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
5620 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
5621 * search.c (Freplace_match):
5622 * process.c (Fmake_network_process, send_process, init_process):
5623 * lread.c (Fload, init_lread):
5624 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
5625 * keyboard.c (parse_tool_bar_item, struct event_head):
5626 * gtkutil.h (xg_get_font_name):
5627 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
5628 (make_widget_for_menu_item, make_menu_item, create_menus)
5629 (xg_make_tool_item):
5630 * font.c (parse_matrix, font_parse_name):
5631 * floatfns.c (rounding_driver, float_error_fn_name):
5632 * filelock.c (get_boot_time_1, lock_file_1):
5633 * fileio.c (barf_or_query_if_file_exists, check_writable):
5634 * editfns.c (get_system_name, get_operating_system_release)
5635 (Fencode_time, Fset_time_zone_rule):
5636 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
5637 * buffer.c (defvar_per_buffer): Use const.
5638
7815fe19 56392010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 5640
692f3ddc 5641 * charset.c: Include <stdlib.h>.
7a84eee5
KH
5642 (struct charset_sort_data): New struct.
5643 (charset_compare): New function.
692f3ddc 5644 (Fsort_charsets): New function.
7a84eee5
KH
5645 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
5646
5647 * coding.c (decode_coding_iso_2022): Fix checking of dimension
5648 number in CTEXT extended segment.
5649
7815fe19 56502010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
5651
5652 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
5653 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
5654
7815fe19 56552010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
5656
5657 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
5658 (Fhash_table_size): Fix typos in docstrings.
5659 (Fmake_hash_table): Doc fix.
5660
7815fe19 56612010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
5662
5663 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
5664 Doc fix (bug#5625).
5665
7815fe19 56662010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
5667
5668 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
5669 the MSDOS definition.
5670
1b6d8cf0
DN
56712010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
5672
675e2c69
DN
5673 Use const char* instead of char*.
5674 * xterm.c (x_create_toolkit_scroll_bar):
5675 * xfont.c (xfont_list_pattern):
5676 * xfns.c (x_default_scroll_bar_color_parameter)
5677 (xic_create_fontsetname, x_default_font_parameter)
5678 (x_screen_planes):
5679 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
5680 (store_mode_line_string, decode_mode_spec, display_string):
5681 * menu.c (digest_single_submenu):
5682 * keymap.h (initial_define_key, initial_define_lispy_key):
5683 * keymap.c (initial_define_key, initial_define_lispy_key):
5684 * image.c (image_error, image_keyword):
5685 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
5686 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
5687 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
5688 (ftfont_list, ftfont_match):
5689 * frame.c (frame_parm_table):
5690 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5691 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5692 (font_add_log, font_deferred_log):
5693 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5694 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5695 (font_add_log, font_deferred_log):
5696 * emacs.c (argmatch):
5697 * dispextern.h (struct it):
5698 * coding.c (ENCODE_DESIGNATION):
5699 * charset.c (define_charset_internal): Use const.
5700
25717ca1
DN
5701 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
5702
c5683ceb
SM
5703 * xrdb.c: Remove include guard.
5704 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
5705 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
5706 realloc->xrealloc instead of using #defines.
5707
efb41e21
EZ
57082010-08-08 Eli Zaretskii <eliz@gnu.org>
5709
cd21226d 5710 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
5711 * editfns.c (Fline_beginning_position, Fline_end_position):
5712 State in the doc strings that start and end of line are in the
5713 logical order.
cd21226d 5714
efb41e21
EZ
5715 * xdisp.c (display_line): Move the handling of overlay arrow after
5716 the call to find_row_edges. (Bug#6699)
5717
746812d9
CY
57182010-08-07 Chong Yidong <cyd@stupidchicken.com>
5719
5720 * keyboard.c (command_loop_1):
5721 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
5722
9852377f
CY
57232010-08-07 Chong Yidong <cyd@stupidchicken.com>
5724
5725 * insdel.c (prepare_to_modify_buffer): Save active region text to
5726 Vsaved_region_selection.
5727
5728 * xselect.c (QPRIMARY): Move to keyboard.c.
5729
5730 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
5731 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
5732 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 5733
0e9c8657
JB
57342010-08-07 Juanma Barranquero <lekktu@gmail.com>
5735
5736 * alloc.c (lisp_malloc):
5737 * buffer.c (set_buffer_internal, set_buffer_internal_1):
5738 * charset.h (emacs_mule_charset):
5739 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
5740 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
5741 (bitch_at_user):
5742 * lisp.h (Fcheck_coding_system, Fget_text_property)
5743 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
5744 Remove duplicate declarations.
5745
648801d1
DN
57462010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5747
32bc6709
DN
5748 * process.c: Simplify include logic.
5749
3ef1d108
DN
5750 * keyboard.h (quit_char): Add declaration.
5751 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
5752 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5753 Add declarations.
3ef1d108
DN
5754 * sysdep.c:
5755 * w32.c: Remove the above declarations.
5756
97ec208f
DN
5757 Remove extern declarations in .c files, .h files have them.
5758 * xterm.c:
5759 * xdisp.c:
97ec208f
DN
5760 * msdos.c:
5761 * image.c:
5762 * gtkutil.c:
5763 * fileio.c:
5764 * eval.c: Remove declarations.
5765
94eed851
DN
5766 * frame.c (frame_params): Make const.
5767
36e053eb
DN
5768 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5769
0e843971
DN
5770 * emacs.c (emacs_copyright, emacs_version): Make static.
5771 (Vinitial_window_system, Vauto_save_list_file_name)
5772 (Vinhibit_redisplay): Remove declarations.
5773 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5774 for AIX.
5775
648801d1
DN
5776 Use const for some arrays and functions.
5777 * xterm.h (xg_set_icon_from_xpm_data):
5778 * xfns.c (xg_set_icon_from_xpm_data):
5779 * term.c (fkeys):
5780 * keyboard.c (lispy_accent_keys, lispy_function_keys)
5781 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
5782 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
5783 (frame.c frame_parms):
5784 * emacs-icon.h (gnu_xpm_bits):
5785 * callint.c (callint_argfuns): Use const.
5786
8646d999
J
57872010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5788
5789 * sysdep.c: Move include term.h last of includes (Bug#6812).
5790
cb4545ad
EZ
57912010-08-06 Eli Zaretskii <eliz@gnu.org>
5792
5793 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
5794
5795 * msdos.c (IT_display_cursor): Log cursor position on termscript.
5796
5797 * .gdbinit (pgx): Display the avoid_cursor_p flag.
5798
da7e2be6
JB
57992010-08-06 Juanma Barranquero <lekktu@gmail.com>
5800
5801 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
5802
3d608a86
J
58032010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5804
7908fb60
J
5805 * xterm.h (x_get_focus_frame): Declare.
5806
5807 * keyboard.h (poll_for_input_1): Unconditionally declare.
5808
4094bf36
J
5809 * nsterm.h (x_set_menu_bar_lines): Declare.
5810
5811 * window.c: Don't include menu.h, it depends on lots of other .h-files.
5812
3d608a86
J
5813 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
5814
5815 * window.c: Include menu.h.
5816
5817 * unexmacosx.c (print_region_list, print_regions)
5818 (build_region_list, find_emacs_zone_regions)
5819 (unexec_regions_merge, read_load_commands, dump_it)
5820 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
5821
5822 * term.c: Check HAVE_SYS_IOCTL_H.
5823
686b968e 5824 * sysdep.c: Check HAVE_TERM_H.
3d608a86 5825
686b968e 5826 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
5827
5828 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
5829 (ns_ring_bell, ns_defined_color, hide_hourglass)
5830 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
5831 Convert to ANSI C prototypes.
5832 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
5833 before code.
5834
5835 * nsterm.h : Include sysselect.h.
5836 (x_sync, x_get_focus_frame, x_set_mouse_position)
5837 (x_set_mouse_pixel_position, x_make_frame_visible)
5838 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
5839 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
5840 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
5841 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 5842 Declare.
3d608a86
J
5843
5844 * nsmenu.m (popup_activated, name_is_separator)
5845 (syms_of_nsmenu): Convert to ANSI C prototypes.
5846 (runMenuAt): Prototypes and move declarations before code.
5847
5848 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
5849
5850 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
5851 prototypes.
5852
5853 * nsfns.m (have_menus_p, ns_display_info_for_name)
5854 (x_set_cursor_type, ns_appkit_version_str)
5855 (ns_appkit_version_int, ns_do_applescript)
5856 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
5857 (syms_of_nsfns): Convert to ANSI C prototypes.
5858
5859 * menu.h (x_set_menu_bar_line): Declare.
5860 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
5861
5862 * lisp.h (fmod_float): Declare.
5863
5864 * image.c (xpm_scan, xpm_make_color_table_v)
5865 (xpm_put_color_table_v, xpm_get_color_table_v)
5866 (xpm_make_color_table_h, xpm_put_color_table_h)
5867 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
5868 (xpm_load): Convert to ANSI C prototypes.
5869
5870 * emacs.c: Include nsterm.h if HAVE_NS.
5871
5872 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
5873
fce70521
DN
58742010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5875
5876 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
5877 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5878 (socket_options): Use const char* for name.
5879
a11889ab
JB
58802010-08-06 Juanma Barranquero <lekktu@gmail.com>
5881
5882 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5883
5884 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5885 Don't declare xmalloc_widget_value and digest_single_submenu.
5886
5887 * w32font.c (Qlatin): Remove declaration.
5888
5889 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5890
c95b508f 5891 * dired.c (compile_pattern): Restore declaration.
a11889ab 5892
6254cdda
DN
58932010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5894
04bab72c
DN
5895 Remove extern declarations in .c files, .h files have them.
5896 * data.c:
5897 * dired.c:
5898 * editfns.c:
5899 * filelock.c:
5900 * fns.c:
5901 * font.c:
5902 * fontset.c:
5903 * frame.c:
5904 * fringe.c:
5905 * ftfont.c:
5906 * gtkutil.c:
5907 * indent.c:
5908 * keyboard.c:
5909 * keymap.c:
5910 * lread.c:
5911 * menu.c:
5912 * print.c:
5913 * search.c:
5914 * sound.c:
5915 * window.c:
5916 * xdisp.c:
5917 * xfaces.c:
5918 * xfns.c:
5919 * xfont.c:
5920 * xftfont.c:
5921 * xmenu.c:
5922 * xterm.c: Remove declarations.
5923
dff94ed5
DN
5924 Cleanup syssignal.h.
5925 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5926 (main_thread): Move down to remove #ifdef.
5927 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5928 Remove conditional definition following unconditional ones.
5929
99f3388e
DN
5930 * lisp.h: Remove HAVE_SHM code, unused.
5931 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5932 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5933 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5934 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5935 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5936 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5937 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5938 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5939 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5940 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5941 (Qwindow_scroll_functions, Vafter_load_alist)
5942 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5943 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5944 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5945 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5946 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5947 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5948 (initial_argv, last_nonmenu_event, load_in_progress)
5949 (noninteractive_need_newline, scroll_margin): Add declarations.
5950
bba3e508
SM
5951 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5952 Remove declarations, menu.h has them.
99f3388e
DN
5953 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
5954 (Vinput_method_function, Qinput_method_function)
5955 (Qevent_symbol_element_mask, last_event_timestamp):
5956 * dispextern.h (Voverflow_newline_into_fringe):
5957 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
5958 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
5959 (syms_of_w32font, syms_of_nsfont):
5960 * fontset.h (find_font_encoding, Qlatin):
5961 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
5962 (Vtool_bar_mode, set_frame_menubar):
5963 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
5964 * xterm.h (Qx_gtk_map_stock):
5965 * keymap.h (meta_prefix_char): Add declarations.
5966
9f5dd6f2
DN
5967 * term.c: Remove dead code.
5968
6254cdda
DN
5969 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
5970 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5971 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
5972 which is what was there before BSD_PGRPS was removed.
5973
29cf3e20
EZ
59742010-08-05 Eli Zaretskii <eliz@gnu.org>
5975
5976 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
5977
5978 * unexcoff.c: Renamed from unexec.c.
5979
aaa0a19a
SM
59802010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
5981
5982 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
5983
8d1d9587
JB
59842010-08-03 Johan Bockgård <bojohan@gnu.org>
5985
5986 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 5987 (Bug#6744)
8d1d9587 5988
9a747ba6
JD
59892010-08-02 Jan Djärv <jan.h.d@swipnet.se>
5990
4d464ae4
JD
5991 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
5992 to TRUE if depth of screen is < 16.
5993
ac01763e
JD
5994 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
5995 USE_GTK_TOOLTIP.
e0d62a9b
JB
5996 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
5997 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 5998 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
5999 USE_GTK_TOOLTIP.
6000 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6001
6002 * xterm.h (USE_GTK_TOOLTIP): New define.
6003 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6004
9a747ba6
JD
6005 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6006 to Control-D (Bug#6771).
6007
7b0815ba
JB
60082010-08-02 Juanma Barranquero <lekktu@gmail.com>
6009
6010 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6011 Wording by Drew Adams <drew.adams@oracle.com>.
6012
aa1859f5
J
60132010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6014
6015 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6016 ttip_lbl.
6017
6018 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6019 calling gtk_widget_queue_draw.
6020 (x_free_frame_resources): Call xg_free_frame_widgets.
6021
6022 * xfns.c (x_gtk_use_system_tooltips): New variable.
6023 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6024 new gtkutil tooltip functions to show the tooltip.
6025 (Fx_hide_tip): Call xg_hide_tooltip.
6026 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6027
6028 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6029 (xg_show_tooltip, xg_hide_tooltip): Declare.
6030
6031 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
6032 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6033 New functions.
aa1859f5
J
6034 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6035 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6036 Remove code that is commented out.
6037
76417ef4
SM
60382010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6039
6040 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6041
16041401
CY
60422010-07-31 Chong Yidong <cyd@stupidchicken.com>
6043
6044 * xselect.c (x_own_selection): Use list4.
6045
2c09a58f
DN
60462010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6047
6048 * buffer.c (Qwindow): Do not define, already defined in data.c.
6049 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6050
59df9fdd 60512010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 6052
59df9fdd
JB
6053 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6054 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6055 * config.in: Undef HAVE_DIRENT_H.
1c97e857 6056 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 6057 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 6058
1b231651
DN
60592010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6060
6061 Rename s/usg5-4.h -> s/usg5-4-common.h.
6062 * s/usg5-4.h: Rename file to ...
6063 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6064 * s/unixware.h:
6065 * s/sol2-6.h:
6066 * s/irix6-5.h: Update includes accordingly.
6067
bfeabdc3
JD
60682010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6069
2ebf1083
J
6070 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6071
bfeabdc3 6072 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
6073 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6074 Remove toolbar_height.
6075 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
6076 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6077 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6078 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6079
6080 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6081
6082 * xfns.c (x_set_tool_bar_position): New function.
6083 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6084 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 6085 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
6086
6087 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6088 and FRAME_TOOLBAR_LEFT_WIDTH.
6089
6090 * gtkutil.h (xg_change_toolbar_position): Declare.
6091
6092 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6093 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6094 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6095 (xg_create_frame_widgets): Create a hobox for placing widgets
6096 vertically. Use gtk_box_pack_start.
ef1b0ba7 6097 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
6098 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6099 (xg_update_frame_menubar, free_frame_menubar): Change to
6100 xg_height_or_width_changed.
6101 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6102 size correctly. Remove hardcoded 4, instead use handlebox size -
6103 toolbar size.
6104 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 6105 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
6106 (xg_pack_tool_bar): POS is a new parameter.
6107 Set orientation of tool bar based on pos.
6108 Only make handlebox_widget if NULL.
6109 Check if tool bar goes to vbox or hbox depending on pos.
6110 (xg_update_tool_bar_sizes): New function.
686b968e 6111 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
6112 height, call xg_update_tool_bar_sizes instead.
6113 (free_frame_tool_bar): Remove from hbox or vbox depending on
6114 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6115 (xg_change_toolbar_position): New function.
6116
6117 * frame.h (struct frame): Add tool_bar_position.
6118 (Qbottom): Declare.
6119
6120 * frame.c (Qtool_bar_position): New variable.
6121 (make_frame): Set tool_bar_position to Qtop.
6122 (frame_parms): Add tool-bar-position.
6123 (x_report_frame_params): Store tool_bar_position.
6124 (x_set_fringe_width): Reset wm size hint after fringe changes.
6125
26469a38
DN
61262010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6127
6128 Make lisp_time_argument declaration work on all systems.
6129 * lisp.h (lisp_time_argument): Move declaration ...
6130 * systime.h (lisp_time_argument): ... here
6131 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6132
8848b728
JD
61332010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6134
6135 * vm-limit.c (POINTER): Add typedef for it.
6136 (start_of_data): Change return type from POINTER to char *.
6137
6138 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6139 HAVE_WINDOW_SYSTEM.
6140
76fd1ee9
DN
61412010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6142
0441987e
DN
6143 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6144 Remove reference to __osf__, unused.
6145
56a000c7
DN
6146 * mem-limits.h: Remove duplicated includes.
6147 (NULL): Remove definition, unused.
6148 (POINTER): Remove definition.
6149 (start_of_data): Use char* in prototype, as the function
6150 definition does.
6151
e6cba650
DN
6152 Remove extern declarations from .c files, and them to .h files.
6153 * keyboard.h (Qhelp_echo, waiting_for_input)
6154 (input_available_clear_time, ignore_mouse_drag_p)
6155 (Vdouble_click_time, real_this_command, Vthis_original_command):
6156 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6157 (Voverriding_local_map_menu_flag):
6158 * lisp.h (Qinteractive_form, use_file_dialog)
6159 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6160 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6161 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6162 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6163 (Qfunction, debug_on_next_call, Qfield)
6164 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6165 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6166 (Qfile_directory_p, Qinsert_file_contents)
6167 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6168 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6169 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6170 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6171 (Qminibuffer_prompt)
6172 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6173 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6174 (gray_bitmap_bits, xic_create_fontsetname):
6175 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6176
6177 * xsmfns.c (Vuser_login_name):
6178 * xrdb.c (Vdouble_click_time):
6179 * xfaces.c (xic_create_fontsetname):
6180 * w32select.c (waiting_for_input):
6181 * print.c (minibuffer_auto_raise):
6182 * msdos.c (Qhelp_echo):
6183 * macros.c (real_this_command):
6184 * keymap.c (Voverriding_local_map):
6185 * xterm.c (poll_for_input_1, gray_bitmap_width)
6186 (gray_bitmap_height, gray_bitmap_bits;
6187 * xmenu.c ( Voverriding_local_map)
6188 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6189 (use_file_dialog, Xt_app_con):
6190 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6191 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6192 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6193 (Qtool_bar_lines, ignore_mouse_drag_p):
6194 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6195 (Qrear_nonsticky, nconc2):
6196 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6197 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6198 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6199 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6200 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6201 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6202 (gc_in_progress):
6203 * doc.c (Voverriding_local_map, Qremap):
6204 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6205 (Vcompletion_regexp_list):
6206 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6207 (Qcompletion_ignore_case):
6208 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6209 (Vhistory_length, Vthis_original_command, real_this_command)
6210 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6211 * image.c (Qrisky_local_variable):
6212 * fontset.c (QCname):
6213 * fns.c (minibuffer_auto_raise, QCname):
6214 * dispnew.c (char_ins_del_cost):
6215 * composite.c (font_fill_lglyph_metrics):
6216 * cmds.c (Qface, Vtranslation_table_for_input):
6217 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6218 * ccl.c (charset_unicode):
6219 * callproc.c (Vtemporary_file_directory):
6220 * buffer.c (emacs_strerror): Remove extern declarations.
6221
6222 * data.c (Qwindow): Make non-static, used from other files too.
6223 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6224
76fd1ee9
DN
6225 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6226 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6227 * s/usg5-4.h (COFF):
6228 * s/template.h:
6229 * s/msdos.h (COFF, NO_REMAP):
6230 * s/ms-w32.h (NO_REMAP):
6231 * s/hpux10-20.h (NO_REMAP):
6232 * m/sparc.h (SEGMENT_MASK):
6233 * m/m68k.h (NO_REMAP):
6234 * m/intel386.h (SEGMENT_MASK):
6235 * m/arm.h (NO_REMAP):
6236 * m/alpha.h (COFF):
6237 * m/template.h: Remove references to unused defines.
6238
8a52f00a
JD
62392010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6240
6241 * xsettings.c (Ftool_bar_get_system_style): Also check for
6242 Qtext_image_horiz.
6243
6244 * xdisp.c (Qtext_image_horiz): Define.
6245 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 6246 to documentation of tool-bar-style.
8a52f00a
JD
6247
6248 * lisp.h (Qtext_image_horiz): Declare.
6249
6250 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6251 style text_image_horiz.
6252
89dc303e
DN
62532010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6254
60799703
DN
6255 * emacs.c (Fkill_emacs): Remove return statement.
6256
37254dc1
DN
6257 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6258 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
6259 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6260 Remove local extern declarations.
37254dc1 6261
71c7345a
DN
6262 * xmenu.c: Do not included lwlib.h, not needed.
6263
6ba577cb
DN
6264 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6265
fdb183d6
DN
6266 * process.c: Move definitions earlier to minimize #ifdefs.
6267
6268 * xterm.h (x_get_customization_string, x_load_resources)
6269 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6270 (x_check_errors, x_property_data_to_lisp, defined_color)
6271 (xic_set_xfontset, x_defined_color): Use const.
6272
6273 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6274 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6275
6276 * xselect.c (selection_data_to_lisp_data)
6277 (x_property_data_to_lisp):
6278 * xrdb.c (x_get_string_resource, file_p)
6279 (x_get_customization_string, magic_file_p, search_magic_path)
6280 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6281 (x_get_string_resource): Use const.
6282
6283 * xfns.c: Include xlwmenu.h when USE_LUCID.
6284 (x_defined_color, xic_set_xfontset): Use const.
6285 (Fx_hide_tip): Remove local extern declaration.
6286
6287 * xfaces.c (Qmouse_face): Remove declaration.
6288 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 6289 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
6290
6291 * xdisp.c (do_mouse_tracking): Remove declaration.
6292 (add_to_log): Use const.
6293
6294 * minibuf.c (Qmouse_face): Remove declaration.
6295
6296 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6297
6298 * keyboard.h (do_mouse_tracking): Add declaration.
6299
6300 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6301 (QCdata, QCtype, Qcenter): Remove declarations.
6302
6303 * frame.c (x_get_resource_string, x_get_string_resource)
6304 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6305 (x_default_parameter): Use const.
6306
6307 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6308 (QCheight, QCsize, QCname): Remove declarations.
6309
6310 * emacs.c (main): Remove local extern declaration.
6311
6312 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6313 declarations.
6314
6315 * dispnew.c: Remove duplicate #include <unistd.h>.
6316 (update_window, update_frame_1, init_display): Remove local extern
6317 declarations.
6318
6319 * dispextern.h (add_to_log): Remove declaration.
6320 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6321 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6322
6323 * dired.c (scmp): Add const.
6324 (directory_files_internal): Remove local extern declaration.
6325
6326 * data.c (Finteractive_form): Use const.
6327
6328 * composite.c (syms_of_composite): Remove local extern declarations.
6329
6330 * charset.c (add_to_log): Remove declaration.
6331
6332 * character.c (strwidth, parse_str_to_multibyte): Add const.
6333
6334 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6335
6336 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6337
89dc303e 6338 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
6339 (Lisp_Subr): Make doc and intspec constant.
6340 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6341 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6342 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6343 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6344 (display_arg): Add declarations.
89dc303e 6345
0ed082fe 63462010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
6347
6348 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6349
0ed082fe
JB
6350 * window.c (Fwindow_height): Doc fix (bug#6518).
6351
63522010-07-27 Juanma Barranquero <lekktu@gmail.com>
6353
6354 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6355
ccaf0336
DN
63562010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6357
977105dc
DN
6358 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6359 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6360 functions.
6361
f5ada890
DN
6362 * frame.h (Qtty_color_mode): Add declaration.
6363
ccaf0336
DN
6364 * lisp.h (Ftop_level, Fexit_recursive_edit)
6365 (Fabort_recursive_edit): Mark as NO_RETURN.
6366
dfe3c90f
KH
63672010-07-26 Kenichi Handa <handa@m17n.org>
6368
6369 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 6370 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 6371
7d383292
JB
63722010-07-26 Juanma Barranquero <lekktu@gmail.com>
6373
6374 * lread.c (unreadpure, mapatoms_1): Make static.
6375
da31e629
JB
63762010-07-25 Juanma Barranquero <lekktu@gmail.com>
6377
6378 * terminfo.c (tparam): Fix prototype of tparm.
6379
7bfa6d77
AS
63802010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6381
dcc19aac
AS
6382 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6383 find start of text segment.
6384 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6385 is defined.
6386
7bfa6d77
AS
6387 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6388
63f9a672
KB
63892010-07-25 Ken Brown <kbrown@cornell.edu>
6390
6391 * vm-limit.c (check_memory_limits): Fix previous change;
6392 accidentally reverted an earlier change.
6393
24933075
KB
63942010-07-25 Ken Brown <kbrown@cornell.edu>
6395
6396 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6397 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6398
361358ea
JB
63992010-07-25 Juanma Barranquero <lekktu@gmail.com>
6400
6401 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6402 * dired.c (opendir, readdir): Fix prototypes.
6403 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6404 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6405 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6406 (telldir): Remove declaration.
6407 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6408 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6409 * syssignal.h (strsignal): Fix prototype.
6410 * term.c (tparam): Fix prototype.
6411 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6412 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6413 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6414 and __morecore.
6415 * w32gui.h (XParseGeometry): Fix prototype.
6416 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6417 * w32term.c (my_set_focus): Declare inside #if 0.
6418 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6419 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6420 (drain_message_queue, get_next_msg, post_msg, parse_button)
6421 (ClipboardSequence_Proc): Fix prototypes.
6422 (wait_for_sync): Remove declaration.
6423
630b9592
JB
64242010-07-24 Juanma Barranquero <lekktu@gmail.com>
6425
6426 * w32fns.c (w32_to_x_color): Remove, unused.
6427
6a0d6611
AS
64282010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6429
6430 * lisp.h: Remove leftover P_.
6431
4e8608ff
DN
64322010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6433
6434 * ecrt0.c, unexalpha.c: Remove files, unused.
6435
c8197983
AS
64362010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6437
6438 * cmds.c (internal_self_insert): Make static.
6439 * lisp.h (internal_self_insert): Remove declaration.
6440
97b372d7
JB
64412010-07-23 Juanma Barranquero <lekktu@gmail.com>
6442
33ac0414
JB
6443 * alloc.c (free_float):
6444 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6445 * frame.c (delete_frame_handler):
6446 * ralloc.c (reorder_bloc):
6447 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6448 Remove unused static functions.
6449
94da8397
JB
6450 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6451 it is called only from NS code.
6452
2e6c8532
JB
6453 * w32term.c (my_set_focus): #ifdef away; it is called only from
6454 "#ifdef 0" code.
6455
97b372d7
JB
6456 * w32fns.c (x_edge_detection):
6457 * xfaces.c (may_use_scalable_font_p):
6458 Remove obsolete static declarations.
6459
7c3320d8
JB
64602010-07-20 Juanma Barranquero <lekktu@gmail.com>
6461
6462 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6463 (emacs_blocked_realloc, uninterrupt_malloc):
6464 * fringe.c (w32_reset_fringes):
6465 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6466 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6467 * sound.c (be2hs, do_play_sound):
6468 * vm-limit.c (get_lim_data, ret_lim_data):
6469 * w32term.c (x_free_frame_resources):
6470 * xfaces.c (x_create_gc, x_free_gc):
6471 Convert definitions to standard C.
6472
d5273788
SM
64732010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6474
6475 * eval.c (Feval, Ffuncall): Use the new names.
6476
6477 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6478 (DEFUN): Add braces around the union initialisation and use ## to
6479 specify the right union alternative and avoid a cast.
6480
8d16a259
JB
64812010-07-18 Juanma Barranquero <lekktu@gmail.com>
6482
6483 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6484
3b8eff32
CY
64852010-07-17 Chong Yidong <cyd@stupidchicken.com>
6486
6487 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6488
499322ce
J
64892010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6490
6491 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6492 is related to the menu bar (Bug#6499).
a628ad9d 6493 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 6494
f6003da5 64952010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
6496
6497 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6498
6499 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6500
6501 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6502 i.e. don't put back ButtonRelease (Bug#6608).
6503
6504 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6505 instead of Window. Call xg_event_is_for_menubar when
6506 USE_GTK (Bug#6499).
6507
6508 * gtkutil.h (xg_event_is_for_menubar): Declare.
6509
6510 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6511
f6003da5 65122010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
6513
6514 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6515 when it's the same as the old foreground. (Bug#6609)
6516
23243f29
J
65172010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6518
6519 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6520 widget is non-null (Bug#6645).
6521
2b23d2a6
AS
65222010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6523
01b564ff
AS
6524 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6525 Convert old-style definition.
6526
2b23d2a6
AS
6527 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6528 timestamp argument.
6529
c4affd2c
EZ
65302010-07-15 Eli Zaretskii <eliz@gnu.org>
6531
6532 * fringe.c (update_window_fringes): Restore mistakenly reverted
6533 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6534
cf28cebc
J
65352010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6536
6537 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6538 (SET_SAVED_KEY_EVENT): Remove (not used).
6539 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6540 remove size parameter.
6541 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6542 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6543 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6544 ButtonRelease.
6b2c4bd9
J
6545 (x_set_window_size_1): scroll_bar_actual_width is always
6546 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
6547
6548 * xdisp.c (pending_menu_activation): Remove extern declaration.
6549 (prepare_menu_bars): Remove setting of pending_menu_activation.
6550
6551 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
6552 (x_activate_menubar): Set popup_activated_flag for Xt also.
6553 Remove setting of pending_menu_activation.
cf28cebc
J
6554 (set_frame_menubar): Remove check of pending_menu_activation.
6555 Declare menubar_size before code. Correct spelling in comment.
6556
f6c1c771
KH
65572010-07-14 Kenichi Handa <handa@m17n.org>
6558
6559 * font.c (font_open_entity): Cancel previous change.
6560 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
6561
20477505
EZ
65622010-07-13 Eli Zaretskii <eliz@gnu.org>
6563
77defa9a
EZ
6564 Remove subprocesses #ifdefs.
6565 * process.c <inhibit_sentinels>: Move to the common part.
6566 (Fwaiting_for_user_input_p): Move to the common part; return nil
6567 if async subprocesses aren't supported.
6568 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
6569 MS-DOS. Remove "#ifdef subprocesses".
6570 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
6571 (gettimeofday): Remove "#ifdef subprocesses".
6572 (wait_without_blocking): Remove function.
6573 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
6574 Remove "#ifdef subprocesses".
6575 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
6576 compiled on MS-DOS.
6577 * callproc.c (Fcall_process) [!MSDOS]: Don't call
6578 wait_for_termination on MS-DOS.
6579 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
6580 initialization of inhibit_sentinels.
6581 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
6582 subprocesses" conditional.
6583 * callproc.c (Fcall_process) [!subprocesses]: Don't call
6584 wait_for_termination, since `buffer' cannot be an integer when
6585 async subprocesses are not supported
6586 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
6587 for ifdefing away the call to Fprocess_status.
6588
20477505
EZ
6589 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
6590 away the entire body of the function.
6591
b3ffc17c
DN
65922010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6593
01faa934
DN
6594 Remove subprocesses #ifdefs from term.c.
6595 * process.c (add_keyboard_wait_descriptor)
6596 (delete_keyboard_wait_descriptor): Move to common section, do
6597 nothing when subprocesses is not defined.
a628ad9d
JB
6598 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
6599 Remove subprocesses #ifdefs.
01faa934 6600
b3ffc17c
DN
6601 Convert maybe_fatal to standard C.
6602 * lisp.h (verror): Declare.
6603 * eval.c (verror): New function containing the code from ...
6604 (error): ... this. Call verror.
6605 * term.c (vfatal): New function containing the code from ...
6606 (fatal): ... this. Call vfatal.
6607 (maybe_fatal): Convert to standard C, use variable number of
6608 arguments. Declare as non-return.
6609 (init_tty): Fix maybe_fatal call.
6610
0521f580
DN
66112010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6612
6613 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
6614 (_scroll_bar_note_movement): Convert definitions to standard C.
6615 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
6616 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
6617
ebd15611
DN
66182010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6619
6620 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
6621 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
6622 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
6623 (xaw_jump_callback, xaw_scroll_callback)
6624 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
6625 (x_wm_set_size_hint, x_activate_timeout_atimer):
6626 Convert definitions to standard C.
ebd15611
DN
6627 * xmenu.c (menubar_id_to_frame, popup_get_selection)
6628 (popup_activate_callback, popup_deactivate_callback)
6629 (menu_highlight_callback, menubar_selection_callback)
6630 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
6631 (free_frame_menubar, popup_selection_callback, as)
6632 (create_and_show_popup_menu, dialog_selection_callback)
6633 (create_and_show_dialog):
6634 * xfns.c (hack_wm_protocols, x_window):
6635 * xfaces.c (x_update_menu_appearance):
6636 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
6637 (char_to_pixel_size, round_size_to_char, get_wm_shell)
6638 (set_frame_size, update_wm_hints, setup_frame_gcs)
6639 (update_various_frame_slots, update_from_various_frame_slots)
6640 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
6641 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
6642 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
6643
de06a2dd
AS
66442010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6645
a628ad9d 6646 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 6647
fc549af9
EZ
66482010-07-12 Eli Zaretskii <eliz@gnu.org>
6649
6650 * process.c (setup_process_coding_systems): Move to the part
6651 shared by non-subprocesses systems, and make its body empty when
6652 subprocesses is not defined.
6653 (close_process_descs): Move to the part shared by non-subprocesses
6654 systems.
1408902e
EZ
6655 (wait_reading_process_output) [!subprocesses]: Convert arg list to
6656 ANSI C.
fc549af9 6657
d5a3eaaf
AS
66582010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6659
6660 * editfns.c (transpose_markers): Convert old-style definition.
6661 * emacs.c (abort, shut_down_emacs, fixup_locale)
6662 (synchronize_system_time_locale)
6663 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
6664 * floatfns.c (extract_float, matherr, init_floatfns)
6665 (syms_of_floatfns): Likewise.
6666 * fns.c (make_hash_table): Likewise.
6667 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
6668 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
6669 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
6670 (ftfont_variation_glyphs): Likewise.
6671 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
6672 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
6673 * lread.c (read_filtered_event): Likewise.
6674 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
6675 * process.c (wait_reading_process_output): Likewise.
6676 * scroll.c (do_line_insertion_deletion_costs): Likewise.
6677 * search.c (search_buffer, boyer_moore): Likewise.
6678 * syntax.c (scan_sexps_forward): Likewise.
6679 * xdisp.c (try_scrolling): Likewise.
6680 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6681 (face_at_string_position): Likewise.
6682 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
6683 * xselect.c (x_get_window_property, receive_incremental_selection)
6684 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
6685 Likewise.
6686 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
6687
6f704c76
DN
66882010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6689
ded80a25
DN
6690 * callproc.c (child_setup): Remove subprocesses conditional.
6691 Remove code dealing with SET_EMACS_PRIORITY, unused.
6692
49d937f4 6693 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
6694 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
6695
6696 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
6697 (__do_global_dtors, __main): Use void in definition.
6698 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
6699 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
6700 the only users from ...
6701 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
6702 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
6703 (HAVE_VOLATILE): Remove, unused.
6704
6f704c76
DN
6705 Convert more function definitions to standard C.
6706 * xdisp.c (window_box_edges, handle_single_display_spec)
6707 (display_string): Convert definition to standard C.
6708 * scroll.c (do_direct_scrolling, scrolling_1):
6709 * dispnew.c (allocate_matrices_for_frame_redisplay)
6710 (mirrored_line_dance):
6711 * coding.c (code_convert_string):
6712 * charset.c (map_charset_chars):
6713 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
6714 (Fregister_ccl_program, Fregister_code_conversion_map):
6715 * keyboard.c (kbd_buffer_nr_stored): Likewise.
6716 (head_table): Make static and const.
6717
e6cfa7c3
AS
67182010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6719
6720 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
6721 (PROFILING_LDFLAGS): Set from substitution.
6722 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
6723 CFLAGS last.
6724
892dd565
KH
67252010-07-12 Kenichi Handa <handa@m17n.org>
6726
6f2cdcd1
KH
6727 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
6728 (shortlisp): Likewise.
6729
892dd565
KH
6730 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
6731
6732 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
6733 of FONT_ENTITY_INDEX.
6734 (Ffont_get): If KEY is :otf and the font-object doesn't have the
6735 property, get the property value dynamically.
6736 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 6737 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 6738 return value changed.
bba3e508 6739 (syms_of_font): Adjust for the above change.
892dd565 6740
ae96d47a
AS
67412010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6742
c8fc18ee
AS
6743 * blockinput.h: Remove obsolete comment.
6744
89887d67
AS
6745 * lisp.h: Include <stddef.h>.
6746 (OFFSETOF): Don't define.
6747 (VECSIZE): Use offsetof instead of OFFSETOF.
6748 (PSEUDOVECSIZE): Likewise.
6749 * process.c (conv_sockaddr_to_lisp): Likewise.
6750 * alloc.c: Don't include <stddef.h>.
6751 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6752
ae96d47a
AS
6753 * process.c: Remove obsolete comment.
6754
635c0aa1
CY
67552010-07-11 Chong Yidong <cyd@stupidchicken.com>
6756
6757 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6758
a64df650
AS
67592010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6760
8966b757
AS
6761 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6762 index, rindex.
6763 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6764 * editfns.c (Fuser_full_name, Fformat): Likewise.
6765 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6766 * fileio.c (Ffile_symlink_p): Likewise.
6767 * filelock.c (current_lock_owner): Likewise.
6768 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6769 * fontset.c (fontset_pattern_regexp): Likewise.
6770 * lread.c (read1): Likewise.
6771 * sysdep.c (init_system_name): Likewise.
6772 * xfns.c (select_visual): Likewise.
6773 * s/hpux10-20.h (index, rindex): Don't define.
6774 * s/ms-w32.h (index): Likewise.
6775 * s/usg5-4.h: Likewise.
6776
cf237e27
AS
6777 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6778
a8fe7202
AS
6779 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
6780 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
6781 (egetenv): Likewise.
6782 * doprnt.c (doprnt): Likewise.
6783 * editfns.c (set_time_zone_rule, format2): Likewise.
6784 * emacs.c (decode_env_path): Likewise.
6785 * eval.c (signal_error, error): Likewise.
6786 * insdel.c (replace_range_2): Likewise.
6787 * keyboard.c (cmd_error_internal): Likewise.
6788 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
6789 * print.c (write_string, write_string_1, print_error_message):
6790 Likewise.
6791 * vm-limit.c (warn_function, memory_warnings): Likewise.
6792 * xdisp.c (message1, message1_nolog, message_with_string)
6793 (vmessage, message, message_nolog): Likewise.
6794 * emacs.c: Remove duplicate declaration.
6795 * keyboard.h: Likewise.
6796 * lisp.h: Update prototypes.
6797
bb8e180f
AS
6798 * eval.c: Fix indentation problem.
6799
01c35094 6800 * keyboard.c: Include "process.h".
83380e65 6801
a64df650
AS
6802 * eval.c: Remove obsolete noinline declaration.
6803 * fns.c: Likewise.
6804
6a8033e1
KR
68052010-07-11 Ken Raeburn <raeburn@raeburn.org>
6806
6807 * doprnt.c (doprnt): Take a va_list argument instead of count and
6808 pointer.
6809 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 6810 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
6811 changed to take a va_list argument.
6812 (message): New variadic wrapper.
6813 (message_nolog): Now a variadic function, calling vmessage.
6814 * lisp.h: Include stdarg.h for va_list.
6815 (doprnt, error, message, message_nolog): Decls updated.
6816
462aa963
EZ
68172010-07-11 Eli Zaretskii <eliz@gnu.org>
6818
6819 * process.c (syms_of_process) <delete-exited-processes>: Define
6820 even if !subprocesses.
6821 (delete_exited_processes): Ditto.
6822
6823 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
6824 (delete_exited_processes): Don't define.
6825
48104462
CY
68262010-07-10 Chong Yidong <cyd@stupidchicken.com>
6827
6828 * frame.c (make_frame): Initialize menu_bar_lines and
6829 tool_bar_lines members.
bba3e508
SM
6830 (make_initial_frame, make_terminal_frame):
6831 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
6832
6833 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
6834
f388c88a
EZ
68352010-07-10 Eli Zaretskii <eliz@gnu.org>
6836
6837 * process.c: Reshuffle #include's. Condition some of the global
6838 and static variables on `subprocesses'.
6839 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6840 Leave only one implementation.
6841 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
6842 (kill_buffer_processes, Flist_system_processes)
6843 (Fprocess_attributes, init_process, syms_of_process): Unify the
6844 implementations for with subprocesses and without them.
6845
723f5a07
J
68462010-07-09 Jan Djärv <jan.h.d@swipnet.se>
6847
6848 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
6849 correct size for Motif.
6850 (free_frame_menubar): Call x_set_window_size to update frame size.
6851
6852 * xfns.c (x_window): Set borderWidth to 0 for pane and
6853 EmacsFrame. Frame size calculation is wrong otherwise.
6854
2536a4b7
MA
68552010-07-09 Michael Albinus <michael.albinus@gmx.de>
6856
6857 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
6858 allows to suppress errors when polling in Emacs' main loop.
6859 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
6860 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
6861 (Fdbus_method_error_internal, Fdbus_send_signal)
6862 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
6863 (Fdbus_register_method): Use it. (Bug#6579)
6864
5842a27b
DN
68652010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6866
6867 * alloc.c: Convert DEFUNs to standard C.
6868 * buffer.c:
6869 * bytecode.c:
6870 * callint.c:
6871 * callproc.c:
6872 * casefiddle.c:
6873 * casetab.c:
6874 * category.c:
6875 * character.c:
6876 * charset.c:
6877 * chartab.c:
6878 * cmds.c:
6879 * coding.c:
6880 * composite.c:
6881 * data.c:
6882 * dbusbind.c:
6883 * dired.c:
6884 * dispnew.c:
6885 * doc.c:
6886 * dosfns.c:
6887 * editfns.c:
6888 * emacs.c:
6889 * eval.c:
6890 * fileio.c:
6891 * filelock.c:
6892 * floatfns.c:
6893 * fns.c:
6894 * font.c:
6895 * fontset.c:
6896 * frame.c:
6897 * fringe.c:
6898 * image.c:
6899 * indent.c:
6900 * insdel.c:
6901 * keyboard.c:
6902 * keymap.c:
6903 * lread.c:
6904 * macros.c:
6905 * marker.c:
6906 * menu.c:
6907 * minibuf.c:
6908 * msdos.c:
6909 * nsfns.m:
6910 * nsmenu.m:
6911 * nsselect.m:
6912 * print.c:
6913 * process.c:
6914 * search.c:
6915 * sound.c:
6916 * syntax.c:
6917 * term.c:
6918 * terminal.c:
6919 * textprop.c:
6920 * undo.c:
6921 * w16select.c:
6922 * w32console.c:
6923 * w32fns.c:
6924 * w32font.c:
6925 * w32menu.c:
6926 * w32proc.c:
6927 * w32select.c:
6928 * window.c:
6929 * xdisp.c:
6930 * xfaces.c:
6931 * xfns.c:
6932 * xmenu.c:
6933 * xselect.c:
6934 * xsettings.c:
6935 * xsmfns.c: Likewise.
6936
d568829b
EZ
69372010-07-08 Eli Zaretskii <eliz@gnu.org>
6938
6939 * process.c (kbd_is_on_hold, hold_keyboard_input)
6940 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6941
52214050
J
69422010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6943
6944 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6945 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6946 unless USE_LUCID.
6947
313d9eb2
DN
69482010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6949
a628ad9d
JB
6950 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6951 declaration.
d8825aa3 6952
295d0d8f
DN
6953 Clean up include guards.
6954 * tparam.c: Remove include guards for config.h, string.h and code
6955 that assumes #ifndef emacs.
6956 * termcap.c:
6957 * unexalpha.c:
6958 * sysdep.c:
6959 * filemode.c:
6960 * filelock.c:
6961 * bidi.c: Likewise.
6962
49d9e6b0
DN
6963 Remove prefix-args.c
6964 * prefix-args.c: Remove file.
6965 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
6966 * Makefile.in (temacs${EXEEXT}): Remove references to
6967 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
6968 (mostlyclean): Remove reference to prefix-args.
6969 (prefix-args): Remove.
6970
313d9eb2
DN
6971 Simplify cstart_of_data, start_of_code and related code.
6972 * mem-limits.h: Remove !emacs and _LIBC conditional code.
6973 (start_of_data): Merge into start_of_data function.
6974 * sysdep.c (start_of_text): Remove. Move simplified versions of
6975 it in the only users: unexaix.c and unexec.c.
6976 (read_input_waiting): Remove local declaration of quit_char.
6977 (start, etext): Remove declarations.
6978 (start_of_data): Merge with the version in mem-limits.h and move
6979 to vm-limits.c.
6980 * vm-limit.c (start_of_data): Merged and simplified version of the
6981 code formerly in mem-limits.h and sysdep.c.
6982 * unexec.c (start): New declaration, moved from sysdep.c.
6983 (start_of_text): Simplified version of the code formerly in sysdep.c.
6984 * unexaix.c (start_of_text): Simplified version of the code
6985 formerly in sysdep.c.
6986 * m/alpha.h (HAVE_TEXT_START): Remove.
6987 (TEXT_START): Move ...
6988 * unexalpha.c (TEXT_START): ... here.
6989 * s/hpux10-20.h (TEXT_START): Remove.
6990 * s/darwin.h (TEXT_START):
6991 * m/mips.h (TEXT_START):
6992 * m/macppc.h (HAVE_TEXT_START):
6993 * m/m68k.h (TEXT_START):
6994 * m/iris4d.h (TEXT_START):
6995 * m/intel386.h (TEXT_START):
6996 * m/ibmrs6000.h (TEXT_START):
6997 * m/ia64.h (HAVE_TEXT_START):
6998 * s/msdos.h (TEXT_START): Likewise.
6999
72af86bd
AS
70002010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7001
7002 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7003 (overrun_check_free, xstrdup, allocate_string)
7004 (allocate_string_data, compact_small_strings, Fmake_string)
7005 (make_unibyte_string, make_multibyte_string)
7006 (make_string_from_bytes, make_specified_string, make_float)
7007 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7008 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7009 memcpy, memmove, memset, memcmp.
7010 * atimer.c (start_atimer, set_alarm): Likewise.
7011 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7012 (mmap_realloc, init_buffer_once): Likewise.
7013 * callint.c (Fcall_interactively): Likewise.
7014 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7015 (getenv_internal_1): Likewise.
7016 * casefiddle.c (casify_object): Likewise.
7017 * ccl.c (ccl_driver): Likewise.
7018 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7019 * charset.c (load_charset_map_from_file)
7020 (load_charset_map_from_file, load_charset_map_from_vector)
7021 (Fdefine_charset_internal): Likewise.
7022 * cm.c (Wcm_clear): Likewise.
7023 * coding.c (decode_eol, decode_coding_object)
7024 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7025 * data.c (Faset): Likewise.
7026 * dired.c (directory_files_internal, file_name_completion_stat):
7027 Likewise.
7028 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7029 (clear_glyph_row, copy_row_except_pointers)
7030 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7031 (save_current_matrix, restore_current_matrix)
7032 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7033 (mirror_line_dance, scrolling_window): Likewise.
7034 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7035 Likewise.
7036 * doprnt.c (doprnt): Likewise.
7037 * editfns.c (Fuser_full_name, make_buffer_string_both)
7038 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7039 * emacs.c (sort_args): Likewise.
7040 * eval.c (Fapply, Ffuncall): Likewise.
7041 * fileio.c (Ffile_name_directory, make_temp_name)
7042 (Fexpand_file_name, search_embedded_absfilename)
7043 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7044 (auto_save_error): Likewise.
7045 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7046 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7047 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7048 (Fmake_hash_table): Likewise.
7049 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7050 * ftfont.c (ftfont_text_extents): Likewise.
7051 * getloadavg.c (getloadavg): Likewise.
7052 * image.c (define_image_type, make_image, make_image_cache)
7053 (x_create_x_image_and_pixmap, xbm_image_p)
7054 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7055 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7056 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7057 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7058 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7059 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7060 Likewise.
7061 * indent.c (scan_for_column, compute_motion): Likewise.
7062 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7063 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7064 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7065 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7066 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7067 (store_user_signal_events, menu_bar_items, tool_bar_items)
7068 (process_tool_bar_item, append_tool_bar_item)
7069 (read_char_minibuf_menu_prompt, read_key_sequence)
7070 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7071 Likewise.
7072 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7073 Likewise.
7074 * lisp.h (STRING_COPYIN): Likewise.
7075 * lread.c (Fload, read1, oblookup): Likewise.
7076 * msdos.c (Frecent_doskeys): Likewise.
7077 * nsfns.m (Fx_create_frame): Likewise.
7078 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7079 Likewise.
7080 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7081 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7082 Likewise.
7083 * nsmenu.m (ns_update_menubar): Likewise.
7084 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7085 * print.c (print_unwind, printchar, strout, print_string)
7086 (print_error_message): Likewise.
7087 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7088 (Fmake_network_process, Fnetwork_interface_list)
7089 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7090 (init_process): Likewise.
7091 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7092 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7093 Likewise.
7094 * scroll.c (do_scrolling, do_direct_scrolling)
7095 (scrolling_max_lines_saved): Likewise.
7096 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7097 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7098 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7099 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7100 (emacs_set_tty): Likewise.
7101 * term.c (encode_terminal_code, calculate_costs)
7102 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7103 Likewise.
7104 * termcap.c (tgetst1, gobble_line): Likewise.
7105 * termhooks.h (EVENT_INIT): Likewise.
7106 * tparam.c (tparam1): Likewise.
7107 * unexalpha.c (unexec): Likewise.
7108 * unexec.c (write_segment): Likewise.
7109 * unexmacosx.c (unexec_write_zero): Likewise.
7110 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7111 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7112 * w32font.c (w32font_list_family, w32font_text_extents)
7113 (w32font_list_internal, w32font_match_internal)
7114 (w32font_open_internal, compute_metrics, Fx_select_font):
7115 Likewise.
7116 * w32menu.c (set_frame_menubar, add_menu_item)
7117 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7118 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7119 * w32uniscribe.c (uniscribe_list_family): Likewise.
7120 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7121 * window.c (make_window, replace_window, set_window_buffer)
7122 (Fsplit_window): Likewise.
7123 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7124 (add_to_log, message3, x_consider_frame_title)
7125 (append_space_for_newline, extend_face_to_end_of_line)
7126 (decode_mode_spec_coding, init_glyph_string): Likewise.
7127 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7128 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7129 (face_attr_equal_p, make_realized_face, make_face_cache)
7130 (free_realized_faces, lookup_named_face, smaller_face)
7131 (face_with_height, lookup_derived_face)
7132 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7133 (Finternal_set_font_selection_order, realize_default_face)
7134 (compute_char_face, face_at_buffer_position)
7135 (face_for_overlay_string, face_at_string_position, merge_faces):
7136 Likewise.
7137 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7138 (Fx_window_property, x_create_tip_frame)
7139 (Fx_backspace_delete_keys_p): Likewise.
7140 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7141 (xfont_text_extents): Likewise.
7142 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7143 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7144 * xselect.c (x_queue_event, x_get_window_property)
7145 (receive_incremental_selection): Likewise.
7146 * xsmfns.c (x_session_check_input): Likewise.
7147 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7148 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7149 Likewise.
7150 * character.h (BCOPY_SHORT): Removed.
7151 * config.in: Regenerate.
7152 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7153 * emacs.c (main) [PROFILING]: Don't declare
7154 dump_opcode_frequencies.
7155 * lisp.h (safe_bcopy): Remove declaration.
7156 (memset) [!HAVE_MEMSET]: Declare.
7157 (memcpy) [!HAVE_MEMCPY]: Likewise.
7158 (memmove) [!HAVE_MEMMOVE]: Likewise.
7159 (memcmp) [!HAVE_MEMCMP]: Likewise.
7160 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7161 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7162 Don't define.
7163 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7164 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7165 (BCOPY_DOWNWARD_SAFE): Don't define.
7166 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7167 (memcpy) [!HAVE_MEMCPY]: Define.
7168 (memmove) [!HAVE_MEMMOVE]: Define.
7169 (memcmp) [!HAVE_MEMCMP]: Define.
7170
cb768704
J
71712010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7172
7173 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
7174 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7175 New functions.
cb768704
J
7176 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7177 select on empty input mask.
7178 (init_process): Initialize kbd_is_on_hold to 0.
7179
7180 * process.h (hold_keyboard_input, unhold_keyboard_input)
7181 (kbd_on_hold_p): Declare.
7182
7183 * keyboard.c (input_available_signal): Declare.
7184 (kbd_buffer_nr_stored): New function.
7185 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7186 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7187 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7188 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7189 (tty_read_avail_input): If input is on hold, return.
7190 Don't read more that free slots in kbd_buffer (Bug#6571).
7191
3a8ce822
EZ
71922010-07-07 Eli Zaretskii <eliz@gnu.org>
7193
7194 * msdos.h:
7195 * msdos.c:
7196 * dosfns.c:
7197 * w16select.c: Convert function definitions to ANSI C.
7198
a628ad9d
JB
7199 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7200 Remove unused prototypes.
3a8ce822 7201
cf84bb53
JB
72022010-07-07 Juanma Barranquero <lekktu@gmail.com>
7203
7204 * coding.c, sysdep.c: Convert some more functions to standard C.
7205
1a4990fb
JB
72062010-07-07 Juanma Barranquero <lekktu@gmail.com>
7207
7208 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7209 (encode_coding_object): Use SPECPDL_INDEX.
7210 (syms_of_coding): Use DOS_NT.
7211
c0f2f16b
DN
72122010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7213
48fb6855
DN
7214 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7215
c0f2f16b
DN
7216 Make the function member of Lisp_Subr use standard C prototypes.
7217 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7218 (DECL_ALIGN): Add a cast for the function.
7219 * eval.c (Feval, Ffuncall): Use the proper type for each type
7220 function call.
7221
67aecef9
CY
72222010-07-06 Chong Yidong <cyd@stupidchicken.com>
7223
7224 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7225 fringe face id, so face-remapping-alist works (Bug#6091).
7226
b56ceb92
JB
72272010-07-06 Juanma Barranquero <lekktu@gmail.com>
7228
7229 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7230 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7231 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7232
7af07b96
AS
72332010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7234
7235 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7236 * lisp.h: Declare x_get_keysym_name.
7237 * keyboard.c (modify_event_symbol): Don't declare
7238 x_get_keysym_name here.
7239
69e24e34
DN
72402010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7241
7242 * ecrt0.c: Revert conversion to standard C.
7243
d3da34e0 72442010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
7245
7246 * vm-limit.c (memory_warnings):
7247 * keyboard.c (modify_event_symbol):
7248 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7249 (round2, emacs_rint):
7250 * process.c (send_process, old_sigpipe): Convert function
7251 definitions and declarations to standard C.
7252
72532010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
7254
7255 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7256 * xdisp.c: Convert function definitions to standard C.
7257
7258 * cm.c (cmputc): Arg C is now int, not char.
7259 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7260
00be444c
J
72612010-07-05 James Cloos <cloos@jhcloos.com>
7262
7263 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7264
7265 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7266 _NET_WM_ICON_NAME atoms.
7267
7268 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7269 and _NET_WM_ICON_NAME properties, too, matching what is
7270 done in the Gtk+ case.
7271
e4c8d29a
J
72722010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7273
ff919460
J
7274 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7275
e4c8d29a
J
7276 * xsmfns.c (SSDATA): New macro.
7277 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7278 passed to strlen/strcpy/strcat.
bba3e508
SM
7279 (create_client_leader_window): Surround with #ifndef USE_GTK.
7280 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
7281
7282 * xsettings.c (something_changedCB, parse_settings)
7283 (apply_xft_settings): Reformat prototype.
7284 (something_changedCB, init_gconf): Remove unused variable i.
7285 (read_settings): Remove unused variable long_len.
7286
7287 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7288 (xg_get_image_for_pixmap, create_dialog)
7289 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7290 (menuitem_highlight_callback, make_menu_item)
7291 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7292 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7293 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7294 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7295 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7296 (xg_tool_bar_item_expose_callback): Reformat prototype.
7297 (xg_update_menubar): GList *group => GSList *group.
7298 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7299 before use.
7300 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7301 to GTK_IMAGE (wimage).
7302
dd4c5104
DN
73032010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7304
898b4c5c
DN
7305 * atimer.c: Use "" instead of <> for local includes for
7306 consistency with the rest of the code.
7307
dd4c5104
DN
7308 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7309 * xrdb.c (get_system_name):
7310 * window.c (shrink_windows):
7311 * syntax.c (forw_comment):
7312 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7313 (ins_del_costs):
7314 * mem-limits.h (start_of_data):
7315 * lread.c (readevalloop):
7316 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7317 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7318 * frame.c (x_get_focus_frame):
7319 * floatfns.c (fmod_float):
7320 * fileio.c (choose_write_coding_system):
7321 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7322 (malloc_initialize_hook, sort_args, synchronize_locale):
7323 * doprnt.c (doprnt):
7324 * dired.c (compile_pattern):
7325 * data.c (fmod_float):
7326 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7327 (map_char_table_for_charset):
7328 * charset.c (define_charset_internal):
7329 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7330 to standard C.
7331
9a39b306 73322010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 7333 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
7334
7335 * lread.c (read1): Fix up last change to not mess up `c'.
7336
e6cb2cbb
JB
73372010-07-04 Juanma Barranquero <lekktu@gmail.com>
7338
7339 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7340
438105ed
JB
73412010-07-04 Juanma Barranquero <lekktu@gmail.com>
7342
7343 Fix prototypes.
7344
e5447b22 7345 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 7346 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
7347 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7348 arg, as required by internal_condition_case_1.
dcc7404b 7349 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
7350 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7351 (analyse_first): Fix "const const".
e5447b22 7352 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 7353 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 7354 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 7355
971de7fb
DN
73562010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7357
7358 * alloc.c: Convert function definitions to standard C.
7359 * atimer.c:
7360 * bidi.c:
7361 * bytecode.c:
7362 * callint.c:
7363 * callproc.c:
7364 * casefiddle.c:
7365 * casetab.c:
7366 * category.c:
7367 * ccl.c:
7368 * character.c:
7369 * charset.c:
7370 * chartab.c:
7371 * cmds.c:
7372 * coding.c:
7373 * composite.c:
7374 * data.c:
7375 * dbusbind.c:
7376 * dired.c:
7377 * dispnew.c:
7378 * doc.c:
7379 * doprnt.c:
7380 * ecrt0.c:
7381 * editfns.c:
7382 * fileio.c:
7383 * filelock.c:
7384 * filemode.c:
7385 * fns.c:
7386 * font.c:
7387 * fontset.c:
7388 * frame.c:
7389 * fringe.c:
7390 * ftfont.c:
7391 * ftxfont.c:
7392 * gtkutil.c:
7393 * indent.c:
7394 * insdel.c:
7395 * intervals.c:
7396 * keymap.c:
7397 * lread.c:
7398 * macros.c:
7399 * marker.c:
7400 * md5.c:
7401 * menu.c:
7402 * minibuf.c:
7403 * prefix-args.c:
7404 * print.c:
7405 * ralloc.c:
7406 * regex.c:
7407 * region-cache.c:
7408 * scroll.c:
7409 * search.c:
7410 * sound.c:
7411 * strftime.c:
7412 * syntax.c:
7413 * sysdep.c:
7414 * termcap.c:
7415 * terminal.c:
7416 * terminfo.c:
7417 * textprop.c:
7418 * tparam.c:
7419 * undo.c:
7420 * unexelf.c:
7421 * window.c:
7422 * xfaces.c:
7423 * xfns.c:
7424 * xfont.c:
7425 * xftfont.c:
7426 * xgselect.c:
7427 * xmenu.c:
7428 * xrdb.c:
7429 * xselect.c:
7430 * xsettings.c:
7431 * xsmfns.c:
7432 * xterm.c: Likewise.
7433
ae492bec
EZ
74342010-07-03 Eli Zaretskii <eliz@gnu.org>
7435
76ea4cc9
EZ
7436 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7437 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
7438 `reverse' is specified in the frame parameters.
7439 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
7440 internal-set-lisp-face-attribute. Initialize screen colors from
7441 initial_screen_colors[] when f->default_face_done_p is zero,
7442 instead of depending on being called with default-frame-alist as
7443 the alist argument.
7444
7445 * xfaces.c (update_face_from_frame_parameter): Move out of
7446 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7447 with HAVE_WINDOW_SYSTEM.
7448
1e6255ae
EZ
7449 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7450 to menu-bar-mode, if not set in the frame parameters or in
7451 default-frame-alist.
7452
ae492bec
EZ
7453 * w32console.c (sys_tputs): Adjust argument list to prototype in
7454 term.c.
7455
3a35a84c
JB
74562010-07-03 Juanma Barranquero <lekktu@gmail.com>
7457
7458 * lisp.h (memory_warnings): Fix prototype.
7459
7460 * cm.h (evalcost): Fix prototype.
7461
7462 * cm.c (evalcost): Fix arg type.
7463
c532d349
DN
74642010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7465
7466 * term.c (term_clear_mouse_face, Fidentity):
7467 * syssignal.h (signal_handler_t):
7468 * lisp.h (memory_warnings):
7469 * coding.h (preferred_coding_system):
7470 * cm.h (evalcost):
7471 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7472
c0b36d46
EZ
74732010-07-02 Eli Zaretskii <eliz@gnu.org>
7474
7475 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7476 from prototypes.
7477
7478 * msdos.h (load_pixmap): Don't define away.
7479
383e0970
J
74802010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7481
f57e2426
J
7482 * lisp.h:
7483 * atimer.h: Remove define for P_.
7484
7485 * alloc.c: Remove __P and P_ from .c and .m files.
7486 * atimer.c:
7487 * buffer.c:
7488 * callint.c:
7489 * category.c:
7490 * charset.c:
7491 * chartab.c:
7492 * cm.c:
7493 * coding.c:
7494 * composite.c:
7495 * data.c:
7496 * dired.c:
7497 * dispnew.c:
7498 * doc.c:
7499 * editfns.c:
7500 * emacs.c:
7501 * eval.c:
7502 * fileio.c:
7503 * filelock.c:
7504 * fns.c:
7505 * font.c:
7506 * fontset.c:
7507 * frame.c:
7508 * ftfont.c:
7509 * ftxfont.c:
7510 * gmalloc.c:
7511 * gtkutil.c:
7512 * image.c:
7513 * indent.c:
7514 * intervals.c:
7515 * keyboard.c:
7516 * keymap.c:
7517 * lread.c:
7518 * marker.c:
7519 * menu.c:
7520 * minibuf.c:
7521 * print.c:
7522 * process.c:
7523 * scroll.c:
7524 * search.c:
7525 * sound.c:
7526 * strftime.c:
7527 * syntax.c:
7528 * sysdep.c:
7529 * term.c:
7530 * terminal.c:
7531 * textprop.c:
7532 * unexalpha.c:
7533 * w32console.c:
7534 * w32fns.c:
7535 * w32font.c:
7536 * w32menu.c:
7537 * w32term.c:
7538 * w32uniscribe.c:
7539 * window.c:
7540 * xdisp.c:
7541 * xfaces.c:
7542 * xfns.c:
7543 * xfont.c:
7544 * xftfont.c:
7545 * xmenu.c:
7546 * xselect.c:
7547 * xterm.c: Likewise.
7548
383e0970 7549 Remove P_ and __P macros.
f57e2426
J
7550 * atimer.h: Remove P_ and __P macros.
7551 * buffer.h:
383e0970
J
7552 * category.h:
7553 * ccl.h:
7554 * character.h:
7555 * charset.h:
7556 * cm.h:
7557 * coding.h:
7558 * composite.h:
7559 * dispextern.h:
7560 * disptab.h:
9e892c8d 7561 * dosfns.h:
383e0970
J
7562 * font.h:
7563 * fontset.h:
7564 * frame.h:
7565 * gtkutil.h:
7566 * indent.h:
7567 * intervals.h:
7568 * keyboard.h:
7569 * keymap.h:
7570 * lisp.h:
7571 * macros.h:
7572 * md5.h:
7573 * menu.h:
7574 * msdos.h:
7575 * nsterm.h:
7576 * puresize.h:
7577 * region-cache.h:
7578 * syntax.h:
7579 * syssignal.h:
7580 * systime.h:
7581 * termhooks.h:
9e892c8d 7582 * w32font.h:
383e0970
J
7583 * w32term.h:
7584 * widget.h:
7585 * window.h:
7586 * xgselect.h:
7587 * xsettings.h:
7588 * xterm.h: Likewise.
7589
98601119
DN
75902010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7591
d9170db5
DN
7592 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
7593
98601119
DN
7594 Cleanup old code.
7595 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7596 * syssignal.h: Remove code for Lynx, not supported anymore.
7597 * vm-limit.c: Remove unused code the depends on emacs not being
7598 defined and NO_LIM_DATA being defined.
7599 * mem-limits.h: Remove dead code.
7600
1f984e12
J
76012010-07-01 Jan Djärv <jan.h.d@swipnet.se>
7602
c49d071a
J
7603 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
7604
9d5405ec
J
7605 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
7606 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
7607
7a18115b
J
7608 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
7609 parameters, they are already absolute.
7610
a628ad9d
JB
7611 * nsterm.m (x_set_window_size, initFrameFromEmacs):
7612 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 7613
a628ad9d 7614 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 7615
a628ad9d
JB
7616 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
7617 Update FRAME_TOOLBAR_HEIGHT.
581a8100 7618
a628ad9d
JB
7619 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
7620 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 7621
c1ef4455
CY
76222010-06-30 Chong Yidong <cyd@stupidchicken.com>
7623
bba3e508
SM
7624 * frame.c (get_future_frame_param, Fmake_terminal_frame):
7625 Don't check default-frame-alist.
c1ef4455 7626
ce8f5a9a
AS
76272010-06-30 Andreas Schwab <schwab@linux-m68k.org>
7628
7629 * process.c (create_process): Avoid using invalid file descriptors.
7630
7631 * callproc.c (child_setup): Avoid closing a file descriptor twice.
7632
bf935339
J
76332010-06-30 Jan Djärv <jan.h.d@swipnet.se>
7634
7635 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
7636 Improve documentation. Return font regardless of use_system_font.
7637 (syms_of_xsettings): Improve documentation for font-use-system-font.
7638
7c33a057
CY
76392010-07-10 Chong Yidong <cyd@stupidchicken.com>
7640
2ec1b5ee
CY
7641 * xfaces.c (realize_face): Garbage the frame if a face is removed
7642 (Bug#6593).
7643
76442010-07-05 Andreas Schwab <schwab@linux-m68k.org>
7645
7646 * keyboard.c: Remove duplicate <setjmp.h>.
7647 (read_key_sequence): Remove volatile qualifiers.
7648
76492010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7650
7651 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
7652 (struct glyph_row): New members left_fringe_offset and
7653 right_fringe_offset.
7654
7655 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
7656 specially.
7657 * w32term.c (w32_draw_fringe_bitmap): Likewise.
7658 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
7659
7660 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 7661 Take account of bitmap offset.
2ec1b5ee
CY
7662 (draw_window_fringes): Take account of window vscroll.
7663 (update_window_fringes): Likewise. Extend top-aligned top indicator
7664 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
7665 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
7666 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
7667
76682010-07-04 Juanma Barranquero <lekktu@gmail.com>
7669
7670 * w32fns.c (Qtooltip): Declare.
7671 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
7672
76732010-07-03 Jan Djärv <jan.h.d@swipnet.se>
7674
7675 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
7676 grab on just Press (Bug#6499).
7677
76782010-07-02 Chong Yidong <cyd@stupidchicken.com>
7679
7680 * frame.c (Qtooltip): New var.
7681 (delete_frame): Use it. Fix faulty if statement. Don't update
7682 mode line for tooltip frames. Suggested by Martin Rudalics.
7683
7684 * xfns.c (x_create_tip_frame):
7685 * w32fns.c (x_create_tip_frame): Use it.
7686
76872010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
7688
7689 * xftfont.c (xftfont_open): Check font width one by one also when
7690 spacing is dual.
7691
7692 * ftfont.c (ftfont_open): Ditto.
7693
6259c2ec
GM
76942010-06-30 Glenn Morris <rgm@gnu.org>
7695
a46007e9
GM
7696 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
7697
6259c2ec
GM
7698 * Makefile.in (CANNOT_DUMP): Update for configure name change.
7699
7700 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
7701 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7702 * s/darwin.h (SYSTEM_MALLOC):
7703 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
7704
5d1d3d04
J
77052010-06-29 Jan Djärv <jan.h.d@swipnet.se>
7706
7707 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
7708 (ns_get_screen): Don't assign integer to f.
7709 (Fx_display_color_cells): Declarations before statements.
7710
e547b051
J
77112010-06-28 Jan Djärv <jan.h.d@swipnet.se>
7712
5fc8e5bc
J
7713 * xfns.c (x_default_font_parameter): Remove got_from_system
7714 (Bug#6526).
7715
e547b051 7716 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
7717 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
7718 New defines based on what configure finds.
e547b051
J
7719
7720 * xterm.c (XTflash): Use gtk_widget_get_window.
7721 (xg_scroll_callback): Use gtk_adjustment_get_upper and
7722 gtk_adjustment_get_page_size.
7723 (handle_one_xevent): Use gtk_widget_get_mapped.
7724 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
7725 messages.
7726
7727 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
7728
7729 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
7730 HAVE_GTK_FILE_SELECTION_NEW.
7731
bba3e508
SM
7732 * gtkutil.c (xg_display_open, xg_display_close):
7733 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
7734 (xg_display_open): Return type is void.
7735 (gtk_widget_set_has_window)
7736 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
7737 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
7738 (gtk_adjustment_set_page_increment)
7739 (gtk_adjustment_get_step_increment): #define these if not found
7740 by configure.
7741 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
7742 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
7743 Use gtk_widget_get_window.
e547b051
J
7744 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
7745 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
7746 (create_dialog): Use gtk_dialog_get_action_area and
7747 gtk_dialog_get_content_area.
7748 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7749 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7750 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
7751 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7752 Use g_object_ref and g_object_unref.
7753 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7754 Use gtk_widget_get_sensitive.
e547b051
J
7755 (xg_update_submenu): Use remove_submenu.
7756 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7757 properties instead to get old x and y position.
7758 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7759 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 7760 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
7761 (xg_get_tool_bar_widgets): New function.
7762 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7763 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7764 (toolbar_set_orientation): New #define based on if configure
7765 finds gtk_orientable_set_orientation.
7766 (xg_create_tool_bar): Call toolbar_set_orientation.
7767 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7768 instead of gtk_box_pack_start_defaults.
7769
b9229673
CY
77702010-06-28 Chong Yidong <cyd@stupidchicken.com>
7771
7772 * cmds.c (Fdelete_backward_char): Move into Lisp.
7773
bbc803b0
DN
77742010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7775
7776 * s/freebsd.h (BSD4_2): Remove redundant definition.
7777 bsd-common.h defines it already.
7778
6431f2e6
CY
77792010-06-27 Chong Yidong <cyd@stupidchicken.com>
7780
7781 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
7782 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
7783 tool-bar-mode, which are now set using these X resources at
7784 startup, to determine the defaults (Bug#2249).
7785
7786 * w32fns.c (Fx_create_frame):
7787 * nsfns.m (Fx_create_frame): Likewise.
7788
7789 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
7790
8c079ebb
JB
77912010-06-24 Juanma Barranquero <lekktu@gmail.com>
7792
7793 * gtkutil.c (xg_update_scrollbar_pos):
7794 Avoid C99 mid-block variable declaration.
7795
e9b7ab96
JD
77962010-06-22 Jan Djärv <jan.h.d@swipnet.se>
7797
bc869eca
JD
7798 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
7799
2b7e356a 7800 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
7801
7802 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
7803 if height is less than scroll bar min size.
7804 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
7805
e9b7ab96
JD
7806 * xfns.c (x_default_font_parameter): Try to open font from system
7807 before using it (bug#6478). Rename got_from_gconf to got_from_system.
7808
a628ad9d 78092010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
7810
7811 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
7812
70c4cfbb
EZ
78132010-06-20 Eli Zaretskii <eliz@gnu.org>
7814
7815 * xdisp.c (try_scrolling): When scroll-conservatively is set to
7816 most-positive-fixnum, be extra accurate when scrolling window
7817 start, to avoid missing the cursor line.
7818
ad5a12b5
EZ
78192010-06-19 Eli Zaretskii <eliz@gnu.org>
7820
7821 * xdisp.c (try_scrolling): Compute the limit for searching point
7822 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
7823 of 10 screen lines.
7824 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
7825 and
7826 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
7827 for details.
7828
2a64315a 78292010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
7830
7831 * editfns.c (Fbyte_to_string): Pacify compiler.
7832
288cf4e9
SM
78332010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7834
7835 * lread.c (read1): Phase out old-style backquotes a bit more.
7836
6e6e5760
EZ
78372010-06-12 Eli Zaretskii <eliz@gnu.org>
7838
cbc4fd20
EZ
7839 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
7840 bidimirror.h.
7841
7842 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
7843
317fbf33
EZ
7844 * bidi.c (bidi_initialize): Remove explicit initialization of
7845 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 7846 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 7847 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
7848
7849 * biditype.h: New file.
7850
cbc4fd20
EZ
7851 * bidimirror.h: New file.
7852
6e6e5760
EZ
7853 * window.c (syms_of_window): Doc fix (bug#6409).
7854
4176cba2
RF
78552010-06-12 Romain Francoise <romain@orebokech.com>
7856
7857 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
7858 ediff-hook.
7859
cb4bfcb5
GM
78602010-06-10 Glenn Morris <rgm@gnu.org>
7861
64c60c2f
GM
7862 * editfns.c (Fbyte_to_string): Pacify compiler.
7863
cb4bfcb5
GM
7864 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
7865
2ec1b5ee
CY
78662010-06-26 Andreas Schwab <schwab@linux-m68k.org>
7867
7868 * alloc.c (Fmake_byte_code): Don't access undefined argument
7869 (Bug#6517).
7870
78712010-06-25 Chong Yidong <cyd@stupidchicken.com>
7872
7873 * xdisp.c (next_element_from_image): Ensure that after-strings are
7874 read the next time we hit handle_stop (Bug#1336).
7875
78762010-06-23 Andreas Schwab <schwab@linux-m68k.org>
7877
7878 * lread.c (read1): Signal error if #s is not followed by paren.
7879
78802010-06-19 Chong Yidong <cyd@stupidchicken.com>
7881
7882 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7883
7884 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7885
78862010-06-15 Glenn Morris <rgm@gnu.org>
7887
7888 * editfns.c (Fbyte_to_string): Pacify compiler.
7889
e454a4a3
SM
78902010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7891
7892 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7893 Check `object's type before accessing its guts.
7894
c1b1acc2
DN
78952010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7896
7897 * s/usg5-4.h: Fix previous change.
7898 Suggested by Lawrence Mitchell <wence@gmx.li>
7899
657d4c0b
AS
79002010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7901
7902 * minibuf.c (Fall_completions): Add more checks.
7903
9b27fd9f
JB
79042010-06-08 Juanma Barranquero <lekktu@gmail.com>
7905
7906 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7907
a99ebb40
DN
79082010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7909
d7c5d87d
DN
7910 * lread.c (X_OK): Remove, unused.
7911
0263a941
DN
7912 * dispnew.c: Remove obsolete comment.
7913
a99ebb40
DN
7914 Remove INCLUDED_FCNTL.
7915 * xterm.c (INCLUDED_FCNTL):
7916 * callproc.c (INCLUDED_FCNTL):
7917 * alloc.c (INCLUDED_FCNTL):
7918 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7919 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7920
13b5221f
MR
79212010-06-07 Martin Rudalics <rudalics@gmx.at>
7922
7923 * window.c (Fselect_window): Move `record_buffer' up to the
7924 beginning of this function, so the buffer gets recorded
7925 even if the selected window does not change.
7926 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7927
5220357f
JB
79282010-06-07 Juanma Barranquero <lekktu@gmail.com>
7929
7930 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7931 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7932
3085237c
DN
79332010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7934
7935 Remove BSTRING related code, all platforms define it.
7936 * s/usg5-4.h (BSTRING): Remove definition.
7937 * s/template.h (BSTRING):
7938 * s/msdos.h (BSTRING):
7939 * s/ms-w32.h (BSTRING):
7940 * s/hpux10-20.h (BSTRING):
7941 * s/gnu-linux.h (BSTRING):
7942 * s/darwin.h (BSTRING):
7943 * s/cygwin.h (BSTRING):
7944 * s/bsd-common.h (BSTRING):
7945 * s/aix4-2.h (BSTRING): Likewise.
7946 * sysdep.c: Remove code depending on BSTRING not being defined.
7947
409f2919
JB
79482010-06-05 Juanma Barranquero <lekktu@gmail.com>
7949
7950 Remove obsolete macro BASE_LEADING_CODE_P.
7951 * character.h (BASE_LEADING_CODE_P): Remove.
7952 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7953 * buffer.c (Fset_buffer_multibyte):
7954 * indent.c (scan_for_column, compute_motion):
7955 * insdel.c (count_combining_before, count_combining_after):
7956 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
7957
087fc47a
JB
79582010-06-04 Juanma Barranquero <lekktu@gmail.com>
7959
7960 Turn `directory-sep-char' into a noop.
7961
7962 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
7963 (DIRECTORY_SEP): Define unconditionally.
7964
7965 * s/ms-w32.h (DIRECTORY_SEP): Remove.
7966
7967 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
7968 call dostounix_filename directly.
7969
7970 * fileio.c (CORRECT_DIR_SEPS): Remove.
7971 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
7972 (Fsubstitute_in_file_name): Use dostounix_filename instead.
7973 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
7974 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
7975
7976 * w32proc.c (CORRECT_DIR_SEPS): Remove.
7977 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
7978
0eb7675e
AS
79792010-06-03 Andreas Schwab <schwab@linux-m68k.org>
7980
a628ad9d
JB
7981 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
7982 (Bug#6346)
0eb7675e 7983
78edd3b7
JB
79842010-06-03 Juanma Barranquero <lekktu@gmail.com>
7985
7986 * ccl.c (Fccl_program_p): Fix typo in docstring.
7987
eb697db5
DN
79882010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
7989
7990 Move UNEXEC definition to autoconf.
7991 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
7992 * s/sol2-10.h (UNEXEC):
7993 * s/irix6-5.h (UNEXEC):
7994 * s/hpux10-20.h (UNEXEC):
7995 * s/gnu-linux.h (UNEXEC):
7996 * s/darwin.h (UNEXEC):
7997 * s/cygwin.h (UNEXEC):
7998 * s/bsd-common.h (UNEXEC):
7999 * s/aix4-2.h (UNEXEC):
8000 * m/alpha.h (UNEXEC): Likewise.
8001 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8002
aa3830c4
JB
80032010-06-03 Juanma Barranquero <lekktu@gmail.com>
8004
8005 Remove obsolete pre-unicode2 macros.
8006 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8007 * composite.c (composition_reseat_it):
8008 * data.c (Faset):
8009 * fns.c (Ffillarray):
8010 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8011 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8012
d234d13e
JL
80132010-06-03 Juri Linkov <juri@jurta.org>
8014
8015 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8016 (Fswitch_to_buffer): Remove unused variable `err'.
8017
0d4bcf4d
GM
80182010-06-03 Glenn Morris <rgm@gnu.org>
8019
e23dc1e2
GM
8020 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8021
05b09564
GM
8022 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8023 now that AH_BOTTOM does it.
8024
824e2978
GM
8025 * m/hp800.h (HAVE_ALLOCA):
8026 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8027
0d4bcf4d
GM
8028 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8029 Remove NOT_C_CODE tests, it is always true now.
8030
c55d2abf
DN
80312010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8032
08a494a3
DN
8033 Fix config.h includes.
8034 * xsettings.c:
8035 * xgselect.c:
8036 * nsterm.m:
8037 * nsselect.m:
8038 * nsimage.m:
8039 * nsfont.m:
8040 * nsfns.m:
8041 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8042 other files do.
8043
75934b1d
DN
8044 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8045
9f32a766
DN
8046 * s/sol2-6.h: Remove obsolete comments.
8047
c55d2abf
DN
8048 Remove unnecessary alloca.h includes.
8049 * keymap.c: Do not include alloca.h, config.h does that.
8050 * sysdep.c: Likewise. Do not define fwrite, not used.
8051
06ac62b4
SM
80522010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8053
8054 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8055 the HAVE_TERMIO where it belongs (bug#6149).
8056
1ab8293c
SM
80572010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8058
8059 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8060 of bug#6305).
8061
6dcfd253
EZ
80622010-05-30 Eli Zaretskii <eliz@gnu.org>
8063
8064 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8065 state is always cached (bug#6306).
8066
6d26bbb2
EZ
80672010-05-29 Eli Zaretskii <eliz@gnu.org>
8068
06fa4a23
EZ
8069 Fix cursor motion in bidi-reordered continued lines.
8070 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8071 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
8072 over continuation lines in bidi-reordered buffers.
8073 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
8074 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8075
f5783df3
MA
80762010-05-28 Michael Albinus <michael.albinus@gmx.de>
8077
8078 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8079
7d56b2dd
KH
80802010-05-28 Kenichi Handa <handa@m17n.org>
8081
8082 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8083 Don't sheck SPEC if it is nil.
8084 (font_list_entities): Call font_delete_unmatched if
b925d231 8085 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 8086
e58d4ff7
GM
80872010-05-28 Glenn Morris <rgm@gnu.org>
8088
8089 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8090
f1a5d776
CY
80912010-05-27 Chong Yidong <cyd@stupidchicken.com>
8092
8093 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8094 whether to trash.
8095 (internal_delete_file, Frename_file): Callers changed.
8096 (delete_by_moving_to_trash): Doc fix.
8097 (Fdelete_directory_internal): Don't move to trash.
8098
8099 * callproc.c (delete_temp_file):
8100 * buffer.c (Fkill_buffer): Callers changed.
8101
8102 * lisp.h: Update prototype.
8103
f44a59e6
CY
81042010-05-27 Chong Yidong <cyd@stupidchicken.com>
8105
8106 * xdisp.c (redisplay_window): After redisplay, check if point is
8107 still valid before setting it (Bug#6177).
8108
81ac4f35
GM
81092010-05-27 Glenn Morris <rgm@gnu.org>
8110
8111 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8112 Convert comments to Makefile format.
8113
8114 * Makefile.in (bootstrap-clean): No more Makefile.c.
8115
ccd89fb3
GM
81162010-05-26 Glenn Morris <rgm@gnu.org>
8117
90278cb6
GM
8118 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8119 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8120
ccd89fb3
GM
8121 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8122 Remove.
8123 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8124
b7050583
KH
81252010-05-26 Kenichi Handa <handa@m17n.org>
8126
8127 * composite.c (composition_compute_stop_pos): Fix condition for
8128 backward scanning.
8129
e5458003
GM
81302010-05-25 Glenn Morris <rgm@gnu.org>
8131
c345fe90
GM
8132 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8133 Move before TEMACS_LDFLAGS.
8134 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8135 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8136
2e0689ab
GM
8137 * Makefile.in (NOT_C_CODE): No longer define.
8138 (config.h): No longer include.
8139
8009a5e8
GM
8140 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8141 variables it may reference.
8142
e5458003
GM
8143 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8144 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8145
10f72a37
KH
81462010-05-25 Kenichi Handa <handa@m17n.org>
8147
8148 * dispextern.h (struct composition_it): New members rule_idx and
8149 charpos.
8150
8151 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8152 that the character positions of IT point the last character of the
8153 current grapheme cluster.
8154 (next_element_from_composition): Don't change character positions
8155 of IT.
8156 (append_composite_glyph): Set glyph->charpos to
8157 it->cmp_it.charpos.
8158
8159 * composite.c (autocmp_chars): Change the first argument to RULE,
8160 and try composition with RULE only.
8161 (composition_compute_stop_pos): Record the index number of the
8162 composition rule in CMP_IT->rule_idx.
8163 (composition_reseat_it): Call autocmp_chars repeatedly until the
8164 correct rule of the composition is found.
8165 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8166 is at the last character of the current grapheme cluster when
8167 CMP_IT->reversed_p is nonzero.
8168
171eda53 81692010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 8170
171eda53
SM
8171 * editfns.c (Fbyte_to_string): New function.
8172
66a9f7f4
SM
81732010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8174
8175 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8176 Suggested by Masatake YAMATO <yamato@redhat.com>.
8177
d8c315d1
EZ
81782010-05-23 Eli Zaretskii <eliz@gnu.org>
8179
171eda53 8180 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 8181
f5b416d2 81822010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8183
8184 * s/netbsd.h: If terminfo is found, use it in preference to
8185 termcap. (Bug#6190) [Backport from trunk]
8186
0416466c
EZ
81872010-05-19 Eli Zaretskii <eliz@gnu.org>
8188
11117830 8189 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
8190
8191 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8192 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8193 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8194 and maxpos members instead of start.pos and end.pos, respectively.
8195
8196 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8197 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8198 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
8199 (try_window_reusing_current_matrix, try_window_id):
8200 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
8201 (init_from_display_pos, init_iterator): Use EMACS_INT for
8202 character and byte positions.
66a9f7f4 8203 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
8204 arguments for minimum and maximum buffer positions seen by
8205 display_line for this row. Don't use iterator to find the
8206 position following the maximum one; instead, increment the
11117830
EZ
8207 position found by display_line directly. Fix logic; eol_pos
8208 should be tested before the rest. Handle the case of characters
8209 delivered from display vector (bug#6036). Fix tests related to
8210 it->method. Handle the truncated_on_right_p rows.
8211 (RECORD_MAX_MIN_POS): New macro.
8212 (display_line): Use it to record the minimum and maximum buffer
8213 positions for glyphs in the row being assembled. Record the
8214 position of the newline that terminates the line. If word wrap is
8215 in effect, restore minimum and maximum positions seen up to the
8216 wrap point, when iterator returns to it.
8217 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8218 row and cursor not already at point. Restore original pre-bidi
8219 code for unidirectional buffers.
d36fe237
EZ
8220
8221 * dispnew.c (increment_row_positions, check_matrix_invariants):
8222 Increment and check row->start.pos and row->end.pos, in addition
8223 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8224
11117830
EZ
8225 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8226 Display truncated_on_left_p and truncated_on_right_p flags.
8227 Formatting fixes.
8228 (pmtxrows): Display the ordinal number of each row. Don't display
8229 rows beyond the last one.
8230
8231 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8232 it is not copied by bidi_copy_it.
8233
6e83d800
EZ
82342010-05-22 Eli Zaretskii <eliz@gnu.org>
8235
8236 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8237 (Bug#6237)
8238
110683ad
CY
82392010-05-22 Chong Yidong <cyd@stupidchicken.com>
8240
8241 * image.c (Fimage_flush): Rename from image-refresh.
8242
98fe5161
CY
82432010-05-21 Chong Yidong <cyd@stupidchicken.com>
8244
8245 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8246 just one window.
8247
8248 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8249 (clear_image_cache): If the number of cached images is unusually
8250 large, decrease the cache eviction delay (Bug#6230).
8251
e8752c66
GM
82522010-05-21 Glenn Morris <rgm@gnu.org>
8253
66dbf213
GM
8254 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8255 Move these rules to ns.mk.
8256 * ns.mk: New file.
8257
04384b2d
GM
8258 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8259
e8752c66
GM
8260 * Makefile.in (CANNOT_DUMP): New, set by configure.
8261 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8262
2e2bbddb
JL
82632010-05-20 Juri Linkov <juri@jurta.org>
8264
8265 * fileio.c (Fdelete_file): Change interative spec to use
8266 `read-file-name' like in `find-file-read-args' where the default
8267 value is `default-directory' instead of `buffer-file-name'.
8268 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8269
31c4aaf6
KR
82702010-05-20 Kevin Ryde <user42@zip.com.au>
8271
8272 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8273 (Voverriding_terminal_local_map, Vsystem_key_alist)
8274 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8275
9d5cf9b6
GM
82762010-05-20 Glenn Morris <rgm@gnu.org>
8277
8278 * Makefile.in (DEPDIR): New constant.
8279 (DEPFLAGS): Set with configure, not cpp.
8280 (MKDEPDIR): New, set by configure.
8281 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8282 (clean): Use $DEPDIR.
8283 (deps_frag): Include from configure.
8284 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8285 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8286
bba3e508
SM
8287 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8288 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 8289
7f34aec3
GM
82902010-05-19 Glenn Morris <rgm@gnu.org>
8291
d494e8f2
GM
8292 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8293
c1d0dcfd
GM
8294 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8295 (GNULIB_VAR): Remove.
8296 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8297
8298 * m/ibms390x.h (LINKER):
8299 * m/macppc.h (LINKER) [GNU_LINUX]:
8300 * s/aix4-2.h (ORDINARY_LINK):
8301 * s/cygwin.h (LINKER):
8302 * s/darwin.h (ORDINARY_LINK):
8303 * s/gnu.h (ORDINARY_LINK):
8304 * s/netbsd.h (LINKER):
8305 * s/usg5-4.h (ORDINARY_LINK):
8306 Move to configure.
8307
7f34aec3
GM
8308 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8309
754790b6
CY
83102010-05-18 Chong Yidong <cyd@stupidchicken.com>
8311
8312 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8313 prevent stack overflow if number of arguments is too large
8314 (Bug#6214).
8315
161e44d1
JB
83162010-05-18 Juanma Barranquero <lekktu@gmail.com>
8317
8318 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8319
be4ff9da
GM
83202010-05-18 Glenn Morris <rgm@gnu.org>
8321
9539dc5d
GM
8322 * s/gnu-linux.h: Combine two conditionals.
8323
8324 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
8325 $(POST_ALLOC_OBJ).
8326
40dc6bf4
GM
8327 * Makefile.in (RALLOC_OBJ): New, set by configure.
8328 (rallocobj): Replace with the previous variable.
8329 (otherobj): Use $RALLOC_OBJ.
8330
8331 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8332 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8333
be4ff9da
GM
8334 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8335 (gmallocobj, vmlimitobj): Replace with previous two variables.
8336 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8337
16455a85
GM
83382010-05-17 Glenn Morris <rgm@gnu.org>
8339
8340 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8341 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8342
5fdb7468
GM
83432010-05-16 Glenn Morris <rgm@gnu.org>
8344
7ca1f3f9
GM
8345 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8346
7541dad5
GM
8347 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8348
da53fab9
GM
8349 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8350 trailing "/".
8351
b02a6645
GM
8352 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8353 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8354
8877ca0f
GM
8355 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8356 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8357 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8358 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8359 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8360
5fdb7468
GM
8361 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8362 Remove ${STARTFLAGS}, nothing ever sets it.
8363
95adb4b1
DN
83642010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8365
8366 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8367
676b6304
GM
83682010-05-16 Glenn Morris <rgm@gnu.org>
8369
9beab9ce
GM
8370 * Makefile.in (LIBX_BASE): Always define.
8371
8a95f0e7
GM
8372 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8373
676b6304
GM
8374 * Makefile.in (LIBXT): Always define.
8375
6e546d18
GM
83762010-05-15 Glenn Morris <rgm@gnu.org>
8377
4235ca47 8378 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 8379
6e546d18
GM
8380 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8381 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8382
8c5ff6dd
KR
83832010-05-15 Ken Raeburn <raeburn@raeburn.org>
8384
560bb7ae 8385 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
8386 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8387
8b4eb796
KR
8388 * emacs.c (main): Initialize initial-environment and
8389 process-environment before generating from env, not after.
8390
8c5ff6dd
KR
8391 Handle --version reasonably in CANNOT_DUMP configuration.
8392 * emacs.c (emacs_version, emacs_copyright): New string variables.
8393 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8394 (syms_of_emacs): Defvar them, and initialize them from the C
8395 string variables.
8396 (main): If initialization hasn't been done, print initial version
8397 info from the C strings, instead of starting an interactive session.
8398
dbd3f723
EZ
83992010-05-15 Eli Zaretskii <eliz@gnu.org>
8400
d20e1419
EZ
8401 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8402 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
8403 (bidi_paragraph_init): Remove redundant assertion that we are at
8404 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
8405
8406 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8407 (syms_of_xdisp): Defsubr it.
8408
d36fe237
EZ
8409 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8410
dbd3f723
EZ
8411 * Makefile.in: Fix MSDOS-related comments.
8412
02be533b
GM
84132010-05-15 Glenn Morris <rgm@gnu.org>
8414
1a82cca9
GM
8415 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8416 (really-lwlib, really-oldXMenu): Always define.
8417 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8418
3df7b338
GM
8419 * Makefile.in: Simplify cpp conditional.
8420
2b5f541b
GM
8421 * Makefile.in (${ns_appdir}): Simplify using umask.
8422
02be533b
GM
8423 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8424
4e2db1fe
SM
84252010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8426
8427 * eval.c (specbind): Remove left-over duplicate test.
8428 Disallow let-binding frame-local vars. Add comment.
8429
4b292a22
EZ
84302010-05-14 Eli Zaretskii <eliz@gnu.org>
8431
2fe72643 8432 Make the cache of bidi iterator states dynamically allocated.
1edbd309 8433 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
8434 (bidi_init_it): Call it.
8435 (bidi_cache_iterator_state): Enlarge the cache if needed.
8436
4e2db1fe 8437 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
8438 bidi_get_next_char_visually. All callers changed.
8439
82ebc97b
KH
84402010-05-14 Kenichi Handa <handa@m17n.org>
8441
8442 * dispextern.h (struct composition_it): New member reversed_p.
8443
8444 * composite.c (composition_compute_stop_pos): Search backward if
8445 ENDPOS < CHARPOS.
8446 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8447 Set CMP_IT->reversed_p.
b4b6e17e 8448 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 8449
4e2db1fe
SM
8450 * xdisp.c (set_iterator_to_next):
8451 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
8452 scanning backward. Call composition_compute_stop_pos if scan
8453 direction is changed.
8454 (next_element_from_buffer): Call composition_compute_stop_pos with
8455 negative ENDPOS if we are scanning backward.
8456 (next_element_from_composition): Pay attention to
8457 IT->cmp_it.reversed_p.
8458
0e5d7800
KH
84592010-05-14 Kenichi Handa <handa@m17n.org>
8460
560bb7ae 8461 * font.c (font_range): Return the range for the font found at first.
0e5d7800 8462
cb027b32
GM
84632010-05-14 Glenn Morris <rgm@gnu.org>
8464
177b0288
GM
8465 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8466
fbc00890
GM
8467 * Makefile.in (mktime, X11, register): Move undefs to configure.
8468
f14d1dfd
GM
8469 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8470 (MSDOS_X_OBJ): New variable.
8471 (MSDOS_SUPPORT_REAL): New constant.
8472 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8473 (obj): Use MSDOS_X_OBJ.
8474 (lisp): Use MSDOS_SUPPORT as a variable.
8475
11842bd8
GM
8476 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8477 (GPM_MOUSE_SUPPORT): Now it's a constant.
8478 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8479 not cpp.
8480
489d31a4 8481 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 8482 (ns_appresdir): Remove, unused.
e20f1f07 8483
489d31a4
GM
8484 * Makefile.in (SHELL): Move outside cpp section.
8485
cb027b32
GM
8486 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8487
5a903aa9
GM
84882010-05-13 Glenn Morris <rgm@gnu.org>
8489
3369c79f
GM
8490 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8491 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8492
d5e982a6
GM
8493 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8494 HAVE_WINDOW_SYSTEM must be too.
8495
6192e163
GM
8496 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8497 (lisp): Remove WINNT_SUPPORT.
8498
472c5d6b
GM
8499 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8500 Let configure set these variables (to empty) in this case as well.
8501
0116466b
GM
8502 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8503 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8504
5a903aa9
GM
8505 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8506 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8507 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8508 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8509 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 8510 the values output by configure.
5a903aa9
GM
8511 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8512
1a0d7c06
GM
85132010-05-12 Glenn Morris <rgm@gnu.org>
8514
b5457f14
GM
8515 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8516 (LINKER_WAS_SPECIFIED): Remove.
8517
1a0d7c06
GM
8518 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8519 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8520 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8521 * s/cygwin.h (LIB_GCC):
8522 * s/freebsd.h (LIB_GCC):
8523 * s/gnu-linux.h (LIB_GCC):
8524 * s/msdos.h (LIB_GCC):
8525 * s/netbsd.h (LIB_GCC):
8526 Move to configure.
8527
d1ddd1d0 85282010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
8529
8530 * ftfont.c: Fix incorrect parentheses of #if condition for
8531 definining M17N_FLT_USE_NEW_FEATURE.
8532
acddf8ae
GM
85332010-05-11 Glenn Morris <rgm@gnu.org>
8534
8535 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8536 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8537
ae5e04fa
EZ
85382010-05-10 Eli Zaretskii <eliz@gnu.org>
8539
8540 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8541 unibyte buffers. See
8542 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8543
7490175b
GM
85442010-05-10 Glenn Morris <rgm@gnu.org>
8545
97efb629
GM
8546 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
8547 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
8548 (LIBES): Use LIBS_SYSTEM as a variable.
8549 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
8550 * s/aix4-2.h (LIBS_SYSTEM):
8551 * s/freebsd.h (LIBS_SYSTEM):
8552 * s/hpux10-20.h (LIBS_SYSTEM):
8553 * s/sol2-6.h (LIBS_SYSTEM):
8554 * s/unixware.h (LIBS_SYSTEM):
8555 Move to configure.
8556
7490175b
GM
8557 * s/aix4-2.h (MAIL_USE_LOCKF):
8558 * s/bsd-common.h (MAIL_USE_FLOCK):
8559 * s/darwin.h (MAIL_USE_FLOCK):
8560 * s/gnu-linux.h (MAIL_USE_FLOCK):
8561 * s/irix6-5.h (MAIL_USE_FLOCK):
8562 * s/template.h (MAIL_USE_FLOCK):
8563 Move to configure.
8564
0235128c 85652010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
8566
8567 * Version 23.2 released.
8568
0235128c 85692010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
8570
8571 * composite.c (autocmp_chars): Save point as marker before calling
8572 auto-composition-function (Bug#5984).
8573
8574 * lisp.h (restore_point_unwind): Add prototype.
8575
8576 * fileio.c (restore_point_unwind): Remove static attribute.
8577
0235128c 85782010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
8579
8580 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
8581 new feature of libotf and m17n-flt.
0235128c
SM
8582 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
8583 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
8584 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
8585 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
8586 that OUT is NULL. Use OTF_drive_gsub_with_log and
8587 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
8588 OTF_drive_gpos.
8589 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
8590 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
8591 Setup mflt_enable_new_feature and mflt_try_otf.
8592
4721152c
J
85932010-05-08 Jan Djärv <jan.h.d@swipnet.se>
8594
8595 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
8596
8597 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
8598 box and toolbar (Bug #6139).
8599 (xg_create_tool_bar): Remove comment (Bug #6139).
8600 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
8601 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
8602
ee0a16cf
JB
86032010-05-08 Juanma Barranquero <lekktu@gmail.com>
8604
8605 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
8606 Update dependencies.
8607
96d79611
EZ
86082010-05-08 Eli Zaretskii <eliz@gnu.org>
8609
8610 * fringe.c (update_window_fringes): Set up truncation bitmaps for
8611 R2L lines.
8612
40c17879
GM
86132010-05-08 Glenn Morris <rgm@gnu.org>
8614
7b42b29f
GM
8615 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
8616
40c17879
GM
8617 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
8618 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
8619 (termcapobj): Replace with TERMCAP_OBJ.
8620 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
8621 (LIBES): Use LIBS_TERMCAP as a variable.
8622
8623 * s/freebsd.h (osreldate.h): No longer include, since this file
8624 does not use __FreeBSD_version any more.
8625
8626 * s/aix4-2.h (TERMINFO):
8627 * s/cygwin.h (TERMINFO):
8628 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8629 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
8630 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8631 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8632 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
8633 * s/irix6-5.h (TERMINFO):
8634 * s/netbsd.h (LIBS_TERMCAP):
8635 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
8636 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
8637 * s/usg5-4.h (TERMINFO):
8638 Move to configure.
8639
94b612ad
SM
86402010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
8641
8642 * eval.c (unbind_to): Don't unbind a local binding into the global
8643 binding when the local binding disappeared. Inversely, don't unbind
8644 a global binding into a newly created local binding.
8645 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
8646 can specify the frame to use, when applicable. Adjust callers.
8647
15e12598 86482010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 8649 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
8650
8651 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
8652
f724825e
EZ
86532010-05-07 Eli Zaretskii <eliz@gnu.org>
8654
5cba3209
EZ
8655 * w32fns.c: Include w32.h.
8656 (Fw32_shell_execute): Decode the error message before passing it
8657 to `error'. (Bug#6126)
8658
d16bdfc3
EZ
8659 * msdos.c (dos_set_window_size):
8660 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
8661 instead of `XSYMBOL (foo)->value'.
8662
59d93e87
EZ
86632010-05-07 Eli Zaretskii <eliz@gnu.org>
8664
9fdec8bc
EZ
8665 Fix the MS-DOS build, broken by autoconfiscation.
8666
8667 * Makefile.in: Don't use Make-style comments past the "start of
8668 cpp stuff" line.
8669 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
8670
8671 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
8672 edited directly by msdos/sed1v2.inp).
f724825e 8673
2f86b22b
GM
86742010-05-07 Glenn Morris <rgm@gnu.org>
8675
8676 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
8677 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
8678 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
8679 move out of cpp section.
8680 * s/freebsd.h (LD_SWITCH_SYSTEM):
8681 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
8682 * s/netbsd.h (LD_SWITCH_SYSTEM):
8683 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
8684
49ebbd65
DN
86852010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8686
8687 Define LIB_STANDARD and START_FILES using autoconf.
8688 * s/usg5-4.h (LIB_STANDARD):
8689 * s/netbsd.h (START_FILES):
8690 * s/irix6-5.h (LIB_STANDARD):
8691 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
8692 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8693 * s/freebsd.h (START_FILES):
8694 * s/darwin.h (START_FILES):
8695 * s/cygwin.h (START_FILES):
8696 * s/aix4-2.h (LIB_STANDARD):
8697 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
8698 * Makefile.in (STARTFILES): Rename to START_FILES, define using
8699 autoconf, not cpp.
8700
d43c06d6
DN
87012010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
8702
28823648
DN
8703 Remove NEED_BSDTTY and NEED_UNISTD_H.
8704 * s/hpux10-20.h (NEED_BSDTTY): Remove.
8705 * s/aix4-2.h (NEED_UNISTD_H): Remove.
8706 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
8707 <sys/ptyio.h> and <unistd.h>.
8708
aca00430
DN
8709 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
8710
d43c06d6
DN
8711 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
8712 * s/gnu.h (START_FILES): Remove empty definition.
8713
3e56b11d
JD
87142010-05-06 Jan Djärv <jan.h.d@swipnet.se>
8715
8716 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
8717
e3cf0cde
GM
87182010-05-06 Glenn Morris <rgm@gnu.org>
8719
8720 * Makefile.in (CPP, LN_S): Remove unused variables.
8721
774b9a60
SM
87222010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8723
8724 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
8725
4ab92842
LM
87262010-05-05 Lawrence Mitchell <wence@gmx.li>
8727
8728 * m/sparc.h: Fix typo in earlier change.
8729
178f2507
SM
87302010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8731
8732 Misc tweaks.
8733 * eval.c (Fdefvaralias): Remove unintended nested if.
8734 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
8735
80f00217 87362010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
8737
8738 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
8739
ef03a4e6
DN
87402010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8741
58eb6cf0
DN
8742 Remove BSD_PGRPS.
8743 * s/bsd-common.h (BSD_PGRPS): Remove undef.
8744 * s/gnu-linux.h (BSD_PGRPS): Remove.
8745 * term.c (dissociate_if_controlling_tty):
8746 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8747 (init_sys_modes, reset_sys_modes):
8748 * emacs.c (main):
8749 * callproc.c (Fcall_process, child_setup): Remove code depending
8750 on BSD_PGRPS.
8751
ef03a4e6
DN
8752 Remove POSIX_SIGNALS.
8753 * s/usg5-4.h (POSIX_SIGNALS):
8754 * s/netbsd.h (POSIX_SIGNALS):
8755 * s/msdos.h (POSIX_SIGNALS):
8756 * s/ms-w32.h (POSIX_SIGNALS):
8757 * s/hpux11.h (POSIX_SIGNALS):
8758 * s/gnu.h (POSIX_SIGNALS):
8759 * s/gnu-linux.h (POSIX_SIGNALS):
8760 * s/freebsd.h (POSIX_SIGNALS):
8761 * s/darwin.h (POSIX_SIGNALS):
8762 * s/cygwin.h (POSIX_SIGNALS):
8763 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8764 * s/unixware.h:
8765 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8766 * process.c (create_process):
8767 * syssignal.h:
8768 * sysdep.c (wait_for_termination, init_signals):
8769 * process.c (create_process):
8770 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8771 remove all code that assumes the contrary.
8772
49628785
GM
87732010-05-04 Glenn Morris <rgm@gnu.org>
8774
27a2cdfc
GM
8775 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8776 variable.
8777 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8778 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8779 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8780 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
8781 LD_SWITCH_SYSTEM_tmp.
8782 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
8783 New variables, set by configure.
8784
eb21eab5
GM
8785 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8786 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
8787 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8788 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
8789 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
8790
49628785
GM
8791 * s/aix4-2.h (C_SWITCH_SYSTEM):
8792 * m/alpha.h (C_SWITCH_MACHINE):
8793 Move to configure.in.
8794 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
8795 New variables, set by configure.
8796 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
8797 $c_switch_machine and $c_switch_system.
8798
7dff330b
DN
87992010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8800
8801 * s/hpux10-20.h (LIB_STANDARD): New definition.
8802 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
8803 on it, not used anymore.
8804
53967e09
CY
88052010-05-03 Chong Yidong <cyd@stupidchicken.com>
8806
8807 * eval.c (internal_condition_case_n): Rename from
8808 internal_condition_case_2.
8809 (internal_condition_case_2): New function.
8810
8811 * xdisp.c (safe_call): Use internal_condition_case_n.
8812
8813 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
8814 (internal_delete_file, Frename_file): Callers changed.
8815
8816 * buffer.c (Fkill_buffer):
8817 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
8818
8819 * lisp.h: Update prototypes.
8820
3dee6fdb
GM
88212010-05-03 Glenn Morris <rgm@gnu.org>
8822
8823 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
8824 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
8825 (LIBXT): Set with configure, not cpp.
8826 (LIBX): Remove.
8827 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
8828
a101e0fb
DN
88292010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8830
8831 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
8832 The FreeBSD is not needed, the default works, Solaris version is
8833 not needed, and the remaining case is not supported by configure.
8834
f63d0028
JD
88352010-05-02 Jan Djärv <jan.h.d@swipnet.se>
8836
8837 * xsmfns.c (CHDIR_OPT): New define.
8838 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
8839 restarting emacs.
8840
8841 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
8842 shut_down_emacs.
8843
8844 * emacs.c (USAGE1): Mention --chdir.
8845 (main): Handle --chdir.
8846 (standard_args): Add --chdir.
8847 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
8848 #5552).
8849
e4814a9f
DN
88502010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
8851
cd03c74a
DN
8852 Remove LD_SWITCH_MACHINE.
8853 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
8854 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
8855
c3a398a1
DN
8856 Clean up IRIX code.
8857 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
8858 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
8859
87e7285c
DN
8860 Clean up AIX code.
8861 * m/ibmrs6000.inp: Remove file, unused.
8862 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
8863 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
8864 definition ...
8865 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
8866
80f00217
JB
8867 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
8868 unused.
e4814a9f 8869
59ca28de
EZ
88702010-05-01 Eli Zaretskii <eliz@gnu.org>
8871
197daef4
EZ
8872 Emulate POSIX_SIGNALS on MS-Windows.
8873
8874 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
8875 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
8876
8877 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
8878 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8879 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8880
80f00217
JB
8881 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8882 New stubs.
197daef4 8883
af7c7572
EZ
8884 Miscellaneous fixes of bidi display.
8885
59ca28de
EZ
8886 * xdisp.c (find_row_end): New function, refactored from display_line.
8887 (display_line): Use it.
017ea819
EZ
8888 (extend_face_to_end_of_line): In almost-filled rows, extend only
8889 if the row is R2L and not continued.
166e930d 8890 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 8891 Preserve overlay and string info in row->end.
166e930d
EZ
8892 (insert_left_trunc_glyphs): Support addition of left truncation
8893 glyphs to R2L rows.
b47e0dcf 8894 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
8895 glyph between adjacent windows. Fix a crash when a display string
8896 is continued to the next line. Don't return zero if cursor was
8897 found by `cursor' property of a display string.
b47e0dcf
EZ
8898 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8899 test for that explicitly.
59ca28de 8900
7acac9f4
GM
89012010-05-01 Glenn Morris <rgm@gnu.org>
8902
8903 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8904 for clarity.
8905 (OTHER_OBJ): Remove.
8906 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8907 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8908
45841e65
KK
89092010-05-01 Karel Klíč <kklic@redhat.com>
8910
8911 * fileio.c (Ffile_selinux_context): Context functions may return null.
8912
afc61943
DN
89132010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8914
80f00217 8915 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 8916
5a1bb006
GM
89172010-04-30 Glenn Morris <rgm@gnu.org>
8918
8919 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8920 (OTHER_OBJ): Define as a separate variable, for clarity.
8921
210af043
J
89222010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8923
2f8f196d 8924 * xsettings.c: Include limits.h and update file comment.
210af043 8925
0a7df391
GM
89262010-04-30 Glenn Morris <rgm@gnu.org>
8927
d5096f16
GM
8928 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8929 Set with configure, not cpp.
8930 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8931
7eb1ac33
GM
8932 * Makefile.in (mallocobj): Remove.
8933 (otherobj): Simplify using @OTHER_OBJ@.
8934
517d086b
GM
8935 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8936 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8937 Don't bother making nsgui.h dependency platform-specific.
8938
0a7df391
GM
8939 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8940
d6d23852
SM
89412010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8942
d2630aef
SM
8943 * process.c (read_process_output, exec_sentinel): Don't burp if the
8944 sentinel/filter kills the current buffer (bug#6060).
8945
f9dddf52 8946 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
8947 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8948 Remove unused var `args'.
8949 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8950 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8951 * doc.c (store_function_docstring): Use XSETCAR.
8952
f1e3642a
GM
89532010-04-28 Glenn Morris <rgm@gnu.org>
8954
faf535f8
GM
8955 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
8956 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
8957
c40f9449
GM
8958 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
8959
658f86ca
GM
8960 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
8961 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
8962
bc0b5f61
GM
8963 * Makefile.in (FONT_OBJ): New, set by configure.
8964 (FONT_DRIVERS): Use $FONT_OBJ.
8965
294c50a0
GM
8966 * Makefile.in (LIBXMU): Set with configure, not cpp.
8967 * s/aix4-2.h (LIBXMU):
8968 * s/hpux10-20.h (LIBXMU):
8969 Remove definition, now set in configure.
8970
e6ec4e99
GM
8971 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
8972
f1e3642a
GM
8973 * m/amdx86-64.h [i386]: Move this test to configure.in.
8974
c6ea2936
GM
89752010-04-27 Glenn Morris <rgm@gnu.org>
8976
8fdac2c3
GM
8977 * Makefile.in (LIBXTR6): Set with configure, not cpp.
8978 * s/unixware.h (NEED_LIBW): Remove definition.
8979
986fb647
GM
8980 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
8981 (TOOLKIT_LIBW): New, set by configure.
8982 (@X_TOOLKIT_TYPE@): No longer define it.
8983
c6ea2936
GM
8984 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
8985 (MOTIF_LIBW): Set with configure, not cpp.
8986 * s/aix4-2.h (LIB_MOTIF):
8987 * s/gnu-linux.h (LIB_MOTIF):
8988 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8989
aaa36002
DN
89902010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
8991
8992 Reduce CPP usage.
8993 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
8994 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
8995 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
8996 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 8997 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 8998
b678dd8b
GM
89992010-04-27 Glenn Morris <rgm@gnu.org>
9000
76cda504
GM
9001 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9002 since the defaults (set by the system file) are fine in most cases.
9003 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9004 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9005 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9006 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9007 Remove definitions, since they are set correctly in s/gnu-linux.h.
9008 * s/freebsd.h (START_FILES, LIB_STANDARD):
9009 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9010 * s/hpux10-20.h (START_FILES):
9011 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9012 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9013
b678dd8b
GM
9014 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9015 (MOTIF_LIBW): Use $LIBXP.
9016 (otherobj): Use $WIDGET_OBJ.
9017
9452ded1
DN
90182010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9019
7e10844c
DN
9020 * Makefile.in (LIBS_MACHINE): Remove, unused.
9021
9452ded1
DN
9022 Use autoconf instead of cpp for LIB_MATH.
9023 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9024 * s/cygwin.h (LIB_MATH): Likewise.
9025 * Makefile.in (LIB_MATH): Do not define with cpp.
9026 (LIBES): Use autoconf for LIB_MATH.
9027
fcebfc6a
KH
90282010-04-26 Kenichi Handa <handa@m17n.org>
9029
9030 * composite.c (Ffind_composition_internal): Fix the return value
9031 for an automatic composition.
9032
39e2ad1b
DN
90332010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9034
9035 Remove all NO_ARG_ARRAY uses.
9036 * fns.c (concat2, concat3, nconc2):
9037 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9038 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9039 * m/xtensa.h (NO_ARG_ARRAY):
9040 * m/template.h (NO_ARG_ARRAY):
9041 * m/sparc.h (NO_ARG_ARRAY):
9042 * m/sh3.h (NO_ARG_ARRAY):
9043 * m/mips.h (NO_ARG_ARRAY):
9044 * m/macppc.h (NO_ARG_ARRAY):
9045 * m/iris4d.h (NO_ARG_ARRAY):
9046 * m/intel386.h (NO_ARG_ARRAY):
9047 * m/ibms390x.h (NO_ARG_ARRAY):
9048 * m/ibms390.h (NO_ARG_ARRAY):
9049 * m/ibmrs6000.h (NO_ARG_ARRAY):
9050 * m/ia64.h (NO_ARG_ARRAY):
9051 * m/hp800.h (NO_ARG_ARRAY):
9052 * m/arm.h (NO_ARG_ARRAY):
9053 * m/amdx86-64.h (NO_ARG_ARRAY):
9054 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9055
adf4f59c
EZ
90562010-04-25 Eli Zaretskii <eliz@gnu.org>
9057
6bdf5d65
EZ
9058 * xdisp.c (display_line): Don't assume 2nd call to
9059 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
9060 (iterate_out_of_display_property): New function, body from pop_it.
9061 (pop_it): Use it.
adf4f59c 9062
dfbbda83
GM
90632010-04-24 Glenn Morris <rgm@gnu.org>
9064
9065 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9066 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9067 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9068 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9069
2d4018aa
EZ
90702010-04-24 Eli Zaretskii <eliz@gnu.org>
9071
a49884a6
EZ
9072 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9073 use `get_next_display_element' and `set_iterator_to_next' to
9074 advance to the next character, when looking for the character that
9075 begins the next row.
9076
76db6fcc 9077 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
9078 definition of "struct Lisp_Symbol".
9079
70eab5c1
GM
90802010-04-24 Glenn Morris <rgm@gnu.org>
9081
9082 * Makefile.in (CRT_DIR): New variable, set by configure.
9083 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9084 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9085
1ad4cc3d
DN
90862010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9087
e769f484
DN
9088 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9089
4196ff33
DN
9090 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9091
879b0ee4
DN
9092 Remove redundant flags.
9093 * s/freebsd.h (C_SWITCH_SYSTEM):
9094 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9095 * s/netbsd.h (C_SWITCH_SYSTEM):
9096 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9097 of these.
9098
03cbbcb8
DN
9099 Simplify m/intel386.h.
9100 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9101 user: ecrt0.c.
9102 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9103 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9104 the only user: s/unixware.h.
9105 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9106 from m/intel386.h.
bba3e508
SM
9107 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9108 Definitions moved here from m/intel386.h.
03cbbcb8 9109
1ad4cc3d
DN
9110 * m/mips.h: Remove #if 0 code.
9111
8785b888
EZ
91122010-04-23 Eli Zaretskii <eliz@gnu.org>
9113
728588cc
EZ
9114 Fix display of composed characters from L2R scripts in bidi buffers.
9115 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9116 After advancing IT past the composition, resync the bidi iterator
9117 with IT's position. (Bug#5977)
9118
a63f80b4
DN
91192010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9120
9121 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9122 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9123
ff5dec5c
SM
91242010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9125
9126 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9127
8785b888
EZ
91282010-04-23 Eli Zaretskii <eliz@gnu.org>
9129
58ccf243 9130 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
9131 * xdisp.c (pop_it): When the stack is popped after displaying
9132 from a string, bidi-iterate to exit from the text portion covered
9133 by the `display' property or overlay. (Bug#5988, bug#5920)
9134
feeb1604
DN
91352010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9136
8e324eb6
DN
9137 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9138 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9139
809fcaba
DN
9140 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9141 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9142
ed710380
DN
9143 Simplify STARTFILES definition.
9144 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9145 relying on Makefile.in to define it.
9146 * s/cygwin.h (START_FILES): Likewise.
9147 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9148
feeb1604
DN
9149 Clean up Solaris code.
9150 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9151 (LIB_MOTIF): Remove, configure takes care of this.
9152 (NOT_USING_MOTIF): Remove, unused.
9153 * xrdb.c: Remove #if 0-ed #include.
9154 (SYSV): Remove conditional for old SysV.
9155 * sysdep.c (closedir): Remove conditional code for Solaris,
9156 Solaris has closedir.
9157
a0d0b563
JD
91582010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9159
9160 * xsettings.c (read_and_apply_settings): Check if current_font is
9161 NULL before strcmp (Bug#6001).
9162
56bae7c7
DN
91632010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9164
9165 Clean up HP-UX files.
9166 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9167 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9168 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9169 * s/hpux10-20.h: ... to the only user, here.
9170
372b7a95
EZ
91712010-04-21 Eli Zaretskii <eliz@gnu.org>
9172
9173 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9174 use buffer-local values of paragraph-start and paragraph-separate.
9175 <paragraph_start_re, paragraph_separate_re>: Rename from
9176 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9177 (Bug#5992)
9178
f904c0f9
JD
91792010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9180
9181 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9182 current_tool_bar_style are new.
9183 (store_config_changed_event): Rename from store_font_changed_event.
9184 (XSETTINGS_TOOL_BAR_STYLE): New define.
9185 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9186 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9187 HAVE_XFT.
9188 (something_changedCB): store_font_changed_event is now
c4cc8b9a 9189 store_config_changed_event.
bba3e508
SM
9190 (parse_settings): Rename from parse_xft_settings.
9191 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 9192 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
9193 (apply_xft_settings): Take current settings as parameter. Do not
9194 call read_(xft)_settings.
9195 (read_and_apply_settings): New function.
bba3e508
SM
9196 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9197 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 9198 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
9199 Call read_and_apply_settings unconditionally.
9200 (xsettings_initialize): Call init_xsettings.
9201 (Ftool_bar_get_system_style): New function.
9202 (syms_of_xsettings): Define Qmonospace_font_name and
9203 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 9204 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 9205 dynamic-setting.
01c35094 9206 Move misplaced HAVE_GCONF.
f904c0f9
JD
9207
9208 * xsettings.h (Ftool_bar_get_system_style): Declare.
9209
9210 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9211 Qtext, Qboth, Qboth_horiz are new.
9212 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9213 Vtool_bar_style, tool_bar_max_label_size.
9214
9215 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9216
9217 * keyboard.c: QClabel is new.
9218 (parse_tool_bar_item): Take out QClabel from tool bar items.
9219 Try to construct a label if ther is no QClabel.
9220 (syms_of_keyboard): Intern :label as QClabel.
9221
9222 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9223 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9224 New.
9225
9226 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9227 dynamic-setting.el.
9228
9229 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9230 (xg_make_tool_item, xg_show_toolbar_item): New function.
9231 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9232 Call xg_make_tool_item to make a tool bar item.
9233 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9234
9235 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9236 into account for toolbars.
9237
c632dfda
JD
92382010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9239
9240 * data.c (make_blv): Declarations before code (Bug#5993).
9241
10efe302
GM
92422010-04-21 Glenn Morris <rgm@gnu.org>
9243
9244 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9245 Define using autoconf, not cpp.
9246 (LIBXSM): New variable, set by autoconf.
9247 (LIBXT): Use $LIBXSM.
9248
4285ac5a
DN
92492010-04-21 Dan Nicolaescu <local_user@dannlt>
9250
3ec759e7
DN
9251 Remove NOMULTIPLEJOBS, unused.
9252 * s/template.h (NOMULTIPLEJOBS):
9253 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9254
4285ac5a
DN
9255 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9256 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9257 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9258 detects -znocombreloc and passes it to the linker
9259 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9260
2807228d
GM
92612010-04-21 Glenn Morris <rgm@gnu.org>
9262
9263 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9264
574c05e2
KK
92652010-04-21 Karel Klíč <kklic@redhat.com>
9266
9267 * Makefile.in (LIBSELINUX_LIBS): New.
9268 (LIBES): Add $LIBSELINUX_LIBS.
9269 * eval.c, lisp.h (call7): New function.
9270 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9271 (Ffile_selinux_context, Fset_file_selinux_context):
9272 New functions.
9273 (Fcopy_file): New parameter preserve-selinux-context.
9274 (Frename_file): Preserve selinux context when renaming by copy-file.
9275
91eac4bb 92762010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 9277 Eli Zaretskii <eliz@gnu.org>
91eac4bb 9278
50426a04
JB
9279 Don't depend on cm.c or termcap.c on Windows, use stubs.
9280 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9281 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9282 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9283 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9284 (sys_tputs, sys_tgetstr): New stubs.
9285 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9286 (tputs, tgetstr): New; define to sys_*.
91eac4bb 9287
938efb77
JB
92882010-04-20 Juanma Barranquero <lekktu@gmail.com>
9289
9290 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9291
b4bf28b7
SM
92922010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9293
8b1e1112
SM
9294 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9295 Just signal a warning rather than an error when inside a let.
9296 (Fmake_variable_frame_local): Add the same test.
9297
933ac235
SM
9298 * font.c (syms_of_font): Make the style table vars read-only.
9299
b4bf28b7
SM
9300 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9301 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9302
9303 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9304
93d68d0c
EZ
93052010-04-20 Eli Zaretskii <eliz@gnu.org>
9306
9307 Fix R2L paragraph display on TTY.
9308
9309 * xdisp.c (unproduce_glyphs): New function.
9310 (display_line): Use it when produced glyphs are discarded from R2L
9311 glyph rows.
9312 (append_composite_glyph): In R2L rows, prepend the glyph rather
9313 than appending it.
9314
9315 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9316 rather than append it. Set up the resolved_level and bidi_type
9317 attributes of the appended glyph.
283ccc18
EZ
9318 (produce_special_glyphs): Mirror the backslash continuation
9319 character in R2L lines.
93d68d0c 9320
283ccc18 9321 Implement display of R2L paragraphs in GUI sessions.
26cdf528 9322
283ccc18
EZ
9323 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9324 append_stretch_glyph.
bba3e508
SM
9325 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9326 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
9327 (append_stretch_glyph): In reversed row, prepend the glyph rather
9328 than append it. Set resolved_level and bidi_type of the glyph.
9329 (extend_face_to_end_of_line): If the row is reversed, prepend a
9330 stretch glyph whose width is such that the rightmost glyph will be
9331 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
9332 TTY frames in testing whether a line needs face extension.
9333 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
9334 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9335 region face.
bba3e508
SM
9336 (set_cursor_from_row, display_line):
9337 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 9338 row->continuation_lines_width.
283ccc18
EZ
9339 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9340 are at ZV. Fixes a crash when reseated to ZV by
9341 try_window_reusing_current_matrix.
45903529
EZ
9342 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9343 which happens with R2L glyph rows. Fixes a crash when inserting a
9344 character at end of an R2L line.
283ccc18
EZ
9345 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9346 treat them as having zero-width characters. Improve comments.
9347 Don't reverse pos_before and pos_after for reversed glyph rows.
9348 Set cursor.x to negative value when the cursor might be on the
9349 left fringe.
9350 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9351 left fringe, not the right one.
f951a506
EZ
9352 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9353 (erase_phys_cursor): For reversed cursor_row, support cursor on
9354 the left fringe.
9355
283ccc18
EZ
9356 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9357 of continuation indicators on the fringes.
9358 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9359 left fringe.
9360
f951a506
EZ
9361 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9362 draw cursor on the left fringe.
9363
9364 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9365 cursor on the left fringe.
9366
f951a506
EZ
9367 * dispnew.c (update_text_area): Handle reversed desired rows when
9368 the cursor is on the left fringe.
9369 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9370 below, not by 0, for when the cursor is on the left fringe.
9371
3bb49aaf
JD
93722010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9373
9374 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9375 widget is a scrollbar.
9376
c0be27fd
KH
93772010-04-20 Kenichi Handa <handa@m17n.org>
9378
9379 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9380 only when the arg CHARSET_LIST is nil.
9381
ce5b453a
SM
93822010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9383
9384 Make variable forwarding explicit rather the using special values.
9385 Basically, this makes the structure of buffer-local values and object
9386 forwarding explicit in the type of Lisp_Symbols rather than use
9387 special Lisp_Objects for that. This tends to lead to slightly more
9388 verbose code, but is more C-like, simpler, and makes it easier to make
9389 sure we handled all cases, among other things by letting the compiler
9390 help us check it.
9391 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9392 Removing forwarding objects.
9393 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9394 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9395 explicit rather than hiding them inside Lisp_Object "values".
9396 (XFWDTYPE): New macro.
9397 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9398 (XBUFFER_LOCAL_VALUE): Remove.
9399 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9400 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9401 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9402 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9403 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9404 Remove the Lisp_Misc_* header.
9405 (struct Lisp_Buffer_Local_Value): Redefine.
9406 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9407 (struct Lisp_Misc_Any): Add filler to get the right size.
9408 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9409 Lisp_Intfwd.
9410 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9411 (DEFVAR_KBOARD): Allocate a forwarding object.
9412 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9413 (let_shadows_global_binding_p): New function.
9414 (union Lisp_Val_Fwd): New type.
9415 (make_blv): New function.
9416 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9417 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9418 (swap_in_symval_forwarding, find_symbol_value, Fset)
9419 (let_shadows_buffer_binding_p, set_internal, default_value)
9420 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9421 (Fkill_local_variable, Fmake_variable_frame_local)
9422 (Flocal_variable_p, Flocal_variable_if_set_p)
9423 (Fvariable_binding_locus):
9424 * xdisp.c (select_frame_for_redisplay):
9425 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9426 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9427 * frame.c (store_frame_param):
9428 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9429 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9430 value structure.
9431 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9432 (clone_per_buffer_values): Only adjust markers into the current buffer.
9433 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9434 (Fbuffer_local_value, set_buffer_internal_1)
9435 (swap_out_buffer_local_variables):
9436 Adapt to the new symbol value structure.
9437 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9438 (defvar_per_buffer): Take a new arg for the fwd object.
9439 (buffer_lisp_local_variables): Return a proper alist (different fix
9440 for bug#4138).
9441 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9442 (Fgarbage_collect): Don't handle buffer_defaults specially.
9443 (mark_object): Handle new symbol value structure rather than the old
9444 special Lisp_Misc_* objects.
9445 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9446 * term.c (set_tty_color_mode):
9447 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9448 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9449 a buffer_local_flags.
9450 * print.c (print_object): Get rid of impossible forwarding objects.
9451
fd3998ff
EZ
94522010-04-19 Eli Zaretskii <eliz@gnu.org>
9453
9454 * bidi.c (bidi_get_type, bidi_get_category)
9455 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
9456 (bidi_type_of_next_char, bidi_level_of_next_char):
9457 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 9458
e42cd1a7
JB
94592010-04-19 Juanma Barranquero <lekktu@gmail.com>
9460
9461 * dired.c (Ffile_attributes): Fix typo in docstring.
9462
6e104790 94632010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
9464
9465 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9466 NSInteger (Bug#5811).
9467
6e104790 94682010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
9469
9470 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9471 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9472
6e104790 94732010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
9474
9475 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9476
6e104790
SM
94772010-04-19 Chong Yidong <cyd@stupidchicken.com>
9478
9479 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9480 terminal frames (Bug#5837).
9481
37dcfea0
EZ
94822010-04-19 Eli Zaretskii <eliz@gnu.org>
9483
d1da276f
EZ
9484 * .gdbinit (xsubchartable): New command.
9485
37dcfea0
EZ
94862010-04-19 Eli Zaretskii <eliz@gnu.org>
9487
9488 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 9489 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
9490 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9491 and
9492 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9493
e9515805
SM
94942010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9495
9496 * alloc.c (Fpurecopy): Hash-cons if requested.
9497 (syms_of_alloc): Update purify-flag docstring.
9498
22aa44a8
JD
94992010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9500
9501 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9502 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9503
ebb5722e
EZ
95042010-04-17 Eli Zaretskii <eliz@gnu.org>
9505
9506 Fix a crash when an NSM character is inserted at BEGV.
9507
9508 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9509 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9510 NEUTRAL_B or UNKNOWN_BT.
9511
0f4442ef
EZ
95122010-04-16 Eli Zaretskii <eliz@gnu.org>
9513
9514 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9515 other rows with cursor unless they are different from this row and
9516 this row is part of a continued line. (Bug#5943)
9517
7d4e45f8
DN
95182010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9519
9520 * s/freebsd.h: Restore osreldate.h include.
9521 Suggested by Naohiro Aota.
9522
5ba5ec85
J
95232010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9524
9525 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9526
20af301d
CY
95272010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9528
9529 * s/cygwin.h: Avoid linking against static libgcc.
9530
a4b000fb
JL
95312010-04-15 Juri Linkov <juri@jurta.org>
9532
9533 * window.c: Add Qscroll_command.
9534 Remove Vscroll_preserve_screen_position_commands.
9535 (window_scroll_pixel_based, window_scroll_line_based): Check the
9536 `scroll-command' property on the last command instead of searching
9537 the last command in Vscroll_preserve_screen_position_commands.
9538 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9539 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9540 (scroll-preserve-screen-position): Doc fix.
9541 (Vscroll_preserve_screen_position_commands): Remove variable.
9542
bc319ba4
DN
95432010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9544
6bb24457
DN
9545 * xdisp.c (message): Do not use NO_ARG_ARRAY.
9546
19d4c244
DN
95472010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
9548
9549 Reduce cpp use in Makefile.in.
9550 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
9551 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
9552 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
9553 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
9554 (CRT0_COMPILE): Remove, inline it in the only user.
9555
32129746
JL
95562010-04-14 Juri Linkov <juri@jurta.org>
9557
9558 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
9559 `scroll-up-command' and `M-v' from `scroll-down' to
9560 `scroll-down-command'.
9561
9013a7f8
JL
95622010-04-14 Juri Linkov <juri@jurta.org>
9563
9564 * window.c (Vscroll_preserve_screen_position_commands): New variable
9565 with the default value as the list of Qscroll_down and Qscroll_up.
9566 (window_scroll_pixel_based, window_scroll_line_based): Search the
9567 last command in the list Vscroll_preserve_screen_position_commands
9568 instead of comparing with Qscroll_up and Qscroll_down.
9569
4bef8d26
JD
95702010-04-13 Jan Djärv <jan.h.d@swipnet.se>
9571
92848133
JD
9572 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
9573 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
9574 does that.
9575
4bef8d26
JD
9576 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
9577 to zero.
9578
58b963f7
SM
95792010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9580
84164a0d
SM
9581 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
9582
2b0a91e7
SM
9583 Try to solve the problem of spurious EOF chars in long lines of text
9584 sent to interactive subprocesses.
9585 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
9586 (system_process_attributes): Remove unused var `ttotal'.
9587 * process.c (send_process): Don't bother breaking long line with EOF
9588 chars when talking to ttys any more.
9589 (wait_reading_process_output): Output a warning when called in such
9590 a way that it could block without being interruptible.
9591
58b963f7
SM
9592 Try to detect file modification within the same second.
9593 * buffer.h (struct buffer): New field modtime_size.
9594 * buffer.c (reset_buffer): Initialize it.
9595 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
9596 (Fverify_visited_file_modtime): Check it.
9597 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9598 (Fset_visited_file_modtime): Set (or clear) it.
9599
01f5787b
SM
96002010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9601
9602 * process.c (status_notify): Remove unused var `ro'.
9603
83725342
JD
96042010-04-12 Jan Djärv <jan.h.d@swipnet.se>
9605
9606 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
9607 more than one visual (Bug#5938).
9608
b9465836
DN
96092010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9610
50426a04
JB
9611 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
9612 Undefine.
b9465836 9613
8d9c8ece
DN
96142010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
9615
b1f52161
DN
9616 Remove C_SWITCH_SYSTEM_TEMACS.
9617 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
9618 (malloc, realloc, free): Use emacs, not temacs for conditional
9619 definition.
9620
9621 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
9622 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
9623
8d9c8ece
DN
9624 Use autoconf, not cpp for some variables.
9625 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
9626 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
9627 (ALL_CFLAGS): Use them as make variables.
9628 (really-lwlib, really-oldXMenu): Do not pass them.
9629
1ecb2d3f
JD
96302010-04-11 Jan Djärv <jan.h.d@swipnet.se>
9631
9632 * xmenu.c (apply_systemfont_to_dialog): New.
9633 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
9634
3a4fa2f2
SM
96352010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9636
97e53006
SM
9637 * process.c (exec_sentinel): Preserve current-buffer.
9638
3a4fa2f2
SM
9639 * process.c (read_process_output): Move the save-current-buffer to
9640 apply to both the filter and the non-filter branches.
9641
88df7221
DN
96422010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
9643
9644 * s/msdos.h (UNEXEC): New definition.
9645
5634ff85
YM
96462010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9647
6eff5c3d
YM
9648 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
9649 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
9650
9651 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
9652 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
9653 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
9654 TRY_WINDOW_CHECK_MARGINS.
9655
9656 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
9657 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
9658 width only when it is for padding.
5634ff85 9659
b13aef54
J
96602010-04-09 Jan Djärv <jan.h.d@swipnet.se>
9661
9662 * xfns.c (Fx_show_tip): Call try_window in a loop until
9663 fonts_changed_p is zero (Bug#2423).
9664
21d28484
EZ
96652010-04-08 Eli Zaretskii <eliz@gnu.org>
9666
9667 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
9668 the end of TEXT_AREA. (Bug#5856)
9669
0269ef77
JD
96702010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9671
9672 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9673 HAVE_GCONF.
9674
5930fe97
EZ
96752010-04-08 Eli Zaretskii <eliz@gnu.org>
9676
9677 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
9678 prev.orig_type, for resolving type of NSM. (Bug#5858)
9679
99852628
JD
96802010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9681
9682 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9683 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
9684 in current_font.
9685 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
9686 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
9687 New functions.
9688 (syms_of_xsettings): Initialize current_font.
9689 defsubr Sfont_get_system_normal_font.
99852628 9690
686b968e
JB
9691 * xsettings.h (Ffont_get_system_normal_font)
9692 (xsettings_get_system_normal_font): Declare.
99852628
JD
9693
9694 * xfns.c (extern xlwmenu_default_font): Remove.
9695 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
9696 to xlwmenu.c.
9697
9698 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
9699 menu items in UTF-8.
9700
2f8f196d 9701 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 9702 (apply_systemfont_to_menu): New function.
bba3e508
SM
9703 (set_frame_menubar, create_and_show_popup_menu):
9704 Call apply_systemfont_to_menu.
99852628 9705
7fc874c4
J
97062010-04-07 Jan Djärv <jan.h.d@swipnet.se>
9707
9708 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
9709 FRAME_LINE_TO_PIXEL_Y.
9710
9711 * xterm.c (x_set_window_size_1): Don't add border_width/height to
9712 pixelwidth/height.
9713
863bf481
DN
97142010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
9715
5e5a3b92
DN
9716 Simplify code for HP machines.
9717 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
9718 for GNU_LINUX, not needed.
9719 (UNEXEC, NEED_BSDTTY): Move definitions...
9720 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
9721
863bf481
DN
9722 * m/iris4d.h (UNEXEC): Move definition ...
9723 * s/irix6-5.h (UNEXEC): ... here.
9724
3e6bec3b
JD
97252010-04-04 Jan Djärv <jan.h.d@swipnet.se>
9726
9727 * xfns.c (set_machine_and_pid_properties): New function.
9728 (Fx_create_frame): Call set_machine_and_pid_properties.
9729
2912322b
SM
97302010-04-03 Eli Zaretskii <eliz@gnu.org>
9731
bba3e508
SM
9732 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
9733 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
9734 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
9735
2912322b
SM
9736 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
9737 in this function. (Bug#5703)
9738
97392010-04-03 Chong Yidong <cyd@stupidchicken.com>
9740
9741 * nsterm.h: Fix last change.
9742
c435b432
DN
97432010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
9744
a568f507
DN
9745 * m/intel386.h (NO_REMAP): Move definition ...
9746 * s/msdos.h (NO_REMAP): ... here.
9747
4cd9f6c2
DN
9748 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9749
c435b432
DN
9750 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9751 used on those platforms.
9752
42a2c622
DN
97532010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9754
9755 Remove extern errno declarations.
9756 * xterm.c:
9757 * xrdb.c:
9758 * w32term.c:
9759 * unexec.c:
9760 * unexaix.c:
9761 * sysdep.c:
9762 * process.c:
9763 * lread.c:
9764 * keyboard.c:
9765 * floatfns.c:
9766 * filelock.c:
9767 * fileio.c:
9768 * emacs.c (main):
9769 * ecrt0.c:
9770 * dispnew.c:
9771 * callproc.c:
9772 * buffer.c: Remove errno extern declarations.
9773 * s/netbsd.h (NEED_ERRNO): Remove.
9774
8224f93d
DN
97752010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9776
9777 Remove all uses of LIBX11_SYSTEM.
9778 * Makefile.in (LIBX11_SYSTEM): Remove.
9779 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
9780 instead.
9781
814062c7
EZ
97822010-04-01 Eli Zaretskii <eliz@gnu.org>
9783
ed68db4d
EZ
9784 Remove support for DJGPP v1.x (bug#5813).
9785
9786 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
9787 * s/msdos.h:
9788 * unexec.c (make_hdr, copy_text_and_data):
9789 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 9790 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
9791 (IT_set_terminal_modes, __write, _rename, gethostname)
9792 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
9793 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
9794 the value of __DJGPP__.
ed68db4d
EZ
9795 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
9796 compatibility code.
8224f93d
DN
9797 * lread.c:
9798 * gmalloc.c (memalign):
9799 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
9800 * emacs.c (main):
9801 * dosfns.c (init_dosfns):
ed68db4d
EZ
9802 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
9803
52f4d8d5
EZ
98042010-04-01 Eli Zaretskii <eliz@gnu.org>
9805
814062c7
EZ
9806 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
9807 string with `cursor' property comes from an `after-string'
9808 overlay. (Bug#5816)
9809
0dc2e11d
GM
98102010-04-01 Glenn Morris <rgm@gnu.org>
9811
9812 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
9813 Define as Makefile variables.
9814 (LIBX): Use above variables rather than directly using autoconf.
9815
1d29df59
DN
98162010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
9817
9818 Clean up BSD_SYSTEM use.
9819 * xterm.c:
9820 * process.c:
9821 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
9822 for including <sys/ioctl.h>.
9823 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
9824 code is only used for MSDOS.
9825
1546c559
JL
98262010-03-31 Juri Linkov <juri@jurta.org>
9827
9828 * image.c: Add `Qextension_data'.
9829 (syms_of_image): Initialize and staticpro `Qextension_data'.
9830 (Fimage_metadata): Rename from `Fimage_extension_data'.
9831 (gif_load): Put GIF extension data to the property
9832 `Qextension_data'.
9833
6521c534
CY
98342010-03-31 Chong Yidong <cyd@stupidchicken.com>
9835
9836 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
9837 * nsterm.h: Fix prototype.
9838
52c30783
EZ
98392010-03-31 Eli Zaretskii <eliz@gnu.org>
9840
9841 * xdisp.c (highlight_trailing_whitespace): Support highlight of
9842 trailing whitespace in right-to-left rows.
9843
855a0da7
SM
98442010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9845
9846 Get rid of the direct_output optimizations.
9847 * keyboard.c (nonundocount): Remove extern declaration.
9848 (command_loop_1): Remove brittle optimisation for cheap and
9849 common operations.
9850 * xdisp.c (redisplay_internal): Don't bother checking
9851 redisplay_performed_directly_p any more.
9852 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
9853 any more.
9854 * dispnew.c (redisplay_performed_directly_p)
9855 (direct_output_for_insert, direct_output_forward_char):
9856 * dispextern.h (redisplay_performed_directly_p)
9857 (direct_output_for_insert, direct_output_forward_char): Remove.
9858 * cmds.c (nonundocount): Make it static.
9859
85738751 98602010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
9861
9862 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
9863
85738751 98642010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
9865
9866 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
9867 invisible (Bug#5766).
9868
85738751 98692010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 9870
855a0da7
SM
9871 * xdisp.c (x_consider_frame_title, update_window_cursor):
9872 Remove HAVE_NS conditionals.
194d44e7 9873 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
9874
9875 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
9876 filename for the title.
9877 (ns_set_doc_edited): Do nothing if the selected window is a
9878 minibuffer window.
9879
9880 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9881 ns_set_doc_edited.
9882
9883 * nsterm.m: Remove unneeded prototype.
9884
85738751 98852010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
9886
9887 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9888 in the DOC file. (Bug#5336)
9889
85738751 98902010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
9891
9892 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9893
75d1428c
SM
98942010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9895
9896 * window.c (keys_of_window): Remove redundant/overridden bindings.
9897
82043cfb
EZ
98982010-03-30 Eli Zaretskii <eliz@gnu.org>
9899
9900 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9901 Restore original behavior when the iterator is not bidi_p.
9902
b5dd0ae7
DN
99032010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9904
9905 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9906
bd924a5d
EZ
99072010-03-30 Eli Zaretskii <eliz@gnu.org>
9908
9909 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9910 are outside the range of cached character positions.
9911
3580374b
JB
99122010-03-30 Juanma Barranquero <lekktu@gmail.com>
9913
9914 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9915
a7b02820
EZ
99162010-03-30 Eli Zaretskii <eliz@gnu.org>
9917
9918 Initial support for bidirectional editing.
9919
9920 * Makefile.in (obj): Include bidi.o.
9921 (bidi.o): New target.
9922
9923 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9924 ($(BLD)/bidi.$(O)): New target.
9925
9926 * bidi.c: New file.
9927
9928 * buffer.h (struct buffer): New members bidi_display_reordering
9929 and bidi_paragraph_direction.
9930
9931 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9932 and bidi_paragraph_direction.
9933 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9934 and bidi-paragraph-direction.
9935 (Fbuffer_swap_text): Swap the values of
9936 bidi_display_reordering and bidi_paragraph_direction.
9937
9938 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9939 (bidi_type_t, bidi_dir_t): New types.
9940 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9941 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9942 prev_stop, base_level_stop, and eol_pos.
9943 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9944 (IT_STACK_SIZE): Enlarge to 5.
9945 (struct glyph_row): New member reversed_p.
9946 <string_buffer_position>: Update prototype.
9947 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9948 glyph_row if bidi_it.paragraph_dir == R2L.
9949 (struct glyph): New members resolved_level and bidi_type.
9950
9951 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9952 processing or buffer's direction is right-to-left.
9953 (prepare_desired_row): Preserve the reversed_p flag.
9954 (row_equal_p): Compare the reversed_p attributes as well.
9955
bba3e508
SM
9956 * xdisp.c (init_iterator): Initialize it->bidi_p.
9957 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
9958 buffer's value of bidi_paragraph_direction.
9959 (reseat_1): Initialize bidi_it.first_elt.
9960 (set_iterator_to_next, next_element_from_buffer): Use the value of
9961 paragraph_embedding to determine the paragraph direction.
9962 (set_iterator_to_next): Under bidi reordering, call
9963 bidi_get_next_char_visually. Call bidi_paragraph_init if the
9964 new_paragraph flag is set in the bidi iterator.
9965 (next_element_from_buffer): If bidi_it.first_elt is set,
9966 initialize paragraph direction and find the first character to
9967 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
9968 prime the bidi iterator starting at the line's beginning.
9969 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
9970 non-linearity of the bidi iteration. Likewise for when we back up
9971 beyond the previous stop_charpos. When moving across stop_charpos,
9972 record it in prev_stop.
9973 (display_line): Set row->end and it->start for the next row to the
9974 next character in logical order. Always extend reversed_p rows to
9975 the end of line, even if they end at ZV. Copy the reversed_p flag
9976 to the next glyph row. Keep calling set_cursor_from_row for
9977 bidi-reordered rows even if we already have a possible candidate
9978 for cursor position. Set row_end after all the row's glyphs have
9979 been produced, by looping over the glyphs. Record the position
9980 after EOL in it->eol_pos, and use it to set end_pos of the last
9981 row produced for a continued line.
9982 <Qright_to_left, Qleft_to_right>: New variables.
9983 (syms_of_xdisp): Initialize and staticpro them.
9984 (string_buffer_position_lim): New function.
9985 (string_buffer_position): Most of code moved to
9986 string_buffer_position_lim. Last argument and return value are
9987 now EMACS_INT; all callers changed.
9988 (set_cursor_from_row): Rewritten to support bidirectional text and
9989 reversed glyph rows.
bba3e508
SM
9990 (text_outside_line_unchanged_p, try_window_id):
9991 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
9992 paragraph direction can be affected by the change.
9993 (append_glyph, append_composite_glyph)
9994 (produce_image_glyph, append_stretch_glyph): Set the
9995 resolved_level and bidi_type members of each glyph.
9996 (append_glyph): If the glyph row is reversed, prepend the glyph
9997 rather than appending it.
9998 (handle_stop_backwards): New function.
9999 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 10000 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
10001 base_level_stop for the new position.
10002 (handle_invisible_prop): Under bidi iteration, skip invisible text
10003 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10004 paragraph direction. Update IT->prev_stop after skipping
10005 invisible text.
10006 (move_it_in_display_line_to): New variables prev_method
10007 and prev_pos. Compare for strict equality in
10008 BUFFER_POS_REACHED_P.
10009 (try_cursor_movement): Examine all the candidate rows that occlude
10010 point, to return the best match. If rows are bidi-reordered
10011 and point moved backwards, back up to the row that is not a
10012 continuation line, and start looking for a suitable row from
10013 there.
10014
10015 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10016 rather than appending, if the glyph_row's reversed_p flag is set.
10017 Set the resolved_level and bidi_type members of each glyph.
10018
10019 * .gdbinit (pbiditype): New command.
10020 (pgx): Use it to display bidi level and type of the glyph.
10021 (pitx): Display some bidi information about the iterator.
10022 (prowlims, pmtxrows): New commands.
10023
32a8894e
DN
100242010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10025
10026 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10027 * s/usg5-4.h (LIBS_DEBUG):
10028 * s/irix6-5.h (C_DEBUG_SWITCH):
10029 * s/gnu-linux.h (LIBS_DEBUG):
10030 * s/darwin.h (LIBS_DEBUG):
10031 * s/bsd-common.h (LIBS_DEBUG):
10032 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10033 * m/iris4d.h (LIBS_DEBUG):
10034 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10035
10036 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10037 (LIBS_DEBUG): Remove definition.
10038
649dbf36
CY
100392010-03-27 Chong Yidong <cyd@stupidchicken.com>
10040
10041 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10042 Windows.
10043
cad4261f
YM
100442010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10045
10046 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10047 `connect' (Bug#5723).
10048
cd591dbc
HE
100492010-03-25 Helmut Eller <eller.helmut@gmail.com>
10050
10051 * process.c (Fmake_network_process): Call `select' for interrupted
10052 `connect' rather than creating new socket (Bug#5173).
10053
e867cb5d 100542010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
10055
10056 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10057
10058 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10059
10060 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10061
e867cb5d 100622010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
10063
10064 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10065 XLoadQueryFont.
10066
e867cb5d 100672010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
10068
10069 * coding.c (decode_coding_ccl): Fix previous change for the
10070 multibyte case.
fb608df3
KH
10071 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10072 case that the output buffer is fullfilled.
10073 (encode_coding): Setup ccl program here.
fbdc1721 10074
5845f0ed
DN
100752010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10076
814fb708
DN
10077 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10078
5845f0ed
DN
10079 Simplify LIBS_MACHINE definitions.
10080 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10081 * m/iris4d.h (LIBS_MACHINE): Likewise.
10082 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10083 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 10084 * s/netbsd.h: Remove commented out code.
5845f0ed 10085
b7064064
DN
100862010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10087
df7734b2
DN
10088 Remove dead code dealing with POSIX_SIGNALS.
10089 * atimer.c (set_alarm): Remove dead code, all USG systems define
10090 POSIX_SIGNALS.
10091 * data.c (arith_error): Likewise.
10092 * keyboard.c (input_available_signal, handle_user_signal)
10093 (interrupt_signal): Likewise.
10094 * process.c (sigchld_handler): Likewise.
10095 (create_process): Remove if 0 code. Remove HPUX conditional when
10096 !defined (POSIX_SIGNALS), it cannot be true.
10097 * syssignal.h: Remove USG5_4 and USG conditionals when
10098 !POSIX_SIGNALS, they cannot be true.
10099
b7064064
DN
10100 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10101 NO_SOCK_SIGIO, not used anymore.
10102
55da5ee3
DN
101032010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10104
0be96e3a
DN
10105 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10106 support vax on BSDs.
10107
55da5ee3
DN
10108 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10109 * s/aix4-2.h (ORDINARY_LINK): ... here.
10110
c0282183
AS
101112010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10112
82c3d67a
AS
10113 * Makefile.in (abs_builddir): Define.
10114 (bootstrap_exe): Use it.
10115 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 10116
3613edce
SM
101172010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10118
10119 * Makefile.in (bootstrap_exe): Use an absolute name.
10120
7f110ddc
DN
101212010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10122
22e87574
DN
10123 Remove support for old GNU/Linux using libc version 5.
10124 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10125 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10126
05a670e6
DN
10127 Consolidate redundant definitions in s/bsd-common.h.
10128 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10129 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10130 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10131 doing it in all files that include this one.
10132 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10133 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10134 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10135 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10136 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10137 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10138 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10139 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10140 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10141
2968f561
DN
10142 Consolidate redundant definitions.
10143 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10144 it's undefined in all files that include this one.
10145 (POSIX_SIGNALS): Define here instead of doing it in all files that
10146 include this one.
10147 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10148 (POSIX_SIGNALS): Do not define.
10149 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10150 (POSIX_SIGNALS): Do not define.
10151 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10152 (POSIX_SIGNALS): Do not define.
10153
15d25dc0
DN
10154 Remove support for old UNIX System V systems.
10155 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
10156 * s/usg-5-4-2.h: Remove.
10157
07e339e4
DN
10158 Remove support for Solaris on PPC and for old versions.
10159 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10160 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10161 that cancel each other.
10162 * s/sol2-3.h:
10163 * s/sol2-4.h:
10164 * s/sol2-5.h: Remove.
10165 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10166 (NO_REMAP): Remove, unused.
10167 (UNEXEC): Move definition ...
10168 * s/aix4-2.h (UNEXEC): ... here.
10169
7f110ddc
DN
10170 * s/openbsd.h: Remove support for non-ELF and for systems that do
10171 not support shared libraries.
10172 * s/netbsd.h:
10173 * s/freebsd.h: Likewise.
10174
605f35cd
DN
101752010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10176
10177 Remove non-working support for lynxos 3.0.
10178 * s/lynxos.h: Remove file.
10179
10180 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10181 COFF_BSD_SYMBOLS, nothing defines it anymore.
10182
aed71cf4
DN
101832010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10184
10185 Remove obsolete uses of HAVE_SHM.
10186 * emacs.c (standard_args):
10187 (Fdump_emacs):
10188 (syms_of_emacs): Remove code depending on HAVE_SHM.
10189
10190 * alloc.c: Remove HAVE_SHM dependent definition.
10191
10192 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10193
aded53ff
GM
101942010-03-18 Glenn Morris <rgm@gnu.org>
10195
17284745
GM
10196 * emacs.c (USAGE4): Hard-code bug address.
10197 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10198 (bug_reporting_address): Remove.
10199 (main): Don't call bug_reporting_address.
10200
aded53ff
GM
10201 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10202 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10203
303500aa
CY
102042010-03-15 Chong Yidong <cyd@stupidchicken.com>
10205
10206 * xfns.c (Fx_create_frame):
10207 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10208 on left.
10209
cef3058f
CY
102102010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10211
10212 * editfns.c (Fformat): Account for string precision when computing
10213 field width (Bug#5710).
10214
a647d59d
CY
102152010-03-12 Chong Yidong <cyd@stupidchicken.com>
10216
4fa42018
CY
10217 * xfns.c (Fx_create_frame): Set default to Qright.
10218
a647d59d
CY
10219 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10220 all window systems.
10221
6da23aaa
EZ
102222010-03-12 Eli Zaretskii <eliz@gnu.org>
10223
a96f6398 10224 These changes remove termcap.c from the build on Posix platforms.
83d02def 10225 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
10226 (MSDOS_OBJ): ...to here.
10227 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10228 now identical to when LIBS_TERMCAP is defined.
10229
10230 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10231
10232 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10233
a96f6398 10234 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 10235
288f9fc0
CY
102362010-03-10 Chong Yidong <cyd@stupidchicken.com>
10237
10238 * Branch for 23.2.
10239
d48cd3f4
SM
102402010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10241
10242 Cleanup setup of gl_state in various parts of the code.
10243 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10244 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10245 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10246 (skip_chars):
10247 * regex.c (regex_compile): Use it.
10248 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10249 it's now set in regex_compile when/if we need it.
10250
618db430
SM
102512010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10252
c0335e02
SM
10253 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10254 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10255 (QUIT): Use it to consolidate code and remove redundancy.
10256 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10257
254c06a8
SM
10258 * regex.c (regex_compile): Setup gl_state as well.
10259
618db430
SM
10260 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10261 (in_classes): Use CONSP before XCAR/XCDR.
10262
233f0c9f
CY
102632010-03-03 Chong Yidong <cyd@stupidchicken.com>
10264
10265 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10266 definitions, so that keyboard macros are correctly handled
10267 (Bug#5481).
10268
75f80e63
EZ
102692010-03-02 Eli Zaretskii <eliz@gnu.org>
10270
10271 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10272 text that could be relocated inside the call to emacs_mule_char.
10273 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10274 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10275
dcfb9bc4
KH
102762010-03-02 Kenichi Handa <handa@m17n.org>
10277
fc9a17bc
KH
10278 * character.c (parse_str_as_multibyte): Fix handling of the
10279 multibyte form of raw-bytes.
10280 (str_as_multibyte): Likewise.
10281
dcfb9bc4
KH
10282 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10283 form of raw-bytes.
10284
412c01b6
CY
102852010-02-28 Chong Yidong <cyd@stupidchicken.com>
10286
10287 * charset.c (load_charset_map_from_file)
10288 (load_charset_map_from_vector): Zero out allocated
10289 charset_map_entries before using them.
10290
df7e1ea0
AS
102912010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10292
10293 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10294
fe69a722
CY
102952010-02-27 Chong Yidong <cyd@stupidchicken.com>
10296
4ed28cf4
CY
10297 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10298 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 10299
7379cfce
KH
103002010-02-26 Kenichi Handa <handa@m17n.org>
10301
f88cc4d6
KH
10302 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10303
7379cfce
KH
10304 * xdisp.c (reseat_to_string): Fix previous change.
10305
cf2fdcfb
CY
103062010-02-26 David Reitter <david.reitter@gmail.com>
10307
10308 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10309 Lisp_Object (Bug#4736).
10310
cc6c7c75
KH
103112010-02-25 Kenichi Handa <handa@m17n.org>
10312
10313 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10314
32e737d7
JD
103152010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10316
10317 * xterm.c (XTflash): Move declarations before statements.
10318
10319 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10320 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10321 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10322 (xg_create_tool_bar): Remove unused variables.
10323 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 10324 (xg_create_frame_widgets): Remove variable grav.
32e737d7 10325
676cae9f
CY
103262010-02-21 Chong Yidong <cyd@stupidchicken.com>
10327
10328 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10329
886cc2b8
SM
103302010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10331
10332 * term.c (fatal): Add a final \n if needed (bug#5596).
10333
ddb2d8e2
CY
103342010-02-18 Chong Yidong <cyd@stupidchicken.com>
10335
10336 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10337
2a4f8d3d
GM
103382010-02-18 Glenn Morris <rgm@gnu.org>
10339
10340 * callint.c (Finteractive): Doc fix.
10341
ebaf11b6
KH
103422010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10343
886cc2b8
SM
10344 * coding.c (record_conversion_result):
10345 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
10346 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10347 memory allocation error.
10348
d0396581
KH
103492010-02-17 Kenichi Handa <handa@m17n.org>
10350
886cc2b8
SM
10351 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10352 Fix for the case that the output buffer is fullfilled.
d0396581
KH
10353 (decode_coding): Setup ccl program here. Keep looping when the
10354 decoder stopped because the output buffer is
10355 fullfilled (bug#5534).
10356
10357 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10358
98599f74
JD
103592010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10360
471e4f04 10361 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 10362 bug #5571.
886cc2b8 10363 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 10364 overdrawn.
98599f74 10365
182659ae
JD
103662010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10367
10368 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10369 doing_interact here.
10370 (ice_connection_closed): New function.
10371 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10372 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10373 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10374 returns I/O error.
10375 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10376 bug #5512.
10377
9be32c4e 103782010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
10379
10380 * nsfont.m (nsfont_open): The system's value for the font descent
10381 is negative, so round it down to avoid clipping.
10382
a2f3eb19
CY
103832010-02-06 Chong Yidong <cyd@stupidchicken.com>
10384
10385 * charset.c (load_charset_map_from_file)
10386 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 10387 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 10388
3088147c
CY
103892010-02-05 Chong Yidong <cyd@stupidchicken.com>
10390
10391 * charset.c (load_charset_map_from_file): Allocate large
10392 charset_map_entries structure on the heap rather than the stack.
10393 (Bug#5526).
10394
b57d9029
KH
103952010-01-31 Kenichi Handa <handa@m17n.org>
10396
10397 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 10398 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 10399
c67d885b
CY
104002010-01-31 Chong Yidong <cyd@stupidchicken.com>
10401
10402 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10403 <deactivated@gmail.com> (Bug#3605).
10404
8fab2362
CY
104052010-01-31 David De La Harpe Golden <david@harpegolden.net>
10406
10407 * fileio.c (Frename_file): Correctly rename symlinks to
10408 directories (Bug#5496).
10409
cb2a62f2
CY
104102010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10411
10412 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10413
944c7a26
AS
104142010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10415
10416 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10417
c024ac08
CY
104182010-01-29 Chong Yidong <cyd@stupidchicken.com>
10419
10420 * frame.c (DEFAULT_ROWS): Change default to 35.
10421
10422 * xfns.c (x_default_font_parameter): Change default XFT font to
10423 monospace-10 (Bug#3643).
10424
af93af83
EZ
104252010-01-29 Eli Zaretskii <eliz@gnu.org>
10426
10427 * w32inevt.c (key_event): Remove unnecessary comparison of
10428 event->uChar.AsciiChar with 128.
10429
ca0eb708
CY
104302010-01-28 Chong Yidong <cyd@stupidchicken.com>
10431
b242dbfc
CY
10432 * fileio.c (Frename_file): Fix last change (Bug#5487).
10433
ca0eb708
CY
10434 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10435
10436 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10437
45d45af5
JD
104382010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10439
10440 * xfns.c (Fx_create_frame): Remove window size matching code from
10441 2010-01-15.
a73f9c9d 10442 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 10443
7e233730
JR
104442010-01-27 Jason Rumney <jasonr@gnu.org>
10445
10446 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 10447 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 10448
86e893e3
KH
104492010-01-27 Kenichi Handa <handa@m17n.org>
10450
10451 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 10452 pattern string (Bug#4209).
86e893e3 10453
8719abec
CY
104542010-01-27 David De La Harpe Golden <david@harpegolden.net>
10455
10456 * fileio.c (Frename_file): Call copy-directory and
10457 delete-directory for directories, in order to handle cross-device
10458 renaming (Bug#3353).
10459
844794c8
JD
104602010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10461
aa3e13b5 10462 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 10463 sizes 24 and 10. Bug #3643.
844794c8 10464
bd4b5750
SM
104652010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10466
8dc1adf6 10467 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
10468 * keymap.c (shadow_lookup): Add `remap' arg.
10469 (describe_map, describe_vector): Update calls to shadow_lookup.
10470 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10471 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
10472 perform remapping during shadow_lookup check of remapped_sequences.
10473
285d07e2
CY
104742010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10475
10476 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10477 png_check_sig, which has been removed in libpng 1.4.
10478
c6d09b8d
CY
104792010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10480
10481 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10482 lacks this header file).
10483
3d782998
YM
104842010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10485
10486 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10487 as in Emacs 22.
10488
2aff7c53
YM
104892010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10490
10491 * lisp.h (make_pure_string): String pointer arg now points to const.
10492
10493 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10494 args now point to const.
10495
74327f7a
EZ
104962010-01-22 Eli Zaretskii <eliz@gnu.org>
10497
10498 * lread.c (Fload): Don't treat files without .elc extension as
10499 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10500 them. (bug#5303)
10501
4d1e6632
KH
105022010-01-20 Kenichi Handa <handa@m17n.org>
10503
10504 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10505 treat the source as actual byte sequence.
10506
1fdede8f
AM
105072010-01-19 Alan Mackenzie <acm@muc.de>
10508
10509 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 10510 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
10511 `signal_after_change_p' to `coherent_change_p', and make the
10512 invocation of `modify_region' conditional on it.
10513
67477f30
JD
105142010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10515
10516 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10517 for debug purpose.
10518 (syms_of_xsettings): Declare xft-settings.
10519
244b023e
CY
105202010-01-18 Chong Yidong <cyd@stupidchicken.com>
10521
10522 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10523
617364fe
CY
105242010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10525
10526 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10527
4fe22cdf
CY
105282010-01-16 Chong Yidong <cyd@stupidchicken.com>
10529
10530 * emacs.c (standard_args): Adjust arg priorities to reflect how
10531 they are processed in startup.el.
10532
e118d2be
AS
105332010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10534
10535 * Makefile.in (lisp, shortlisp): Update.
10536
523ae620
SM
105372010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10538
10539 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10540 code, link the new kboard into all_kboard before running Lisp code,
10541 and protect the new terminal with GCPRO (Bug#5365).
10542 (x_term_init): Remove unused var `atom'.
10543 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10544
f0d13888
JD
105452010-01-15 Jan Djärv <jan.h.d@swipnet.se>
10546
10547 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
10548 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
10549 to find out usable size of the desktop. Don't make frames larger than
ac146f82 10550 this. Bug #3643.
f0d13888 10551
cc320f07
KH
105522010-01-15 Kenichi Handa <handa@m17n.org>
10553
10554 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
10555
7ffdf101
CY
105562010-01-15 Chong Yidong <cyd@stupidchicken.com>
10557
10558 * nsterm.m (Qnone): Define.
10559
10560 * nsfns.m (Qnone): Move definition to nsterm.m.
10561
d12bd917
KH
105622010-01-14 Kenichi Handa <handa@m17n.org>
10563
10564 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
10565 systems.
10566
d9a7c140
KH
105672010-01-14 Kenichi Handa <handa@m17n.org>
10568
10569 Make auto-composition work on all buffers even if they are
10570 fundamental mode.
10571
10572 * composite.c (Vauto_composition_mode): New variable.
10573 (composition_compute_stop_pos): Check Vauto_composition_mode
10574 instead of Vauto_composition_function.
10575 (composition_adjust_point, Ffind_composition_internal): Likewise.
10576 (syms_of_composite): Declare Lisp variable
10577 "auto-composition-mode" here.
10578
63286bb2
CY
105792010-01-13 Chong Yidong <cyd@stupidchicken.com>
10580
10581 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
10582 during call to vendor-specific-keysyms (Bug#5365).
10583
c2623ee7
YM
105842010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10585
10586 * keyboard.c (input_available_signal) [SYNC_INPUT]:
10587 Call SIGNAL_THREAD_CHECK (Bug#5333).
10588
10589 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
10590 Call SIGNAL_THREAD_CHECK.
10591
0b5397c2
SM
105922010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
10593
10594 Try to fix bug#5314. This is probably not the final word, tho.
10595 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
10596 recent-auto-save-p as a side-effect.
10597 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
10598 * buffer.c (Fkill_buffer, reset_buffer):
10599 * editfns.c (Fsubst_char_in_region):
10600 * fileio.c (Finsert_file_contents, Fdo_auto_save)
10601 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
10602
dc954cb2
KH
106032010-01-13 Kenichi Handa <handa@m17n.org>
10604
10605 Display buffer name, etc. in mode line by composing correctly.
10606
10607 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
10608 STRING is not nil.
0b5397c2 10609 (display_mode_element): Adjust for the change of
dc954cb2
KH
10610 decode_mode_spec and display_line.
10611 (decode_mode_spec): Change arg MULTIBYTE to STRING.
10612 (display_string): Handle the case that STRING is non-null and
10613 LISP_STRING is not nil.
10614
0b5397c2
SM
10615 * xterm.c (x_draw_composite_glyph_string_foreground):
10616 Pay attention to s->face->overstrike.
dc954cb2
KH
10617
10618 * composite.c (composition_reseat_it): Don't check PT if STRING is
10619 non nil.
10620
4a00eaca
YM
106212010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10622
10623 * keyboard.c (read_char): Don't apply previous change when current
10624 buffer is unchanged by command execution.
10625
60abb287
JD
106262010-01-12 Jan Djärv <jan.h.d@swipnet.se>
10627
10628 * keyboard.c (read_char): Return after executing from special map.
10629
893db5bc
GM
106302010-01-12 Glenn Morris <rgm@gnu.org>
10631
10632 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
10633 bug-gnu-emacs rather than emacs-pretest-bug.
10634
4d03ece0
CY
106352010-01-11 Chong Yidong <cyd@stupidchicken.com>
10636
10637 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
10638 initializing the Lisp variables that depend on them.
10639
1df47e38
YM
106402010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10641
10642 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
10643 Clear areas that will not be updated after change of menu bar lines.
10644 Clear the menu bar window's current matrix when the window gets empty.
10645
2f1c6384
CY
106462010-01-09 Chong Yidong <cyd@stupidchicken.com>
10647
e398c61c
CY
10648 * intervals.h, textprop.c (extend_property_ranges): Return value
10649 and args changed. Discard properties that begin at or after the
10650 new end (Bug#5306).
10651
10652 * editfns.c (Fformat): Caller changed.
10653
e5a29a10
CY
10654 * nsterm.m (ns_set_default_prefs): Delete function.
10655 (syms_of_nsterm): Initialize ns_command_modifier,
10656 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
10657 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
10658
2f1c6384
CY
10659 * xdisp.c (pos_visible_p): Check for invisible text at the correct
10660 position (Bug#4040).
10661
d427a9fa
EZ
106622010-01-09 Eli Zaretskii <eliz@gnu.org>
10663
10664 * editfns.c (Ffloat_time): Doc fix.
10665
21b9df2f
JD
106662010-01-09 Jan Djärv <jan.h.d@swipnet.se>
10667
10668 * xfns.c (Fx_create_frame): Don't create frame larger than display
10669 by default bug#3643.
10670
4b00d3b1
YM
106712010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10672
10673 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
10674 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
10675 windows above internal border.
10676
10677 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
10678 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
10679 windows above internal border.
10680
10681 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
10682 tool bar windows specially.
10683
10684 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
10685
10686 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
10687 specially.
10688 (XTflash): Take account of menu bar height.
10689
10690 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
10691 specially.
10692
5075d853
JD
106932010-01-08 Jan Djärv <jan.h.d@swipnet.se>
10694
ac146f82 10695 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
10696 also be true before we can return early (bug #5339).
10697
474217c8
CY
106982010-01-06 David Reitter <david.reitter@gmail.com>
10699
10700 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
10701 (Fns_display_usable_bounds): Rewrite, computing bounds properly
10702 (Bug#3233).
10703
c0e6d47d
JD
107042010-01-06 Jan Djärv <jan.h.d@swipnet.se>
10705
d0cf45b7
JD
10706 * font.c (font_open_entity): Enable chache and call cached_font_ok
10707 for the driver if defined.
10708 (QCuser_spec): New symbol.
10709 (font_spec_from_name): Save name as user-spec.
10710 (font_load_for_lface): Keep user-spec instead of name.
10711 (font_open_by_name): Save name as user-spec.
10712 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 10713 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
10714
10715 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
10716 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
10717 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
10718
10719 * font.h (struct font_driver): Add cached_font_ok.
10720
c0e6d47d
JD
10721 * xterm.c (x_clear_frame): Queue draw for scroll bars.
10722
7c583cd8
JD
107232010-01-05 Jan Djärv <jan.h.d@swipnet.se>
10724
10725 * xterm.c (x_new_font): Move code for setting rows/cols before
10726 resizing ...
ac146f82 10727 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
10728
10729 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
10730 (xg_frame_resized, xg_frame_set_char_size):
10731 Call xg_clear_under_internal_border.
7c583cd8 10732 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 10733
03f77f0a
CY
107342010-01-05 Chong Yidong <cyd@stupidchicken.com>
10735
10736 * keyboard.c (read_key_sequence): Catch keyboard switch after
10737 making a new tty frame (Bug#5095).
10738
2a1ef5be
KH
107392010-01-05 Kenichi Handa <handa@m17n.org>
10740
10741 * fontset.c (fontset_find_font): Fix getting the frame pointer.
10742
e3eb1dae
SM
107432010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10744
10745 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
10746 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10747 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10748
777013f2
MA
107492010-01-03 Michael Albinus <michael.albinus@gmx.de>
10750
10751 * dbusbind.c (xd_add_watch): Improve debug message.
10752 (xd_remove_watch): Improve debug message. If DATA is the session
10753 bus, unset D-Bus session environment.
10754 (Fdbus_init_bus): Pass the bus as argument to
10755 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 10756
8932b1c2
CY
107572010-01-01 Chong Yidong <cyd@stupidchicken.com>
10758
87231e2c
CY
10759 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10760
4801c5fa
CY
10761 * lread.c (syms_of_lread): Make it clearer that these are the
10762 names of loaded files (Bug#5068).
10763
8932b1c2
CY
10764 * eval.c (run_hook_with_args): Handle the case where the global
10765 value has the obsolete single-function form (Bug#5026).
10766
11e3c684
CY
107672009-12-27 Chong Yidong <cyd@stupidchicken.com>
10768
10769 * minibuf.c (Fall_completions): Minor optimization.
10770
5b28ce35
EZ
107712009-12-26 Eli Zaretskii <eliz@gnu.org>
10772
5ce6e4f4
JB
10773 * .gdbinit (pgx): Fix display of composite glyphs.
10774 Display cmp.from and cmp.to as well.
10775 (pitx): Fix last change.
5b28ce35 10776
bcffff46
KH
107772009-12-25 Kenichi Handa <handa@m17n.org>
10778
10779 * composite.h (composition_adjust_point): Update prototype.
10780
10781 * composite.c (composition_reseat_it): Don't make a composition
10782 spanning over point.
10783 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
10784 composable characters.
10785 (composition_adjust_point): New arg NEW_PT. Callers changed.
10786
10787 * keyboard.c (command_loop_1): Force redisplay if the last point
10788 was within a composition.
10789 (adjust_point_for_property): Don't adjust point for automatic
10790 composition when called after buffer modification.
10791
3f670e9a
EZ
107922009-12-19 Eli Zaretskii <eliz@gnu.org>
10793
5ce6e4f4
JB
10794 * .gdbinit (pitx): Don't use enum names, use their values.
10795 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
10796 (pgx): Don't use enum names, use their values.
10797 (pitmethod): New helper command.
10798 (pitx): Use it to display iteration method.
10799 (pgrowit): New command.
10800
ad903955
EZ
10801 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
10802
3f670e9a
EZ
10803 Update dependencies in Makefile.in.
10804
10805 * Makefile.in (alloc.o): Depend on termhooks.h.
10806 (atimer.o): Depend on blockinput.h.
10807 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
10808 and frame.h.
10809 (callint.o): Depend on systime.h, coding.h, and composite.h.
10810 (callproc.o): Depend on buffer.h.
10811 (casefiddle.o): Don't depend on charset.h.
10812 (casetab.o): Depend on character.h.
10813 (ccl.o): Depend on composite.h.
10814 (chartab.o): Depend on ccl.h.
10815 (cm.o): Depend on dispextern.h.
10816 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
10817 (coding.o): Don't depend on $(INTERVALS_H).
10818 (composite.o): Don't depend on dispextern.h explicitly (it's in
10819 $(INTERVALS_H)). Depend on ccl.h.
10820 (data.o): Depend on systime.h, coding.h, composite.h,
10821 dispextern.h, font.h, and ccl.h.
10822 (dired.o): Depend on composite.h.
10823 (dispnew.o): Depend on coding.h. Don't depend explicitly on
10824 composite.h (it's in $(INTERVALS_H)).
10825 (doc.o): Depend on systime.h, coding.h, and composite.h.
10826 (editfns.o): Don't depend explicitly on dispextern.h.
10827 (emacs.o): Depend on frame.h and coding.h.
10828 (eval.o): Depend on coding.h, composite.h, and xterm.h.
10829 (fileio.o): Depend on frame.h and commands.h. Don't depend
10830 explicitly on dispextern.h.
10831 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
10832 composite.h.
10833 (fns.o): Don't depend on termhooks.h.
10834 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
10835 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
10836 coding.h, $(INTERVALS_H), window.h, xterm.h.
10837 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
10838 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
10839 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
10840 fontset.h, ccl.h, and ftfont.h.
10841 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10842 (gtkutil.o): Depend on dispextern.h and composite.h.
10843 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
10844 termhooks.h, and ccl.h.
10845 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
10846 (intervals.o): Depend on systime.h and coding.h.
10847 (keyboard.o): Depend on composite.h and coding.h.
10848 (keymap.o): Depend on coding.h and frame.h.
10849 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
10850 (macros.o): Depend on systime.h, coding.h, and composite.h.
10851 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
10852 and atimer.h.
10853 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
10854 dispextern.h explicitly.
0b5397c2
SM
10855 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
10856 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
10857 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
10858 (regex.o): Don't depend on charset.h.
10859 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
10860 (search.o): Don't depend explicitly on composite.h.
10861 (sound.o): Depend on atimer.h and systime.h.
10862 (syntax.o): Don't depend explicitly on composite.h.
10863 (sysdep.o): Depend on coding.h and composite.h.
10864 (term.o): Depend on xterm.h and buffer.h.
10865 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
10866 (textprop.o): Don't depend on dispextern.h explicitly.
10867 (undo.o): Depend on dispextern.h.
10868 (window.o): Depend on coding.h and termhooks.h. Don't depend on
10869 dispextern.h and composite.h explicitly.
10870 (xdisp.o): Depend on ccl.h.
10871 (xfaces.o): Depend on coding.h and ccl.h.
10872 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
10873 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10874 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
10875 ftfont.h.
10876 (xgselect.o): New dependency.
10877 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
10878 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10879 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10880 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10881 (xsmfns.o): Depend on frame.h and dispextern.h.
10882 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10883 sysselect.h.
10884
7a6f7fea
AS
108852009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10886
10887 * font.c (Fclear_font_cache): Pass correct cache argument to
10888 font_clear_cache.
10889
f4c21026
AS
108902009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10891
10892 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10893 twice.
10894
f7ab0997
CY
108952009-12-15 Chong Yidong <cyd@stupidchicken.com>
10896
10897 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10898 calling file-remote-p. Reported by Jim Meyering.
10899
fa8e045a
MA
109002009-12-15 Michael Albinus <michael.albinus@gmx.de>
10901
10902 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 10903 avoid compiler warnings. (Bug #5217)
fa8e045a 10904
a63dba42
KH
109052009-12-14 Kenichi Handa <handa@m17n.org>
10906
10907 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10908 in 8-bit encoding.
10909
5ce6e4f4 109102009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
10911
10912 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10913 tooltip windows.
10914
223e5fc6
JD
109152009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10916
36acb2a7
JD
10917 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10918 Xatom_net_window_type.
10919
10920 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10921 Xatom_net_window_type.
10922
b8f00677
JD
10923 * xterm.c (my_log_handler): New function.
10924 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 10925 so we can filter out buggy messages. (Bug #5120).
b8f00677 10926
e5f0bc9a
JD
10927 * xterm.c (xg_scroll_callback): Parameter list changed,
10928 use parameter GtkScrollType to determine scroll/line/page.
10929 Only allow dragging if a button < 4 is grabbed (bug #5177).
10930 (xg_end_scroll_callback): New function.
10931 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10932 xg_create_scroll_bar.
10933
10934 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10935 (scroll_end_callback): Remove.
10936 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10937 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 10938 bug #5177.
e5f0bc9a
JD
10939 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10940 bug #5177.
10941
10942 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10943 (xg_create_scroll_bar): Add GCallback end_callback.
10944
223e5fc6
JD
10945 * xftfont.c (QClcdfilter): New variable.
10946 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10947 (syms_of_xftfont): Initialize QClcdfilter.
10948
3c055b77
JD
109492009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10950
10951 * xsettings.c (struct xsettings): Add member seen.
10952 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 10953 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
10954 (apply_xft_settings): Only update Xft settings with what member seen
10955 indicates as new.
10956
05fe33ff
EZ
109572009-12-12 Eli Zaretskii <eliz@gnu.org>
10958
c4cc8b9a 10959 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
10960 (struct glyph): Use EMACS_INT for charpos.
10961 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
10962 region_beg_charpos, region_end_charpos,
10963 redisplay_end_trigger_charpos, and also for
10964 iterator_stack_entry.end_charpos and
10965 iterator_stack_entry.stop_charpos.
10966
e8d7886a
JD
109672009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10968
5ce6e4f4 10969 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
10970 (xg_create_scroll_bar): Call scroll_end_callback on button release
10971 event (bug #5177).
10972 (xg_event_is_for_scrollbar): != replaced with ==.
10973
d0db2ec8
KH
109742009-12-12 Kenichi Handa <handa@m17n.org>
10975
10976 * ftfont.c (struct ftfont_info): New member matrix.
10977 (ftfont_open): Setup xftfont_info->matrix.
10978 (MFLTFontFT): New member matrix.
10979 (FLOOR, CEIL, ROUND): New macros.
10980 (ftfont_get_metrics): Handle matrix transformation.
10981 (ftfont_shape_by_flt): New arg matrix. Callers changed.
10982
10983 * xftfont.c (struct xftfont_info): New member matrix.
10984 (xftfont_open): Setup xftfont_info->matrix.
10985
109862009-12-10 Kenichi Handa <handa@m17n.org>
10987
10988 * xdisp.c (append_space_for_newline): Consider face-remapping.
10989
2cc7b62f
AS
109902009-12-09 Andreas Schwab <schwab@linux-m68k.org>
10991
b87dd913
AS
10992 * xsettings.c: Include "keyboard.h".
10993
eba5eb94
AS
10994 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
10995
2cc7b62f
AS
10996 Fix implicit function declarations.
10997 * cmds.c: Include "frame.h".
10998 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10999 * frame.h: Move declaration of delete_frame outside of
11000 HAVE_WINDOW_SYSTEM.
11001
a4ef73c8
CY
110022009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11003
11004 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11005
11006 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11007 GTK builds.
11008
944a300c
AS
110092009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11010
11011 * unexelf.c (unexec): Don't search for .data twice.
11012
022eef62
CY
110132009-12-05 Chong Yidong <cyd@stupidchicken.com>
11014
426ac949
CY
11015 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11016 if push failed.
11017 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11018 of push_display_prop (Bug#5000).
11019
022eef62
CY
11020 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11021 value of font_list_entities (Bug#5085).
11022
be95bee9
JB
110232009-12-04 Juanma Barranquero <lekktu@gmail.com>
11024
11025 Fix `string-to-number' to deal consistently with integers and floats.
11026 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11027 trailing characters, not just whitespace.
11028 (read1): Pass new arg 0 to keep old behavior.
11029 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11030 trailing chars, as it is already done for integers. Doc fixes.
11031 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11032
24c2d7ce
EZ
110332009-12-04 Eli Zaretskii <eliz@gnu.org>
11034
0b5397c2
SM
11035 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11036 Delete unused enumeration value.
24c2d7ce 11037
7e694795
EZ
110382009-12-03 Eli Zaretskii <eliz@gnu.org>
11039
11040 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11041
84b31826
SM
110422009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11043
11044 * process.c (Fmake_network_process): Fix up the tests for
11045 "connectionless socket", so they DTRT for seqpacket sockets as well.
11046
f00c449b
SM
110472009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11048
11049 * process.c (Qseqpacket): New symbol.
11050 (HAVE_SEQPACKET): New macro.
11051 (Fmake_network_process): Accept new :type `seqpacket'.
11052 (init_process): Add `seqpacket' feature when applicable.
11053 (syms_of_process): Initialize Qseqpacket.
11054
8096a0ff
YM
110552009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11056
11057 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11058 if entity is Qnil.
11059
3e0de07f
SM
110602009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11061
11062 * print.c (print_preprocess): Preprocess the key_and_value table of
11063 hashtables, even tho they're "hidden" (bug#5082).
11064
abeafb2a
JD
110652009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11066
11067 * frame.c (frame_make_pointer_invisible)
11068 (frame_make_pointer_visible): Declare f before statements.
11069
4bf47195
EZ
110702009-11-28 Eli Zaretskii <eliz@gnu.org>
11071
11072 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11073 omitted dependencies on lisp.h.
11074
c525b3f2
JD
110752009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11076
ece2d4ed
JD
11077 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11078 is NULL.
11079
11080 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11081
11082 * frame.c (frame_make_pointer_invisible)
3e0de07f 11083 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
11084 frame.
11085
c525b3f2
JD
11086 * search.c (simple_search): Remove warning by making *p const.
11087
2f00e299
DN
110882009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11089
11090 * xdisp.c (power_letter): Remove duplicate const.
11091
084b049b
JD
110922009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11093
a1fadc6f
JD
11094 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11095
5ce6e4f4 11096 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
11097 defaults (bug #5025).
11098
28259cac
SM
110992009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11100
11101 * insdel.c (adjust_markers_for_delete): Move it in the
11102 right direction! (bug#4803)
11103
e8e14166
YM
111042009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11105
11106 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11107
11108 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11109
86677b58
GM
111102009-11-24 Glenn Morris <rgm@gnu.org>
11111
11112 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11113
581e51e8
JD
111142009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11115
cfc86c7a
JD
11116 * Makefile.in: Must create deps for ecrt0.o in its rule.
11117
581e51e8
JD
11118 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11119 because that is what Gtk+ font dialog understands.
11120
11121 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11122 of Fcopy_sequence.
11123 (font_open_by_name): Put name given into QCname for font-object returned.
11124
11125 * frame.c (x_set_font): Save original font name as frame parameter
11126 font-parameter.
11127
11128 * xsettings.c (set_default_xft_settings): New function.
11129 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11130 is found.
11131
8b264ecb
AS
111322009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11133
11134 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11135 searching backwards through multibyte buffer.
11136
872870b2
JD
111372009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11138
11139 * xterm.c: #include xgselect.h.
11140 (x_initialize): Call xgselect_initialize.
11141
11142 * xsettings.c (something_changedCB): C++ comments => C comments.
11143 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11144 does that now.
11145
11146 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11147 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11148 (scroll_bar_button_cb): Remove.
5ce6e4f4 11149 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
11150 event.
11151 (xg_create_scroll_bar): Don't bind button-press-event and
11152 button-release-event.
11153
11154 * process.c: Include xgselect.h if defined (USE_GTK) ||
11155 defined (HAVE_GCONF).
11156 (wait_reading_process_output): Call xg_select for the same condition.
11157
11158 * xgselect.c (xg_select): New function to better integrate with
11159 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11160
11161 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11162
11163 * Makefile.in (XOBJ): Add xgselect.o.
11164
62a6e103
AS
111652009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11166
0b5397c2
SM
11167 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11168 Remove ignored second argument. All callers changed.
62a6e103
AS
11169 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11170 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11171 * xdisp.c (string_char_and_length): Likewise.
11172
b0ca0f33
DN
111732009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11174
11175 * xterm.c (x_new_font):
11176 * print.c (print_object):
11177 * cmds.c (Fself_insert_command): Move declarations before statements.
11178
dd5a6279
CY
111792009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11180
11181 * s/cygwin.h: Remove unneeded linker flags.
11182
4a8e097d
JD
111832009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11184
0d1d0d26
JD
11185 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11186
11187 * xsettings.h: Declare xsettings_get_system_font.
11188
11189 * xsettings.c (xsettings_get_system_font): New function.
11190 (init_gconf): No use initiating gconf unless we have Xft also.
11191 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11192 HAVE_GCONF.
11193
4a8e097d
JD
11194 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11195 add a blank entry so it doesn't collapse into nothing.
11196
8ab1650e
SM
111972009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11198
11199 * lread.c (Funintern): Comment out last change.
11200
82c602f0
RS
112012009-11-19 Richard Stallman <rms@gnu.org>
11202
11203 * lread.c (Funintern): Error if symbol is t or nil.
11204
87e32266
SM
112052009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11206
11207 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11208 representation of Lisp integers.
11209 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11210
1b9ac145
AS
112112009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11212
11213 * lisp.h: Remove declaration of Ffont_get_system_font.
11214 * xfns.c: Move include of "xsettings.h".
11215 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11216
dfb3c4c6
JD
112172009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11218
87e32266
SM
11219 * xsettings.c (something_changedCB, Ffont_get_system_font):
11220 Check use_system_font.
dfb3c4c6
JD
11221 (syms_of_xsettings): DEFVAR font-use-system-font.
11222
9370c1d8
AS
112232009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11224
25fe851a
AS
11225 * xfns.c (x_default_font_parameter): Remove dead assignment.
11226
9370c1d8
AS
11227 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11228
637fa988
JD
112292009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11230
87e32266 11231 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 11232 not have FC_LCD_*. #define them if not there.
a6eb20d8 11233
87e32266 11234 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 11235
637fa988
JD
11236 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11237
11238 * xterm.c (handle_one_xevent): Call xft_settings_event for
11239 ClientMessage, PropertyNotify and DestroyNotify.
11240 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11241 Call xsettings_initialize.
11242
11243 * xftfont.c (xftfont_fix_match): New function.
11244 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11245 Call xftfont_fix_match after XftFontMatch.
11246
11247 * xfont.c (xfont_driver): Initialize all members.
11248
87e32266
SM
11249 * xfns.c (x_default_font_parameter):
11250 Try font from Ffont_get_system_font.
637fa988
JD
11251 Do not get font from x_default_parameter if we got one from
11252 Ffont_get_system_font.
87e32266 11253 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
11254
11255 * w32font.c (w32font_driver): Initialize all members.
11256
11257 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11258
11259 * lisp.h: Declare syms_of_xsettings.
11260
87e32266
SM
11261 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11262 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
11263
11264 * ftfont.c (ftfont_filter_properties): New function.
11265
11266 * frame.c (x_set_font): Remove unused variable lval.
11267
87e32266 11268 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
11269
11270 * font.c (font_put_extra): Don't return if val is nil, it means
11271 boolean option is off.
11272 (font_parse_fcname): Collect all extra properties in extra_props
11273 and call filter_properties for all drivers with extra_props and
11274 font as parameter.
87e32266
SM
11275 (font_open_entity): Do not use cache, it does not pick up new
11276 fontconfig settings like hinting.
637fa988
JD
11277 (font_load_for_lface): If spec had a name in it, store it in entity.
11278
a73f9c9d 11279 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
11280
11281 * config.in: HAVE_GCONF is new.
11282
11283 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11284 xsettings.o is new.
11285
5a942932
KH
112862009-11-17 Kenichi Handa <handa@m17n.org>
11287
11288 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11289 back to the default font in case that no suitable font is found.
11290
b7c7a4d1
SM
112912009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11292
11293 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11294 Suggested by Chad Brown <yandros@mit.edu>.
11295 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11296
072f1e39
JD
112972009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11298
11299 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11300
5d1e70a2
AS
113012009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11302
87e32266 11303 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 11304
a53cfbe5
JD
113052009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11306
473a99b7
JD
11307 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11308 has a parent.
11309
a53cfbe5 11310 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 11311 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
11312
11313 * config.in: Generated (AUTO_DEPEND).
11314
f04bb9b2
MA
113152009-11-13 Michael Albinus <michael.albinus@gmx.de>
11316
b7c7a4d1 11317 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
11318 Vdbus_registered_functions_table, because it contains also
11319 properties. Fix docstring.
b7c7a4d1 11320 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 11321
8f11f7ec
SM
113222009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11323
11324 * alloc.c (mark_object): Don't reprocess marked strings.
11325 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11326 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11327
8a605fe8
KH
113282009-11-13 Kenichi Handa <handa@m17n.org>
11329
8f11f7ec 11330 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
11331 semantics of Vword_combining_categories.
11332 (Vword_combining_categories): Describe the slight change of the
11333 semantics.
11334
241c4680
EZ
113352009-11-13 Eli Zaretskii <eliz@gnu.org>
11336
11337 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11338
11339 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11340
5d58e44c
SM
113412009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11342
11343 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11344
5e13f9d3
JB
113452009-11-12 Juanma Barranquero <lekktu@gmail.com>
11346
11347 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11348
cf54c754
DR
113492009-11-11 David Reitter <david.reitter@gmail.com>
11350
11351 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11352 variables to fix 2009-11-09 change.
11353
a4ada374
DN
113542009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11355
91433552
DN
11356 * process.c (ifflag_def): Make flag_sym constant.
11357 (Fnetwork_interface_info): Use a constant pointer.
11358 (ifflag_table):
11359 * xfns.c (cursor_bits):
11360 * xdisp.c (power_letter):
11361 * termcap.c (speeds, esctab):
11362 * sysdep.c (baud_convert):
11363 * keyboard.c (lispy_accent_codes, modifier_names):
11364 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11365 (jpeg_format, tiff_format, gif_format, svg_format)
11366 (interlace_start, interlace_increment, gs_format):
11367 * gtkutil.c (separator_names):
11368 * fringe.c (swap_nibble):
11369 * fns.c (base64_value_to_char, base64_char_to_value):
11370 * fileio.c (make_temp_name_tbl):
11371 * coding.c (suffixes): Make constant.
11372
f4265f6c
DN
11373 * frame.c (make_initial_frame):
11374 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11375 build_string.
11376 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11377
04420943
DN
11378 * s/freebsd.h:
11379 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11380
0a5d24ae
DN
11381 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11382 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11383
a4ada374
DN
11384 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11385 * xterm.c (syms_of_xterm):
11386 * xfaces.c (syms_of_xfaces):
11387 * xdisp.c (syms_of_xdisp):
11388 * lread.c (syms_of_lread):
11389 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11390 build_string.
91433552 11391
a4ada374
DN
11392 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11393
af98fc7f
SM
113942009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11395
8ab1650e 11396 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 11397
e90292a9
JD
113982009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11399
11400 * keyboard.h: Declare timer_check.
11401
11402 * keyboard.c (timer_check_2): New function that does what the old
11403 timer_check did.
11404 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11405 returned, i.e. don't return -1 with timers pending.
11406
11407 * process.c: Remove extern declaration of timer_check.
11408
11409 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11410 even if timer_check returned -1.
11411
af98fc7f
SM
11412 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11413 xg_dialog_data.
e90292a9
JD
11414 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11415 the event loop.
11416 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11417 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11418 Destroy the dialog after xg_dialog_run.
11419
045b83c0
SM
114202009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11421
11422 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11423
1fb99a3a
JD
114242009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11425
11426 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11427
04e452cb
JB
114282009-11-09 Juanma Barranquero <lekktu@gmail.com>
11429
11430 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11431
ef7417fd
SM
114322009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11433
11434 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11435 w32menu.c, and nsmenu.m.
11436 Simplify the obsolete case where position is nil.
11437 (cleanup_popup_menu): New function, moved from nsmenu.m.
11438 (struct skp): Remove slot `notreal'.
11439 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11440 adjust callers.
11441 (single_menu_item): Adjust call to parse_menu_item.
11442 (syms_of_menu): Defsubr x-popup-menu.
11443 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11444 (keymap_panes): Don't export any more.
11445 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11446 (xmenu_show): Declare.
11447 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11448 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11449 * keyboard.h (parse_menu_item): Update declaration.
11450 * xmenu.c (Fx_popup_menu): Remove.
11451 (syms_of_xmenu): Don't defsubr x-popup-menu.
11452 * w32menu.c (Fx_popup_menu): Remove.
11453 (syms_of_w32menu): Don't defsubr x-popup-menu.
11454 * nsmenu.m (cleanup_popup_menu): Remove.
11455 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11456 moved to menu.c's Fx_popup_menu.
11457 (Fx_popup_menu): Remove.
11458 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11459 menu_items (it's done in menu.c already).
11460
424d6179
SM
114612009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11462
11463 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11464 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11465
c0df13a6 114662009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
11467
11468 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 11469 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
11470 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11471 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11472
2de9f71c
SM
114732009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11474
11475 Let integers use up 2 tags to give them one extra bit and thus double
11476 their range.
11477 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11478 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11479 New macros.
11480 (enum Lisp_Type): Use them. Give explicit values.
11481 (Lisp_Type_Limit): Remove.
11482 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11483 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11484 Pay attention to USE_2_TAGS_FOR_INTS.
11485 (INTEGERP): Use LISP_INT_TAG_P.
11486 * fns.c (internal_equal): Simplify the default case.
11487 (sxhash): Use case_Lisp_Int.
11488 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11489 any more.
11490 (Ftype_of): Use case_Lisp_Int.
11491 (store_symval_forwarding): Take into account the fact that Ints can
11492 now have more than one tag.
11493 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 11494 (buffer_slot_type_mismatch):
2de9f71c
SM
11495 * xfaces.c (face_attr_equal_p):
11496 * print.c (print_object):
11497 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11498 Use case_Lisp_Int.
11499
323637a2
EZ
115002009-11-06 Eli Zaretskii <eliz@gnu.org>
11501
7ac65b38
EZ
11502 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11503
323637a2
EZ
11504 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11505 warning.
11506
e511451f
JD
115072009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11508
11509 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11510
11511 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11512
11513 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11514 ButtonPressRelease and MotionNotify (bug#4870).
11515
5e2327cf
DN
115162009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11517
5adc433e
DN
11518 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11519
d67b4f80
DN
11520 * xterm.c (syms_of_xterm):
11521 * xselect.c (syms_of_xselect):
11522 * xmenu.c (syms_of_xmenu):
11523 * xfns.c (syms_of_xfns):
11524 * xfaces.c (syms_of_xfaces):
11525 * xdisp.c (syms_of_xdisp):
11526 * window.c (syms_of_window):
11527 * w32fns.c (syms_of_w32fns):
11528 * undo.c (syms_of_undo):
11529 * textprop.c (syms_of_textprop):
11530 * terminal.c (syms_of_terminal):
11531 * syntax.c (syms_of_syntax):
11532 * sound.c (syms_of_sound):
11533 * search.c (syms_of_search):
11534 * print.c (syms_of_print):
11535 * minibuf.c (syms_of_minibuf):
11536 * macros.c (syms_of_macros):
11537 * keymap.c (syms_of_keymap, initial_define_key)
11538 (initial_define_lispy_key):
11539 * keyboard.c (syms_of_keyboard):
11540 * insdel.c (syms_of_insdel):
11541 * image.c (syms_of_image):
11542 * fringe.c (syms_of_fringe):
11543 * frame.c (syms_of_frame):
11544 * fontset.c (syms_of_fontset):
11545 * fns.c (syms_of_fns):
11546 * fns.c (syms_of_fns):
11547 * fileio.c (syms_of_fileio):
11548 * fileio.c (syms_of_fileio):
11549 * eval.c (syms_of_eval):
11550 * doc.c (syms_of_doc):
11551 * dispnew.c (syms_of_display):
11552 * dired.c (syms_of_dired):
11553 * dbusbind.c (syms_of_dbusbind):
11554 * data.c (syms_of_data):
11555 * composite.c (syms_of_composite):
11556 * coding.c (syms_of_coding):
11557 * cmds.c (syms_of_cmds):
11558 * charset.c (define_charset_internal, syms_of_character):
11559 * ccl.c (syms_of_ccl):
11560 * category.c (syms_of_category, init_category_once):
11561 * casetab.c (syms_of_casetab):
11562 * casefiddle.c (syms_of_casefiddle):
11563 * callint.c (syms_of_callint):
11564 * bytecode.c (syms_of_bytecode):
11565 * buffer.c (keys_of_buffer, syms_of_buffer):
11566 * alloc.c (syms_of_alloc):
11567 * process.c (syms_of_process, init_process):
11568 * lread.c (syms_of_lread, init_obarray):
11569 * font.c (build_style_table):
11570 * emacs.c (syms_of_emacs, main): Replace calls to intern with
11571 intern_c_string, calls to make_pure_string with
11572 make_pure_c_string. Use pure_cons instead of Fcons.
11573
5e2327cf
DN
11574 * process.c (socket_options): Make it const.
11575 (set_socket_option, init_process): Use a const pointer.
11576
11577 * lread.c (intern_c_string): New function.
11578 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11579 (defvar_int): Uset it. Make the name const char*.
11580
11581 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11582 (defvar_int): Update prototypes.
11583 (DEFUN, EXFUN): Support for prototypes is now required.
11584 (intern_c_string): New prototype.
11585 (struct Lisp_Subr): Make symbol_name constant.
11586
11587 * font.c (struct table_entry): Remove unused member. Make NAMES
11588 constant.
11589 (weight_table, slant_table, width_table): Make constant.
11590
11591 * emacs.c (struct standard_args): Make name and longname constant.
11592
11593 * character.h (DEFSYM): Use intern_c_string.
11594
a56eaaef
DN
115952009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11596
11597 * alloc.c (make_pure_c_string): New function.
11598
11599 * eval.c (Fautoload): Purecopy all arguments.
11600
f6a07420
KH
116012009-11-05 Kenichi Handa <handa@m17n.org>
11602
11603 * fileio.c (Finsert_file_contents): Be sure set coding-system of
11604 the buffer in case of replace.
11605
5d28d4b1
DN
116062009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
11607
11608 * puresize.h (BASE_PURESIZE): Increase to 1620000.
11609
b349d111
SM
116102009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
11611
d528b1ce
SM
11612 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
11613 when applicable (bug#4851).
11614
b349d111
SM
11615 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
11616 (P_): Support for prototypes is now required.
11617
c38eb027
CY
116182009-10-31 Chong Yidong <cyd@stupidchicken.com>
11619
11620 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
11621 (Bug#4827).
11622
0405f8d9
EZ
116232009-10-30 Eli Zaretskii <eliz@gnu.org>
11624
d528b1ce 11625 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 11626
ca0a881a
DN
116272009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
11628
11629 * puresize.h (BASE_PURESIZE): Increase to 1470000.
11630
d528b1ce
SM
11631 * lread.c (Fload): Purecopy the file name when building
11632 Vpreloaded_file_list.
ca0a881a 11633
47e0e0e4
JR
116342009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
11635
11636 * w32fns.c (syms_of_w32fns): Change default value of
11637 w32-scroll-lock-modifier to nil. (Bug#2827)
11638
057bce6f
JB
116392009-10-26 Juanma Barranquero <lekktu@gmail.com>
11640
782a943e 11641 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 11642
242bc74c
AS
116432009-10-26 Andreas Schwab <schwab@redhat.com>
11644
11645 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
11646
522d013a
JB
116472009-10-26 Juanma Barranquero <lekktu@gmail.com>
11648
11649 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
11650 For delta < 0, skip check that only makes sense when the mini-window
11651 is going to be enlarged. (Bug#4534)
11652
18060980
CY
116532009-10-25 Chong Yidong <cyd@stupidchicken.com>
11654
11655 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
11656 string in menu maps (Bug#4471).
11657
fec8f0fe
CY
116582009-10-24 Chong Yidong <cyd@stupidchicken.com>
11659
11660 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
11661 FRAME_NS_VIEW on terminal frames (Bug#4765).
11662
10d66ec0
AS
116632009-10-24 Andreas Schwab <schwab@linux-m68k.org>
11664
1cae01f7
AS
11665 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
11666 DBUS_TYPE_UINTnn separately to get proper sign extension.
11667
58a12889
AS
11668 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
11669 can properly handle unsigned types.
d528b1ce 11670 (make_uid, make_gid): Remove.
58a12889 11671
987c9327
AS
11672 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
11673 types again.
11674
522d013a 11675 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
11676 (system_process_attributes): Likewise.
11677
905a9ed3
DN
116782009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
11679
11680 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
11681
11682 * eval.c (Fautoload): Purecopy the filename. Simplify.
11683
11684 * category.c (Fdefine_category): Purecopy docstring.
11685
a599b3e8
AS
116862009-10-23 Andreas Schwab <schwab@linux-m68k.org>
11687
7b792fc9
AS
11688 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
11689
a599b3e8
AS
11690 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
11691
b35ac83e
CY
116922009-10-23 Chong Yidong <cyd@stupidchicken.com>
11693
11694 * window.c (Fwindow_edges, Fwindow_pixel_edges)
11695 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
11696 (Bug#4775).
11697
e8903e00
SM
116982009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11699
11700 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
11701 (init_fileio_once):
11702 * lisp.h (init_fileio_once): Remove.
11703 * emacs.c (main): Don't call init_fileio_once.
11704
8f43cbf3
DN
117052009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
11706
11707 * puresize.h (BASE_PURESIZE): Increase to 1430000.
11708
26898943
AS
117092009-10-21 Andreas Schwab <schwab@linux-m68k.org>
11710
11711 * doprnt.c (doprnt): Fix overflow check.
11712
5c646d5a
JD
117132009-10-21 Jan Djärv <jan.h.d@swipnet.se>
11714
3132a7ea
JD
11715 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
11716
5c646d5a
JD
11717 * xterm.h (x_wait_for_event): Declare it.
11718
11719 * xterm.c (pending_event_wait): New variable.
11720 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
11721 see pending_event_wait.eventtype.
11722 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
11723 (x_new_font): Call change_frame_size with new rows/columns before we
11724 try to resize the frame.
5c646d5a 11725 (x_wait_for_event): New function.
d528b1ce
SM
11726 (x_set_window_size_1): Don't change gravity unless change_gravity
11727 is set.
5c646d5a
JD
11728 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
11729 don't change frame size, instead wait for the ConfigureNotify.
11730 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
11731 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
11732 (x_initialize): Initialize pending_event_wait.
11733
11734 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
11735 size.
11736
11737 * widget.c (EmacsFrameSetValues): Add comment.
11738 (EmacsFrameSetCharSize): Just call x_set_window_size.
11739
11740 * gtkutil.c (xg_frame_set_char_size): Flush events and call
11741 x_wait_for_event.
d528b1ce 11742 (flush_and_sync): Remove again.
5c646d5a
JD
11743 (xg_get_font_name): Suggest monospace if no previous font is known.
11744
e9c1637d
SM
117452009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
11746
11747 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 11748 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 11749
5a72cccb
YM
117502009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11751
11752 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11753 processing pending events when event is filtered for input method.
ab04798f 11754 (Bug#3681)
5a72cccb 11755
2629aa37
JB
117562009-10-20 Juanma Barranquero <lekktu@gmail.com>
11757
11758 * fns.c: Add #endif accidentally removed in previous change.
11759
c3417a74
DN
117602009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11761
11762 * fns.c: Remove code for unsupported system: MAC_OS.
11763 * image.c: Likewise. Include setjmp.h.
11764
9685cef2
JD
117652009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11766
11767 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11768 pixel -1 (bug #4742).
11769
d7306fe6
DN
117702009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11771
019d2c4c
DN
11772 * process.c (create_pty): Remove conditionals for no longer
11773 supported systems: UNIPLUS and RTU.
11774
ee6bacd4
DN
11775 * xterm.c:
11776 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11777
d7306fe6
DN
11778 * alloc.c: Do not define struct catchtag.
11779 * eval.c: Move struct catchtag definition ...
11780 * lisp.h: ... here.
11781
11782 * image.c: Move png.h #include earlier to avoid warnings.
11783
11784 * xterm.c:
11785 * xsmfns.c:
11786 * xselect.c:
11787 * xrdb.c:
11788 * xmenu.c:
11789 * xftfont.c:
11790 * xfont.c:
11791 * xfns.c:
11792 * xfaces.c:
11793 * xdisp.c:
11794 * window.c:
11795 * widget.c:
11796 * w32xfns.c:
11797 * w32uniscribe.c:
11798 * w32term.c:
11799 * w32select.c:
11800 * w32reg.c:
11801 * w32proc.c:
11802 * w32menu.c:
11803 * w32inevt.c:
11804 * w32heap.c:
11805 * w32font.c:
11806 * w32fns.c:
11807 * w32console.c:
11808 * w32.c:
11809 * w16select.c:
11810 * vm-limit.c:
11811 * unexsol.c:
11812 * unexec.c:
11813 * unexcw.c:
11814 * unexaix.c:
11815 * undo.c:
11816 * tparam.c:
11817 * textprop.c:
11818 * terminfo.c:
11819 * terminal.c:
11820 * termcap.c:
11821 * term.c:
11822 * syntax.c:
11823 * sound.c:
11824 * sheap.c:
11825 * search.c:
11826 * scroll.c:
11827 * region-cache.c:
11828 * regex.c:
11829 * ralloc.c:
11830 * process.c:
11831 * print.c:
b024548b
DN
11832 * nsterm.m:
11833 * nsselect.m:
11834 * nsmenu.m:
11835 * nsimage.m:
11836 * nsfont.m:
11837 * nsfns.m:
d7306fe6
DN
11838 * msdos.c:
11839 * minibuf.c:
11840 * menu.c:
11841 * marker.c:
11842 * macros.c:
11843 * keymap.c:
11844 * keyboard.c:
11845 * intervals.c:
11846 * insdel.c:
11847 * indent.c:
11848 * gtkutil.c:
11849 * ftxfont.c:
11850 * ftfont.c:
11851 * fringe.c:
11852 * frame.c:
11853 * fontset.c:
11854 * font.c:
11855 * fns.c:
11856 * floatfns.c:
11857 * filelock.c:
11858 * fileio.c:
11859 * emacs.c:
11860 * editfns.c:
11861 * dosfns.c:
11862 * doprnt.c:
11863 * doc.c:
11864 * dispnew.c:
11865 * dired.c:
11866 * dbusbind.c:
11867 * data.c:
11868 * composite.c:
11869 * coding.c:
11870 * cmds.c:
11871 * cm.c:
11872 * chartab.c:
11873 * charset.c:
11874 * character.c:
11875 * ccl.c:
11876 * category.c:
11877 * casetab.c:
11878 * casefiddle.c:
11879 * callproc.c:
11880 * callint.c:
11881 * bytecode.c:
11882 * buffer.c:
11883 * atimer.c: Include setjmp.h. (Bug#4643)
11884
fd5f21e6
SM
118852009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11886
4c0354d7
SM
11887 Remove leftover table unibyte_to_multibyte_table.
11888 * character.c (unibyte_to_multibyte_table): Remove.
11889 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11890 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11891 * character.h (UNIBYTE_TO_CHAR): New macro.
11892 (MAKE_CHAR_MULTIBYTE): Use it.
11893 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11894 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11895 (message_dolog, set_message_1):
11896 * search.c (Freplace_match):
11897 * editfns.c (Fcompare_buffer_substrings):
11898 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11899 (concat):
11900 * insdel.c (copy_text, count_size_as_multibyte):
11901 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11902 * term.c (produce_glyphs):
11903 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11904 * regex.c (RE_CHAR_TO_MULTIBYTE):
11905 * cmds.c (internal_self_insert):
11906 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11907
fd5f21e6
SM
11908 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11909
4418646e
DN
119102009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11911
11912 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11913
35f5c1d2
JB
119142009-10-16 Juanma Barranquero <lekktu@gmail.com>
11915
11916 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11917
a0cd8f6b
AR
119182009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11919
11920 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11921 still needed under Tiger.
11922
11923 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11924
11925 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11926 __Apple__.
11927
11928 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11929
01a8d3fa
KH
119302009-10-15 Kenichi Handa <handa@m17n.org>
11931
11932 * print.c (print_object): Escape a symbol like "2E10" too.
11933
bf6c75c9 119342009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
11935
11936 Cleanups and changes for 64-bit compile under Snow Leopard.
11937 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
11938
11939 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11940
c5959062 11941 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
11942 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11943 cast argument.
11944 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 11945 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
11946
11947 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11948
11949 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11950 where appropriate.
11951
11952 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11953 where appropriate.
6e4780c5
JB
11954 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
11955 Use stringWithUTF8String.
bf6c75c9
AR
11956 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
11957
6e4780c5
JB
11958 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
11959 Add formal protocol mention to inheritance.
bf6c75c9
AR
11960 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
11961
6e4780c5
JB
11962 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
11963 Fix printf format.
bf6c75c9
AR
11964 (ns_query_color): Use CGFloat where appropriate.
11965 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 11966 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
11967 argument.
11968
3d87f118
AR
11969 * config.in (NS_HAVE_NSINTEGER): Drop.
11970
a95c8102
AR
11971 * dbusbind.c (dbus-method-return-internal)
11972 (dbus-method-error-internal): Use long format in printf, and cast
11973 argument.
11974
11975 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
11976 in printf, and cast argument.
11977
6873acca 11978 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
11979 cast argument.
11980
9ec6f100
GM
119812009-10-11 Glenn Morris <rgm@gnu.org>
11982
11983 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
11984
5be883cd
JD
119852009-10-08 Jan Djärv <jan.h.d@swipnet.se>
11986
11987 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
11988 menu bar with a small width so it doesn't enlarge the frame.
11989
d7a39b51
JB
119902009-10-08 Juanma Barranquero <lekktu@gmail.com>
11991
11992 * fontset.c (Fset_fontset_font): Fix typos in error messages.
11993
0c2b6f8e
GM
119942009-10-06 Glenn Morris <rgm@gnu.org>
11995
11996 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
11997 SOME_MACHINE_LISP (this enters indirectly via DOC).
11998
e02131a2
EZ
119992009-10-05 Eli Zaretskii <eliz@gnu.org>
12000
12001 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12002
b4744254
EZ
120032009-10-04 Eli Zaretskii <eliz@gnu.org>
12004
12005 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12006 Doc fix.
12007
dbf64827
JB
120082009-10-03 Martin Rudalics <rudalics@gmx.at>
12009
12010 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12011
e9a0aef8
MA
120122009-10-02 Michael Albinus <michael.albinus@gmx.de>
12013
d528b1ce 12014 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
12015 used anymore outside fileio.c.
12016
12017 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12018
64eb2b56
JB
120192009-10-01 Juanma Barranquero <lekktu@gmail.com>
12020
12021 * lisp.h (Qdelete_directory_internal):
12022 Declare, instead of Qdelete_directory.
12023
12024 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12025
9d28c33e
SM
120262009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12027
12028 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12029
9d8f3bd9
MA
120302009-10-01 Michael Albinus <michael.albinus@gmx.de>
12031
9d28c33e 12032 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
12033 Fdelete_directory. It is not a command anymore. It has no file
12034 name handler.
12035
9694740b
SM
120362009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12037
12038 * xdisp.c (get_next_display_element): Use an enum in last change.
12039
748e162f
KH
120402009-09-28 Kenichi Handa <handa@m17n.org>
12041
9694740b 12042 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
12043 unibyte_display_via_language_environment in handling
12044 Vnobreak_char_display.
12045
17efd58d
AR
120462009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12047
12048 * nsterm.h (ns_app_name): New extern variable.
12049
12050 * nsterm.m (ns_app_name): New variable.
12051 (ns_term_init): Set and use it.
12052 (ns_term_shutdown): Use it.
12053
12054 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12055 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12056
12057 * nsfns.m (ns_set_name_iconic, ns_set_name)
12058 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12059 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12060
9694740b
SM
12061 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12062 Remove double-casting in client_data comparison.
31c2d412 12063
3208cb35
YM
120642009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12065
12066 * keyboard.c (make_lispy_event): Remember last wheel direction.
12067 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12068
b7d552d6
GM
120692009-09-26 Glenn Morris <rgm@gnu.org>
12070
12071 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12072 internal.elc. Add term/pc-win.elc.
12073 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12074 term/x-win.elc.
12075 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12076 term/w32-win.elc.
12077 (NS_SUPPORT): New.
12078 (lisp): Add NS_SUPPORT.
12079 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12080
4ff670a8
DR
120812009-09-25 David Reitter <david.reitter@gmail.com>
12082
12083 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12084 on Mac OS X 10.6+ (bug#4513).
12085
feabfb6c
JB
120862009-09-24 Juanma Barranquero <lekktu@gmail.com>
12087
12088 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
12089 some parts of Emacs code (like font selection) don't grok them.
12090 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 12091
de59072a
AS
120922009-09-24 Andreas Schwab <schwab@redhat.com>
12093
12094 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12095
a489517b
JB
120962009-09-24 Juanma Barranquero <lekktu@gmail.com>
12097
12098 * dired.c (Fdirectory_files): Fix typo in docstring.
12099
0592970c
AR
121002009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12101
12102 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12103 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12104 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12105 under GNUstep.
12106 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12107
12108 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12109 glyph advancement.
12110
48e8a88b
AR
121112009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12112
12113 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 12114 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
12115
12116 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12117 deleted (bug #4492).
12118
e14f0a78
AR
12119 * nsfont.m (Vns_reg_to_script): New lisp variable.
12120 (syms_of_nsfont): Declare it.
12121 (ns_registry_to_script): New function.
12122 (ns_get_req_script): Call it.
12123 (ns_findfonts): Don't give up on non-unicode registry.
12124
12125 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12126
5b650faa
SM
121272009-09-20 Tom Tromey <tromey@redhat.com>
12128
12129 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12130 batch mode (bug#4228).
12131
a489517b 121322009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
12133
12134 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 12135 carefully. (Bug #4339)
0bae4e09 12136
fcfe06f3
CY
121372009-09-18 Chong Yidong <cyd@stupidchicken.com>
12138
d798ba87 12139 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 12140
31642728
AR
121412009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12142
12143 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
12144 (main) [HAVE_NS]: Don't process --no-init-file option.
12145 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
12146
12147 * nsterm.h (ns_no_defaults): Remove.
12148
12149 * nsterm.m (ns_no_defaults): Remove.
12150 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12151 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
12152 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12153 don't update the NSWindow itself.
bba3e508
SM
12154 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12155 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
12156
12157 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12158 ns_use_qd_smoothing.
12159
12160 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12161 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 12162 (x-close-connection): Drop PSFlush() under OS X.
a489517b 12163 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 12164
8686ac71
JB
121652009-09-17 Juanma Barranquero <lekktu@gmail.com>
12166
12167 * emacs.c (inhibit_x_resources): New variable.
12168 (main) [HAVE_NS]: Don't process --quick command line option.
12169 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12170
12171 * lisp.h (inhibit_x_resources): Declare it extern.
12172
12173 * w32reg.c (x_get_string_resource):
12174 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12175
e227ba05
EZ
121762009-09-17 Eli Zaretskii <eliz@gnu.org>
12177
362654a6
JB
12178 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12179 Add lisp/term/internal.elc.
e227ba05 12180
742d40e8
SM
121812009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12182
12183 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12184 (bug#4461).
12185
005bd5a2
DN
121862009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12187
12188 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12189
12190 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12191 (OBJECTS_MACHINE): Remove, unused.
12192
f9af9719
SM
121932009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12194
12195 * frame.c (x_get_resource_string): Remove unused.
12196
0307c7d2
JD
121972009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12198
12199 * xterm.c (x_new_font): Call change_frame_size before calling
12200 x_set_window_size, in case frame size won't change.
12201
12202 * frame.c (x_set_font): Remove dead code.
12203
428b13d6
SM
122042009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12205
12206 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12207
5766c380
SM
122082009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12209
12210 * lread.c (Fload): Don't output a message after loading an obsolete
12211 package any more (done in Lisp now).
12212
2fd0161b
CY
122132009-09-12 Chong Yidong <cyd@stupidchicken.com>
12214
12215 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12216
bc5e75b6
SM
122172009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12218
12219 * keymap.c (Fwhere_is_internal): Use nconc2.
12220
c31c985e
AM
122212009-09-11 Alan Mackenzie <acm@muc.de>
12222
12223 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12224 batch mode.
12225
78012bd2
AS
122262009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12227
12228 * xdisp.c (display_mode_element): Detect cycles.
12229
9d889332
SM
122302009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12231
12232 * keymap.c (where_is_internal): Don't erroneously return nil right after
12233 filling the cache.
12234 (where_is_internal_1): Fix up typo.
12235
7ab5d780
GM
122362009-09-11 Glenn Morris <rgm@gnu.org>
12237
12238 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12239 share a common doc-string.
12240
5238a749
SM
122412009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12242
66d77eda
SM
12243 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12244 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12245
5238a749
SM
12246 * keymap.c (QCadvertised_binding): New constant.
12247 (syms_of_keymap): Initialize it.
12248 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12249 if applicable.
12250
19f48442
SM
122512009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12252
50d4ba39
SM
12253 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12254 (parse_menu_item): Streamline since bindings are recomputed all the
12255 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12256 more and don't support lmenu's menu-alias any more either.
12257
a88a5372
SM
12258 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12259 (where_is_internal): Strip it down to only traverse the keymaps.
12260 Move the cache handling from Fwhere_is_internal to here.
12261 (Fwhere_is_internal): Move the handling of remapping and the choice of
12262 the best binding from where_is_internal to here.
12263 Unify the cached/noncached paths, so remapping is also handled
12264 correctly when the cache is used, and so the cache can be used to
12265 speed up remap-handling when applicable.
12266 Give preference to non-remapped bindings.
12267 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12268 non-remapped bindings.
12269 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12270 command remapping.
12271
19f48442
SM
12272 * xdisp.c (display_mode_element): Move list length limit from 50 to
12273 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12274
599498c3 122752009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
12276
12277 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12278
f9b7b5ac
SM
122792009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12280
a53af587
JB
12281 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12282 (Bug#4334)
12283
f9b7b5ac
SM
12284 * keymap.c (where_is_internal): Filter out shadowed remappings.
12285 Assume that where_is_internal returns unshadowed bindings to simplify
12286 the code and get rid of the gotos. Use ASIZE.
12287
04f4b72d
JD
122882009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12289
4da146f2
JD
12290 * xterm.c (x_focus_changed): If we get a focusout and pointer
12291 is invisible, make it visible.
12292
04f4b72d
JD
12293 * xterm.h: Remove condition for declaration of
12294 x_*_window_to_frame.
12295
7cef7ce3
SM
122962009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12297
12298 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12299 initial terminal as well.
12300
a54fa5b7
JD
123012009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12302
12303 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 12304 x_menubar_window_to_frame.
a54fa5b7 12305
50426a04 12306 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
12307 (XTmouse_position): Do not return valid positions
12308 for clicks in the menubar and the toolbar for Gtk+.
12309
12310 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12311 if the widget for the event has the same top level as a frame,
12312 return the frame.
12313 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12314 internal windows, bug #4122.
12315 (x_non_menubar_window_to_frame): Remove.
12316
5a021dd0
GM
123172009-09-02 Glenn Morris <rgm@gnu.org>
12318
12319 * buffer.c (default-major-mode): Move most of the doc from here...
12320 (major-mode): ... to here.
12321
548fe2f3
NR
123222009-08-30 Nick Roberts <nickrob@snap.net.nz>
12323
12324 * process.c (wait_reading_process_output): Keep the descriptor
12325 when pty is used by a non-child process, e.g., in I/O buffer of
12326 GDB this allows inferior to be restarted.
12327
e0840eef
EZ
123282009-08-29 Eli Zaretskii <eliz@gnu.org>
12329
12330 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12331 both branches into one.
12332
82e98df4
SM
123332009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12334
12335 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12336 (main): Use enable-multibyte-characters rather than
12337 default-enable-multibyte-characters. Output a warning message when
12338 running a unibyte session.
12339
890617cb
YM
123402009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12341
12342 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12343 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12344 (copy_data_segment): Also copy __program_vars section.
12345 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12346 (dump_it) [LC_DYLD_INFO]: Use it.
12347
12348 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12349
e7adeadc
EZ
123502009-08-28 Eli Zaretskii <eliz@gnu.org>
12351
12352 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12353 $(SRC)/buildobj.h.
ef1b0ba7 12354 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
12355 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12356 $(SRC)/buildobj.h.
12357 (clean): Add buildobj.h.
12358
3ed8bbdc
TZ
123592009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12360
12361 * print.c (print_object): Set escapeflag to 1 when printing
12362 hashtable keys and values.
12363
155a6764
SM
123642009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12365
12366 * lread.c (read_integer): Use doubles (and potentially return a float
12367 number) as we do in string-to-number.
12368 (read1): Use strtol to read integers, signal errors on strtol's
12369 overflow and use floats if strtol's output is too large for
12370 Elisp integers.
12371
877610de
EZ
123722009-08-27 Eli Zaretskii <eliz@gnu.org>
12373
12374 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12375 (make-buildobj-SH): Fix last change.
12376 (SRC): Move to before where it's first used.
12377
ef73e7be
KH
123782009-08-27 Kenichi Handa <handa@m17n.org>
12379
550c8289
KH
12380 * process.c (send_process): Use encode_coding_object instead of
12381 encode_coding_string to perform eol-conversion even if the string
12382 is unibyte.
12383
60afa08d
KH
12384 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12385 character.
12386
ef73e7be 12387 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 12388 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 12389
7b3a82d7
DN
123902009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12391
5654bf63
DN
12392 * callproc.c (Fcall_process): Remove always true #if.
12393
7b3a82d7
DN
12394 * lisp.h: Replace #if 0 code for checking with text pointing to
12395 the --enable-checking configure flag.
12396
12397 * emacs.c (main): Mention the --enable-profiling configure flag
12398 instead of using CFLAGS.
12399
878bde49
KR
124002009-08-26 Ken Raeburn <raeburn@raeburn.org>
12401
12402 * Makefile.in (buildobj.h): New target.
12403 (doc.o): Depend on it.
12404 (temacs${EXEEXT}): Don't generate buildobj.lst.
12405 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12406 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12407 ($(BLD)/doc.$(O)): Depend on it.
12408 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12409 provided by Eli Zaretskii.)
12410 ($(TEMACS)): Don't generate buildobj.lst.
12411 * doc.c: Include buildobj.h.
12412 (buildobj): New static variable.
12413 (Fsnarf_documentation): Use it, instead of opening and reading
12414 buildobj.lst.
12415
1574224c
MA
124162009-08-25 Michael Albinus <michael.albinus@gmx.de>
12417
12418 * dbusbind.c (Fdbus_call_method)
12419 (Fdbus_call_method_asynchronously): Use English numeric format for
12420 timeout values in doc string.
12421
d9da2f45
KH
124222009-08-25 Kenichi Handa <handa@m17n.org>
12423
ef73e7be
KH
12424 * alloc.c (mark_char_table): New function.
12425 (mark_object): Use mark_char_table for a char-table.
12426
d9da2f45
KH
12427 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12428 (CHAR_TABLE_REF): Use it.
12429
c8edcc01
KR
124302009-08-23 Ken Raeburn <raeburn@raeburn.org>
12431
12432 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12433 before invoking the newly build emacs to check for load-path
12434 shadowing.
12435
7763401b
GM
124362009-08-22 Glenn Morris <rgm@gnu.org>
12437
12438 * Makefile.in (bootstrap_exe): New variable.
12439 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12440 Use ${bootstrap_exe}.
12441
729eadda
EZ
124422009-08-22 Eli Zaretskii <eliz@gnu.org>
12443
12444 * coding.h (encode_coding_string): Don't encode unibyte strings.
12445 (Bug#4047)
12446
eb4c6ace
MA
124472009-08-22 Michael Albinus <michael.albinus@gmx.de>
12448
12449 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12450
12451 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12452 intended as hotfix only.
12453 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12454
36e34d1b
AR
124552009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12456
12457 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
12458 change, and clean up loose ends in the code left by it.
12459 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
12460 yet another X11 format (rgb:r/g/b) for compatibility.
12461 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12462 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12463
f983eb8a
SM
124642009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12465
12466 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12467
3f56d3c6
MA
124682009-08-20 Michael Albinus <michael.albinus@gmx.de>
12469
12470 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12471 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12472 (xd_initialize, xd_pending_messages): Check, whether
12473 $DBUS_SESSION_BUS_ADDRESS is set.
12474
fb641d68
YM
124752009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12476
12477 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12478
12479 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12480
cf59a374
GM
124812009-08-20 Glenn Morris <rgm@gnu.org>
12482
12483 * emacs.c (system-type): Doc fix.
12484
1373f3be
SM
124852009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12486
12487 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12488 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12489
058ed861
MA
124902009-08-18 Michael Albinus <michael.albinus@gmx.de>
12491
1373f3be
SM
12492 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12493 New functions.
058ed861
MA
12494 (xd_initialize): Revert change from 2009-08-16.
12495
563a866e 124962009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
12497
12498 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 12499 font-group vector, return nil.
5fc05db0 12500
e42bdf01
CY
125012009-08-17 Chong Yidong <cyd@stupidchicken.com>
12502
12503 * process.c (status_notify): Don't perform redisplay.
12504 (Fdelete_process, list_processes_1, process_send_signal):
12505 Expliticly perform redisplay.
12506 (wait_reading_process_output): Always check process status, but
12507 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12508
4230ab74
KR
125092009-08-17 Ken Raeburn <raeburn@raeburn.org>
12510
1373f3be 12511 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
12512 (XFLOAT_INIT): New macro for storing a float value.
12513 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12514 * fns.c (sxhash): Copy out the value of a float in order to
12515 examine its bytes.
12516 * dbusbind.c (xd_append_arg): Likewise.
12517
4230ab74
KR
12518 * emacs.c (main): Don't call syms_of_data twice.
12519
a0645cdd
MA
125202009-08-16 Michael Albinus <michael.albinus@gmx.de>
12521
12522 * dbusbind.c (xd_initialize): Add connection file descriptor to
12523 input_wait_mask, in order to let select() detect, whether a new
12524 message has been arrived.
ca4f31ea 12525 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 12526
485db0ba
MA
125272009-08-15 Michael Albinus <michael.albinus@gmx.de>
12528
1373f3be
SM
12529 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12530 New functions.
485db0ba
MA
12531
12532 * lisp.h (xd_pending_messages): Declare.
12533
12534 * keyboard.c (readable_events): Call xd_pending_messages.
12535
b5b98ff4
CY
125362009-08-15 Chong Yidong <cyd@stupidchicken.com>
12537
1373f3be 12538 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 12539
f8354c6e
CY
12540 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12541
b5b98ff4
CY
12542 * buffer.c (set_buffer_internal_1)
12543 (swap_out_buffer_local_variables): Check for unbound local
12544 variables (Bug#4138).
12545
8b9fc636
EZ
125462009-08-14 Eli Zaretskii <eliz@gnu.org>
12547
12548 * process.c (create_pty): Fix last change.
12549
ce959360
CY
125502009-08-13 Chong Yidong <cyd@stupidchicken.com>
12551
12552 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
12553 (xbm_load_image): Caller changed.
64b807c9 12554 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 12555
c7baf7e9
NR
125562009-08-13 Nick Roberts <nickrob@snap.net.nz>
12557
12558 * process.c (create_pty): New function.
12559 (Fstart_process): Use it to allow Emacs to just associate a pty
12560 with the buffer. See associated change in gdb-mi.el.
12561 (list_processes_1): Deal with no program name.
12562 (start_process_unwind): Use pid == -2 to mean no process.
12563
1ac9108a
SM
125642009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
12565
12566 * cmds.c (nonundocount): New global variable.
12567 (keys_of_cmds): Initialize it.
12568 (Fself_insert_command): Use it to combine upto 20 sequential chars
12569 into a single undo entry, just like the Qself_insert_command code in
12570 keyboard.c does.
12571 Call frame_make_pointer_invisible, also like the Qself_insert_command
12572 code in keyboard.c does.
12573 * keyboard.c (command_loop_1): Use the new global nonundocount rather
12574 than its own local replacement for it.
12575
e267324c
KR
125762009-08-10 Ken Raeburn <raeburn@raeburn.org>
12577
1ac9108a 12578 * fns.c (concat): Don't re-set string length to its current value.
77437343 12579
1ac9108a
SM
12580 * coding.h (decode_coding_string, encode_coding_string):
12581 Use SBYTES macro.
f0bed503 12582
1ac9108a 12583 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
12584 (doprnt): Merge with doprnt1, discarding lispstrings code.
12585 * lisp.h (doprnt_lisp): Don't declare.
12586
416e006d
JL
125872009-08-07 Juri Linkov <juri@jurta.org>
12588
12589 * puresize.h (BASE_PURESIZE): Increase to 1270000.
12590
6f7d5780
DN
125912009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12592
12593 * print.c (syms_of_print): Undo previous change.
12594
f19a0f5b
TZ
125952009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
12596
12597 * lread.c (read1, syms_of_lread): Read hashtables back from the
12598 readable format.
12599
12600 * print.c (print_preprocess, print_object): Print hashtables fully
12601 and readably.
12602 (syms_of_print): Provide 'hashtable-print-readable.
12603
b9173dc2
AR
126042009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12605
12606 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
12607 no family set.
12608 (nsfont_open): Handle case when entity has no family.
12609
1586503c
AR
126102009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12611
12612 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
12613 element, not a list, for match case.
12614
087048cd
KH
126152009-07-28 Kenichi Handa <handa@m17n.org>
12616
12617 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
12618 rigidly.
12619
12620 * xfont.c (xfont_list_pattern): Don't ignore the return value of
12621 font_parse_xlfd. Check font properties more rigidly.
12622
780c2506
DN
126232009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12624
31fd7c5c
JB
12625 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
12626 bsd-common.h.
780c2506 12627
a8c0cc18
KH
126282009-07-27 Kenichi Handa <handa@m17n.org>
12629
12630 * xfaces.c (face_with_height): Call font_clear_prop.
12631
4fbe2306
CY
126322009-07-26 Chong Yidong <cyd@stupidchicken.com>
12633
111d9af3
CY
12634 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
12635
12636 * xterm.c (x_term_init): Use Qx.
12637
4fbe2306
CY
12638 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
12639
1ac9108a 12640 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
12641 (ns_get_color): Revert 2009-07-16 change.
12642
beb0b7f9
EZ
126432009-07-25 Eli Zaretskii <eliz@gnu.org>
12644
12645 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 12646 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 12647
2baf5e76
KR
126482009-07-25 Ken Raeburn <raeburn@raeburn.org>
12649
1ac9108a
SM
12650 * coding.h (decode_coding_string, encode_coding_string):
12651 Use SCHARS macro.
8890e5f5 12652
2baf5e76 12653 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 12654 (load_depth): Delete.
2baf5e76
KR
12655 (Qload_in_progress): New variable.
12656 (load_unwind): Don't reference load_depth or load_in_progress.
12657 (Fload): Likewise; specbind Qload_in_progress instead.
12658 (init_lread): Don't initialize load_depth.
12659 (syms_of_lread): Initialize and protect Qload_in_progress.
12660
1395c6f5
AR
126612009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12662
12663 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
12664
4e2f36cf
AR
126652009-07-23 Yavor Doganov <yavor@gnu.org>
12666
12667 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
12668
5dd9a6f7
AR
126692009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12670
12671 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
12672 Bugs 3792, 3720, 2402.
12673 (ns_lookup_indexed_color): Check for bad index.
12674 (ns_index_color): Init unused slot to 0.
12675 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
12676 Bug 3714, possibly 3082.
5dd9a6f7 12677
c902b920
JR
126782009-07-22 Jason Rumney <jasonr@gnu.org>
12679
1ac9108a
SM
12680 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
12681 Position IME window at cursor (Bug#2570).
c902b920
JR
12682 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
12683 (globals_of_w32fns): Dynamically load functions required above.
12684
12685 * w32term.c (w32_draw_window_cursor): Send message to reposition
12686 any IME window.
12687
090101cf
CY
126882009-07-21 Chong Yidong <cyd@stupidchicken.com>
12689
12690 * fileio.c: Revert 2009-07-16 changes.
12691 (Vauto_save_include_big_deletions): New variable.
12692 (Fdo_auto_save): Disable auto-save only if
12693 auto-save-include-big-deletions is nil.
12694
e6583e3d
CY
126952009-07-21 Chong Yidong <cyd@stupidchicken.com>
12696
12697 * xdisp.c (move_it_to): For continued lines ending in a tab, take
12698 the overflowed pixels into account (Bug#3879).
12699
ece435a5
KR
127002009-07-21 Ken Raeburn <raeburn@raeburn.org>
12701
12702 * lread.c (load_depth): New variable.
12703 (Fload, load_unwind, init_lread): Set it to the load recursion
12704 depth; set load_in_progress as a simple boolean based on the
12705 current load_depth. (Bug#3892)
12706
40b2d973
AR
127072009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12708
12709 * nsfont.m (ns_has_attribute): Remove.
12710 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
12711
10be7e0d
JL
127122009-07-18 Juri Linkov <juri@jurta.org>
12713
12714 * process.c (Fset_process_query_on_exit_flag): Mention killing
12715 a buffer in docstring.
12716
fa055055
KH
127172009-07-17 Kenichi Handa <handa@m17n.org>
12718
12719 * casetab.c (shuffle): Fix the logic of setting up the cycle.
12720
042f7b69
YM
127212009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12722
12723 * nsfns.m (Fns_set_alpha): Remove function.
12724 (syms_of_nsfns): Don't defsubr it.
12725
12726 * nsterm.m (ns_get_color): Remove incompatible color formats.
12727 (ns_color_to_lisp): Generate #rrggbb color format string.
12728
4be941e3
RS
127292009-07-16 Richard Stallman <rms@gnu.org>
12730
12731 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
12732 (Fset_buffer_auto_saved): Handle save_length = -2.
12733
4e6b227d
CY
127342009-07-16 Chong Yidong <cyd@stupidchicken.com>
12735
12736 * xterm.c (Qx_gtk_map_stock): New var.
12737
12738 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
12739 of calling intern each time.
12740
a1856973
YM
127412009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12742
12743 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
12744 does tiling.
12745
12746 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12747
497e54d8
KH
127482009-07-14 Kenichi Handa <handa@m17n.org>
12749
72d36834
KH
12750 * font.c (font_vconcat_entity_vectors): New function.
12751 (struct font_sort_data): New member font_driver_preference.
12752 (font_compare): Check font_driver_preference.
12753 (font_sort_entities): The format of the first argument changed.
12754 (font_delete_unmatched): Likewise.
12755 (font_list_entities): The return type changed.
12756 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
12757 (font_find_for_lface): Adjuste for the above changes.
12758 Don't suppress the checking of C even if the repertory supports it.
12759 (Flist_fonts): Adjust for the above changes.
72d36834 12760
1ac9108a
SM
12761 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12762 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
12763 Reject a font who has adstyle property that is different from a
12764 langname derived from registry property.
1ac9108a 12765 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 12766
b6046155
EZ
127672009-07-13 Eli Zaretskii <eliz@gnu.org>
12768
12769 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12770 local copy of dirfilename.
12771
fb6b6049
KH
127722009-07-13 Kenichi Handa <handa@m17n.org>
12773
e2402a5e
KH
12774 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12775 against max_char.
12776
fb6b6049
KH
12777 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12778 calling XSYMBOL (sym).
12779
65156807
EZ
127802009-07-11 Eli Zaretskii <eliz@gnu.org>
12781
1ac9108a
SM
12782 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
12783 New function.
12784 (directory_files_internal) [WINDOWSNT]:
12785 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
12786 the filesystem of the directory is fast or slow.
12787
12788 * w32.c (logon_network_drive): Don't assume PATH is an absolute
12789 file name.
12790 (is_slow_fs): New function.
12791 (stat): Use it to determine whether to issue more system calls to
12792 get accurate file attributes, when w32-get-true-file-attributes is
12793 `local'.
12794
e0ab5fcf
JD
127952009-07-10 Jan Djärv <jan.h.d@swipnet.se>
12796
12797 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 12798 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
12799 parameter font-parameter as default to the font dialog.
12800
784ceded
KH
128012009-07-10 Kenichi Handa <handa@m17n.org>
12802
12803 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
12804
fb8edc0b
EZ
128052009-07-09 Eli Zaretskii <eliz@gnu.org>
12806
1ac9108a 12807 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 12808
fb8edc0b
EZ
12809 * w32.c (stat): Treat UNC file names as residing on remote
12810 drives. (Bug#3542)
12811
635c75b1
KH
128122009-07-09 Kenichi Handa <handa@m17n.org>
12813
12814 * fontset.c (fontset_find_font): Fix previous change.
12815
c1d5ce94
MA
128162009-07-08 Michael Albinus <michael.albinus@gmx.de>
12817
12818 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
12819 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
12820 error flag.
12821
edb61b39
KH
128222009-07-08 Kenichi Handa <handa@m17n.org>
12823
374bf7e4
KH
12824 * fontset.c (fontset_find_font): Fix the logic of handling
12825 charset_matched.
12826 (font_for_char): Delete unused var.
12827 (generate_ascii_font_name): Delete it.
12828
edb61b39
KH
12829 * coding.h (JIS_TO_SJIS2): Fix the code range check.
12830
12831 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
12832 (encode_coding_sjis): Fix the code range check.
12833
0f3f018c
CY
128342009-07-07 Chong Yidong <cyd@stupidchicken.com>
12835
12836 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
12837 (Fexpand_file_name): Copy string data properly (Bug#3772).
12838
fcaf6f3a
JD
128392009-07-07 Jan Djärv <jan.h.d@swipnet.se>
12840
12841 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
12842 first MapNotify.
12843
6809ca75
KH
128442009-07-07 Kenichi Handa <handa@m17n.org>
12845
12846 * character.h (unibyte_has_multibyte_table): Delete extern.
12847 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
12848
12849 * charset.c (Fset_charset_priority): Update charset_unibyte.
12850 (syms_of_charset): Initialize charset_unibyte.
12851
12852 * character.c (unibyte_has_multibyte_table): Delete it.
12853 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
12854 charset_unibyte.
12855 (multibyte_char_to_unibyte_safe): Likewise.
12856 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
12857
1ac9108a 12858 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
12859 (x_produce_glyphs): Likewise.
12860
12861 * .gdbinit (xcharset): Fix the treating $arg0.
12862
ad9e2d54
EZ
128632009-07-04 Eli Zaretskii <eliz@gnu.org>
12864
12865 Emulation of `getloadavg' on MS-Windows.
50426a04 12866 * w32.c: Include float.h.
ad9e2d54
EZ
12867 (g_b_init_get_native_system_info, g_b_init_get_system_times)
12868 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
12869 (get_native_system_info, get_system_times): New functions.
12870 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
12871 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
12872 (globals_of_w32): Initialize g_b_init_get_native_system_info,
12873 g_b_init_get_system_times, and num_of_processors.
12874
0a3472c7
JR
128752009-07-03 Jason Rumney <jasonr@gnu.org>
12876
12877 * w32term.c (w32_initialize): Use standard types.
12878
80904120
EZ
128792009-07-03 Eli Zaretskii <eliz@gnu.org>
12880
12881 * dired.c (Ffile_attributes): Decode user and group names by the
12882 locale's encoding. (Bug#3443)
12883
6978862d
DN
128842009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12885
f8d23104
DN
12886 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12887 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12888
12889 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12890
12891 * term.c (init_tty): Remove spurious #ifdef.
12892
6978862d
DN
12893 * m/mips.h: Mention this file is also used for netbsd.
12894 * m/pmax.h: Remove file.
12895
e044e4fc
JD
128962009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12897
12898 * xterm.h (struct x_display_info): Add invisible_cursor.
12899 (struct x_output): Add current_cursor.
12900
12901 * xterm.c (XTtoggle_invisible_pointer): New function.
12902 (x_define_frame_cursor): Don't define cursor if invisible or the
12903 same as before. Set current_cursor.
12904 (x_create_terminal): Set toggle_invisible_pointer_hook.
12905
12906 * xfns.c (make_invisible_cursor): New function.
12907 (x_set_mouse_color): Call make_invisible_cursor.
12908 Set current_cursor.
12909 (x_window): Set current_cursor.
12910
12911 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12912
12913 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12914 inserting a character.
12915 (read_avail_input): Call frame_make_pointer_visible.
12916
12917 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
12918 (frame_make_pointer_invisible, frame_make_pointer_visible):
12919 New functions.
e044e4fc
JD
12920 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12921
12922 * frame.h: Declare frame_make_pointer_invisible and
12923 frame_make_pointer_visible.
12924 (struct frame): Add pointer_invisible.
12925
574c8efa
JD
129262009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12927
7b507248
JD
12928 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12929 frame isn't visible.
12930 (xg_frame_resized): If width/height is -1, get size of window
12931 from X server.
12932
12933 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12934 for MapNotify.
12935
835bdaa7 12936 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 12937 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 12938 (flush_and_sync): Reintroduce.
574c8efa 12939
3f1c6666 129402009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 12941
31fd7c5c 12942 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
12943
12944 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12945 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12946
12947 * frame.h: Declare Qsticky.
12948
cad9ef74
JD
12949 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12950
12951 * nsfns.m (ns_frame_parm_handlers): Ditto.
12952
12953 * frame.c: Declare Qsticky.
12954 (frame_parms): Add sticky.
12955
12956 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
12957
12958 * xterm.h: Declare x_set_sticky.
12959
12960 * xterm.c (x_set_sticky): New function.
12961
69b16610
JD
12962 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
12963 (xg_tool_bar_menu_proxy): Attach enter/leave events to
12964 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
12965
12966 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
12967
12968 * frame.c: Qmaximized is new.
12969 (x_set_frame_parameters): Do not handle fullscreen specially.
12970 Only set width and height if explicitly set.
12971 (x_set_fullscreen): Handle Qmaximized.
12972 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
12973 (syms_of_frame): Initialize Qmaximized.
12974
1ac9108a
SM
12975 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
12976 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
12977
12978 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
12979 for Expose event. Add call to x_check_fullscreen for MapNotify event.
12980 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
12981 set gravity to NorthWestGravity when USE_GTK.
12982 (set_wm_state): New function.
31fd7c5c 12983 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
12984 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
12985 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 12986 or the case when no window manager is running. That means remove calls
3f1c6666
JD
12987 to x_real_positions and x_fullscreen_adjust.
12988
12989 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
12990 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
12991 flush_and_sync.
12992 (xg_height_changed): New function.
12993 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
12994 and gtk_window_set_policy. Set frame gravity after parsing the
12995 geometry string.
3f1c6666
JD
12996 (xg_update_frame_menubar, free_frame_menubar)
12997 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12998 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
12999 Remove calls to xg_frame_set_char_size.
13000
fd503d99
KH
130012009-07-01 Kenichi Handa <handa@m17n.org>
13002
13003 * keyboard.c (decode_keyboard_code): New function.
13004 (tty_read_avail_input): Decode the input bytes if necessary.
13005
1ac9108a
SM
13006 * coding.c (setup_coding_system):
13007 Initialize coding->carryover_bytes to 0.
fd503d99
KH
13008 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13009 use Qno_conversion.
13010
24ed93fb
YM
130112009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13012
13013 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13014
99061dfc
CY
130152009-06-30 Chong Yidong <cyd@stupidchicken.com>
13016
1ac9108a 13017 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 13018
ff90fbde
JR
130192009-06-30 Jason Rumney <jasonr@gnu.org>
13020
13021 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13022 is already loaded.
13023 Set user model ID if supported (bug#1849).
13024
5f445726
JM
130252009-06-29 Jim Meyering <meyering@redhat.com>
13026
13027 Remove useless if-before-xfree test.
13028 * nsfont.m (nsfont_close): Remove useless test.
13029 * term.c (delete_tty): Likewise.
13030 * w32.c (system_process_attributes): Likewise.
13031 * w32font.c (w32font_close): Likewise.
13032 * xfaces.c (x_free_gc): Likewise.
13033 * xselect.c (buffer): Likewise.
13034
b9607587
AS
130352009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13036
13037 * process.c (send_process): Keep decoded string in a local
13038 variable and protect it from GC. (Bug#3521)
13039
89ba96f4
EZ
130402009-06-28 Eli Zaretskii <eliz@gnu.org>
13041
13042 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13043 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13044
098a1589
CY
130452009-06-28 Chong Yidong <cyd@stupidchicken.com>
13046
485422be
CY
13047 * xdisp.c (start_display, handle_face_prop)
13048 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
13049 (redisplay_window, try_window_id, produce_image_glyph):
13050 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 13051
098a1589
CY
13052 * xterm.c (x_update_window_begin, x_new_focus_frame)
13053 (x_scroll_bar_handle_click, handle_one_xevent)
13054 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13055 (x_make_frame_visible, x_make_frame_invisible)
13056 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13057 code chunks that are now obsolete.
13058
78c38319
MA
130592009-06-28 Michael Albinus <michael.albinus@gmx.de>
13060
13061 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13062 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13063 for hours, when optimzation is enabled.
13064 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13065 (xd_read_message): Make them static.
13066
4189ed40
CY
130672009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13068
13069 * term.c (turn_on_face): Allow simultaneously bold and dim
13070 terminal faces (Bug#3530).
13071
cd9b5e16
CY
130722009-06-27 Chong Yidong <cyd@stupidchicken.com>
13073
4e23bedb
CY
13074 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13075
cd9b5e16
CY
13076 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13077 truncation glyphs (Bug#3686).
13078
07cc3c35
GM
130792009-06-27 Glenn Morris <rgm@gnu.org>
13080
13081 * m/pmax.h: Restore file, with only netbsd portions.
13082
31fd7c5c 130832009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 13084
cd9b5e16 13085 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 13086
42d4a64f
KH
130872009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13088
13089 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13090 the arg FORCE_SYMBOL.
13091
930fe55b 130922009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
13093
13094 * fontset.c (fontset_find_font): When a usable rfont_def is found
13095 in a fallback font-group, make it the first element of the group.
13096
57ebc3fd
CY
130972009-06-24 Chong Yidong <cyd@stupidchicken.com>
13098
13099 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13100
f084f942
KH
131012009-06-24 Kenichi Handa <handa@m17n.org>
13102
13103 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13104 set for C.
13105 (fontset_font): Record the availability of a font for C both in
13106 the realized fontsets of the current one and the default one.
13107
2f686c87
DN
131082009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13109
13110 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13111 conditional, it is always defined on AIX.
13112
666e158e
MB
131132009-06-23 Miles Bader <miles@gnu.org>
13114
13115 * window.c (Vrecenter_redisplay): New variable.
13116 (syms_of_window): Initialize it.
13117 (Qtty): New extern declaration.
13118 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13119
c6da7cd2
JM
131202009-06-23 Jim Meyering <meyering@redhat.com>
13121
1ac9108a
SM
13122 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13123 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 13124 pointer dereferences are guaranteed to be valid.
c6da7cd2 13125
678dca3d
KH
131262009-06-23 Kenichi Handa <handa@m17n.org>
13127
74d75424
KH
13128 * emacs.c (main): Call init_font ().
13129
13130 * font.h (Vfont_log): Extern it.
13131 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13132
13133 * font.c (font_sort_entities, font_list_entities)
13134 (font_matching_entity, font_open_entity)
13135 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13136 (Vfont_log): Delete static.
13137 (font_log_env_checked): Delete this variable.
13138 (font_add_log): Don't check font_log_env_checked.
13139 (font_deferred_log): Check Vfont_log.
13140 (init_font): New function.
13141
678dca3d
KH
13142 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13143
13144 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13145
13146 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13147
13148 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13149
13150 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13151 (face_for_char): Don't call font_deferred_log here.
13152 (font_for_char): Likewise.
13153
8a668709
CY
131542009-06-22 Chong Yidong <cyd@stupidchicken.com>
13155
9a01ee33
CY
13156 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13157 rather than its background_width for drawing the overline and
13158 underline (Bug#489).
13159
13160 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13161 rather than its background_width for drawing the overline and
13162 underline (Bug#489).
ec7c9926
CY
13163 (xg_default_icon_file): New variable.
13164 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13165 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 13166
8a668709
CY
13167 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13168 (load_overlay_strings): Remove externs.
13169 (fast_find_position): Function deleted.
13170 (mouse_face_from_buffer_pos): New function, based on
13171 fast_find_position. Correctly handle before-strings,
13172 display-strings, and after-strings (Bug#1220).
13173 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13174
4d4c02d8
CY
131752009-06-21 Chong Yidong <cyd@stupidchicken.com>
13176
1ac9108a 13177 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
13178 (move_it_in_display_line_to, move_it_in_display_line_to)
13179 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13180
70243478
CY
131812009-06-21 Chong Yidong <cyd@stupidchicken.com>
13182
13183 * Branch for 23.1.
13184
13087e59
JR
131852009-06-21 Jason Rumney <jasonr@gnu.org>
13186
13187 * w32term.c (keyboard_codepage): New static variable.
13188 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13189 (w32_read_socket) [WM_CHAR]: Use it to decode character
13190 input (bug#3237).
13191 (w32_initialize): Initialize it.
13192 (codepage_for_locale): New function.
13193
4735b74e
KR
131942009-06-20 Ken Raeburn <raeburn@raeburn.org>
13195
13196 * process.c (status_message): Pass Faset index argument as a lisp
13197 object, so as to work with USE_LISP_UNION_TYPE.
13198
0e727afa
YM
131992009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13200
13201 * coding.c (Ffind_coding_systems_region_internal):
13202 Cache checked characters.
13203
cf299835
KH
132042009-06-18 Kenichi Handa <handa@m17n.org>
13205
1ac9108a 13206 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 13207
90f20d94
AS
132082009-06-18 Andreas Schwab <aschwab@redhat.com>
13209
13210 * xdisp.c (redisplay_internal): Check that the frame is still
13211 live after redisplay of its windows.
13212 (redisplay_windows): Check that the window is still live.
13213
7f1faf1c
KH
132142009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13215
13216 * coding.c (detect_coding_utf_16): Fix previous change.
13217
cc13543e
KH
132182009-06-16 Kenichi Handa <handa@m17n.org>
13219
13220 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13221 UTF-16 by checking the dispersion of Eth and Oth bytes.
13222
977b85f4
AS
132232009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13224
13225 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13226
66bd43d1
KH
132272009-06-15 Kenichi Handa <handa@m17n.org>
13228
13229 * process.c (status_message): Fix previous change. Be sure to
13230 decode a localized string.
13231
cb5ca9c5
YM
132322009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13233
13234 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13235 add comment explaining why.
13236
ec7709ba 132372009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 13238
ec7709ba 13239 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 13240
4b7f335c
AR
132412009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13242
13243 * nsfont.m (ns_attribute_value): Remove.
13244 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13245 (ns_has_attribute): Shrink the normal range.
13246 (ns_findfonts): Don't worry about requested spec in determining
13247 need for synthItal.
e41820ee 13248 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 13249
73b26103
SZ
132502009-06-14 Seiji Zenitani <zenitani@mac.com>
13251
13252 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13253
5753e4da
KH
132542009-06-11 Kenichi Handa <handa@m17n.org>
13255
13256 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13257 overhang for the static composition case.
13258
3561b671
KH
132592009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13260
5753e4da
KH
13261 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13262 overhang for the automatic composition case.
13263
3561b671
KH
13264 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13265 composition case.
13266
852bbd41
CY
132672009-06-10 Chong Yidong <cyd@stupidchicken.com>
13268
13269 * xdisp.c (get_next_display_element): When handling wrap-prefix
13270 and line-prefix, treat \n as a control character (bug#3502).
13271
9903d1e6
KH
132722009-06-10 Kenichi Handa <handa@m17n.org>
13273
13274 * font.c (font_parse_family_registry): Fix for one-char foundry.
13275 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13276
0bcbaaaa
CY
132772009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13278
13279 * process.c (status_message): Fix handling of multibyte signal
13280 string (Bug#3499).
13281
40aa3f13
JM
132822009-06-09 Jim Meyering <meyering@redhat.com>
13283
1f80c7e2
CY
13284 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13285 color name is missing.
40aa3f13 13286
72d51285
KH
132872009-06-09 Kenichi Handa <handa@m17n.org>
13288
13289 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13290 FROM-CODE and TO-CODE are codepoints of CHARSET.
13291
c1d04d84
AR
132922009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13293
13294 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13295
132962009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13297
13298 Changes to support :script/:lang/:otf in NS font driver.
13299 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13300 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13301 indicate not part of font driver interface, and change callers.
13302 (ns_get_family): Remove pointless null check.
13303 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13304 ns_spec_to_descriptor, ns_descriptor_to_entity.
13305 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13306 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13307 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13308 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13309 (ns_get_req_script, ns_accumulate_script_ranges)
13310 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13311 New functions.
13312 (nsfont_list, nsfont_match): Use ns_findfonts.
13313 (nsfont_open): Use font descriptor instead of traits.
13314 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13315 (dump_glyphstring): Rename to ns_dump_glyphstring.
13316
c7eb9816
AR
13317 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13318
c1d04d84
AR
13319 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13320
13321 * fontset.c (fontset_from_font): Remove NS-specific code.
13322
ec7709ba 133232009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
13324
13325 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13326 nonactive windows.
13327
31fd7c5c 133282009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 13329
1ac9108a 13330 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 13331
68852c13 133322009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
13333
13334 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13335
6756cd1d
CY
133362009-06-07 Chong Yidong <cyd@stupidchicken.com>
13337
13338 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13339 account for the overflowing of newlines into the last glyph on the
13340 display line (Bug#3482).
13341
28bf482a
DR
133422009-06-05 David Reitter <david.reitter@gmail.com>
13343
ec7709ba
JB
13344 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13345 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
13346 Fns_selection_exists_p, Fns_selection_owner_p.
13347
fdb55376
JR
133482009-06-03 Jason Rumney <jasonr@gnu.org>
13349
13350 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13351 available. (Bug#3379)
13352
05129fbe
KH
133532009-05-29 Kenichi Handa <handa@m17n.org>
13354
1ac9108a
SM
13355 * coding.c (get_translation_table):
13356 Check Venable_character_translation.
05129fbe 13357
ec7709ba 133582009-05-26 David Reitter <david.reitter@gmail.com>
15891144 13359
ec7709ba
JB
13360 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13361 (x_make_frame_visible): Move frame to front rather than calling
15891144 13362 ns_raise_frame().
ec7709ba 13363 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 13364 isn't key window.
ec7709ba 13365 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
13366 drawRect may be called by NSView even if the frame is hidden.
13367
ec7709ba
JB
13368 * nsfns.m (Fx_create_frame): Follow other ports in
13369 determining visibility; default to t. Ensure async_visible is set.
15891144 13370
21f73755
EZ
133712009-05-23 Eli Zaretskii <eliz@gnu.org>
13372
13373 * dired.c (Ffile_attributes): Doc fix.
13374
34001e41
CY
133752009-05-22 Chong Yidong <cyd@stupidchicken.com>
13376
13377 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13378
46306a17
SM
133792009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13380
13381 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13382 and xfont_scratch_props.
13383 (syms_of_xfont): Do it here instead.
13384 (xfont_find_ccl_program): Delete, unused.
13385 (xfont_open): Delete unused var `i'.
13386
ef6e0694
KH
133872009-05-21 Kenichi Handa <handa@m17n.org>
13388
13389 * fontset.c (Qlatin): Don't make it static.
13390
46306a17
SM
13391 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13392 New functions.
ef6e0694
KH
13393 (xfont_scripts_cache, xfont_scratch_props): New variables.
13394 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
13395 (xfont_list_pattern): Argument changed. Callers changed.
13396 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
13397 (xfont_list): Don't reject a font spec with :script property.
13398 (xfont_has_char): Fix setting of encoding.
13399 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13400 xfont_scratch_props.
13401
134022009-05-19 Kenichi Handa <handa@m17n.org>
13403
46306a17 13404 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
13405 Callers changed.
13406
134072009-05-18 Kenichi Handa <handa@m17n.org>
13408
13409 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13410
ac71ced7
SM
134112009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13412
13413 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13414 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13415
1c6d1051
YM
134162009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13417
13418 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13419 (x_delete_terminal): Dissociate resource database from display and
13420 then call XrmDestroyDatabase before closing display.
13421
9b9b779c
AR
134222009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13423
13424 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
13425 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13426 whether selected frame is viable before raising it (based on patch
13427 by David Reitter), and improve commentary.
13428 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 13429
cccd42d5
KH
134302009-05-15 Kenichi Handa <handa@m17n.org>
13431
13432 * font.c (Ffont_spec): Check arguments.
13433
337fbd17
CY
134342009-05-14 Chong Yidong <cyd@stupidchicken.com>
13435
13436 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13437 weight when testing attributes (Bug#3282).
13438
47a6002f
JD
134392009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13440
13441 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13442 what we expect to get in the next ConfigureNotify event.
13443
9cb363db
YM
13444 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13445 before Xft one (Bug#1696).
13446
b9126609
CY
134472009-05-07 David Reitter <david.reitter@gmail.com>
13448
13449 * nsfns.m (Fx_display_planes): Compute bitplanes using
13450 NSBitsPerPixelFromDepth (Bug#3207).
13451
27a69fd9
CY
134522009-05-10 Chong Yidong <cyd@stupidchicken.com>
13453
13454 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13455
00f37552
TTN
134562009-05-10 Ulrich Mueller <ulm@gentoo.org>
13457
13458 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13459
2d82a920
DR
134602009-05-07 David Reitter <david.reitter@gmail.com>
13461
ec7709ba
JB
13462 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13463 Respect mouse face background.
2d82a920 13464
46b0d52d
DR
134652009-05-07 David Reitter <david.reitter@gmail.com>
13466
ec7709ba
JB
13467 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13468 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
13469 in ns_update_begin and ns_update_end.
13470
ce1b23bb
SM
134712009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13472
5996e1b7
SM
13473 * nsfns.m (ns_get_screen): Rewrite.
13474 Don't presume selected-frame is of type `ns'.
13475
ba98e3a0
SM
13476 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13477 all drivers.
13478
ce1b23bb
SM
13479 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13480
bcda200f
YM
134812009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13482
13483 * keyboard.h (add_user_signal): Fix typo in extern.
13484
13485 * lisp.h (add_user_signal): Remove extern.
13486
13487 * unexelf.c (unexec): Consider a section to precede the .bss section
13488 if its addresses overlap that of .bss.
13489 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13490 instead of dumping process.
13491
864660a2
SM
134922009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13493
13494 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13495
50da4e56
SM
134962009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13497
13498 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13499
51520a1a
DN
135002009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13501
13502 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13503 any statements.
13504
409ea3a1
AS
135052009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13506
59c4c60f
AS
13507 * process.c (read_process_output): Make sure the current buffer is
13508 always restored.
13509
409ea3a1
AS
13510 * coding.c (record_conversion_result): Don't modify
13511 Vlast_code_conversion_error for successful result.
13512 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13513
56f00ed2
KH
135142009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13515
13516 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 13517 (load_charset_map): Remove unnecessary code.
56f00ed2 13518
4491c9d2
DR
135192009-04-30 David Reitter <david.reitter@gmail.com>
13520
35f5b128 13521 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
13522 through f24.
13523
6970f632
CY
135242009-04-30 Chong Yidong <cyd@stupidchicken.com>
13525
13526 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13527
13528 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13529 face_at_buffer_position.
13530 (face_before_or_after_it_pos, get_next_display_element)
13531 (note_mouse_highlight): Update face_at_buffer_position call.
13532
13533 * term.c (term_mouse_highlight):
13534 * msdos.c (IT_note_mouse_highlight):
13535 * fontset.c (Finternal_char_font):
35f5b128 13536 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
13537
13538 * dispextern.h (face_at_buffer_position): Update prototype.
13539
0c616f63
KH
135402009-04-30 Kenichi Handa <handa@m17n.org>
13541
35f5b128 13542 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 13543
ad3aaf33
AS
135442009-04-29 Andreas Schwab <schwab@linux-m68k.org>
13545
13546 * callproc.c (Fcall_process): Fix GC protection. Make sure
13547 current buffer is always restored.
13548
c3c963a0
YM
135492009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13550
13551 * atimer.c (init_atimer): Also clear stopped_atimers.
13552
13553 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
13554
7e3386cb
YM
13555 * process.c (create_process): Clean up merger residues of
13556 2008-07-17 change.
13557
91f68422
CY
135582009-04-29 Ulrich Mueller <ulm@gentoo.org>
13559
13560 * lread.c (Vread_circle): New variable.
13561 (read1): Disable recursive read if Vread_circle is nil.
13562
24b34550
KH
135632009-04-29 Kenichi Handa <handa@m17n.org>
13564
13565 * fontset.h (set_default_ascii_font): Delete extern.
13566
13567 * fontset.c (set_default_ascii_font): Delete this unused function.
13568
13569 * frame.c (x_set_font): When ARG is a font-object, check if the
13570 font-object matches with the ASCII font-spec of the frame's
9c358bda 13571 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 13572
77bf07e1
AS
135732009-04-28 Andreas Schwab <schwab@linux-m68k.org>
13574
13575 * fns.c (Flocale_info): Protect vector from GC during decoding.
13576
13577 * process.c (Fstart_process): Protect argv strings from GC during
13578 encoding.
13579
2c55aacf
AS
135802009-04-27 Andreas Schwab <schwab@linux-m68k.org>
13581
13582 * sysdep.c: Include <ctype.h>.
13583
b892d3c9
DR
135842009-04-27 David Reitter <david.reitter@gmail.com>
13585
35f5b128 13586 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
13587 Remove commented-out code.
13588
9d0644c4
JB
135892009-04-26 Johan Bockgård <bojohan@gnu.org>
13590
13591 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13592
b7053016
JR
135932009-04-25 Jason Rumney <jasonr@gnu.org>
13594
13595 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
13596
4e8231f3
YM
135972009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13598
13599 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
13600 Swap bytes in short integer if fringe bitmap width > 8.
13601
493dcf2c
KH
136022009-04-23 Kenichi Handa <handa@m17n.org>
13603
13604 * xfaces.c (Fx_list_fonts): If a font size is specified in
13605 PATTERN, set it in returned scalable fonts.
13606
401e9e57
CY
136072009-04-22 Chong Yidong <cyd@stupidchicken.com>
13608
708e05dc
CY
13609 * keyboard.c (Fset_input_meta_mode): Doc fix.
13610
13611 * dispnew.c (Fsend_string_to_terminal): Doc fix.
13612
1ac9108a 13613 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
13614
13615 * coding.c (Fterminal_coding_system): Doc fix.
13616
13617 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
13618 (Fx_display_pixel_height, Fx_display_planes)
13619 (Fx_display_color_cells, Fx_server_max_request_size)
13620 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13621 (Fx_display_mm_height, Fx_display_mm_width)
13622 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
13623 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
13624 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
13625 (check_x_display_info): Handle terminal objects instead of
13626 terminal ids.
13627
401e9e57
CY
13628 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
13629 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
13630 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
13631 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 13632
df80c7f0
KH
136332009-04-21 Kenichi Handa <handa@m17n.org>
13634
5a8f12af 13635 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 13636 (font_score): Check AVGWIDTH too.
908567ef 13637
df80c7f0
KH
13638 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
13639 worst case.
1ac9108a
SM
13640 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
13641 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 13642
705af33f
JR
136432009-04-19 Jason Rumney <jasonr@gnu.org>
13644
13645 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 13646 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
13647
13648 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
13649 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
13650 get_phys_cursor_geometry.
13651
b71ac3dd 13652 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
13653 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
13654 using get_phys_cursor_geometry.
13655
13656 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
13657 correctly calculated.
13658
dc2933eb
JD
136592009-04-19 Jan Djärv <jan.h.d@swipnet.se>
13660
1ac9108a
SM
13661 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
13662 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
13663 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
13664 is deprecated.
13665
973e7849
AS
136662009-04-18 Andreas Schwab <schwab@linux-m68k.org>
13667
13668 * font.c (font_put_frame_data): Use xfree instead of free.
13669
314d66f4
JB
136702009-04-17 Juanma Barranquero <lekktu@gmail.com>
13671
13672 * w32font.c (Qja, Qko): Remove declarations.
13673 (syms_of_w32font): Don't DEFSYM them.
13674
cf702558
CY
136752009-04-17 Chong Yidong <cyd@stupidchicken.com>
13676
13677 * font.c (Qja, Qko): Move definitions here from ftfont.c.
13678
13679 * font.h (Qja, Qko): Extern them.
13680
13681 * ftfont.c (Qja, Qko): Remove declarations.
13682
13683 * xfont.c (Qja, Qko): Remove declarations.
13684
b50504f5
KH
136852009-04-17 Kenichi Handa <handa@m17n.org>
13686
bde25748
KH
13687 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
13688 string from a vector to handle Latin-1 characters correctly.
13689
b50504f5
KH
13690 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
13691 entity even if the cache hits.
13692
f4646fff
AS
136932009-04-16 Andreas Schwab <schwab@linux-m68k.org>
13694
13695 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 13696 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 13697
e7deaab0
AS
13698 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
13699 * lisp.h: Adjust prototypes.
13700
0a0e7d49
CY
137012009-04-16 Chong Yidong <cyd@stupidchicken.com>
13702
13703 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
13704 change (Bug#3003).
13705
3c908a57
KH
137062009-04-16 Kenichi Handa <handa@m17n.org>
13707
1ac9108a 13708 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
13709
13710 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
13711 adstyle.
13712
13713 * ftfont.c (Qja, Qko): Don't make them static.
13714 (enum ftfont_cache_for): New enum.
13715 (fc_charset_table): Undo the previous change.
13716 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
13717 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
13718 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
13719 non-scarable font, try to get AVERAGE_WIDTH.
13720 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
13721 Change ft_face_cache from a list of a hash-table. Don't check
13722 `ja' and `ko' adstyle here.
13723 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
13724 FTFONT_CACHE_FOR_CHARET.
13725 (ftfont_get_charset): Undo the previous change.
1ac9108a 13726 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
13727 (ftfont_close): Likewise.
13728 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
13729
13730 * font.c (font_sort_entites): Change the meaning of the arg
13731 BEST-ONLY. Don't optimize for VEC of lenght 1.
13732 (font_select_entity): Just return the value of font_sort_entites.
13733
13734 * xfaces.c (merge_face_vectors): Reflect font properties in
13735 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
13736 font_clear_prop if a face attribute doesn't change.
13737
3c908a57
KH
13738 * charset.h (charset_ksc5601): Extern it.
13739
13740 * charset.c (charset_ksc5601): New variable.
13741 (Fdefine_charset_internal): Set charset_ksc5601.
13742 (init_charset_once): Initialize charset_ksc5601 to -1.
13743
d65859c3
DN
137442009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
13745
13746 * fileio.c (history_delete_duplicates): Remove unused declaration.
13747
13748 * callint.c (history_delete_duplicates): New declaration.
13749 (Fcall_interactively): Remove command history duplicates when
13750 history_delete_duplicates is true.
13751
3ba010e5
EZ
137522009-04-14 Eli Zaretskii <eliz@gnu.org>
13753
13754 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13755
06f19b91
KH
137562009-04-14 Kenichi Handa <handa@m17n.org>
13757
13758 * font.c (Ffont_info): Fix docstring. Fix the second element of
13759 the returned value (bug#2949).
13760
2cce8bfc
CY
137612009-04-14 Chong Yidong <cyd@stupidchicken.com>
13762
13763 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13764
d156542d
KH
137652009-04-14 Kenichi Handa <handa@m17n.org>
13766
13767 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13768 encoding charset is ascii_compatible.
13769
13770 * charset.c (Fdefine_charset_internal): Make charset
13771 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13772 code_offset is 0, and covers all ASCII characters.
13773
86fa089e
SM
137742009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13775
13776 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13777 (ns_string_to_pasteboard_internal):
13778 * nsmenu.m (process_dialog):
13779 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
13780 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
13781 * lisp.h (Fx_load_color_file): Declare.
13782
a8a3728b
KH
137832009-04-13 Kenichi Handa <handa@m17n.org>
13784
1ac9108a 13785 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
13786 (font_select_entity): Suppress the code to optimize for the same
13787 kind of fonts.
13788 (font_load_for_lface): Get a font that supports at least ASCII
13789 characters.
13790
13791 * ftfont.c (Qja, Qko): New variables.
13792 (fc_charset_table): Delete uniquifier data for iso8859-1.
13793 (ftfont_get_latin1_charset): New function.
13794 (get_adstyle_property): New function.
13795 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
13796 bitmap fonts.
13797 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
13798 Delete iso-8859-1 range from the charset of fonts whose adstyle is
13799 `ko' or `ja'.
13800 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 13801 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
13802 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
13803 property.
13804 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
13805 (syms_of_ftfont): DEFSYM Qja and Qko.
13806
483670b5
KH
138072009-04-09 Kenichi Handa <handa@m17n.org>
13808
12b55765
KH
13809 * charset.c (map_charset_chars): For a charset of `superset'
13810 method, fix calculation of code range.
13811
483670b5
KH
13812 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
13813 from the list of extra properties.
13814 (font_clear_prop): Be sure to delete `:name' font property.
13815
57d3b93b
KH
138162009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13817
b4b2c2ca
YM
13818 * dispnew.c (redraw_overlapping_rows): Fix detection of
13819 overlapping for topmost and bottommost rows.
13820
1ac9108a 13821 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 13822
472c3609
JR
138232009-04-06 Jason Rumney <jasonr@gnu.org>
13824
13825 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
13826
ab193662
KH
138272009-04-06 Kenichi Handa <handa@m17n.org>
13828
13829 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
13830
13831 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
13832
0c26f026
KH
138332009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13834
13835 * ftfont.c (ftfont_open): Fix checking of the return value of
13836 FT_Load_Char. Fix setting font->underline_thickness.
13837
e173bbce
CY
138382009-04-04 Chong Yidong <cyd@stupidchicken.com>
13839
13840 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
13841 (Fterminal_parameters, Fterminal_parameter)
13842 (Fset_terminal_parameter): In doc string, refer to terminal
13843 objects rather than terminal ids.
13844
693a2698
EZ
138452009-04-04 Eli Zaretskii <eliz@gnu.org>
13846
13847 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
13848 ret_lim_data. (Bug#2867)
13849
d5221487
CY
138502009-04-03 Chong Yidong <cyd@stupidchicken.com>
13851
13852 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
13853 so they don't get wider than the window, matching 2006-01-23
13854 change to the partner function in xdisp.c (Bug#2800).
13855
223509a3
KH
138562009-04-03 Kenichi Handa <handa@m17n.org>
13857
13858 * print.c (print_object): Make each lowest sub_char_table start a
13859 new line (Bug#2866).
13860
74fcd0b1
KH
138612009-04-02 Kenichi Handa <handa@m17n.org>
13862
13863 * fontset.c (fontset_font): Record no-font when a fontset
13864 explicitly tells not to try another font-specs.
13865
c542407d
SM
138662009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
13867
13868 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
13869
e3869731
KH
138702009-03-30 Kenichi Handa <handa@m17n.org>
13871
d8d2f142
KH
13872 * fontset.c (fontset_from_font): Specify only registry in a
13873 font-spec for all characters supported by that registry.
13874
e3869731
KH
13875 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
13876 even if HAVE_M17N_FLT is not defined.
13877
5da5f805
CY
138782009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13879
13880 * ftfont.c: Conditionalize prototyping and use of
13881 ftfont_variation_glyphs.
13882
ab226c50
SM
138832009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13884
9628fed7
SM
13885 * frame.c (delete_frame): Work around compiler bug.
13886
13887 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13888 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13889 Some more EMACS_INT.
13890 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13891
13892 * xdisp.c (dump_glyph): Fix typo.
13893
ae19ba7c
SM
13894 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13895 (adjust_markers_gap_motion, adjust_markers_for_delete)
13896 (adjust_markers_for_insert, adjust_point)
13897 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13898 (make_gap, copy_text, count_size_as_multibyte, insert)
13899 (insert_and_inherit, insert_before_markers)
13900 (insert_before_markers_and_inherit, insert_1)
13901 (count_combining_before, count_combining_after, insert_1_both)
13902 (insert_from_string, insert_from_string_before_markers)
13903 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13904 (insert_from_buffer_1, adjust_after_replace)
13905 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13906 (replace_range_2, del_range, del_range_1, del_range_byte)
13907 (del_range_both, del_range_2, modify_region)
13908 (prepare_to_modify_buffer, signal_before_change)
13909 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13910 for buffer positions and sizes.
13911 * lisp.h: Adjust prototypes accordingly.
13912
13913 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13914 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13915 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13916
ab226c50
SM
13917 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13918
46dfb8fb
JD
139192009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13920
13921 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13922 lines and columns so we keep the same pixel height and width.
13923
13924 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13925 the property _NET_WM_STATE has changed.
46dfb8fb
JD
13926 (x_handle_net_wm_state): New function to update frame parameter
13927 fullscreen.
13928 (x_term_init): Initialize atoms for _NET_WM_STATE.
13929
13930 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13931
d347e494
SM
139322009-03-27 Kevin Ryde <user42@zip.com.au>
13933
13934 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13935 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13936 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13937 (Fgpm_mouse_stop): Pass that new parameter.
13938 * termhooks.h (close_gpm): Adjust prototype.
13939
84db11d6
SM
139402009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13941
c95a5008
SM
13942 * lisp.h (Fx_focus_frame): Declare.
13943
84db11d6
SM
13944 * callint.c (Fcall_interactively): For '^' just delegate the work to
13945 handle-shift-selection.
13946 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13947
0a1958d6
CY
139482009-03-24 Chong Yidong <cyd@stupidchicken.com>
13949
0bfdff23
CY
13950 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13951
0a1958d6
CY
13952 * data.c (Qinteractive_form): New variable.
13953 (Finteractive_form): Use it.
13954
13955 * eval.c (Fcommandp): Use Qinteractive_form.
13956
58aec0d6
JR
139572009-03-24 Jason Rumney <jasonr@gnu.org>
13958
13959 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
13960 Calculate total size precisely. Decode environment variables
13961 before substituting. (Bug#38)
13962
553dd618
KH
139632009-03-24 Kenichi Handa <handa@m17n.org>
13964
13965 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 13966 encoding (Bug#2722).
553dd618 13967
c39ea606
JD
139682009-03-23 Jan Djärv <jan.h.d@swipnet.se>
13969
13970 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
13971 that gdpy is set.
13972
bc9b2b5e
AM
139732009-03-22 Alan Mackenzie <acm@muc.de>
13974
13975 * callint.c (Finteractive): Clarify the doc string - even
13976 promptless elements need \n separators.
13977
9f995a76
JR
139782009-03-22 Jason Rumney <jasonr@gnu.org>
13979
13980 * w32term.c (syms_of_w32term): Doc fix for
13981 x-use-underline-position-properties.
13982
22749e9a
EZ
139832009-03-21 Eli Zaretskii <eliz@gnu.org>
13984
13985 * w32.c (getpwuid): Change argument type to unsigned.
13986 (struct w32_id): Change type of `rid' member to unsigned.
13987 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
13988 argument ID to unsigned. All callers changed.
13989 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
13990
e00553bf
EZ
139912009-03-20 Eli Zaretskii <eliz@gnu.org>
13992
13993 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
13994 negative, produce a float value.
13995
13996 * dired.c (make_uid, make_gid): New functions.
13997 (Ffile_attributes): Use them to avoid negative UID and GID.
13998
f761d6b6
JB
139992009-03-20 Juanma Barranquero <lekktu@gmail.com>
14000
14001 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14002 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14003 Fix typos in docstrings.
14004
d507f8d7
KH
140052009-03-19 Kenichi Handa <handa@m17n.org>
14006
14007 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
14008 changed, use font_load_for_lface to get a new font object.
14009 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
14010
14011 * frame.c (x_set_font): Handle the case that ARG is a cons.
14012
c68845e0
GM
140132009-03-19 Glenn Morris <rgm@gnu.org>
14014
14015 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14016
bfa49dd1
CY
140172009-03-19 Chong Yidong <cyd@stupidchicken.com>
14018
14019 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14020
8458d4c1
KH
140212009-03-19 Kenichi Handa <handa@m17n.org>
14022
14023 * charset.c (load_charset_map_from_file): When a mapfile can't be
14024 loaded, signal an error.
14025
78e7d1fe
EZ
140262009-03-18 Eli Zaretskii <eliz@gnu.org>
14027
14028 * dired.c (Ffile_attributes): Make sure UID and GID are always
14029 positive, even if the value is too large for a positive EMACS_INT.
14030 Doc fix.
14031
14032 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14033
5da9fdfa
YM
140342009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14035
14036 * xmenu.c (xdialog_show): Move Fredisplay call ...
14037 (Fx_popup_dialog): ... here.
14038
7519c40d
SM
140392009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14040
14041 * dired.c (file_name_completion): Disable the first optimization just
14042 installed, since it is not implemented correctly.
14043
2cd298e2
SM
140442009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14045
14046 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 14047 only if the entry can affect bestmatch.
2cd298e2
SM
14048 Stop the search early, as Ftry_completion already does.
14049
48d37adf
CY
140502009-03-17 Chong Yidong <cyd@stupidchicken.com>
14051
e10c9c93 14052 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 14053
9286b16a
CY
140542009-03-15 Chong Yidong <cyd@stupidchicken.com>
14055
14056 * keyboard.c (parse_menu_item): Don't display remappings as menu
14057 equivalent bindings (Bug#788).
14058
f7b146dc
JR
140592009-03-15 Jason Rumney <jasonr@gnu.org>
14060
14061 * w32term.h (WM_EMACS_PAINT): New message.
14062 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14063 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14064 before passing to lisp thread. (Bug#950)
14065
f761d6b6 140662009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 14067
d93f9575
CY
14068 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14069 variable as it was never reset.
14070 (ns_term_init): Remove initialization of Lisp-settable defaults
14071 and ns_expand_space.
14072 (-setPanelFromDefaultValues): Remove ns_expand_space.
14073 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14074 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
14075 i.e. no additional spacing, similar to Carbon port.
14076
d93f9575
CY
14077 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14078 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 14079
305018ec
JD
140802009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14081
14082 * sound.c (alsa_configure): Remove call to deprecated
14083 snd_pcm_sw_params_set_xfer_align.
14084
f761d6b6 140852009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
14086
14087 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14088 after clicking in a detached tool bar.
14089 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14090
46e722a9
SM
140912009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14092
348db3dd
SM
14093 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14094 int/Lisp_Object mixup).
46e722a9 14095
a3d16f39
KH
140962009-03-13 Kenichi Handa <handa@m17n.org>
14097
14098 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 14099 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
14100 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14101 (set_fontset_font): Change ARG to a vector. Handle range_list in
14102 ARG correctly.
14103 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 14104 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
14105 the above change.
14106 (fontset_from_font): Fix previous change.
fe24f56a 14107 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
14108 entry. If FONTSET is the default fontset, don't set the extra
14109 slot of the returning char-table.
14110
b066e6b6
JB
141112009-03-12 Juanma Barranquero <lekktu@gmail.com>
14112
14113 * nsfns.m (Fx_close_connection): Doc fix.
14114 (Fns_do_applescript): Reflow docstring.
14115 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14116 (Fx_display_pixel_width, Fx_display_pixel_height)
14117 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14118 Fix typos in docstrings.
14119 (Fns_set_alpha): Fix typos in error messages.
14120
d472514e 141212009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 14122
d472514e 14123 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
14124 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14125 were used for such events.
14126
d472514e
JB
14127 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14128 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 14129
d472514e 14130 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
14131 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14132
fb930676
KH
141332009-03-11 Kenichi Handa <handa@m17n.org>
14134
ff85581a
KH
14135 * font.h (font_open_by_spec): Extern it.
14136
c50b7e98
KH
14137 * font.c (font_open_by_spec): New function.
14138 (font_open_by_name): Use font_open_by_spec.
14139
fb930676
KH
14140 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14141 fontset of the frame.
14142
14143 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14144 modify the default font of frames that use this fontset.
14145 (num_auto_fontsets): New variable.
14146 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14147 name. Be sure to set FONTSET_ASCII to the correct font name.
14148 (update_auto_fontset_alist): New function.
14149
df4e8455
JB
141502009-03-11 Juanma Barranquero <lekktu@gmail.com>
14151
14152 * makefile.w32-in: Update dependencies.
14153
0a375797
AR
141542009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14155
14156 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14157
61313fa3
SM
141582009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14159
14160 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14161
b55103fb
CY
141622009-03-10 Chong Yidong <cyd@stupidchicken.com>
14163
14164 * lread.c (Feval_buffer): Doc fix.
14165
dde2559c
KH
141662009-03-09 Kenichi Handa <handa@m17n.org>
14167
14168 * charset.c (Qfile_name_handler_alist): Extern it.
14169 (load_charset_map_from_file): Temporarily bind
14170 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14171
df4e8455 141722009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 14173
47f588bb
GM
14174 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14175 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 14176
4ddf94bd
AR
141772009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14178
4c9bdfc2
AR
14179 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14180 (x_set_window_size): Change back to calculated method of setting
14181 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
14182 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14183 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14184
fe41ae9e
AR
14185 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14186
4c9bdfc2
AR
14187 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14188 accelerator in parens under GNUstep.
14189
825d0875
KH
141902009-03-06 Kenichi Handa <handa@m17n.org>
14191
14192 These changes are to detect incorrect composition sequence without
f3b3be74 14193 looking ahead the source. (Bug#2370)
825d0875
KH
14194
14195 * coding.h: Include "composite.h".
14196 (enum compisition_state): New enum.
14197 (struct compisition_status): New struct.
14198 (struct iso_2022_spec): New member cmp_status.
14199 (struct emacs_mule_spec): New struct.
14200 (struct coding_system): New members ctext_extended_segment_len and
14201 embedded_utf_8. Change the union member
14202 spec.emacs_mule_full_support to spec.emacs_mule.
14203
14204 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14205 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 14206 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
14207 (ADD_COMPOSITION_DATA): New arg nbytes.
14208 (emacs_mule_char): New arg cmp_status.
14209 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14210 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14211 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14212 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14213 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14214 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14215 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14216 (EMACS_MULE_COMPOSITION_END): New macro.
14217 (emacs_mule_finish_composition): New function.
14218 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14219 (decode_coding_emacs_mule): Avoid long looking ahead while
14220 handling composition.
14221 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14222 (ENCODE_COMPOSITION_RULE): New macro.
14223 (finish_composition): New function.
14224 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14225 (DECODE_COMPOSITION_START): New implementation.
14226 (DECODE_COMPOSITION_END): Likewise.
14227 (STORE_COMPOSITION_RULE): New macro.
14228 (decode_coding_iso_2022): Avoid long looking ahead while handling
14229 composition, CTEXT extended segment, and embedded UTF-8.
14230 (setup_coding_system): For a coding of type iso-2022, reset
14231 CODING_ISO_EXTSEGMENT_LEN (coding) and
14232 CODING_ISO_EMBEDDED_UTF_8 (coding).
14233 (get_translation): Delete arguments last_block, from_nchars,
14234 to_nchars. Callers changed.
14235 (produce_chars): Don't modify charbuf. Adjusted for the change of
14236 get_translation.
98a326f7 14237 (produce_composition): Adjust for the new annotation sequence.
825d0875 14238 (handle_composition_annotation): Likewise.
98a326f7 14239 (consume_chars): Adjust for the change of get_translation.
825d0875 14240
ccbc4452
AR
142412009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14242
4ddf94bd 14243 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 14244
988a7ddb
KH
142452009-03-05 Kenichi Handa <handa@m17n.org>
14246
14247 * font.c (font_select_entity): New function.
14248 (font_find_for_lface): Use font_select_entity to select a font.
14249
14250 * fontset.c (fontset_find_font): If a font found without
a8a3728b 14251 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
14252 font with C restriction.
14253
98a326f7 142542009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 14255
be1bce46 14256 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 14257
10ea2b82
JR
142582009-03-04 Jason Rumney <jasonr@gnu.org>
14259
2c93b248 14260 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 14261 characters that have already been read. (Bug#2569)
2c93b248 14262
10ea2b82
JR
14263 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14264 Log an error message if check_image_size failed.
14265 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 14266 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 14267
71a0c011
EZ
142682009-03-02 Eli Zaretskii <eliz@gnu.org>
14269
14270 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14271 when decoding process output.
14272
2f63bba8
RS
142732009-03-01 Richard M Stallman <rms@gnu.org>
14274
14275 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14276
14277 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14278
0a9564cb
EZ
142792009-02-28 Eli Zaretskii <eliz@gnu.org>
14280
14281 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14282 (decode_coding_emacs_mule, decode_coding_iso_2022)
14283 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14284 (decode_coding_raw_text, decode_coding_charset)
14285 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14286 Honor inhibit-eol-conversion. (Bug #2186)
14287
449148b3
JR
142882009-02-28 Jason Rumney <jasonr@gnu.org>
14289
14290 * coding.c (detect_coding_charset): If not checking latin extra,
14291 fail on characters between 0x80 and 0xA0. (Bug#2354)
14292
a4aee864
EZ
142932009-02-28 Eli Zaretskii <eliz@gnu.org>
14294
14295 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 14296 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 14297
d88bee5a
GM
142982009-02-27 Glenn Morris <rgm@gnu.org>
14299
14300 * callint.c (Finteractive): Doc fix.
14301
a808f22d
KH
143022009-02-27 Kenichi Handa <handa@m17n.org>
14303
14304 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14305
caf8d60c
CY
143062009-02-27 Chong Yidong <cyd@stupidchicken.com>
14307
14308 * font.c (font_style_to_value): Set value for unknown symbols to
14309 100 instead of 255.
b61137ea
CY
14310 (weight_table, slant_table, width_table): Treat "unspecified" as
14311 the default value.
caf8d60c 14312
1a0de25c
JB
143132009-02-26 Juanma Barranquero <lekktu@gmail.com>
14314
14315 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14316
8fc45744
JB
143172009-02-25 Juanma Barranquero <lekktu@gmail.com>
14318
107bd7d1
JB
14319 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14320 error as soon as a recursive load is detected.
8fc45744 14321
f097e223
AR
143222009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14323
14324 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14325 before caching.
14326
8810a12f
KH
143272009-02-24 Kenichi Handa <handa@m17n.org>
14328
14329 * fontset.c (fontset_find_font): Fix the condition for checking
14330 unavailable font.
14331
2c7d1565
GM
143322009-02-24 Glenn Morris <rgm@gnu.org>
14333
14334 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14335 whitespace that confuses documentation.
14336
a20878b6
MB
143372009-02-23 Miles Bader <miles@gnu.org>
14338
14339 * process.c (Flist_system_processes, Fprocess_attributes)
14340 (syms_of_process): Rename `system-process-attributes' to
14341 `process-attributes'.
14342
b3b58c01
AS
143432009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14344
1b3b981b
AS
14345 * coding.h (struct coding_system): Make safe_charsets a pointer to
14346 unsigned char.
14347 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14348 being 255.
14349 (SAFE_CHARSET_P): Likewise.
14350 (setup_iso_safe_charsets): Properly setup safe_charsets.
14351 (Fdefine_coding_system_internal): Likewise.
14352 (setup_coding_system): Likewise. Remove unneeded casts.
14353 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
14354 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14355 Remove unneeded casts.
1b3b981b 14356
b3b58c01
AS
14357 * insdel.c (del_range_2): Don't modify gap contents when called
14358 from decode_coding_object. (Bug#1809)
14359
0b6f228c
CY
143602009-02-21 Chong Yidong <cyd@stupidchicken.com>
14361
14362 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14363 Qfont_object.
14364 (Ftype_of): Recognize font objects.
14365
14366 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14367
bba3e508
SM
14368 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14369 Definitions moved to data.c.
0b6f228c 14370
52f8870b
AR
143712009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14372
14373 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14374 async_iconified. Based on a patch by Christian Lynbech
14375 <christian.lynbech@tieto.com>.
14376 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14377
7087d5e9
GM
143782009-02-20 Glenn Morris <rgm@gnu.org>
14379
14380 * syntax.c (Fskip_chars_forward): Fix doc typo.
14381
41d2ceef
CY
143822009-02-20 Chong Yidong <cyd@stupidchicken.com>
14383
14384 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14385
1a3b7ca6
CY
143862009-02-19 Chong Yidong <cyd@stupidchicken.com>
14387
14388 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14389
73cce38d
KH
143902009-02-19 Kenichi Handa <handa@m17n.org>
14391
14392 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 14393 Don't overflow coding->carryover. (Bug#2370)
73cce38d 14394
a51092ee
DN
143952009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14396
14397 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14398
c423ecca
KH
143992009-02-18 Kenichi Handa <handa@m17n.org>
14400
14401 * font.c (font_check_otf_features): Fix handling of `nil' element.
14402 (Ffont_spec): Describe :lang and :otf in the docstring.
14403
4c1958f4
AS
144042009-02-16 Andreas Schwab <schwab@suse.de>
14405
14406 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14407 string.
14408
5704f39a
KH
144092009-02-16 Kenichi Handa <handa@m17n.org>
14410
14411 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 14412 (Bug#1723)
5704f39a 14413
8f0085aa
CY
144142009-02-14 Chong Yidong <cyd@stupidchicken.com>
14415
a057d86a 14416 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
14417
14418 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14419 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14420
aff01dd9
EZ
144212009-02-14 Eli Zaretskii <eliz@gnu.org>
14422
14423 * msdos.c (MAX_SCREEN_BUF): New macro.
14424 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14425 Encode the entire run of glyphs sharing the same face, instead of
14426 doing that one glyph at a time (fixes a bug with displaying
14427 double-size characters).
14428
ba301db3
AR
144292009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14430
14431 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14432
14433 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14434 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 14435 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
14436
14437 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 14438 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 14439
51d861de
SM
144402009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14441
ac146f82 14442 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
14443 invisible areas.
14444
7fed8996
JR
144452009-02-12 Jason Rumney <jasonr@gnu.org>
14446
631ea4fb
JR
14447 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14448 (add_font_entity_to_list): Call check_face_name even when family
14449 is unspecified.
14450
cb4a3e42
JR
14451 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14452 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 14453 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 14454
7fed8996 14455 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 14456 raster fonts. (Bug#2219)
7fed8996 14457
895416e3
KH
144582009-02-12 Kenichi Handa <handa@m17n.org>
14459
14460 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14461 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14462 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 14463 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14464 (find_automatic_composition): While looking forward and backward,
14465 check static composition. Fix where to stop looking forward.
14466 (composition_adjust_point): Fix checking of static composition.
14467 (Fcomposition_get_gstring): Pay attention to
1dacf998 14468 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14469
14470 * lisp.h (fast_looking_at): Extern it.
14471
14472 * search.c (fast_looking_at): New function.
14473
51d861de 14474 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
14475 <struct glyph>.u.cmp.to.
14476 (append_composite_glyph): Likewise.
14477
51d861de 14478 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
14479 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14480 composition.
51d861de 14481 (append_composite_glyph): Adjust for the change of
895416e3
KH
14482 <strcut glyph>.u.cmp.to.
14483
8510724d
JB
144842009-02-11 Juanma Barranquero <lekktu@gmail.com>
14485
14486 * casetab.c (init_casetab_once):
14487 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14488 * font.c (font_update_lface):
14489 * fontset.c (Fnew_fontset):
14490 * ftfont.c (ftfont_drive_otf):
14491 * xfont.c (xfont_open):
14492 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14493
294fa707
SM
144942009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14495
14496 * fileio.c (Fwrite_region): !NILP -> CONSP.
14497
b5bfebec
AS
144982009-02-10 Andreas Schwab <schwab@suse.de>
14499
14500 * process.c (send_process): Properly relocate pointer into data
adab88bd 14501 when using encoded data. (Bug#2272)
b5bfebec 14502
cb84a2be
KH
145032009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14504
14505 * coding.c (detect_coding_charset): Fix previous change.
14506
89e09428
JR
145072009-02-08 Jason Rumney <jasonr@gnu.org>
14508
14509 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 14510 disappeared while hourglass was displayed. (Bug #2193)
89e09428 14511
4470a277
AS
145122009-02-07 Andreas Schwab <schwab@suse.de>
14513
14514 * unexelf.c (unexec): Fix error message.
14515
3175b12a
AR
145162009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14517
14518 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 14519 when modal window is active. (Bug #2152)
3175b12a
AR
14520 (applicationShouldTerminate:): Remove now-unneeded while loop
14521 around NSRunAlertPanel.
14522
14523 * nsmenu.m (popupSession): New file-global variable.
14524 (pop_down_menu): End the popupSession before closing dialog.
14525 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14526 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14527 don't query NSApp for events (just sleep instead).
14528
8434d0b8
EZ
145292009-02-07 Eli Zaretskii <eliz@gnu.org>
14530
51d861de
SM
14531 * coding.c (syms_of_coding) <translation-table-for-input>:
14532 Modify doc string to discourage use for character code unification.
8434d0b8 14533
aa82edfd
CY
145342009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14535
14536 * atimer.c (run_timers): Update pending_atimers.
14537
2d283c7c
CY
145382009-02-06 Chong Yidong <cyd@stupidchicken.com>
14539
eb306cab
CY
14540 * image.c (svg_load_image): Fix last change.
14541
2d283c7c
CY
14542 * xfns.c (Fx_create_frame): Signal an error if no font is
14543 found (Bug#2147).
14544
4d8e170e
JB
145452009-02-05 Juanma Barranquero <lekktu@gmail.com>
14546
14547 * character.c (syms_of_character) <script-representative-chars>:
14548 Fix typo in docstring.
14549
c96169a0
AR
145502009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14551
14552 * nsmenu.m (pop_down_menu): New function.
14553 (ns_popup_dialog): Call it on unwind.
14554 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
14555 call timer_check() (Bug#2154).
14556 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
14557 handling_signal is set.
14558 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
14559
31fd7c5c 14560 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
14561
14562 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
14563
14564 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
14565
51d861de
SM
14566 * keyboard.c (poll_for_input_1, handle_async_input):
14567 Set handling_signal under HAVE_NS.
c96169a0 14568
aacd8ba1
GM
145692009-02-04 Glenn Morris <rgm@gnu.org>
14570
14571 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
14572
4cb75c4b
KH
145732009-02-04 Kenichi Handa <handa@m17n.org>
14574
14575 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
14576
14577 * charset.c (Fchar_charset): New optional arg restriction.
14578
14579 * coding.h (coding_system_charset_list): Extern it.
14580
14581 * coding.c (coding_system_charset_list): New function.
14582
14583 * composite.c: Include coding.h and termhooks.h.
14584 (composition_gstring_p): Fix for the terminal case.
14585 (composition_gstring_width): Likewise.
14586 (fill_gstring_body): Likewise.
14587 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
14588 the frame.
14589 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
14590 is within a composition.
867d4bb3 14591 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
14592
14593 * term.c (encode_terminal_code): Fix handling of composition.
14594 (produce_composite_glyph): For static composition, get pixel_width
14595 from struct composition.
14596
826ba17e
AS
145972009-02-02 Andreas Schwab <schwab@suse.de>
14598
14599 * unexelf.c (unexec): Handle unaligned bss offset.
14600
8ad093db
AR
146012009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14602
14603 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
14604 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 14605
8ad093db
AR
14606 * keyboard.c (handle_interrupt): Don't call
14607 quit_throw_to_read_char() under NS.
d0a76a6e 14608
8ad093db
AR
14609 * blockinput.h: Remove NS-specific code.
14610
4d18a7a2
DN
146112009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
14612
db878925
DN
14613 * dispnew.c (window_change_signal): Don't try to get the size of a
14614 suspended tty frame.
14615 * term.c (Fresume_tty): Resize if the size has changed while the
14616 tty was suspended.
14617
4d18a7a2
DN
14618 * alloc.c (mark_stack): Properly conditionalize previous change.
14619
8984df7c
JB
146202009-01-30 Juanma Barranquero <lekktu@gmail.com>
14621
14622 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
14623 * w32term.c (w32_read_socket) [SYNC_INPUT]:
14624 Remove; this code is not used on Windows.
14625
75f4f1ac
EZ
146262009-01-30 Eli Zaretskii <eliz@gnu.org>
14627
14628 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
14629 EOLs that also has stray ^M characters.
14630
07a1e794
JB
146312009-01-30 Juanma Barranquero <lekktu@gmail.com>
14632
14633 * atimer.c (run_timers, alarm_signal_handler):
14634 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
14635 * w32inevt.c (w32_console_read_socket):
14636 * w32term.c (w32_read_socket):
14637 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
14638
a8b11cc9
CY
146392009-01-30 Chong Yidong <cyd@stupidchicken.com>
14640
14641 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
14642 Initialize it as a relative filename pattern.
14643 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
14644 (Fcall_process_region): Simplify temp file creation using
14645 temporary-file-directory.
14646
c279587b
EZ
146472009-01-29 Eli Zaretskii <eliz@gnu.org>
14648
14649 * msdos.c: Rename pending_signals to msdos_pending_signals.
14650 (sig_suspender, sigprocmask): Adjust.
14651
a8fe3242
CY
146522009-01-29 Chong Yidong <cyd@stupidchicken.com>
14653
14654 * keyboard.c (pending_signals): New var.
14655 (poll_for_input, input_available_signal, init_keyboard): Set it.
14656 (process_pending_signals): New function.
14657
14658 * lisp.h (QUIT): Check pending_signals instead of
14659 interrupt_input_pending. Use process_pending_signals.
14660
51d861de 14661 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 14662
51d861de 14663 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
14664
14665 * sysdep.c (emacs_write): Use process_pending_signals.
14666
14667 * xterm.c (XTread_socket): Update pending_signals.
14668
14669 * w32term.c (w32_read_socket): Update pending_signals.
14670
14671 * w32inevt.c (w32_console_read_socket): Update pending_signals.
14672
6570a1c4
KH
146732009-01-29 Kenichi Handa <handa@m17n.org>
14674
14675 * xftfont.c (xftfont_has_char): New function.
14676 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
14677
d72a4afa
AR
146782009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14679
14680 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
14681 under GNUstep.
14682 (ns_query_color): New declaration.
14683
14684 * nsterm.m (ns_confirm_quit): New variable.
14685 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
14686 (EmacsApp-applicationShouldTerminate:): Use it.
14687 (EmacsPrefsController): Let user set it.
14688 (ns_query_color): New function.
14689 (ns_defined_color): Use it.
14690 (ns_initialize): Drop.
14691 (ns_term_init): Add two lines from ns_initialize(), and set
14692 input_interrupt_mode to nil.
14693
14694 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 14695 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 14696
9fe78804
KH
146972009-01-28 Kenichi Handa <handa@m17n.org>
14698
14699 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
14700 (fontset_get_font_group): Remember that no font-group is specified
14701 for C.
9fe78804 14702
fa57de36
CY
147032009-01-27 Chong Yidong <cyd@stupidchicken.com>
14704
930600e9
CY
14705 * fns.c (concat): Check for string overflow (bug#1787).
14706
fa57de36
CY
14707 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
14708 Quadruple undo limits (bug#1501).
14709
7179ce7b
KH
147102009-01-27 Kenichi Handa <handa@m17n.org>
14711
14712 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
14713 directly use GT_Get_Char_index.
14714
14715 * xftfont.c (struct xftfont_info): New member `index'.
14716
14717 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 14718 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 14719
5be8fcc0
CY
147202009-01-26 Kenichi Handa <handa@m17n.org>
14721
14722 * fontset.c (fontset_find_font): Fix handling of non-cons return
14723 value of fontset_get_font_group.
14724 (fontset_font): Revert last change.
14725
19ae3e61
JR
147262009-01-26 Jason Rumney <jasonr@gnu.org>
14727
14728 * w32font.c (w32font_list_internal): Return quickly if registry is
14729 unknown. Simplify final return.
14730 (add_font_entity_to_list): Break complex logic down into more
14731 manageable chunks. Move unknown registry check to
14732 w32font_list_internal.
14733
8612b71a
AR
147342009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
14735
14736 Changes to remove Feval calls from GUI under NS.
14737
d8038940
JB
14738 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
14739 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
14740 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
14741
14742 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
14743 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
14744 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
14745 instead of NON_ASCII_KEYSTROKE_EVENT.
14746 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14747 (EmacsApp-applicationShouldTerminate:): Query user.
14748 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14749 instead of Feval.
14750
14751 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14752
14753 * keyboard.c (kbd_buffer_get_event): Check for it.
14754 (keys_of_keyboard): Define lispy keys for
14755 ns-put/unput-working-text.
14756
14757 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14758 versions.
14759 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14760
6288ae55
CY
147612009-01-25 Chong Yidong <cyd@stupidchicken.com>
14762
14763 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 14764 setting current_buffer directly. (Bug#2044)
6288ae55 14765
289e7f8f
CY
147662009-01-24 Chong Yidong <cyd@stupidchicken.com>
14767
5ce87308 14768 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 14769 any work. (Bug#1952, bug#1990).
5ce87308 14770
64cc3cf6 14771 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 14772
b3243e6f
AR
147732009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14774
14775 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
14776 (ns_no_defaults): New declaration.
14777 (main): Use it.
e0d2e69a 14778
d900b2af 14779 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 14780
d900b2af 14781 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 14782
d900b2af
AR
14783 * nsterm.m (ns_no_defaults): New variable.
14784 (ns_initialize): Don't read defaults when ns_no_defaults.
14785 (EmacsView-readSelectionFromPasteboard:)
14786 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 14787 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
14788 (ns_dumpglyphs_stretch): New function.
14789 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 14790 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 14791
e0d2e69a
AR
14792 * nsimage.m (setPixmapData:): Set to ignore image DPI.
14793
3ac71f5d
CY
147942009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
14795
14796 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
14797 call for Sparc64.
14798
3fe53a83
AR
147992009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14800
14801 * nsfns.m:
14802 * nsgui.h:
14803 * nsmenu.m:
14804 * nsselect.m:
14805 * nsterm.h:
14806 * nsterm.m: Remove '23' comments that indicated code added during
14807 update from emacs-20 -> emacs-23.
14808
10f87c6f 148092009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
14810
14811 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 14812 ns_alternate_modifier. (Bug#1217)
a3b53a85 14813
c7cef62d
AR
14814 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
14815 Display all shortcuts, including those w/o super modifier.
14816
575fb8bd
AR
14817 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
14818
918b848b
CY
148192009-01-22 Chong Yidong <cyd@stupidchicken.com>
14820
14821 * fileio.c (Vwrite_region_post_annotation_function)
14822 (Vwrite_region_annotation_buffers): New vars.
14823 (build_annotations_unwind): Just reset
14824 Vwrite_region_annotation_buffers.
14825 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
14826 Call write-region-post-annotation-function.
14827 (build_annotations): Add to Vwrite_region_annotation_buffers if
14828 buffer changes.
14829
a39e2539
AR
148302009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14831
14832 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
14833 Tiger.
51d861de
SM
14834 * nsfns.m (ns_do_applescript):
14835 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 14836
35ed44db
AR
148372009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14838
14839 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
14840
cbe0b5bf
AR
148412009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14842
14843 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 14844
6049d3a0
AR
14845 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
14846
14847 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
14848 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
14849 handle Ctrl-tab. (Bug#1841)
14850 (ns_get_color): Use unsigned long long for scanned hex string value.
14851 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 14852 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 14853 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 14854 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 14855 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 14856 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 14857 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 14858
d3810c21 14859 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 14860 DPI. (Bug#1316)
d3810c21
AR
14861 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
14862 values in onTiger section.
4c7077c3 14863
e301e634
CY
148642009-01-19 Chong Yidong <cyd@stupidchicken.com>
14865
7f82490b
CY
14866 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
14867 Check return value of font_spec_from_name.
64cc3cf6 14868 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
14869
14870 * font.c (font_spec_from_name): Return Qnil if font name could not
14871 be parsed.
14872 (font_parse_name): Treat a `?' character as part of an XLFD.
14873
e301e634
CY
14874 * fns.c (Fsubstring): Doc fix.
14875
1c0db158
KH
148762009-01-19 Kenichi Handa <handa@m17n.org>
14877
51d861de 14878 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
14879 (ftfont_list): Likewise.
14880
acf20901
JB
148812009-01-18 Juanma Barranquero <lekktu@gmail.com>
14882
fff4e459
JB
14883 * dbusbind.c (Fdbus_register_signal):
14884 * process.c (conv_sockaddr_to_lisp):
14885 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14886
acf20901
JB
14887 * callproc.c (Fgetenv_internal): Doc fix.
14888
e7abcdfb
CY
148892009-01-16 Chong Yidong <cyd@stupidchicken.com>
14890
14891 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14892 it is not even used.
14893
b60861e6
GM
148942009-01-16 Glenn Morris <rgm@gnu.org>
14895
14896 * font.c (Ffont_variation_glyphs): Silence compiler.
14897
8db52afe
JB
148982009-01-15 Juanma Barranquero <lekktu@gmail.com>
14899
14900 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14901 Reported by David Robinow <drobinow@gmail.com>.
14902
4cddb209
KH
149032009-01-15 Kenichi Handa <handa@m17n.org>
14904
51d861de 14905 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 14906
f247f67b
JR
149072009-01-14 Jason Rumney <jasonr@gnu.org>
14908
14909 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 14910 never a fontset. (Bug#1562)
f247f67b 14911
f56a4450
KH
149122009-01-14 Kenichi Handa <handa@m17n.org>
14913
14914 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 14915 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 14916
4e99855e
CY
149172009-01-13 Chong Yidong <cyd@stupidchicken.com>
14918
14919 * font.c (font_clear_prop): If clearing the family, clear the font
14920 width index too.
14921
fff4e459 14922 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 14923
24f01470
JB
149242009-01-12 Juanma Barranquero <lekktu@gmail.com>
14925
14926 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14927 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14928 functions, use sizeof.
14929
a41240a3
MR
149302009-01-12 Martin Rudalics <rudalics@gmx.at>
14931
14932 * keyboard.c (read_char): Fix case where last_nonmenu_event
14933 returned a bad value with submenus. (Bug#447)
14934
944636b8
CY
149352009-01-12 Chong Yidong <cyd@stupidchicken.com>
14936
14937 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14938 family, clear the font width index too.
14939
0dad7c6f
JR
149402009-01-11 Jason Rumney <jasonr@gnu.org>
14941
14942 * keyboard.c (cmd_error_internal): Exit when errors occur before
14943 frame creation and not in daemon mode. (Bug#1836)
14944
7c2363af
CY
149452009-01-10 Chong Yidong <cyd@stupidchicken.com>
14946
14947 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14948 of a display vector, backtrack.
14949 (try_window_reusing_current_matrix): Check glyph type before
14950 referencing charpos member.
14951
97b1b294
EZ
149522009-01-10 Eli Zaretskii <eliz@gnu.org>
14953
14954 Fix Bug #876:
14955
14956 * coding.c (inhibit_null_byte_detection): New variable.
14957 (detect_coding, detect_coding_system): Don't pay attention to null
14958 bytes if inhibit_null_byte_detection is non-zero.
51d861de 14959 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
14960 <inhibit-iso-escape-detection>: Doc fix.
14961
4624b6e3
JR
149622009-01-09 Jason Rumney <jasonr@gnu.org>
14963
14964 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 14965 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
14966 Only report Unicode Plane 2 fonts as unicode-sip.
14967
323b840c
CY
149682009-01-09 Chong Yidong <cyd@stupidchicken.com>
14969
51d861de
SM
14970 * xfaces.c (Fx_font_family_list): Delete function.
14971 Move compatibility version to faces.el.
323b840c 14972
51d861de 14973 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 14974
eba7400d
MR
149752009-01-09 Martin Rudalics <rudalics@gmx.at>
14976
14977 * frame.c (x_set_frame_parameters): Remember requested value for
14978 fullscreen before it's reset by the parameter handler.
14979
4b09796d
GM
149802009-01-09 Glenn Morris <rgm@gnu.org>
14981
14982 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 14983 (last_command_event): ... and update all users.
4b09796d
GM
14984 (last_input_char): For clarity, rename to...
14985 (last_input_event): ... and update all users.
14986 (last-command-char, last-input-char): Move to subr.el as aliases.
14987 * cmds.c, commands.h: Update for last_command_char rename.
14988
14ccea62
CY
149892009-01-08 Chong Yidong <cyd@stupidchicken.com>
14990
51d861de 14991 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 14992
5f004711
JR
149932009-01-08 Jason Rumney <jasonr@gnu.org>
14994
14995 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
14996 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
14997 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
14998 Don't declare.
fff4e459 14999 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
15000 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15001
b71f6f73
KH
150022009-01-07 Kenichi Handa <handa@m17n.org>
15003
50b06221 15004 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 15005 remember the coding system used for decoding in
50b06221
KH
15006 coding_system (Bug#1039).
15007
b71f6f73 15008 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 15009 breaking the loop. (Bug#870)
b71f6f73
KH
15010 (decode_coding_utf_16, decode_coding_emacs_mule)
15011 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15012 (decode_coding_charset): Likewise.
15013
56f668f7
MR
150142009-01-05 Martin Rudalics <rudalics@gmx.at>
15015
15016 * frame.c (x_set_frame_parameters): Make sure height (width) get
15017 applied when fullwidth (fullheight) is set. (Bug#1522)
15018
5da9424d
JB
150192009-01-04 Juanma Barranquero <lekktu@gmail.com>
15020
15021 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15022 (utc_base): Declare as ULONGLONG, not long double.
15023 (convert_time_raw): Delete.
15024 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15025 (initialize_utc_base): New function.
15026 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15027 (convert_from_time_t): Use initialize_utc_base; compute result with
15028 64-bit arithmetic.
15029 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15030
c4605e09
EZ
150312009-01-03 Eli Zaretskii <eliz@gnu.org>
15032
9acef61c 15033 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
15034 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15035 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15036 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15037 [!subprocesses]: Define.
15038 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15039 (Flist_system_processes, Fsystem_process_attributes)
15040 [!subprocesses]: Call list_system_processes and
15041 system_process_attributes instead of returning Qnil.
15042
9acef61c
JB
15043 * dosfns.c (system_process_attributes, list_system_processes):
15044 New functions.
c4605e09
EZ
15045
15046 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15047
15048 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15049 Don't use the default (no-op) implementation.
15050
8b7d0a16
JR
150512009-01-03 Jason Rumney <jasonr@gnu.org>
15052
a6d46bc1
JR
15053 * keyboard.c (parse_modifiers_uncached): Wheel events are
15054 clicks (bug#687).
15055
8b7d0a16
JR
15056 * w32term.c (x_query_colors, x_query_color): New functions.
15057
15058 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15059 (svg_load_image): Cast returned pointers from dynamically loaded
15060 functions. Eliminate W32 specific code.
15061
bfe11752
DN
150622009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15063
89e2438a
DN
15064 * nsfns.m (x_set_foreground_color, x_set_background_color)
15065 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15066 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15067 x_ prefix instead of ns_. Update references.
15068 (syms_of_nsfns): Add a FIXME comment.
15069
15070 * nsterm.m (x_set_cursor_type): New prototype.
15071 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15072
bfe11752
DN
15073 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15074 for Solaris instead of incorrectly providing Qutime and Qcutime.
15075
031da700
EZ
150762009-01-02 Eli Zaretskii <eliz@gnu.org>
15077
15078 * w32.c (process_times): Compute sum of utime and stime.
15079 (system_process_attributes): Add Qtime to the alist.
15080
15081 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15082 and add them to the alist.
15083
15084 * process.c (top level) <Qtime, Qctime>: New variables.
15085 (syms_of_process): staticpro them.
15086 (Fsystem_process_attributes): Add their documentation to the doc
15087 string.
15088
15089 * process.h: Declare Qtime and Qctime.
15090
df23bf08
JR
150912009-01-02 Jason Rumney <jasonr@gnu.org>
15092
9acef61c 15093 * image.c (Qgobject): New symbol.
df23bf08
JR
15094 (syms_of_image): Initialize it.
15095 (init_svg_functions): Load some functions from gobject library.
15096
5bbdf7aa
DN
150972009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15098
15099 * frame.c (make_terminal_frame): Remove redundant code and useless
15100 block.
15101
63136da6
AS
151022009-01-01 Andreas Schwab <schwab@suse.de>
15103
15104 * process.c (conv_sockaddr_to_lisp): Add workaround for
15105 getsockname bug on BSD.
15106
9ef69046
CY
151072009-01-01 Chong Yidong <cyd@stupidchicken.com>
15108
d6fafbe0
CY
15109 * xfns.c (x_create_tip_frame): Set border width of the X window.
15110
51d861de 15111 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 15112
f9c34147
JR
151132009-01-01 Jason Rumney <jasonr@gnu.org>
15114
9acef61c 15115 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
15116 Don't block input, as per earlier xterm.c changes.
15117
f5497e45
AR
151182008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15119
15120 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15121 (ns_appkit_version_int): New function.
15122 (x-server-version): Use ns_appkit_version_int and follow 21+
15123 convention of returning 3 integers.
15124
c19cab20
KH
151252008-12-30 Kenichi Handa <handa@m17n.org>
15126
15127 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15128 (CHAR_SURROGATE_PAIR_P): New macro.
15129
15130 * font.h (struct font_driver): New member get_variation_glyphs.
15131
9acef61c 15132 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
15133 (Ffont_variation_glyphs): New function.
15134 (syms_of_font): Defsubr it.
15135
15136 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15137 ftfont_variation_glyphs.
15138 (setup_otf_gstring): New function.
15139 (ftfont_drive_otf): Use it.
15140 (ftfont_shape_by_flt): Handle variation selector.
15141 (ftfont_variation_glyphs): New function.
15142
28cd591f
MR
151432008-12-30 Martin Rudalics <rudalics@gmx.at>
15144
15145 * frame.c (Vemacs_iconified): Remove.
15146
7f714baf
JR
151472008-12-30 Jason Rumney <jasonr@gnu.org>
15148
15149 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 15150 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 15151
9d2d22ab
CY
151522008-12-30 Chong Yidong <cyd@stupidchicken.com>
15153
15154 * indent.c (Fvertical_motion): Don't advance iterator if we have
15155 reseated to the desired position.
15156
15157 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15158 checking for pos match.
15159
545312c2
KH
151602008-12-30 Kenichi Handa <handa@m17n.org>
15161
1ede3eb6
KH
15162 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15163 just get the low 8-bit of the code.
15164
545312c2
KH
15165 * font.c (font_intern_prop): Validate str as multibyte.
15166
bd7bbf29
DN
151672008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15168
31e0750e
DN
15169 * dispextern.h (struct face): Move lface and hash from the middle
15170 of bitfields.
15171
bd7bbf29
DN
15172 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15173
b5672e7c
DN
151742008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15175
15176 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15177 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15178 instead of intervals.h.
15179
d704470f
AS
151802008-12-26 Andreas Schwab <schwab@suse.de>
15181
15182 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15183 cons.
15184
54b33868
MR
151852008-12-26 Martin Rudalics <rudalics@gmx.at>
15186
15187 * textprop.c (Qminibuffer_prompt): New variable.
15188 (syms_of_textprop): Initialize it.
15189 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15190 in minibuffer-prompt face. (Bug#1662)
15191
40b615d6
JR
151922008-12-25 Jason Rumney <jasonr@gnu.org>
15193
15194 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15195
baae5c2d
JR
151962008-12-24 Jason Rumney <jasonr@gnu.org>
15197
15198 * ralloc.c (r_alloc_reset_variable): New function.
15199
15200 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 15201 record of what points where. (Bug#716)
baae5c2d 15202
a9051c88
DN
152032008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15204
15205 * minibuf.c (read_minibuf): Follow the non-interactive case when
15206 running as a daemon, before detaching.
15207
8b146312
AS
152082008-12-22 Andreas Schwab <schwab@suse.de>
15209
15210 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15211 * gtkutil.c (free_widget_value): Use xfree instead of free.
15212
56f2de10
MR
152132008-12-22 Martin Rudalics <rudalics@gmx.at>
15214
15215 * frame.c (delete_frame): New function derived from
15216 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15217 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15218 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15219 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15220 * frame.h: Extern delete_frame.
15221 * window.c (window_loop):
15222 * terminal.c (delete_terminal):
15223 * xterm.c (x_connection_closed):
15224 * xfns.c (Fx_hide_tip):
9acef61c 15225 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 15226
1fc200d6
JR
152272008-12-21 Jason Rumney <jasonr@gnu.org>
15228
15229 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15230 when character maps to .notdef character.
15231
5e252df2
SM
152322008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15233
15234 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15235
99b72cc4
JR
152362008-12-20 Jason Rumney <jasonr@gnu.org>
15237
15238 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 15239 a graphical frame on Windows. (Bug#1325)
99b72cc4 15240
acc49a52
JD
152412008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15242
15243 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15244
6ea15123
CY
152452008-12-20 Chong Yidong <cyd@stupidchicken.com>
15246
15247 * minibuf.c (Fread_buffer): Doc fix.
15248
b2dab6c8
JR
152492008-12-20 Jason Rumney <jasonr@gnu.org>
15250
54ea0c87 15251 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 15252 server name in UNC paths. (Bug#719)
54ea0c87 15253
b2dab6c8 15254 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 15255 charbuf. (Bug#1035)
b2dab6c8 15256
6d1921be
DN
152572008-12-19 Daniel Engeler <engeler@gmail.com>
15258
15259 * sysdep.c (serial_configure): Fix typo.
15260
53934c98
DN
152612008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15262
15263 * sysdep.c: Include alloca.h.
f4f634e8
DN
15264 (system_process_attributes): Add implementation for Solaris.
15265
15266 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 15267
06e111a6
DN
152682008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15269
15270 Reorganize implementation of Flist_system_processes and
15271 Fsystem_process_attributes. No functional changes.
15272 * process.c: Don't #include pwd.h, grp.h and limits.h.
15273 (Flist_system_processes): Just call list_system_processes.
15274 (Fsystem_process_attributes): Just call system_process_attributes.
15275 (procfs_list_system_processes, time_from_jiffies)
15276 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15277 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15278
15279 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15280 (list_system_processes): Rename from
15281 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15282 Provide a do nothing implementation.
15283 (system_process_attributes): Rename from
15284 procfs_list_system_processes.
15285 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 15286 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
15287
15288 * w32.c (list_system_processes): Rename from
15289 w32_list_system_processes.
15290 (system_process_attributes): Rename from
15291 w32_system_process_attributes.
15292
15293 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15294
15295 * process.h (w32_list_system_processes)
15296 (w32_system_process_attributes): Remove.
362654a6
JB
15297 (list_system_processes, system_process_attributes):
15298 New prototypes.
06e111a6 15299
6a705b23
KH
153002008-12-19 Kenichi Handa <handa@m17n.org>
15301
15302 * xfont.c (xfont_decode_coding_xlfd): New function.
15303 (xfont_encode_coding_xlfd): New function.
15304 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15305 (xfont_list): Decode and encode XLFD by iso-8859-1.
15306 (xfont_match): Likewise.
15307 (xfont_list_family): Likewise.
15308 (xfont_open): Likewise.
15309
d66c0241 15310 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
15311 names are utf-8.
15312
d66c0241 15313 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
15314 names are utf-8.
15315
5a130941
JD
153162008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15317
15318 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15319 changed.
bfd20325
JD
15320 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15321 clicked on a detached tool bar button.
5a130941 15322
fd95644b
DN
153232008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15324
15325 * emacs.c (main): Print and error and exit when no data is read
15326 from the pipe.
15327
e6eee6ae
JR
153282008-12-17 Jason Rumney <jasonr@gnu.org>
15329
15330 * w32font.c (w32font_has_char): Always return -1.
15331
a35dd56b
KH
153322008-12-16 Kenichi Handa <handa@m17n.org>
15333
15334 * font.c (font_open_entity): Fix previous change.
15335
0e3635c2
DN
153362008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15337
15338 * process.c: Include <limits.h>.
15339
d4835507 153402008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
15341
15342 * font.c (font_update_drivers): Fix mistake in reconstructing the
15343 driver list.
15344
153452008-12-16 Chong Yidong <cyd@stupidchicken.com>
15346
15347 * font.c (font_clear_cache): Fix format of font cache data.
15348
e2cbc401
CY
153492008-12-15 Chong Yidong <cyd@stupidchicken.com>
15350
15351 * xftfont.c (xftfont_open): Free Xft font pattern if
15352 XftFontOpenPattern fails.
15353
15354 * xterm.c (x_free_frame_resources): Remove extraneous call to
15355 free_frame_faces.
15356
b131d535
CY
153572008-12-13 Chong Yidong <cyd@stupidchicken.com>
15358
15359 * xterm.c (x_delete_display): Move xim_close_dpy call to
15360 x_delete_terminal.
15361 (x_delete_terminal): Call xim_close_dpy.
15362
e6df5336
JR
153632008-12-13 Jason Rumney <jasonr@gnu.org>
15364
15365 * w32font.c (intern_font_name): New function.
15366 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15367 (w32font_open_internal, Fx_select_font): Decode font name.
15368 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15369
15370 * w32font.h (intern_font_name): Declare new function.
15371
15372 * w32uniscribe.c (add_opentype_font_name_to_list):
15373 Use intern_font_name.
15374
20d68145
CY
153752008-12-13 Chong Yidong <cyd@stupidchicken.com>
15376
9f2554de
CY
15377 * frame.c (Fdelete_frame): Call free_font_driver_list.
15378
3d9bec9a
CY
15379 * font.c (free_font_driver_list): Implement missing function.
15380
20d68145
CY
15381 * w32term.c (w32_term_init): Don't initialize the image cache
15382 here; it will be done in init_frame_faces.
15383
15384 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
15385 (struct x_display_info): Remove unused member null_pixel.
15386 New member xim_callback_data.
20d68145
CY
15387
15388 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15389 (xim_initialize): Save pointer to callback function data.
15390 (xim_close_dpy): Free callback function data. Call XCloseIM,
15391 reverting 2008-11-04 change by David Smith.
15392 (x_term_init): Don't initialize the image cache here; it will be
15393 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15394 (x_delete_display): Free x_dnd_atoms member.
15395
96f9306b
KH
153962008-12-13 Kenichi Handa <handa@m17n.org>
15397
ef1b0ba7 15398 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 15399 Argument type changed. Handle a font-spec too.
96f9306b 15400 (font_score): Check Vface_font_rescale_alist.
6dec9044 15401 (font_open_entity): Likewise. (Bug#1547)
96f9306b 15402
ef1b0ba7 15403 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 15404
8d5b4964
CY
154052008-12-13 Chong Yidong <cyd@stupidchicken.com>
15406
15407 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15408
e6df5336
JR
154092008-12-12 Jason Rumney <jasonr@gnu.org>
15410
bba3e508
SM
15411 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15412 Set Vwindow_system_version to the real w32 major version.
e6df5336 15413
97c6058a
DN
154142008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15415
15416 * term.c (init_tty): Move setting the terminal name before the
15417 potential user: maybe_fatal.
15418
ec4e88d7
CY
154192008-12-11 Chong Yidong <cyd@stupidchicken.com>
15420
ef1b0ba7 15421 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 15422 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 15423
b4233ec9
JR
154242008-12-11 Jason Rumney <jasonr@gnu.org>
15425
8ec71e23 15426 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 15427 SYMBOL_CHARSET. (Bug#547)
8ec71e23 15428
b4233ec9 15429 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 15430 size for surrogates. (Bug#1096, bug#872)
b4233ec9 15431
011a0143
JB
154322008-12-11 Juanma Barranquero <lekktu@gmail.com>
15433
15434 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15435
3c309f34
JB
154362008-12-11 Juanma Barranquero <lekktu@gmail.com>
15437
15438 * process.c (Fsystem_process_attributes, syms_of_process):
15439 Fix typo in name of Ssystem_process_attributes.
15440 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15441
fedc6ab5
JB
154422008-12-11 Juanma Barranquero <lekktu@gmail.com>
15443
15444 * syntax.c (Fmodify_syntax_entry): Doc fix.
15445
ba3de0e8
JB
154462008-12-10 Juanma Barranquero <lekktu@gmail.com>
15447
15448 * font.c (Ffont_spec): Move usage to end of docstring.
15449
174f1c74
JR
154502008-12-10 Jason Rumney <jasonr@gnu.org>
15451
15452 * w32font.c (Qcham): New symbol.
15453 (font_supported_scripts): Add cham, and comments for other new
15454 scripts in bitfield from OpenType spec.
9d32f818
JR
15455 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15456 contain characters beyond the bmp.
174f1c74 15457
7b649478
KH
154582008-12-10 Kenichi Handa <handa@m17n.org>
15459
15460 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 15461 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
15462 Qunicode_sip.
15463
2133e2d1
JB
154642008-12-10 Juanma Barranquero <lekktu@gmail.com>
15465
15466 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15467 (Fcoding_system_put): Use QCdefault_char.
15468 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15469
9af886ee
CY
154702008-12-09 Chong Yidong <cyd@stupidchicken.com>
15471
74d819eb
CY
15472 * xftfont.c (syms_of_xftfont): Fix typo.
15473
4ccfa1c0 15474 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 15475
7c19d3ae
DN
154762008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15477
15478 * emacs.c (main): Close daemon_pipe on exec.
15479
567826bb
CY
154802008-12-08 Chong Yidong <cyd@stupidchicken.com>
15481
15482 * termchar.h (struct tty): New members termcap_term_buffer and
15483 termcap_strings_buffer.
15484
15485 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 15486 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
15487 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15488 All callers changed.
15489 (init_tty): Store termcap data and string buffers in new struct
15490 tty members termcap_term_buffer and termcap_strings_buffer.
15491 (delete_tty): Free them.
4ccfa1c0 15492 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 15493
aa96c42b
SZ
154942008-12-07 Seiji Zenitani <zenitani@mac.com>
15495
15496 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 15497 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 15498
b7e1d896
CY
154992008-12-06 Chong Yidong <cyd@stupidchicken.com>
15500
15501 * coding.c (make_conversion_work_buffer): Disable buffer
15502 modification hooks in the work buffer.
15503
b5ec91a5
EZ
155042008-12-05 Eli Zaretskii <eliz@gnu.org>
15505
15506 * process.c (procfs_system_process_attributes): If `nread' has a
15507 negative value, assign zero to it.
15508
a5d2a52b
CY
155092008-12-05 Chong Yidong <cyd@stupidchicken.com>
15510
68c5540b 15511 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 15512
7bf1bb21
KH
155132008-12-05 Kenichi Handa <handa@m17n.org>
15514
15515 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15516 second character is a combining character.
15517
2fdc7d00
EZ
155182008-12-05 Eli Zaretskii <eliz@gnu.org>
15519
15520 * process.c (procfs_system_process_attributes): Don't use cmd,
15521 cmdsize, and q without initializing them first.
15522
bf6bfba8
JR
155232008-12-04 Jason Rumney <jasonr@gnu.org>
15524
15525 * w32font.c (w32font_draw): Initialize orig_clip before getting
15526 it, and delete it when finished.
15527
a3b1a468
DN
155282008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15529
15530 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15531 case when running as a daemon before detaching.
15532
8b8be8eb
JB
155332008-12-03 Juanma Barranquero <lekktu@gmail.com>
15534
805f2638 15535 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 15536
b1bde622
KH
155372008-12-03 Kenichi Handa <handa@m17n.org>
15538
e500c47d
KH
15539 * font.c (font_at): Set `multibyte' at first.
15540
ca516334
KH
15541 * coding.c (decode_coding_charset): Check type of an element of
15542 vector VALIDS.
7bf1bb21 15543 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 15544
4ccfa1c0 15545 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
15546 (font_for_char): Likewise.
15547
1e5ecd37
CY
155482008-12-03 Chong Yidong <cyd@stupidchicken.com>
15549
d5b01609 15550 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
15551 (font_update_lface): Handle fonts with corrupted size specs,
15552 i.e. non-int and non-float.
d5b01609 15553
11e3a6e4 15554 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 15555 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 15556 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 15557
ab06788b
CY
15558 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
15559
1e5ecd37 15560 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 15561 underline_minimum_offset for underline position.
1e5ecd37 15562
63c125ab
DN
155632008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
15564
15565 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
15566
15567 * character.c (c_string_width): Specify the type for LEN.
15568
3a8406e1
KH
155692008-12-03 Kenichi Handa <handa@m17n.org>
15570
4ccfa1c0 15571 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 15572 (decode_coding_utf_8): Likewise.
4ccfa1c0 15573 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 15574 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 15575
651df7d9
CY
155762008-12-02 Chong Yidong <cyd@stupidchicken.com>
15577
15578 * keyboard.c (make_lispy_position): Only use PT if the selected
15579 window is current.
15580
1f625c6c
AS
155812008-12-02 Andreas Schwab <schwab@suse.de>
15582
f7741ce9
AS
15583 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
15584
1f625c6c
AS
15585 * doprnt.c (doprnt1): Fix size of charbuf.
15586
92bc2678
CY
155872008-12-02 Chong Yidong <cyd@stupidchicken.com>
15588
15589 * keyboard.c (timer_check): Revert last change.
15590
93b9e8cc
JB
155912008-12-02 Juanma Barranquero <lekktu@gmail.com>
15592
15593 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
15594
fd7a37d5
JB
155952008-12-01 Juanma Barranquero <lekktu@gmail.com>
15596
15597 * makefile.w32-in: Update dependencies.
15598 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
15599
c115043b
AS
156002008-12-01 Andreas Schwab <schwab@suse.de>
15601
15602 * font.c (register_font_driver): Use xmalloc.
15603 (font_put_frame_data): Likewise.
15604
f5668d2a
CY
156052008-12-01 Chong Yidong <cyd@stupidchicken.com>
15606
860d96be
CY
15607 * xfaces.c (realize_x_face): Make abort condition clearer.
15608
f5668d2a
CY
15609 * gtkutil.c (update_frame_tool_bar): Initialize variable.
15610
379c17e7
CY
156112008-11-30 Chong Yidong <cyd@stupidchicken.com>
15612
15613 * keyboard.c (timer_check): After a timer runs, ensure that the
15614 selected window's buffer is current.
15615
35f36d65
JB
156162008-11-30 Juanma Barranquero <lekktu@gmail.com>
15617
f952c61c
JB
15618 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
15619 It was accidentally restored by the Unicode merge.
15620
35f36d65
JB
15621 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
15622
b23077df
JB
156232008-11-29 Juanma Barranquero <lekktu@gmail.com>
15624
15625 * w32proc.c: Include "coding.h".
15626 (Fw32_short_file_name): Encode filename passed to Windows API.
15627 (Fw32_long_file_name): Encode filename passed to Windows API and
15628 decode back the result. (Bug#1433)
15629
b8ebe9dd
KH
156302008-11-29 Kenichi Handa <handa@m17n.org>
15631
8cc53f96
KH
15632 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
15633 not before accessing it.
15634
b8ebe9dd
KH
15635 * charset.c (Fdefine_charset_internal): After calculating
15636 min_char, max_char, and fastmap, copy the charset structure again.
15637 (encode_char): Fix the previous change.
15638
59bc82c0
SZ
156392008-11-28 Seiji Zenitani <zenitani@mac.com>
15640
15641 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
15642
15643 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
15644
15645 * nsterm.m (x_set_frame_alpha): New function.
15646
32247e3d
EZ
156472008-11-27 Eli Zaretskii <eliz@gnu.org>
15648
15649 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
15650
b003e5ff
JB
156512008-11-27 Juanma Barranquero <lekktu@gmail.com>
15652
15653 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
15654 pointer to check_face_name.
15655
708550f5
KH
156562008-11-27 Kenichi Handa <handa@m17n.org>
15657
15658 * category.h (SET_CATEGORY_SET): Call set_category_set.
15659 (set_category_set): Extern it.
15660
15661 * category.c (hash_get_category_set): New function.
bba3e508 15662 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
15663 char_table_ref_and_range. Call hash_get_category_set to get a
15664 category set to store in the table.
15665
15666 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
15667 Funify_charset.
15668
2ae37cf0 15669 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
15670 (DECODE_CHAR): Check if the decoder vector is ready.
15671 (ENCODE_CHAR): Check if the encoder char-table is ready.
15672 (maybe_unify_char): Extern it.
15673
15674 * charset.c (Vchar_unified_charset_table): Delete it.
15675 (inhibit_load_charset_map): New variable.
15676 (temp_charset_work): New variable.
15677 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
15678 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
15679 New macros.
bba3e508
SM
15680 (load_charset_map): Meaning of control_flag changed.
15681 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
15682 temp_charset_work.
15683 (load_charset): New argument control_flag.
15684 (map_charset_for_dump): New function.
15685 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
15686 map_charset_for_dump.
15687 (Fdefine_charset_internal): If the charset method is MAP, load
15688 mapping tables by calling load_charset.
15689 (Funify_charset): Don't load a mapping table but directly set
15690 Vchar_unify_table.
15691 (maybe_unify_char): New function.
15692 (decode_char): Don't handle the deleted method MAP_DEFERRED.
15693 Handle the case of inhibit_load_charset_map being nonzero.
15694 (encode_char): Don't handle the deleted method MAP_DEFERRED.
15695 Handle the case of inhibit_load_charset_map being nonzero.
15696 (Fclear_charset_maps): Just free temp_charset_work.
15697 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
15698 variable.
15699
bba3e508 15700 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
15701 change of char_table_ref_and_range.
15702 (char_table_ref_and_range): Change the meaning of argument FROM
15703 and TO. Now the caller must provide initial values for *FROM
15704 and *TO.
15705
bba3e508 15706 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
15707 char_table_ref_and_range.
15708 (fontset_get_font_group): Likewise.
15709 (Ffontset_info): Likewise.
15710
bba3e508 15711 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
15712 char_table_ref_and_range. For char-table, put boundary between
15713 non-ASCII and 8-bit characters.
15714
15715 * print.c (print_object): For bool-vector, delete unnecessary
15716 check of ASCII_BYTE_P.
15717
9196133b
JR
157182008-11-26 Jason Rumney <jasonr@gnu.org>
15719
15720 * w32font.c (w32font_open_internal): Don't include external
9acef61c 15721 leading in font height. (Bug#879)
9196133b 15722
9f688acf
GM
157232008-11-26 Glenn Morris <rgm@gnu.org>
15724
15725 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
15726 redefinition with ifdef. (Bug#1383)
15727
90d19aff
AR
157282008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15729
15730 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
15731
4ccfa1c0 157322008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
15733
15734 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
15735 New EmacsView methods.
15736 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
15737 Fixes bug #1048,1357,1414.
15738
157392008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15740
15741 Fix bug #1362.
15742 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
15743 is not an indexed color.
15744 * nsterm.m (free_indexed_color): Add argument checking.
15745 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
15746
e7d5ecb3
CY
157472008-11-24 Chong Yidong <cyd@stupidchicken.com>
15748
15749 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15750 Document confirm-after-completion value for
15751 minibuffer-completion-confirm.
15752
c285743c
JR
157532008-11-24 Jason Rumney <jasonr@gnu.org>
15754
15755 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15756 warning.
15757
b0857706
JR
157582008-11-23 Jason Rumney <jasonr@gnu.org>
15759
15760 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15761 restored before returning.
15762
15763 * w32font.c (check_face_name): New function.
15764 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 15765 fonts. (Bug#642)
b0857706 15766
ee50ff07
MR
157672008-11-22 Martin Rudalics <rudalics@gmx.at>
15768
15769 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15770 confirm-nonexistent-file-or-buffer in doc-string.
15771
b8ff72fa
SM
157722008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15773
15774 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15775 Fix copy/paste typo. Add checks.
15776
cee53ed4
KH
157772008-11-21 Kenichi Handa <handa@m17n.org>
15778
15779 * coding.c (detect_coding_iso_2022): Reject invalid composition
15780 sequence.
15781 (DECODE_COMPOSITION_START): If the current source is the last
15782 block, and the current composition doesn't end, regard this
15783 sequence as invalid.
15784 (decode_coding_iso_2022): Handle invalid composition sequence.
15785
f6ef1e65
MR
157862008-11-20 Martin Rudalics <rudalics@gmx.at>
15787
15788 * window.c (coordinates_in_window): Don't return
15789 ON_VERTICAL_BORDER for the rightmost position of a mode/header
15790 line when the window is not the rightmost one. (Bug#1372)
15791
e08b1705
MR
157922008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
15793
15794 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
15795
ad98e89f
EZ
157962008-11-15 Eli Zaretskii <eliz@gnu.org>
15797
15798 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
15799 and bright_bg if noninteractive is non-zero.
15800
fb098a4b
CY
158012008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15802
15803 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
15804 x_draw_glyph_string_background.
15805
15806 * w32term.c (x_draw_glyph_string): Likewise.
15807
ce952b6e
CY
158082008-11-15 Chong Yidong <cyd@stupidchicken.com>
15809
15810 * xterm.c (x_draw_glyph_string): Stop drawing the background of
15811 the next glyph string once past the overhang width.
15812
15813 * nsterm.m (ns_draw_glyph_string): Likewise.
15814
15815 * w32term.c (x_draw_glyph_string): Likewise.
15816
26ea7079
CY
158172008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
15818
15819 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
15820 double file close.
15821
1c33c906
MR
158222008-11-14 Martin Rudalics <rudalics@gmx.at>
15823
15824 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
15825 dedicated status of window before attempting to display another
15826 buffer in it.
15827
8fc29035
JB
158282008-11-14 Juanma Barranquero <lekktu@gmail.com>
15829
15830 * msdos.c (Fmsdos_long_file_names):
15831 (syms_of_msdos) <dos-unsupported-char-glyph>:
15832 * dosfns.c (Fint86): Fix typos in docstrings.
15833
55fb4286
EZ
158342008-11-14 Eli Zaretskii <eliz@gnu.org>
15835
15836 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
15837
3fda0315
KY
158382008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
15839
15840 * puresize.h (BASE_PURESIZE): Increase to 1260000.
15841
7e849c17
CY
158422008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
15843
15844 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
15845
15846 * frame.h: Negative alpha means "don't touch".
15847
15848 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
15849
15850 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
15851
b9fd67bd
DN
158522008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
15853
15854 * hftctl.c:
15855 * chpdef.h:
15856 * acldef.h: Remove files used only for systems no longer supported.
15857
15858 * Makefile.in: Fix .o alphabetical ordering.
15859 (hftctl.o): Remove dependency, file removed.
15860 (keymap.o, print.o): Depend on charset.h.
15861
d5998e03
KH
158622008-11-10 Kenichi Handa <handa@m17n.org>
15863
2ae37cf0 15864 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 15865
be70e183
CY
158662008-11-08 Chong Yidong <cyd@stupidchicken.com>
15867
15868 * dired.c (file_name_completion): If completion_ignore_case is
15869 enabled, ignore case when checking completion-regexp-list.
15870
7cf94eac
EZ
158712008-11-08 Eli Zaretskii <eliz@gnu.org>
15872
15873 * vm-limit.c (get_lim_data): Fix last change.
15874
ee107a89
KH
158752008-11-08 Kenichi Handa <handa@m17n.org>
15876
15877 * character.c (Fget_byte): New function.
15878 (syms_of_character): Defsubr Fget_byte.
15879
5fd15622
CY
158802008-11-07 Chong Yidong <cyd@stupidchicken.com>
15881
15882 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15883 cursor position is valid after scrolling.
15884
13d62fad
JB
158852008-11-06 Juanma Barranquero <lekktu@gmail.com>
15886
15887 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15888
a1dd2936
GM
158892008-11-06 Glenn Morris <rgm@gnu.org>
15890
15891 * xterm.c (handle_one_xevent): Don't let popup menus cause
15892 mouse-autoselect-window related window switching. (Bug#1261)
15893
860cd236
CY
158942008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15895
15896 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15897
653a3150
AS
158982008-11-04 Andreas Schwab <schwab@suse.de>
15899
15900 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15901
870f5cac
CY
159022008-11-03 Chong Yidong <cyd@stupidchicken.com>
15903
15904 * xfns.c (Fx_wm_set_size_hint): New function.
15905
1e02f3cb
MR
159062008-11-03 Martin Rudalics <rudalics@gmx.at>
15907
15908 * textprop.c (Fprevious_single_char_property_change): Return 0
15909 when there's no change in a string. (Bug#1301)
15910
e630dfc6
MR
159112008-11-02 Martin Rudalics <rudalics@gmx.at>
15912
15913 * frame.c (do_switch_frame): New argument NORECORD passed to
15914 Fselect_window.
15915 (Fselect_frame): New argument NORECORD passed to
15916 do_switch_frame.
15917 (Fset_frame_selected_window): New argument NORECORD passed to
15918 Fselect_frame.
15919 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15920 in call of do_switch_frame.
15921 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15922 Handle NORECORD argument in call of Fselect_frame.
15923 * lisp.h (do_switch_frame, Fselect_frame)
15924 (Fset_frame_selected_window): Adjust declarations.
15925 * window.c (select_frame_norecord): New function.
15926 (run_window_configuration_change_hook): Use it and call
15927 Fselect_frame with NORECORD set.
15928 (Fselect_window): Pass NORECORD to Fselect_frame.
15929 (Fset_window_configuration): Handle NORECORD argument in call of
15930 do_switch_frame.
15931 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15932 Fset_frame_selected_window.
15933 * keyboard.c (command_loop_1): Handle NORECORD in call of
15934 Fselect_frame (currently ifdefd).
15935
9020b223
GM
159362008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15937
15938 * emacs.c (USAGE2): Untabify.
15939
793ffee8
SM
159402008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15941
15942 * composite.c (fill_gstring_header): Fix copy/paste typo.
15943
ab6d1131
MR
159442008-10-31 Martin Rudalics <rudalics@gmx.at>
15945
15946 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15947 (Fother_window): Rename argument and rewrite doc-string.
15948 (select_window_norecord): Fix return value. (Bug#1276)
15949
601a9cf1
JB
159502008-10-30 Juanma Barranquero <lekktu@gmail.com>
15951
15952 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15953 new frames overriding foreground for tooltips. Based on similar patch
15954 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
15955
813b0652
CY
159562008-10-29 Chong Yidong <cyd@stupidchicken.com>
15957
15958 * emacs.c (Fdaemon_initialized): Initialize nfd.
15959
4414f58f
MR
159602008-10-29 Martin Rudalics <rudalics@gmx.at>
15961
15962 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
15963 (Fwindow_text_height): Clarify doc-strings.
15964 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
15965 doc-string of window-scroll-functions.
15966
ecdcaa09
RS
159672008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
15968
15969 * category.c (syms_of_category): Fix typo in docstring.
15970
23fe745a
JB
159712008-10-28 Juanma Barranquero <lekktu@gmail.com>
15972
15973 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
15974 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
15975 Fix typos in docstrings.
15976
ff808935
DN
159772008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
15978
15979 * emacs.c (daemon_pipe): Make non-static.
15980 (IS_DAEMON): Move definition ...
15981 * lisp.h (IS_DAEMON): ... here.
15982 (daemon_pipe): Declare.
15983 (is_daemon): Remove.
15984 * dispnew.c (init_display): Use IS_DAEMON.
15985
fc012771
SM
159862008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15987
15988 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
15989 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
15990
15991 * emacs.c (is_daemon): Remove.
15992 (main): Don't set is_daemon.
15993 (IS_DAEMON): New macro.
15994 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 15995 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
15996 parent exits.
15997 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
15998
d8bdbe6f
CY
159992008-10-27 Chong Yidong <cyd@stupidchicken.com>
16000
d1a072bf
CY
16001 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16002 over-sized glyph, draw it with the default glyph width.
16003
e2e325aa
CY
16004 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16005 glyph, draw it with the default glyph width.
16006
16007 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16008 glyph, draw it with the default glyph width.
16009
d8bdbe6f
CY
16010 * xdisp.c (try_scrolling): When computing the distance from the
16011 scroll margin to PT, try moving some distance past the window
16012 bottom before giving up.
16013
7bfac547
MR
160142008-10-27 Martin Rudalics <rudalics@gmx.at>
16015
16016 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16017 (Fset_window_buffer): Explain in doc-string that a window can be
16018 "strongly" dedicated to its buffer.
16019
4ff029f6
DN
160202008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16021
16022 * emacs.c (daemon_name): New variable.
16023 (main): Deal with --daemon=SERVER_NAME.
16024 (Fdaemonp): Return a name if one was passed to --daemon.
16025
5790ef40
DN
160262008-10-26 Romain Francoise <romain@orebokech.com>
16027
f9bd0df9 16028 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
16029 (main): Create a pipe before forking, make the parent exit only after
16030 the child has closed its end of the pipe. Move closing the
16031 descriptors ...
16032 (Fdaemon_initialized): ... here. New function.
16033
f5385255
SM
160342008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16035
4d632321
SM
16036 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16037 the previous unoptimized table.
16038
f5385255
SM
16039 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16040 the distinction between non-nil and non-t value of `dedicated'.
16041
6c56a0f3
CY
160422008-10-25 Chong Yidong <cyd@stupidchicken.com>
16043
16044 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 16045 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 16046
fec89261
MR
160472008-10-25 Martin Rudalics <rudalics@gmx.at>
16048
16049 * window.c (Fget_buffer_window, Fdelete_windows_on)
16050 (Freplace_buffer_in_windows): Make buffer argument optional and
16051 rename to buffer_or_name.
16052
34fcddd0
CY
160532008-10-24 Chong Yidong <cyd@stupidchicken.com>
16054
f5385255
SM
16055 * xdisp.c (handle_single_display_spec, handle_display_prop):
16056 Undo 2005-05-16 change.
34fcddd0
CY
16057 (handle_stop): Pop iterator if it's loaded with an empty string.
16058 (get_overlay_strings_1): Don't save iterator if it's loaded with
16059 an empty string (bug#1201).
16060
064766f2
KH
160612008-10-24 Kenichi Handa <handa@m17n.org>
16062
16063 * ftfont.c (ftfont_otf_features): Fix previous change.
16064 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16065 calling ftfont_otf_features.
16066
f9bd0df9 160672008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
16068
16069 * font.c (font_match_p): Fix for the case that a vector of
16070 characters is in script-representative-chars.
16071
1dae9197
MA
160722008-10-24 Michael Albinus <michael.albinus@gmx.de>
16073
16074 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 16075 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
16076 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16077 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 16078 macro. (Bug#1186)
1dae9197 16079
f9bd0df9 160802008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
16081
16082 * s/sol2-10.h: New file.
16083
878a4584
JB
160842008-10-23 Juanma Barranquero <lekktu@gmail.com>
16085
16086 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16087 poor beast has survived 9+ years and the jump from xterm.c!).
16088
cd265ca6
MR
160892008-10-23 Martin Rudalics <rudalics@gmx.at>
16090
16091 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16092 Reword doc-string.
f5385255 16093 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 16094
472a4dc9
JB
160952008-10-23 Juanma Barranquero <lekktu@gmail.com>
16096
16097 * character.c (syms_of_character) <script-representative-chars>:
16098 <unicode-category-table>: Doc fixes.
16099
159bd5a2
NF
161002008-10-23 Noah Friedman <friedman@splode.com>
16101
16102 * coding.c (make_conversion_work_buffer): Check that
16103 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16104 Fget_buffer_create.
16105
49f9c344
KH
161062008-10-23 Kenichi Handa <handa@m17n.org>
16107
16108 * font.c (font_add_log): Check the values of extra properties.
16109
12bb3111
MR
161102008-10-22 Martin Rudalics <rudalics@gmx.at>
16111
16112 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16113 Reword doc-string.
16114 (Fset_window_parameter): Use NILP.
16115 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 16116 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 16117
bbeb4e99
JB
161182008-10-22 Juanma Barranquero <lekktu@gmail.com>
16119
16120 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16121
161222008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
16123
16124 * nsfns.m (ns_appkit_version): New function.
16125 (x-server-version): Use it.
16126 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16127 (x-server-vendor): Don't check_ns().
16128
16129 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16130
a9b555d3
JB
161312008-10-22 Juanma Barranquero <lekktu@gmail.com>
16132
16133 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16134 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16135
4626499f
KH
161362008-10-22 Kenichi Handa <handa@m17n.org>
16137
e3681952
KH
16138 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16139 scripts.
16140
4626499f
KH
16141 * category.c (word_boundary_p): Check scripts instead of charset.
16142 Handle nil value in word-separating-categories and
16143 word-combining-categories.
16144 (syms_of_category): Fix docstrings of word-separating-categories
16145 and word-combining-categories.
16146
1560f91a
EZ
161472008-10-21 Eli Zaretskii <eliz@gnu.org>
16148
16149 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16150 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16151
f4668441
MR
161522008-10-21 Martin Rudalics <rudalics@gmx.at>
16153
16154 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16155 Rename arg "buffer" to "buffer_or_name".
16156 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16157 it optional.
16158 (no_switch_window): Remove since the return value is not used.
a9b555d3 16159 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
16160 Consider window as dedicated when Fwindow_dedicated_p returns a
16161 non-nil value.
16162 * lisp.h: Remove prototype for no_switch_window.
16163
fd75ddb2
JD
161642008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16165
16166 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 16167 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 16168
07295713
KH
161692008-10-21 Kenichi Handa <handa@m17n.org>
16170
16171 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16172 check Vlatin_extra_code_table.
16173
712adc82
EZ
161742008-10-20 Eli Zaretskii <eliz@gnu.org>
16175
16176 * fileio.c (Fset_file_modes): Doc fix.
16177
f549eb0b
MA
161782008-10-19 Michael Albinus <michael.albinus@gmx.de>
16179
16180 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16181 in arrays.
16182
aac0c6e3
MR
161832008-10-19 Martin Rudalics <rudalics@gmx.at>
16184
16185 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16186 Mention kill-buffer in doc-string.
16187 (Fset_window_buffer): Reinsert tem check removed in last commit.
16188 (Fenlarge_window, Fshrink_window): Have argument names and
16189 doc-string follow Elisp manual more closely.
16190
161912008-10-18 Eli Zaretskii <eliz@gnu.org>
16192
16193 * fileio.c (Fset_file_modes): Doc fix.
16194
161952008-10-18 Martin Rudalics <rudalics@gmx.at>
16196
16197 * window.c (Fwindow_width, Fset_window_start)
16198 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
16199 (Fdelete_windows_on, Freplace_buffer_in_windows):
16200 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
16201 (Fwindow_dedicated_p): Make window argument optional.
16202 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16203 (Fset_window_buffer): Respect any non-nil dedicated value for
16204 window. Rename "buffer" argument to "buffer_or_name".
16205
162062008-10-18 Ulrich Mueller <ulm@gentoo.org>
16207
16208 * m/sh3.h: New file, machine description for SuperH.
16209
162102008-10-17 Martin Rudalics <rudalics@gmx.at>
16211
16212 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16213
162142008-10-17 Kenichi Handa <handa@m17n.org>
16215
16216 * ftfont.c (ftfont_otf_features): Fix indexing
16217 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16218
162192008-10-16 Magnus Henoch <mange@freemail.hu>
16220
16221 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16222 (Fdbus_call_method_asynchronously): Ditto.
16223 This change makes C-h f display the argument list.
16224
162252008-10-16 Chong Yidong <cyd@stupidchicken.com>
16226
16227 * fileio.c (Fexpand_file_name): Doc fix.
16228
16229 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16230 of :foreground and :background equivalent to unspecified (20.x
16231 compatibility).
16232
162332008-10-15 Eli Zaretskii <eliz@gnu.org>
16234
16235 * buffer.c (syms_of_buffer): Doc fix.
16236
162372008-10-14 Kenichi Handa <handa@m17n.org>
16238
16239 * font.c (font_clear_prop): When clearing font width, clear the
16240 average width field too.
16241
162422008-10-12 Andreas Schwab <schwab@suse.de>
16243
16244 * ftfont.c (ftfont_shape_by_flt): Make static.
16245 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16246
16247 * font.c: Don't include <m17n-flt.h>.
16248
162492008-10-10 Eli Zaretskii <eliz@gnu.org>
16250
16251 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16252
162532008-10-09 Eli Zaretskii <eliz@gnu.org>
16254
16255 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16256 away code.
16257
162582008-10-09 Chong Yidong <cyd@stupidchicken.com>
16259
16260 * dispnew.c (update_text_area): Avoid looping due to large glyph
16261 overhangs (bug#1070).
16262
162632008-10-09 Kenichi Handa <handa@m17n.org>
16264
16265 * fontset.c (face_for_char): If face->fontset is negative, just
16266 return ascii_face.
16267
f5385255
SM
16268 * font.c (font_delete_unmatched): Fix previous change.
16269 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
16270
162712008-10-09 Martin Rudalics <rudalics@gmx.at>
16272
16273 * frame.c (Fraise_frame): On text-only terminals select frame in
16274 order to make it visible. (Bug#1061)
16275
162762008-10-08 Chong Yidong <cyd@stupidchicken.com>
16277
16278 * fontset.c (fontset_find_font): Check frame validity.
16279
162802008-10-07 Chong Yidong <cyd@stupidchicken.com>
16281
a9b555d3 16282 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
16283 (xg_display_close): Allow Emacs to close all displays (bug#985).
16284
162852008-10-06 Andreas Schwab <schwab@suse.de>
16286
f5385255 16287 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
16288
162892008-10-06 Chong Yidong <cyd@stupidchicken.com>
16290
f5385255 16291 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 16292
a9b555d3 16293 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
16294
16295 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16296 during initialization.
16297
162982008-10-04 Eli Zaretskii <eliz@gnu.org>
16299
16300 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16301 whole thing on MSDOS frames as well as on a TTY.
16302
16303 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16304 well as for TTY.
16305 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16306 well as on a TTY.
16307
16308 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16309 as well as for TTY.
16310
16311 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16312
16313 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16314 MSDOS frames as well.
16315
163162008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16317
16318 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16319 correct arguments.
b71ac3dd 16320 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
16321
163222008-10-03 Glenn Morris <rgm@gnu.org>
16323
16324 * emacs.c (USAGE1): Add --daemon.
16325
163262008-10-02 Eli Zaretskii <eliz@gnu.org>
16327
16328 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16329 100, so it's in percents as advertised.
16330
163312008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16332
16333 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16334 (ns_output.current_cursor, ns_output.desired_cursor)
16335 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16336 (FRAME_NEW_CURSOR_COLOR): Remove.
16337
16338 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 16339 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
16340 enumeration (HOLLOW_BOX_CURSOR, etc.).
16341
16342 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16343 (draw_window_cursor): Simplify code.
f5385255
SM
16344 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16345 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 16346 updates manually.
a9b555d3
JB
16347 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16348 Use core Emacs cursor types.
aac0c6e3 16349
b8ff72fa 16350 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
16351
163522008-10-02 Martin Rudalics <rudalics@gmx.at>
16353
16354 * process.c (Faccept_process_output): Fix doc-string.
16355
163562008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16357
16358 * gmalloc.c (__sbrk): Also define for uClibc.
16359
16360 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16361 for uClibc.
16362
163632008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16364
16365 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16366 styles.
16367 (nsfont_open): Reenable the cache.
16368
163692008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16370
16371 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16372 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16373
163742008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16375
16376 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16377 a suspended terminal.
16378
163792008-09-30 Michael Albinus <michael.albinus@gmx.de>
16380
16381 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16382
163832008-09-30 Eli Zaretskii <eliz@gnu.org>
16384
16385 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16386
163872008-09-30 Chong Yidong <cyd@stupidchicken.com>
16388
16389 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16390 in a continued line coincides with a line beginning.
16391
163922008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16393
16394 * nsfont.m (nsfont_trait_distance): Fix bug.
16395 (nsfont_list): Return a list rather than a vector (syncs with Handa
16396 changes of 2008-05-14).
16397 (nsfont_open): Improve logging.
16398
163992008-09-29 Andreas Schwab <schwab@suse.de>
16400
16401 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16402
164032008-09-28 Martin Rudalics <rudalics@gmx.at>
16404
16405 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16406 name as char-resolve-modifiers.
16407 Reported by: Markus Triska <markus.triska@gmx.at>
16408
164092008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16410
16411 * dispnew.c (init_display): Return earlier when running as a daemon.
16412
164132008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16414
16415 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16416
164172008-09-27 Eli Zaretskii <eliz@gnu.org>
16418
16419 * composite.c (Fcomposition_get_gstring)
16420 (Fcompose_region_internal, Fcompose_string_internal)
16421 (Ffind_composition_internal): Doc fix.
16422 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16423 (syms_of_composite) <auto-composition-function>: Doc fix.
16424 (syms_of_composite) <composition-function-table>: Doc fix.
16425
164262008-09-25 Chong Yidong <cyd@stupidchicken.com>
16427
16428 * search.c (wordify): New argument for lax word-ends.
16429 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16430
164312008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16432
16433 * lisp.h (is_daemon): Declare.
16434 * dispnew.c (init_display): Do not try to initialize the terminal
16435 when running as a daemon.
16436
164372008-09-22 Chong Yidong <cyd@stupidchicken.com>
16438
16439 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16440 x_display_pixel_height.
16441
164422008-09-22 Martin Rudalics <rudalics@gmx.at>
16443
16444 * undo.c (record_point): Don't call Fundo_boundary for first
16445 change. (Bug#731)
16446
164472008-09-22 Juanma Barranquero <lekktu@gmail.com>
16448
16449 * emacs.c (Fdaemonp): Doc fix.
16450
164512008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16452
16453 * emacs.c (main): Place #ifdef in the proper place.
16454
164552008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16456
16457 * emacs.c (standard_args): Add --daemon.
16458 (main): Disconnect from the terminal when --daemon is passed.
16459 (is_daemon): New variable.
16460 (Fdaemonp): New function.
16461 (syms_of_emacs): Defsubr it.
16462
164632008-09-20 Chong Yidong <cyd@stupidchicken.com>
16464
16465 * xdisp.c (get_next_display_element): Handle string display
16466 correctly when checking for the end of a box run.
16467
164682008-09-20 Glenn Morris <rgm@gnu.org>
16469
16470 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16471 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16472 (Frename_file): Avoid copying to trash if a rename involves
16473 a delete. (Bug#964).
16474
164752008-09-20 Eli Zaretskii <eliz@gnu.org>
16476
16477 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16478 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16479 frames as well as termcap frames.
16480 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16481 get_named_tty.
16482
164832008-09-19 Eli Zaretskii <eliz@gnu.org>
16484
16485 * process.c (procfs_system_process_attributes): Fix cmdline in
16486 case /proc/PID/cmdline is empty.
16487
16488 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16489 x_display_pixel_height.
16490
164912008-09-19 Juanma Barranquero <lekktu@gmail.com>
16492
16493 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16494
16495 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16496 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16497
164982008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16499
16500 * dispextern.h (struct it): Move line_wrap away from the middle of
16501 bitfields. Move voffset in struct iterator_stack_entry after the
16502 bitfields. Move tab_width near after another short.
16503
165042008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16505
16506 * frame.h (struct frame): Move alpha from the middle of bitfields.
16507
16508 * window.h (struct window): Move frozen_window_start_p after the
16509 rest of the bitfields to reduce padding.
16510
165112008-09-18 Chong Yidong <cyd@stupidchicken.com>
16512
16513 * xterm.h (x_display_info): Remove `height' and `width' members.
16514
16515 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16516
16517 * w32term.h (w32_display_info): Remove `height', `width',
16518 `height_in', and `width_in' members.
16519
b8ff72fa
SM
16520 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16521 New functions.
aac0c6e3
MR
16522 (x_calc_absolute_position): Use them.
16523 (x_term_init): Omit removed `height' and `width' members.
16524
b8ff72fa
SM
16525 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16526 New functions.
aac0c6e3
MR
16527 (w32_read_socket, x_calc_absolute_position): Use them.
16528 (w32_initialize_display_info, w32_term_init): Omit removed members
16529 of w32_display_info.
16530
b8ff72fa
SM
16531 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16532 New functions.
16533 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 16534
b8ff72fa
SM
16535 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16536 New functions.
aac0c6e3
MR
16537 (x_calc_absolute_position): Use them.
16538 (x_term_init): Omit removed `height' and `width' members.
16539
16540 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
16541 (compute_tip_xy):
16542 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
16543 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16544 x_display_pixel_width.
16545
165462008-09-18 Kenichi Handa <handa@m17n.org>
16547
16548 * composite.c (fill_gstring_header): Don't check FROM and TO here.
16549 (composition_compute_stop_pos): Fix handling of static composition.
16550 (Fcomposition_get_gstring): Check FROM and TO at first.
16551
165522008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
16553
46e722a9 16554 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
16555 mixup (YAILOM).
16556
165572008-09-17 Chong Yidong <cyd@stupidchicken.com>
16558
16559 * indent.c (Fvertical_motion): Use position reported by iterator
16560 instead of PT for determining screen motion (bug#943).
16561
165622008-09-17 Romain Francoise <romain@orebokech.com>
16563
16564 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
16565
165662008-09-17 Kenichi Handa <handa@m17n.org>
16567
16568 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
16569
16570 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
16571 if necessary.
16572
165732008-09-16 Kenichi Handa <handa@m17n.org>
16574
16575 * coding.c (make_conversion_work_buffer): Avoid calling
16576 Fget_buffer_create if it is not necessary.
16577
165782008-09-15 Martin Rudalics <rudalics@gmx.at>
16579
16580 * window.c (Fselect_window): Don't update window_select_count and
16581 use_time when norecord is not nil.
16582
165832008-09-14 Kenichi Handa <handa@m17n.org>
16584
16585 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
16586 specpdl_ptr.
16587
165882008-09-12 Kenichi Handa <handa@m17n.org>
16589
16590 * indent.c (scan_for_column): Don't handle automatic composition
16591 if the current buffer is not associated with a window.
16592
16593 * composite.c (composition_reseat_it): If the current buffer is
16594 not associated with a window, ignore the automatic composition.
16595 (find_automatic_composition): Likewise.
16596
165972008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16598
16599 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
16600 (Fgpm_mouse_stop): Use it.
16601 * termhooks.h (close_gpm): Declare.
16602 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
16603 connection if Gpm_GetEvent fails.
16604
16605 * window.c (set_window_buffer): Always preserve current-buffer.
16606
166072008-09-12 Glenn Morris <rgm@gnu.org>
16608
16609 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
16610
166112008-09-11 Glenn Morris <rgm@gnu.org>
16612
16613 * charset.c (charset-map-path): Doc fix.
16614
166152008-09-10 Kenichi Handa <handa@m17n.org>
16616
16617 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
16618
16619 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
16620 compose a grapheme cluster with the preceding base glyph.
16621
16622 * composite.c (composition_compute_stop_pos): Fix previous change.
16623 Reset cmp_it->id to -1 at first.
16624
166252008-09-10 Glenn Morris <rgm@gnu.org>
16626
16627 * Makefile.in (character.o, chartab.o): Fix config.h typo.
16628
166292008-09-09 Chong Yidong <cyd@stupidchicken.com>
16630
16631 * keyboard.c (read_key_sequence): Reapply translation maps when
16632 switching keyboards.
16633
166342008-09-09 Kenichi Handa <handa@m17n.org>
16635
16636 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
16637 characters.
16638
16639 * composite.c (FORWARD_CHAR): Fix calculation
16640 of (POSITION).pos_byte.
16641 (composition_compute_stop_pos): Limit the search of composition to
16642 at most 500 characters ahead. If we reach the limit or find a
16643 newline, set cmp_it->ch to -2 and return 0.
16644 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
16645
166462008-09-08 Kenichi Handa <handa@m17n.org>
16647
16648 * indent.c (Fvertical_motion): Be sure to set
16649 it_overshoot_expected if it.cmp_it.id is non-negative.
16650
166512008-09-07 Andreas Schwab <schwab@suse.de>
16652
16653 * callproc.c (Fcall_process): Don't hold references to string data
16654 across garbage collection. Move initialisation of new_argv down
16655 to avoid compiler bug.
16656
166572008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16658
16659 * process.c (Fsystem_process_attributes): Doc fix.
16660
166612008-09-07 Chong Yidong <cyd@stupidchicken.com>
16662
16663 * callproc.c (Fcall_process): Canonicalize current directory name.
16664
16665 * xdisp.c (move_it_to): When moving by vpos, ensure that the
16666 iterator advances to the next line if the current line ends in a
16667 continued tab.
16668
166692008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
16670
16671 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
16672 member to point to cmp_from.
16673
16674 * xdisp.c: Doc fix for references to gidx data member.
16675
166762008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16677
16678 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
16679
166802008-09-07 Kenichi Handa <handa@m17n.org>
16681
16682 * composite.c (FORWARD_CHAR): Check STOP after
16683 incrementing (POSITION).pos.
16684
166852008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16686
16687 * process.c (Fsystem_process_attributes): Doc fix.
16688
166892008-09-06 Chong Yidong <cyd@stupidchicken.com>
16690
16691 * keyboard.c (Ftop_level): Doc fix.
16692
166932008-09-06 Eli Zaretskii <eliz@gnu.org>
16694
16695 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
16696 minibuffer, don't let lower part of menu invade the echo area.
16697
16698 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
16699 "char *q" to access menu text and advance through it. Revert the
16700 change that displayed ">" instead of ASCII character 0x10.
16701
167022008-09-05 Eli Zaretskii <eliz@gnu.org>
16703
16704 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
16705 toggle boxes and radio buttons on MS-DOS as well.
16706
167072008-09-05 Kenichi Handa <handa@m17n.org>
16708
16709 * composite.c (autocmp_chars): Check lookback count.
16710 (composition_compute_stop_pos): Set cmp_it->lookback.
16711 (composition_reseat_it): Check lookback count.
16712 (struct position_record): New struct.
16713 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
16714 (find_automatic_composition): New function.
16715 (composition_adjust_point): Use find_automatic_composition.
16716
16717 * dispextern.h (struct composition_it): New member lookback.
16718
167192008-09-02 Chong Yidong <cyd@stupidchicken.com>
16720
16721 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
16722 if moving by a single line.
16723
167242008-09-02 Andreas Schwab <schwab@suse.de>
16725
16726 * xterm.c (x_delete_display): Fix merge error.
16727
16728 * fileio.c (Fexpand_file_name): Remove unused variables.
16729
167302008-09-02 Eli Zaretskii <eliz@gnu.org>
16731
16732 * fileio.c (Fexpand_file_name): Copy argument `name' into local
16733 storage on all platforms, not just on DOS_NT.
16734
167352008-09-02 Jason Rumney <jasonr@gnu.org>
16736
b8ff72fa
SM
16737 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
16738 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
16739
167402008-09-01 Chong Yidong <cyd@stupidchicken.com>
16741
16742 * xfaces.c (Finternal_set_alternative_font_family_alist)
16743 (Finternal_set_alternative_font_registry_alist): Properly copy
16744 entire alist structure.
16745
167462008-09-01 Kenichi Handa <handa@m17n.org>
16747
d66c0241 16748 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 16749 representative chars of the script is a vector.
d66c0241
JB
16750 (ftfont_list): Handle the case where the representative chars of
16751 the script is a vector.
aac0c6e3
MR
16752
16753 * character.c (syms_of_character): Docstring of
16754 script-representative-chars fixed.
16755
167562008-08-31 Eli Zaretskii <eliz@gnu.org>
16757
16758 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16759 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16760 the menu. Allocate larger buffer for `text', to account for
16761 possible ^C characters.
16762
167632008-08-31 Martin Rudalics <rudalics@gmx.at>
16764
16765 * xdisp.c (prepare_menu_bars): Don't call
16766 Vwindow_size_change_functions with arg Qt.
16767
167682008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16769
16770 * font.h (font_range):
16771 * fileio.c (report_file_error):
46e722a9
SM
16772 * composite.c (composition_update_it): Yet another int/Lisp_Object
16773 mixup (YAILOM).
aac0c6e3
MR
16774
167752008-08-30 Glenn Morris <rgm@gnu.org>
16776
16777 * data.c (Fmake_variable_frame_local): Doc fix.
16778
16779 * frame.c (Fmodify_frame_parameters): Doc fix.
16780
167812008-08-30 Eli Zaretskii <eliz@gnu.org>
16782
16783 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
16784 needed by GetTokenInformation.
16785 (w32_system_process_attributes): Check return values of all system
16786 APIs.
16787
16788 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
16789 only when the state changes.
16790 (IT_update_begin, IT_update_end): Add termscript trace.
16791
16792 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
16793 clipboard is unavailable. Set dst to NULL if it doesn't point to
16794 malloc'ed data.
16795 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
16796 passing random values to xfree.
16797
16798 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 16799 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
16800
168012008-08-29 Jason Rumney <jasonr@gnu.org>
16802
16803 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
16804
168052008-08-29 Eli Zaretskii <eliz@gnu.org>
16806
16807 * composite.c (fill_gstring_body): Avoid compiler warnings.
16808
16809 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
16810 LGLYPH_SET_CODE to avoid compiler warnings.
16811
2ae37cf0 16812 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
16813
16814 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
16815
16816 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
16817 LGLYPH_SET_CODE.
16818
168192008-08-29 Kenichi Handa <handa@m17n.org>
16820
16821 * fileio.c (report_file_error): Don't downcase the first character
16822 of errstring if it is still unibyte.
16823
168242008-08-29 Kenichi Handa <handa@m17n.org>
16825
16826 These changes are to re-implement the automatic composition so
16827 that it doesn't use text properties.
16828
16829 * Makefile.in (ftfont.o): Depend on composite.h.
16830 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
16831
16832 * character.h (Vunicode_category_table): Extern it.
16833
16834 * character.c (Vunicode_category_table): New variable.
16835 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
16836
16837 * chartab.c (optimize_sub_char_table): Perform more greedy
16838 optimization.
16839
b8ff72fa
SM
16840 * composite.h (enum composition_method):
16841 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
16842 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
16843 (Vcomposition_function_table): Extern it.
16844 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
16845 (composition_gstring_put_cache, composition_gstring_from_id)
16846 (composition_gstring_p, composition_gstring_width)
16847 (composition_compute_stop_pos, composition_reseat_it)
16848 (composition_update_it, composition_adjust_point): Extern them.
16849 (Fcomposition_get_gstring): EXFUN it.
16850
d66c0241 16851 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
16852 (Vcomposition_function_table)
16853 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
16854 (gstring_hash_table, gstring_work, gstring_work_headers):
16855 New variables.
aac0c6e3
MR
16856 (gstring_lookup_cache, composition_gstring_put_cache)
16857 (composition_gstring_from_id, composition_gstring_p)
16858 (composition_gstring_width, fill_gstring_header)
16859 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
16860 (composition_reseat_it, composition_update_it)
b8ff72fa 16861 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
16862 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
16863 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 16864 Defsubr composition_get_gstring.
aac0c6e3
MR
16865
16866 * dispextern.h (struct glyph): New union u.cmp. Delete the member
16867 cmp_id.
16868 (struct glyph_string): Delete the member gidx. New members
16869 cmp_id, cmp_from, and cmp_to.
16870 (enum it_method): Delete GET_FROM_COMPOSITION.
16871 (struct composition_it): New struct.
16872 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
16873 Delete c, len, cmp_id, cmp_len in u.comp.
16874
16875 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 16876 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 16877 (enum lglyph_indices): Likewise.
b8ff72fa 16878 (font_range): Adjust extern.
aac0c6e3
MR
16879 (font_fill_lglyph_metrics): Extern it.
16880
16881 * font.c (QCf): New variable.
16882 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16883 (font_prepare_composition): Delete this function.
16884 (font_range): Type and arguments changed.
16885 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16886 (font_fill_lglyph_metrics): New function.
b8ff72fa 16887 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 16888 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
16889 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16890 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
16891
16892 * fontset.h (font_for_char): Extern it.
16893
16894 * fontset.c (font_for_char): New function.
16895
16896 * ftfont.c: Include composite.h.
16897 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 16898 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
16899
16900 * indent.c: Include composite.h and dispextern.h.
16901 (check_composition): Delete this function.
16902 (scan_for_column): Handle composition by
16903 composition_compute_stop_pos, composition_reseat_it, and
16904 composition_update_it.
16905 (compute_motion): Likewise.
16906 (Fvertical_motion): Fix checking of composition.
16907
16908 * keyboard.c (adjust_point_for_property): Check composition by
16909 composition_adjust_point.
16910
b8ff72fa 16911 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
16912 struct glyph_string.
16913
b8ff72fa
SM
16914 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16915 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
16916 struct glyph.
16917 (produce_composite_glyph): Likewise.
16918
b8ff72fa
SM
16919 * w32term.c (x_draw_composite_glyph_string_foreground):
16920 Adjust for the change of struct glyph_string.
aac0c6e3
MR
16921 (x_draw_glyph_string): Likewise.
16922
16923 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16924 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16925
16926 * xdisp.c: Include font.h.
16927 (it_props): Delete the entry for Qauto_composed.
16928 (init_iterator): Initialize it->cmp_it.id to -1.
16929 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 16930 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
16931 (handle_auto_composed_prop): Delete it.
16932 (handle_composition_prop): Handle only static composition.
16933 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16934 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 16935 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
16936 (pop_it): Likewise.
16937 (get_next_element): Delete next_element_from_composition.
16938 (CHAR_COMPOSED_P): New macro.
16939 (get_next_display_element): For automatic composition, get a face
16940 from the font in the glyph-string.
16941 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 16942 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
16943 (next_element_from_string): Check if the character at the current
16944 position is composed by CHAR_COMPOSED_P.
16945 (next_element_from_buffer): Likewise.
d66c0241
JB
16946 (next_element_from_composition): Adjust for the change of struct it.
16947 Update it->cmp_it.
b8ff72fa
SM
16948 (dump_glyph): Adjust for the change of struct glyph.
16949 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
16950 it and struct glyph. Don't handle automatic composition here.
16951 (fill_gstring_glyph_string): New function.
16952 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 16953 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
16954 (BUILD_GSTRING_GLYPH_STRING): New macro.
16955 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
16956 automatic composition.
b8ff72fa 16957 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 16958 struct glyph.
b8ff72fa 16959 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 16960
b8ff72fa 16961 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
16962 the change of struct glyph_string.
16963 (x_draw_glyph_string): Likewise.
16964
169652008-08-29 Glenn Morris <rgm@gnu.org>
16966
16967 * buffer.c (word-wrap): Doc fix.
16968 * xdisp.c (truncate-partial-width-windows): Doc fix.
16969 Increase default to 50.
16970
169712008-08-29 Chong Yidong <cyd@stupidchicken.com>
16972
16973 * xdisp.c (update_tool_bar_unwind): New function.
16974 (update_tool_bar): Temporarily set selected frame before building
16975 tool-bar items.
16976
169772008-08-28 Michael Albinus <michael.albinus@gmx.de>
16978
16979 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
16980 snprintf, respectively.
16981 (xd_append_arg): Convert strings with Fstring_make_unibyte.
16982
169832008-08-28 Chong Yidong <cyd@stupidchicken.com>
16984
16985 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
16986 LDFLAGS to GNUstep CC invocation.
16987
169882008-08-27 Chong Yidong <cyd@stupidchicken.com>
16989
16990 * indent.c (Fvertical_motion): Revert last change. Handle the
16991 general case where we are moving forward, and PT spans multiple
16992 screen lines.
16993
16994 * eval.c (find_handler_clause): Temporarily increase
16995 max-lisp-eval-depth while printing the backtrace buffer, to
16996 guarantee that help-mode code can run.
16997
169982008-08-27 Eli Zaretskii <eliz@gnu.org>
16999
17000 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17001 colors under -rv.
17002 (IT_set_frame_parameters): Don't swap foreground and background
17003 colors if `(reverse . t)' is present in the frame properties.
17004 (internal_terminal_init): Call init_frame_faces only for the
17005 initial frame.
17006
170072008-08-27 Andreas Schwab <schwab@suse.de>
17008
17009 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17010
170112008-08-27 Andreas Schwab <schwab@suse.de>
17012
17013 * search.c (search_buffer): Set char_base to zero only at the end.
17014
170152008-08-27 Kenichi Handa <handa@m17n.org>
17016
b8ff72fa 17017 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
17018
170192008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17020
17021 * xterm.c (x_term_init): Temporarily hide the partially
17022 initialized terminal while calling vendor-specific-keysyms.
17023
170242008-08-26 Eli Zaretskii <eliz@gnu.org>
17025
17026 * msdos.c (internal_terminal_init): Most initializations done only
17027 once, especially initial_screen_colors[] and termscript open.
17028
170292008-08-26 Chong Yidong <cyd@stupidchicken.com>
17030
17031 * eval.c (Fcondition_case): Doc fix.
17032
17033 * widgetprv.h (EmacsFramePart): Change font member to the new font
17034 struct.
17035
17036 * widget.c: Include character.h and font.h for XSETFONT.
17037 (setup_frame_gcs): Compute X font id from font struct, just once.
17038
170392008-08-26 Eli Zaretskii <eliz@gnu.org>
17040
17041 * term.c (get_named_tty): Fix last change.
17042
170432008-08-26 Chong Yidong <cyd@stupidchicken.com>
17044
17045 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 17046 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
17047
170482008-08-25 Eli Zaretskii <eliz@gnu.org>
17049
17050 * frame.c (do_switch_frame): Mark previously displayed frame as
17051 obscured for FRAME_MSDOS_P frames as well.
17052
170532008-08-24 Eli Zaretskii <eliz@gnu.org>
17054
17055 * frame.c (make_terminal_frame): Initialize f->terminal,
17056 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17057 Set the top frame to newly created frame.
17058 (Fmake_terminal_frame): Reuse the_only_display_info.
17059
17060 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17061 estimating available memory.
17062
b97439ce 170632008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
17064
17065 * nsterm.m (ns_draw_window_cursor): Don't call
17066 NSDisableScreenUpdates and NSEnableScreenUpdates on
17067 non-NS_IMPL_COCOA systems.
17068
170692008-08-23 Andreas Schwab <schwab@suse.de>
17070
17071 * process.c (procfs_system_process_attributes): Fix use of
17072 uninitialized variables.
17073
170742008-08-23 Eli Zaretskii <eliz@gnu.org>
17075
17076 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17077
17078 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17079 calling tty-set-up-initial-frame-faces.
17080
b8ff72fa
SM
17081 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17082 Allow MSDOS frames along with X frames.
aac0c6e3
MR
17083
17084 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17085 addition to output_termcap.
17086
17087 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17088
17089 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17090 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17091 highlight.
17092
17093 * process.c [!subprocesses]: Define QCname.
17094 (syms_of_process): Intern and staticpro it.
17095
17096 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
17097 Adjust for changes in encoding/decoding routines.
17098 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
17099 encode_coding and decode_coding.
17100
b8ff72fa 17101 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
17102
17103 * dosfns.c: Include frame.h before termhooks.h.
17104 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17105 variable termscript.
17106
17107 * s/msdos.h (USER_FULL_NAME): Define.
17108 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17109
17110 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17111 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17112 pw->pw_gecos.
17113
17114 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17115 SELECTED_FRAME as additional (1st) argument.
17116 (tty_read_avail_input): Handle output_msdos_raw in
17117 addition to output_termcap.
17118
17119 * msdos.c: Include frame.h before termhooks.h.
17120 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17121 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17122 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17123 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17124 (IT_set_terminal_modes, IT_reset_terminal_modes)
17125 (IT_set_frame_parameters): Use tty->termscript instead of a global
17126 variable termscript.
17127 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17128 global variable terminal_coding. Don't refer to
17129 Vnonascii_translation_table.
17130 (internal_terminal_init): Set Vwindow_system in current_kboard.
17131 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17132 Announce date and time of session start, if termscript is open.
17133 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
17134 term.c:init_tty). Open termscript only of not already open.
17135 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
17136 here instead of dos_ttraw. Don't initialize display if this is an
17137 initial tty. Don't set FRAME_FONT.
17138 (Vwindow_system_version): Bump to 23.
17139 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17140 is available, set up mouse_position_hook.
17141 (dos_ttraw, IT_set_terminal_modes): If called with initial
17142 terminal, do nothing.
17143 (IT_set_frame_parameters): Handle the Qtty_type frame
17144 parameter by calling internal_terminal_init.
17145 (dos_set_window_size, show_mouse_face)
17146 (clear_mouse_face, IT_note_mode_line_highlight)
17147 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17148 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17149 (initialize_msdos_display): New function.
17150 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17151 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17152 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17153 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 17154 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
17155 (request_sigio, unrequest_sigio): Don't define, now defined on
17156 sysdep.c.
17157 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17158
17159 * term.c [MSDOS]: Include msdos.h.
17160 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17161 conditional to DOS_NT. Allow only one call to this function in a
17162 session. Don't allocate a new struct tty_display_info; instead,
17163 reuse the_only_display_info. Call get_tty_size to get screen
17164 dimensions. Call init_baud_rate to set bad_rate.
17165 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17166 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 17167 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
17168 (get_tty_terminal, get_named_tty, Ftty_type)
17169 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17170 output_termcap.
b8ff72fa
SM
17171 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17172 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 17173 only when subprocesses are supported.
aac0c6e3
MR
17174
17175 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17176 f->output_data.x.
17177 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17178 terminal devices.
17179
5582fbc7 17180 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
17181 x_output.
17182 (FRAME_FONT): Use output_data.tty.
17183 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
17184 (struct x_display_info): Rename from display_info. Update all users in
17185 msdos.c.
aac0c6e3 17186 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 17187 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
17188 (dos_ttraw): Update prototype.
17189
17190 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17191 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17192
171932008-08-23 Jason Rumney <jasonr@gnu.org>
17194
17195 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17196 (fn_TIFFSetDirectory): New library function used.
17197 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17198 (tiff_load): Use :index to select among multiple images. Set count
17199 property when multiple images exist.
17200 (gif_format): Use :index, not :image.
17201
172022008-08-23 Chong Yidong <cyd@stupidchicken.com>
17203
17204 * xdisp.c (try_scrolling): Check INT_MAX instead of
17205 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17206 to obtain INT_MAX.
17207
172082008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17209
17210 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17211
172122008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17213
17214 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17215 GNUstep library location.
17216
172172008-08-21 Chong Yidong <cyd@stupidchicken.com>
17218
17219 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17220 before using it.
17221
17222 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17223
172242008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17225
17226 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17227 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17228 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17229 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17230 (EmacsApp-cursor_blink_handler): Remove declaration.
17231 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17232 match 01 Feb 2008 changes in xterm.c.
17233 (ns_read_socket): Add cast to avoid warning.
17234 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17235 GNUstep.
17236
172372008-08-20 Chong Yidong <cyd@stupidchicken.com>
17238
17239 * xselect.c (x_get_foreign_selection): Return nil if desired
17240 selection could not be obtained, instead of signalling an error.
17241
172422008-08-20 David Reitter <david.reitter@gmail.com>
17243
17244 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17245 * nsterm.m: Remove ns-specific code for cursor blinking.
17246 (ns_draw_window_cursor): Clear cursor properly rather than
17247 redrawing the area. Respect width of bar cursors.
17248 These changes enable the use of generic blink-cursor-mode and
17249 generic cursor types in NS and support smooth cursor movements (do
17250 not blink off after command).
17251 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17252 Nextstep, too.
17253
172542008-08-19 Kenichi Handa <handa@m17n.org>
17255
17256 * font.c (Vfont_log_deferred): New variable.
17257 (font_add_log): Check Vfont_log_deferred.
17258 (font_deferred_log): New function.
17259
17260 * font.h (font_deferred_log): Extern it.
17261
17262 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17263 for sorting.
17264 (face_for_char): Use deferred log.
17265
172662008-08-18 Kenichi Handa <handa@m17n.org>
17267
17268 * fontset.c (face_for_char): Add font log.
17269
17270 * font.c (font_add_log): Add the font properties :script, :lang,
17271 and :otf in the log.
17272
172732008-08-17 Chong Yidong <cyd@stupidchicken.com>
17274
17275 * xdisp.c: Remove dead code.
17276 (handle_invisible_prop, next_overlay_string): Defer call to
17277 setup_for_ellipsis.
17278 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17279
172802008-08-15 Chong Yidong <cyd@stupidchicken.com>
17281
17282 * xfaces.c (lookup_derived_face): Properly handle possible zero
17283 return value of get_lface_attributes.
17284 (merge_faces): Don't tell lookup_derived_face to signal an error
17285 if face is not found.
17286
17287 * dired.c (Fdirectory_files): Doc fix.
17288
17289 * process.c (make_process): Initialize kill_without_query struct
17290 member.
17291
172922008-08-15 Eli Zaretskii <eliz@gnu.org>
17293
17294 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17295 Alternative calculation of totphys for Visual Studio 6.
17296
17297 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17298
17299 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17300 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17301 All users changed.
17302 (stat): Only root directory passed to GetDriveType. Allow RAM
17303 disk as well as local fixed disk when w32-get-true-file-attributes
17304 is set to `local'.
17305 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17306 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17307 (w32_cached_id, w32_add_to_cache): New functions.
17308 (get_name_and_id): Look account names in the cache before calling
17309 lookup_account_sid.
17310 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17311 New initialization flags.
17312 (globals_of_w32): Initialize them to zero.
17313 (w32_system_process_attributes): Use w32_cached_id and
17314 w32_add_to_cache.
17315
173162008-08-14 Lawrence Mitchell <wence@gmx.li>
17317
17318 * lread.c (Fread_char, Fread_char_exclusive): If no character
17319 event is read before timeout is reached, return nil, rather than
17320 converting to a number.
17321
173222008-08-14 Chong Yidong <cyd@stupidchicken.com>
17323
17324 * fns.c (use_dialog_box): Doc fix.
17325
17326 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17327 on OS X.
17328
173292008-08-13 Chong Yidong <cyd@stupidchicken.com>
17330
17331 * frame.c (Qns_parse_geometry): New var.
17332 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17333
173342008-08-11 Chong Yidong <cyd@stupidchicken.com>
17335
17336 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17337 space character in calculating tabs.
17338
173392008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17340
17341 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17342
173432008-08-10 Glenn Morris <rgm@gnu.org>
17344
17345 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17346 silence gcc "limited range of data type" warnings in some
17347 make_fixnum_or_float calls.
17348
173492008-08-09 Eli Zaretskii <eliz@gnu.org>
17350
17351 * w32.c (w32_system_process_attributes): If the process does not
17352 exist, return nil.
17353
17354 * w32.c: Include thelp32.h, psapi.h and coding.h.
17355 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17356 declarations.
17357 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17358 (Process32Next_Proc): New typedefs.
17359 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17360 (g_b_init_process32_next, g_b_init_open_thread_token)
17361 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17362 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17363 (g_b_init_get_process_working_set_size)
17364 (g_b_init_global_memory_status_ex): New static variables.
17365 (globals_of_w32): Initialize them.
17366 (create_toolhelp32_snapshot, process32_first, process32_next)
17367 (open_thread_token, impersonate_self, revert_to_self)
17368 (get_process_memory_info, get_process_working_set_size)
17369 (global_memory_status, global_memory_status_ex): New wrapper
17370 functions.
17371 (w32_list_system_processes, w32_system_process_attributes)
17372 (enable_privilege, restore_privilege, ltime, process_times):
17373 New functions.
17374 (convert_time_raw): New function.
17375 (convert_time): Remove conversion of FILETIME into time in 100
17376 nsec units, call convert_time_raw instead.
17377
17378 * process.h (w32_list_system_processes, w32_system_process_attributes):
17379 Add prototypes.
17380 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17381 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17382 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17383 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17384
17385 * process.c (Fsystem_process_attributes): Doc fix.
17386
173872008-08-08 Chong Yidong <cyd@stupidchicken.com>
17388
17389 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17390 a continued multi-char glyph; if so, advance to the actual glyph.
17391
173922008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17393
17394 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17395
17396 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17397 (.m.o): Use it.
17398 * config.in: Regenerate.
17399
174002008-08-07 Chong Yidong <cyd@stupidchicken.com>
17401
17402 * xdisp.c (redisplay_window): Revert last change.
17403 (try_window): Check bottom scroll margin too.
17404
174052008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17406
17407 * config.in: Regenerate.
17408
17409 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17410 -list-load-path-shadows'.
17411 (nsgui.h): Reduce number of things depending on it.
17412
174132008-08-06 Chong Yidong <cyd@stupidchicken.com>
17414
17415 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17416 instead of window-end which does the wrong thing at eob.
17417 (try_cursor_movement): Minor optimization.
17418 (redisplay_window): If scroll margin is defined, don't assume
17419 window doesn't need scrolling.
17420
174212008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17422
17423 * config.in: Regenerate.
17424
17425 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17426 (mostlyclean): Don't delete *.d under NS.
17427
17428 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17429
174302008-08-06 Kenichi Handa <handa@m17n.org>
17431
17432 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17433
174342008-08-06 Andreas Schwab <schwab@suse.de>
17435
17436 * config.in: Regenerate.
17437
174382008-08-05 Chong Yidong <cyd@stupidchicken.com>
17439
17440 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17441 forcing a window start.
17442
17443 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17444 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17445
174462008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17447
17448 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17449 argument.
17450
174512008-08-05 Juanma Barranquero <lekktu@gmail.com>
17452
17453 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17454 <scroll-down-aggressively, before-change-functions>:
17455 <after-change-functions>: Reflow docstrings.
17456
174572008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 17458 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
17459
17460 Dock menu customization, based on a patch by Ken Raeburn, plus some
17461 other fixes.
17462 * nsmenu.m (dockMenu): New variable.
17463 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17464
17465 * nsterm.h (dockMenu): Declare.
17466
17467 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17468 (ns_term_init): Initialize dockMenu.
17469 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17470 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17471 left.
17472
17473 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17474
174752008-08-04 Chong Yidong <cyd@stupidchicken.com>
17476
17477 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17478
17479 * config.in: Regenerate.
17480
174812008-08-04 Seiji Zenitani <zenitani@mac.com>
17482
17483 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17484
174852008-08-04 Chong Yidong <cyd@stupidchicken.com>
17486
17487 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17488
174892008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17490
17491 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17492
17493 * keyboard.h: Comment an #endif.
17494
17495 * lisp.h (have_menus_p): Adjust comment.
17496
17497 * menu.c (find_and_return_menu_selection): Fix comparison with
17498 client_data.
17499
17500 * nsmenu.m (popup_activated_flag): New variable.
17501 (popup_activated): New function.
17502 (menu-or-popup-active-p): New exported lisp definition.
17503 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17504 when popup done.
17505 (ns_popup_dialog): Set popup_activated_flag.
17506
17507 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17508 version for GNUstep (handled by conditional typedef in nsterm.m).
17509 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17510 in rgb.txt).
17511
17512 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17513
17514 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17515
17516 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17517
17518 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17519 shortcircuit if popup_activated like GTK and X toolkit.
17520
17521 * m/inter386.h: Change DARWIN to DARWIN_OS.
17522
17523 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17524 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
17525 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17526 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
17527
175282008-08-03 Chong Yidong <cyd@stupidchicken.com>
17529
17530 * nsterm.m (windowDidResize): Remove stopModal call.
17531
175322008-08-03 Andreas Schwab <schwab@suse.de>
17533
17534 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17535 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17536
175372008-08-02 Chong Yidong <cyd@stupidchicken.com>
17538
17539 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17540 Don't use uninitialized pointer variable when using getrlimit.
17541
175422008-08-02 Jason Rumney <jasonr@gnu.org>
17543
17544 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
17545
175462008-08-02 Eli Zaretskii <eliz@gnu.org>
17547
17548 * alloc.c (NSTATICS): Bump to 0x640.
17549
17550 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
17551
17552 * lisp.h: Add prototype for directory_files_internal.
17553
17554 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
17555 New functions.
17556 (syms_of_process): Defsubr them. Add initializations for various
17557 Q* symbols used in procfs_system_process_attributes.
17558 (procfs_list_system_processes, procfs_system_process_attributes)
17559 [HAVE_PROCFS]: New functions.
17560 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
17561 (procfs_get_total_memory): New functions.
17562
175632008-08-01 Juanma Barranquero <lekktu@gmail.com>
17564
17565 * xfaces.c (Fx_load_color_file): Fix previous change;
17566 it is #ifdef WINDOWSNT, not WINDOWS_NT.
17567
175682008-08-01 Michael Albinus <michael.albinus@gmx.de>
17569
17570 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
17571
175722008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17573
17574 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
17575
175762008-08-01 Chong Yidong <cyd@stupidchicken.com>
17577
17578 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
17579
17580 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
17581 define NSApplicationDelegateReplySuccess.
17582 (EmacsView -converstationIdentifier): Use long instead of
17583 NSInteger for GNUstep, since it doesn't have NSInteger.
17584
17585 * xmenu.c: Revert last change.
17586
17587 * keyboard.h: Fix last change.
17588
175892008-08-01 Juanma Barranquero <lekktu@gmail.com>
17590
17591 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
17592 on Windows.
17593
175942008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17595
17596 Warning clearing and clean-up in NS port.
17597 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
17598 Add prototypes.
17599 * nsgui.h (FACE_DEFAULT): Remove, unused.
17600 (XGCValues): Change colors to unsigned long.
17601 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
17602 nsterm.m.
17603 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
17604 (ns_list_fonts): Remove, unused.
17605 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
17606 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
17607 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
17608 (nsfont_draw): Compare face colors to 0, not nil.
17609 * nsmenu.m (struct widget_value): Drop unneeded declaration.
17610 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
17611 (-addSubmenuWithTitle:): Use NSMenuItem class.
17612 (ns_popup_menu): Use NO, not NULL, for enabled setting.
17613 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
17614 (ns_clip_to_row): Make gc arg a BOOL.
17615 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
17616 ns_clip_to_row() call.
17617 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
17618 used). Cast FRAME_FONT assignments.
17619 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
17620 (ns_string_to_lispmod): Change arg to const char.
17621 (ns_term_init): Use NSMenuItem class.
17622 (EmacsApp -openFile:): Move to different section of file.
17623 (EmacsApp -application:openFiles:): Don't return a value, call
17624 -replyToOpenOrPrint:.
17625 (EmacsView -keyDown:): Fix up cast.
17626 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
17627 (EmacsView -menuDown:): Cast tag in call to
17628 find_and_call_menu_selection().
17629 (ns_list_fonts): Remove, unused.
17630 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
17631 (ns_fontname_to_xlfd): Make static.
17632 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
17633 Remove prototypes (now in keyboard.h).
17634 (next_menubar_widget_id): Remove, unused.
17635 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
17636 Remove prototypes (now in keyboard.h).
17637 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
17638
176392008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
17640
17641 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
17642 (floatfns.o): Depend on syssignal.h.
17643 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
17644
17645 * systty.h: Fix previous change that removed BSD_TERMIOS.
17646 Add comments to #ifdefs.
17647
176482008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17649
17650 * w32fns.c (w32-load-color-file): Remove.
17651 (x-open-connection): Use renamed Fx_load_color_file.
17652 * xfaces.c (x-load-color-file): Add.
17653 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
17654 Emacs.clr.
17655 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
17656
176572008-07-31 Michael Albinus <michael.albinus@gmx.de>
17658
17659 * dbusbind.c (Fdbus_call_method_asynchronously)
17660 (Fdbus_method_error_internal): New defuns.
17661 (xd_read_message): Handle also reply messages.
17662 (Vdbus_registered_functions_table): Extend docstring.
17663
176642008-07-31 Juanma Barranquero <lekktu@gmail.com>
17665
17666 * keyboard.c (gobble_input): Fix previous change.
17667
176682008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17669
17670 * bitmaps/README:
17671 * xfns.c:
17672 * termcap.c:
17673 * term.c:
17674 * syswait.h:
17675 * systty.h:
17676 * systime.h:
17677 * syssignal.h:
17678 * sysdep.c:
17679 * process.h:
17680 * process.c:
17681 * print.c:
17682 * ndir.h:
17683 * lread.c:
17684 * keyboard.c:
17685 * getpagesize.h:
17686 * floatfns.c:
17687 * fileio.c:
17688 * emacs.c:
17689 * doc.c:
17690 * dispnew.c:
17691 * dired.c:
17692 * data.c:
17693 * callproc.c:
17694 * buffer.c:
17695 * README:
17696 * Makefile.in:
17697 * s/template.h:
17698 * s/msdos.h:
17699 * m/vax.h: Remove VMS support.
17700 * s/vms.h:
17701 * vlimit.h:
17702 * uaf.h:
17703 * temacs.opt:
17704 * param.h:
17705 * ioctl.h: Remove file.
17706
177072008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17708
17709 * s/ms-w32.h (MULTI_KBOARD): Remove.
17710 * xterm.c:
17711 * xselect.c:
17712 * xfns.c:
17713 * window.c:
17714 * w32term.c:
17715 * w32fns.c:
17716 * terminal.c:
17717 * termhooks.h:
17718 * term.c:
17719 * sysdep.c:
17720 * keyboard.h:
17721 * keyboard.c:
17722 * frame.h:
17723 * frame.c:
17724 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
17725 * config.in: Regenerate.
17726
177272008-07-30 Jason Rumney <jasonr@gnu.org>
17728
17729 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
17730
17731 * w32font.c (w32font_encode_char): Leave as unicode if in range.
17732 (w32font_open_internal): Get unicode version of textmetrics.
17733 Don't enable or disable glyph indices here.
17734 (w32font_open): Disable use of glyph indices.
17735
17736 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
17737
177382008-07-30 Chong Yidong <cyd@stupidchicken.com>
17739
17740 * minibuf.c (Vread_buffer_function): Doc fix.
17741
177422008-07-30 John Paul Wallington <jpw@pobox.com>
17743
17744 * minibuf.c (read_buffer_completion_ignore_case): New var.
17745 (Fread_buffer): Use it.
17746
177472008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17748
17749 * systty.h (sensemode): Remove empty #if. Remove reference to
17750 BSD_TERMIOS, unused.
17751
17752 * sysdep.c: Remove reference to DGUX.
17753 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17754
17755 * config.in: Regenerate.
17756
177572008-07-30 Jason Rumney <jasonr@gnu.org>
17758
17759 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17760
177612008-07-29 Jason Rumney <jasonr@gnu.org>
17762
17763 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17764 is populated.
17765 (uniscribe_encode_char): Always use uniscribe.
17766 Avoid using context if cache is populated.
17767
177682008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17769
17770 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17771 open menu.
17772
17773 * gtkutil.c (menu_nav_ended): Remove.
17774 (create_menus): Remove signal connect for menu_nav_ended.
17775
177762008-07-28 Chong Yidong <cyd@stupidchicken.com>
17777
17778 * xdisp.c (redisplay_window): Check return value of
17779 compute_window_start_on_continuation_line before forcing a window
17780 start.
17781
177822008-07-28 Jason Rumney <jasonr@gnu.org>
17783
17784 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
17785
17786 * w32term.c (w32_enable_unicode_output, cleartype_active):
17787 Remove obsolete display options.
17788 (x_draw_glyph_string_background): Don't use old cleartype_active
17789 workaround.
17790 (w32_initialize): Remove cleartype_active initialization.
17791 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
17792
177932008-07-28 Andreas Schwab <schwab@suse.de>
17794
17795 * lisp.h (init_weak_hash_tables, syms_of_font)
17796 (xd_read_queued_messages, syms_of_dbusbind): Declare.
17797 (remove_hash_entry): Don't declare.
17798 * eval.c (maybe_call_debugger): Make static and move before use.
17799 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
17800 * xdisp.c: Include "gtkutil.h" if USE_GTK.
17801 * xterm.h (x_set_frame_alpha): Declare.
17802
178032008-07-28 Jan Djärv <jan.h.d@swipnet.se>
17804
17805 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
17806 (create_menus): Connect selection-done to menu_nav_ended.
17807
178082008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17809
17810 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
17811 Set Vx_resource_name to a fallback. Replace read of 'buffered'
17812 parameter with read of 'alpha' one.
17813 (Qns_frame_parameter): Remove.
5582fbc7 17814 * nsselect.m (selection-coding-system)
aac0c6e3
MR
17815 (next-selection-coding-system, Vselection_coding_system)
17816 (Vnext_selection_coding_system): Drop.
17817
178182008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17819
17820 * nsfns.m (do-applescript, do_applescript): Rename to
17821 ns-do-applescript, ns_do_applescript, and move within file.
17822
178232008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
17824
17825 Remove support for Mac Carbon.
17826 * mactoolbox.c:
17827 * macterm.h:
17828 * macterm.c:
17829 * macselect.c:
17830 * macmenu.c:
17831 * macgui.h:
17832 * macfns.c:
17833 * mac.c: Remove file.
17834 * s/darwin.h:
17835 * m/intel386.h:
17836 * xfaces.c:
17837 * xdisp.c:
17838 * window.c:
17839 * tparam.c:
17840 * termhooks.h:
17841 * termcap.c:
17842 * term.c:
17843 * syssignal.h:
17844 * sysselect.h:
17845 * sysdep.c:
17846 * process.c:
17847 * lread.c:
17848 * lisp.h:
17849 * keyboard.c:
17850 * image.c:
17851 * fringe.c:
17852 * frame.h:
17853 * frame.c:
17854 * fontset.c:
17855 * font.h:
17856 * font.c:
17857 * fns.c:
17858 * fileio.c:
17859 * emacs.c:
17860 * dispnew.c:
17861 * dispextern.h:
17862 * config.in:
17863 * atimer.c:
2ae37cf0 17864 * Makefile.in: Remove code for Carbon.
aac0c6e3 17865
f0131492 178662008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
17867
17868 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
17869
178702008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17871
17872 * macterm.h (kCGBitmapByteOrder32Host): New define for
17873 non-universal SDKs.
17874
17875 * image.c (mac_create_cg_image_from_image, image_load_image_io)
17876 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17877
17878 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17879 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17880
178812008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17882
17883 * w32inevt.c: Include dispextern.h.
17884
178852008-07-26 Andreas Schwab <schwab@suse.de>
17886
17887 * print.c (print_object): Fix off-by-one in last change.
17888
178892008-07-25 Juanma Barranquero <lekktu@gmail.com>
17890
17891 * term.c (syms_of_term): Don't initialize default_orig_pair,
17892 default_set_foreground and default_set_background on Windows.
17893
178942008-07-25 Jason Rumney <jasonr@gnu.org>
17895
17896 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17897 ScriptItemize. Clean up return value checking. Remove unused
17898 variables.
17899 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17900 shaping engine.
17901
17902 * w32font.c (w32font_has_char): Handle the case where we can't
17903 determine the script for a character.
17904
179052008-07-25 Chong Yidong <cyd@stupidchicken.com>
17906
17907 * term.c (syms_of_term): Initialize default_orig_pair,
17908 default_set_foreground, and default_set_background.
17909
17910 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17911 clash (bug#86).
17912 (getloadavg): Callers changed.
17913
17914 * image.c (svg_load_image): Fix last change.
17915 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17916 image size is valid. Use g_object_unref instead of deprecated
17917 rsvg_handle_free to free rsvg handle.
17918 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17919
179202008-07-25 Jason Rumney <jasonr@gnu.org>
17921
17922 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17923 surrogates before looking up glyph index.
17924 (w32font_text_extents): Encode as surrogates if falling back to
17925 functions that need UTF-16 wide chars.
17926
17927 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17928 BMP as surrogates before looking up glyph index.
17929
179302008-07-25 Chong Yidong <cyd@stupidchicken.com>
17931
17932 * image.c (svg_load_image): Check for failure in return value of
17933 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17934
179352008-07-25 Jason Rumney <jasonr@gnu.org>
17936
17937 * w32font.c (Fx_select_font): Reverse sense of second arg.
17938
179392008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17940
17941 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17942 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17943
17944 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17945 (PURESIZE): Use it.
17946
179472008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17948
17949 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17950 * m/alpha.h (TEXT_END):
17951 * m/ibmrs6000.h (TEXT_END):
17952 * m/macppc.h (TEXT_END):
17953 * s/darwin.h (TEXT_END):
17954 * s/msdos.h (TEXT_END): Remove, unused.
17955 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
17956 * s/cygwin.h: Remove comment.
17957
17958 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
17959 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
17960 * m/intel386.h (DOT_GLOBAL_START):
17961 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
17962 (USG): Remove, file not used on USG platforms.
17963
17964 * Makefile.in (HAVE_X11): Remove empty #else.
17965
179662008-07-24 Andreas Schwab <schwab@suse.de>
17967
17968 * fileio.c (Finsert_file_contents): Properly adjust undo list
17969 after format conversion.
17970
179712008-07-24 Jan Djärv <jan.h.d@swipnet.se>
17972
17973 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
17974 (menu_nav_ended): Remove.
17975 (create_menus): Remove signal connect for menu_nav_ended.
17976 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
17977 create_menus.
17978 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
17979
179802008-07-23 Jason Rumney <jasonr@gnu.org>
17981
17982 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
17983 with opened font.
17984 (w32font_open): Set font type to gdi.
17985
17986 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
17987
179882008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
17989
17990 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
17991 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
17992 defines it.
17993 * unexec.c (ADDR_CORRECT): Define unconditionally.
17994
17995 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
17996
17997 * unexec.c: Remove code depending on !COFF and USG, the file is
17998 not used for such systems.
17999
18000 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18001 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18002 (LD_SWITCH_SYSTEM_1): Remove, update users.
18003
18004 * s/darwin.h (DATA_END):
18005 * m/intel386.h (DATA_END):
18006 * m/ibmrs6000.h (DATA_END):
18007 * m/alpha.h (DATA_END): Remove, unused.
18008
18009 * config.in: Regenerate.
18010 * s/ms-w32.h (subprocesses): Define unconditionally.
18011 * s/template.h (subprocesses): Update comment.
18012 * s/vms.h (subprocesses):
18013 * s/usg5-4.h (subprocesses):
18014 * s/hpux10-20.h (subprocesses):
18015 * s/gnu-linux.h (subprocesses):
18016 * s/cygwin.h (subprocesses):
18017 * s/bsd-common.h (subprocesses):
18018 * s/aix4-2.h (subprocesses):
18019 * s/darwin.h (subprocesses): Do not define, defined by default now.
18020
18021 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18022 Remove all references.
18023 (temacs): Add GNUstep specific ld flags.
18024
18025 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18026 similarly to what X does.
18027
180282008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18029
18030 * nsfns.m (x-list-fonts): Remove.
18031 (syms_of_nsfns): Drop the x-list-fonts declaration.
18032 * nsterm.m: Get rid of remaining "//" comments.
18033
180342008-07-22 Chong Yidong <cyd@stupidchicken.com>
18035
18036 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18037
18038 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18039 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18040 (Fns_own_selection_internal, Fx_disown_selection_internal)
18041 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18042
18043 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18044 ... */' style of docstrings. Doc fixes.
18045
180462008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18047
18048 * terminfo.c (UP, BC, PC): Undo previous change.
18049
18050 * nsfns.m: Rename ns prefixed functions/variables to the
18051 corresponding x versions. Update references.
18052
180532008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18054
18055 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18056
180572008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18058
18059 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18060 Remove forwarding functions.
18061 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18062 non-static.
18063 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18064 non-static.
18065 (ns_frame_parm_handlers): Use the new names.
18066 (syms_of_nsfns): Move to the end of file.
18067
18068 * nsterm.m (syms_of_nsterm): Move to the end of file.
18069
18070 * dispnew.c (init_display): Remove code for X10.
18071
180722008-07-22 Jason Rumney <jasonr@gnu.org>
18073
18074 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18075 bare drive.
18076
180772008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18078
18079 * nsterm.m (syms_of_nsterm): Remove debugging println.
18080
180812008-07-22 David Reitter <david.reitter@gmail.com>
18082
18083 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18084 Carbon implementation of the same functionality: execute arbitrary
18085 AppleScript code.
18086
180872008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18088
18089 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18090 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18091 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18092 (Fx_display_mm_height, Fx_display_mm_width)
18093 (Fx_display_backing_store, Fx_display_visual_class)
18094 (Fx_display_save_under, Fx_open_connection)
18095 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18096 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18097 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18098 (Fx_display_pixel_width, Fx_display_pixel_height)
18099 (Fx_display_usable_bounds, Fx_display_planes)
18100 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18101 ... */' style of docstrings.
18102
181032008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18104
18105 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18106 on this platform.
18107 (mips):
18108 * m/iris4d.h (mips): Do not define.
18109 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18110
18111 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18112
18113 * image.c:
18114 * nsfns.m:
18115 * nsselect.m:
18116 * nsterm.h:
18117 * nsterm.m: Rename ns prefixed functions/variables to the
18118 corresponding x versions. Update references.
18119
18120 * m/ibms390x.h (NO_REMAP): Do not undefine.
18121
18122 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18123
181242008-07-21 Chong Yidong <cyd@stupidchicken.com>
18125
18126 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18127 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18128 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18129 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18130 (Fns_display_mm_height, Fns_display_mm_width)
18131 (Fns_display_backing_store, Fns_display_visual_class)
18132 (Fns_display_save_under, Fns_open_connection)
18133 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18134 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18135 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18136 (Fns_display_pixel_width, Fns_display_pixel_height)
18137 (Fns_display_usable_bounds, Fx_display_planes)
18138 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18139
181402008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18141
18142 * print.c (print_object): Check print_depth before searching for
18143 circularities.
18144
181452008-07-21 Michael Albinus <michael.albinus@gmx.de>
18146
18147 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18148 only sprintf.
18149
181502008-07-21 Kenichi Handa <handa@m17n.org>
18151
18152 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18153
181542008-07-20 Andreas Schwab <schwab@suse.de>
18155
18156 * syntax.c (find_start_pos, find_start_value)
18157 (find_start_value_byte, find_start_begv, find_defun_start)
18158 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18159
181602008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18161
18162 * s/sol2-3.h: Insert contents of s/sol2.h.
18163 (LD_SWITCH_SYSTEM): Remove redundant definition.
18164 * s/sol2.h: Remove, unused.
18165
181662008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18167
18168 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18169
181702008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18171
18172 * Makefile.in (ns_appdir): Fix typo in find command.
18173
181742008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18175
18176 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18177
18178 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18179 added not supported anymore.
18180
18181 * s/usg5-4-2.h (LIBS_SYSTEM):
18182 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18183
18184 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18185 * s/lynxos.h (GETPGRP_NO_ARG):
18186 * s/hpux10-20.h (NO_SIOCTL_H):
18187 * s/gnu.h (GETPGRP_NO_ARG):
18188 * s/gnu-linux.h (NO_SIOCTL_H):
18189 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18190 * s/cygwin.h (GETPGRP_NO_ARG):
18191 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18192 (C_DEBUG_SWITCH): Remove duplicate definition.
18193
18194 * m/ibms390.h: Remove boilerplate comments.
18195
18196 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18197
18198 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18199 (wait_reading_process_output): Remove code for SunOS, platform not
18200 supported anymore. Use SOLARIS2 instead of sun.
18201
182022008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18203
18204 * font.c (font_open_by_name): Under NS, default lface height to zero.
18205 (font_open_for_lface): Under NS, set size based on frame fontsize.
18206 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18207 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18208
182092008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18210
18211 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18212 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18213 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18214 YES/NO.
18215 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18216 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18217 * Makefile.in (clean): Clear out build destination dir.
18218
182192008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18220
18221 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18222 xterm, xselect.
18223 * lisp.h: Remove declaration of hash_remove.
18224 * nsgui.h: Remove redefinitions of hash_remove.
18225 * fns.c (hash_remove): Rename to hash_remove_from_table.
18226
182272008-07-19 Seiji Zenitani <zenitani@mac.com>
18228
18229 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18230 strdup() the family UTF8String before modifying it.
18231
182322008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18233
18234 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18235 NS_FACE_BACKGROUND with 0 instead of nil.
18236 * nsfont.m (nsfont_draw): Same.
18237
182382008-07-19 Chong Yidong <cyd@stupidchicken.com>
18239
18240 * nsfns.m (ns_set_background_color): Fix crash.
18241
182422008-07-18 Chong Yidong <cyd@stupidchicken.com>
18243
18244 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18245
182462008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18247
18248 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18249
182502008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18251
18252 * gtkutil.c: Include <config.h> instead of "config.h".
18253
18254 * lisp.h (Foverlay_buffer): Add EXFUN.
18255
18256 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18257 child process to complete child_setup. Undo 2005-09-21 change.
18258
18259 * s/darwin.h: Mention setsid after vfork.
18260
182612008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18262
18263 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18264 Depend on macgui.h.
18265
18266 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18267 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18268
18269 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18270 and f19.
18271 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18272
18273 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18274 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18275 Remove enumerators.
18276
18277 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18278 Check if FACE_FROM_ID returns NULL.
18279
182802008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18281
18282 * w32inevt.c (change_frame_size): Remove extern declaration.
18283 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18284 change_frame_size.
18285
182862008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18287
18288 * getloadavg.c: Revert last change (2008-07-15).
18289
182902008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18291
18292 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 18293 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
18294 from configure.
18295
182962008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18297
18298 * s/sol2.h:
18299 * s/sol2-4.h: Reorganize conditionals.
18300
18301 * ecrt0.c: Remove code depending on m68000, not used anymore.
18302
18303 * fns.c (hash_remove): Make static.
18304 * lisp.h (hash_remove): Don't prototype.
18305
18306 * m/ibmrs6000.h:
18307 * m/ibms390x.h:
18308 * m/macppc.h: Remove boilerplate comments.
18309
18310 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18311 Solaris, which does not need them.
18312
18313 * m/vax.h: Remove comments about unsupported systems.
18314
18315 * s/darwin.h: Reorganize ifdefs.
18316
183172008-07-17 Andreas Schwab <schwab@suse.de>
18318
18319 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18320
183212008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18322
18323 Use SDATA. Follow coding convention of placing operators at
18324 beginning of next line rather than end of previous line, and placing
18325 spaces around infix operators.
18326
18327 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18328 in case it was defined already.
18329 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18330 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18331 ns_default.
18332 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18333 Lisp_Objects.
18334 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18335 (ns_defined_color, ns_color_to_lisp): Declare.
18336 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18337 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18338 it's accepted even with USE_LISP_UNION_TYPE.
18339 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18340 (update_frame_tool_bar): Remove apparently obsolete tests for
18341 non-integerness of f->tool_bar_lines.
18342 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18343 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18344 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18345 (nsfont_open): Don't confuse NULL for Qnil.
18346 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18347 * menu.h (find_and_call_menu_selection):
18348 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18349 (find_and_return_menu_selection): Always return something.
18350 * frame.h: Include dispextern.h for Display_Info.
18351 (display_x_get_resource): Declare.
18352
183532008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18354
18355 * syntax.c: Remove stdio.h include accidentally introduced in
18356 Emacs.app commit.
18357 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18358 NS_IMPL_COCOA.
18359 * keyboard.c (handle_async_input, input_available_signal): Remove
18360 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18361
183622008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18363
18364 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18365 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18366 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18367 Use SDATA.
18368
18369 * keymap.c: Remove all NS-specific code.
18370 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18371 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18372 where_is_preferred_modifier, return a different value depending on how
18373 preferred is the binding.
18374 (where_is_internal): Adjust accordingly.
18375 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18376 Adjust to new preferred_sequence_p.
18377 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18378 * keyboard.c (parse_solitary_modifier): Not static any more.
18379 * keyboard.h (parse_solitary_modifier): Declare.
18380
183812008-07-16 Andreas Schwab <schwab@suse.de>
18382
18383 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18384 of easymenu.
18385
183862008-07-16 Chong Yidong <cyd@stupidchicken.com>
18387
18388 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18389 that we don't move off the line.
18390
183912008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18392
18393 * keyboard.c (Qsuper): Remove.
18394 (parse_menu_item): Don't call where_is_internal specially for NS.
18395
183962008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18397
18398 * s/gnu-linux.h: Remove boilerplate comments.
18399
18400 * m/alpha.h (__ELF__): Consolidate conditions.
18401
18402 * m/m68k.h (linux): Use GNU_LINUX instead.
18403 Remove boilerplate comments.
18404
18405 * m/intel386.h: Undo refactoring from previous change.
18406 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18407 too, remove dead code.
18408 (linux): Use GNU_LINUX instead.
18409
184102008-07-16 Jason Rumney <jasonr@gnu.org>
18411
18412 * w32gui.h: Repeat 26 June changes lost by last change.
18413
184142008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18415
18416 * systty.h: Remove code for Aix on 386, unsupported platform.
18417
18418 * s/ms-w32.h: Remove boilerplate comments.
18419 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18420
18421 * s/gnu-linux.h (TERM): Remove support.
18422 (HAVE_SYSVIPC): Remove, unused.
18423 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18424 for this system.
18425
18426 * process.c: Remove support for IRIS, unused.
18427 Remove support for TERM, not relevant anymore.
18428
18429 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18430 used with the definition.
18431
18432 * s/aix4-2.h (static): Do not undef.
18433
18434 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18435 only used on Aix.
18436 (HAVE_SYSVIPC): Remove, unused.
18437
18438 * m/hp800.h (CANNOT_DUMP): Do not undef.
18439
18440 * m/alpha.h: Fix comment.
18441
18442 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18443 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18444 used by this configuration.
18445 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18446 * unexec.c: Remove code depending on HPUX and
18447 USG_SHARED_LIBRARIES, not used with this file. Remove code
18448 depending on IRIS, unused. Remove if 0-ed code.
18449
18450 * s/template.h: Remove comments about static.
18451
18452 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18453 Remove if 0-ed code.
18454 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18455 were the same as the default.
18456 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18457 Remove boilerplate comments.
18458 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18459 (HAVE_SYSVIPC): Remove, unused.
18460 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18461
18462 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18463 Remove boilerplate comments.
18464 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18465 Remove boilerplate comments.
18466 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18467 Remove boilerplate comments.
18468 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18469
18470 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18471 USG systems which do not use DATA_SEG_BITS.
18472 Refactor code. Remove boilerplate comments.
18473
18474 * m/ibms390.h:
18475 * m/m68k.h:
18476 * s/bsd-common.h:
18477 * s/cygwin.h:
18478 * s/darwin.h:
18479 * s/freebsd.h:
18480 * s/gnu.h:
18481 * s/msdos.h: Remove boilerplate comments.
18482
18483 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 18484 do not use this file.
aac0c6e3
MR
18485 (IRIS_4D): Remove, unused.
18486
18487 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 18488 do not use this file.
aac0c6e3
MR
18489 (SIGN_EXTEND_CHAR):
18490 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18491 * unexmips.c: Remove file, unused.
18492
18493 * editfns.c (Fuser_full_name): Replace the only use of
18494 USER_FULL_NAME with its value.
18495 * config.in: Regenerate.
18496
184972008-07-16 David Reitter <david.reitter@gmail.com>
18498
18499 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18500 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18501
185022008-07-16 Glenn Morris <rgm@gnu.org>
18503
18504 * emacs.c (system-type): Doc fix.
18505
185062008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18507
18508 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18509 If the cache doesn't work, let's fix it, rather than work around it.
18510
185112008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18512
18513 * Makefile.in: Correct additions for nsfont.o in last commit.
18514 * nsfont.m: New file (forgot last commit).
18515
185162008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18517
bba3e508
SM
18518 * callproc.c (set_initial_environment):
18519 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
18520 batch-compiling for bootstrap).
18521
185222008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 18523 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 18524
c4cc8b9a
JB
18525 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18526 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
18527
185282008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18529
18530 Changes and additions for NeXTstep windowing system (Cocoa and
18531 GNUstep) support.
18532
18533 * Makefile.in:
18534 * config.in: Support defines and build commands for NS port.
18535 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18536 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18537 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18538 windowing.
18539 (struct face): Add synth_ital field.
18540 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18541 (init_display): Initialize Vinitial_window_system to "ns" when so
18542 compiled.
18543 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18544 (display_arg): Use under NS.
18545 (main): Under NS, allocate autorelease pool and handle command line
18546 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
18547 (standard_args): Add NS-specific args.
18548 (shut_down_emacs): Shut down NS terminal if compiled under NS.
18549 * font.c (DEFAULT_ENCODING): New variable.
18550 (font_find_for_lface): Use it.
18551 (syms_of_font): Load syms_of_nsfont under NS.
18552 * font.h: Declare nsfont_driver when compiled under NS.
18553 * fontset.c: When compiling under NS, include nsterm.h.
18554 (fontset_from_font): Autoconstruct fontset under NS.
18555 * frame.c (various): Under NS, include nsterm.h, add Qns window system
18556 symbol, document and use it.
18557 (do_switch_frame): When for_deletion under Cocoa, add
18558 Fraise_frame(Qnil).
18559 (x_set_frame_parameters): Ensure font attribute changes are picked up.
18560 (x_get_arg): Allow "yes" and "no" as boolean values.
18561 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
18562 Qright under Cocoa.
18563 (focus-follows-mouse): Default to 0 under NS.
18564 * frame.h (enum output_method): Add output_ns.
18565 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
18566 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
18567 (FRAME_WINDOW_P): NS-specific definition.
18568 * fringe.c (max_used_fringe_bitmap): Make public.
18569 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
18570 (getloadavg): Use NeXT code under descendant OS's.
18571 * image.c (includes and header section, x_create_bitmap_from_data)
18572 (x_create_bitmap_from_file, free_bitmap_record, image_background)
18573 (image_background_transparent, x_clear_image_1)
18574 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
18575 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
18576 (x_to_xcolors, x_from_xcolors, x_disable_image)
18577 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
18578 other GUIs, including XPM support using code originally written for
18579 Carbon GUI.
18580 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
18581 using NS API.
18582 (image_ascent): Use font metrics macros instead of direct struct field
18583 access.
18584 * keyboard.c (includes): Add nsterm.h when compiling under NS.
18585 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
18586 Also, handle NS as GTK for menu bar purposes.
18587 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
18588 toolkit where they differ.
18589 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
18590 use cachelist, still needed under NS.
18591 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
18592 (struct widget_value): Define it here for menu.c.
18593 * keymap.c (includes): Include modifier internals.
18594 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
18595 NS.
18596 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
18597 support for preferring sequences using certain modifiers, specified by
18598 the FIRSTONLY argument.
18599 * lisp.h (hash_remove): Rename to avoid name clash when compiling
18600 under NS GNUstep implementation.
18601 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
18602 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
18603 * menu.c: Include nsterm.h under NS.
18604 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
18605 (free_menubar_widget_tree_value, update_submenu_strings)
18606 (find_and_call_menu_selection): Treat NS as X and NT.
18607 (find_and_return_menu_selection): New function, used for popup menus.
18608 * nsgui.h:
18609 * nsterm.h:
18610 * nsfns.m:
18611 * nsimage.m:
18612 * nsmenu.m:
18613 * nsselect.m:
18614 * nsterm.m: New files.
18615 * process.c (wait_reading_process_output): Under NS, call ns_select()
18616 instead of plain select().
18617 * syntax.c (char_quoted): Under NS, avoid a crash when called near
18618 beginning of buffer.
18619 * sysselect.h (init_process): Rename when compiling under Cocoa to
18620 avoid name conflict.
18621 * termhooks.h (display_info): Add ns_display_info to union.
18622 * terminal.c (Fterminal_live_p): Add ns to terminal types.
18623 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
18624 COCOA environment.
18625 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
18626 unexec() signature. (Note, this will dump, but the resulting file
18627 crashes; unexosx is used instead; keeping around for reference and
18628 possible aid in getting dump working under GNUstep.)
18629 * w32gui.h (button_type, widget_value): Remove definitions (now in
18630 keyboard.h).
18631 * window.c: Include nsterm.h when compiling under NS.
18632 * xdisp.c (includes): Include nsterm.h when compiling under NS.
18633 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
18634 other GUI windowing systems.
18635 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
18636 GTK.
18637 (x_consider_frame_title): Under NS, set icon type and frame
18638 modified-state indicator; use ns_set_name_as_filename() when using
18639 formatted title.
18640 (update_window_cursor): Make public when compiling under NS.
18641 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
18642 (hourglass_atimer, Vhourglass_delay
18643 * xfaces.c (header section, init_frame_faces, clear_font_table)
18644 (defined_color, unload_color, x_face_list_fonts)
18645 (prepare_face_for_display): Add NS support parallel to other GUIs.
18646 Emulate GCs like other non-X GUIs.
18647 (split_font_name): Don't lowercase font name under NS.
18648 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
18649 under NS.
18650 * s/darwin.h: Add support for compilation under NS.
18651
186522008-07-15 Jason Rumney <jasonr@gnu.org>
18653
18654 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
18655 (w32_show_hourglass): Rename from show_hourglass.
18656 (w32_hide_hourglass): Rename from hide_hourglass.
18657 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
18658 (Vhourglass_delay): Declare extern.
18659 (hourglass_started): Remove.
18660
18661 * xdisp.c (Vhourglass_delay): Remove static.
18662 (hourglass_started, start_hourglass, cancel_hourglass):
18663 Don't include these versions on WINDOWSNT.
18664
186652008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18666
18667 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
18668 variables (formerly in xfns.c).
18669 (show_hourglass, hide_hourglass): New prototypes (same).
18670 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
18671 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
18672 in xfns.c).
18673 (syms_of_xdisp): Declare/initialize display-hourglass,
18674 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
18675 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
18676 formerly in xfns.c.
18677 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18678 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18679 (start_hourglass, cancel_hourglass): Remove.
18680 (show_hourglass, hide_hourglass): Remove prototypes and static
18681 modifiers.
18682 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
18683 hourglass_atimer, hourglass_shown_p declaration/initialization.
18684 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18685 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18686 (start_hourglass, cancel_hourglass): Remove.
18687 (show_hourglass, hide_hourglass): Remove prototypes and static
18688 modifiers.
18689 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
18690 hourglass_atimer, hourglass_shown_p declaration/initialization.
18691 * w32fns.c (display_hourglass_p, Vhourglass_delay)
18692 (DEFAULT_HOURGLASS_DELAY): Remove.
18693 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
18694 hourglass_shown_p declaration/initialization.
18695
186962008-07-14 Jason Rumney <jasonr@gnu.org>
18697
18698 * w32fns.c (w32_get_arg): Remove wrapper function.
18699 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
18700 directly.
18701 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
18702
187032008-07-14 Kenichi Handa <handa@m17n.org>
18704
18705 * xfont.c (xfont_open): Add workaround for X's bug.
18706
187072008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18708
18709 * fontset.c: Include <stdio.h> unconditionally.
18710
187112008-07-13 Michael Albinus <michael.albinus@gmx.de>
18712
18713 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
18714 for filtering.
18715
187162008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
18717
18718 * s/vms.h: Use __GNUC__ instead of _GNUC_.
18719
18720 * m/macppc.h:
18721 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
18722
c4cc8b9a 18723 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
18724 (SPECIAL_EMACS_INT):
18725 * m/ia64.h (SPECIAL_EMACS_INT):
18726 * m/amdx86-64.h (SPECIAL_EMACS_INT):
18727 * s/gnu.h (NLIST_STRUCT):
18728 * s/aix4-2.h (X11R5_INHIBIT_I18N):
18729 * s/gnu-linux.h (LINUX):
18730 * s/msdos.h (HAVE_FACES):
18731 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
18732
18733 * systty.h:
18734 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
18735 anymore.
18736
187372008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
18738
18739 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
18740 always defined as int.
18741
18742 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
18743 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
18744 * s/gnu-linux.h (HAVE_WAIT_HEADER):
18745 * s/freebsd.h (HAVE_WAIT_HEADER):
18746 * s/bsd-common.h (HAVE_UNION_WAIT):
18747 * s/aix4-2.h (HAVE_WAIT_HEADER):
18748 * m/mips.h (HAVE_UNION_WAIT):
18749 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18750 (COFF, static): Do not define, they are undefined later in the file.
18751
18752 * process.c (update_status): Don't use a union.
18753 (status_convert):
18754 (sigchld_handler): Use int instead of WAITTYPE.
18755
187562008-07-12 Chong Yidong <cyd@stupidchicken.com>
18757
18758 * indent.c (Fvertical_motion): Restore hscroll before moving to
18759 goal column.
18760
187612008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18762
18763 * lisp.h: Remove left over code.
18764
187652008-07-11 Andreas Schwab <schwab@suse.de>
18766
18767 * lisp.h: Fix logic in last change.
18768
18769 * menu.h: New file.
18770 * menu.c: Include it.
18771 * xmenu.c: Likewise.
18772 * Makefile.in: Update dependencies.
18773
187742008-07-11 Kenichi Handa <handa@m17n.org>
18775
18776 * fontset.c (fontset_from_font): Cancel the previous change.
18777
187782008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18779
18780 * lisp.h:
18781 * w32heap.c:
18782 * emacs.c:
18783 * alloc.c: Replace all references of NO_UNION_TYPE with
18784 USE_LISP_UNION_TYPE.
18785
18786 * m/xtensa.h (NO_UNION_TYPE):
18787 * m/vax.h (NO_UNION_TYPE):
18788 * m/template.h (NO_UNION_TYPE):
18789 * m/sparc.h (NO_UNION_TYPE):
18790 * m/mips.h (NO_UNION_TYPE):
18791 * m/macppc.h (NO_UNION_TYPE):
18792 * m/m68k.h (NO_UNION_TYPE):
18793 * m/iris4d.h (NO_UNION_TYPE):
18794 * m/intel386.h (NO_UNION_TYPE):
18795 * m/ibms390x.h (NO_UNION_TYPE):
18796 * m/ibms390.h (NO_UNION_TYPE):
18797 * m/ibmrs6000.h (NO_UNION_TYPE):
18798 * m/ia64.h (NO_UNION_TYPE):
18799 * m/hp800.h (NO_UNION_TYPE):
18800 * m/arm.h (NO_UNION_TYPE):
18801 * m/amdx86-64.h (NO_UNION_TYPE):
18802 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
18803 defining it the same.
18804
188052008-07-10 Chong Yidong <cyd@stupidchicken.com>
18806
18807 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
18808
188092008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18810
18811 * fileio.c:
50426a04 18812 * sysdep.c:
aac0c6e3
MR
18813 * systty.h:
18814 * m/ibmrs6000.h:
18815 * m/iris4d.h:
18816 * s/aix4-2.h:
18817 * s/freebsd.h:
18818 * s/gnu-linux.h:
18819 * s/hpux10-20.h:
18820 * s/hpux11.h:
18821 * s/netbsd.h:
18822 * s/sol2-3.h:
18823 * s/sol2-4.h:
18824 * s/sol2.h:
18825 * s/usg5-4.h:
18826 * s/vms.h: Remove references to unused variables.
18827
188282008-07-10 Andreas Schwab <schwab@suse.de>
18829
18830 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
18831 pattern before matching the generic family.
18832
188332008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18834
18835 * unexec.c:
18836 * s/vms.h:
18837 * s/usg5-4-2.h:
18838 * s/sol2-5.h:
18839 * s/freebsd.h:
18840 * s/darwin.h: Remove dead code.
18841
18842 * m/template.h:
18843 * m/sparc.h:
18844 * m/mips.h:
18845 * m/m68k.h:
18846 * m/iris4d.h:
18847 * m/intel386.h:
18848 * m/ibms390x.h:
18849 * m/ibms390.h:
18850 * m/ia64.h:
18851 * m/hp800.h:
18852 * m/arm.h:
18853 * m/amdx86-64.h: Remove dead code and references to unused
18854 and compiler defined symbols.
18855
18856 * unexmips.c:
18857 * unexelf.c: Remove references to desupported systems.
18858
18859 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
18860
18861 * m/powermac.h: Remove boilerplate comments.
18862 (NO_REMAP): Remove unused definition.
18863
18864 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
18865 define them.
18866
188672008-07-10 Kenichi Handa <handa@m17n.org>
18868
18869 * xfont.c (xfont_open): Log the reason of failure.
18870
188712008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
18872
18873 * fontset.c (fontset_get_font_group):
18874 * font.c (font_check_otf): Specify argument types.
18875
188762008-07-09 Kenichi Handa <handa@m17n.org>
18877
18878 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18879 non-ASCII char is found.
18880
18881 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18882 (reorder_font_vector): Change the arg preferred_family to font.
18883 Prefer the spec matching with font.
18884 (fontset_get_font_group): New function.
18885 (fontset_find_font): Change the format of an element of a realized
18886 fontset. Use fontset_get_font_group.
18887 (fontset_font): Try the current fontset, the default fontset, the
18888 fallbacks of the current fontset, and the fallbacks of the default
18889 fontset in this order.
18890 (face_for_char): Delete the shortcut to use the current font.
18891 (fontset_from_font): Don't set fonts for Latin in the fontset.
18892
18893 * font.h (font_make_object, font_match_p): Adjust prototypes.
18894
18895 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18896
18897 * font.c (font_make_object): New arg entity and pixelsize.
18898 (font_check_otf_features, font_check_otf): New functions.
18899 (font_match_p): Check :lang, :script, and :otf properties.
18900
18901 * xfont.c (xfont_open): Adjust it for the change of
18902 font_make_object.
18903 (xfont_text_extents): Fix initial setting of metrics.
18904
18905 * ftfont.c (struct ftfont_info): New member index, delete member
18906 fc_charset_idx. Make the member order compatible with struct
18907 xftfont_info.
18908 (fc_charset_table): Change charset names to registry names.
18909 (ftfont_pattern_entity): Delete the args registry and
18910 fc_charset_idx. Change the value of :font-entity property
18911 to (FONTNAME . INDEX). Always set :registry property to
18912 `iso10646-1'.
18913 (struct ftfont_cache_data): New struct.
18914 (ftfont_lookup_cache): New arg for_face.
18915 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18916 (ftfont_driver): Set the member otf_capability.
18917 (ftfont_get_charset): Adjust it for the change of
18918 fc_charset_table.
18919 (OTF_TAG_SYM): New macro.
18920 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18921 for the change of fc_charset_table.
18922 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18923 ftfont_pattern_entity. Add FC_INDEX to objset.
18924 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18925 and ftfont_pattern_entity.
18926 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18927 font_make_object, struct ftfont_info.
18928 (ftfont_has_char): Use ftfont_get_fc_charset.
18929 (ftfont_otf_features, ftfont_otf_capability): New functions.
18930 (ftfont_shape): Use ftfont_get_otf.
18931 (ftfont_text_extents): Fix initial setting of metrics.
18932
18933 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18934 member order compatible with struct ftfont_info.
bba3e508
SM
18935 (xftfont_open): Add FC_CHARSET to the pattern.
18936 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
18937 properties if appropriate.
18938 (xftfont_close): Unlock the face.
18939 (xftfont_anchor_point, xftfont_shape): Deleted.
18940 (syms_of_xftfont): Don't set members anchor_point and shape of
18941 xftfont_driver.
18942
18943 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18944 font_make_object.
18945
18946 * w32font.c (w32font_open): Adjust it for the change of
18947 font_make_object.
18948 (w32font_open_internal): Don't set properties of font_object here.
18949
189502008-07-08 Chong Yidong <cyd@stupidchicken.com>
18951
18952 * macfns.c (x_create_tip_frame):
18953 * w32fns.c (x_create_tip_frame):
18954 * xfns.c (x_create_tip_frame): Pass parameter argument to
18955 face-set-after-frame-default.
18956
18957 * xfaces.c (Finternal_merge_in_global_face): Save merged
18958 attributes for the default face back into the face vector.
18959
189602008-07-08 Andreas Schwab <schwab@suse.de>
18961
18962 * fontset.h: Declare fontset_from_font. Don't declare
18963 new_fontset_from_font and fontset_from_font_name.
18964 * xterm.c: Include "fontset.h".
18965 * Makefile.in (xterm.o): Update dependencies.
18966
189672008-07-08 Glenn Morris <rgm@gnu.org>
18968
18969 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
18970 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
18971
189722008-07-07 Chong Yidong <cyd@stupidchicken.com>
18973
18974 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
18975 (x_set_frame_parameters): Don't bind it.
18976
189772008-07-07 Juanma Barranquero <lekktu@gmail.com>
18978
18979 * w32fns.c (map_w32_filename): Declare extern.
18980
189812008-07-07 Jason Rumney <jasonr@gnu.org>
18982
18983 * w32term.c (WS_EX_LAYERED): Define if not already.
18984
189852008-07-06 Chong Yidong <cyd@stupidchicken.com>
18986
18987 * xfaces.c (set_font_frame_param): Don't try to set the font
18988 parameter if it is still unspecified in the lface.
18989
189902008-07-05 Chong Yidong <cyd@stupidchicken.com>
18991
18992 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
18993 face if it didn't already exist.
18994
18995 * xdisp.c (try_window_id): Give up if word-wrapping is on.
18996
189972008-07-05 Andreas Schwab <schwab@suse.de>
18998
18999 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19000
190012008-07-05 Chong Yidong <cyd@stupidchicken.com>
19002
19003 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19004 word-wrapping.
19005 (IT_DISPLAYING_WHITESPACE): New macro.
19006 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19007 when word-wrapping. Simplify word-wrapping logic. Use correct
19008 pixel positions when saving copies of the iterator.
19009 (display_line): Use proper wrap point if the last character on a
19010 line was preceded by whitespace.
19011
190122008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19013
19014 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19015
190162008-07-04 Kenichi Handa <handa@m17n.org>
19017
19018 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19019
19020 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19021
190222008-07-02 Jason Rumney <jasonr@gnu.org>
19023
19024 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 19025 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
19026
19027 * xdisp.c (next_element_from_display_vector): Move assignment out
19028 of if statement.
19029
190302008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19031
19032 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19033
19034 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19035 (syms_of_fileio): Initialize and export them.
19036 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19037
19038 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19039 (Fsystem_move_file_to_trash): New function.
19040 (syms_of_w32fns): Export it to lisp.
19041
190422008-07-01 Jason Rumney <jasonr@gnu.org>
19043
19044 * w32font.c (w32font_text_extents): Don't count overhang as part
19045 of width.
19046
190472008-06-30 Miles Bader <miles@gnu.org>
19048
19049 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19050 Add `avoid_cursor_p' field.
19051
19052 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19053 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19054 (append_glyph, append_composite_glyph, produce_image_glyph)
19055 (append_stretch_glyph): Initialize avoid_cursor_p.
19056 (get_it_property): Rename from `get_line_height_property'.
19057 (x_produce_glyphs): Use get_it_property.
19058 (handle_line_prefix, push_display_prop): New functions.
19059 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19060 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19061 New variables.
19062 (syms_of_xdisp): Initialize them.
19063
190642008-06-30 Kenichi Handa <handa@m17n.org>
19065
19066 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19067 XftDefaultSubstitute (they are called in XftFontMatch).
19068 (xftfont_open): Fix args to ftfont_font_format.
19069
19070 * ftfont.c (fc_charset_table): New member lang.
19071 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 19072 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
19073 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19074 (ftfont_open): Fix args to ftfont_font_format.
19075 (ftfont_font_format): New arg filename.
19076
190772008-06-30 Chong Yidong <cyd@stupidchicken.com>
19078
19079 * xfaces.c (Finternal_merge_in_global_face): If default face was
19080 modified, realize it again. Update the font face attribute.
19081
190822008-06-29 Jason Rumney <jasonr@gnu.org>
19083
19084 * w32term.c (x_set_frame_alpha): Fix logic.
19085
190862008-06-29 Kenichi Handa <handa@m17n.org>
19087
19088 * fontset.c (Finternal_char_font): Return font-object instead of
19089 font-name.
19090
19091 * composite.c (get_composition_id): Fix the width calculation for TAB.
19092
190932008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19094
19095 * indent.c (Fvertical_motion): Properly handle float column arg.
19096
190972008-06-28 Jason Rumney <jasonr@gnu.org>
19098
19099 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19100 (pfnSetLayeredWindowAttributes): New function pointer.
19101 (w32_initialize): Initialize it when supported.
19102 (x_set_frame_alpha): New function.
19103
19104 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19105 (w32_frame_parm_handlers): Set alpha handler.
19106
19107 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19108
191092008-06-27 Jason Rumney <jasonr@gnu.org>
19110
19111 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19112 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19113 (w32_to_x_charset, x_to_w32_charset)
19114 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19115 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19116 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19117 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19118 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19119 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19120 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19121 (Qw32_charset_unicode): Remove.
19122 (syms_of_w32fns): Update for above changes.
19123
19124 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19125 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19126 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19127 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19128 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19129 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19130 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19131 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19132 (syms_of_w32font): Update for above changes.
19133
191342008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19135
19136 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19137 removed #if.
19138 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19139
191402008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 19141 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
19142
19143 * makefile.w32-in (LOCAL_FLAGS):
19144 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19145
19146 * sysdep.c (_spawnlp, _getpid):
19147 Declare with explicit _cdecl instead of _CRTAPI1.
19148
19149 * editfns.c (Fget_internal_run_time):
19150 Check for WINDOWSNT with #ifdef, not #if.
19151
191522008-06-26 Jason Rumney <jasonr@gnu.org>
19153
19154 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19155
19156 * w32term.c (x_draw_glyph_string_foreground)
19157 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19158 Use FONT_HANDLE macro.
19159 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19160
19161 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19162 (uniscribe_encode_char): Use FONT_HANDLE macro.
19163
19164 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19165 (w32font_text_extents): Use precast w32_font.
19166 (w32font_close): Free cached metrics.
19167 (w32font_open_internal): Allocate space for name on stack.
19168
191692008-06-26 Chong Yidong <cyd@stupidchicken.com>
19170
19171 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19172
191732008-06-26 Jason Rumney <jasonr@gnu.org>
19174
19175 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19176 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19177
191782008-06-26 Juanma Barranquero <lekktu@gmail.com>
19179
19180 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19181
191822008-06-26 Jason Rumney <jasonr@gnu.org>
19183
19184 * w32bdf.c, w32bdf.h: Remove obsolete files.
19185
19186 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19187
19188 * w32gui.h: Don't include w32bdf.h.
19189 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19190 Remove obsolete font support.
19191
19192 * w32font.h (struct w32font_info): Remove compat_w32_font.
19193 Add hfont member.
19194 (FONT_COMPAT): Remove obsolete macro.
19195
19196 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19197 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19198 (w32font_open_internal): Remove compat code. Set new hfont member.
19199 (Fx_select_font): Use new hfont member.
19200
19201 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19202 (uniscribe_encode_char): Use new hfont member.
19203
19204 * w32term.c (x_draw_glyph_string_foreground)
19205 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19206 (x_draw_glyph_string): Use metrics in w32font_info.
19207
192082008-06-26 Kenichi Handa <handa@m17n.org>
19209
19210 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19211
192122008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19213
19214 * unexnext.c:
19215 * m/ews4800.h:
19216 * m/hp9000s300.h:
19217 * m/ibm370aix.h:
19218 * m/mips-siemens.h:
19219 * m/ncr386.h:
19220 * m/next.h:
19221 * m/pmax.h:
19222 * m/powerpcle.h:
19223 * m/tandem-s2.h:
19224 * s/386bsd.h:
19225 * s/bsd386.h:
19226 * s/bsd4-1.h:
19227 * s/bsd4-2.h:
19228 * s/bsdos2-1.h:
19229 * s/bsdos2.h:
19230 * s/bsdos3.h:
19231 * s/bsdos4.h:
19232 * s/nextstep.h:
19233 * s/ultrix4-3.h:
19234 * s/usg5-0.h:
19235 * s/usg5-2-2.h:
19236 * s/usg5-2.h:
19237 * s/usg5-4-3.h:
19238 * s/ux4800.h:
19239 * s/uxpds.h:
19240 * s/uxpv.h: Remove support for obsolete systems.
19241 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 19242 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
19243 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19244 Remove, insert contents in s/aix4-2.h.
19245 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19246 * s/bsd4-3.h: Rename to ...
19247 * s/bsd-common.h: ... this.
19248 * data.c:
19249 * doc.c:
19250 * ecrt0.c:
19251 * emacs.c:
19252 * fileio.c:
19253 * floatfns.c:
19254 * keyboard.c:
19255 * mem-limits.h:
19256 * print.c:
19257 * process.c:
19258 * sysdep.c:
19259 * syssignal.h:
19260 * systty.h:
19261 * syswait.h:
19262 * term.c:
19263 * unexec.c:
19264 * unexelf.c:
19265 * unexhp9k800.c:
19266 * m/hp800.h:
19267 * m/ibmrs6000.h:
19268 * m/mips.h:
19269 * m/vax.h:
19270 * s/darwin.h:
19271 * s/freebsd.h:
19272 * s/gnu.h:
19273 * s/ms-w32.h:
19274 * s/msdos.h:
19275 * s/netbsd.h:
19276 * s/template.h: Remove references to obsolete variables.
19277
19278 * Makefile.in: Add dependencies for all unexec files.
19279 (admindir): Remove unused variable.
19280 (UNEXEC_SRC): Remove references.
19281
192822008-06-25 Chong Yidong <cyd@stupidchicken.com>
19283
19284 * xfns.c (x_default_font_parameter): If Xft is available, first
19285 try Monospace-12 for the default font.
19286
192872008-06-25 Jason Rumney <jasonr@gnu.org>
19288
19289 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19290
192912008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19292
19293 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19294
19295 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19296
192972008-06-25 Juanma Barranquero <lekktu@gmail.com>
19298
19299 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19300 <scroll-conservatively>: Fix typo in docstring.
19301
19302 * xselect.c (Fx_send_client_event): Doc fix.
19303
193042008-06-25 Kenichi Handa <handa@m17n.org>
19305
19306 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19307
19308 * font.c (font_parse_fcname): Remove unused variables.
19309 (font_sort_entites): Delete the arg SPEC. Caller changed.
19310 Fix for the case of ! best_only.
19311 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19312
19313 * lisp.h (Fstring_to_unibyte): EXFUN it.
19314
19315 * character.h (str_to_unibyte): Extern it.
19316
19317 * character.c (str_to_unibyte): New function.
19318
19319 * fns.c (Fstring_to_unibyte): New function.
19320 (syms_of_fns): Defsubr it.
19321
193222008-06-24 Kenichi Handa <handa@m17n.org>
19323
19324 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19325 DPI too.
19326 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19327
193282008-06-24 Andreas Schwab <schwab@suse.de>
19329
19330 * Makefile.in (${lispsource}loaddefs.el): Rename from
19331 ../lisp/loaddefs.el.
19332 (bootstrap-clean): Do what distclean does but don't remove
19333 Makefile.
19334 (distclean): Depend on bootstrap-clean and remove Makefile.
19335
193362008-06-24 Chong Yidong <cyd@stupidchicken.com>
19337
19338 * buffer.h (struct buffer): New member word_wrap.
19339
19340 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19341 word-wrap.
19342 (init_buffer_once): Initialize them.
19343
19344 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19345 line_wrap enum possessing three possible values.
19346
19347 * termopts.h: Replace truncate_partial_width_windows with
19348 Vtruncate_partial_width_windows.
19349
19350 * dispnew.c (direct_output_for_insert): Avoid direct output when
19351 inserting a space with word wrap on.
19352
19353 * indent.c (compute_motion): Obey integer values of
19354 truncate-partial-width-windows.
19355
19356 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19357 replacing truncate_partial_width_windows.
19358 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19359 truncate only if the window width is below that integer.
19360 (start_display, resize_mini_window, produce_stretch_glyph)
19361 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
19362 (back_to_previous_visible_line_start, reseat_1):
19363 Reset string_from_display_prop_p.
aac0c6e3
MR
19364 (display_line): Extend default face to end of line when wrapping.
19365
193662008-06-24 Kim F. Storm <storm@cua.dk>
19367
19368 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19369 to wrap continued lines at word boundaries.
19370
193712008-06-24 Jason Rumney <jasonr@gnu.org>
19372
19373 * font.c (Ffont_face_attributes): Multiply pixel size before point
19374 conversion to avoid multiplying rounding error.
19375
193762008-06-23 Jason Rumney <jasonr@gnu.org>
19377
19378 * w32term.c (x_draw_glyph_string_background)
19379 (x_draw_glyph_string): Remove old bdf font code.
19380
19381 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19382
193832008-06-22 Kenichi Handa <handa@m17n.org>
19384
19385 * font.c (font_find_for_lface): Try the adstyle specified in
19386 the property of LFACE_FONT of LFACE (if any).
19387
193882008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19389 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19390
19391 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19392
193932008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19394
19395 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19396 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19397 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19398 (witness-emacs): Remove.
19399 (lisp, shortlisp): Move loaddefs.el earlier.
19400 (mostlyclean): Forget about witness-emacs.
19401
194022008-06-22 Glenn Morris <rgm@gnu.org>
19403
19404 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19405 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19406
194072008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19408
19409 * Makefile.in (PRECOMP): Remove.
19410 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19411 (witness-emacs): Run `compile-first'.
19412 (.el.elc): Use the new compile-onefile target.
19413
194142008-06-21 Kenichi Handa <handa@m17n.org>
19415
19416 * xftfont.c (xftfont_open): Handle QCembolden only when
19417 FC_EMBOLDEN is defined.
19418
194192008-06-21 Andreas Schwab <schwab@suse.de>
19420
19421 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19422 (.el.elc): Likewise.
19423
194242008-06-21 Miles Bader <miles@gnu.org>
19425
19426 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19427 build dir, not the lisp source dir.
19428
194292008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19430
19431 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19432 (bootstrapclean): Remove.
19433 (.el.elc): New rule.
19434 (PRECOMP): New var.
19435 (../lisp/subdirs.el): Remove.
19436 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19437 (witness-emacs): New target.
19438 (mostlyclean): Remove witness-emacs as well.
19439 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19440 Add witness-emacs dependency.
19441
194422008-06-20 Chong Yidong <cyd@stupidchicken.com>
19443
19444 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19445 defined by the font.
19446
194472008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19448
19449 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19450 (bootstrap-clean): New target that keeps TAGS around.
19451 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19452 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19453
194542008-06-20 Jason Rumney <jasonr@gnu.org>
19455
19456 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19457 Remove obsolete font code.
19458
19459 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19460 to determine language support.
19461
194622008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19463
19464 * sysdep.c (cfsetspeed): New fun extracted from the code.
19465 (cfmakeraw): Move before first use.
19466
194672008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19468
19469 * sysdep.c (cfmakeraw): Provide fallback implementation.
19470 (serial_configure): Provide fallback implementation of cfsetspeed.
19471
194722008-06-20 Kenichi Handa <handa@m17n.org>
19473
19474 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19475 the pattern.
19476
19477 * fontset.c (fontset_from_font): Copy font_spec before changing
19478 the elements.
19479
19480 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19481
194822008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19483
19484 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19485 for explicit `font' parameters.
19486
19487 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19488
194892008-06-19 Kenichi Handa <handa@m17n.org>
19490
19491 * frame.c: Include <ctype.h>.
19492 (x_set_font_backend): Allow spacing characters in the X resource
19493 for FontBackend.
19494
194952008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19496
19497 * w32fns.c, xfns.c (Qfont_param): New var.
19498 (syms_of_w32fns): Initialize it.
19499 (x_default_font_parameter): Record explicit `font' into
19500 `font-parameter'.
19501
195022008-06-18 Kenichi Handa <handa@m17n.org>
19503
19504 * font.c (font_parse_xlfd): Fix previous change.
19505 (font_parse_fcname): Don't use :fc-unknown-spec.
19506 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19507 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19508 (font_add_log): Prepend the driver name to the resulting fonts.
19509
19510 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19511 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19512 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19513
19514 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19515 (QCembolden): New variables.
19516 (syms_of_xftfont): DEFSYM them.
19517 (xftfont_open): Call XftFontMatch. Don't trust the result of
19518 XftTextExtents8 if the pixel_size is less than 5.
19519
195202008-06-18 Andreas Schwab <schwab@suse.de>
19521
19522 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19523 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19524
195252008-06-18 Jason Rumney <jasonr@gnu.org>
19526
19527 * w32font.c (w32font_list, w32font_match): Add logging.
19528
19529 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19530
195312008-06-17 Chong Yidong <cyd@stupidchicken.com>
19532
19533 * font.c (font_parse_fcname): Store divider characters for
19534 unknown-spec list. For known key symbols, intern using correct
19535 symbol name.
19536
195372008-06-17 Kenichi Handa <handa@m17n.org>
19538
19539 * xfaces.c (realize_default_face): If the frame is not on window
19540 system, set the fontset of face to nil.
19541
195422008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19543
19544 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
19545
195462008-06-16 Juanma Barranquero <lekktu@gmail.com>
19547
19548 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
19549 (build_font_name_from_vector): Delete externs.
19550
19551 * xfaces.c (struct font_name): Don't declare.
19552
195532008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
19554
19555 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
19556
195572008-06-16 Chong Yidong <cyd@stupidchicken.com>
19558
19559 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
19560
195612008-06-16 Juanma Barranquero <lekktu@gmail.com>
19562
19563 * font.c (Ffont_spec): Fix usage in docstring.
19564 (Ffont_face_attributes): Doc fix.
19565
195662008-06-16 Andreas Schwab <schwab@suse.de>
19567
19568 * font.c (Ffont_face_attributes): Fix definition.
19569
195702008-06-16 Jason Rumney <jasonr@gnu.org>
19571
19572 * font.h (font_style_symbolic_from_value): Remove.
19573
19574 * font.c (font_style_symbolic_from_value): Remove.
19575 (font_style_symbolic): Revert to pre 2008-06-13 version.
19576
19577 * w32font.c (w32_to_fc_weight): New function.
19578 (w32font_full_name, logfont_to_fcname): Use it.
19579
195802008-06-16 Kenichi Handa <handa@m17n.org>
19581
19582 * font.c (font_check_object): Delete it.
19583 (font_clear_cache): Check if a font-object is alive.
19584 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
19585 font-object to nil.
19586 (font_close_object): Don't check FONT_CLOSE_OBJECT.
19587 (font_at): Don't call font_check_object.
19588 (Ffont_get): Return a symbol for :weight, :slant, and :width.
19589
195902008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
19591
19592 * puresize.h (BASE_PURESIZE): Increase to 1230000.
19593
195942008-06-16 Chong Yidong <cyd@stupidchicken.com>
19595
19596 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
19597
195982008-06-15 Chong Yidong <cyd@stupidchicken.com>
19599
19600 * font.c (font_parse_fcname): Only one decimal point.
19601 (font_unparse_fcname): Handle data in family and foundry indices
19602 as symbols, not strings.
19603 (font_unparse_gtkname, Ffont_face_attributes): New functions.
19604
19605 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
19606
19607 * font.h (font_unparse_gtkname): Add prototype.
19608
196092008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19610
19611 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
19612
196132008-06-15 Andreas Schwab <schwab@suse.de>
19614
19615 * font.c (font_update_drivers): Fix crash when no drivers match.
19616
196172008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
19618
19619 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
19620 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
19621
196222008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
19623
19624 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
19625
196262008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
19627
19628 * process.c (Fserial_process_configure, Fprocess_send_eof):
19629 Use EQ to compare Lisp_Objects.
19630
196312008-06-13 Jason Rumney <jasonr@gnu.org>
19632
19633 * w32fns.c (Fw32_select_font): Remove old font API function.
19634
19635 * w32font.c (logfont_to_fcname): New function.
19636 (Fx_select_font): New font dialog function compatible with
19637 GTK/fontconfig version.
19638
19639 * font.c (font_style_symbolic_from_value): New function.
19640 (font_style_symbolic): Use it.
19641
19642 * font.h (font_style_symbolic_from_value): Declare new function.
19643
196442008-06-13 Juanma Barranquero <lekktu@gmail.com>
19645
19646 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
19647 <font-width-table>: Fix typos in docstrings.
19648
196492008-06-13 Daniel Engeler <engeler@gmail.com>
19650
19651 These changes add serial port access.
19652 * process.c: Add HAVE_SERIAL.
19653 (Fdelete_process, Fprocess_status, Fset_process_buffer)
19654 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
19655 (list_processes_1, select_wrapper, Fstop_process)
19656 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
19657 (status_notify): Modify to handle serial processes.
19658 [HAVE_SERIAL] (Fserial_process_configure)
19659 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
19660 New functions.
19661 * process.h (struct Lisp_Process): Add `type'.
19662 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
19663 New functions.
19664 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
19665 serial ports.
b71ac3dd 19666 (serial_open, serial_configure): New functions.
aac0c6e3
MR
19667 * w32.h: Add FILE_SERIAL.
19668 (struct _child_process): Add ovl_read, ovl_write.
19669
196702008-06-13 Kenichi Handa <handa@m17n.org>
19671
19672 * dispextern.h (enum lface_attribute_index): New member
19673 LFACE_FOUNDRY_INDEX.
19674
19675 * font.c (font_score): Delete arg alternate_families. Check only
19676 weight, slant, width, and size. Ignore the difference of alias
19677 style symbols.
19678 (font_sort_entites): Adjust for the above change. Reflect the
19679 order of font-driver to scores.
19680 (font_list_entities): Don't check alternate_familes here.
19681 (font_clear_prop): Handle foundry.
19682 (font_update_lface): Don't parse "foundry-family" form here.
19683 Handle FONT_FOUNDRY_INDEX.
19684 (font_find_for_lface): Likewise. Handle alternate families here.
19685 If registry is nil, try iso8859-1 and ascii-0.
19686 (font_open_for_lface): Pay attention to size in ENTITY.
19687 (font_open_by_name): Simplify by calling font_load_for_lface.
19688 (free_font_driver_list): Delete it.
19689 (font_update_drivers): Preserve the order of backends.
19690 (syms_of_font): Setting of sort_shift_bits adjusted for the change
19691 of font_score and font_sort_entites.
19692 (font_update_sort_order): Likewise.
19693
19694 * xfaces.c (LFACE_FOUNDRY): New macro.
19695 (check_lface_attrs): Check foundry.
19696 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
19697 (merge_face_vectors): Check foundry.
19698 (merge_face_ref): Likewise.
19699 (Finternal_set_lisp_face_attribute): Likewise.
19700 (x_update_menu_appearance): Likewise.
19701 (Finternal_get_lisp_face_attribute): Likewise.
19702 (lface_hash): Likewise.
19703 (lface_same_font_attributes_p): Likewise.
19704 (x_supports_face_attributes_p): Likewise.
19705 (tty_supports_face_attributes_p): Likewise.
19706 (Finternal_set_alternative_font_family_alist): Intern strings.
19707 (Finternal_set_alternative_font_registry_alist): Downcase strings.
19708 (realize_default_face): Set LFACE_FOUNDRY (lface).
19709
19710 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
19711 font-driver at first.
19712
19713 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
19714
197152008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19716
19717 * lread.c (Fload): Use xfree, not free on saved_doc_string.
19718
197192008-06-12 Jim Meyering <meyering@redhat.com>
19720
19721 Make unexec_free handle NULL the same way free does.
19722 * unexmacosx.c (unexec_free): Ignore a NULL argument.
19723
197242008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19725
19726 * character.h (CHAR_TO_BYTE_SAFE): New macro.
19727 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
19728 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
19729 (WEAK_ALIAS): Simplify.
19730 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
19731 when searching a unibyte buffer.
19732
197332008-06-12 Chong Yidong <cyd@stupidchicken.com>
19734
19735 * xfns.c (Fx_select_font): Rename from x-font-dialog.
19736
197372008-06-12 Juanma Barranquero <lekktu@gmail.com>
19738
19739 * w32font.c: Include ctype.h.
19740
197412008-06-11 Jason Rumney <jasonr@gnu.org>
19742
19743 * w32font.c (w32font_encode_char): Detect missing glyphs that are
19744 misreported as space.
19745 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
19746 as aliases for registry iso10646-1.
19747
197482008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19749
19750 * buffer.c (clone_per_buffer_values): Skip `name'.
19751
197522008-06-11 Chong Yidong <cyd@stupidchicken.com>
19753
19754 * font.c (font_parse_fcname): Fix last change; accept decimal
19755 points in font size.
19756
197572008-06-10 Jason Rumney <jasonr@gnu.org>
19758
19759 * w32uniscribe.c (add_opentype_font_name_to_list):
19760 Skip non unicode fonts.
19761
197622008-06-10 Chong Yidong <cyd@stupidchicken.com>
19763
19764 * xfns.c (Fx_font_dialog): New function.
19765
19766 * gtkutil.c (xg_dialog_response_cb): Rename from
19767 xg_file_response_callback.
19768 (pop_down_dialog): Rename from pop_down_file_dialog.
19769 (xg_get_file_name): Callers changed.
19770 (xg_get_font_name): New function.
19771
19772 * gtkutil.h (xg_get_font_name): Insert prototype.
19773
197742008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19775
19776 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19777 x_underline_minimum_display_offset.
19778 (syms_of_xdisp): Declare it here rather than in xterm.c.
19779 * dispextern.h (underline_minimum_offset): Declare it.
19780 * w32term.c (x_draw_glyph_string): Use it.
19781 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
19782 (syms_of_xterm): Don't declare it any more.
19783 (x_draw_glyph_string): Adjust to the new name.
19784
8719abec 197852008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
19786
19787 * xterm.c (x_underline_minimum_display_offset): New var.
19788 (x_draw_glyph_string): Use it.
19789 (syms_of_xterm): Declare it.
19790
197912008-06-10 Chong Yidong <cyd@stupidchicken.com>
19792
19793 * font.c (font_parse_fcname): Accept GTK-style font names too.
19794
197952008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19796
19797 * dired.c (file_name_completion): Don't return t if the match is exact
19798 but with different capitalization.
19799 * minibuf.c (Ftry_completion): Simplify.
19800
19801 * window.c (Vwindow_point_insertion_type): New var.
19802 (set_window_buffer): Use it.
19803 (syms_of_window): Init and export it to Lisp.
19804
198052008-06-10 Kenichi Handa <handa@m17n.org>
19806
19807 * font.h (font_intern_prop): Prototype adjusted.
19808
19809 * font.c (font_intern_prop): New arg force_symbol.
19810 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
19811 Adjust for the change of font_intern_prop.
19812
19813 * ftfont.c (ftfont_pattern_entity):
19814 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
19815 (w32_registry):
19816 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
19817 the change of font_intern_prop.
19818
198192008-06-09 Juanma Barranquero <lekktu@gmail.com>
19820
19821 * w32menu.c (digest_single_submenu): Declare extern.
19822
198232008-06-09 Jason Rumney <jasonr@gnu.org>
19824
19825 * w32term.c (x_make_frame_visible): Use alternate restore flags.
19826
19827 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
19828 (parse_single_submenu): Remove.
19829 (digest_single_submenu): Remove.
19830 (syms_of_w32menu): Don't initialise variables that have moved
19831 to menu.c.
19832 (set_frame_menubar): Sync with version in xmenu.c.
19833 (w32_menu_show): Sync with xmenu_show in xmenu.c.
19834
19835 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
19836 Make static again.
19837
198382008-06-09 Jason Rumney <jasonr@gnu.org>
19839
19840 Changes to w32 files related to the move of common menu code
19841 to menu.c on 2008-06-08 by Chong Yidong.
19842
19843 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
19844 defs to w32gui.h.
19845 (single_keymap_panes, push_menu_item, push_menu_pane):
19846 Make globally visible.
19847
19848 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
19849 (local_free, malloc_widget_value, free_widget_value)
19850 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
19851 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
19852 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
19853 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
19854 (menu_items, menu_items_allocated, menu_items_used)
19855 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
19856 (init_menu_items, finish_menu_items, discard_menu_items)
19857 (grow_menu_items, push_submenu_start, push_submenu_end)
19858 (push_left_right_boundary, push_menu_pane, push_menu_item)
19859 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
19860 (free_menubar_widget_tree_value, parse_single_submenu)
19861 (update_submenu_strings): Remove functions.
19862 (xmalloc_widget_value): Remove and declare extern.
19863
19864 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
19865 (OBJ1): Build it.
19866
19867 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
19868 (local_heap, local_alloc, local_free, malloc_widget_value)
19869 (free_widget_value): Define here.
19870
198712008-06-09 Kenichi Handa <handa@m17n.org>
19872
19873 * font.h (Qascii_0): Extern it.
19874
19875 * font.c (Qascii_0): New variable.
19876 (syms_of_font): DEFSYM it.
19877 (font_open_by_name): If the registry "iso8859-1" fails, try also
19878 "ascii-0".
19879
19880 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19881
198822008-06-08 Kenichi Handa <handa@m17n.org>
19883
19884 * .gdbinit (xfont): New command.
19885
198862008-06-08 Andreas Schwab <schwab@suse.de>
19887
19888 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19889 * Makefile.in (menu.o): Update dependencies.
19890
19891 * Makefile.in (obj): Always add menu.o.
19892 * emacs.c (main): Always call syms_of_menu.
19893 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19894
198952008-06-08 Chong Yidong <cyd@stupidchicken.com>
19896
19897 * Makefile.in: Compile menu.c.
19898
19899 * lisp.h: Declare syms_of_menu.
19900
19901 * emacs.c (main): Call syms_of_menu.
19902
19903 * keyboard.h: Relocate platform-independent menu definitions from
19904 xmenu.c.
19905
19906 * menu.c: New file. Relocate platform-independent menu
19907 definitions from xmenu.c. Suggested by Adrian Robert.
19908
19909 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 19910 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
19911 (menu_items_used, menu_items_n_panes)
19912 (menu_items_submenu_depth): Move to keyboard.h.
19913 (init_menu_items, finish_menu_items, unuse_menu_items)
19914 (discard_menu_items, restore_menu_items, save_menu_items)
19915 (grow_menu_items, push_submenu_start, push_submenu_end)
19916 (push_left_right_boundary, push_menu_pane, push_menu_item)
19917 (keymap_panes, single_keymap_panes, single_menu_item)
19918 (list_of_panes, list_of_items, find_and_call_menu_selection)
19919 (xmalloc_widget_value, free_menubar_widget_value_tree)
19920 (parse_single_submenu, digest_single_submenu)
19921 (update_submenu_strings): Move to menu.c.
19922
199232008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19924
19925 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19926
199272008-06-06 Miles Bader <miles@gnu.org>
19928
19929 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19930 face, not frame default.
19931
199322008-06-05 Martin Rudalics <rudalics@gmx.at>
19933
19934 * window.c (pop_up_windows, pop_up_frames)
19935 (display_buffer_reuse_frames, Vpop_up_frame_function)
19936 (Vdisplay_buffer_function, Veven_window_heights)
19937 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19938 (Vspecial_display_function, Vsame_window_buffer_names)
19939 (Vsame_window_regexps, split_height_threshold)
19940 (Vsplit_window_preferred_function): Move those vars to window.el.
19941 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19942 (Fdisplay_buffer): Move those functions to window.el.
19943 (syms_of_window): Remove corresponding declarations.
19944 (display_buffer): New function.
19945 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19946 * dispnew.c (Flast_nonminibuf_frame): New function.
19947 * buffer.c (Fpop_to_buffer): Move to window.el.
19948
199492008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19950
19951 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19952
199532008-06-05 Kenichi Handa <handa@m17n.org>
19954
19955 * coding.c (detect_coding): Fix previous change.
19956 (detect_coding_system): Likewise.
19957
199582008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19959
19960 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
19961
19962 * keymap.c (Vminibuffer_local_filename_must_match_map):
19963 Rename from Vminibuffer_local_must_match_filename_map.
19964 (syms_of_keymap):
19965 * minibuf.c (Fcompleting_read): Adjust accordingly.
19966 * commands.h: Rename declaration as well.
19967
199682008-06-05 Kenichi Handa <handa@m17n.org>
19969
19970 * font.c (Ffont_spec): Don't use font_parse_family_registry for
19971 family name.
19972 (Ffont_put): Likewise.
19973
19974 * fontset.c (fontset_find_font): Call font_open_for_lface with the
19975 current font-spec.
19976
19977 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
19978 is unspecified.
19979
19980 * xfaces.c (realize_x_face): If the font-related face attributes
19981 are the same as those of default face, realize a new fontset from
19982 default->fontset.
19983 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
19984
199852008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19986
19987 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
19988 (move_it_in_display_line): New wrapper.
19989
19990 * window.c (window_scroll_pixel_based_preserve_x)
19991 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
19992 (window_scroll_pixel_based, window_scroll_line_based):
19993 Use them to preserve column positions.
19994 (syms_of_window): Initialize them.
19995
19996 * indent.c (Fvertical_motion): Extend first arg to allow passing an
19997 (HPOS . VPOS) pair.
19998
19999 * dispextern.h (move_it_in_display_line): Declare.
20000
200012008-06-05 Juanma Barranquero <lekktu@gmail.com>
20002
20003 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20004 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20005 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20006
200072008-06-04 Juanma Barranquero <lekktu@gmail.com>
20008
20009 * window.c (Fset_window_parameter): Doc fix.
20010 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20011
200122008-06-04 Joakim Verona <joakim@verona.se>
20013
20014 * window.h (struct window): Add new member window_parameters.
20015
20016 * window.c (Fwindow_parameters, Fwindow_parameter)
20017 (Fset_window_parameter): New defuns.
20018 (syms_of_window): Defsubr the new defuns.
20019 (make_window): Initialize window_parameters to nil.
20020
200212008-06-04 John Paul Wallington <jpw@pobox.com>
20022
20023 * eval.c (Fdefmacro): Doc fix.
20024
200252008-06-04 Kenichi Handa <handa@m17n.org>
20026
20027 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20028 Be sure to call setup_coding_system when we find a proper coding system.
20029 (detect_coding_system): Fix handling of coding->head_ascii.
20030
200312008-06-03 Andreas Schwab <schwab@suse.de>
20032
20033 * font.c (font_prop_validate_spacing): Fix last change.
20034
200352008-06-03 Kenichi Handa <handa@m17n.org>
20036
20037 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20038 (font_parse_fcname): Fix handling of unknown key.
20039
20040 * xfont.c (xfont_list): Try an alias.
20041
20042 * charset.c (char_charset): Return NULL if the arg charset_list is
20043 specified and C doesn't belong to any of them.
20044
200452008-06-02 Chip Coldwell <coldwell@redhat.com>
20046
20047 * font.c (font_pixel_size): Don't take cdr of an integer.
20048
200492008-06-02 Jim Meyering <meyering@redhat.com>
20050
20051 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20052 * alloc.c (xfree): Return right away for a NULL arg.
20053 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20054 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20055 * mac.c (create_apple_event_from_event_ref): Likewise.
20056 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20057 Likewise.
20058 * doprnt.c (doprnt1): Likewise.
20059 * frame.c (frame): Likewise.
20060 * keyboard.c (wipe_kboard): Likewise.
20061 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20062 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20063 * term.c (tty_default_color_capabilities, maybe_fatal)
20064 (delete_tty): Likewise.
20065 * w16select.c (string): Likewise.
20066 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20067 * w32bdf.c (w32_free_bdf_font): Likewise.
20068 * w32fns.c (w32_unload_font): Likewise.
20069 * w32font.c (w32font_close): Likewise.
20070 * window.c (size_window): Likewise.
20071 * xselect.c (receive_incremental_selection): Likewise.
20072 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20073 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20074 * w32.c (stat): Likewise.
20075
20076 Remove useless if-before-free tests.
20077 * editfns.c (Fset_time_zone_rule): Likewise.
20078 * lread.c (nosuffix): Likewise.
20079 * ralloc.c (get_bloc): Likewise.
20080 * regex.c (reg_free): Likewise.
20081 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20082 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20083 * xsmfns.c (smc_save_yourself_CB): Likewise.
20084
200852008-06-02 Kenichi Handa <handa@m17n.org>
20086
20087 * font.c (font_find_for_lface): Handle float font size.
20088 (font_open_for_lface): Likewise.
20089
20090 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20091 comparing the properties.
20092
200932008-06-01 Jason Rumney <jasonr@gnu.org>
20094
20095 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20096 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20097 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20098 Don't add empty script list.
20099 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20100
201012008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20102
20103 * Makefile.in (dot, dotdot): Remove, update users.
20104 ".." has been used elsewhere in the file for a long time.
20105 (LIBXT_STATIC): Remove conditional based on unused variable.
20106
201072008-06-01 Miles Bader <miles@gnu.org>
20108
20109 * xfaces.c (Vface_remapping_alist): New variable.
20110 (syms_of_xfaces): Initialize it.
20111 (enum named_merge_point_kind): New type.
20112 (struct named_merge_point): Add `named_merge_point_kind' field.
20113 (push_named_merge_point): Make cycle detection respect different
20114 named-merge-point kinds.
20115 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20116 Remove face-name alias resolution.
20117 (lface_from_face_name): New definition using
20118 `lface_from_face_name_no_resolve'.
20119 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20120 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20121 (get_lface_attributes): New definition that layers face-remapping on
20122 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20123 (lookup_basic_face): New function.
20124 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20125 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20126 `get_lface_attributes'.
20127 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20128 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20129 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20130
20131 * xdisp.c (init_iterator): Pass base_face_id through
20132 `lookup_basic_face' when we actually use it as a face-id.
20133 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20134 DEFAULT_FACE_ID.
20135
20136 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20137 lookup the initial face-id.
20138
20139 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20140
201412008-06-01 Juanma Barranquero <lekktu@gmail.com>
20142
20143 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20144 (Fremove_text_properties): Fix typos in docstrings.
20145
201462008-05-31 Kenichi Handa <handa@m17n.org>
20147
20148 * font.c (font_list_entities): Fix the car part of data to be
20149 stored in the cache.
20150
20151 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20152
201532008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20154
20155 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20156 Add a `test' argument so another predicate than `equal' can be used.
20157 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20158 (map_char_table): Remove unused vars `c' and `i'.
20159 * lisp.h (Foptimize_char_table): Adjust declaration.
20160 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20161
201622008-05-30 Kenichi Handa <handa@m17n.org>
20163
20164 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20165 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20166 defined.
20167
201682008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20169
20170 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20171 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20172 frame-local settings for the same variable.
20173
201742008-05-30 Kenichi Handa <handa@m17n.org>
20175
20176 * fontset.c (Ffont_info): Move to font.c.
20177 (syms_of_fontset): Delete defsubr of Sfont_info.
20178
20179 * font.c (font_style_to_value, font_score): Delete casting of the
20180 args to xstcasecmp.
20181 (register_font_driver): Increment num_font_drivers only when
20182 registering the driver globally.
20183 (Ffont_info): Move from fontset.c. Handle a font object too.
20184 (syms_of_font): Defsubr Sfont_info.
20185
201862008-05-29 Kenichi Handa <handa@m17n.org>
20187
20188 * coding.h (enum define_coding_utf8_arg_index): New enum.
20189 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20190 coding_attr_utf_bom.
20191 (enum utf_bom_type): Rename from utf_16_bom_type.
20192 (struct utf_16_spec): Adjust for the above change.
20193 (struct coding_system): Add utf_8_bom in `spec' union.
20194
20195 * coding.c (CODING_UTF_8_BOM): New macro.
20196 (enum coding_category): Delete coding_category_utf_8, add
20197 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20198 coding_category_utf_8_sig.
20199 (CATEGORY_MASK_UTF_8): Delete it.
20200 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20201 (CATEGORY_MASK_UTF_8_SIG): New macros.
20202 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20203 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20204 CATEGORY_MASK_UTF_8_SIG.
20205 (CATEGORY_MASK_UTF_8): New macro.
20206 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20207 (detect_coding_utf_8): Check BOM.
20208 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20209 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20210 (encode_coding_utf_16): Likewise.
20211 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20212 (detect_coding, detect_coding_system): Handle utf-8-auto.
20213 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20214 (syms_of_coding): Fix setting up of Vcoding_category_table.
20215
202162008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20217
20218 * process.c (Faccept_process_output): If `millisec' is non-nil,
20219 `seconds' default to 0.
20220 (wait_reading_process_output): Also return non-nil if we read output
20221 from a non-running process.
20222
202232008-05-29 Jason Rumney <jasonr@gnu.org>
20224
20225 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20226 `raster' specified.
20227 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20228 in the uniscribe backend, but disallow any font that has no
20229 unicode subrange support.
20230
202312008-05-29 Juanma Barranquero <lekktu@gmail.com>
20232
20233 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20234 Fix typos in docstrings.
20235
202362008-05-29 Kenichi Handa <handa@m17n.org>
20237
20238 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20239 (Fx_family_fonts): Set frame correctly.
20240
202412008-05-28 Jason Rumney <jasonr@gnu.org>
20242
20243 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20244
202452008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20246
20247 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20248 calling build_annotations.
20249
202502008-05-28 Juanma Barranquero <lekktu@gmail.com>
20251
20252 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20253 (Fencode_coding_string):
20254 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20255 <latin-extra-code-table>: Fix typos in docstrings.
20256 (syms_of_coding) <coding-system-alist>: Doc fix.
20257 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20258
202592008-05-28 Kenichi Handa <handa@m17n.org>
20260
20261 * fontset.c (Ffont_info): Don't call font_close_object.
20262
20263 * font.c (font_parse_family_registry): Use Ffont_put to validate
20264 foundry and family.
20265 (font_delete_unmatched): Don't check spacing.
20266 (font_list_entities): Add spacing to the spec to list fonts.
20267
20268 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20269 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20270
20271 * coding.c (encode_coding_raw_text): Fix previous change.
20272 (encode_coding_object): When the dst_object is a buffer and is
20273 different from src_object, move gap to PT.
20274
202752008-05-27 Chong Yidong <cyd@stupidchicken.com>
20276
20277 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20278
202792008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20280
20281 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20282 all branches. Compute it differently.
20283
20284 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20285
202862008-05-27 Juanma Barranquero <lekktu@gmail.com>
20287
20288 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20289 into "else if () ... else ...".
20290
202912008-05-27 Jason Rumney <jasonr@gnu.org>
20292
20293 * w32font.c (w32font_open_internal): Determine if glyph indices
20294 are likely to work here.
20295
202962008-05-27 Chong Yidong <cyd@stupidchicken.com>
20297
20298 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20299 draw overlap glyphs with appropriate highlighting.
20300
203012008-05-27 Kenichi Handa <handa@m17n.org>
20302
20303 * xfont.c (xfont_open): Fix calculation of font->average_width.
20304
203052008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20306
20307 * casefiddle.c (casify_object): Try to guess better whether the
20308 argument is a byte or a char.
20309
203102008-05-26 Andreas Schwab <schwab@suse.de>
20311
20312 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20313 Always send multiples of format size.
20314
20315 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20316
203172008-05-26 Jason Rumney <jasonr@gnu.org>
20318
20319 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20320 (compute_metrics): Don't set failure if we just cleared the cache.
20321 (w32_weight_table): Remove unused variable.
20322 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20323 backwards compatibility.
20324
203252008-05-25 Kenichi Handa <handa@m17n.org>
20326
20327 * w32term.c (x_draw_glyph_string):
20328 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20329
20330 * xfaces.c: Delete unused function prototypes.
20331 (xstrlwr, font_frame): Delete them.
20332 (clear_face_cache): Delete unused variable.
20333
20334 * xftfont.c (xftfont_open): Delete unused variable.
20335 If underline_thickness is not 1, adjust underline_position.
20336
20337 * ftxfont.c (ftxfont_open): Delete unused variable.
20338
20339 * fontset.c (face_for_char): Optimize for the case of no charset
20340 property.
20341
20342 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20343 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20344 (otf_open, font_otf_capability, generate_otf_features)
20345 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20346 Comment out by surrounding "#if 0" and "#endif" for the moment.
20347 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20348 (syms_of_font): Codes for accessing above commented out.
20349
203502008-05-24 Eli Zaretskii <eliz@gnu.org>
20351
20352 * w32proc.c: Include dispextern.h.
20353
20354 * w32.c: Include dispextern.h.
20355
203562008-05-23 Juanma Barranquero <lekktu@gmail.com>
20357
20358 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20359 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20360 Fix typos in docstrings.
20361
203622008-05-23 Jason Rumney <jasonr@gnu.org>
20363
20364 * xsmfns.c: Remove includes that are already included by config.h.
20365
203662008-05-23 Kenichi Handa <handa@m17n.org>
20367
20368 * charset.c (Qemacs, charset_emacs): New variables.
20369 (char_charset): Fix for non-Unicode characters.
20370 (syms_of_charset): Define charset_emacs.
20371
20372 * w32term.c (x_draw_glyph_string): Be sure to update
20373 s->underline_thickness and s->underline_position. Be sure to draw
20374 underline within the current line area.
20375
20376 * xterm.c (x_draw_glyph_string): Be sure to update
20377 s->underline_thickness and s->underline_position. Be sure to draw
20378 underline within the current line area.
20379
20380 * fontset.c: Delete unused variables and add casting for char *
20381 throughout the file.
20382 (fontset_font): Try the fallback fonts of the current fontset
20383 before consulting the default fontset.
20384
20385 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20386
20387 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20388
203892008-05-22 Jason Rumney <jasonr@gnu.org>
20390
20391 * font.c: Don't include strings.h.
20392
20393 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20394
20395 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20396 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20397 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20398 to call xstrcasecmp.
20399
20400 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20401
20402 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20403
20404 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20405
20406 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20407
204082008-05-22 Kenichi Handa <handa@m17n.org>
20409
20410 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20411
20412 * font.c (font_prop_validate_style): Adjust for the format
20413 change of font_style_table.
20414
20415 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20416 two args.
20417
20418 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20419 two args.
20420
204212008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20422
20423 * minibuf.c (keys_of_minibuf): Delete.
20424 * lisp.h (keys_of_minibuf): Delete.
20425 * emacs.c (main): Don't call keys_of_minibuf.
20426
204272008-05-22 Kenichi Handa <handa@m17n.org>
20428
20429 * ftfont.c (ftfont_resolve_generic_family): Rename from
20430 ftfont_list_generic_family. Return a single family for each
20431 generic family.
20432 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20433 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20434 Call font_add_log.
20435 (ftfont_match): Call font_add_log.
20436
20437 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20438 (FONT_DEBUG): Define it.
20439 (font_add_log): Extern it.
20440 (font_assert): Rename from xassert.
20441
20442 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20443 (xfont_list_family): Call font_add_log.
20444 (xfont_match): Likewise.
20445 (memq_no_quit): Delete.
20446
20447 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20448 call of Ffont_xlfd_name.
20449
20450 * xfaces.c (struct table_entry, slant_table, weight_table)
20451 (swidth_table): Move to font.c.
20452
20453 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20454 xassert are changed to font_assert. Delete many unused variables.
20455 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20456 New variables.
20457 (struct table_entry): Move from xfaces.c and modified.
20458 (weight_table, slant_table, width_table): Move from xfaces.c and
20459 contents adjusted for the change of struct table_entry.
20460 (font_style_to_value, font_style_symbolic): Adjust for the
20461 format change of font_style_table.
20462 (font_parse_family_registry): Don't overwrite existing foundry and
20463 family of font_spec.
20464 (font_score): Fix calculation of diff for sizes.
20465 (font_sort_entites): Call font_add_log.
20466 (font_delete_unmatched): Return a newly created list.
20467 (font_list_entities): Fix previous change. Call font_add_log.
20468 (font_matching_entity, font_open_entity, font_close_entity):
20469 Call font_add_log.
20470 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20471 (Finternal_set_font_style_table): Delete.
20472 (BUILD_STYLE_TABLE): New macro.
20473 (build_style_table): New function.
20474 (Vfont_log, font_log_env_checked): New variables.
20475 (font_add_log): New function.
20476 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20477 Declare Lisp variables "font-weight-table", "font-slant-table",
20478 "font-width-table", and "font-log". Initialize font_style_table.
20479
204802008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20481
20482 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20483
204842008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 20485 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
20486
20487 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20488 (Vframe_alpha_lower_limit): New variable.
20489 (x_set_alpha): New function.
20490
20491 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20492
20493 * xfns.c (x-create-frame, Qalpha):
20494 Initialize the frame parameter `alpha'.
20495 * xterm.c (OPAQUE, OPACITY): New.
20496 (x_set_frame_alpha): New function.
20497 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20498
20499 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20500 * w32fns.c (w32_frame_parm_handlers): Likewise.
20501
205022008-05-20 Jason Rumney <jasonr@gnu.org>
20503
20504 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20505 truetype fonts to opentype list.
20506
205072008-05-20 Juanma Barranquero <lekktu@gmail.com>
20508
20509 * fontset.c (Ffontset_info): Doc fix.
20510 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20511 <ignore-relative-composition>: Fix typos in docstrings.
20512
20513 * font.c (syms-of-font) <font-encoding-alist>:
20514 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20515 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20516 (Ffont_otf_alternates): Doc fixes.
20517
205182008-05-20 Kenichi Handa <handa@m17n.org>
20519
20520 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20521 font.h through out the file.
20522 (FONT_DRIVERS): Rename from FONTOBJ.
20523 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20524 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20525
20526 * emacs.c (main): Call syms_of_font unconditionally.
20527
20528 * font.h (find_font_encoding): Extern it.
20529
20530 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20531 fontset.c.
194d44e7 20532 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
20533 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20534 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20535 only when HAVE_WINDOW_SYSTEM is defined.
20536 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20537 when HAVE_WINDOW_SYSTEM is defined.
20538
20539 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20540 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20541
20542 * xfaces.c: Include font.h unconditionally.
20543 (merge_face_ref, merge_face_vectors)
20544 (Finternal_set_lisp_face_attribute): Cancel the previous change.
20545
205462008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
20547
20548 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
20549 indirect_variable.
20550 * eval.c (lisp_indirect_variable): New fun.
20551 (Fuser_variable_p): Use it.
20552
205532008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20554
20555 * lisp.h (indirect_variable):
20556 * data.c (indirect_variable, let_shadows_buffer_binding_p):
20557 Use Lisp_Symbol pointers rather than Lisp_Object.
20558 Adjust callers.
20559 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
20560 To this end, change calling-convention.
20561
20562 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
20563 if some non-hidden buffers are selected by string&pred.
20564
205652008-05-19 Chong Yidong <cyd@stupidchicken.com>
20566
20567 * process.c (wait_reading_process_output): Always check status
20568 when in batch mode.
20569
205702008-05-19 Kenichi Handa <handa@m17n.org>
20571
20572 * font.c (font_list_entities): Fix handling of cache.
20573 (font_matching_entity): Likewise.
20574
20575 * ftfont.c (cs_iso8859_1): Delete.
20576 (ft_face_cache): New variable.
20577 (struct ftfont_info): New member fc_charset_idx.
20578 (ftfont_build_basic_charsets): Delete.
20579 (fc_charset_table): New variable.
20580 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
20581 . FC_CHARSET_IDX) as :font-entity property in the font entity.
20582 Callers changed.
20583 (ftfont_lookup_cache, ftfont_get_charset): New functions.
20584 (ftfont_spec_pattern): New argument fc_charset_idx.
20585 Check registry more rigidly. Change callers.
20586 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
20587 change of :font-entity property of the font.
20588
20589 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
20590 property of the font.
20591
205922008-05-18 Juanma Barranquero <lekktu@gmail.com>
20593
20594 * coding.c (Fcoding_system_p): Rename argument to match docstring.
20595 (Funencodable_char_position, Fcheck_coding_systems_region)
20596 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
20597 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
20598 (Ffind_operation_coding_system, Fset_coding_system_priority)
20599 (Fcoding_system_eol_type): Doc fixes.
20600
206012008-05-17 Glenn Morris <rgm@gnu.org>
20602
20603 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
20604
206052008-05-16 Eli Zaretskii <eliz@gnu.org>
20606
20607 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
20608 and st_gid.
20609
20610 * frame.c (Fdelete_frame): Don't call font_update_drivers if
20611 HAVE_WINDOW_SYSTEM is not defined.
20612
20613 * xfaces.c (merge_face_ref, merge_face_vectors)
20614 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
20615 HAVE_WINDOW_SYSTEM is defined.
20616 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
20617
206182008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
20619
20620 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
20621
206222008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20623
20624 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
20625
206262008-05-15 Kenichi Handa <handa@m17n.org>
20627
20628 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
20629 preference.
20630
206312008-05-15 Glenn Morris <rgm@gnu.org>
20632
20633 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
20634
206352008-05-15 Chong Yidong <cyd@stupidchicken.com>
20636
20637 * fns.c (init_fns): Don't initialize weak_hash_tables here.
20638 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
20639
20640 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
20641
206422008-05-15 Kenichi Handa <handa@m17n.org>
20643
20644 * ftfont.c (ftfont_list): Downcase family name to check generic
20645 families.
20646
20647 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
20648 font-spec for QCfont value.
20649
20650 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
20651 buffer. Check the return value of it.
20652
206532008-05-14 Jason Rumney <jasonr@gnu.org>
20654
20655 * w32term.c (w32_get_glyph_overhangs): Remove.
20656 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
20657
206582008-05-14 Kenichi Handa <handa@m17n.org>
20659
20660 * font.c (font_prop_validate): Make nil a valid value.
20661 (font_clear_cache): Check if the cached vector of entities is nil
20662 or not.
20663
206642008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20665
20666 * emacs.c (main_thread): Conditionalize on
20667 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20668 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
20669
20670 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
20671 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
20672 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20673
206742008-05-14 Kenichi Handa <handa@m17n.org>
20675
20676 * coding.c (detect_coding_iso_2022): Ignore a coding category that
20677 has no corresponding coding system.
20678
206792008-05-14 Jason Rumney <jasonr@gnu.org>
20680
20681 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
20682
20683 * w32font.h (w32font_open_internal): Update declaration.
20684
20685 * w32font.c (w32font_open_internal): Change last argument from
20686 w32font_info struct to font object. Fill in font object from
20687 font_entity. Get Outline metrics if possible. Use them to
20688 calculate underline position and thickness. Use xlfd name as name
20689 property. Don't set codepage.
20690 (w32font_open): Pass font_object to w32font_open_internal. Don't
20691 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
20692 (w32font_draw): Use s->font.
20693 (clear_cached_metrics): Don't clear non-existent blocks.
20694
20695 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
20696 font was not found.
20697 (x_draw_glyph_string): Use underline position and thickness from font.
20698
20699 * w32uniscribe.c (uniscribe_open): Pass font_object to
20700 w32font_open_internal.
20701
207022008-05-14 Kenichi Handa <handa@m17n.org>
20703
20704 These changes are to delete all legacy font-handling codes, and
20705 make Emacs use only font-backends.
20706
20707 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
20708 (frame.o, image.o, print.o): Depend on $(FONTSRC).
20709
20710 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
20711
20712 * charset.h (Vcharset_non_preferred_head)
20713 (Vcurrent_iso639_language): Extern them.
20714
20715 * charset.c (Vcharset_non_preferred_head): New variable.
20716 (Vcurrent_iso639_language): New variable.
20717 (syms_of_charset): Declare it as a Lisp variable.
20718 (char_charset): Don't check non preferred charsets. As a last
20719 resort, return charset_unicode.
20720 (Fset_charset_priority): Update Vcharset_non_preferred_head.
20721
20722 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
20723 conditionals. Don't check enable_font_backend. Delete all codes
20724 used only when USE_FONT_BACKEND is not defined.
20725
20726 * dispextern.h (struct glyph_string): Change type of `font' to
20727 `struct font *'.
20728 (struct glyph_string): New member underline_position and
20729 underline_thickness.
20730 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
20731 (struct face): Change type of `font' to `struct font *'.
20732 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
20733 (per_char_metric, encode_char): Delete externs.
20734 (calc_pixel_width_or_height): Adjust the prototype.
20735
20736 * emacs.c (enable_font_backend): Delete extern.
20737 (main): Don't set enable_font_backend. Don't check the command
20738 line argument "-disable-font-backend".
20739
20740 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
20741 (enum font_property_index): New members FONT_DPI_INDEX,
20742 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
20743 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
20744 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
20745 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
20746 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20747 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20748 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20749 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20750 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 20751 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
20752 (struct font): Many members from old "struct font_info" moved to
20753 here. Members font and entity deleted.
20754 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20755 the new font-related objects.
20756 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20757 (CHECK_FONT_GET_OBJECT): Likewise.
20758 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 20759 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
20760 (struct font_driver): New members case_sensitive anc check.
20761 Type of the member list and open changed.
aac0c6e3
MR
20762 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20763 (font_symbolic_width, font_find_object, font_get_spec)
20764 (font_set_lface_from_name): Delete extern.
20765 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20766
20767 * font.c: Include <strings.h>.
20768 (enable_font_backend): Delete it.
20769 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20770 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 20771 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
20772 (null_string): Delete it.
20773 (null_vector): Make it static.
20774 (font_family_alist): Delete it.
20775 (Qnormal): Extern it.
20776 (QCextra, QClanguage): Delete it.
20777 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20778 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 20779 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 20780 the string. Callers changed.
bba3e508 20781 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
20782 objects.
20783 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
20784 (font_style_to_value, font_style_symbolic): New function.
20785 (build_font_family_alist): Delete it.
20786 (font_registry_charsets): Use Fassoc_string instead of
20787 assq_no_quit.
20788 (font_prop_validate_symbol): Don't return null_string.
bba3e508 20789 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
20790 style-related values in a font vector.
20791 (font_property_table): Delete entries for QClanguage and
20792 QCantialias, add entries for QCavgwidth.
20793 (get_font_prop_index): Delete the 2nd argument FROM.
20794 (font_prop_validate): Arguments changed.
bba3e508 20795 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
20796 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
20797 (font_parse_fcname, font_unparse_fcname)
20798 (font_prepare_composition): Likewise.
ef1b0ba7 20799 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 20800 (otf_open): Delete the 1st arg entity.
bba3e508 20801 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
20802 (font_score): New arg alternate_families. Adjusted for the change
20803 of font-related objects.
20804 (font_sort_entites): New arg best_only.
20805 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
20806 Delete them.
20807 (font_match_p): Check alternate families.
20808 (font_find_object): Delete it.
20809 (font_check_object): New function.
bba3e508 20810 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
20811 (font_delete_unmatched): New arg.
20812 (font_list_entities): Call font_driver->list with a spec that
20813 doesn't specify style-related properties.
20814 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 20815 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
20816 (font_close_object, font_has_char, font_encode_char)
20817 (font_get_name, font_get_spec): Likewise.
20818 (font_spec_from_name, font_clear_prop, font_update_lface):
20819 New functions.
20820 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
20821 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 20822 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
20823 (font_range): New function.
20824 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 20825 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 20826 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 20827 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
20828 (Finternal_set_font_style_table): Arguments changed.
20829 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 20830 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
20831 change of font-related objects.
20832 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
20833
20834 * fontset.h (struct font_info): Delete it. Most members go to
20835 struct font.
ef1b0ba7 20836 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
20837 (enum FONT_SPEC_INDEX): Delete it.
20838 (font_info, list_fonts_func, load_font_func, query_font_func)
20839 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
20840 (get_font_repertory_func, new_fontset_from_font_name):
20841 Delete externs.
aac0c6e3
MR
20842 (fontset_from_font_name): Extern it.
20843 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
20844 (FONT_INFO_FROM_FACE): Deleted.
20845 (face_for_font): Adjust prototype.
20846
20847 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
20848 conditionals. Don't check enable_font_backend. Delete all codes
20849 used only when USE_FONT_BACKEND is not defined.
20850 (get_font_info_func, list_font_func, load_font_func)
20851 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
20852 (get_font_repertory_func): Delete them.
20853 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
20854 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
20855 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
20856 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
20857 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
20858 (fontset_compare_rfontdef): New function.
20859 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
20860 rfont-defs by qsort. Adjusted for the change of font-group vector.
20861 (load_font_get_repertory): Deleted.
20862 (fontset_find_font): Use new macros to ref/set elements of
20863 font-def and rfont-def.
20864 (fontset_font): Fix the timing of remembering that no font for C.
20865 (free_face_fontset): Do nothing if the face has no fontset.
20866 (face_suitable_for_char_p): Use new macros to ref/set elements of
20867 rfont-def.
20868 (face_for_char): Likewise. Call face_for_char with font_object.
20869 (fs_load_font): Delete. Delete #pragma surrounding it.
20870 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 20871 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
20872 font-spec.
20873 (Fset_fontset_font): Likewise. Use new macros to set elements of
20874 font-def.
20875 (Fnew_fontset): Use font_unparse_xlfd to generate
20876 FONTSET_ASCII (fontset).
20877 (new_fontset_from_font_name): Deleted.
ef1b0ba7 20878 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
20879 a fontset is already created for the font. FIx updating of
20880 Vfontset_alias_alist.
20881 (fontset_ascii_font): Deleted.
bba3e508 20882 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
20883 (Finternal_char_font): Likewise.
20884 (Ffontset_info): Likewise.
20885 (syms_of_fontset): Don't check load_font_func.
20886
20887 * fns.c (internal_equal): Handle PREV_FONT.
20888
20889 * frame.h: Delete USE_FONT_BACKEND conditional.
20890
20891 * frame.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 (x_set_font): Call x_new_font, not x_new_fontset2.
20895 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20896 already set for the frame.
20897
bba3e508
SM
20898 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20899 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
20900 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20901 font property. If a font is scalable, set avgwidth property to 0.
20902 Set font-entity property by font_put_extra.
20903 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 20904 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20905 (ftfont_spec_pattern): New function.
20906 (ftfont_list): Return a list, not vector.
20907 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20908 (ftfont_list_family): Don't downcase names.
20909 (ftfont_free_entity): Deleted.
20910 (ftfont_open): Return a font-object. Adjusted for the change of
20911 struct font. Get underline_thickness and underline_position from
20912 font property. Don't update dpyinfo->smallest_font_height and
20913 dpyinfo->smallest_char_width.
20914 (ftfont_close): Don't free `struct font'.
bba3e508 20915 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
20916 (ftfont_encode_char, ftfont_text_extents): Likewise.
20917
20918 * ftxfont.c (ftxfont_list): Return a list, not vector.
20919 (ftxfont_open): Return a font-object. Adjusted for the change of
20920 struct font. Get underline_thickness and underline_position from
20921 font property. Don't update dpyinfo->smallest_font_height and
20922 dpyinfo->smallest_char_width.
20923 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 20924 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 20925
bba3e508
SM
20926 * image.c (image_ascent): Don't include "charset.h".
20927 Include "character.h" and "font.h".
aac0c6e3
MR
20928
20929 * lisp.h (enum pvec_type): New member PREV_FONT.
20930 (Fassoc_string): EXFUN it.
20931
20932 * print.c: Include font.h.
20933 (print_object): Handle font-related objects.
20934
20935 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20936 conditionals. Don't check enable_font_backend. Delete all codes
20937 used only when USE_FONT_BACKEND is not defined.
20938 (handle_auto_composed_prop): Do nothing if it->f is not on a
20939 window system. Check how many following characters can be
20940 displayed by the same font.
20941 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20942 'struct font *'.
20943 (get_char_face_and_encoding): Assign the whole encoding task to
20944 the `encode-char' method of a font driver.
bba3e508 20945 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
20946 face' and `struct glyph_string'.
20947 (fill_glyph_string): Likewise.
20948 (get_per_char_metric): Arguments changed.
bba3e508 20949 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
20950 and `struct glyph_string'.
20951 (produce_stretch_glyph, calc_line_height_property)
20952 (x_produce_glyphs): Likewise.
20953
20954 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
20955 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
20956 used only when USE_FONT_BACKEND is not defined.
20957 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
20958 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
20959 (Qp): Extern them.
20960 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
20961 Deleted.
20962 (struct font_name): Deleted.
20963 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
20964 (compare_fonts_by_sort_order): New function.
20965 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
20966 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
20967 Deleted.
20968 (Fx_family_fonts): Use font_list_entities, and sort fonts by
20969 compare_fonts_by_sort_order.
20970 (Fx_font_family_list): Call Ffont_family_list.
20971 (face_numeric_value, face_numeric_weight, face_numeric_slant)
20972 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
20973 (face_symbolic_slant, face_symbolic_swidth)
20974 (split_font_name_into_vector, build_font_name_from_vector)
20975 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
20976 (font_rescale_ratio, split_font_name, build_font_name)
20977 (free_font_names, sort_fonts, x_face_list_fonts)
20978 (face_font_available_p, sorted_font_list, cmp_font_names)
20979 (font_list_1, concat_font_list, font_list, remove_duplicates):
20980 Deleted.
20981 (Fx_list_fonts): Use Ffont_list.
20982 (LFACE_AVGWIDTH): Deleted.
20983 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
20984 by FONTP.
20985 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
20986 (set_lface_from_font_name): Delete it.
ef1b0ba7 20987 (set_lface_from_font): Rename from
aac0c6e3
MR
20988 set_lface_from_font_and_fontset. Caller changed. Don't set
20989 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
20990 for face.
20991 (merge_face_vectors): Copy font-spec if necessary.
20992 Clear properties of the font-spec if necessary.
20993 (merge_face_ref): Clear properties of the font-spec if necessary.
20994 (Finternal_set_lisp_face_attribute): Likewise.
20995 (set_font_frame_param): Use font_load_for_lface to load a
20996 font-object, and call Fmodify_frame_parameters with it.
20997 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
20998 font name by Ffont_xlfd_name.
20999 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21000 QCslant, and QCwidth.
21001 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21002 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21003 Compare fonts by EQ.
21004 (lookup_non_ascii_face): Deleted.
21005 (face_for_font): The 2nd argument changed.
21006 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21007 Check atomic font properties by case insensitive.
21008 (realize_non_ascii_face): Set face->overstrike correctly.
21009 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21010 (dump_realized_face): Get font name from
21011 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21012
21013 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21014 conditionals. Don't check enable_font_backend. Delete all codes
21015 used only when USE_FONT_BACKEND is not defined.
21016 (xic_create_xfontset): Original code deleted and renamed from
21017 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21018 (x_make_gc): Don't set GCFont in GCs.
21019 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21020 opened by "fixed".
21021 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21022 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21023 get_font_repertory_func.
21024
21025 * xfont.c: Include <stdlib.h> and "ccl.h".
21026 (struct xfont_info): New structure.
21027 (xfont_query_font): Deleted.
ef1b0ba7 21028 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 21029 moved from xterm.c.
bba3e508 21030 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 21031 (compare_font_names): New function.
ef1b0ba7
SM
21032 (xfont_list_pattern): Sort font names case insensitively.
21033 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
21034 (xfont_list): Return a list, not vector.
21035 (xfont_match): If the font doesn't have QCname property, generate
21036 a name from the other font properties.
21037 (xfont_open): Return a font-object. Adjusted for the change of
21038 struct font. Get underline_thickness and underline_position from
21039 font property. Don't update dpyinfo->smallest_font_height and
21040 dpyinfo->smallest_char_width.
21041 (xfont_close): Don't free struct font.
bba3e508 21042 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 21043 (xfont_done_face): Deleted.
bba3e508 21044 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
21045 (xfont_encode_char, xfont_draw): Likewise.
21046 (xfont_check): New function.
21047
bba3e508 21048 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 21049 callback function.
bba3e508
SM
21050 (xftfont_match): Adjust for the format change of font-entity.
21051 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
21052 font-object. Adjusted for the change of struct font. Return a
21053 font-object. Don't update dpyinfo->smallest_font_height and
21054 dpyinfo->smallest_char_width.
21055 (xftfont_close): Block input while calling XftFontClose.
21056 (xftfont_prepare_face): Don't block input while calling
21057 xftfont_get_colors. Adjusted for the change of struct font.
21058 (xftfont_shape): Return value of error case fixed.
21059
21060 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21061
21062 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21063 conditionals.
21064 (FONT_WIDTH): Return (f)->max_width.
21065 (struct x_display_info): Delete member `font'.
21066 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21067 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21068 (struct x_output): Change type of `font' to `struct font *'.
21069
21070 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21071 conditionals. Don't check enable_font_backend. Delete all codes
21072 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21073 (x_per_char_metric, x_encode_char): Deleted.
21074 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 21075 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
21076 `struct face'.
21077 (x_draw_glyph_string_foreground)
21078 (x_draw_composite_glyph_string_foreground): Likewise.
21079 (x_draw_glyph_string): Likewise. Use font->underline_position and
21080 font->underline_thickness.
ef1b0ba7 21081 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
21082 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21083 (x_check_font): Call `check' method of a font driver.
21084 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21085 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 21086 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 21087 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
21088 redisplay_interface'.
21089
21090 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21091 conditionals. Don't check enable_font_backend. Delete all codes
21092 used only when USE_FONT_BACKEND is not defined. Surround non-used
21093 code by "#ifdef OLD_FONT" and "endif".
21094 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21095
21096 * w32font.h (struct w32font_info): New member.
21097 (FONT_COMPAT): New macro.
21098 (w32font_open_internal): Prototype adjusted.
21099
21100 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21101 OLD_FONT" and "endif".
21102
21103 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21104 conditionals. Don't check enable_font_backend. Delete all codes
21105 used only when USE_FONT_BACKEND is not defined.
21106 (w32font_open): Return a font-object. Make a font-object by
21107 font_make_object. Adjusted for the change of struct w32font_info.
21108 (w32font_close): Don't free struct font. Adjusted for the change
21109 of struct w32font_info.
21110 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 21111 Adjust for the change of struct w32font_info.
aac0c6e3
MR
21112 (w32font_draw): Likewise.
21113 (w32font_list_internal): Return a list, not vector.
21114 (w32font_open_internal): Change the 4th arg to font-object.
21115 Adjusted for the change of struct w32font_info and font-object format.
21116 (add_font_name_to_list): Don't downcase names.
21117 (w32_enumfont_pattern_entity): Make a font-entity by
21118 font_make_entity. Adjusted for the format change of font-entity.
21119 Use FONT_SET_STYLE to set a style-related font property. If a
21120 font is scalable, set avgwidth property to 0. Set font-entity
21121 property by font_put_extra.
bba3e508 21122 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
21123 (w32_weight_table, w32_decode_weight): New variables.
21124 (w32_encode_weight): New function.
bba3e508 21125 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
21126 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21127 weight value.
bba3e508 21128 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21129
21130 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21131 conditionals. Don't check enable_font_backend. Surround non-used
21132 code by "#ifdef OLD_FONT" and "endif".
21133 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 21134 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
21135
21136 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21137 conditionals. Don't check enable_font_backend. Delete all codes
21138 used only when USE_FONT_BACKEND is not defined. Surround non-used
21139 code by "#ifdef OLD_FONT" and "endif".
21140
21141 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21142 (uniscribe_open): Return value changed to font-object.
21143 Adjusted for the format change of font-object.
bba3e508 21144 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 21145 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 21146 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
21147 font_driver.
21148
211492008-05-13 Chong Yidong <cyd@stupidchicken.com>
21150
21151 * dispnew.c (update_frame_1): Check if tty output is still valid
21152 before flushing it.
21153
211542008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21155
21156 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21157 to Gtk+ menus.
21158
211592008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21160
21161 * dired.c (file_name_completion): Tweak the code so as to always do it
21162 in a single pass. Tighten the scope of some variables.
21163
21164 * dired.c (Qdefault_directory): New var.
21165 (file_name_completion): Use it instead of Fexpand_file_name.
21166 (syms_of_dired): Initialize it.
21167
211682008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21169
21170 * fileio.c (double_dollars): Remove dead code.
21171
211722008-05-10 Eli Zaretskii <eliz@gnu.org>
21173
21174 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21175 Mention w32-get-true-file-attributes in doc string.
21176
21177 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21178
211792008-05-09 Glenn Morris <rgm@gnu.org>
21180
21181 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21182 2008-04-23.
21183
211842008-05-09 Eli Zaretskii <eliz@gnu.org>
21185
21186 Support for reporting owner and group of each file on MS-Windows:
21187 * dired.c (stat_uname, stat_gname): New functions, with special
21188 implementation for w32.
21189 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21190
21191 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21192 (dflt_group_name): New static variable.
21193 (dflt_group): Rename from the_group.
21194 (init_user_info): Init dflt_group fields. Get user's group name
21195 from LookupAccountSid.
21196 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21197 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21198 New initialization states.
21199 (globals_of_w32): Initialize them to zero. Initialize the default
21200 group name to "None".
21201 (GetFileSecurity_Name): New global var, the name of the function
21202 to call for GetFileSecurity.
21203 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21204 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21205 (get_file_security, get_security_descriptor_owner)
21206 (get_security_descriptor_group, is_valid_sid)
21207 (get_file_security_desc, get_rid, get_name_and_id)
21208 (get_file_owner_and_group): New functions.
21209 (stat): Use get_file_security_desc and get_file_owner_and_group to
21210 report the owner and primary group of each file. Don't ignore the
21211 high 32 bits of file's size, now that st_size is 64-bit wide.
21212 Fix test when to get true file attributes.
21213 (init_user_info): Use get_rid instead of equivalent inline code.
21214 (fstat): Don't ignore the high 32 bits of file's size.
21215
212162008-05-09 Chong Yidong <cyd@stupidchicken.com>
21217
21218 * image.c (png_load): Use correct bit-depth for setting background
21219 color.
21220
212212008-05-08 Eli Zaretskii <eliz@gnu.org>
21222
21223 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21224 epa-hook.elc.
21225
212262008-05-08 Juanma Barranquero <lekktu@gmail.com>
21227
21228 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21229
212302008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21231
21232 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21233 because the original parameters are in pure storage now.
21234 (mac_window): Remove unused params. Update callers.
21235
212362008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21237
21238 * lread.c (substitute_object_recurse): Use lower-level primitives.
21239 Don't signal errors when traversing sub-char-tables.
21240 Don't loop over all the possible characters when traversing char-tables.
21241
21242 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21243 just like we do in print.c.
21244
212452008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21246
21247 * minibuf.c (Ftry_completion): Remove code left over from when we used
21248 scmp instead of Fcompare_strings.
21249
212502008-05-04 Juanma Barranquero <lekktu@gmail.com>
21251
21252 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21253
212542008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21255
21256 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21257 Create bitmap context in native byte order.
21258
21259 * macterm.c (XDrawLine)
21260 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21261 context in native byte order.
21262
212632008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21264
21265 * config.in: Regenerate.
21266
21267 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21268 New definitions for Image I/O support.
21269 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21270 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21271 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21272 (mac_data_provider_release_data, image_load_image_io)
21273 [USE_MAC_IMAGE_IO]: New functions.
21274 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21275 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21276 (init_image_func_pointer) [MAC_OSX]: Remove function.
21277 (image_load_quartz2d) [MAC_OSX]: Check availability of
21278 CGImageCreateWithPNGDataProvider at compile time.
21279 Use lowercase `false' for boolean constant.
21280 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21281 Use image_load_image_io.
21282 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21283 Don't check MyCGImageCreateWithPNGDataProvider.
21284 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21285 Don't call init_image_func_pointer.
21286
21287 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21288
21289 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21290 Make variable non-static.
21291 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21292 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21293
21294 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21295 (RED_FROM_ULONG): Mask off higher bits.
21296 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21297
21298 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21299 Include AvailabilityMacros.h.
21300 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21301 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21302
213032008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21304
21305 * chartab.c (Fset_char_table_range): If range is t, really set all
21306 chars to that value.
21307
213082008-05-03 Eli Zaretskii <eliz@gnu.org>
21309
21310 * dired.c (Ffile_attributes): Don't allow the device number become
21311 negative.
21312
213132008-05-02 Daiki Ueno <ueno@unixuser.org>
21314
21315 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21316
213172008-05-02 Juri Linkov <juri@jurta.org>
21318
21319 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21320 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21321 DEFAULT argument as a list of default values in docstrings.
21322
213232008-05-01 Chong Yidong <cyd@stupidchicken.com>
21324
21325 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21326
213272008-05-01 Martin Rudalics <rudalics@gmx.at>
21328
21329 * dispnew.c (change_frame_size_1): Preserve small windows when
21330 shrinking frames by calling set_window_height|width with third
21331 arg 2.
21332
21333 * window.h (struct window): Replace field too_small_ok by field
21334 resize_proportionally.
21335
21336 * window.c (make_window): Initialize resize_proportionally.
21337 (enlarge_window): Temporarily set resize_proportionally to make
21338 sure that shrink_windows does scale the window proportionally.
21339 (shrink_windows): When window has resize_proportionally set try
21340 to shrink it proportionally by stealing from other windows.
21341 (struct saved_window, Fset_window_configuration)
21342 (compare_window_configurations): Handle resize_proportionally.
21343 (WINDOW_TOTAL_SIZE): New macro.
21344 (window_min_size, shrink_windows, size_window): Use it.
21345 (check_min_window_sizes): Remove. Invalid values of
21346 window-min-height|width are handled by window_min_size_2 now.
21347 (size_window, Fsplit_window, enlarge_window)
21348 (adjust_window_trailing_edge, grow_mini_window): Don't call
21349 check_min_window_sizes.
21350 (window_min_size_2, window_min_size_1, window_min_size):
21351 New argument safe_p for retrieving "safe" minimum sizes.
21352 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21353 (adjust_window_trailing_edge, grow_mini_window):
21354 Adjust arguments of window_min_size... functions.
21355 (shrink_windows): Argument min_size removed. New argument
21356 safe_p allows shrinking windows to their safe minimum sizes.
21357 Calculate minimum size and decide whether a window shall be
21358 deleted for each window individually.
21359 (size_window): When nodelete_p equals 2, tell shrink_windows to
21360 delete windows only if their new minimum size is no more safe.
21361 (shrink_window_lowest_first): Call window_min_size_1 to make
21362 sure to preserve modeline of bottom-most window when resizing
21363 the minibuffer.
21364 (Fset_window_configuration, Fcurrent_window_configuration)
21365 (compare_window_configurations): Do not handle
21366 window-min-height|width any more.
21367 (syms_of_window): Clarify window-min-height|width doc-strings.
21368
213692008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21370
21371 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21372 some more. Copy some of the code from Ftry_completions.
21373 Remove special case code that dates back to initial revision when the
21374 slash was only added when necessary and that can't trigger nowadays.
21375
213762008-04-27 Kenichi Handa <handa@m17n.org>
21377
21378 * font.c (font_prop_validate): Signal `error' instead of `font'.
21379
213802008-04-29 Jason Rumney <jasonr@gnu.org>
21381
21382 * w32fns.c (Fw32_battery_status): New defun.
21383 (syms_of_w32fns): Defsubr it.
21384
213852008-04-28 Andreas Schwab <schwab@suse.de>
21386
21387 * dired.c (file_name_completion): Fix another mixing of encoded
21388 and decoded names.
21389
213902008-04-28 Juanma Barranquero <lekktu@gmail.com>
21391
21392 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21393
213942008-04-27 Juanma Barranquero <lekktu@gmail.com>
21395
21396 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21397
213982008-04-27 Andreas Schwab <schwab@suse.de>
21399
21400 * dired.c (file_name_completion): Fix inappropriate mixing of
21401 encoded and decoded names.
21402
21403 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21404
21405 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21406
214072008-04-26 Eli Zaretskii <eliz@gnu.org>
21408
21409 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21410 2008-03-31, it's not needed anymore with `struct stat' definition
21411 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21412 for the same reasons.
21413
214142008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21415
21416 * m/sparc.h: Additional redefinitions for GNU/Linux.
21417
214182008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21419
21420 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21421 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21422 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21423 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21424 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21425 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21426 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21427 Likewise.
21428
21429 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21430 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21431 (mac_ax_number_of_characters): Add externs.
21432 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21433 [USE_MAC_TSM]: Likewise.
21434 (mac_handle_text_input_event) [MAC_OSX]:
21435 Handle kEventTextInputOffsetToPos for no active input area case.
21436 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21437 (mac_handle_document_access_event)
21438 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21439 (install_application_handler) [MAC_OSX]: Register handlers for
21440 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21441 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21442 Register mac_handle_document_access_event.
21443
21444 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21445 Make functions non-static.
21446
214472008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21448
21449 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21450 (read_file_name_completion_ignore_case, insert_default_directory)
21451 (Qdefault_directory): Move to minibuffer.el.
21452 (Fread_file_name): Call the new `read-file-name' instead.
21453
214542008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21455
21456 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21457 Make function non-static.
21458 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21459 Remove function.
21460 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21461 Move to mactoolbox.c.
21462 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21463
21464 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21465 (mac_rect_make): New macro.
21466
21467 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21468 instead of float.
21469 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21470 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21471 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21472 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21473 CGRectMake.
21474 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21475 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21476 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21477 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21478 instead of WindowRef in argument type.
21479 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21480 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21481 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21482 instead of DISPLAY. All uses changed.
21483 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21484 (x_calc_absolute_position): Simplify so as not to use
21485 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21486
21487 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21488 instead of WindowRef in argument type.
21489 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21490 [TARGET_API_MAC_CARBON]: Remove externs.
21491 (create_apple_event, mac_event_parameters_to_lisp)
21492 [TARGET_API_MAC_CARBON]: Add externs.
21493
21494 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21495 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21496 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21497 is clicked.
21498 (x_activate_menubar): Remove extern for saved_menu_event_location.
21499 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21500 Move from mac.c.
21501
215022008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21503
21504 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21505 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21506
215072008-04-23 Jason Rumney <jasonr@gnu.org>
21508
21509 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21510 attributes only for local files.
21511
21512 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21513 default to Qlocal.
21514
215152008-04-22 Juri Linkov <juri@jurta.org>
21516
21517 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21518 read-buffer-to-switch instead of using the letter "B".
21519
215202008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21521
21522 * fileio.c (Qdefault_directory): New variable.
21523 (Fread_file_name): Use it to pass `dir' to the completion functions.
21524
215252008-04-20 Chong Yidong <cyd@stupidchicken.com>
21526
21527 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21528
215292008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21530
21531 * keyboard.c (Vpre_help_message): Remove.
21532 (show_help_echo): Remove default C code.
21533
21534 * dired.c (directory_files_internal, file_name_completion):
21535 Only call ENCODE_FILE if the string is indeed decoded.
21536
215372008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21538
21539 * Makefile.in (TOOLKIT_DEFINES): Remove.
21540 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21541
215422008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21543
21544 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
21545 (mactoolbox.o): New target.
21546
21547 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
21548 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
21549
21550 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
21551 Use mac_set_frame_window_background instead of XSetWindowBackground.
21552 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
21553 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
21554 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
21555 instead of SetWindowTitleWithCFString.
21556 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
21557 Move function to mactoolbox.c.
21558 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
21559 Use mac_set_window_modified instead of SetWindowModified.
21560 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
21561 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21562 (Fx_focus_frame): Use mac_front_non_floating_window instead of
21563 FrontNonFloatingWindow. Use mac_activate_window instead of
21564 ActivateWindow. Use mac_active_non_floating_window instead of
21565 ActiveNonFloatingWindow.
21566 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
21567 Use mac_show_hourglass and mac_hide_hourglass.
21568 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
21569 instead of GetGlobalMouse.
21570 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
21571 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
21572 Use mac_bring_window_to_front instead of BringToFront.
21573 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
21574 mactoolbox.c.
21575 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
21576 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
21577 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
21578 mactoolbox.c.
21579
21580 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
21581 (XtPointer): Move typedef from macmenu.c.
21582 (enum button_type): Move enum from macmenu.c.
21583 (widget_value): Move typedef from macmenu.c.
21584 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
21585 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21586 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21587 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21588 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21589 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21590 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21591 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
21592 (Selection): Move typedef from macselect.c.
21593 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
21594 macterm.c.
21595 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
21596 (mac_is_window_collapsed, mac_bring_window_to_front)
21597 (mac_send_window_behind, mac_hide_window, mac_show_window)
21598 (mac_collapse_window, mac_front_non_floating_window)
21599 (mac_active_non_floating_window, mac_activate_window)
21600 (mac_move_window_structure, mac_move_window, mac_size_window)
21601 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
21602
21603 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
21604 (enum mac_menu_kind): Move enum to mactoolbox.c.
21605 (min_menu_id): Move variable to mactoolbox.c.
21606 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
21607 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
21608 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21609 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21610 [TARGET_API_MAC_CARBON]: Likewise.
21611 (XtPointer): Move typedef to macgui.h.
21612 (enum button_type): Move enum to macgui.h.
21613 (widget_value): Move typedef to macgui.h.
21614 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21615 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21616 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21617 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21618 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21619 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21620 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
21621 (popup_activated_flag): Make variable non-static.
21622 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
21623 (add_menu_item, fill_menu, dispose_menus):
21624 Move functions to mactoolbox.c.
21625 (restore_show_help_function, menu_target_item_handler)
21626 (install_menu_target_item_handler, mac_handle_dialog_event)
21627 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
21628 [TARGET_API_MAC_CARBON]: Likewise.
21629 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
21630 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21631 (find_and_call_menu_selection, name_is_separator): Make function
21632 non-static.
21633 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
21634 to mactoolbox.c.
21635 (set_frame_menubar): Don't call install_menu_quit_handler.
21636 (menu_item_selection): New variable.
21637 (mac_menu_show): Use create_and_show_popup_menu.
21638 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
21639 selection but set variable menu_item_selection. All uses changed.
21640 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
21641 Call install_menu_quit_handler. Move to mactoolbox.c.
21642
21643 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
21644 (Selection): Move typedef to macgui.h.
21645 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
21646 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
21647 Make variables non-static.
21648 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21649 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
21650 Make functions non-static.
21651 (Vmac_service_selection) [MAC_OSX]: Likewise.
21652 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
21653 (mac_valid_selection_target_p, mac_clear_selection)
21654 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21655 (mac_put_selection_value, mac_selection_has_target_p)
21656 (mac_get_selection_value, mac_get_selection_target_list)
21657 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
21658 Move functions to mactoolbox.c.
21659 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
21660 Likewise.
21661 (copy_scrap_flavor_data, mac_handle_service_event)
21662 (install_service_handler) [MAC_OSX]: Likewise.
21663 (syms_of_macselect) <Vmac_dnd_known_types>:
21664 Use mac_dnd_default_known_types.
21665
21666 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
21667 Move to mactoolbox.c.
21668 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
21669 (Fx_selection_owner_p): Add EXFUN.
21670 (install_window_handler, remove_window_handler, XSetWindowBackground):
21671 Remove externs.
21672 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
21673 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
21674 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
21675 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
21676 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
21677 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
21678 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
21679 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
21680 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
21681 (create_and_show_popup_menu, mac_get_selection_from_symbol)
21682 (mac_valid_selection_target_p, mac_clear_selection)
21683 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21684 (mac_put_selection_value, mac_selection_has_target_p)
21685 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
21686 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
21687 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
21688 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21689 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
21690 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21691 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
21692 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21693 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21694
21695 * mactoolbox.c: New file.
21696
216972008-04-18 Jason Rumney <jasonr@gnu.org>
21698
21699 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
21700
217012008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21702
21703 * character.c (Fmultibyte_char_to_unibyte):
21704 Return latin1 chars unchanged.
21705
21706 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
21707 relocated if it points to `name'.
21708
217092008-04-17 Kenichi Handa <handa@m17n.org>
21710
21711 * data.c (Faset): Allow setting a multibyte character in an
21712 ASCII-only unibyte string.
21713
21714 * lisp.h (STRING_SET_MULTIBYTE): New macro.
21715
217162008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
21717
21718 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
21719 done in config.h.
21720
217212008-04-16 Juanma Barranquero <lekktu@gmail.com>
21722
21723 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
21724 (Fchar_direction): Add usage in the docstring.
21725
217262008-04-15 Chong Yidong <cyd@stupidchicken.com>
21727
21728 * keyboard.c (read_key_sequence): Remove always-true checks.
21729
217302008-04-14 Jason Rumney <jasonr@gnu.org>
21731
21732 * w32font.c (w32font_open_internal): Set max_bounds.descent in
21733 compatibility struct, for better underline positioning.
21734
217352008-04-13 David Hansen <david.hansen@gmx.net>
21736
21737 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
21738 string.
21739
217402008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21741
21742 * m/hp800.h (XUINT, XSET): Remove.
21743
217442008-04-12 Juanma Barranquero <lekktu@gmail.com>
21745
21746 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21747 previous change.
21748
217492008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21750
21751 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21752 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21753
217542008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21755
21756 * keymap.h (map_keymap_canonical): Declare.
21757 * xmenu.c (single_keymap_panes): Use it.
21758
217592008-04-11 Glenn Morris <rgm@gnu.org>
21760
21761 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21762 set the target's value to that of the alias.
21763
217642008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21765
21766 * term.c (set_tty_color_mode): Left over typo.
21767
217682008-04-10 Michael Albinus <michael.albinus@gmx.de>
21769
21770 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21771 only after check for file name handler functions. Signal, when
21772 native functionality is not supported.
21773 (syms_of_fileio): Declare it unconditionally.
21774
217752008-04-10 Jason Rumney <jasonr@gnu.org>
21776
21777 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21778 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21779
21780 * w32.c (logon_network_drive): Also logon to remote drives that
21781 are mapped to drive letters.
21782
217832008-04-10 Glenn Morris <rgm@gnu.org>
21784
21785 * xdisp.c (truncate-partial-width-windows): Doc fix.
21786
217872008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
21788
21789 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
21790 Move functions to minibuffer.el.
21791 (syms_of_fileio): Don't declare them.
21792
217932008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21794
21795 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
21796 (syms_of_minibuf): Remove its initialization.
21797
21798 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
21799
218002008-04-09 Juanma Barranquero <lekktu@gmail.com>
21801
21802 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
21803
218042008-04-09 Jason Rumney <jasonr@gnu.org>
21805
21806 * makefile.w32-in (distclean): Delete makefile too.
21807 (maintainer-clean): New target.
21808
21809 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
21810
21811 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
21812 for new font backend and composite cases.
21813
218142008-04-09 Jan Djärv <jan.h.d@swipnet.se>
21815
21816 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
21817 Most of the code moved to run_timers.
21818 (do_pending_atimers): Call run_timers.
21819 (run_timers): New function.
21820
21821 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
21822 run atimers.
21823
21824 * process.c (wait_reading_process_output): The same as above.
21825
218262008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21827
21828 * minibuf.c (last_exact_completion): Remove variable.
21829 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
21830 (complete_and_exit_1, complete_and_exit_2)
21831 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
21832 (Fdisplay_completion_list, display_completion_list_1)
21833 (Fminibuffer_completion_help, Fself_insert_and_exit)
21834 (Fexit_minibuffer, Fminibuffer_message): Move functions to
21835 minibuffer.el.
21836 (syms_of_minibuf): Remove corresponding initializations.
21837
21838 * keyboard.c (Qdeactivate_mark): New var.
21839 (command_loop_1): Use it to call `deactivate-mark'.
21840 (syms_of_keyboard): Initialize it.
21841
21842 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
21843 to another frame.
21844 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
21845 Don't call set_tty_color_mode.
21846 (store_frame_param): Reset previous_frame rather than call
21847 set_tty_color_mode.
21848 * term.c (set_tty_color_mode): Rewrite.
21849 * dispextern.h (set_tty_color_mode): New type.
21850 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
21851
218522008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
21853
21854 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
21855 for generic chars, which do not exist any more in emacs-unicode.
21856
218572008-04-08 Michael Albinus <michael.albinus@gmx.de>
21858
21859 * coding.c (detect_coding_emacs_mule)
21860 (Ffind_operation_coding_system): Fix typo.
21861
218622008-04-08 Jason Rumney <jasonr@gnu.org>
21863
21864 * w32uniscribe.c (SNAME): Extract only symbol name.
21865
21866 * w32font.h (struct w32_metric_cache): New struct.
21867 (w32font_info): Use it.
21868 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
21869 (CACHE_BLOCKSIZE): New constants.
21870
21871 * w32font.c (Qja, Qko, Qzh): New symbols.
21872 (syms_of_w32font): Initialise them.
21873 (font_matches_spec): Use them to filter by language.
21874 (recompute_cached_metrics): Remove function.
21875 (compute_metrics, clear_cached_metrics): New functions.
21876 (w32font_encode_char): Use them to manage metric cache.
21877 (w32font_text_extents): Cache metrics for all glyphs on demand.
21878 Delay converting glyph indices to WORD until needed.
21879 (w32font_open_internal): Initialize metric cache to empty.
21880 (registry_to_w32_charset): Charset should always be a symbol.
21881 (fill_in_logfont, list_all_matching_fonts): Family should
21882 always be a symbol.
21883
218842008-04-06 Jason Rumney <jasonr@gnu.org>
21885
21886 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21887 Give up if glyph indices not supported. Use uniscribe obtained
21888 ABC widths for individual metrics. Map glyph clusters back to
21889 characters using fClusterStart flag. Return number of glyphs
21890 produced, not chars processed.
21891 (uniscribe_shape): Map char at FROM to current glyph.
21892
218932008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21894
21895 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21896 Use SetMenuItemHierarchicalMenu.
21897
218982008-04-05 Jason Rumney <jasonr@gnu.org>
21899
21900 * image.c (pbm_load): Allow color values up to 65535.
21901 Throw an error if max_color_idx is outside the supported range.
21902 Report an error when image size is invalid.
21903 Read two bytes at a time when raw images have max_color_idx above 255.
21904
aac0c6e3
MR
219052008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21906
21907 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21908 append "CCL: Quitted" when the CCL program is quitted.
21909 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21910
21911 * ccl.h (struct ccl_program): New member quit_silently.
21912
219132008-04-05 Chong Yidong <cyd@stupidchicken.com>
21914
21915 * search.c (compile_pattern_1): Treat non-nil and non-string of
21916 search-spaces-regexp as nil.
21917
21918 * minibuf.c (Fassoc_string): Tweak docstring.
21919
219202008-04-05 Eli Zaretskii <eliz@gnu.org>
21921
21922 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21923 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21924 2008-03-14 to force inode be positive.
21925
21926 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21927 _S_* ones, since we now use our own sys/stat.h.
21928 (stat, fstat): Don't mangle the inode number.
21929 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21930
219312008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21932
21933 * frame.h (struct frame): Give one more bit to `visible' since we use
21934 values larger than 1 to indicate obscured frames on ttys.
21935
21936 * keymap.c (Qkeymap_canonicalize): New var.
21937 (Fmap_keymap_internal): New fun.
21938 (describe_map): Use keymap-canonicalize.
21939
21940 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21941 (Fundo_boundary): Set them.
21942 (syms_of_undo): Initialize them.
21943 (record_point): Use them instead of last_point_position*.
21944 (last_undo_buffer): Change type.
21945
219462008-04-04 Jason Rumney <jasonr@gnu.org>
21947
21948 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21949 (recompute_cached_metrics): Don't set ascent and descent per char.
21950
21951 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21952 (uniscribe_check_otf): Add GC protection before consing.
21953 Rearrange loop for counting features.
21954
219552008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
21956
21957 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
21958 buffer with byte-size of source buffer.
21959
219602008-04-03 Chong Yidong <cyd@stupidchicken.com>
21961
21962 * callint.c (Fcall_interactively): Handle temporary region even
21963 when shift-select-mode is off.
21964
219652008-04-03 Jason Rumney <jasonr@gnu.org>
21966
21967 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
21968
219692008-04-03 Kenichi Handa <handa@m17n.org>
21970
21971 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
21972 (CATEGORY_MASK_UTF_16): Likewise.
21973 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
21974 binary file.
21975 (detect_coding): Add null-byte detection for a binary file.
21976 (detect_coding_system): Likewise.
21977
219782008-04-03 Jason Rumney <jasonr@gnu.org>
21979
21980 * w32uniscribe.c: New file.
21981
21982 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
21983
21984 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
21985
21986 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
21987 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
21988 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
21989 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
21990 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
21991 (Qphonetic): New symbols.
21992 (syms_of_w32font): Initialize them.
21993 (font_supported_scripts): Use them.
21994 (w32font_list_family): List all charsets.
21995 (w32font_text_extents, recompute_cached_metrics): Fix metric
21996 calculations.
21997 (w32_enumfont_pattern_entity): Make full_type a DWORD.
21998 Give opentype fonts their own format.
21999 (font_matches_spec): New arguments backend and logfont.
22000 Handle :otf spec for uniscribe backend.
22001 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22002 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22003
22004 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22005 font backend.
22006 (globals_of_w32fns): Initialize uniscribe font backend.
22007
22008 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22009 dependencies.
22010 (w32uniscribe.$(O)): New file to build.
22011 (FONT_OBJ): Include w32uniscribe.$(O).
22012 (LIBS): Add uniscribe libraries.
22013
22014 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22015
220162008-04-02 Chong Yidong <cyd@stupidchicken.com>
22017
22018 * callint.c (Vshift_select_mode): New var.
22019 (Finteractive): Document new ^ spec.
22020 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22021 is present.
22022
22023 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22024 (command_loop_1): Avoid running the direct display versions of
22025 forward-char and backward-char if shift-selection may occur.
22026 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22027 shift-translation takes place.
22028
22029 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22030 avoid clobbering by define-minor-mode.
22031
22032 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22033 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22034
22035 * syntax.c (Fforward_word): Add ^ interactive spec.
22036
22037 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22038 (Fscroll_right): Add ^ interactive spec.
22039
220402008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22041
22042 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22043
22044 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22045
22046 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22047
220482008-03-31 Juri Linkov <juri@jurta.org>
22049
22050 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22051
220522008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22053
22054 * gtkutil.c (xg_set_geometry): Fix indentation.
22055 (xg_resize_outer_widget): Remove.
22056 (x_wm_size_hint_off): Fix indentation.
22057 (xg_frame_set_char_size): Call flush_and_sync after
22058 gtk_window_resize.
22059 (x_wm_set_size_hint): Pass NULL as geometry window to
22060 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22061 Add menu bar and tool bar height to base height.
22062 (xg_update_frame_menubar, free_frame_menubar)
22063 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22064 (update_frame_tool_bar, free_frame_tool_bar):
22065 Change xg_resize_outer_widget to xg_frame_set_char_size.
22066
220672008-03-30 Michael Albinus <michael.albinus@gmx.de>
22068
22069 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22070 (Fdbus_call_method): New parameter TIMEOUT.
22071 (dbus-send-signal): Optimize UNGCPRO call.
22072
220732008-03-29 Juri Linkov <juri@jurta.org>
22074
22075 * window.c (Fdisplay_buffer): Move call to
22076 Vsplit_window_preferred_function out of conditions that check
22077 if window is eligible for vertical splitting.
22078 When Vsplit_window_preferred_function is non-nil, call it and use
22079 its non-nil return value as window. Otherwise, continue doing
22080 vertical splitting using Fsplit_window with arg horflag=nil.
22081 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22082 default value from `split-window' to nil.
22083
220842008-03-29 Juri Linkov <juri@jurta.org>
22085
22086 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22087 for interactive code letters 'b' and 'B'.
22088
220892008-03-29 Eli Zaretskii <eliz@gnu.org>
22090
22091 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22092 multibyte string.
22093
220942008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22095
22096 * keyboard.c (pending_funcalls): New var.
22097 (timer_check): Run it.
22098 (syms_of_keyboard): Initialize it.
22099 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22100 (Vdelete_terminal_functions): New vars.
22101 (syms_of_terminal): Initialize them.
22102 (Fdelete_terminal): Run delete-terminal-functions.
22103 * xdisp.c (safe_eval): Rewrite.
22104 (safe_call2): New fun.
22105 * frame.c (Qdelete_frame_functions): New var.
22106 (syms_of_frame): Initialize it.
22107 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22108 * lisp.h (safe_call2, pending_funcalls): Declare.
22109
221102008-03-28 Andreas Schwab <schwab@suse.de>
22111
22112 * indent.c (Fmove_to_column): Move declaration before statements.
22113
221142008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22115
22116 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22117 (struct frame): Use bit fields for boolean vars.
22118
22119 * process.c (server_accept_connection): Simplify naming.
22120 (emacs_get_tty_pgrp): Use SDATA.
22121
22122 * coding.c (decode_coding_object): Fix last change.
22123
221242008-03-27 Jason Rumney <jasonr@gnu.org>
22125
22126 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22127
221282008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22129
22130 * charset.c (Fdefine_charset_internal): Change the way of
22131 registering charsets in Vcharset_order_list.
22132 (syms_of_charset): Make the charset `eight-bit' supplementary.
22133
221342008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22135
22136 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22137 operations, to avoid having the difference between pointers
22138 overflow.
22139
221402008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22141
22142 * indent.c (check_display_width): New fun.
22143 (scan_for_column): Use it.
22144
22145 * data.c (syms_of_data): Mark most-positive-fixnum and
22146 most-negative-fixnum as constants.
22147
22148 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22149
22150 * indent.c (scan_for_column): Extract from current_column_1.
22151 Merge with the same code from Fmove_to_column.
22152 (current_column_1, Fmove_to_column): Use it.
22153
221542008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22155
22156 * keymap.c (map_keymap_internal): New fun.
22157 (map_keymap): Use it.
22158 (Fmap_keymap_internal): New fun.
22159 (Fmap_keymap): Remove left-out test from before make_save_value.
22160
22161 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22162
22163 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22164 Use XCAR/XCDR.
22165
22166 * process.h (struct Lisp_Process): Remove filter_multibyte.
22167 * process.c (QCfilter_multibyte): Remove.
22168 (setup_process_coding_systems): Don't use filter_multibyte.
22169 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22170 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22171 (Fset_process_filter_multibyte): Change the coding-system to
22172 approximate the previous behavior.
22173 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22174 coding-system.
22175
22176 * coding.c (decode_coding_object): When not decoding into a buffer,
22177 obey the coding system's preference of (uni|multi)byte.
22178
221792008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22180
22181 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22182 every char is changed and has a different byte-length.
22183 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22184 Fix int -> EMACS_INT.
22185
221862008-03-23 David Hansen <david.hansen@gmx.net>
22187
22188 * dbusbind.c (xd_read_message): Remove extra copying of message
22189 strings. Check for NULL `interface' or `member'.
22190
221912008-03-22 Eli Zaretskii <eliz@gnu.org>
22192
22193 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22194 cFileName a file name that includes `?' characters, use the 8+3
22195 alias in cAlternateFileName instead.
22196
221972008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22198
22199 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22200
222012008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22202
22203 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22204 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22205 work on current_buffer only instead (that was already the case
22206 for some of the code anyway).
22207 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22208 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22209 (SET_PT, SET_PT_BOTH): Adjust.
22210 * intervals.h (set_point, temp_set_point, set_point_both)
22211 (temp_set_point_both): Remove redundant declarations.
22212
222132008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22214
22215 * fileio.c (Finsert_file_contents):
22216 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22217 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22218 when buffer != current_buffer anyway.
22219
222202008-03-20 Andreas Schwab <schwab@suse.de>
22221
22222 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22223 as default.
22224
222252008-03-19 Jason Rumney <jasonr@gnu.org>
22226
22227 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22228 (syms_of_w32fns): Initialize them.
22229 (HOURGLASS_ID): New constant.
22230 (x_window_to_frame): Don't check hourglass_window.
22231 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22232 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22233 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22234 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22235 Only change the cursor if hourglass is not active.
22236 (Fx_create_frame): Initialize frame's current_cursor.
22237 (hourglass_atimer): Remove.
22238 (hourglass_started): New function.
22239 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22240 (show_hourglass): Adapt to w32, changing argument to frame.
22241
22242 * w32term.h (struct w32_output): Remove hourglass_window.
22243 Add current_cursor.
22244
22245 * eval.c (call_debugger, Fsignal):
22246 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22247 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22248 (Fexecute_extended_command, cancel_hourglass_unwind):
22249 * minibuf.c (read_minibuf):
22250 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22251
222522008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22253
22254 * window.c (run_funs): New fun.
22255 (run_window_configuration_change_hook): Use it to run the buffer-local
22256 and the global part of the hook.
22257
22258 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22259 (unwind_format_mode_line): Restore selected window.
22260 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22261
222622008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22263
22264 * editfns.c (Fchar_equal): Check they are valid characters.
22265
22266 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22267
222682008-03-17 Andreas Schwab <schwab@suse.de>
22269
22270 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22271 against a charset.
22272
22273 * lisp.h (Fbuffer_list): Declare.
22274
222752008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 22276
aac0c6e3
MR
22277 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22278 handlebox_widget is != 0.
22279
222802008-03-16 Juri Linkov <juri@jurta.org>
22281
22282 * callint.c (Fcall_interactively): For interactive code letters
22283 'b' and 'B' put the buffer list into the list of default "future"
22284 values of the minibuffer.
22285
222862008-03-16 Andreas Schwab <schwab@suse.de>
22287
22288 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22289 modifiers.
22290
22291 * regex.c (re_match_2_internal): Correct matching of a charset
22292 against latin-1 characters.
22293
222942008-03-16 Kenichi Handa <handa@m17n.org>
22295
22296 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22297 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22298 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22299 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22300 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22301 CHAR_STRING_ADVANCE.
22302 (produce_chars): Fix for the case that the source and the
22303 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22304 instead of CHAR_STRING_ADVANCE.
22305 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22306 STRING_CHAR_ADVANCE.
22307
223082008-03-15 Andreas Schwab <schwab@suse.de>
22309
22310 * regex.c (re_match_2_internal): Correct matching of eight bit
22311 characters in unibyte strings.
22312
223132008-03-15 Martin Rudalics <rudalics@gmx.at>
22314
22315 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22316 at end of range when it coincides with the end of the buffer.
22317
223182008-03-14 Eli Zaretskii <eliz@gnu.org>
22319
22320 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22321
22322 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22323
223242008-03-14 Jason Rumney <jasonr@gnu.org>
22325
22326 * editfns.c (initial_tz): New variable.
22327 (syms_of_editfns): Initialize it.
22328 (Fset_time_zone_rule): Set it when first called.
22329 Use it when TZSTRING is nil.
22330
22331 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22332 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22333 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22334 (globals_of_w32fns): Initialize them.
22335 (compute_tip_xy): Use them to position tooltips.
22336
223372008-03-14 Glenn Morris <rgm@gnu.org>
22338
22339 * emacs.c (main): Revert previous change.
22340 (standard_args): Revert -internal-script back to -scriptload,
22341 and remove the long-option form.
22342
223432008-03-13 Glenn Morris <rgm@gnu.org>
22344
22345 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22346 Remove option -enable-font-backend.
22347
223482008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22349
22350 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22351
223522008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22353
22354 * xterm.c (x_connection_closed): For GTK: If this is the last
22355 terminal just exit without closing the display.
22356
223572008-03-11 Jason Rumney <jasonr@gnu.org>
22358
22359 * w32font.c (w32font_full_name): Use floor to round.
22360
f0131492 223612008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
22362
22363 * sound.c (alsa_configure): Declare vol at beginning of block.
22364
22365 * fontset.c (Ffontset_info): Remove extra semicolon.
22366
223672008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22368
22369 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22370 size of resulting string.
22371
223722008-03-10 Jason Rumney <jasonr@gnu.org>
22373
22374 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22375
223762008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22377
22378 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22379 Don't pretend as if characters with display property haven't been
22380 consumed for string-replacing-string case.
22381
223822008-03-08 Kim F. Storm <storm@cua.dk>
22383
22384 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22385 (get_next_display_element, next_element_from_string)
22386 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22387
223882008-03-08 Andreas Schwab <schwab@suse.de>
22389
22390 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22391
223922008-03-06 Jason Rumney <jasonr@gnu.org>
22393
22394 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22395 when charset not specified. Only translate ANSI to unicode when
22396 font_type is truetype.
22397 (w32font_coverage_ok): New function.
22398 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22399
224002008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22401
22402 * lread.c (Fread_char): Resolve modifiers.
22403 (Fread_char_exclusive): Likewise.
22404
22405 * character.c (char_resolve_modifier_mask): New function.
22406 (char_string): Use char_resolve_modifier_mask.
22407 (Fchar_resolve_modifiers): New function.
22408 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22409 function.
22410
224112008-03-04 Jason Rumney <jasonr@gnu.org>
22412
22413 * makefile.w32-in: Always include w32font.c in the build.
22414 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22415
224162008-03-04 Andreas Schwab <schwab@suse.de>
22417
22418 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22419 (versionclean): Likewise.
22420
224212008-03-04 Juanma Barranquero <lekktu@gmail.com>
22422
22423 * .cvsignore: Add oo.
22424
224252008-03-03 Andreas Schwab <schwab@suse.de>
22426
22427 * coding.c (decode_coding_object): Inhibit gap shrinking while
22428 decoding in place.
22429
224302008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22431
22432 * w32term.c: Remove unused include "gnu.h".
22433 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22434
22435 * gnu.h: Rename to ...
22436 * emacs-icon.h: ... this.
22437 * xterm.c: Use emacs-icon.h instead of gnu.h.
22438 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22439
224402008-03-03 Juanma Barranquero <lekktu@gmail.com>
22441
22442 * w32font.c: Include math.h.
22443
224442008-03-03 Jason Rumney <jasonr@gnu.org>
22445
22446 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22447 Compute options separately.
22448 (w32font_open_internal): Set glyph_idx before caching metrics.
22449
22450 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22451 Define if system headers don't.
22452 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22453 (w32font_encode_char): Don't declare here.
22454
22455 * w32font.c (Quniscribe, QCformat): New symbols.
22456 (syms_of_w32font): Define them.
22457 (w32font_has_char): Indicate uncertainty.
22458 (w32font_encode_char): Encode as glyph point. Make static.
22459 (recompute_cached_metrics): New function.
22460 (w32font_open_internal): Use it. Set font to use glyph points
22461 initially. Set format based on type of font.
22462 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22463 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22464 on it. Set format based on information available here.
22465 (add_font_entity_to_list): Identify backend based on opentype_only.
22466
224672008-03-02 Andreas Schwab <schwab@suse.de>
22468
22469 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22470
22471 * coding.c (decode_coding_big5, produce_chars):
22472 Fix typos in last change.
22473
224742008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22475
22476 * gnu.h: New icon.
22477
224782008-03-02 Kenichi Handa <handa@m17n.org>
22479
22480 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22481 `dos', don't decode '\r' if that is the last in the source.
22482 (decode_coding_utf_16, decode_coding_emacs_mule)
22483 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22484 (decode_coding_raw_text, decode_coding_charset): Likewise.
22485 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22486
224872008-03-01 Jason Rumney <jasonr@gnu.org>
22488
22489 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22490
224912008-03-01 Kim F. Storm <storm@cua.dk>
22492
22493 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22494
224952008-03-01 Jason Rumney <jasonr@gnu.org>
22496
22497 * w32font.c (w32font_full_name): New function.
22498 (w32font_open_internal): Use it.
22499
225002008-03-01 Kim F. Storm <storm@cua.dk>
22501
22502 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22503
225042008-03-01 Jason Rumney <jasonr@gnu.org>
22505
22506 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22507
225082008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22509
22510 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22511 xg_frame_resized when the event is for the edit widget.
22512
ef1b0ba7 22513 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
22514
22515 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22516 set_char_size.
ef1b0ba7 22517 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
22518 operations on widgets here. Just set frame size if needed.
22519 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22520 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22521 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22522 the whole frame.
22523 (xg_create_tool_bar): Move attachment of the tool bar to
22524 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22525 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22526
225272008-03-01 Jason Rumney <jasonr@gnu.org>
22528
22529 * w32fns.c (w32_msg_pump): Disable debug code.
22530
225312008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22532
22533 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22534
225352008-02-29 Chong Yidong <cyd@stupidchicken.com>
22536
22537 * xdisp.c (next_overlay_string): Don't set
22538 overlay_strings_at_end_processed_p if we're currently reading from
22539 a display string.
22540
225412008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22542
22543 * xdisp.c (get_overlay_strings_1): Fix typo.
22544
225452008-02-29 Chong Yidong <cyd@stupidchicken.com>
22546
22547 * xdisp.c (get_overlay_strings_1): Add missing argument type.
22548
225492008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
22550
22551 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
22552
22553 * xdisp.c (display_mode_element): Cancel the previous change.
22554 (decode_mode_spec): Likewise.
22555 (handle_auto_composed_prop): Don't make composition if it->string
22556 is a string.
22557
225582008-02-27 Kim F. Storm <storm@cua.dk>
22559
22560 * lisp.h (GLYPH): Change type from int to struct with separate char
22561 and face_id members.
22562 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
22563 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
22564 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
22565 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
22566 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
22567 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
22568 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
22569 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
22570 handle new Lisp glyph code encoding, either an integer or a cons.
22571
22572 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
22573 (GLYPH_ALIAS): Delete.
22574 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
22575 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
22576 (GLYPH_FROM_CHAR): Replace macro by ...
22577 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
22578
22579 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
22580 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
22581 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
22582 (GLYPH_INVALID_P): New macro.
22583 (spec_glyph_lookup_face): Update prototype.
22584
22585 * dispnew.c (line_draw_cost): Adapt to new glyph type.
22586 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
22587 new glyph code encoding.
22588 (spec_glyph_lookup_face): No return value; update passed glyph instead.
22589 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
22590
22591 * xdisp.c (get_next_display_element, next_element_from_display_vector):
22592 Adapt to new glyph type and new glyph code encoding.
22593
22594 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
22595
22596 * indent.c (current_column, current_column_1, Fmove_to_column)
22597 (compute_motion): Adapt to new glyph code encoding.
22598
22599 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
22600
226012008-02-27 Chong Yidong <cyd@stupidchicken.com>
22602
22603 * process.c (wait_reading_process_output): Check for window
22604 changes caused by timers.
22605 Suggested by Johan Bockgård.
22606
226072008-02-27 Glenn Morris <rgm@gnu.org>
22608
22609 * emacs.c (USAGE1): Add `--disable-font-backend'.
22610
226112008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
22612
22613 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
22614 is made to the buffer.
22615
226162008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
22617
22618 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
22619 (face_at_string_position):
22620 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
22621 (face_at_string_position):
22622 * xdisp.c (display_string, next_overlay_change):
22623 * buffer.h (overlays_at):
22624 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
22625 Update callers.
22626
226272008-02-26 Chong Yidong <cyd@stupidchicken.com>
22628
22629 * editfns.c (Fformat): Doc fix.
22630
226312008-02-26 Juanma Barranquero <lekktu@gmail.com>
22632
22633 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
22634 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
22635 (Ffont_otf_alternates, Fquery_font): Doc fixes.
22636
226372008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22638
22639 * buffer.c (Fbuffer_swap_text): New function.
22640 (syms_of_buffer): Defsubr it.
22641
226422008-02-25 Chong Yidong <cyd@stupidchicken.com>
22643
22644 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
22645
226462008-02-25 Jason Rumney <jasonr@gnu.org>
22647
22648 * w32font.c (w32font_draw): Draw one character at a time when padding.
22649
226502008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22651
22652 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
22653 Handle a nil arg. Use run_window_configuration_change_hook.
22654 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
22655 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
22656 Use run_window_configuration_change_hook.
22657
226582008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22659
22660 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
22661 1-pixel width.
22662
226632008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22664
22665 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
22666 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
22667 if the glyph in the font is zero pixel with.
22668
22669 * dispextern.h (struct glyph_string): New member padding_p.
22670
22671 * w32font.c (w32font_draw): Pay attention to s->padding_p.
22672
22673 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
22674
22675 * xfont.c (xfont_draw): Pay attention to s->padding_p.
22676
22677 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
22678
22679 * font.c: If the font driver doesn't have `shape' function, return Qnil.
22680
226812008-02-25 Jason Rumney <jasonr@gnu.org>
22682
22683 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
22684
226852008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
22686
22687 Allow fine-grained image-cache flushing.
22688 * dispextern.h (struct image): Add `dependencies' field.
22689 (clear_image_caches): Change arg to Lisp_Object.
22690 * image.c (make_image): Initialize `dependencies' field.
22691 (clear_image_cache): Change arg to allow fine-grained flushing.
22692 Perform the flush even if image-cache-eviction-delay is nil.
22693 (clear_image_caches): Change arg to Lisp_Object.
22694 (Fclear_image_cache): Expand meaning of the argument.
22695 (mark_image): Mark `dependencies' field.
22696 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
22697 (lface_hash): Use XHASH rather than XFASTINT.
22698 (face_at_buffer_position): Fix int -> EMACS_INT position.
22699 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
22700 (select_frame_for_redisplay): Remove code duplication.
22701 (redisplay_internal): Adapt arg to call to clear_image_caches.
22702
227032008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
22704
22705 * s/vms4-0.h:
22706 * s/vms4-2.h:
22707 * s/vms4-4.h:
22708 * s/vms5-5.h: Remove, unused.
22709
22710 * s/irix5-2.h:
22711 * s/irix6-0.h:
22712 * s/riscos5.h:
22713 * s/mach-bsd4-3.h:
22714 * m/mips4.h: Remove files for obsolete systems.
22715
22716 * Makefile.in:
22717 * filelock.c:
22718 * unexmips.c:
22719 * m/hp9000s300.h:
22720 * m/iris4d.h:
22721 * s/aix3-1.h:
22722 * s/hpux.h:
22723 * s/msdos.h:
22724 * s/usg5-0.h:
22725 * s/usg5-2-2.h:
22726 * s/usg5-2.h:
22727 * s/usg5-3.h: Remove references to obsolete variables.
22728
22729 * s/irix5-0.h: Remove, move all the contents ...
22730 * s/irix6-5.h: ... here. Simplify.
22731 * config.in: Regenerate.
22732
227332008-02-24 Jason Rumney <jasonr@gnu.org>
22734
22735 * w32term.c (x_draw_glyph_string_background): Clear the background
22736 manually when cleartype is in use.
22737 (x_draw_glyph_string_foreground): Draw text transparently when
22738 cleartype is in use.
22739
22740 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
22741 a font into it unless we have to.
22742
227432008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22744
22745 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
22746 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 22747
aac0c6e3
MR
227482008-02-18 Jason Rumney <jasonr@gnu.org>
22749
22750 * w32fns.c (Fw32_shell_execute): Encode parameters.
22751
227522008-02-09 Eli Zaretskii <eliz@gnu.org>
22753
22754 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22755
227562008-02-05 Juanma Barranquero <lekktu@gmail.com>
22757
22758 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22759
227602008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22761
22762 * xterm.c (x_set_offset): Don't change the gravity if
22763 CHANGE_GRAVITY is -1.
22764
227652008-02-23 Chong Yidong <cyd@stupidchicken.com>
22766
22767 * fileio.c (auto_save_error_occurred): New var.
22768 (auto_save_error): Set it.
22769 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22770 error occurred.
22771
227722008-02-23 Eli Zaretskii <eliz@gnu.org>
22773
22774 * w32.c (globals_of_w32): Add initializations for
22775 g_b_init_get_sid_sub_authority and
22776 g_b_init_get_sid_sub_authority_count.
22777
227782008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22779
22780 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
22781 (font_parse_xlfd): Use them for sanity check.
22782 (Finternal_set_font_style_table): Make sure the table is bijective.
22783
22784 Consolidate the image_cache to the terminal struct.
22785 * termhooks.h (P_): Remove redundant def.
22786 (struct terminal): New field `image_cache'.
22787 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
22788 of FRAME_X_IMAGE_CACHE.
22789 * xterm.h (struct x_display_info): Remove image_cache field.
22790 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22791 * w32term.h (struct w32_display_info): Remove image_cache field.
22792 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22793 * macterm.h (struct mac_display_info): Remove image_cache field.
22794 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22795 * xterm.c (x_term_init):
22796 * w32term.c (w32_term_init):
22797 * macterm.c (mac_term_init): Set the image_cache in the terminal.
22798 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
22799 Remove declarations.
22800 (clear_image_caches, mark_image_cache): New declarations.
22801 * xfaces.c (clear_face_cache):
22802 * xdisp.c (redisplay_internal): Use clear_image_caches.
22803 * image.c (clear_image_cache): Don't check that a frame is on
22804 a window-system before checking if it shares the same cache.
22805 (clear_image_caches): New function.
22806 (Fclear_image_cache): Use it.
22807 (mark_image): Move from allo.c.
22808 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
22809 * alloc.c (mark_image, mark_image_cache): Move to image.c.
22810 (mark_object): Don't call mark_image_cache for frames.
22811 (mark_terminals): Call mark_image_cache.
22812
22813 * lisp.h (Fdelete_terminal): Declare.
22814
22815 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
22816 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
22817 wrong_type_argument.
22818
228192008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
22820
22821 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
22822 malayalam.el, and tamil.el. Add sinhala.el.
22823
228242008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
22825
22826 * xterm.c (x_connection_closed): Consolidate identical tests.
22827 (x_delete_terminal): Don't crash if called via x_connection_closed.
22828
228292008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
22830
22831 * xdisp.c (decode_mode_spec): New arg string.
22832 (display_mode_element): Adjust for the above change.
22833
228342008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22835
22836 * callint.c (Fcall_interactively): Use AREF.
22837
228382008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
22839
22840 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
22841
228422008-02-18 Jan Djärv <jan.h.d@swipnet.se>
22843
22844 * xfns.c (Fx_show_tip): Set string to " " if empty.
22845
228462008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
22847
22848 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
22849 with Qt.
22850
228512008-02-17 Kenichi Handa <handa@m17n.org>
22852
22853 * ftfont.c (ftfont_shape): Return Lispy number.
22854
22855 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
22856 for GCs.
22857 (Finternal_set_font_selection_order): Call font_update_sort_order
22858 only when enable_font_backend is set.
22859 (realize_x_face): Set face->font_info to that of default face only
22860 when enable_font_backend is set.
22861
22862 * xdisp.c (handle_composition_prop): Set it->c to the fist
22863 character of the composed region.
22864 (fill_composite_glyph_string): Set base_face->font_info to
22865 s->font_info. Get a face for ascii from base_face->ascii_face.
22866 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
22867 with a face already decided.
22868 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
22869 non-negative.
22870 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
22871 call font_prepare_composition unconditionally.
22872
22873 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
22874
22875 * xterm.h (struct x_display_info): New member font.
22876
22877 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
22878 (x_set_mouse_face_gc, x_new_font): Likewise.
22879 (x_term_init): Setup display_info->font.
22880 (x_delete_terminal): Free display_info->font.
22881
22882 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22883
22884 * ftxfont.c (ftxfont_default_fid): Delete it.
22885 (ftxfont_open): Set xfont->fid to 0.
22886 (ftxfont_end_for_frame): Clear data specific to the frame and the
22887 font-driver.
22888
22889 * xftfont.c (xftfont_default_fid): Delete it.
22890 (xftfont_open): Set xfont->fid to 0.
22891
22892 * fontset.c (FONTSET_OBJLIST): New macro.
22893 (fontset_find_font): Update font-object list of the fontset.
22894 (free_realized_fontset): New function.
22895 (free_face_fontset): Call free_realized_fontset.
22896 (Ffont_info): Call font_close_object only when enable_font_backend
22897 is set.
22898
22899 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22900 [HAVE_NTGUI]: Include w32term.h.
22901 [MAC_OS]: Include macterm.ch.
22902 (font_otf_ValueRecord): Use make_number.
22903 (font_finish_cache): Fix handling of reference count.
22904 (font_clear_cache): Update num_fonts.
22905 (font_open_entity): Update smallest_char_width and
22906 smallest_font_height of the frame.
22907 (font_close_object): Update num_fonts.
22908 (Fclear_font_cache): Fix finding the target cache data.
22909
229102008-02-16 Glenn Morris <rgm@gnu.org>
22911
22912 * fontset.c (Finternal_char_font): Fix compilation warning.
22913
229142008-02-16 Eli Zaretskii <eliz@gnu.org>
22915
22916 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22917 instead of char arrays. Enlarge the size of array passed to
22918 get_token_information.
22919
22920 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22921 warnings.
22922
229232008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22924
22925 * .gdbinit: Don't set `args', it breaks gdb --args.
22926
229272008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22928
22929 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22930 within a narrowed buffer.
22931
229322008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22933
22934 * coding.c (decode_coding_object, encode_coding_object):
22935 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22936
229372008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22938
22939 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22940 hardcoding 1.
22941 (detect_coding_system):
22942 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22943 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22944 * insdel.c (insert_from_gap):
22945 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22946 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22947 (string_to_multibyte):
22948 * character.c (chars_in_text, multibyte_chars_in_text):
22949 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22950
22951 * character.h (FETCH_STRING_CHAR_ADVANCE)
22952 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22953 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
22954 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
22955
22956 * casefiddle.c (casify_region): Only call after-change and composition
22957 functions on the part of the region that was changed.
22958
22959 * keyboard.c (read_avail_input):
22960 * frame.c (Fdelete_frame): Call Fdelete_terminal.
22961
229622008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22963
22964 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
22965 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
22966
229672008-02-11 Juanma Barranquero <lekktu@gmail.com>
22968
22969 * w32menu.c (push_submenu_start, push_submenu_end)
22970 (push_left_right_boundary, push_menu_pane, push_menu_item):
22971 * keyboard.c (read_key_sequence): Don't pass args with side effects
22972 to AREF, it fails when compiling with -DENABLE_CHECKING.
22973
229742008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
22975
22976 * Makefile.in (${lispsource}international/charprop.el):
22977 Delete this target.
22978
22979 * search.c (boyer_moore): Fix incorrect synching of the trunk and
22980 emacs-unicode-2.
22981
229822008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22983
22984 * terminal.c (Fdelete_terminal): Clean up the `force' path.
22985
229862008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22987
22988 * frame.c (Qnoelisp): New symbol.
22989 (syms_of_frame): Initialize it.
22990 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
22991 harmless Elisp code, from a strong `force' from x_connection_closed.
22992 * frame.h (Qnoelisp): Declare.
22993 * xterm.c (x_connection_closed): Pass `noelisp'.
22994
22995 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
22996 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
22997 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
22998 rather than `int' for the type of `type'.
22999
230002008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23001
23002 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23003
23004 * Makefile.in (GNUC): Remove support for gcc-1.x.
23005
230062008-02-10 Richard Stallman <rms@gnu.org>
23007
23008 * lisp.h (ASET): Use AREF, not ASLOT.
23009
230102008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23011
23012 * lisp.h (ASET): Check bounds.
23013
230142008-02-10 Glenn Morris <rgm@gnu.org>
23015
23016 * buffer.c (mode-name): Doc fix.
23017
230182008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23019
23020 * Makefile.in:
23021 * emacs.c:
23022 * gmalloc.c:
23023 * keyboard.c:
23024 * lisp.h:
23025 * m/ibm370aix.h:
23026 * process.c:
23027 * regex.c:
23028 * s/hpux.h:
23029 * sysdep.c:
23030 * sysselect.h:
23031 * systty.h:
23032 * unexec.c:
23033 * w32term.c:
23034 * xsmfns.c:
23035 * xterm.c: Remove code that deals with obsolete variables.
23036
23037 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23038
23039 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23040 nothing else needs it anymore.
23041
230422008-02-09 Eli Zaretskii <eliz@gnu.org>
23043
23044 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23045 instead of unibyte_char_to_multibyte.
23046
230472008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23048
23049 * s/gnu-linux.h: Remove commented out code.
23050
23051 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23052
23053 * Makefile.in: Update what RMS says about using autoconf.
23054 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23055 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23056 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23057 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23058
230592008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23060
23061 * keymap.c (Fkey_description): Move side effect outside of macro call.
23062
23063 * xfaces.c (Finternal_make_lisp_face):
23064 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23065
23066 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23067 (syms_of_fontset): Use ASET.
23068
23069 * fns.c (concat): Move side effect outside of macro call.
23070 (hash_clear): Use ASET.
23071
230722008-02-08 Richard Stallman <rms@gnu.org>
23073
23074 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23075 If FORCE, and frame has a surrogate minibuffer for another frame,
23076 delete the other frame first.
23077
230782008-02-07 Timo Savola <timo.savola@iki.fi>
23079
23080 * xterm.c (x_detect_focus_change): Handle embed client message.
23081 (handle_one_xevent): Ditto.
23082 (handle_one_xevent): If embedded and we get a button press/release,
23083 request focus.
23084 (xembed_set_info, xembed_send_message): New functions.
23085 (x_make_frame_visible): Call xembed_set_info if embedded.
23086 (x_make_frame_invisible): Call xembed_set_info if embedded.
23087 (x_term_init): Initialize Xatom_XEMBED.
23088 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23089 (x_iconify_frame): Ditto.
23090
23091 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23092 (enum xembed_info, enum xembed_message, enum xembed_focus)
23093 (enum xembed_modifier, enum xembed_accelerator): New.
23094 (xembed_set_info, xembed_send_message): Declare.
23095 (FRAME_X_EMBEDDED_P): New.
23096
23097 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23098 gtk_plug_new.
23099
23100 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23101 window ID of a frame.
23102 (x_window): Reparent frame if embedded.
23103 (Fx_create_frame): Don't set border width if embedded.
23104
23105 * emacs.c (USAGE3): Add --parent-id.
23106 (standard_args): Ditto.
23107
231082008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23109
23110 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23111
231122008-02-07 Jim Meyering <meyering@redhat.com>
23113
23114 Use "do...while (0)", not "if (1)...else" in macro definitions.
23115 The latter provokes a warning from gcc about the empty else, when
23116 followed by ";". Also, without that trailing semicolon, it would
23117 silently swallow up any following statement.
23118 * syntax.h (SETUP_SYNTAX_TABLE)
23119 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23120 * buffer.h (DECODE_POSITION): Likewise.
23121 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23122 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23123 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23124 (FETCH_CHAR_ADVANCE): Likewise.
23125 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23126
231272008-02-07 Jim Meyering <meyering@redhat.com>
23128
23129 * lread.c [lint]: Don't include <sys/inode.h>.
23130
231312008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23132
23133 * xselect.c (x_handle_dnd_message):
23134 * xmenu.c (digest_single_submenu, xmenu_show):
23135 * xdisp.c (with_echo_area_buffer_unwind_data)
23136 (format_mode_line_unwind_data, unwind_format_mode_line)
23137 (display_menu_bar):
23138 * eval.c (Ffetch_bytecode):
23139 * doc.c (store_function_docstring):
23140 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23141 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23142 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23143
231442008-02-07 Kenichi Handa <handa@m17n.org>
23145
23146 * ftxfont.c (ftxfont_open): Don't set
23147 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23148
23149 * ftfont.c (ftfont_open): Fix previous change.
23150
231512008-02-06 Jason Rumney <jasonr@gnu.org>
23152
23153 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23154 Use cached metrics for ASCII characters.
23155 (w32font_open_internal): Don't set font's owning_frame.
23156 Cache metrics for ASCII characters.
23157
23158 * w32font.h (struct w32font_info): Add ascii_metrics.
23159 Remove owning_frame.
23160
231612008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23162
23163 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23164 to negative value.
23165
23166 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23167
23168 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23169
23170 * charset.c (syms_of_charset): Set QCtest and Qeq.
23171
231722008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23173
23174 * process.c (Fstart_process):
23175 * callproc.c (Fcall_process): Handle the case where
23176 Funhandled_file_name_directory returns nil.
23177
23178 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23179 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23180 * font.c (check_gstring): Use them and AREF to access the vector before
23181 we know it's really a gstring.
23182 (Ffont_shape_text): Fix typo.
46e722a9 23183 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
23184
23185 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23186 Declare.
23187
23188 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23189
231902008-02-05 Jason Rumney <jasonr@gnu.org>
23191
23192 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23193 Set smallest_font_height and smallest_char_width in display info.
23194
231952008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23196
23197 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23198
231992008-02-05 Miles Bader <miles@gnu.org>
23200
23201 * xfaces.c (get_lface_attributes, merge_named_face)
23202 (lookup_named_face, lookup_derived_face, realize_named_face):
23203 Revert 2008-02-01 change by cyd@stupidchicken.com.
23204
232052008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23206
23207 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23208 fallback fonts.
23209 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23210
232112008-02-04 Jason Rumney <jasonr@gnu.org>
23212
23213 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23214 set full_name.
23215 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23216
232172008-02-03 Jason Rumney <jasonr@gnu.org>
23218
23219 * makefile.w32-in (OBJ1): Include font.o here.
23220 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23221
232222008-02-02 Jason Rumney <jasonr@gnu.org>
23223
23224 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23225
232262008-02-01 Jason Rumney <jasonr@gnu.org>
23227
23228 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23229
23230 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23231
232322008-02-01 Andreas Schwab <schwab@suse.de>
23233
23234 * Makefile.in (shortlisp, lisp): Update for rename of
23235 ../lisp/language/myanmar.el.
23236
232372008-02-01 Chong Yidong <cyd@stupidchicken.com>
23238
23239 * xfaces.c (get_lface_attributes): Delete function.
23240 (merge_named_face, lookup_named_face, lookup_derived_face)
23241 (realize_named_face): Call lface_from_face_name directly, and use
23242 the fact that merge_face_vectors does not alter its FROM argument.
23243
232442008-02-01 Jason Rumney <jasonr@gnu.org>
23245
23246 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23247 input in the default locale. Handle non-Unicode multibyte input.
23248
232492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23250
23251 * fontset.c (reorder_font_vector): Exclude nil elements from the
23252 font group. Don't try multiple fonts.
23253 (fontset_font): Adjust for the above change.
23254 (Finternal_char_font): Return nil if the found font doesn't
23255 contain the character ch.
23256
23257 * Makefile.in (lisp, shortlisp): Add cham.el.
23258
232592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23260
23261 * font.h (FONTP): Make it return 1 also for a font-object.
23262
23263 * .gdbinit (xfontset): New function.
23264
23265 * font.c (font_find_for_lface): Check if the character C is
23266 supported or not only for the first font.
23267
23268 * fontset.c (reorder_font_vector): Fix typo.
23269 (fontset_find_font): Don't add a font-spec specifying a script.
23270 Use 0 (not Qt) for the indication of empty font-group. Change the
23271 format of RFONT-DEF. Return Qt if no font in the font-group
23272 support the character.
23273 (fontset_font): Adjust for the above change. If no font was
23274 found the character, remember that.
23275 (face_for_char): Adjust for the change of RFONT-DEF.
23276 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23277 no font for the target.
23278 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23279
232802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23281
23282 * font.c (font_load_for_face): Handle the case that the font in
23283 face->lface is a string.
23284
232852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23286
23287 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23288
232892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23290
23291 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23292 Fix previous change. If the frame is not on a window system,
23293 signal an error.
23294
232952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23296
bba3e508
SM
23297 * coding.c (decode_coding_object, encode_coding_object):
23298 Adjust marker positions after conversion.
aac0c6e3
MR
23299
23300 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23301
233022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23303
23304 * font.c (font_find_for_lface): Fix the handling of the return
23305 value of font_has_char.
23306 (Ffont_shape_text): Fix previous change.
23307
23308 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23309 (fontset_ref_and_range): Delete it.
23310 (fontset_find_font): Call char_table_ref_and_range instead of
23311 FONTSET_REF_AND_RANGE.
23312 (make_fontset): Don't setup font groups of Latin here.
23313 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23314 (new_fontset_from_font): Make the specified font the default for
23315 all Latin characters.
23316
233172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23318
23319 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23320 is on a window system before accessing the fontset of the frame.
23321
233222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23323
23324 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23325
23326 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23327 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23328
23329 * font.c (Ffont_shape_text): If the font driver doesn't have a
23330 shaper function, make zero-width glyphs to have at least one-pixel
23331 width. Fix setting of `to' field of glyphs.
23332
233332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23334
23335 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23336 glyphs.
23337
23338 * font.h (struct font_driver): Improve docstring of member `shape'.
23339
233402008-02-01 Kenichi Handa <handa@m17n.org>
23341
23342 * composite.c (syms_of_composite): Fix docstring of
23343 auto-composition-function.
23344
23345 * font.h (LGLYPH_SIZE): New macro.
23346
23347 * font.c (Ffont_fill_gstring): Stop filling when a character not
23348 supported by the font is found.
23349 (Ffont_shape_text): When a shape callback function returns nil,
23350 try at most two more times with larger gstring.
23351 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23352
23353 * xdisp.c (handle_auto_composed_prop): Change the argument to
23354 auto-composition-function.
23355
23356 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23357 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23358 Lispy glyph and store it in the lgstring.
23359
23360 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23361
23362 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23363
233642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23365
23366 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23367
23368 * fontset.c (Vfont_encoding_charset_alist): New variable.
23369 (syms_of_fontset): DEFVAR it.
23370 (reorder_font_vector, fontset_find_font): Optimize for the case of
23371 no need of reordering.
23372 (face_for_char): Map the charset property by
23373 Vfont_encoding_charset_alist.
23374
233752008-02-01 Jason Rumney <jasonr@gnu.org>
23376
23377 * w32font.c (logfonts_match): Don't check adstyle here.
23378 (font_matches_spec): Check here against physical font instead.
23379 (add_font_entity_to_list): Avoid some substitutions.
23380
23381 * font.c (font_parse_fcname): Default weight and slant to normal.
23382 (font_score): Prefer normal fonts if weight or slant unspecified.
23383 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23384 match freetype scores.
23385
233862008-02-01 Jason Rumney <jasonr@gnu.org>
23387
23388 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23389 font, as it may have been deleted.
23390 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23391 most common hyphenless variation.
23392 (logfonts_match): Check generic family.
23393 (font_matches_spec): Don't check generic family here.
23394 (fill_in_logfont): Set generic family based on adstyle.
23395
23396 * w32font.h (w32font_get_cache): Update declaration.
23397
233982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23399
23400 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23401
23402 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23403 If none of the new drivers are available, call font_update_drivers
23404 with the old drivers.
23405
23406 * w32font.c (w32font_get_cache): Adjust the argument type.
23407
23408 * xfont.c (xfont_get_cache): Adjust the argument type.
23409
23410 * font.h (struct font_driver): Change argument type of get_cache.
23411
23412 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23413
23414 * font.c (Ffont_get): Fix arguments to Fassoc.
23415 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23416 (font_clear_cache): New function.
23417 (font_list_entities, font_matching_entity): Use font_get_cache.
23418 (font_update_drivers): Call font_clear_cache when finishing a driver.
23419
23420 * fontset.c (fontset_find_font): Fix previous change.
23421
234222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23423
23424 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23425 dpyinfo->font_table.
23426 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23427 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23428
23429 * font.c (font_at): Handle the case that the arg C is negative.
23430 Handle the unibyte case.
23431 (Ffont_at): Call font_at with the arg C -1.
23432
23433 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23434 the position here, and call font_at with the arg C -1.
23435 Don't check the range of the existing composition at the point.
23436
234372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23438
23439 * fontset.c (fontset_add): New args charset_id and family.
23440 Change caller.
23441 (load_font_get_repertory, fontset_find_font): Assume that
23442 font_spec is always a font-spec object.
23443 (Fset_fontset_font): Always store a font-spec object in a fontset.
23444
23445 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23446 instead of get_property_and_range.
23447
234482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23449
23450 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23451 (xftfont_open): Don't keep locking face.
23452 (xftfont_close): Don't unlock face.
23453 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23454
23455 * fontset.c (fontset_find_font): Don't prefer a font of
23456 supplementary charset.
23457
234582008-02-01 Kenichi Handa <handa@m17n.org>
23459
23460 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23461 script, langsys_tag to langsys, new member script.
23462 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 23463 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
23464 listing to the script specified in that property. Fix arg to
23465 OTF_check_features.
23466
234672008-02-01 Jason Rumney <jasonr@gnu.org>
23468
23469 * w32font.h: New file.
23470
23471 * w32font.c: Include it.
23472 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23473 (w32font_open): Set owning_frame.
23474 (w32font_text_extents): Use owning_frame.
23475 (struct font_callback_data): Add opentype_only field.
23476 (add_font_entity_to_list): Use it to filter fonts.
23477 Don't check against full name.
23478 (w32font_list_internal): New function.
23479 (w32font_list): Use it.
23480 (w32font_match_internal): New function.
23481 (w32font_match): Use it.
23482 (w32font_open_internal): New function.
23483 (w32font_open): Use it.
23484 (w32font_get_cache, w32font_close, w32font_has_char)
23485 (w32font_encode_char, w32font_text_extents, w32font_draw):
23486 Make non-static.
23487
23488 * makefile.w32-in (w32font.o): Depend on w32font.h.
23489
234902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23491
23492 * charset.c (Fdefine_charset_internal): Record a supplementary
23493 charset at the tail of Vcharset_order_list.
23494
23495 * font.c (Ffont_shape_text): Fix the return value.
23496
23497 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23498
23499 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23500
235012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23502
23503 * ftfont.c (struct OpenTypeSpec): New struct.
23504 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23505 (ftfont_get_open_type_spec): New function.
23506 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23507
23508 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23509
235102008-02-01 Jason Rumney <jasonr@gnu.org>
23511
23512 * w32font.c (add_font_entity_to_list): Compare only the beginning
23513 of full name.
23514
235152008-02-01 Kenichi Handa <handa@m17n.org>
23516
23517 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23518 Never return HANDLED_RECOMPUTE_PROPS.
23519
235202008-02-01 Kenichi Handa <handa@m17n.org>
23521
23522 * font.c (font_gstring_produce): Delete it.
23523
23524 * composite.h (COMPOSITION_METHOD):
23525 Handle COMPOSITION_WITH_GLYPH_STRING.
23526
235272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23528
23529 * xfont.c (Qx): Delete.
23530 (syms_of_xfont): Don't initialize Qx.
23531
23532 * composite.h (enum composition_method):
23533 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23534
235352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23536
23537 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23538 (choose_face_font): Accept new form of font-spec.
23539
23540 * frame.h (font_driver_list): Declare it unconditionally.
23541 (struct frame): Define members font_driver_list and font_data_list
23542 unconditionally.
23543
23544 * fontset.c: Include "font.h" unconditionally.
23545 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
23546 (Fset_fontset_font): Accept a font-spec object.
23547
23548 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
23549 PIXEL_SIZE part a wild card.
23550
23551 * dispextern.h (struct glyph_string): Define members clip and
23552 num_clips unconditionally.
23553 (struct face): Define members font_info and extra unconditionally.
23554
23555 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
23556 ftfont_info only when HAVE_LIBOTF is defined.
23557
235582008-02-01 Andreas Schwab <schwab@suse.de>
23559
23560 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
23561 and end.
23562
235632008-02-01 Jason Rumney <jasonr@gnu.org>
23564
23565 * w32font.c (w32font_driver): Add new fields.
23566
235672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23568
23569 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
23570 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
23571 (LIBES): Add @M17N_FLT_CFLAGS@.
23572
23573 * composite.c (compose_text): Don't treat the new style
23574 composition specially.
23575
23576 * emacs.c (main): Call syms_of_font unconditionally.
23577
23578 * font.h (FONT_ENTITY_NOT_LOADABLE)
23579 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
23580 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
23581 (struct font_driver): New member shape.
23582 (font_registry_charsets): Extern it.
23583 (font_find_for_lface, font_prepare_composition): Adjust prototype.
23584 (font_otf_capability, font_drive_otf): Delete their externs.
23585
23586 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
23587 (font_charset_alist, font_registry_charsets): Move from xfont.c
23588 and rename.
23589 (font_prop_validate_otf): New function.
23590 (font_property_table): Register it for QCotf.
23591 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
23592 (font_drive_otf): Delete.
23593 (font_prepare_composition): New arg F. Adjust for the change of
23594 lispy gstring.
23595 (font_find_for_lface): New arg C.
23596 (font_load_for_face): Adjust for the change of font_find_for_lface.
23597 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
23598 lispy gstring.
23599 (Ffont_shape_text): New function.
23600 (Fopen_font): If the font size is not given, use 12-pixel.
23601 (Ffont_at): New arg STRING.
40b1a3a9 23602 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
23603 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
23604 conditionally.
23605
23606 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
23607 fonts of the same font-spec. Change the format of RFONT-DEF.
23608 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
23609 Adjust for the change of RFONT-DEF.
23610 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
23611
23612 * ftfont.h: New file.
23613
23614 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
23615 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23616 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23617 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
23618 font_otf_capability and font_drive_otf, set ftfont_shape.
23619 (ftfont_list): Adjust for the change of :otf property value.
23620 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
23621 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
23622 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
23623 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23624 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
23625 (otf_gstring, gstring, m17n_flt_initialized): New variables.
23626
23627 * w32term.c (x_draw_composite_glyph_string_foreground):
23628 Adjust for the change of lispy gstring.
23629
23630 * xdisp.c (handle_composition_prop): Adjust for the change of
23631 lispy gstring. Call a function for auto-composition with the
23632 third arg it->window.
23633 (fill_composite_glyph_string): Adjust for the change of lispy string.
23634 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
23635
23636 * xfaces.c (set_font_frame_param): Adjust for the change of
23637 font_find_for_lface.
23638
23639 * xfont.c (x_font_charset_alist): Move to font.c and rename.
23640 (xfont_registry_charsets): Likewise. Change caller.
23641 (syms_of_xfont): Don't handle x_font_charset_alist.
23642
23643 * xftfont.c: Include "ftfont.h".
23644 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23645 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23646 (xftfont_close) [HAVE_LIBOTF]: Close otf.
23647 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23648 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
23649 Set xftfont_driver.shape to xftfont_shape.
23650
23651 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23652 the change of lispy gstring.
23653
236542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23655
23656 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
23657
236582008-02-01 Jason Rumney <jasonr@gnu.org>
23659
23660 * w32font.c (w32font_draw): Fill background manually.
23661
236622008-02-01 Jason Rumney <jasonr@gnu.org>
23663
23664 * font.c (Qfontp): Remove unused symbol.
23665 (QCantialias): New symbol.
23666 (syms_of_font): Define it.
23667 (font_property_table): Set a validator for QCantialias.
23668
23669 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
23670 Define if not already.
23671 (QCfamily): Share with xfaces.c.
23672 (Qstandard, Qsubpixel, Qnatural): New symbols.
23673 (syms_of_w32font): Define them. Don't define QCfamily here.
23674 (w32_antialias_type, lispy_antialias_type): New functions.
23675 (w32_enumfont_pattern_entity): New arg requested_font.
23676 Set antialias parameter if non-default was requested.
23677 (fill_in_logfont): Fill in lfQuality if :antialias specified.
23678
236792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23680
23681 * lread.c (read1): Undo the previous change.
23682
236832008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
23684
23685 * frame.c (Fdelete_frame): Call font_update_drivers only when
23686 USE_FONT_BACKEND is defined.
23687
236882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23689
23690 * font.h (struct font_bitmap): New member bits_per_pixel.
23691 (struct font_driver): New members start_for_frame and end_for_frame.
23692 (struct font_data_list): New struct.
23693 (font_put_frame_data, font_get_frame_data): Extern them.
23694
23695 * frame.h (struct frame): New member font_data_list.
23696
23697 * font.c (font_update_drivers): Call driver->start_for_frame and
23698 driver->end_for_frame at proper timings.
23699 (font_put_frame_data, font_get_frame_data): New functions.
23700 (Ffont_spec): Add usage in the docstring.
23701
23702 * frame.c (make_frame): Initialize f->font_data_list to NULL.
23703 (Fdelete_frame): Call font_update_drivers.
23704
23705 * xftfont.c (struct xftface_info): Delete the member xft_draw.
23706 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
23707 (xftfont_get_xft_draw): New function.
23708 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
23709 (xftfont_end_for_frame): New function.
23710 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
23711
23712 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
23713 Change argument. Cache GCs in the per-frame data.
23714 (struct ftxfont_frame_data): New struct.
23715 (ftxfont_draw_bitmap): New arg gc_fore and flush.
23716 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
23717 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
23718 (ftxfont_end_for_frame): New function.
23719 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
23720
23721 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
23722
237232008-02-01 Kenichi Handa <handa@m17n.org>
23724
23725 * xselect.c (Vselection_coding_system)
23726 (Vnext_selection_coding_system): Delete them.
23727 (syms_of_xselect): Don't declare selection-coding-system and
23728 next-selection-coding-system. They are declared in select.el.
23729
237302008-02-01 Jason Rumney <jasonr@gnu.org>
23731
23732 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
23733
23734 * w32fns.c: Include imm.h.
23735 (get_composition_string_fn, get_ime_context_fn): New optional
23736 system functions.
23737 (globals_of_w32fns): Load them from imm32.dll.
23738 (ignore_ime_char): New flag.
23739 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
23740 WM_IME_ENDCOMPOSITION messages.
23741
23742 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
23743 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
23744
237452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23746
23747 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23748 (READCHAR_REPORT_MULTIBYTE): New macro.
23749 (readchar): New 2nd arg MULTIBYTE.
23750 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23751 Make symbol's name multibyte according to the multibyteness of the
23752 source.
23753
237542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23755
23756 * xfaces.c (face_for_overlay_string): Call lookup_face with
23757 correct arguments (fix of synching with the trunk).
23758
237592008-02-01 Kenichi Handa <handa@m17n.org>
23760
23761 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23762 (font_prop_validate_non_neg, font_prop_validate_spacing):
23763 Delete argument prop_index.
23764 (font_property_table): Change arguments to validater. Change Callers.
23765 (font_lispy_object): Delete.
23766 (font_at): Use font_find_object instead fo font_lispy_object.
23767
237682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23769
23770 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23771 and file names.
23772
237732008-02-01 Jason Rumney <jasonr@gnu.org>
23774
23775 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23776 (font_matches_spec): Remove debug output.
23777 (add_font_entity_to_list): Avoid using substituted fonts.
23778
237792008-02-01 Jason Rumney <jasonr@gnu.org>
23780
23781 * doc.c (Fsnarf_documentation):
23782 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
23783
237842008-02-01 Miles Bader <miles@gnu.org>
23785
23786 * dispextern.h (struct glyph_row): Only define "clip" field if
23787 HAVE_WINDOW_SYSTEM is defined.
23788
237892008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23790
23791 Fix up multi-tty merge.
23792
23793 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
23794 and indentation.
23795
23796 * xfaces.c (free_realized_face, clear_face_gcs):
23797 Include font_done_for_face in the input_blocked section, just in case.
23798
23799 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
23800 (get_char_face_and_encoding): Undo last change and remove the *other*
23801 duplicate definition (i.e. keep the one that's better scoped and that
23802 includes code for the font-backend).
23803
23804 * terminal.c (create_terminal): Default keyboard_coding to
23805 `no-conversion' and terminal_coding to `undecided'.
23806
23807 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
23808
23809 * fontset.c (free_realized_fontsets): Check that the table entry does
23810 contain a fontset before trying to compare it to `base'.
23811
23812 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
23813 syms_of_charset, and syms_of_coding earlier because init_window_once
23814 now needs Vcoding_system_hash_table to be setup.
23815
23816 * coding.h (default_buffer_file_coding): Remove.
23817
23818 * coding.c (default_buffer_file_coding): Remove.
23819 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
23820 than ->symbol, and use the terminal-local coding system.
23821 (syms_of_coding): Don't setup the coding-systems that are not
23822 terminal-local.
23823 (Fdefine_coding_system_internal): Use XCAR/XCDR.
23824
23825 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
23826 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
23827
23828 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
23829 in chartab.c and were re-added here by mistake.
23830 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
23831
23832 * doc.c (Fsnarf_documentation):
23833 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
23834 src to etc.
23835
23836 * ChangeLog.10: Add mistakenly removed entry.
23837
238382008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
23839
23840 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
23841
238422008-02-01 Miles Bader <miles@gnu.org>
23843
23844 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
23845 Add extra args to FACE_FOR_CHAR.
23846
238472008-02-01 Kenichi Handa <handa@m17n.org>
23848
23849 * keymap.c (where_is_internal_1): If key is a cons, store the copy
23850 in sequence.
23851
23852 * chartab.c (map_sub_char_table, map_char_table): If the range
23853 contains just one character, call the function with that character
23854 even if the depth is not 3.
23855
238562008-02-01 Jason Rumney <jasonr@gnu.org>
23857
23858 * w32font.c (w32font_text_extents): Calculate metrics for the
23859 whole string.
23860
238612008-02-01 Jason Rumney <jasonr@gnu.org>
23862
23863 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
23864
238652008-02-01 Jason Rumney <jasonr@gnu.org>
23866
bba3e508
SM
23867 * w32term.c (x_set_glyph_string_clipping):
23868 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23869 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23870 Adjust for the change of struct glyph_string.
23871
23872 * w32font.c (w32font_draw): Do clipping here.
23873
238742008-02-01 Kenichi Handa <handa@m17n.org>
23875
23876 * xftfont.c (xftfont_draw): Adjust for the change of struct
23877 glyph_string.
23878
bba3e508
SM
23879 * xterm.c (x_set_glyph_string_clipping):
23880 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23881 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23882 Adjust for the change of struct glyph_string.
23883
23884 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23885 the resulting clip(s}.
23886 (expose_overlaps): Add arg r. Change callers. Set it to
23887 row->clip temporarily.
23888 (expose_window): Redraw rows overlapping the exposed area.
23889
23890 * dispextern.h (struct glyph_row): New member clip.
23891 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23892 clip_height, new member clip, and num_clips.
23893
238942008-02-01 Kenichi Handa <handa@m17n.org>
23895
23896 * data.c (Fchar_or_string_p): Fix docstring.
23897
238982008-02-01 Kenichi Handa <handa@m17n.org>
23899
23900 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23901 create a temporary XftDraw object.
23902
239032008-02-01 Kenichi Handa <handa@m17n.org>
23904
23905 * font.c (Ffontp): Fix docstring.
23906
23907 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23908 strong evidence of ISO-2022.
23909
239102008-02-01 Kenichi Handa <handa@m17n.org>
23911
23912 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23913 SYNTAX_ENTRY_FOLLOW_PARENT.
23914
239152008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23916
23917 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23918 its type.
23919 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23920 Update to the new type of weak_hash_tables and next_weak.
23921
23922 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23923 a plain C pointer to Lisp_Hash_Table.
23924
23925 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23926 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23927 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23928 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23929 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23930 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23931 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23932 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23933 (GC_EQ): Remove since they've been identical to their non-GC_
23934 alter-egos ever since the markbit was eradicated.
23935
23936 * alloc.c:
23937 * buffer.c:
23938 * buffer.h:
23939 * data.c:
23940 * fileio.c:
23941 * filelock.c:
23942 * fns.c:
23943 * frame.h:
23944 * lisp.h:
23945 * macterm.c:
23946 * print.c:
23947 * process.c:
23948 * w32fns.c:
23949 * w32menu.c:
23950 * w32term.c:
23951 * xfns.c:
23952 * xmenu.c:
23953 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
23954
239552008-02-01 Kenichi Handa <handa@m17n.org>
23956
23957 * chartab.c (map_sub_char_table): Make it work for the top-level
23958 char-table. Fix handling of parent char-table.
23959 (map_char_table): Adjust for the above change.
23960
239612008-02-01 Jason Rumney <jasonr@gnu.org>
23962
23963 * w32font.c (Qgdi): Rename from Qw32.
23964
239652008-02-01 Jason Rumney <jasonr@gnu.org>
23966
23967 * w32bdf.c (get_quoted_string): Make function static.
23968
239692008-02-01 Kenichi Handa <handa@m17n.org>
23970
23971 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
23972 bigger ascent and descent than those of the font, use them as
23973 font's ascent and descent.
23974
239752008-02-01 Kenichi Handa <handa@m17n.org>
23976
23977 * Makefile.in (${lispsource}international/charprop.el): Move this
23978 target within "#ifdef HAVE_UNIDATA" and "#endif".
23979
239802008-02-01 Kenichi Handa <handa@m17n.org>
23981
23982 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
23983 (shortlisp): Add ../lisp/language/tai-viet.el.
23984
239852008-02-01 Ulrich Mueller <ulm@gentoo.org>
23986
23987 * Makefile.in (${lispsource}international/charprop.el): Depend on
23988 temacs${EXEEXT}.
23989
239902008-02-01 Jason Rumney <jasonr@gnu.org>
23991
23992 * w32font.c (w32font_close): Delete the GDI font object.
23993
23994 * w32menu.c: Include character.h.
23995
23996 * w32proc.c: Likewise.
23997
23998 * w32select.c: Likewise.
23999
24000 * makefile.w32-in (w32proc.o): Depend on character.h.
24001
240022008-02-01 Jason Rumney <jasonr@gnu.org>
24003
24004 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24005
24006 * w32menu.c (syms_of_w32menu): Likewise.
24007
24008 * w32proc.c (syms_of_ntproc): Likewise.
24009
24010 * w32select.c (syms_of_w32select): Likewise.
24011
24012 * w32term.c (syms_of_w32term): Likewise.
24013
240142008-02-01 Jason Rumney <jasonr@gnu.org>
24015
24016 * w32font.c (w32font_draw): Delete brush after using it.
24017
240182008-02-01 Jason Rumney <jasonr@gnu.org>
24019
24020 * w32font.c (w32font_open): Don't set font_idx.
24021 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24022 to font settings.
24023 (w32font_draw): Fill background explicitly.
24024
240252008-02-01 Jason Rumney <jasonr@gnu.org>
24026
24027 * w32term.c (w32_initialize): Don't call w32font_initialize.
24028
24029 * w32font.c (w32font_info): Remove subranges.
24030 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24031 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24032 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24033 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24034 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24035 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24036 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24037 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24038 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24039 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24040 New symbols.
24041 (font_callback_data): New struct.
24042 (w32font_list, w32font_match): Use it.
24043 (w32font_open): Don't populate subranges.
24044 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24045 (w32font_encode_char): Always return unicode code-point as-is.
24046 (w32font_text_extents): Supply a transformation matrix to
24047 GetGlyphOutline. Never look up by glyph index. Avoid looping
24048 twice. Use unicode version of GetTexExtentPoint32 instead of
24049 glyph index version.
24050 (set_fonts_frame): Remove.
24051 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24052 set frame parameter. Use backward compatible fake foundries.
24053 Save generic family in extra slot under QCfamily. Make width slot
24054 constant. Save QCspacing value. Save list of scripts instead of
24055 binary subranges.
24056 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
24057 (add_font_entity_to_list): Use font_callback_data struct.
24058 Filter unwanted fonts.
aac0c6e3
MR
24059 (add_one_font_entity_to_list): Use font_callback_data struct.
24060 (w32_registry): Default to iso10646_1.
24061 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24062 string font registries. Don't fill in font name if it is a generic
24063 family name, fill family instead. Use spacing, family and script
24064 extra info to fill pitch, family and charset fields.
24065 (list_all_matching_fonts): Use font_callback_data struct.
24066 (unicode_range_for_char): Remove.
24067 (font_supported_scripts): New function.
24068 (w32font_initialize): Remove.
24069 (syms_of_w32font): Update which symbols are defined.
24070
240712008-02-01 Jason Rumney <jasonr@gnu.org>
24072
24073 * font.c (font_pixel_size): Reverse assq_no_quit args.
24074
24075 * w32term.h (FONT_WIDTH): Report max width, not average.
24076 (FONT_MAX_WIDTH): Remove.
24077 (FONT_AVG_WIDTH): New macro.
24078
24079 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24080 redefinition of FONT_WIDTH.
24081
24082 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24083 (w32_cache_char_metrics): Use FONT_WIDTH.
24084
24085 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24086
240872008-02-01 Jason Rumney <jasonr@gnu.org>
24088
24089 * w32font.c (w32font_open): Make lfHeight negative.
24090
24091 * w32fns.c (x_default_font_parameter): Use new style font name.
24092 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24093
240942008-02-01 Jason Rumney <jasonr@gnu.org>
24095
24096 * w32font.c (QCsubranges): New symbol.
24097 (w32font_open, w32font_has_char): Get subranges from subproperty
24098 of extra.
24099 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24100 (syms_of_w32font): Define :subranges symbol.
24101
24102 * font.c (font_put_extra): Expose externally.
24103
24104 * font.h (font_put_extra): Move declaration from font.c.
24105
24106 * font.c (Ffont_get): Use font driver to determine otf capability.
24107 (adjust_anchor): Check if driver defines anchor_point before using.
24108
24109 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24110 (w32font_draw): Use options.
24111 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24112 Fix detection of truetype fonts.
24113 (registry_to_w32_charset): Handle charsets other than iso8859-1
24114 expressed as lisp symbols.
24115 (w32_registry): Express charset as lisp symbol.
24116 (fill_in_logfont): Reverse pixel and point height logic.
24117 Don't set width here. Set quality to default.
24118
24119 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24120 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24121
24122 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24123 Remove redundant loop and allocation.
24124
24125 * makefile.w32-in (font.o, w32font.o): New objects.
24126 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24127 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24128
24129 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24130 STORE_XCHARB a valid l-value.
24131
24132 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24133 calculations for non-Truetype fonts.
24134 (x_draw_glyph_string): Sync with xterm.c.
24135 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24136 Remove redundant code.
24137 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24138
24139 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24140 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24141
24142 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24143 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24144
24145 * w32font.c: New file for w32 font backend.
24146
241472008-02-01 Kenichi Handa <handa@m17n.org>
24148
24149 * term.c: Don't include "buffer.h" twice.
24150
241512008-02-01 Kenichi Handa <handa@m17n.org>
24152
24153 * character.c (Funibyte_string): New function.
24154 (syms_of_character): Defsubr it.
24155
241562008-02-01 Jason Rumney <jasonr@gnu.org>
24157
24158 * w32term.c [USE_FONT_BACKEND]:
24159 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24160 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24161 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24162 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24163 (x_free_frame_resources): Sync with xterm.c.
24164
241652008-02-01 Andreas Schwab <schwab@suse.de>
24166
24167 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24168 char-table size.
24169
241702008-02-01 Kenichi Handa <handa@m17n.org>
24171
24172 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24173
241742008-02-01 Kenichi Handa <handa@m17n.org>
24175
24176 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24177 font_otf_gpos, add font_drive_otf.
24178
24179 * fontset.c (fontset_find_font): Pay attention to font size
24180 specified for a font.
24181 (reorder_font_vector): Check contents of font_def.
24182
24183 * font.c (struct otf_list): Delete it.
24184 (otf_list): Make it a lisp variable.
24185 (otf_open): Use lispy otf_list.
24186 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24187 (check_otf_features): New function.
24188 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24189 New functions.
24190 (font_drive_otf): New function merging font_otf_gsub and
24191 font_otf_gpos.
24192 (font_open_for_lface): New arg spec. Change argument order.
24193 (font_load_for_face): Adjust for the change of font_open_for_lface.
24194 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24195 Ffont_otf_gpos.
24196 (syms_of_font): Staticpro otf_list. Delete defsubr of
24197 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24198
24199 * xfaces.c (set_font_frame_param): Adjust for the change of
24200 font_open_for_lface.
24201
24202 * font.h (font_open_for_lface): Adjust prototype.
24203 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24204 member otf_drive.
24205 (font_otf_gsub, font_otf_gpos): Delete externs.
24206 (font_drive_otf): Extern it.
24207
242082008-02-01 Kenichi Handa <handa@m17n.org>
24209
24210 * font.c (font_at): If the window W is not on a window system,
24211 return Qnil.
24212
24213 * coding.c (produce_chars, encode_coding): Don't call
24214 insert_from_gap if no characters to produce.
24215
242162008-02-01 Kenichi Handa <handa@m17n.org>
24217
24218 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24219 Fclear_face_cache.
24220
24221 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24222
242232008-02-01 Miles Bader <miles@gnu.org>
24224
24225 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24226 Parse "--disable-font-backend" option.
24227 (standard_args): Add "--disable-font-backend" option.
24228
242292008-02-01 Kenichi Handa <handa@m17n.org>
24230
24231 * fontset.c (fontset_find_font): New function.
24232 (fontset_font): Use fontset_find_font.
24233 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24234 Register the specified font for all Latin characters.
24235 (new_fontset_from_font): Register the specified font for all Latin
24236 characters.
24237 (dump_fontset): For a realized fontset, include the base fontset
24238 name in the returned vector.
24239
242402008-02-01 Kenichi Handa <handa@m17n.org>
24241
24242 * character.h (CHAR_STRING): Cast C to unsigned on calling
24243 char_string.
24244
24245 * character.c (char_string): Type of arg C changed to unsigned.
24246 Signal an error if C is an invalid character code.
24247
24248 * editfns.c (general_insert_function, Fchar_to_string):
24249 Use CHARACTERP, not INTEGERP.
24250
242512008-02-01 Kenichi Handa <handa@m17n.org>
24252
24253 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24254 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24255
24256 * regex.c (analyse_first): Fix for multibyte characters in "case
24257 charset:" and "case categoryspec:".
24258
242592008-02-01 Andreas Schwab <schwab@suse.de>
24260
24261 * Makefile.in (LIBES): Move standard libraries to the end.
24262
242632008-02-01 Kenichi Handa <handa@m17n.org>
24264
24265 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24266 nonzero, don't shrink the buffer nextb.
24267
24268 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24269
24270 * coding.c (coding_alloc_by_making_gap): New arg offset.
24271 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24272 offset.
24273 (decode_coding_iso_2022): Update coding->safe_charsets.
24274 (decode_coding_gap): Temporarily set
24275 current_buffer->text->inhibit_shrinking to 1.
24276
242772008-02-01 Kenichi Handa <handa@m17n.org>
24278
bba3e508
SM
24279 * xterm.c (x_draw_composite_glyph_string_foreground):
24280 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
24281
242822008-02-01 Juanma Barranquero <lekktu@gmail.com>
24283
24284 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24285
242862008-02-01 Kenichi Handa <handa@m17n.org>
24287
24288 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24289 target_multibyte instead of multibyte.
24290 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24291 (bcmp_translate): Change the argument name from multibyte to
24292 target_multibyte.
24293
242942008-02-01 Kenichi Handa <handa@m17n.org>
24295
24296 These changes are to compile a regexp into a pattern that can be
24297 used both for multibyte and unibyte targets.
24298
24299 * Makefile.in (search.o): Depend on charset.h.
24300
24301 * character.c (multibyte_char_to_unibyte_safe): New function.
24302
24303 * search.c: Include "charset.h".
24304 (compile_pattern_1): Delete argument multibyte. Don't set
24305 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24306 (compile_pattern): Don't compare cp->buf.target_multibyte.
24307 Compare cp->buf.charset_unibyte.
24308 (compile_pattern): Set cp->buf.target_multibyte.
24309
24310 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24311
24312 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24313
24314 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24315 multibyte. Change callers.
24316 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24317 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24318 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24319 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24320 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24321 (regex_compile): Make the compiled pattern usable both for
24322 multibyte and unibyte targets.
24323 (analyse_first): Make the fastmap usable both for multibyte and
24324 unibyte targets.
24325 (TRANSLATE_VIA_MULTIBYTE): Delete.
24326 (re_match_2_internal): Pay attention to the case that the
24327 multibyteness of bufp and target may be different.
24328
243292008-02-01 Kenichi Handa <handa@m17n.org>
24330
24331 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24332 empty box occupy at least one column width.
24333
243342008-02-01 Miles Bader <miles@gnu.org>
24335
24336 * Makefile.in: Remove redundant HAVE_XFT clause.
24337
243382008-02-01 Kenichi Handa <handa@m17n.org>
24339
24340 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24341
243422008-02-01 Kenichi Handa <handa@m17n.org>
24343
24344 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24345 being nil.
24346
243472008-02-01 Kenichi Handa <handa@m17n.org>
24348
24349 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24350
243512008-02-01 Kenichi Handa <handa@m17n.org>
24352
24353 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24354
243552008-02-01 Kenichi Handa <handa@m17n.org>
24356
24357 * search.c (simple_search): Fix previous change.
24358
243592008-02-01 Kenichi Handa <handa@m17n.org>
24360
24361 * xftfont.c (ftfont_font_format): Extern declaration.
24362
24363 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24364
24365 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24366 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24367
24368 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24369 (ftfont_font_format): Fix previous change.
24370
24371 * font.h (Ffont_xlfd_name): EXFUN it.
24372
24373 * font.c (font_parse_xlfd): Fix the array size of `f'.
24374 (register_font_driver): Use EQ to compare driver->type.
24375
24376 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24377 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24378 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24379
243802008-02-01 Kenichi Handa <handa@m17n.org>
24381
24382 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24383 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24384
243852008-02-01 Kenichi Handa <handa@m17n.org>
24386
24387 * xfont.c (xfont_open): Set font->format.
24388
24389 * xftfont.c (xftfont_open): Set font->format.
24390
24391 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24392 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24393 (ftfont_open): Set font->format.
24394 (ftfont_font_format): New function.
24395
24396 * font.h (struct font): New member format.
24397
24398 * font.c (Qopentype): New variable.
24399 (syms_of_font): Defsym it.
24400 (Fquery_font): Change the format of the last element of the return
24401 value.
24402
244032008-02-01 Kenichi Handa <handa@m17n.org>
24404
24405 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24406 last resort.
24407
244082008-02-01 Kenichi Handa <handa@m17n.org>
24409
24410 * coding.c (detect_coding_charset): Fix detection of multi-byte
24411 charset.
24412
244132008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24414
24415 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24416
244172008-02-01 Kenichi Handa <handa@m17n.org>
24418
24419 * xdisp.c (get_next_display_element): Set it->face_id for the
24420 first component of a composition.
24421 (x_produce_glyphs): Check if the font is changed or not for composition.
24422
244232008-02-01 Kenichi Handa <handa@m17n.org>
24424
24425 * fontset.c (Qlatin): New variable.
24426 (syms_of_fontset): Define it as a lisp symbol.
24427 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24428
244292008-02-01 Kenichi Handa <handa@m17n.org>
24430
24431 * font.c (font_unparse_fcname): Pay attention to the case that
24432 some of font property is a null string.
24433
244342008-02-01 Kenichi Handa <handa@m17n.org>
24435
24436 * term.c: Include "composite.h".
24437 (encode_terminal_code): Output all components of composition.
24438 Check the size of encode_terminal_src.
24439 (produce_glyphs): For composition, call produce_composite_glyph.
24440 (append_composite_glyph, produce_composite_glyph): New functions.
24441
24442 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24443 is not found, get font_info from the current ascii face.
24444
244452008-02-01 Kenichi Handa <handa@m17n.org>
24446
24447 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24448 buffer-file-name to Qnil before calling insert_from_buffer.
24449
24450 * font.c (font_unparse_fcname): Pay attention to the case that
24451 foundry is a null string.
24452
244532008-02-01 Kenichi Handa <handa@m17n.org>
24454
24455 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24456
24457 * font.c (Qunicode_sip): New variable.
24458 (syms_of_font): Declare it as a Lisp symbol.
24459
24460 * font.h (Qunicode_sip): Extern it.
24461
244622008-02-01 Kenichi Handa <handa@m17n.org>
24463
24464 * composite.c (get_composition_id): Pay attention to TAB component.
24465
24466 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24467 TAB. Adjust for the change of s->char2b which always points to
24468 the first element of allocated memory.
24469
24470 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24471
24472 * xdisp.c (handle_composition_prop): Set it->c to the first
24473 non-TAB component.
24474 (fill_composite_glyph_string): Change argument.
24475 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24476 (x_produce_glyphs): Fix handling of left/right padding.
24477
244782008-02-01 Kenichi Handa <handa@m17n.org>
24479
24480 * coding.c (detect_coding_system): Fix for handling off
24481 inhibit_iso_escape_detection. Fix for the case that no coding
24482 system is defined for a specific coding category.
24483
244842008-02-01 Kenichi Handa <handa@m17n.org>
24485
24486 * font.c (font_matching_entity): Delete unused local var.
24487
24488 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24489 opening a font.
24490
24491 * fileio.c (Finsert_file_contents): On recovering a file, assume
24492 Unix-like eol.
24493 (choose_write_coding_system): On auto-saving a file, force
24494 Unix-like eol.
24495
24496 * coding.c (setup_coding_system): Fix setting of
24497 coding->common_flags based on eol_type.
24498 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24499 inherit from it.
24500
245012008-02-01 Kenichi Handa <handa@m17n.org>
24502
24503 * alloc.c (NSTATICS): Increas to 0x600.
24504
245052008-02-01 Kenichi Handa <handa@m17n.org>
24506
24507 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24508 (ftfont_list): Don't check :name property.
24509 (ftfont_match): New function.
24510 (ftfont_pattern_entity): If the pattern doesn't contain
24511 FC_SPACING, don't assume FC_MONO.
24512
24513 * font.h (struct font_driver): New member `match'.
24514 (font_update_drivers): Adjust prototype.
24515
24516 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24517 property of FONT.
bba3e508
SM
24518 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24519 Define them unconditionally.
aac0c6e3
MR
24520 (font_matching_entity): New function.
24521 (font_open_by_name): Try font_matching_entity if exact match is
24522 not found.
24523 (font_update_drivers): Delete the arg FONT. Return a list of
24524 actually used backends. Don't free faces, font caches here.
24525 Don't store data in frame parameters. Don't call x_set_font.
24526 (Ffont_spec): Store :name property as is.
24527 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24528 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24529 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24530 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24531 Call font->driver->otf_gsub instead of font_otf_gsub.
24532
24533 * frame.c (x_set_font_backend): Do more works that were done in
24534 font_update_drivers before.
24535
24536 * xfont.c (xfont_match): New function.
24537 (xfont_driver): Set xfont_driver.match to xfont_match.
24538 (xfont_draw): Set font in GC if necessary.
24539
24540 * ftxfont.c (ftxfont_match): New function.
24541 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24542
24543 * xftfont.c (xftfont_match): New function.
24544 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
24545
245462008-02-01 Kenichi Handa <handa@m17n.org>
24547
24548 * font.h (struct font): New member scalable.
24549 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
24550 (font_otf_gsub): Adjust prototype.
24551
24552 * font.c (font_otf_capability): Fix handling of the default langsys.
24553 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
24554 Check the contents of SPEC.
24555 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
24556 (check_gstring): New function.
24557 (REPLACEMENT_CHARACTER): New macro.
24558 (font_otf_gsub): New arg alternate_subst. Be sure to set all
24559 glyph codes of GSTRING.
24560 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
24561 (font_prepare_composition): Set cmp->glyph_len.
24562 (font_open_entity): Set font->scalable.
24563 (Ffont_get): Handle :otf property.
bba3e508
SM
24564 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
24565 New functions.
aac0c6e3
MR
24566 (Fquery_font): Use font->font.full_name.
24567 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
24568 Sfont_otf_alternates.
24569
24570 * ftfont.c (ftfont_open): Set font->font.full_name and
24571 font->font.name properly. Fix calculation of font->font.height
24572 and font->min_width.
24573
24574 * ftxfont.c (ftxfont_create_gcs): New function.
24575 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
24576 (ftxfont_draw_backgrond): Fix filling region.
24577 (ftxfont_default_fid): New function.
24578 (ftxfont_open): Set xfont->fid to the return value of
24579 ftxfont_default_fid.
24580 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
24581 (ftxfont_done_face): Free only GCs that are created by
24582 ftxfont_create_gcs.
24583 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
24584
24585 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
24586 Clip to src->width, etc (not src->clip_XXX).
24587
24588 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
24589 FontBackend frame parameter.
24590
245912008-02-01 Kenichi Handa <handa@m17n.org>
24592
24593 * font.h (struct font_driver_list): New member `on'.
24594 (Fclear_font_cache): EXFUN it.
24595 (font_update_drivers): Extern it.
24596
24597 * font.c (font_unparse_fcname): Fix typo (swidth->width).
24598 (font_list_entities): Check driver_list->on.
40b1a3a9 24599 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
24600 (font_update_drivers): New function.
24601 (Fclear_font_cache): Check driver_list->on.
24602
24603 * frame.h (Qfont_backend): Extern it.
24604 (x_set_font_backend): Extern it.
24605
24606 * frame.c (Qfont_backend): New variable.
24607 (frame_parms): New element for font-backend.
24608 (x_set_font_backend): New function.
24609
24610 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
24611 FontBackend frame parameter.
24612 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
24613 x_set_font_backend.
24614
24615 * xfont.c (xfont_list): Don't try listing by :name property if the
24616 name is not for XLFD.
24617
246182008-02-01 Kenichi Handa <handa@m17n.org>
24619
24620 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
24621 (LGLYPH_SET_TO): New macros.
24622 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
24623 element of G is vector or not.
24624 (font_at): Extern it.
24625
24626 * font.c: Include window.h.
24627 (font_lispy_object): New function.
24628 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
24629 end of valid glyph.
24630 (font_close_object): Fix getting (struct font *).
24631 (font_at): New function.
24632 (Ffont_get): If FONT is a font-object, get entity from it.
24633 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
24634 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
24635 Fix range check.
aac0c6e3
MR
24636 (Ffont_at): New function.
24637 (syms_of_font): Defsubr Sfont_at.
24638
24639 * xdisp.c (it_props): Move the entry for Qauto_composed to just
24640 before the entry for Qcomposition.
24641 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
24642 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
24643 the font in gstring.
24644 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
24645 LGLYPH_FORM (g) to detect the end of valid glyph.
24646 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
24647 we are composing with gstring.
24648
24649 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
24650 Check if adjustment is vector or not.
24651
24652 * Makefile.in (font.o): Make it depends on window.h.
24653
246542008-02-01 Kenichi Handa <handa@m17n.org>
24655
24656 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
24657 adjustment is vector or not.
24658
246592008-02-01 Miles Bader <miles@gnu.org>
24660
24661 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
24662
246632008-02-01 Kenichi Handa <handa@m17n.org>
24664
24665 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 24666 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
24667 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
24668
24669 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
24670 (DEVICE_DELTA): Fix typo.
24671 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
24672 LGLYPH format.
24673
24674 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24675 the change of LGLYPH format.
24676
246772008-02-01 Kenichi Handa <handa@m17n.org>
24678
24679 * ftfont.c (ftfont_list): Fix typo.
24680 (ftfont_build_basic_charsets): Don't include letters with diacritics.
24681
246822008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24683
24684 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
24685
24686 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
24687 xftface_info is non-NULL.
24688
246892008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24690
24691 * ftfont.c (ftfont_list): Move misplaced #endif.
24692
246932008-02-01 Kenichi Handa <handa@m17n.org>
24694
24695 * ftfont.c (ftfont_list): Pay attention to the case that
24696 FC_CAPABILITY is not defined.
24697
246982008-02-01 Kenichi Handa <handa@m17n.org>
24699
24700 * xftfont.c (xftfont_open): Set charset related members to -1.
24701
24702 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
24703 QCname.
24704 (ftfont_open): Set charset related members to -1.
24705
24706 * fontset.c (Votf_script_alist): New variable.
24707 (syms_of_fontset): Initialize it.
24708 (fontset_font): Delete unused variable.
24709
24710 * fontset.h (Votf_script_alist): Extern it.
24711
24712 * font.c (font_find_for_lface): Optimize code.
24713
24714 * font.h (font_close_object, font_merge_old_spec): Extern them.
24715
247162008-02-01 Kenichi Handa <handa@m17n.org>
24717
24718 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
24719 (syms_of_font): Initialize them.
24720 (font_pixel_size): Allow float value in dpi.
24721 (font_prop_validate_type): Delete.
24722 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
24723 Change caller.
24724 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
24725 (font_prop_validate_extra): Delete.
24726 (font_prop_validate_spacing): New function.
24727 (font_property_table): Add elements for all known properties.
bba3e508
SM
24728 (get_font_prop_index): Rename from check_font_prop_name.
24729 New argument FROM. Change caller.
aac0c6e3
MR
24730 (font_prop_validate): Validate all known properties.
24731 (font_put_extra): Delete argument force. Change caller.
24732 (font_expand_wildcards): Make it static. Fix the way of shrinking
24733 the possible range.
24734 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
24735 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
24736 Change caller.
24737 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
24738 (font_parse_fcname): Delete argument merge. Fix parsing of point
24739 size. Don't validate properties values here. Change caller.
24740 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
24741 (font_open_by_name): Delete unused variable.
24742 (Ffont_spec): Likewise. Validate property values.
24743 (Ffont_match_p): New function.
24744
24745 * font.h (QCscalable): Extern it.
24746 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24747
24748 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24749
24750 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24751 (xfont_list_pattern): New function.
24752 (xfont_list): Use xfont_list_pattern.
24753
247542008-02-01 Kenichi Handa <handa@m17n.org>
24755
24756 * font.h (Flist_fonts): EXFUN it.
24757
247582008-02-01 Jason Rumney <jasonr@gnu.org>
24759
24760 * w32term.c (w32_initialize): Add back smoothing_type and
24761 smoothing_enabled definitions.
24762
247632008-02-01 Kenichi Handa <handa@m17n.org>
24764
24765 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24766 s->face->font on determining underline position.
24767
247682008-02-01 Kenichi Handa <handa@m17n.org>
24769
24770 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24771 (font_has_char): Accept font-object too.
24772 (font_find_for_lface): Try at first with a size specified in face.
24773
247742008-02-01 Kenichi Handa <handa@m17n.org>
24775
24776 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24777 font_open_by_name.
24778
247792008-02-01 Kenichi Handa <handa@m17n.org>
24780
24781 * font.h (QCspacing, QCdpi): Extern them.
24782 (enum font_spacing): New enum.
24783 (FONT_PIXEL_SIZE_QUANTUM): New macro.
24784
24785 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
24786 (QCspacing, QCdpi): New variables.
24787 (syms_of_font): Initialize them.
24788 (font_pixel_size): New function.
24789 (font_put_extra): New function.
24790 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
24791 in FONT_EXTRA.
24792 (font_parse_fcname): Handle enumerated values (e.g. bold).
24793 Fix handling font size. Add QCname property that contains only
24794 unknown properties.
24795 (font_score): Change argument. Change caller. Pay attention to
24796 FONT_PIXEL_SIZE_QUANTUM.
24797 (font_sort_entites, font_list_entities, font_find_for_lface)
24798 (font_open_for_lface, font_open_by_name): Fix handling of font size.
24799 (Ffont_spec): Add QCname property that contains only unknown properties.
24800
bba3e508
SM
24801 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
24802 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
24803 listed font. Don't include scalable in pattern. Pay attention to
24804 FONT_PIXEL_SIZE_QUANTUM.
24805
248062008-02-01 Kenichi Handa <handa@m17n.org>
24807
24808 * font.c (font_parse_fcname): Fix parsing of point-size.
24809 (font_unparse_fcname): Produce symbolic names for style properties.
24810 (font_list_entities): Handle float size correctly.
24811 (font_open_by_name): Prefer `normal' property values if the name
24812 doesn't specify them.
24813
24814 * fontset.c (Finternal_char_font): Use font_get_name, not
24815 Ffont_xlfd_name.
24816
24817 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
24818 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
24819 pattern. Don't force scalable.
24820
24821 * xftfont.c (xftfont_open): For generating a name, start from
24822 96-byte buffer.
24823
248242008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24825
24826 * frame.h (x_new_fontset2): Fix prototype.
24827
248282008-02-01 Kenichi Handa <handa@m17n.org>
24829
24830 * font.h (struct font_driver): Delete member parse_name.
24831 (font_match_p, font_get_spec, font_parse_fcname)
24832 (font_unparse_fcname): Extern them.
24833 (font_get_name): Adjust prototype.
24834
24835 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
24836 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
24837 (font_expand_wildcards): Fix handling ENCODING field.
24838 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
24839 (font_parse_fcname): New function.
24840 (font_unparse_fcname): New function.
24841 (font_parse_name): New function.
24842 (font_match_p): New function.
24843 (font_get_name): Change return value to Lisp string.
24844 (font_get_spec): New function.
24845 (Qunspecified, Qignore_defface): Don't extern them.
24846 (font_find_for_lface): Assume that LFACE is fully specified.
24847 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
24848 object, use it for FACE.
24849 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
24850 driver->parse_name.
24851 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
24852
24853 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
24854 prototype.
24855
24856 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
24857 argument F. Don't call Fnew_fontset. Instead, directly call
24858 make_fontset.
24859
24860 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
24861
24862 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
24863 of x_new_fontset2.
24864
24865 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
24866 (Qsans__serif): New variables.
24867 (ftfont_generic_family_list): New variable.
24868 (syms_of_ftfont): Initialize the above variables.
24869 (ftfont_pattern_entity): Delete argument NAME.
24870 (ftfont_list_generic_family): New function.
24871 (ftfont_parse_name): Delete this function.
24872 (ftfont_list): Try generic family only when FcFontList found no font.
24873 (ftfont_list_family): Fix args to FcObjectSetBuild.
24874
24875 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
24876 object in attrs[LFACE_FONT_INDEX].
24877 (set_lface_from_font_name): Cancel all changes for font-backend.
24878 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24879 function.
24880 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24881 font object in QCfont attribute.
24882 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24883 (realize_default_face) [USE_FONT_BACKEND]: Call
24884 set_lface_from_font_and_fontset.
24885
24886 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24887 "fixed", and signal error here if no suitable font was found.
24888
24889 * xfont.c (xfont_parse_name): Delete this function.
24890
24891 * xftfont.c (xftfont_open): Change coding style of error
24892 handling. Generate fontconfig's fontname pattern.
24893
24894 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24895 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24896
24897 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24898 Both args FONTSET and FONT_OBJECT must be existing ones.
24899
249002008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24901
24902 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24903
249042008-02-01 Kenichi Handa <handa@m17n.org>
24905
24906 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24907
24908 * font.h (struct font): Fix typo.
24909
24910 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24911 XLFD_XXX_INDEX.
24912 (enum xlfd_field_mask): New enum.
ef1b0ba7 24913 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
24914 are followed by non-digits, return a symbol.
24915 (font_expand_wildcards): New function.
24916 (font_parse_xlfd): Fix wildcard handling.
24917 (Ffont_spec): If :name is specified, reflect the info in the other
24918 properties.
24919
24920 * ftfont.c (ftfont_pattern_entity): Fix typo.
24921 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24922 locale.
24923
249242008-02-01 Kenichi Handa <handa@m17n.org>
24925
24926 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24927
24928 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24929 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24930 registry doesn't specify encoding part.
24931 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24932 (font_open_by_name): At first try parsing the name.
24933 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24934 as Lisp symbols.
24935
24936 * fontset.c (reorder_font_vector): Pay attention to the case that
24937 the 3rd element of font_def is nil.
24938 (fontset_font): For the default fontset, append one more fontset
24939 elements for a script-based font specification. Don't add script
24940 attribute on finding a font.
24941 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24942 font name.
24943 (fontset_ascii_font): If a font can't be opened, return nil.
24944
24945 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24946 (ftfont_pattern_entity): New function.
24947 (ftfont_get_cache): Assume that freetype_font_cache is already
24948 initialized.
24949 (ftfont_list): Handle the case that a file is specified in font
24950 name. Use ftfont_pattern_entity to generate entities.
24951 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24952 (syms_of_ftfont): Initialize freetype_font_cache.
24953
24954 * xftfont.c (xftfont_open): Make the font name fontconfig's
24955 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
24956 (xftfont_close): Free font->font.name if not NULL.
24957
24958 * xfont.c (xfont_list): If script is specified for a font, return
24959 null_vector.
24960 (xfont_list_family): Declare argument type.
24961
24962 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
24963 name, set LFACE_FONT (lface) to nil.
24964
24965 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
24966 return Qnil.
24967
249682008-02-01 Kenichi Handa <handa@m17n.org>
24969
24970 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
24971 (standard_args): Add "-enable-font-backend".
24972
249732008-02-01 Kenichi Handa <handa@m17n.org>
24974
24975 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
24976 (struct xftdraw_list, xftdraw_list): Delete them.
24977 (register_xftdraw, check_xftdraw): Delete them.
24978 (xftfont_prepare_face): Don't call register_xftdraw.
24979 (xftfont_done_face): Don't call check_xftdraw.
24980 (xftfont_draw): Get background color only when with_background is
24981 nonzero.
24982
24983 * xfont.c (xfont_encode_char): Fix calculation of char2b.
24984
249852008-02-01 Kenichi Handa <handa@m17n.org>
24986
24987 These changes are for the new font handling codes.
24988
24989 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
24990 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
24991 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
24992 (FONTSRC, FONTOBJ): New variables.
24993 (obj): Add $(FONTOBJ).
24994 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
24995 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
24996 @LIBOTF_LIBS@.
24997 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
24998 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
24999
25000 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25001
25002 * character.h (Vscript_representative_chars): Extern it.
25003
25004 * character.c (Vscript_representative_chars): New variable.
25005 (syms_of_character): Declare it as a Lisp variable.
25006
25007 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25008 enable_font_backend is nonzero, accept the composition method
25009 COMPOSITION_WITH_GLYPH_STRING.
25010
25011 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25012 enumeration COMPOSITION_WITH_GLYPH_STRING.
25013
25014 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25015 members clip_x, clip_y, clip_width, and clip_height.
25016 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25017
25018 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25019 --enable-font-backend. Call syms_of_font.
25020
25021 * fns.c (assoc_no_quit): New function.
25022
25023 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25024 (face_for_font, new_fontset_from_font)
25025 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25026
25027 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25028 (fontset_font, fontset_ascii, face_for_char)
25029 (make_fontset_for_ascii_face, Ffont_info)
25030 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25031 is nonzero, use font-backend mechanism.
25032 (find_font_encoding): Make it non-static.
25033 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25034 New functions.
25035
25036 * frame.h (struct frame): New members resx and resy.
25037 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25038 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25039
25040 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25041 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25042
25043 * lisp.h (assoc_no_quit): Extern it.
25044
25045 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25046 Through out the file, use FONT_INFO_FROM_FACE instead of
25047 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25048 rif->per_char_metric.
25049 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25050 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25051 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25052 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25053 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25054 nonzero, use font-backend mechanism.
25055 (get_per_char_metric): New function.
25056
25057 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25058 (set_lface_from_font_name)
25059 (set_font_frame_param, free_realized_face)
25060 (prepare_face_for_display, clear_face_gcs)
25061 (Finternal_set_font_selection_order, realize_x_face)
25062 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25063 font-backend mechanism.
25064 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25065 (load_face_font) [USE_FONT_BACKEND]: Abort.
25066 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25067 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25068
25069 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25070 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25071 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
25072 nonzero, register all available font drivers.
25073 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
25074 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25075
25076 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25077 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25078 (x_set_glyph_string_clipping_exactly)
25079 (x_compute_glyph_string_overhangs)
25080 (x_draw_glyph_string_foreground)
25081 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25082 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25083 enable_font_backend is nonzero, use font-backend mechanism.
25084 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25085
250862008-02-01 Kenichi Handa <handa@m17n.org>
25087
25088 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25089 system_eol_type.
25090 (syms_of_coding): Initialize system_eol_type.
25091
25092 * process.c (Fset_process_coding_system): Inherit system's eol
25093 format if necessary.
25094
250952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25096
25097 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25098
250992008-02-01 Kenichi Handa <handa@m17n.org>
25100
25101 * coding.c (decode_eol): Pay attention to buffer relocation in
25102 del_range_2.
25103 (decode_coding): Call decode_eol before restoring undo_list.
25104
251052008-02-01 Kenichi Handa <handa@m17n.org>
25106
25107 * charset.c (Fdefine_charset_internal): Fix setting of
25108 emacs_mule_bytes.
25109
251102008-02-01 Kenichi Handa <handa@m17n.org>
25111
25112 * keyboard.c (read_char): Check if C is a character or not before
25113 looking up Vkeyboard_translate_table.
25114
251152008-02-01 Kenichi Handa <handa@m17n.org>
25116
bba3e508
SM
25117 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25118 Fix condition to terminate the loop.
aac0c6e3
MR
25119
251202008-02-01 Kenichi Handa <handa@m17n.org>
25121
25122 * coding.c (produce_composition): Compare charbuf[i] instead of
25123 args[i] against 0.
25124 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25125
251262008-02-01 Kenichi Handa <handa@m17n.org>
25127
25128 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25129 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25130 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25131 detect_coding.
25132 (emacs_mule_char): Handle old style (Emacs 20) component character
25133 of a composition.
25134 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25135 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25136 composition rule.
25137 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25138
251392008-02-01 Kenichi Handa <handa@m17n.org>
25140
25141 * coding.c (encode_coding_ccl): Allocate destination dynamically
25142 when necessary.
25143
251442008-02-01 Kenichi Handa <handa@m17n.org>
25145
25146 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25147 the loop. When quitted, show a proper error message.
25148
251492008-02-01 Kenichi Handa <handa@m17n.org>
25150
bba3e508
SM
25151 * xterm.c (x_set_glyph_string_clipping_exactly):
25152 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
25153
25154 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25155 character sequence.
25156 (Fccl_execute_on_string): Use ASET, not XSET.
25157
251582008-02-01 Kenichi Handa <handa@m17n.org>
25159
25160 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25161
251622008-02-01 Kenichi Handa <handa@m17n.org>
25163
25164 * coding.c (decode_coding): Fix the condition of terminating the
25165 decoding loop.
25166
251672008-02-01 Kenichi Handa <handa@m17n.org>
25168
25169 * data.c (Faset): On setting a character bigger than 255 in a
25170 unibyte string, signal an error instead of make the string multibyte.
25171
251722008-02-01 Kenichi Handa <handa@m17n.org>
25173
25174 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25175 made by a mapping table.
25176
251772008-02-01 Kenichi Handa <handa@m17n.org>
25178
25179 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25180 not.
25181 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25182 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25183
bba3e508
SM
25184 * xterm.c (x_draw_composite_glyph_string_foreground):
25185 Check s->face is NULL or not.
aac0c6e3
MR
25186
251872008-02-01 Kenichi Handa <handa@m17n.org>
25188
25189 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25190 (x_draw_glyph_string): Fix drawing of right_overhang and
25191 left_overhang around/on cursor.
25192
25193 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25194
251952008-02-01 Kenichi Handa <handa@m17n.org>
25196
25197 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25198
251992008-02-01 Kenichi Handa <handa@m17n.org>
25200
25201 * coding.c (Fdefine_coding_system_internal)
25202 (Fdefine_coding_system_alias): Avoid a duplicated element in
25203 Vcoding_system_alist.
25204
252052008-02-01 Kenichi Handa <handa@m17n.org>
25206
25207 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25208
25209 * coding.c (Qcoding_system_define_form): New variable.
25210 (syms_of_coding): Intern and staticpro it.
25211 (Fcoding_system_p): Check Qcoding_system_define_form.
25212 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25213
25214 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25215 Fcoding_system_p.
25216 (CHECK_CODING_SYSTEM): If ID is not available, call
25217 Fcheck_coding_system.
25218 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25219 Try also Fcheck_coding_system.
25220
252212008-02-01 Kenichi Handa <handa@m17n.org>
25222
25223 * coding.c (code_conversion_restore): GCPRO arg.
25224
252252008-02-01 Kenichi Handa <handa@m17n.org>
25226
25227 * character.c (lisp_string_width): Check multibyteness of STRING.
25228
252292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25230
25231 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25232 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25233 (decode_mac_font_name): Use decode_coding_c_string instead of
25234 decode_coding.
bba3e508
SM
25235 (x_load_font): Initialize fontp->fontset to -1.
25236 Set fontp->encoding_type.
aac0c6e3
MR
25237
252382008-02-01 Kenichi Handa <handa@m17n.org>
25239
25240 * search.c (search_buffer): Give up BM search on case-fold-search
25241 if one of a target character has a case-equivalence of different
3b59c351 25242 byte length even if that target character is an ASCII.
aac0c6e3
MR
25243 (simple_search): Fix calculation of byte length of matched text.
25244 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25245
252462008-02-01 Kenichi Handa <handa@m17n.org>
25247
25248 * coding.c (decode_coding): Fix handling of invalid bytes.
25249
252502008-02-01 Kenichi Handa <handa@m17n.org>
25251
25252 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25253 Unicode characters.
25254
252552008-02-01 Kenichi Handa <handa@m17n.org>
25256
25257 * coding.c (encode_coding_object): If a pre-write-conversion
25258 function makes a new buffer, kill it.
25259
252602008-02-01 Kenichi Handa <handa@m17n.org>
25261
25262 * coding.c (QCascii_compatible_p): New variable.
25263 (syms_of_coding): Initialize it.
25264 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25265 calling string_char.
25266 (record_conversion_result): Add `default:' case.
25267 (coding_charset_list): Delete unused variable `coding_type'.
25268 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25269 property in the plist of the coding system.
25270 (Fcoding_system_put): Check QCascii_compatible_p.
25271
252722008-02-01 Miles Bader <miles@gnu.org>
25273
25274 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25275 removed calculation of frame `f', as it's now used.
25276
252772008-02-01 Kenichi Handa <handa@m17n.org>
25278
25279 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25280 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25281 (UNIDATA): New variable.
25282 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
25283 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25284 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
25285
252862008-02-01 Kenichi Handa <handa@m17n.org>
25287
25288 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25289 (admindir): New variable.
25290 ($(lispsource)international/charprop.el): New target.
25291
252922008-02-01 Miles Bader <miles@gnu.org>
25293
25294 * character.c (chars-in-region): Remove obsolete function.
25295 (syms_of_character): Remove its initialization.
25296
252972008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25298
25299 * w32select.c (validate_coding_system)
25300 (setup_windows_coding_system): New functions.
bba3e508
SM
25301 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25302 Use setup_windows_coding_system.
25303 (setup_config, Fw32_get_clipboard_data):
25304 Use validate_coding_system.
aac0c6e3
MR
25305 (Fx_selection_exists): Move call to setup_config to a place
25306 where signals are allowed.
25307
25308 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25309 (Fcheck_coding_system): Add declarations.
25310
253112008-02-01 Kenichi Handa <handa@m17n.org>
25312
25313 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25314
253152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25316
25317 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25318 string as the second argument for x_new_fontset.
25319
253202008-02-01 Kenichi Handa <handa@m17n.org>
25321
25322 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25323 (encode_coding_object): Use safe_call instead of call2.
25324
253252008-02-01 Kenichi Handa <handa@m17n.org>
25326
25327 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25328
25329 * Makefile.in (lisp): Include charprop.el.
25330
253312008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25332
25333 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25334 Not sure if it's unnecessary.
25335
253362008-02-01 Steven Tamm <steventamm@mac.com>
25337
25338 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25339 some possibly unnecessary fontset checking code that crashed
25340 when creating a new frame.
25341
253422008-02-01 Kenichi Handa <handa@m17n.org>
25343
25344 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25345 lookup_face.
25346
25347 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25348
25349 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25350
253512008-02-01 Kenichi Handa <handa@m17n.org>
25352
25353 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25354 (coding_charset_list): New function.
25355
25356 * coding.h (coding_charset_list): Extern it.
25357
253582008-02-01 Kenichi Handa <handa@m17n.org>
25359
25360 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25361 concatenation of family and registry.
25362
253632008-02-01 Kenichi Handa <handa@m17n.org>
25364
25365 * character.h (BYTE8_STRING): Fix typo.
25366
25367 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25368 string to multibyte (sync to HEAD).
25369
25370 * casefiddle.c (casify_region): Handle changes in byte-length
25371 using replace_range_2 (sync to HEAD).
25372
253732008-02-01 Andreas Schwab <schwab@suse.de>
25374
25375 * chartab.c (map_char_table): GCPRO table and arg.
25376
253772008-02-01 Kenichi Handa <handa@m17n.org>
25378
25379 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25380 already at limit.
25381
253822008-02-01 Kenichi Handa <handa@m17n.org>
25383
25384 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25385 instead of fast_c_string_match_ignore_case.
bba3e508
SM
25386 (find_font_encoding): Change argument to Lisp_Object.
25387 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
25388 fast_c_string_match_ignore_case. Change caller.
25389
253902008-02-01 Kenichi Handa <handa@m17n.org>
25391
25392 * xdisp.c (get_next_display_element): In unibyte case, decide to
25393 display in octal form by checking a character by
25394 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25395
25396 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25397
25398 * character.c (unibyte_has_multibyte_table): New variable.
25399
25400 * character.h (unibyte_has_multibyte_table): Extern it.
25401 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25402
254032008-02-01 Kenichi Handa <handa@m17n.org>
25404
25405 * coding.c (encode_coding_iso_2022): Fix handling of charset
25406 annotation.
25407
254082008-02-01 Kenichi Handa <handa@m17n.org>
25409
25410 * coding.c (setup_coding_system): If coding_system is nil, use
25411 Qundecided.
25412 (Fterminal_coding_system): Return nil if terminal coding system is
25413 `undecided'.
bba3e508
SM
25414 (syms_of_coding): Define coding-system `undecided' here.
25415 Setup terminal_coding as `undecided'.
aac0c6e3
MR
25416
254172008-02-01 Kenichi Handa <handa@m17n.org>
25418
bba3e508
SM
25419 * xdisp.c (message_dolog, set_message_1):
25420 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
25421
25422 * lread.c (read1): Fix reading of a char-table.
25423
25424 * print.c (print_object): Include sub char-table in circularities
25425 detection.
25426
254272008-02-01 Kenichi Handa <handa@m17n.org>
25428
25429 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25430 Append the found sequences in car of ARGS instead of prepending.
25431
254322008-02-01 Kenichi Handa <handa@m17n.org>
25433
25434 * fileio.c (report_file_error): Make a unibyte string from
25435 strerror (errorno).
25436 (Fsubstitute_in_file_name): Fix the arg to
25437 unibyte_char_to_multibyte. It is evaluated twice.
25438
254392008-02-01 Kenichi Handa <handa@m17n.org>
25440
25441 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25442
254432008-02-01 Kenichi Handa <handa@m17n.org>
25444
25445 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25446 BOM is not found.
25447 (detect_coding, detect_coding_system): Optimization for ISO-2022
25448 when no 8-bit data is found.
25449
254502008-02-01 Jason Rumney <jasonr@gnu.org>
25451
25452 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25453
254542008-02-01 Kenichi Handa <handa@m17n.org>
25455
25456 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25457 CHARS.
25458
254592008-02-01 Steven Tamm <steventamm@mac.com>
25460
25461 * macterm.c (mac_encode_char): Add charset argument and update
25462 to use encoding_type.
25463 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25464 switch to pure fontset.
25465 (decode_mac_font_name): Temporarily remove decoding.
25466 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25467 (x_load_font): Temporarily remove encoding.
25468
254692008-02-01 Kenichi Handa <handa@m17n.org>
25470
25471 * xfaces.c (Fface_font): If frame is not on a window system,
25472 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25473 refer to face->font.
25474 (split_font_name_into_vector, build_font_name_from_vector)
25475 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25476 when HAVE_WINDOW_SYSTEM is defined.
25477
254782008-02-01 Kenichi Handa <handa@m17n.org>
25479
25480 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25481 (x_produce_glyphs): Fix setting of members of cmp in case
25482 cmp->glyph_len is zero.
25483
25484 * fontset.c (Fset_fontset_font): Fix docstring.
25485 (Ffontset_info): Make it backward compatible. New arg ALL.
25486
254872008-02-01 Kim F. Storm <storm@cua.dk>
25488
25489 * process.c (read_process_output): Grow decoding_buf when needed;
25490 this could cause a crash in allocate_string and compact_small_strings.
25491
254922008-02-01 Kenichi Handa <handa@m17n.org>
25493
25494 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25495
254962008-02-01 Kenichi Handa <handa@m17n.org>
25497
25498 * coding.c (setup_coding_system): Set coding->common_flags
25499 correctly for raw-text.
25500 (consume_chars): On encoding unibyte text by raw-text, don't check
25501 multibyte form.
25502 (encode_coding): On encoding by raw-text, never use translation tables.
25503
25504 * fileio.c (e_write): Short cut for the case of no encoding.
25505
255062008-02-01 Kenichi Handa <handa@m17n.org>
25507
25508 * coding.c (detect_coding, detect_coding_system): Delete unused
25509 variables.
25510
255112008-02-01 Kenichi Handa <handa@m17n.org>
25512
25513 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25514 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25515
255162008-02-01 Kenichi Handa <handa@m17n.org>
25517
bba3e508
SM
25518 * coding.c (Ffind_coding_systems_region_internal):
25519 Include raw-text and no-conversion in the result.
aac0c6e3
MR
25520
255212008-02-01 Kenichi Handa <handa@m17n.org>
25522
25523 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25524 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25525 FONT_DEF.
25526 (font_def_arg, add_arg, from_arg, to_arg): New args.
25527 (set_fontset_font): Change argument.
25528 (Fset_fontset_font): Fix for the case that TARGET is a script
25529 name and charset name.
25530 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25531
255322008-02-01 Kenichi Handa <handa@m17n.org>
25533
25534 * fontset.c (fontset_font): Rename from fontset_face. Change return
25535 value.
25536 (face_suitable_for_char_p, face_for_char): Adjust for the change
25537 of fontset_font.
25538 (make_fontset_for_ascii_face): Fix setting of the fontset element
25539 for ASCII.
25540 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25541 to get a font name.
25542 (Ffontset_info): Adjust for the change of fontset_font.
25543
25544 * coding.c (emacs_mule_char): Check invalid code more rigidly.
25545
25546 * character.h (LEADING_CODE_LATIN_1_MIN)
25547 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
25548
255492008-02-01 Kenichi Handa <handa@m17n.org>
25550
25551 * editfns.c (check_translation): New function.
25552 (Ftranslate_region_internal): Handle M:N mapping.
25553
255542008-02-01 Kenichi Handa <handa@m17n.org>
25555
25556 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
25557
255582008-02-01 Kenichi Handa <handa@m17n.org>
25559
25560 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
25561 goto invalid_code.
25562 (decode_coding_iso_2022): Fix handling of invalid designation.
25563
25564 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
25565 after calling code_conversion_save.
25566
255672008-02-01 Kenichi Handa <handa@m17n.org>
25568
25569 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
25570
25571 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
25572
25573 * fontset.c: Include "intervals.h".
25574 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
25575 (free_face_fontset, new_fontset_from_font_name):
25576 Fix Lisp_Object/int mixup.
aac0c6e3
MR
25577
25578 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
25579
25580 * coding.c: Add many prototypes for static functions.
25581 (get_translation_table): Allow max_lookup to be NULL.
25582 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
25583 (Funencodable_char_position, Fcheck_coding_systems_region):
25584 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
25585
255862008-02-01 Kenichi Handa <handa@m17n.org>
25587
25588 * coding.c (get_translation_table): Declare it as Lisp_Object.
25589 (LOOKUP_TRANSLATION_TABLE): New macro.
25590 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
25591 instead of CHAR_TABLE_REF.
25592
255932008-02-01 Kenichi Handa <handa@m17n.org>
25594
25595 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
25596 annotation data format.
25597 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
25598 Change arguments FROM and TO to single argument NCHARS. Change caller.
25599 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
25600 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25601 (decode_coding_ccl, decode_coding_charset): Pay attention to
25602 coding->charbuf_used.
25603 (get_translation): New function.
25604 (produce_chars): New arguments translation_table and last_block.
25605 Translate characters here. Return number of carryover chars.
25606 Change caller.
25607 (produce_composition): New argument pos. Change caller.
25608 Adjust for the change of annotation data format.
25609 (produce_charset, produce_annotation): Likewise.
25610 (decode_coding, encode_coding): Don't call translate_chars.
25611 (consume_chars): New arg translation_table. Change caller.
25612 (translate_chars): Delete.
25613 (syms_of_coding): Make translation-table's number of extra slots 2.
25614
256152008-02-01 Kenichi Handa <handa@m17n.org>
25616
25617 * search.c (simple_search): Fix setting this_pos_byte in backward
25618 search.
25619
25620 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
25621 byte sequence.
25622 (detect_coding_ccl): Fix setting of the variable valids.
25623
256242008-02-01 Kenichi Handa <handa@m17n.org>
25625
25626 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
25627
25628 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
25629
25630 * editfns.c (Ftranslate_region_internal): Rename from
25631 Ftranslate_region. Accept a char-table in TABLE.
25632 (syms_of_editfns): Defsubr Stranslate_region_internal.
25633
25634 * xfaces.c (set_lface_from_font_name): If a font is specified for
25635 a frame, generate a fontset from the font.
25636 (build_scalable_font_name): If the scalable font is requested for
25637 a specific size, don't change that size.
25638 (try_font_list): Try a scalable font also in the case that a
25639 pattern string is specified.
25640
256412008-02-01 Kenichi Handa <handa@m17n.org>
25642
25643 * xfaces.c (Fface_font): New optional arg CHARACTER.
25644
256452008-02-01 Kenichi Handa <handa@m17n.org>
25646
25647 * charset.h (CHARSET_OFFSET): New macro.
25648
256492008-02-01 Kenichi Handa <handa@m17n.org>
25650
25651 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
25652
25653 * fontset.c (fontset_face): Handle the case that repertory is a
25654 char-table.
25655 (find_font_encoding): Return nil for unknown encoding.
25656 (Fset_fontset_font): Ignore a font of unknown encoding.
25657
256582008-02-01 Kenichi Handa <handa@m17n.org>
25659
25660 * keymap.c (describe_vector): Handle default value of a char table.
25661
25662 * fontset.c (fontset_face): Handle fallback fonts correctly.
25663 (Ffontset_info): Return infomation about fallback fonts.
25664
256652008-02-01 Kenichi Handa <handa@m17n.org>
25666
25667 * fontset.c (FONTSET_DEFAULT): New macro.
25668 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
25669 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
25670 the case that it is nil.
25671 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
25672 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
25673
25674 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
25675 subset or superset.
25676
256772008-02-01 Kenichi Handa <handa@m17n.org>
25678
25679 * emacs.c (main): Call init_charset after syms_of_XXX.
25680
25681 * charset.c (Vcharset_map_directory): Delete.
25682 (Vcharset_map_path): New variable.
25683 (load_charset_map_from_file): Use Vcharset_map_path instead.
25684 (init_charset): Initialize Vcharset_map_path.
25685 (syms_of_charset): Delete declaration of "charset-map-directory",
25686 add declaration of "charset-map-path".
25687
256882008-02-01 Kenichi Handa <handa@m17n.org>
25689
25690 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
25691 ASCII only string.
25692
25693 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
25694
25695 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
25696 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
25697
256982008-02-01 Kenichi Handa <handa@m17n.org>
25699
25700 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
25701
25702 * coding.c (QCmnemonic, QCdefalut_char)
25703 (QCdecode_translation_table, QCencode_translation_table)
25704 (QCpost_read_conversion, QCpre_write_conversion): New variables.
25705 (get_translation_table): Return a list of translation tables if
25706 necessary.
25707 (decode_coding): Call get_translation_table with ENCODEP 0.
25708 (char_encodable_p): If translation_table is non-nil, always call
25709 translate_char.
25710 (Fdefine_coding_system_internal): Accept list of translation
25711 tables as :encode-translation-table and :decode-translation-table.
25712 (Fcoding_system_put): New function.
bba3e508
SM
25713 (syms_of_coding): Declare new symbols.
25714 Defsubr Scoding_system_put.
aac0c6e3
MR
25715 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
25716 typically JISX0212.
25717
25718 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
25719 when the charset is superset type.
25720
25721 * character.c (translate_char): Accept list of translation tables.
25722
257232008-02-01 Kenichi Handa <handa@m17n.org>
25724
25725 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
25726 (CODING_ATTR_TRANS_TBL): New macro.
25727
25728 * coding.c (get_translation_table): New function.
25729 (translate_chars): Fix the bug of skipping annotation data.
25730 (decode_coding, encode_coding): Utilize get_translation_table.
25731 (char_encodable_p, Funencodable_char_position): Translate char if
25732 necessary.
25733 (Ffind_coding_systems_region_internal)
25734 (Fcheck_coding_systems_region): Setup translation table for encode
25735 in a coding system attribute vector in advance.
25736 (Fdefine_coding_system_internal): Allow a symbol as translation
25737 table. For shift-jis type coding system, allow 4th charset.
25738
257392008-02-01 Kenichi Handa <handa@m17n.org>
25740
25741 * coding.c (decode_coding_sjis): Check the first byte rigidly.
25742
25743 * xdisp.c (get_next_display_element): Pass -1 as POS to
25744 FACE_FOR_CHAR if displaying a C-string.
25745
257462008-02-01 Kenichi Handa <handa@m17n.org>
25747
25748 * composite.c (get_composition_id): Handle xoff and yoff in a
25749 composition rule.
25750
25751 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25752 (struct composition): New member lbearing and rbearing.
25753
25754 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25755 (x_get_glyph_overhangs): Handle a composition glyph.
25756 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25757
25758 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25759 composition glyph.
25760
257612008-02-01 Kenichi Handa <handa@m17n.org>
25762
25763 * print.c: Include charset.h.
25764 (Vprint_charset_text_property): New variable.
25765 (Qdefault): Extern it.
25766 (PRINT_STRING_NON_CHARSET_FOUND)
25767 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25768 (print_check_string_result): New variable.
25769 (print_check_string_charset_prop): New function.
25770 (print_prune_charset_plist): New variable.
25771 (print_prune_string_charset): New function.
25772 (print_object): Call print_prune_string_charset if
25773 Vprint_charset_text_property is not t.
25774 (print_interval): Print nothing if interval->plist is nil.
25775 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25776 variable. Init and staticpro print_prune_charset_plist.
25777
257782008-02-01 Kenichi Handa <handa@m17n.org>
25779
25780 * fontset.c (new_fontset_from_font_name): Use the specified font
25781 for all characters in the new fontset.
25782
25783 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25784 OBJECT args.
25785
25786 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
25787 OBJECT args for composition too.
25788
25789 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25790 OBJECT args.
25791
257922008-02-01 Kenichi Handa <handa@m17n.org>
25793
25794 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
25795
25796 * fontset.c (reorder_font_vector): Adjust for the change of
25797 FONT_DEF format.
25798 (fontset_face): New arg id. Change caller.
25799 (face_for_char): New args pos and object.
25800 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
25801 (fs_query_fontset): Check NAME by Fassoc too.
25802 (Fset_fontset_font): Allow non-XLFD font name.
25803 (Ffontset_info): Adjust for the change of FONT_DEF format.
25804
25805 * fontset.h (face_for_char): Adjust prototype.
25806
25807 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
25808 (append_space, extend_face_to_end_of_line)
25809 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25810 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
25811
25812 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
25813 POS and OBJECT args.
25814
25815 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
25816 POS and OBJECT args.
25817
258182008-02-01 Jason Rumney <jasonr@gnu.org>
25819
25820 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
25821 of GlobalAlloc'ed memory.
25822
258232008-02-01 Kenichi Handa <handa@m17n.org>
25824
25825 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
25826
25827 * charset.h (charset_table_used): Delete extern.
25828
25829 * charset.c (charset_table_used): Make it static.
25830 (map_charset_chars): Fix args to c_function with.
25831
25832 * chartab.c (map_sub_char_table_for_charset): Fix args to
25833 c_function with.
25834
bba3e508
SM
25835 * coding.h (enum coding_result_code):
25836 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
25837
25838 * coding.c (Qinsufficient_source, Qinconsistent_eol)
25839 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
25840 (Vlast_code_conversion_error): New variables.
25841 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
25842 (ONE_MORE_BYTE): Record error if any instead of signaling an
25843 error. If non-ASCII multibyte char is found, return the negative
25844 value of the code. All callers changed to check it.
25845 (ONE_MORE_BYTE_NO_CHECK): Likewise.
25846 (record_conversion_result): New function. Change all codes setting
25847 coding->result to call this function.
25848 (detect_coding_utf_8, decode_coding_utf_8)
25849 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
25850 Don't use the local variable incomplete.
25851 (emacs_mule_char): Change the second arg to `const'.
25852 (decode_coding): Fix of flushing out unprocessed data.
25853 (make_conversion_work_buffer): Fix making of a work buffer.
25854 (decode_coding_object): Return coding->dst_object.
25855
25856 * fontset.c (set_fontset_font): Fix args.
25857
25858 * lisp.h (CHARACTERBITS): Define as 22.
25859
25860 * process.c (send_process): Be sure to set coding->src_multibyte.
25861
25862 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
25863
258642008-02-01 Kenichi Handa <handa@m17n.org>
25865
25866 * xdisp.c (handle_auto_composed_prop): Give limit to
25867 Fnext_single_char_property_change.
25868
258692008-02-01 Kenichi Handa <handa@m17n.org>
25870
25871 * composite.c (syms_of_composite): Don't make the composition hash
25872 table weak.
25873
25874 * fontset.c (Fset_fontset_font): Fix docstring.
25875
25876 * lisp.h (detect_coding_system): Adjust prototype.
25877
25878 * fileio.c (kill_workbuf_unwind): Delete this function.
25879 (Finsert_file_contents): Adjust the call of detect_coding_system.
25880 Get conversion_buffer by code_conversion_save. Use the macro
25881 CODING_MAY_REQUIRE_DECODING. After decoding, update
25882 coding_system.
25883
25884 * coding.h (make_conversion_work_buffer): Delete extern.
25885 (code_conversion_save): Extern it.
25886
25887 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25888 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25889 (decode_coding_utf_8): Don't do eol converion.
25890 (detect_coding_utf_16): Check coding->src_chars, not
25891 coding->src_bytes. Add heuristics for those that have no signature.
25892 (decode_coding_emacs_mule, decode_coding_iso_2022)
25893 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25894 Don't do eol converion.
25895 (adjust_coding_eol_type): Return a new coding system.
25896 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25897 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25898 each change.
25899 (decode_coding): Pay attention to undo_list. Do eol conversion for
25900 all types of coding-systems (if necessary).
25901 (Vcode_conversion_work_buf_list): Delete it.
25902 (Vcode_conversion_reused_workbuf): Rename from
25903 Vcode_conversion_reused_work_buf.
25904 (Vcode_conversion_workbuf_name): New variable.
25905 (reused_workbuf_in_use): New variable.
25906 (make_conversion_work_buffer): Delete the arg DEPTH.
25907 (code_conversion_restore): Change argument to cons.
25908 (code_conversion_save): Delete the argument BUFFER. Change callers.
25909 (detect_coding_system): New argument src_chars. Change callers.
25910 Fix for utf-16 detection.
25911 (init_coding_once): Don't use ISO_carriage_return.
25912 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25913 reused_workbuf_in_use.
25914
259152008-02-01 Kenichi Handa <handa@m17n.org>
25916
25917 * keymap.c (store_in_keymap): Pay attention to the case that idx
25918 is a cons specifying a character range.
25919
259202008-02-01 Kenichi Handa <handa@m17n.org>
25921
25922 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25923 HANDLED_RECOMPUTE_PROPS.
25924
25925 * coding.c (Fdefine_coding_system_internal): Fix checking of
25926 ascii compatibility.
25927
259282008-02-01 Kenichi Handa <handa@m17n.org>
25929
25930 * charset.c (find_charsets_in_text): Delete unused locale variable.
25931 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25932
25933 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25934 Resync charset_list to Vemacs_mule_charset_list.
25935
25936 * keymap.c (store_in_keymap): Pay attention to the case that idx
25937 is a cons specifying a character range.
25938
259392008-02-01 Kenichi Handa <handa@m17n.org>
25940
25941 * composite.c (update_compositions): Bind inhibit-read-only, etc
25942 to t before calling remove-list-of-text-properties.
25943
25944 * print.c (print_object): Always print ASCII chars as is.
25945
259462008-02-01 Kenichi Handa <handa@m17n.org>
25947
25948 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25949
25950 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25951 is a char table.
25952
259532008-02-01 Kenichi Handa <handa@m17n.org>
25954
25955 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
25956
259572008-02-01 Kenichi Handa <handa@m17n.org>
25958
25959 * xfaces.c (set_lface_from_font_name): Fix for the case that
25960 FONTNAME is not fontset name.
25961
259622008-02-01 Kenichi Handa <handa@m17n.org>
25963
25964 * fns.c (base64_encode_1): Fix previous change.
25965
259662008-02-01 Kenichi Handa <handa@m17n.org>
25967
25968 * fontset.c (set_fontset_font): New function.
25969 (Fset_fontset_font): If a font is specified for a charset, use
25970 map_charset_chars to store the font spec in a fontset.
25971
259722008-02-01 Kenichi Handa <handa@m17n.org>
25973
25974 * fontset.c (fontset_face): Create a fallback fontset on demand.
25975 (make_fontset): Don't create a fallback fontset here.
25976 (free_face_fontset): Free a fallback fontset (if any) too.
25977 (n_auto_fontsets): Delete this variable.
25978 (auto_fontset_alist): New variable.
25979 (new_fontset_from_font_name): Check auto_fontset_alist.
25980 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
25981 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
25982 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
25983 Defsubr Sfontset_list_all.
25984
259852008-02-01 Kenichi Handa <handa@m17n.org>
25986
25987 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
25988
259892008-02-01 Kenichi Handa <handa@m17n.org>
25990
25991 * fontset.c (Fnew_fontset): Check NAME more rigidly.
25992
259932008-02-01 Kenichi Handa <handa@m17n.org>
25994
25995 * editfns.c (Fgoto_char): Fix docstring.
25996
259972008-02-01 Kenichi Handa <handa@m17n.org>
25998
25999 * insdel.c (insert_from_gap): Adjust intervals correctly.
26000
260012008-02-01 Jason Rumney <jasonr@gnu.org>
26002
26003 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26004 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26005 (w32_initialize): Try to load it.
26006 (x_get_font_repertory): Use it if available.
26007 (w32_encode_char): Add shortcut for unicode output.
26008
26009 * w32fns.c (w32_load_system_font): Default charset to -1.
26010 (x_to_w32_charset): Match all fonts for unicode.
26011 (w32_to_x_charset): New parameter matching. Don't return partial
26012 or wildcard charsets.
26013 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26014 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26015 (w32_to_x_font): Match charset to real charset.
26016 (enum_font_cb2): Always list unicode versions.
26017
26018 * makefile.w32-in (temacs): Increase EMHEAP.
26019
260202008-02-01 Jason Rumney <jasonr@gnu.org>
26021
26022 * w32term.c (w32_encode_char): New charset parameter.
26023 font_info.encoding becomes encoding_type.
26024 (x_get_font_repertory): New function. Warning: stub only!
26025 (x_new_font): Return quickly if font already set.
26026 (x_new_fontset): fontsetname parameter is Lisp_Object.
26027 Use new fs_query_fontset. Try new_fontset_from_font_name.
26028 Use fontset_name for return value.
26029
26030 * w32term.h: Declare x_get_font_repertory.
26031
26032 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26033 place of find_charset_in_text. Use encode_coding_object in place
26034 of encode_coding.
26035 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26036 decode_coding.
26037
26038 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26039 of x_new_fontset.
26040 (w32_load_system_font): Initialize charset as unicode.
26041 font_info.encoding becomes encoding_type.
26042 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26043 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26044 (syms_of_w32fns): Set get_font_repertory_func.
26045
26046 * w32console.c: Include character.h. Use terminal_encode_buffer
26047 from term.c.
bba3e508
SM
26048 (write_glyphs): Use new version of encode_terminal_code.
26049 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
26050
26051 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26052 encoding becomes encoding_type.
26053
26054 * term.c (terminal_encode_buffer): Make externally visible.
26055
26056 * makefile.w32-in: Add character.h dependancies.
26057 (character.o, chartab.o): New targets.
26058
260592008-02-01 Kenichi Handa <handa@m17n.org>
26060
26061 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26062 CODING_ID_EOL_TYPE.
26063
260642008-02-01 Andreas Schwab <schwab@suse.de>
26065
26066 * coding.c (produce_chars): Revert last change.
26067
260682008-02-01 Kenichi Handa <handa@m17n.org>
26069
26070 * charset.h (charset_unicode): Extern it.
26071
26072 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
26073 (find_charsets_in_text): Change format of the arc CHARSETS.
26074 New arg MULTIBYTE.
aac0c6e3
MR
26075 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26076 change of find_charsets_in_text.
26077 (Fsplit_char): Fix doc. Never return unknown.
26078
26079 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26080
bba3e508
SM
26081 * coding.c (Fdefine_coding_system_alias):
26082 Update Vcoding_system_list.
aac0c6e3
MR
26083
26084 * fontset.c (load_font_get_repertory): Pay attention to the case
26085 that ENCODING of a font is specified by a char-table.
26086
26087 * xterm.c (x_get_font_repertory): Handle the case that the
26088 encoding of font is other than Unicode.
26089
260902008-02-01 Kenichi Handa <handa@m17n.org>
26091
bba3e508
SM
26092 * term.c (encode_terminal_code): Don't handle glyph-table.
26093 Check if a character is encodable by the terminal coding system.
26094 If not, produces proper number of `?'s. Update
aac0c6e3
MR
26095 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26096 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26097
260982008-02-01 Kenichi Handa <handa@m17n.org>
26099
bba3e508
SM
26100 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26101 New variables.
aac0c6e3
MR
26102 (encode_terminal_code): Change argument. Encode multiple
26103 characters at once. Store the result of encoding in
26104 terminal_encode_buffer.
26105 (write_glyphs, insert_glyphs): Adjust for the change of
26106 encode_terminal_code.
26107 (term_init): Initialize terminal_encode_buffer and
26108 terminal_encode_buf_size.
26109
26110 * coding.c (consume_chars): If coding->src_object is nil, don't
26111 check annotation.
26112
261132008-02-01 Kenichi Handa <handa@m17n.org>
26114
26115 * character.c (char_string): Use ASCII_CHAR_P instead of
26116 SINGLE_BYTE_CHAR_P.
26117
261182008-02-01 Kenichi Handa <handa@m17n.org>
26119
26120 * xdisp.c (handle_auto_composed_prop): Check if the last
26121 characters of auto-composed region is newly composed with the
26122 following characters.
26123 (handle_composition_prop): Fix checking of point being inside
26124 composition.
26125
261262008-02-01 Kenichi Handa <handa@m17n.org>
26127
26128 * fns.c (concat): Don't change multibyteness of the result by
26129 concatenating an 8-bit character.
26130
26131 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26132 multibyteness of the result when newelt is an 8-bit character.
26133
261342008-02-01 Dave Love <fx@gnu.org>
26135
26136 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26137 EMACS_INT.
26138
26139 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26140
26141 * xfaces.c (face_numeric_value): Declare dim size_t.
26142 (Finternal_lisp_face_equal_p): Remove unused f.
26143
26144 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26145 (MATRIX_ROW): Remove unused vars.
26146 (draw_glyphs, x_insert_glyphs, fast_find_position)
26147 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26148 byte/char counts.
26149
26150 * regex.c (regex_compile): Remove unused var.
26151
26152 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26153
26154 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26155 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26156
26157 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26158
26159 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26160
26161 * fileio.c (Fwrite_region): Remove unused var.
26162
26163 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26164 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26165
26166 * composite.c (Fremove_list_of_text_properties): Declare.
26167
26168 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26169 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26170 (coding_inherit_eol_type): Remove unused attrs.
26171 (detect_coding): Cast arg of detect_eol.
26172
26173 * charset.c (syms_of_charset): Remove unused var p.
26174 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26175 byte/char counts.
26176
26177 * casetab.c (set_case_table): Remove unused var.
26178
bba3e508
SM
26179 * window.c (Fdisplay_buffer, Fframe_selected_window):
26180 Remove unused vars.
aac0c6e3
MR
26181
261822008-02-01 Dave Love <fx@gnu.org>
26183
26184 * xterm.c (x_bitmap_mask): Declare.
26185
261862008-02-01 Dave Love <fx@gnu.org>
26187
26188 * xterm.c (x_term_init): Fix type error.
26189
26190 * lisp.h: Add Funibyte_char_to_multibyte.
26191
26192 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26193 (Fset_coding_system_priority): Doc fix.
26194
26195 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26196
26197 * indent.c (check_composition): Make start and end EMACS_INT.
26198
26199 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26200
26201 * xdisp.c (handle_composition_prop, check_point_in_composition):
26202 Make buffer positions EMACS_INT.
26203
26204 * composite.c (find_composition, run_composition_function)
26205 (update_compositions, Ffind_composition_internal): Make buffer
26206 positions EMACS_INT.
26207
bba3e508
SM
26208 * composite.h (find_composition, update_compositions):
26209 Make position args EMACS_INT.
aac0c6e3
MR
26210
26211 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26212
26213 * intervals.c (get_property_and_range):
26214 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26215
26216 * unexalpha.c: Don't include varargs.h.
26217
262182008-02-01 Dave Love <fx@gnu.org>
26219
26220 * coding.h (ENCODE_UTF_8): New.
26221
26222 * Makefile.in (gtkutil.o): Depend on coding.h.
26223
26224 * coding.c (Fset_coding_system_priority): Doc fix.
26225
262262008-02-01 Kenichi Handa <handa@m17n.org>
26227
26228 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26229 the case of auto saving.
26230
262312008-02-01 Andreas Schwab <schwab@suse.de>
26232
bba3e508
SM
26233 * chartab.c (map_char_table, map_char_table_for_charset):
26234 Protect `range' from GC.
aac0c6e3
MR
26235
262362008-02-01 Kenichi Handa <handa@m17n.org>
26237
26238 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26239
262402008-02-01 Kenichi Handa <handa@m17n.org>
26241
26242 * fileio.c (choose_write_coding_system): Return a decided coding system.
26243 (Fwrite_region): Set Vlast_coding_system_used to the return value
26244 of choose_write_coding_system.
26245
262462008-02-01 Kenichi Handa <handa@m17n.org>
26247
26248 * charset.c (Fset_charset_priority): Pay attention to duplicated
26249 arguments.
26250
26251 * coding.c (QCcategory): New variable.
26252 (syms_of_coding): Defsym it. Set all elements of
26253 Vcoding_category_table and their symbol values.
26254 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26255 coding-category-XXX, and coding-category-list.
26256 (Fdefine_coding_system_internal): Add category in the plist.
26257
262582008-02-01 Kenichi Handa <handa@m17n.org>
26259
26260 * callproc.c (Fcall_process): Handle carryover correctly.
26261
26262 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26263 (raw_text_coding_system): Check NILP (coding_system).
26264 (coding_inherit_eol_type): Check NILP (coding_system) and
26265 NILP (parent).
26266 (consume_chars): Fix for the case of raw-text.
26267
26268 * process.c (read_process_output): Handle carryover correctly.
26269
262702008-02-01 Dave Love <fx@gnu.org>
26271
26272 * regex.c (re_search_2): Fix last change.
26273
262742008-02-01 Kenichi Handa <handa@m17n.org>
26275
26276 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26277 target_multibyte. Even in a unibyte case, return a converted
26278 multibyte char.
26279 (GET_CHAR_AFTER): New macro.
26280 (PATFETCH): Translate via multibyte char.
26281 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26282 (SETUP_MULTIBYTE_RANGE): New macro.
26283 (regex_compile): Setup compiled code so that its multibyteness
26284 matches that of a target. Fix the handling of "[X-YZ]" using
26285 SETUP_MULTIBYTE_RANGE.
26286 (analyse_first) <charset>: For filling fastmap for all multibyte
26287 characters, don't check by BASE_LEADING_CODE_P.
26288 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26289 the same as RE_MULTIBYTE_P (bufp) now.
26290 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26291 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26292 (TRANSLATE_VIA_MULTIBYTE): New macro.
26293 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26294 It is the same as RE_MULTIBYTE_P (bufp) now.
26295 <exactn>: Translate via multibyte.
bba3e508
SM
26296 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26297 Don't translate it.
aac0c6e3
MR
26298 <charset, charset_not>: Fetch a character by
26299 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26300 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26301 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26302 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26303 by GET_CHAR_AFTER.
26304 (bcmp_translate): Likewise.
26305
26306 * search.c (compile_pattern): Check the member target_multibyte,
26307 not the member multibyte of buf.
26308
26309 * lread.c (read1): While reading a string, set force_singlebyte
26310 and force_multibyte correctly.
26311
26312 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26313 up of unibyte_to_multibyte_table.
26314
263152008-02-01 Kenichi Handa <handa@m17n.org>
26316
26317 * coding.c (setup_coding_system): If coding has
26318 post-read-conversion or pre-write-conversion, set
26319 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26320 respectively.
26321 (decode_coding_gap): Run post-read-conversion if any.
26322
26323 * fileio.c (Finsert_file_contents): Even if we read into a
26324 unibyte buffer, check if we must decode the result or not.
26325
263262008-02-01 Kenichi Handa <handa@m17n.org>
26327
26328 * coding.c (make_conversion_work_buffer): Change the work buffer
26329 name to the same one as that of Emacs 21.
26330
263312008-02-01 Kenichi Handa <handa@m17n.org>
26332
26333 * coding.h (make_conversion_work_buffer): Adjust prototype.
26334 (code_conversion_restore): Don't extern it.
26335
26336 * coding.c (detected_mask): Delete unused variable.
26337 (decode_coding_iso_2022): Pay attention to the byte sequence of
26338 CTEXT extended segment, and retain those bytes as is.
26339 (decode_coding_ccl): Delete unused variable `valids'.
26340 (setup_coding_system): Delete unused variable `category'.
26341 (consume_chars): Delete unused variable `category'. Make it work
26342 for non-multibyte case.
26343 (make_conversion_work_buffer): Change argument.
26344 (saved_coding): Delete unused variable.
26345 (code_conversion_restore): Don't check saved_coding->destination.
26346 (code_conversion_save): New function.
26347 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26348 instead of record_unwind_protect.
26349 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26350 (detect_coding_system): Delete unused variable `mask'.
26351 (Fdefine_coding_system_internal): Delete unused variable id.
26352
26353 * fileio.c (kill_workbuf_unwind): New function.
26354 (Finsert_file_contents): On replacing, call
26355 make_conversion_work_buffer with correct args, and call
26356 record_unwind_protect with the first arg kill_workbuf_unwind.
26357
26358 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26359
263602008-02-01 Kenichi Handa <handa@m17n.org>
26361
26362 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26363 (fontset_add): Fix for the case that TO is less than TO1.
26364 (Ffontset_info): Don't use fallback fontset on checking the
26365 default fontset.
26366 (dump_fontset): New function for debugging.
26367
26368 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26369 coding_type is Qcharset.
26370
263712008-02-01 Kenichi Handa <handa@m17n.org>
26372
26373 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26374 (map_char_table): Don't inherit the value from the parent on
26375 initializing VAL. Adjust for the above change.
26376
263772008-02-01 Kenichi Handa <handa@m17n.org>
26378
26379 * coding.c (Qsignature, Qendian): Delete these variables.
26380 (syms_of_coding): Don't initialize them.
26381 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26382 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26383 detect_info->found.
26384 (decode_coding_utf_16): Don't detect BOM here.
26385 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26386 is NOT utf_16_without_bom.
26387 (setup_coding_system): For a coding system of type utf-16, check
26388 if the attribute :endian is Qbig or not (not nil or not), and set
26389 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26390 (detect_coding): If coding type is utf-16 and BOM detection is
26391 required, detect it.
26392 (Fdefine_coding_system_internal): For a coding system of type
26393 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26394
263952008-02-01 Kenichi Handa <handa@m17n.org>
26396
26397 * coding.c (coding_set_source): Fix for the case that the current
26398 buffer is different from coding->src_object.
26399 (decode_coding_object): Don't use the conversion work buffer if
26400 DST_OBJECT is a buffer.
26401
264022008-02-01 Dave Love <fx@gnu.org>
26403
26404 * lread.c (read_emacs_mule_char) [len==2]: Index
26405 emacs_mule_charset correctly.
26406
264072008-02-01 Dave Love <fx@gnu.org>
26408
26409 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26410 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26411 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26412 treated specially.)
26413 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26414 (detected_mask): Remove Big5 bits.
26415
264162008-02-01 Kenichi Handa <handa@m17n.org>
26417
26418 The following changes are to make the font rescaling facility
26419 compatible with Emacs 21.
26420
26421 * xfaces.c (Vface_font_rescale_alist): Rename from
26422 Vface_resizing_fonts.
26423 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26424 (font_rescale_ratio): Rename from font_resizing_ratio.
26425 (split_font_name): Set font->rescale_ratio.
26426 (better_font_p): Pay attention to font->rescale_ratio.
26427 (build_scalable_font_name): Likewise. Change RESX, and RESY
26428 fields.
26429 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26430
264312008-02-01 Kenichi Handa <handa@m17n.org>
26432
26433 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26434 (Qutf_16_le): Remove these variables.
26435 (syms_of_coding): Don't DEFSYM them.
26436 (decode_coding_utf_16): Fix handling of BOM.
26437 (encode_coding_utf_16): Fix handling of BOM.
26438
264392008-02-01 Kenichi Handa <handa@m17n.org>
26440
26441 * fileio.c (Finsert_file_contents): On replacing, before decoding
26442 the file into the work buffer, set point of the work buffer to the end.
26443
264442008-02-01 Dave Love <fx@gnu.org>
26445
26446 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26447
264482008-02-01 Dave Love <fx@gnu.org>
26449
26450 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26451 and fix C types.
26452
264532008-02-01 Kenichi Handa <handa@m17n.org>
26454
26455 * xdisp.c (SKIP_GLYPHS): New macro.
26456 (set_cursor_from_row): Pay attention to string display properties.
26457
26458 * category.c (copy_category_entry): Fix for the case that RANGE
26459 is an integer.
26460
26461 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26462
26463 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26464
264652008-02-01 Kenichi Handa <handa@m17n.org>
26466
26467 * charset.c (Fcharset_id_internal): New function.
26468 (syms_of_charset): Defsubr it.
26469
26470 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26471 with the last arg charset_list acquired from coding.
26472 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26473 the attribute coding_attr_ccl_valids.
26474
26475 * coding.h (enum define_coding_ccl_arg_index): Set the first
26476 member coding_arg_ccl_decoder to coding_arg_max.
26477
26478 * ccl.h (ccl_driver): Adjust prototype.
26479
26480 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26481 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 26482 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
26483 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26484 last arg Qnil.
26485
264862008-02-01 Kenichi Handa <handa@m17n.org>
26487
26488 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26489 call encode_char.
26490
26491 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26492
264932008-02-01 Dave Love <fx@gnu.org>
26494
26495 * composite.c (syms_of_composite): Make composition_hash_table weak.
26496
264972008-02-01 Kenichi Handa <handa@m17n.org>
26498
26499 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26500 (font_name_registry): Don't extern them.
26501 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26502
26503 * fontset.h (Qfontset): Don't extern it.
26504 (new_fontset_from_font_name): Extern it.
26505
26506 * fontset.c: Give 8 extra slots to fontset objects.
26507 (Qfontset_info): New variable.
26508 (syms_of_fontset): Defsym it.
26509 (FONTSET_FALLBACK): New macro.
26510 (fontset_face): Try also the default fontset.
26511 (make_fontset): Realize a fallback fontset from the default fontset.
26512 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26513 using split_font_name_into_vector and build_font_name_from_vector.
26514 (Fset_fontset_font): Access the elements of font_spec by enum
26515 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26516 name by using split_font_name_into_vector.
26517 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
26518 generate a proper font name from the fontset name.
26519 Update Vfontset_alias_alist.
aac0c6e3
MR
26520 (n_auto_fontsets): New variable.
26521 (new_fontset_from_font_name): New function.
26522 (Ffont_info): Store the information about fonts generated from the
26523 default fontset in the first extra slot of the returned char-table.
26524
26525 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26526 (font_name_registry): Delete function.
26527 (split_font_name_into_vector): New function.
26528 (build_font_name_from_vector): New function.
26529 (font_list): The argument REGISTRY is now a list of registry names.
26530 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26531 specifies an explicit font name, return the name as is. Make a
26532 list of registy names.
26533
26534 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26535 of x_new_fontset.
26536 (Fx_create_frame): Don't call x_new_fontset here. Just use
26537 x_list_fonts to check the existence of fonts.
26538
26539 * xterm.h (x_new_fontset): Adjust prototype.
26540
26541 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26542 string. Use new_fontset_from_font_name to create a fontset from a
26543 font name.
26544
265452008-02-01 Kenichi Handa <handa@m17n.org>
26546
26547 * syntax.c (Vfind_word_boundary_function_table): New name for
26548 Vnext_word_boundary_function_table.
26549 (find-word-boundary-function-table): New name for
26550 next-word-boundary-function-table.
26551
265522008-02-01 Dave Love <fx@gnu.org>
26553
26554 * Makefile.in: Fix some dependencies.
26555
26556 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
26557 set it to nil before returning.
26558
26559 * composite.c (update_compositions): Fix type error.
26560
26561 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
26562
265632008-02-01 Kenichi Handa <handa@m17n.org>
26564
26565 * xterm.c (x_new_font): Optimize for the case that the font is
26566 already set for the frame.
26567
265682008-02-01 Kenichi Handa <handa@m17n.org>
26569
26570 * chartab.c (char_table_ascii): Check if the char table contents
26571 is sub-char-table or not.
26572 (char_table_set, char_table_set_range): Fix argument to
26573 char_table_ascii.
26574
26575 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
26576 (detect_coding_utf_8, detect_coding_utf_16)
26577 (detect_coding_emacs_mule, detect_coding_iso_2022)
26578 (detect_coding_sjis, detect_coding_big5)
26579 (detect_coding_ccl, detect_coding_charset): Change argument MASK
26580 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
26581 sequence is valid in this coding system. Change callers.
26582 (MAX_ANNOTATION_LENGTH): New macro.
26583 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
26584 (ADD_COMPOSITION_DATA): Change argument. Change callers.
26585 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
26586 (ADD_CHARSET_DATA): New macro.
26587 (emacs_mule_char): New argument ID. Change callers.
26588 (decode_coding_emacs_mule, decode_coding_iso_2022)
26589 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26590 Produce charset annotation data in coding->charbuf.
26591 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
26592 to charset annotation data in coding->charbuf.
26593 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
26594 coding->common_flags if the coding system is iso-2022 based and
26595 uses designation.
26596 (produce_composition): Adjust for the new annotation data format.
26597 (produce_charset): New function.
26598 (produce_annotation): Handle charset annotation.
bba3e508
SM
26599 (handle_composition_annotation, handle_charset_annotation):
26600 New functions.
aac0c6e3
MR
26601 (consume_chars): Handle charset annotation. Utilize the above two
26602 functions.
26603 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
26604 buffer, get the deleted text as a string and set
26605 coding->src_object to that string.
26606 (detect_coding, detect_coding_system): Use the new struct
26607 coding_detection_info.
26608
26609 * coding.h (struct coding_detection_info): New structure.
26610 (struct coding_system): Adjust prototype of the member `detector'.
26611 (CODING_ANNOTATE_CHARSET_MASK): New macro.
26612
266132008-02-01 Kenichi Handa <handa@m17n.org>
26614
26615 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
26616
266172008-02-01 Dave Love <fx@gnu.org>
26618
26619 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
26620 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
26621 to new local and nullify apropos_accumulate before returning.
26622 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
26623
266242008-02-01 Kenichi Handa <handa@m17n.org>
26625
26626 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
26627 correctly.
e3eea1fc 26628
aac0c6e3
MR
266292008-02-01 Dave Love <fx@gnu.org>
26630
26631 * fns.c (Flanginfo): Call synchronize_system_time_locale.
26632
266332008-02-01 Kenichi Handa <handa@m17n.org>
26634
26635 The following changes are to make character composition happen
26636 automatically on displaying.
26637
26638 * Makefile.in (lisp, shortlisp): Add composite.elc.
26639
26640 * composite.h (Qauto_composed, Vauto_composition_function)
26641 (Qauto_composition_function): Extern them.
26642
26643 * composite.c (Vcomposition_function_table)
26644 (Qcomposition_function_table): Delete variables.
26645 (Qauto_composed, Vauto_composition_function)
26646 (Qauto_composition_function): New variables.
26647 (run_composition_function): Don't call
26648 compose-chars-after-function.
26649 (update_compositions): Clear `auto-composed' text property.
26650 (compose_chars_in_text): Delete this function.
26651 (syms_of_composite): Staticpro Qauto_composed and
26652 Qauto_composition_function. Declare Vauto_composition_function as
26653 a Lisp variable.
26654
26655 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
26656
26657 * xdisp.c (it_props): Add an entry for Qauto_composed.
26658 (handle_auto_composed_prop): New function.
26659
26660 * xselect.c (selection_data_to_lisp_data): Don't call
26661 compose_chars_in_text.
26662
266632008-02-01 Dave Love <fx@gnu.org>
26664
26665 * keyboard.c (read_char): Modify checking around use of
26666 Vkeyboard_translate_table.
26667
26668 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26669 and fix C types.
26670
266712008-02-01 Kenichi Handa <handa@m17n.org>
26672
26673 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
26674 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26675 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
26676 the case that the last byte is '\r' correctly.
26677 (decode_coding): Flush out the unprocessed data correctly.
26678 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
26679
266802008-02-01 Dave Love <fx@gnu.org>
26681
26682 * xterm.c (XTread_socket): Fix changes for defined keysyms.
26683 Add XK_ISO... case.
26684 (xaw_scroll_callback): Revert last change.
26685
266862008-02-01 Kenichi Handa <handa@m17n.org>
26687
26688 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
26689
266902008-02-01 Kenichi Handa <handa@m17n.org>
26691
26692 * xfaces.c (Vface_resizing_fonts): New variable.
26693 (struct font_name): New member `resizing_ratio'.
26694 (font_resizing_ratio): New function.
26695 (split_font_name): Set font->resizing_ratio.
26696 (better_font_p): Pay attention to font->resizing_ratio.
26697 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
26698 RESX, and RESY fields.
26699 (try_alternative_families): Try scalable fonts if
26700 Vscalable_fonts_allowed is not Qt.
26701 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
26702
267032008-02-01 Dave Love <fx@gnu.org>
26704
26705 * xterm.c (xaw_scroll_callback): Cast correctly.
26706
267072008-02-01 Dave Love <fx@gnu.org>
26708
26709 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
26710 (lispy_kana_keys): Comment out.
26711 (make_lispy_event) [XK_kana_A]: Comment out.
26712
26713 * xterm.c (xaw_scroll_callback): Cast call_data.
26714 (XTread_socket): Deal with ASCII keysyms.
26715 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
26716
267172008-02-01 Dave Love <fx@gnu.org>
26718
26719 * xterm.c (Vx_keysym_table): New.
26720 (syms_of_xterm): Initialize it.
26721 (XTread_socket): Use it.
26722 From head: Eliminate incorrect optimization that tried to avoid
26723 decoding the output of X*LookupString.
26724 (x_get_font_repertory): Delete charset declaration.
26725
267262008-02-01 Kenichi Handa <handa@m17n.org>
26727
26728 * coding.c (detect_coding_charset): If only ASCII bytes are found,
26729 return 0.
bba3e508
SM
26730 (Fdefine_coding_system_internal):
26731 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
26732
267332008-02-01 Dave Love <fx@gnu.org>
26734
26735 * coding.c (Fcheck_coding_system): Doc fix.
26736
26737 * editfns.c (Finsert_byte): Return a proper value.
26738
267392008-02-01 Kenichi Handa <handa@m17n.org>
26740
bba3e508
SM
26741 * coding.c (decode_coding): Fix args to translate_chars.
26742 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
26743 (encode_coding): Fix args to translate_chars. Pay attention to
26744 Vstandard_translation_table_for_encode.
26745
26746 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26747 SINGLE_BYTE_CHAR_P.
26748
26749 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26750 not by SINGLE_BYTE_CHAR_P.
26751
26752 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26753 SINGLE_BYTE_CHAR_P.
26754
26755 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26756 SINGLE_BYTE_CHAR_P.
26757
26758 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26759 by SINGLE_BYTE_CHAR_P.
26760
26761 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26762 SINGLE_BYTE_CHAR_P.
26763
267642008-02-01 Dave Love <fx@gnu.org>
26765
26766 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26767
267682008-02-01 Dave Love <fx@gnu.org>
26769
26770 * fns.c (Flanginfo): Fix typo.
26771
26772 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26773
267742008-02-01 Kenichi Handa <handa@m17n.org>
26775
26776 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26777 (detect_coding_emacs_mule, detect_coding_iso_2022)
26778 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26779 incomplete byte sequence. Don't update *mask when correctly detected.
26780 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
26781 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
26782 (detect_coding, detect_coding_system): Adjust for the changes above.
26783
267842008-02-01 Kenichi Handa <handa@m17n.org>
26785
26786 * character.c (char_string): Rename from
26787 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
26788 (string_char): Rename from string_char.
26789
26790 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
26791 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
26792 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
26793 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
26794
267952008-02-01 Dave Love <fx@gnu.org>
26796
26797 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
26798
267992008-02-01 Kenichi Handa <handa@m17n.org>
26800
26801 * keymap.c (push_key_description): Pay attention to force_multibyte.
26802
26803 * regex.c (re_search_2): Fix for the case of unibyte buffer.
26804
268052008-02-01 Dave Love <fx@gnu.org>
26806
26807 * charset.c (define_charset_internal): Rename `supprementary'.
26808
26809 * Makefile.in (lisp, shortlisp): Remove latin-N.
26810
268112008-02-01 Dave Love <fx@gnu.org>
26812
26813 * xfns.c (x_window, x_window): Use use_xim.
26814
26815 * xterm.c (use_xim): Initialize.
26816 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
26817 (x_term_init): Maybe set use_xim.
26818
26819 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
26820
268212008-02-01 Kenichi Handa <handa@m17n.org>
26822
26823 * search.c (search_buffer): Fix case-fold-search of multibyte
26824 characters.
26825 (boyer_moore): Rename the last argument to char_high_bits.
26826
268272008-02-01 Kenichi Handa <handa@m17n.org>
26828
26829 * xdisp.c (display_string): Fix for the case of zero width glyph.
26830
26831 * xfns.c (x_set_font): Change the error message of the case that
26832 x_new_fontset returns Qt.
26833
26834 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
26835 (Finternal_set_lisp_face_attribute): Use signal_error for the
26836 error of invalid fontset.
26837
26838 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
26839 fontset, return Qt.
26840
268412008-02-01 Dave Love <fx@gnu.org>
26842
26843 * unexelf.c (unexec): Make .got handling not SGI-specific.
26844
26845 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
26846
26847 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
26848
26849 * keyboard.c (read_key_sequence): Fix type error.
26850
bba3e508
SM
26851 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
26852 Fix type error.
aac0c6e3
MR
26853
26854 * fontset.c (fontset_add): Return Lisp_Object.
26855
268562008-02-01 Dave Love <fx@gnu.org>
26857
26858 * charset.h (charset_ordered_list_tick): Declare extern.
26859
268602008-02-01 Kenichi Handa <handa@m17n.org>
26861
26862 The following changes (and some of 2008-02-01 changes of mine) are
26863 for handling syntax, category, and case conversion for unibyte
26864 characters by converting them to multibyte on the fly. With these
26865 changes, we don't have to setup syntax and case tables for unibyte
26866 characters in each language environment.
26867
26868 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
26869 multibyte if necessary.
26870
26871 * bytecode.c (Fbyte_code): Likewise.
26872
26873 * character.h (LEADING_CODE_LATIN_1_MIN)
26874 (LEADING_CODE_LATIN_1_MAX): New macros.
26875 (unibyte_to_multibyte_table): Extern it.
26876 (unibyte_char_to_multibyte): New macro.
26877 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
26878 (CHAR_LEADING_CODE): New macro.
26879 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26880
26881 * character.c (unibyte_to_multibyte_table): New variable.
26882 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26883 (multibyte_char_to_unibyte): If C is an eight-bit character,
26884 convert it to the corresponding byte value.
26885
26886 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26887 not 1, signals an error. Update the elements of
26888 unibyte_to_multibyte_table.
26889 (init_charset_once): Initialize unibyte_to_multibyte_table.
26890 (syms_of_charset): Define the charset `iso-8859-1'.
26891
26892 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26893 as is without converting it to unibyte. In a unibyte buffer,
26894 convert C to multibyte before checking the syntax.
26895
26896 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26897
26898 * minibuf.c (Fminibuffer_complete_word): Use the macro
26899 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26900
26901 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26902
26903 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
26904 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26905 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
26906 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26907 non-emacs case.
26908 (PATFETCH): Convert an eight-bit char to multibyte.
26909 (HANDLE_UNIBYTE_RANGE): New macro.
26910 (regex_compile): Setup the compiled pattern for multibyte chars
26911 even if the given regex string is unibyte. Use PATFETCH_RAW
26912 instead of PATFETCH in many places. To handle `charset'
26913 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26914 only for ASCII chars.
26915 (analyse_first) <exactn>: Simplify because the compiled pattern
26916 is multibyte.
26917 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26918 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26919 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26920 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26921 multibyte always 1.
26922 (re_search_2): In emacs, set the locale variable multibyte to 1,
26923 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
26924 to decide the multibyteness of STR1 and STR2.
26925 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
26926 before translating and checking fastmap.
26927 (TARGET_CHAR_AND_LENGTH): New macro.
26928 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
26929 to 1, otherwise to 0. New local variable target_multibyte.
26930 Check it to decide the multibyteness of STR1 and STR2.
26931 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
26932 <charset, charset_not>: If multibyte is nonzero, check fastmap
26933 only for ASCII chars. Call bcmp_translate with
26934 target_multibyte, not with multibyte.
26935 <begline>: Declare the local variable C as `unsigned'.
26936 (bcmp_translate): Change the last arg name to target_multibyte.
26937
26938 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26939 the regexp pattern and the matching target. Set cp->buf.multibyte
26940 to the multibyteness of the regexp pattern. Set
26941 cp->but.target_multibyte to the multibyteness of the matching target.
26942 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26943 FETCH_STRING_CHAR_ADVANCE.
26944 (Freplace_match): Convert unibyte chars to multibyte.
26945
26946 * syntax.c (char_quoted, back_comment, scan_words)
26947 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26948 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26949 unibyte chars to multibyte.
26950 (skip_chars): Delete the arg syntaxp, and move the code for
26951 handling syntaxes to skip_syntaxes. Change callers.
26952 Fix the case that the multibyteness of STRING and the current
26953 buffer doesn't match.
26954 (skip_syntaxes): New function.
26955 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
26956 SINGLE_BYTE_CHAR_P.
26957
269582008-02-01 Kenichi Handa <handa@m17n.org>
26959
26960 * xfaces.c (QCfontset): New variable.
26961 (LFACE_FONTSET): New macro.
26962 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
26963 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
26964 (Finternal_set_lisp_face_attribute)
26965 (Finternal_get_lisp_face_attribute): Handle QCfontset.
26966 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
26967 check also LFACE_FONTSET_INDEX.
26968 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
26969 attrs[LFACE_FONT_INDEX].
26970 (syms_of_xfaces): Intern and staticpro QCfontset.
26971
26972 * dispextern.h (enum lface_attribute_index): New member
26973 LFACE_FONTSET_INDEX.
26974
26975 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
26976
269772008-02-01 Kenichi Handa <handa@m17n.org>
26978
26979 * coding.c (coding_set_destination): Fix coding->destination for
26980 the case converting a region.
26981 (encode_coding_utf_8): Encode eight-bit chars as single byte.
26982 (encode_coding_object): Fix coding->dst_pos and
26983 coding->dst_pos_byte for the case converting a region.
26984
26985 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
26986
26987 * character.h (BYTE8_STRING): New macro.
26988
26989 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
26990
269912008-02-01 Kenichi Handa <handa@m17n.org>
26992
26993 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
26994 characters by octal form.
26995
26996 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
26997
26998 * buffer.h (_fetch_multibyte_char_len): Delete extern.
26999 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27000 _fetch_multibyte_char_len.
27001 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27002
27003 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27004
27005 * casefiddle.c (casify_object): Simplify. Handle the case that
27006 the case conversion change the byte length.
27007 (casify_region): Likewise.
27008
27009 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27010
27011 * character.c (_fetch_multibyte_char_len): Delete this variable.
27012 (syms_of_character): Setup Vprintable_chars.
27013
27014 * editfns.c (Fchar_equal): Fix for the unibyte case.
27015 (Finsert_byte): New function.
27016 (syms_of_editfns): Defsubr it.
27017
27018 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27019 of direct code 0x3ffff.
27020
27021 * search.c (Freplace_match): Fix for the unibyte case.
27022
270232008-02-01 Kenichi Handa <handa@m17n.org>
27024
27025 * lread.c (safe_to_load_p): Fix the logic.
27026
27027 * syntax.c (scan_words): Don't treat characters belonging to
27028 different scripts as constituting a word.
27029
27030 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27031
27032 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27033
27034 * emacs.c (main): In the case of --unibyte, instead of aborting on
27035 finding non-empty buffer, make it unibyte.
27036
270372008-02-01 Kenichi Handa <handa@m17n.org>
27038
27039 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27040 to create a fontset.
27041
270422008-02-01 Dave Love <fx@gnu.org>
27043
27044 * character.c (Funibyte_char_to_multibyte): Doc fix.
27045
27046 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27047
270482008-02-01 Kenichi Handa <handa@m17n.org>
27049
27050 * fontset.c (fontset_add): Make the type `int'.
27051 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27052
27053 * character.c (unibyte_char_to_multibyte)
27054 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27055 charset_unibyte, not charset_primary.
27056
27057 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27058
27059 * charset.c (charset_unibyte): Rename from charset_primary.
27060 (Funibyte_charset): Rename from Fprimary_charset.
27061 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27062 (syms_of_charset): Adjust for the above changes.
27063
27064 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27065 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27066 it->multibyte_p is zero.
27067
27068 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27069 Delete extern.
27070
270712008-02-01 Kenichi Handa <handa@m17n.org>
27072
27073 * coding.c (Fdefine_coding_system_internal): Fix category setting
27074 for a coding system of type iso-2022.
27075
270762008-02-01 Kenichi Handa <handa@m17n.org>
27077
27078 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27079
270802008-02-01 Kenichi Handa <handa@m17n.org>
27081
27082 * syntax.c (Vnext_word_boundary_function_table): New variable.
27083 (next-word-boundary-function-table): Declare it as a Lisp variable
27084 in syms_of_syntax.
27085 (scan_words): Call functions in Vnext_word_boundary_function_table
27086 if any.
27087
27088 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27089
27090 * fontset.c (fs_load_font): If fontp->charset is not negative,
27091 return fontp without setting its members.
27092
270932008-02-01 Dave Love <fx@gnu.org>
27094
27095 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27096
27097 * m/sparc.h (HAVE_ALLOCA): Delete.
27098
27099 * s/irix6-5.h: Don't include strings.h.
27100 (bcopy, bzero, bcmp): Don't undef.
27101
27102 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27103
27104 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27105 (TIOCSIGSEND): Don't test IRIX6.
27106 (bcopy, bzero, bcmp): Define conditionally.
27107
271082008-02-01 Kenichi Handa <handa@m17n.org>
27109
27110 * buffer.c (Qas, Qmake, Qto): New variables.
27111 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27112 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27113
27114 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27115 we are inserting a process output into a multibyte buffer.
27116
27117 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27118 multibyte_char_to_unibyte.
27119
27120 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27121 by the primary charset, make it eight-bit char.
27122 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27123
27124 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27125 (charset_8_bit__control, charset_8_bit_graphic)
27126 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27127 (define_charset_internal): New function.
27128 (syms_of_charset): Call define_charset_internal for pre-defined
27129 charsets.
27130
27131 * charset.h (charset_8_bit): Extern it.
27132
27133 * coding.c (make_conversion_work_buffer): Adjust for the change
27134 of Fset_buffer_multibyte.
27135 (encode_coding_raw_text): Increment p0 in the loop.
27136
27137 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27138
bba3e508
SM
27139 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27140 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
27141
27142 * fns.c (Fstring_to_multibyte): New function.
27143 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27144
271452008-02-01 Dave Love <fx@gnu.org>
27146
27147 * xfns.c (x_put_x_image): Declare args.
27148
27149 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27150 (try_font_list): Declare an arg.
27151
27152 * xdisp.c (message2_nolog, set_message): Declare an arg.
27153
27154 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27155
27156 * syntax.c (scan_sexps_forward): Declare an arg.
27157
27158 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27159 Declare an arg.
27160
27161 * lisp.h (Fnew_fontset): Declare.
27162
27163 * keymap.c (push_key_description): Call CHARACTERP correctly.
27164
27165 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27166 (face_for_char): Delete unused vars.
27167 (Fset_fontset_font): Doc fix. Delete unused vars.
27168
27169 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27170
27171 * composite.c (update_compositions): Declare arg.
27172
27173 * cm.c (calccost, cmgoto): Declare args.
27174
27175 * charset.c: Remove `emacs' conditional. Doc fixes.
27176 (map_char_table_for_charset): Declare.
27177
27178 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27179
27180 * ccl.c: Remove `emacs' conditional.
27181
271822008-02-01 Kenichi Handa <handa@m17n.org>
27183
27184 The following changes are to allow specifying multiple font
27185 patterns for a character range (specified by script or charset).
27186
27187 * Makefile.in (abbrev.o): Depend on syntax.h.
27188 (xfaces.o): Depend on charset.h.
27189
27190 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27191 SINGLE_BYTE_CHAR_P.
27192
27193 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27194
27195 * character.h (Vchar_script_table): Extern it.
27196
27197 * character.c (Vscript_alist): Delete.
27198 (Vchar_script_table, Qchar_script_table): New variable.
27199 (syms_of_character): Declare Vchar_script_table as a lisp variable
27200 and initialize it.
27201
27202 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27203 have property char-table-extra-slots, make no extra slot.
27204
27205 * dispextern.h (struct face): Delete member `charset'.
27206 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27207 SINGLE_BYTE_CHAR_P.
27208 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27209 Add prototypes.
27210 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27211 (generate_ascii_font_name): Rename from generate_ascii_font.
27212
27213 * fontset.h (get_font_repertory_func): New prototype.
27214 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27215 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27216
27217 * fontset.c (Qprepend, Qappend): New variables.
27218 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27219 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27220 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27221 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27222 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27223 (load_font_get_repertory): New functions.
27224 (fontset_set): Delete.
27225 (fontset_face): New arg FACE. Return face ID, not face.
27226 Complete re-write to handle new fontset structure. Change caller.
27227 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27228 (face_for_char): Don't call lookup_face.
27229 (make_fontset_for_ascii_face): New arg FACE.
27230 (fs_load_font): New arg CHARSET_ID. Don't check
27231 Vfont_encoding_alist here.
27232 (find_font_encoding): New function.
27233 (list_fontsets): Use STRINGP, not ! NILP.
27234 (accumulate_script_ranges): New function.
bba3e508
SM
27235 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27236 Completely re-written to handle new fontset structure.
aac0c6e3 27237 (Ffontset_font): Return a copy of element.
bba3e508
SM
27238 (syms_of_fontset): Define symbols Qprepend and Qappend.
27239 Fix docstring of font-encoding-alist.
aac0c6e3
MR
27240
27241 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27242 (Fset_fotset_font): Fix arguments to 5.
27243
27244 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27245
27246 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27247 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27248 (highlight_trailing_whitespace): Adjust for the change of
27249 lookup_named_face.
27250
27251 * xfaces.c: Include charset.h.
27252 (load_face_font): Delete argument C. Change caller.
27253 (generate_ascii_font_name): Rename from generate_ascii_font.
27254 (font_name_registry): New function.
27255 (cache_face): Store ascii faces before non-ascii faces in buckets.
27256 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27257 Lookup only ascii faces.
27258 (lookup_non_ascii_face): New function.
27259 (lookup_named_face): Delete argument C. Change caller.
27260 (lookup_derived_face): Delete argument C. Change caller.
27261 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27262 a string, just call font_list with it.
27263 (choose_face_font): Delete arguments FACE and C. New arg
27264 FONT_SPEC. Change caller.
27265 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27266 Change caller.
27267 (realize_non_ascii_face): New function.
27268 (realize_x_face): Call load_face_font here.
27269 (realize_tty_face): Delete argument C. Change caller.
27270 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27271 get a face ID.
27272 (dump_realized_face): Don't print charset of FACE.
27273
27274 * xfns.c (x_set_font): Always call x_new_fontset and
27275 store_frame_parameter.
27276 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27277 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27278
27279 * xterm.h (x_get_font_repertory): Extern it.
27280
27281 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27282 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27283 it->multibyte_p is zero.
27284 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27285 (x_new_fontset): If FONTSETNAME doesn't match any existing
27286 fontsets, create a new one.
27287 (x_get_font_repertory): New function.
27288
272892008-02-01 Kenichi Handa <handa@m17n.org>
27290
27291 * coding.c (Ffind_coding_systems_region_internal): Detect an
27292 ASCII only string correctly.
27293
27294 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27295 version is 0.
27296
272972008-02-01 Kenichi Handa <handa@m17n.org>
27298
27299 * lread.c: Include "coding.h".
27300 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27301 (load_each_byte, unread_char): New variables.
27302 (readchar_backlog): Delete.
27303 (readchar): Return a character unless load_each_byte is nonzero.
27304 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27305 cons. If unread_char is not -1, simply return it.
27306 (unreadchar): Handle the case that readcharfun is
27307 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27308 (read_multibyte): Delete.
27309 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27310 (read_emacs_mule_char): New functions.
27311 (Fload): Even if the file doesn't have the extension ".elc", if
27312 safe_to_load_p returns a positive version number, assume that the
27313 file contains bytecompiled code. If the version is less than 22,
27314 load the file while decoding multibyte sequences by emacs-mule.
27315 (readevalloop): Don't use readchar_backlog.
27316 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27317 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27318 (read_escape): Delete the arg BYTEREP.
27319 (read1): Set load_each_byte to 1 temporarily while handling
27320 #@NUMBER. Don't call read_multibyte.
27321 (read_vector): Call Fread with a cons. If readcharfun is
27322 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27323 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27324 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27325 and Qload_force_doc_strings.
27326
273272008-02-01 Kenichi Handa <handa@m17n.org>
27328
bba3e508
SM
27329 * xdisp.c (face_before_or_after_it_pos):
27330 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
27331
273322008-02-01 Kenichi Handa <handa@m17n.org>
27333
27334 * character.h (TRAILING_CODE_P): New macro.
27335 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27336 (string_char_with_unification): Fix prototype.
27337 (Vscript_alist): Extern it.
27338
27339 * character.c (Vscript_alist): New variable.
27340 (string_char_with_unification, str_as_unibyte)
27341 (string_escape_byte8): Add `const' to local variables.
27342 (syms_of_character): Declare script-alist as a Lisp variable.
27343
27344 * charset.h (Vcharset_ordered_list): Extern it.
27345 (charset_ordered_list_tick): Extern it.
27346 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27347 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27348 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27349 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27350 (Funify_charset): Adjust for the change of Funify_charset.
27351
27352 * charset.c (charset_ordered_list_tick): New variable.
27353 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27354 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 27355 deunify instead of unify a charset.
aac0c6e3
MR
27356 (string_xstring_p): Add `const' to local variables.
27357 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
27358 (encode_char): Adjust for the change of Funify_charset.
27359 Fix detecting of invalid code.
aac0c6e3
MR
27360 (Fset_charset_priority): Increment charset_ordered_list_tick.
27361 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27362 and TO_CODE.
27363
27364 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27365 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27366 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27367 (decode_coding_ccl, consume_chars)
27368 (Ffind_coding_systems_region_internal)
27369 (Fcheck_coding_systems_region): Add `const' to local variables.
27370
27371 * print.c (print_object): Use octal form for printing the
27372 contents of a bool vector.
27373
273742008-02-01 Dave Love <fx@gnu.org>
27375
27376 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27377 <version == 20>: Refuse to load.
27378
273792008-02-01 Dave Love <fx@gnu.org>
27380
27381 * fns.c: Move coding.h.
27382 (Qcodeset, Qdays, Qmonths): New.
27383 (concat): Use CHARACTERP instead of INTEGERP.
27384 (Flocale_codeset): Delete.
27385 (Flanginfo): New function.
27386 (syms_of_fns): Change accordingly.
27387
27388 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27389
273902008-02-01 Dave Love <fx@gnu.org>
27391
bba3e508
SM
27392 * casetab.c (init_casetab_once, init_casetab_once):
27393 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
27394
27395 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27396
27397 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27398
27399 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27400 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27401 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27402
27403 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27404
27405 * coding.c (ENCODE_DESIGNATION, decode_eol)
27406 (make_conversion_work_buffer, code_conversion_restore)
27407 (Fdefine_coding_system_internal): Convert Lisp types.
27408 (code_conversion_restore): Use EQ, not ==.
27409 (Fencode_coding_string): Fix code_convert_string call.
27410
27411 * coding.h (code_convert_region): Fix prototype.
27412
27413 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27414
27415 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27416 (Ffontset_info): Convert Lisp types.
27417
27418 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27419
27420 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27421
27422 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27423
27424 * chartab.c: Include "...h", not <...h> in some cases.
27425
27426 * callproc.c (Fcall_process): Remove unused variables.
27427
274282008-02-01 Dave Love <fx@gnu.org>
27429
27430 * coding.c (Fset_coding_system_priority): Allow null arg list.
27431
274322008-02-01 Dave Love <fx@gnu.org>
27433
27434 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27435 (Fself_insert_and_exit): Use CHARACTERP.
27436
27437 * callproc.c (Fcall_process): Remove unused vars.
27438
27439 * xterm.c (XTread_socket): Add extra dead keysyms.
27440
27441 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27442
27443 * dispextern.h: Remove prototypes for redraw_frame,
27444 redraw_garbaged_frames.
27445
27446 * cmds.c (Fself_insert_command): Use CHARACTERP.
27447
27448 * chartab.c (make_sub_char_table): Remove unused var.
27449 (Fset_char_table_default, Fmap_char_table): Doc fix.
27450
27451 * keymap.c (access_keymap): Remove generic char code.
27452 (push_key_description): Use CHARACTERP.
27453
274542008-02-01 Dave Love <fx@gnu.org>
27455
27456 * charset.c: Doc fixes.
27457 (Funify_charset): Extra checking.
27458
274592008-02-01 Dave Love <fx@gnu.org>
27460
27461 * lread.c: Remove some unused variables.
27462 (safe_to_load_p): If safe, return the magic number version byte.
27463 (Fload): Maybe use load-with-code-conversion.
27464
274652008-02-01 Kenichi Handa <handa@m17n.org>
27466
27467 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
27468 of category_set for characters out of the range.
27469 Avoid unnecessary modification.
aac0c6e3
MR
27470
27471 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27472 Vchar_unify_table. The default value of the table is now nil.
27473
27474 * character.c (syms_of_character): Setup Vchar_width_table for
27475 eight-bit-control and raw-byte chars.
27476
bba3e508
SM
27477 * charset.h (enum define_charset_arg_index):
27478 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
27479 charset_arg_superset.
27480 (enum charset_attr_index): Delete charset_parents and add
27481 charset_subset and charset_superset.
27482 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27483 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27484 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27485 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27486 (CHARSET_SUPERSET): New macros.
27487 (charset_work): Extern it.
27488 (ENCODE_CHAR): Use charset_work.
27489 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27490 (map_charset_chars): Extern it.
27491
27492 * charset.c (load_charset_map): Set the default value of encoder
27493 and deunifier char-tables to nil.
bba3e508
SM
27494 (map_charset_chars): Change argument. Change callers.
27495 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
27496 (Fmap_charset_chars): New optional args from_code and to_code.
27497 (Fdefine_charset_internal): Adjust for the change of
27498 `define-charset' (:parents -> :subset or :superset).
27499 (charset_work): New variable.
27500 (encode_char, syms_of_charset): Adjust for the change of
27501 Fdefine_charset_internal.
27502 (Ffind_charset_string): Setup the vector `charsets' correctly.
27503
bba3e508
SM
27504 * chartab.c (sub_char_table_ref_and_range): New arg default.
27505 Fix the previous change.
aac0c6e3
MR
27506 (char_table_ref_and_range): Adjust for the above change.
27507 (map_sub_char_table_for_charset): New function.
27508 (map_char_table_for_charset): New function.
27509
27510 * keymap.c (describe_vector): Handle a char-table directly here.
27511 (describe_char_table): Delete.
27512
27513 * lisp.h (map_charset_chars): Delete.
27514
275152008-02-01 Dave Love <fx@gnu.org>
27516
27517 * fns.c (count_combining): Comment out (unused).
27518 (Flocale_codeset): New.
27519 (syms_of_fns): Defsubr it.
27520
27521 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27522 (size_t): Remove.
27523
275242008-02-01 Dave Love <fx@gnu.org>
27525
27526 * Makefile.in (chartab.o): Depend on charset.h.
27527
275282008-02-01 Kenichi Handa <handa@m17n.org>
27529
27530 * character.c (syms_of_character): Set the default value of
27531 Vprintable_chars to Qnil.
27532
275332008-02-01 Dave Love <fx@gnu.org>
27534
27535 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27536
275372008-02-01 Kenichi Handa <handa@m17n.org>
27538
27539 * charset.c (load_charset_map): Handle the case that from < to
27540 correctly.
27541
27542 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27543 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27544 Pay attention to raw-8-bit chars.
27545
275462008-02-01 Kenichi Handa <handa@m17n.org>
27547
27548 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
27549 It is not bytecompiled now.
27550
27551 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
27552 (charset_jisx0208): New variables.
27553 (Fdefine_charset_internal): Setup them if appropriate.
27554 (init_charset_once): Initialize them to -1.
27555
27556 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
27557 (charset_jisx0208): Extern them.
27558
27559 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
27560 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
27561 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
27562 (setup_iso_safe_charsets): Fix arguments to Fassq.
27563 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
27564 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
27565 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
27566 (encode_coding_iso_2022): Change the 1st arg to
27567 ENCODE_ISO_CHARACTER to a variable.
27568
275692008-02-01 Kenichi Handa <handa@m17n.org>
27570
27571 * charset.h (enum define_charset_arg_index): New enums
27572 charset_arg_min_code and charset_arg_max_code.
27573 (struct charset): New member char_index_offset.
27574
27575 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
27576 Take charset->char_index_offset into account.
27577 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
27578 args[charset_arg_max_code]. Setup charset.char_index_offset.
27579 (syms_of_charset): Fix args to Fdefine_charset_internal.
27580
275812008-02-01 Dave Love <fx@gnu.org>
27582
27583 * coding.c (decode_coding_utf_8): Reject overlong sequences.
27584
275852008-02-01 Dave Love <fx@gnu.org>
27586
27587 * coding.c: Doc fixes.
27588 (Fcoding_system_aliases): Fix return value.
27589 (Qmac): Remove (duplicated) definition.
27590
275912008-02-01 Dave Love <fx@gnu.org>
27592
362654a6
JB
27593 * charset.c (Fcharset_priority_list, Fset_charset_priority):
27594 New functions.
aac0c6e3
MR
27595
27596 * character.c (Fstring): Doc fix.
27597
27598 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
27599
362654a6 27600 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
27601 (font-encoding-alist): Doc fix.
27602
276032008-02-01 Dave Love <fx@gnu.org>
27604
27605 * term.c (costs_set): Declare static, non-initialized for pcc.
27606 (encode_terminal_code): Remove unused var.
27607
27608 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
27609 for K&R.
27610
27611 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
27612
27613 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
27614 (suffixes): Move out of make_subsidiaries for K&R.
27615
27616 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
27617
27618 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
27619
276202008-02-01 Dave Love <fx@gnu.org>
27621
27622 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
27623
27624 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
27625
276262008-02-01 Yong Lu <lyongu@asia-infonet.com>
27627
27628 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
27629
27630 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
27631
276322008-02-01 Kenichi Handa <handa@m17n.org>
27633
27634 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
27635 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
27636
276372008-02-01 Kenichi Handa <handa@m17n.org>
27638
27639 * coding.c (decode_coding_charset): Adjust for the change of
27640 Fdefine_coding_system_internal.
27641 (Fdefine_coding_system_internal): For a coding system of
27642 `charset' type, store a list of charset IDs in
27643 `charset_attr_charset_valids' element of coding attributes.
27644
276452008-02-01 Kenichi Handa <handa@m17n.org>
27646
27647 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
27648 (emacs_mule_char): New arg src. Delete arg `composition'.
27649 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
27650 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
27651 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
27652 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
27653 (DECODE_EMACS_MULE_21_COMPOSITION):
27654 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
27655 sequence.
27656 (decode_coding_emacs_mule): Handle composition correctly. Rewind
27657 `src' and `consumed_chars' correctly before calling emacs_mule_char.
27658 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
27659 and alt&rule composition.
27660 (decode_coding_iso_2022): Handle composition correctly.
27661 (init_coding_once): Setup emacs_mule_bytes for private charsets.
27662
27663 * charset.c (Fdefine_charset_internal): Fix bug for the case of
27664 re-defining a charset. If the charset has :emacs-mule-id, setup
27665 emacs_mule_bytes.
27666 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
27667
276682008-02-01 Kenichi Handa <handa@m17n.org>
27669
27670 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
27671 (encode_coding_big5, encode_coding_charset): If coding requires safe
27672 encoding, produce a character specified by
27673 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
27674
276752008-02-01 Dave Love <fx@gnu.org>
27676
27677 * xterm.c (XSetIMValues): Declare.
27678
27679 * process.c: Conditionally include sys/wait.h, pty.h.
27680
27681 * print.c (print_object): Fix print format for 64-bit systems.
27682
27683 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
27684
27685 * buffer.c (emacs_strerror): Declare.
27686
27687 * fontset.c (Fclear_face_cache): Declare.
27688 (accumulate_font_info): Comment-out (unused).
27689 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
27690 variables.
27691
27692 * character.h (string_escape_byte8): Declare.
27693
bba3e508
SM
27694 * charset.c (load_charset_map, load_charset_map_from_file):
27695 Remove unused vars.
aac0c6e3
MR
27696 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
27697 (Fmap_charset_chars): Doc fix.
27698
27699 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
27700 (Fset_coding_system_priority, Fset_coding_system_priority)
27701 (Fdefine_coding_system_internal): Doc fix.
27702
277032008-02-01 Dave Love <fx@gnu.org>
27704
27705 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
27706
277072008-02-01 Kenichi Handa <handa@m17n.org>
27708
27709 * character.c (string_escape_byte8): Make multibyte string with
27710 correct size.
27711
27712 * charset.c (Fmake_char): Delete unnecessary code.
27713
277142008-02-01 Kenichi Handa <handa@m17n.org>
27715
27716 * xfns.c (x_encode_text): Allocate coding.destination here, and
27717 call encode_coding_object with dst_object Qnil.
27718
27719 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
27720 multibyte form correctly.
27721
27722 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
27723 against Vfont_encoding_alist.
27724
27725 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
27726 handling of charset list.
27727 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
27728 (decode_coding_object): Move point to coding->dst_pos before
27729 calling post-read-conversion function.
27730 (encode_coding_object): Give correct arguments to
27731 pre-write-conversion. Ignore the return value of
27732 pre-write-conversion function. Pay attention to the case that
27733 pre-write-conversion changes the current buffer. If dst_object is
27734 Qt, even if coding->src_bytes is zero, allocate at least one byte
27735 to coding->destination.
27736
27737 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
27738
27739 * charset.c (Fmake_char): Make it more backward compatible.
27740 (Fmap_charset_chars): Fix docstring.
27741
277422008-02-01 Dave Love <fx@gnu.org>
27743
27744 * coding.c: Doc fixes.
27745 (Fdefine_coding_system_alias): Use names, not symbols, in
27746 coding-system-alist.
27747
277482008-02-01 Kenichi Handa <handa@m17n.org>
27749
27750 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27751 of calling free_realized_face.
27752
277532008-02-01 Yong Lu <lyongu@asia-infonet.com>
27754
27755 * charset.c (read_hex): Don't treat SPC as a comment starter.
27756 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27757 (Fdecode_char): Fix typo.
27758
277592008-02-01 Kenichi Handa <handa@m17n.org>
27760
27761 * charset.h (struct charset): New member `code_space_mask'.
27762
27763 * coding.c (coding_set_source): Delete the local variable beg_byte.
27764 (encode_coding_charset, Fdefine_coding_system_internal):
27765 Delete the local variable charset.
bba3e508
SM
27766 (Fdefine_coding_system_internal):
27767 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
27768
27769 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27770 member to check if CODE is valid or not.
27771 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27772 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27773 is within the range of charset->min_code and carset->max_code.
27774
277752008-02-01 Dave Love <fx@gnu.org>
27776
27777 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27778
27779 * dispextern.h (generate_ascii_font): Fix return type.
27780
27781 * xfaces.c (generate_ascii_font): Fix arg declaration.
27782
27783 * coding.c (coding_inherit_eol_type)
27784 (Fset_terminal_coding_system_internal)
27785 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
27786
277872008-02-01 Kenichi Handa <handa@m17n.org>
27788
bba3e508
SM
27789 * coding.c (decode_coding_charset, encode_coding_charset):
27790 Handle multiple charsets correctly.
aac0c6e3
MR
27791
277922008-02-01 Kenichi Handa <handa@m17n.org>
27793
27794 * search.c (boyer_moore): Fix handling of multibyte character
27795 translation.
27796
27797 * xdisp.c (display_mode_element): When the variable `elt' is
27798 changed, update `this' and `lisp_string'.
27799
278002008-02-01 Kenichi Handa <handa@m17n.org>
27801
27802 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
27803
27804 * callproc.c (Fcall_process): Be sure to give the current buffer
27805 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
27806
27807 * charset.c (struct charset_map_entries): New struct.
27808 (load_charset_map): Rename from parse_charset_map. New args
27809 entries and n_entries. Change caller.
27810 (load_charset_map_from_file): Rename from load_charset_map.
27811 Change caller. New arg control_flag. Call load_charset_map at
27812 the tail.
27813 (load_charset_map_from_vector): New function.
27814 (Fdefine_charset_internal): Setup charset.compact_codes_p.
27815 (encode_char): If the charset is compact, change a character index
27816 to a code point.
27817
27818 * coding.c (coding_alloc_by_making_gap): Check the case that the
27819 source and destination are the same correctly.
27820 (decode_coding_raw_text): Set coding->consumed_char and
27821 coding->consumed to 0.
27822 (produce_chars): If coding->chars_at_source is nonzero, update
27823 coding->consumed_char and coding->consumed before calling
27824 alloc_destination.
27825 (Fdefine_coding_system_alias): Register ALIAS in
27826 Vcoding_system_alist.
27827 (syms_of_coding): Define `no-conversion' coding system at the tail.
27828
27829 * fileio.c (Finsert_file_contents): Set coding_system instead of
27830 val. If the current buffer is multibyte, always call
27831 decode_coding_gap.
27832
27833 * xfaces.c (try_font_list): Give higher priority to fontset's
27834 family than face's family.
27835
278362008-02-01 Kenichi Handa <handa@m17n.org>
27837
27838 * callproc.c (Fcall_process): Be sure to give the current buffer
27839 to decode_coding_c_string.
27840
27841 * xfaces.c (try_font_list): Give a family specified in a fontset
27842 higher priority than a family specified in a face.
27843
278442008-02-01 Kenichi Handa <handa@m17n.org>
27845
27846 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
27847 Fix arguments to insert_from_buffer.
27848
27849 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
27850
278512008-02-01 Kenichi Handa <handa@m17n.org>
27852
27853 * coding.c (produce_chars): Set the variable `multibytep' correctly.
27854 (decode_coding_gap): Set coding->dst_multibyte correctly.
27855
278562008-02-01 Kenichi Handa <handa@m17n.org>
27857
27858 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
27859 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
27860 (encode_coding_utf_16): Substitute coding->default_char for
27861 non-Unicode characters.
27862 (decode_coding): Don't call record_insert here.
27863 (setup_coding_system): Initialize `surrogate' of
27864 coding->spec.utf_16 to 0.
27865 (EMIT_ONE_BYTE): Fix for multibyte case.
27866
27867 * insdel.c (insert_from_gap): Call record_insert.
27868
278692008-02-01 Kenichi Handa <handa@m17n.org>
27870
27871 * casefiddle.c (casify_region): Fix multibyte case.
27872
27873 * character.c (c_string_width): Add return type `int'.
27874 (char_string_with_unification): Delete arg ADVANCED.
27875
27876 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
27877 (CHAR_STRING): Adjust for the change of char_string_with_unification.
27878 (CHAR_STRING_ADVANCE): Make it do-while statement.
27879
27880 * chartab.c (sub_char_table_set_range): Optimize for the case
27881 DEPTH == 3. Add workaround code for a GCC optimization bug.
27882
27883 * charset.c (parse_charset_map): Remove an unused variable.
27884
27885 * coding.c: Delete unused variables.
27886
27887 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27888 earlier. If inserted is zero and the coding system doesn't
27889 require flushing, don't call decode_coding_gap.
27890
27891 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27892
278932008-02-01 Kenichi Handa <handa@m17n.org>
27894
27895 The following changes are for using Unicode as an internal
27896 character model, and use UTF-8 format for buffer/string
27897 representation.
27898
27899 * .gdbinit (xchartable): Adjust for the change of char table structure.
27900 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27901
27902 * Makefile.in (obj): Add character.o and chartab.o.
27903 (lisp, shortlisp): Remove utf-8.elc.
27904 (*.o): For many files, change dependency on charset.h to
27905 character.h, and add dependency on character.h.
27906 (character.o, chartab.o): New targets.
27907
27908 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27909 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27910 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27911 of "charset.h".
27912
27913 * dired.c, filelock.c: Include "character.h".
27914
27915 * alloc.c: Include "character.h" instead of "charset.h".
27916 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27917 (syms_of_alloc): Remove defsubr for Smake_char_table.
27918
27919 * buffer.c: Include "character.h" instead of "charset.h", don't
27920 include "coding.h".
27921 (Fset_buffer_multibyte): Adjust for UTF-8.
27922
27923 * buffer.h: EXFUN Fbuffer_live_p.
27924
27925 * callproc.c: Include "character.h" instead of "charset.h".
27926 (Fcall_process): Big change for the new code-conversion APIs.
27927
27928 * casetab.c: Include "character.h" instead of "charset.h".
27929 (set_canon, set_identity, shuffle): Adjust for the new
27930 map_char_table spec.
27931 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27932 accessing the char table structure.
27933
27934 * chartab.c: New file that implements char table.
27935
27936 * category.c: Include "character.h".
27937 (copy_category_entry): New function.
27938 (copy_category_table): Call map_char_table and copy_category_entry.
27939 (Fmake_category_table): Initialize all top-level slots.
27940 (char_category_set): New function.
27941 (modify_lower_category_set): Delete.
27942 (Fmodify_category_entry): Call char_table_ref_and_range.
27943
27944 * category.h (CATEGORY_SET): Just call char_category_set.
27945
27946 * ccl.c: Include "character.h".
27947 (Qccl, Qcclp): New variables.
27948 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27949 it's less than 256.
27950 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27951 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27952 and DST type.
27953 (ccl_driver): Change types of argument, adjust code accordingly.
27954 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
27955 ccl_driver.
27956 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
27957
27958 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
27959 New members src_multibyte, dst_multibyte, consumed, and produced.
27960 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
27961 (CODING_SPEC_CCL_PROGRAM): New macro.
27962 (ccl_driver): Update prototype.
27963 (Qccl, Qcclp, Fccl_program_p): Extern them.
27964 (CHECK_CCL_PROGRAM): New macro.
27965
27966 * character.c, character.h, chartab.c: New files.
27967
27968 * charset.c: Mostly re-written. Move character and multibyte sequence
27969 handling codes to character.c.
27970
27971 * charset.h: Mostly re-written. Move character and multibyte sequence
27972 handling codes to character.h.
27973
27974 * coding.c, coding.h: Mostly re-written.
27975
27976 * composite.c: Include "character.h" instead of "charset.h".
27977 (CHAR_WIDTH): Move to character.h.
27978 (HASH_KEY, HASH_VALUE): Delete.
27979
27980 * composite.h (enum composition_method): Change order of enumeration
27981 symbols.
27982
27983 * data.c: Include "character.h" instead of "charset.h".
27984 (Faref): Call CHAR_TABLE_REF for a char table.
27985 (Faset): Call CHAR_TABLE_SET for a char table.
27986
27987 * dispextern.h (free_realized_face, check_face_attribytes)
27988 (generate_ascii_font): Extern them.
27989 (free_realized_multibyte_face): Delete extern.
27990
27991 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
27992 table structure.
27993
27994 * editfns.c: Include "character.h" instead of "charset.h".
27995 (Fchar_to_string): Always call CHAR_STRING.
27996
27997 * emacs.c (main): Call init_charset_once, init_charset,
27998 syms_of_chartab, and syms_of_character.
27999
28000 * fileio.c: Include "character.h" instead of "charset.h".
28001 (Finsert_file_contents): Big change for the new code-conversion API.
28002 (choose_write_coding_system, Fwrite_region): Likewise.
28003 (build_annotations_2): Delete.
28004 (e_write): Big change for the new code-conversion API.
28005
28006 * fns.c: Include "character.h" instead of "charset.h".
28007 (copy_sub_char_table): Move to chartab.c.
28008 (Fcopy_sequence): Call copy_char_table for a char table.
28009 (concat): Delete codes calling count_multibyte.
28010 (string_char_to_byte, string_byte_to_char): Adjust for the new
28011 multibyte form.
28012 (internal_equal): Adjust for the change of char table structure.
28013 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28014 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28015 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28016 (char_table_translate, optimize_sub_char_table)
28017 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28018 chartab.c.
28019 (char_table_ref_and_index): Delete.
28020 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28021 (Fmd5): Call preferred_coding_system instead of accessing
28022 Vcoding_category_list. Adjust for the new code-conversion API.
28023 (syms_of_fns): Move defsubr for char table related functions to
28024 chartab.c.
28025
28026 * fontset.c: Mostly re-written.
28027
28028 * fontset.h (struct font_info): Change type of the member encoding_type.
28029 (enum FONT_SPEC_INDEX): New enum.
28030 (fontset_font_pattern, fs_load_font): Update prototype.
28031 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28032
28033 * indent.c: Include "character.h" instead of "charset.h".
28034 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28035
28036 * insdel.c: Include "character.h" instead of "charset.h".
28037 (copy_text): Don't refer to Vnonascii_translation_table.
28038 (insert_from_gap): New function.
28039
28040 * keyboard.c: Include "character.h" instead of "charset.h".
28041 (command_loop_1): Never call direct_output_forward_char before
28042 a non-ASCII character.
28043 (read_char): If Vkeyboard_translate_table is a char table, always
28044 translate a character.
28045
28046 * keymap.c: Include "character.h".
28047 (store_in_keymap): Handle the case that IDX is a cons.
28048 (Fdefine_key): Handle the case that KEY is a cons and the car part
28049 is also a cons (range).
28050 (push_key_description): Adjust for the new character code.
28051 (describe_vector): Call describe_char_table for a char table.
28052 (describe_char_table): New function.
28053
28054 * keymap.h (describe_char_table): Extern it.
28055
28056 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28057 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28058 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28059 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28060 Delete.
28061 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28062 structure.
28063 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28064 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28065 (CHARTAB_SIZE_BITS_3): New macros.
28066 (chartab_size): Extern it.
28067 (struct Lisp_Char_Table): Re-design.
28068 (struct Lisp_Sub_Char_Table): New structure.
28069 (HASH_KEY, HASH_VALUE): Move from fns.c.
28070 (CHARACTERBITS): Define as 22.
28071 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28072 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28073 (GC_SUB_CHAR_TABLE_P): New macro.
28074 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 28075 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
28076 (init_character_once, syms_of_character, init_charset)
28077 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28078
28079 * lread.c: Include "character.h".
28080 (read_multibyte): New arg NBYTES.
28081 (read_escape): Change the meaning of returned *BYTEREP.
28082 (to_multibyte): Delete.
28083 (read1): Adjust the handling of char table and string.
28084
28085 * print.c: Include "character.h" instead of "charset.h".
28086 (print_string): Convert 8-bit raw bytes to octal form by
28087 string_escape_byte8.
28088 (print_object): Adjust for the new multibyte form. Print 8-bit
28089 raw bytes always in octal form. Handle sub char table correctly.
28090
28091 * process.c: Include "character.h" instead of "charset.h".
28092 (read_process_output, send_process): Adjust for the new
28093 code-conversion API.
28094
28095 * puresize.h (BASE_PURESIZE): Increase.
28096
28097 * regex.c: Include "character.h" instead of "charset.h".
28098 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28099 (regex_compile): Accept a range whose starting and ending
28100 character have different leading bytes.
28101 (analyse_first): Adjust for the above change.
28102
28103 * search.c: Include "character.h" instead of "charset.h".
28104 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28105 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28106
28107 * syntax.c: Include "character.h" instead of "charset.h".
28108 (syntax_parent_lookup): Delete.
28109 (Fmodify_syntax_entry): Accept a cons as CHAR.
28110 (skip_chars): Adjust for the new multibyte form.
28111 (init_syntax_once): Call char_table_set_range instead of directly
28112 accessing the structure of a char table.
28113
28114 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28115 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28116 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28117 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28118
28119 * term.c: Include "buffer.h" and "character.h".
28120 (encode_terminal_code, write_glyphs): Adjust for the new
28121 code-conversion API.
28122 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28123
28124 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28125
28126 * xdisp.c: Include "character.h".
28127 (get_next_display_element): Adjust for the new multibyte form.
28128 (disp_char_vector): Adjust for the new char table structure.
28129 (decode_mode_spec_coding): Adjust for the new structure of
28130 coding system.
28131 (decode_mode_spec): Adjust for the new code-conversion API.
28132
28133 * xfaces.c: Include "character.h" instead of "charset.h".
28134 (load_face_font): Adjust for the change of choose_face_font and
28135 FS_LOAD_FONT.
28136 (generate_ascii_font): New function.
28137 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28138 (set_font_frame_param): Adjust for the change of choose_face_font.
28139 (free_realized_face): Make it public.
28140 (free_realized_faces_for_fontset): Rename from
28141 free_realized_multibyte_face. Free also faces realized for ASCII.
28142 (choose_face_font): Change arguments. Adjust for the change of
28143 fontset_font_pattern and FS_LOAD_FONT.
28144
28145 * xfns.c: Include "character.h".
28146 (x_encode_text): Adjust for the new code-conversion API.
28147
28148 * xselect.c: Don't include "charset.h".
28149 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28150
28151 * xterm.c: Include "character.h".
28152 (x_encode_char): New argument CHARSET. Change caller.
28153 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28154 Call ENCODE_CHAR instead of SPLIT_CHAR.
28155 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28156 CHAR_WIDTH instead of CHARSET_WIDTH.
28157 (XTread_socket): Adjust for the new code-conversion API.
28158 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28159 (x_load_font): Adjust for the change of struct font.
28160
281612008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28162
28163 * xfaces.c (face_at_buffer_position): Remove unused vars.
28164
281652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28166
28167 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28168 Fix overflow checking.
28169
281702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28171
28172 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28173 Cancel previous change.
28174
281752008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28176
28177 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28178 ccl->eight_bit_control. Fix check for buffer overflow.
28179 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28180 (ccl_driver): Initialize extra_bytes to 0.
28181
281822008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28183
28184 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28185 return it ORed with ctrl_modifier.
28186
281872008-01-29 Miles Bader <miles@gnu.org>
28188
28189 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28190
281912008-01-28 Jason Rumney <jasonr@gnu.org>
28192
28193 * w32.c (stat): Don't double check for networked drive.
28194
281952008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28196
28197 * window.c (run_window_configuration_change_hook): New function.
28198 Code extracted from set_window_buffer. Set the selected frame.
28199 (set_window_buffer): Use it.
28200 * window.h (run_window_configuration_change_hook): Declare.
28201 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28202
28203 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28204
282052008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28206
28207 * Makefile.in: Remove references to unused macros.
28208
282092008-01-26 Eli Zaretskii <eliz@gnu.org>
28210
28211 * w32.c (g_b_init_get_sid_sub_authority)
28212 (g_b_init_get_sid_sub_authority_count): New static variables.
28213 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28214 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28215 (init_user_info): Use them to retrieve uid and gid.
28216 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28217 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28218 st_uid and st_gid of the file.
28219
282202008-01-26 Jason Rumney <jasonr@gnu.org>
28221
28222 * w32.c (logon_network_drive): New function.
28223 (stat): Use it.
28224
282252008-01-26 Chong Yidong <cyd@stupidchicken.com>
28226
28227 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28228 invisible text covered with an ellipsis.
28229
282302008-01-25 Richard Stallman <rms@gnu.org>
28231
28232 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28233 jump back to beginning. Move some other initializations after that.
28234 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28235 New variables.
28236 (syms_of_xdisp): Init them.
28237
28238 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28239
28240 * buffer.c (reset_buffer_local_variables):
28241 Implement `permanent-local-hook'.
28242 (Qpermanent_local_hook): New variable.
28243 (syms_of_buffer): Init and staticpro it.
28244
282452008-01-25 Michael Albinus <michael.albinus@gmx.de>
28246
28247 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28248
282492008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28250
28251 * fns.c (Fclrhash): Return TABLE.
28252
282532008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28254
28255 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28256 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28257 is set even without positional changes.
28258 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28259
28260 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28261
282622008-01-23 Jason Rumney <jasonr@gnu.org>
28263
28264 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28265
28266 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28267 the unicode range available in MULE by locale-coding-system.
28268 Improve dbcs lead byte detection. Set event timestamp and modifiers
28269 earlier.
28270
282712008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28272
28273 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28274 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28275 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28276 when used on child processes.
28277
282782008-01-21 Michael Albinus <michael.albinus@gmx.de>
28279
28280 * dbusbind.c (Fdbus_method_return_internal): Rename from
28281 Fdbus_method_return.
28282 (Fdbus_unregister_object): Move to dbus.el.
28283 (Fdbus_call_method, Fdbus_method_return_internal)
28284 (Fdbus_send_signal): Improve debug messages.
28285
282862008-01-20 Martin Rudalics <rudalics@gmx.at>
28287
28288 * undo.c (undo_inhibit_record_point): New variable.
28289 (syms_of_undo): Initialize it.
28290 (record_point): Don't record point when undo_inhibit_record_point
28291 is set.
28292
282932008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28294
28295 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28296
28297 * xdisp.c (Qauto_hscroll_mode): New var.
28298 (syms_of_xdisp): Initialize it.
28299 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28300 window's buffer.
28301 (hscroll_windows): Don't check automatic_hscrolling_p here.
28302
28303 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28304 vscroll if we're setting window-buffer to the value it already has.
28305
283062008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28307
28308 * m/intel386.h: Remove references to XENIX.
28309
283102008-01-17 Andreas Schwab <schwab@suse.de>
28311
28312 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28313 instead of HAVE_X86_64_LIB64_DIR.
28314 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28315
283162008-01-17 Glenn Morris <rgm@gnu.org>
28317
28318 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28319 to HAVE_X86_64_LIB64_DIR.
28320
283212008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28322
28323 * s/irix3-3.h:
28324 * s/irix4-0.h:
28325 * s/386-ix.h:
28326 * s/domain.h:
28327 * s/hpux9-x11r4.h:
28328 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28329
28330 * sysdep.c: Remove code containing references to symbols defined
28331 by unsupported systems.
28332
283332008-01-16 Glenn Morris <rgm@gnu.org>
28334
28335 * coding.c (select-safe-coding-system-function): Doc fix.
28336
283372008-01-15 Glenn Morris <rgm@gnu.org>
28338
28339 * config.in: Revert 2008-01-13 change: this is a generated file.
28340
283412008-01-13 Tom Tromey <tromey@redhat.com>
28342
28343 * lisp.h: Fix typo.
28344
283452008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28346
28347 * m/sequent-ptx.h:
28348 * m/sequent.h:
28349 * s/ptx.h:
28350 * s/ptx4-2.h:
28351 * s/ptx4.h: Remove files for systems no longer supported.
28352
28353 * callproc.c (Fcall_process): Fix previous change.
28354
283552008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28356
28357 * unexsunos4.c: Remove file, system not supported anymore.
28358
28359 * m/mips.h:
28360 * m/intel386.h:
28361 * callproc.c:
28362 * config.in:
28363 * ecrt0.c:
28364 * emacs.c:
28365 * fileio.c:
28366 * frame.c:
28367 * getpagesize.h:
28368 * keyboard.c:
28369 * lread.c:
28370 * process.c:
28371 * puresize.h:
28372 * sysdep.c:
28373 * systty.h:
28374 * syswait.h:
28375 * unexec.c:
28376 * xdisp.c:
28377 * alloc.c: Remove code containing references to symbols defined by
28378 unsupported systems.
28379
283802008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28381
28382 * coding.c (detect_coding_mask): Fix previous change.
28383
283842008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28385
28386 * coding.c (detect_coding_iso2022): New arg
28387 latin_extra_code_state. Allow Latin extra codes only
28388 when *latin_extra_code_state is nonzero.
28389 (detect_coding_mask): If there is a NULL byte, detect the encoding
28390 as UTF-16 or binary. If Latin extra codes exist, detect the
28391 encoding as ISO-2022 only when there's no other proper encoding is
28392 found.
28393
283942008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28395
28396 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28397 #ifdef MAC_OS.
28398
283992008-01-08 Richard Stallman <rms@gnu.org>
28400
28401 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28402
284032008-01-06 Nick Roberts <nickrob@snap.net.nz>
28404
28405 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28406 menu bar in parentheses.
28407
284082008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28409
28410 * m/7300.h:
28411 * m/acorn.h:
28412 * m/alliant-2800.h:
28413 * m/alliant.h:
28414 * m/alliant1.h:
28415 * m/alliant4.h:
28416 * m/altos.h:
28417 * m/amdahl.h:
28418 * m/apollo.h:
28419 * m/att3b.h:
28420 * m/aviion-intel.h:
28421 * m/aviion.h:
28422 * m/celerity.h:
28423 * m/clipper.h:
28424 * m/cnvrgnt.h:
28425 * m/convex.h:
28426 * m/cydra5.h:
28427 * m/delta88k.h:
28428 * m/dpx2.h:
28429 * m/dual.h:
28430 * m/elxsi.h:
28431 * m/f301.h:
28432 * m/gould-np1.h:
28433 * m/gould.h:
28434 * m/i860.h:
28435 * m/ibmps2-aix.h:
28436 * m/ibmrt-aix.h:
28437 * m/ibmrt.h:
28438 * m/irist.h:
28439 * m/is386.h:
28440 * m/isi-ov.h:
28441 * m/mega68.h:
28442 * m/mg1.h:
28443 * m/news-r6.h:
28444 * m/news-risc.h:
28445 * m/news.h:
28446 * m/nh3000.h:
28447 * m/nh4000.h:
28448 * m/ns16000.h:
28449 * m/ns32000.h:
28450 * m/nu.h:
28451 * m/orion.h:
28452 * m/orion105.h:
28453 * m/paragon.h:
28454 * m/pfa50.h:
28455 * m/plexus.h:
28456 * m/pyramid.h:
28457 * m/pyrmips.h:
28458 * m/sh3el.h:
28459 * m/sps7.h:
28460 * m/sr2k.h:
28461 * m/stride.h:
28462 * m/sun1.h:
28463 * m/sun2.h:
28464 * m/sun3-68881.h:
28465 * m/sun3-fpa.h:
28466 * m/sun3-soft.h:
28467 * m/sun3.h:
28468 * m/sun386.h:
28469 * m/symmetry.h:
28470 * m/tad68k.h:
28471 * m/tahoe.h:
28472 * m/targon31.h:
28473 * m/tek4300.h:
28474 * m/tekxd88.h:
28475 * m/tower32.h:
28476 * m/tower32v3.h:
28477 * m/ustation.h:
28478 * m/wicat.h:
28479 * m/xps100.h:
28480 * s/cxux.h:
28481 * s/cxux7.h:
28482 * s/dgux.h:
28483 * s/dgux4.h:
28484 * s/dgux5-4-3.h:
28485 * s/dgux5-4r2.h:
28486 * s/esix.h:
28487 * s/esix5r4.h:
28488 * s/hiuxmpp.h:
28489 * s/hiuxwe2.h:
28490 * s/iris3-5.h:
28491 * s/iris3-6.h:
28492 * s/isc2-2.h:
28493 * s/isc3-0.h:
28494 * s/isc4-0.h:
28495 * s/isc4-1.h:
28496 * s/newsos5.h:
28497 * s/newsos6.h:
28498 * s/osf1.h:
28499 * s/osf5-0.h:
28500 * s/riscix1-1.h:
28501 * s/riscix12.h:
28502 * s/sco4.h:
28503 * s/sco5.h:
28504 * s/sunos4-0.h:
28505 * s/sunos4-1.h:
28506 * s/sunos413.h:
28507 * s/sunos4shr.h:
28508 * s/umax.h:
28509 * s/unipl5-2.h:
28510 * s/xenix.h:
28511 * cxux-crt0.s:
28512 * unexapollo.c:
28513 * unexconvex.c:
28514 * unexenix.c:
28515 * unexsni.c: Remove files for systems no longer supported.
28516
28517 * m/intel386.h: Remove references to unsupported systems.
28518
28519 * w32.c (get_emacs_configuration): Remove reference to i860.
28520
28521 * sysdep.c: Remove dead code.
28522
285232008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28524
28525 * s/rtu.h:
28526 * m/masscomp.h: Remove files. Platform is obsolete.
28527
285282008-01-04 Michael Albinus <michael.albinus@gmx.de>
28529
28530 * dbusbind.c (Fdbus_method_return): New function.
28531 (xd_read_message): Add the serial number to the event.
28532 (Fdbus_register_method): Activate the function.
28533
285342008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28535
28536 * keyboard.c (read_key_sequence): Fix typo.
28537
285382008-01-03 Michael Albinus <michael.albinus@gmx.de>
28539
28540 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28541 (xd_signature, xd_append_arg): Handle element type detection for
28542 empty arrays.
28543 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28544 SDATA () calls; this must be solved more general.
28545 (Fdbus_register_signal): Use SBYTES instead of strlen.
28546
285472008-01-03 Magnus Henoch <magnus@zemdatav>
28548
28549 * dbusbind.c (xd_append_arg): Use unsigned char instead of
28550 unsigned int for byte values (necessary for big-endian platform).
28551 (Fdbus_call_method): Handle the case of no returned arguments.
28552
285532007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
28554
28555 * dbusbind.c (xd_read_message): Use non-static input_event struct.
28556
285572007-12-31 Magnus Henoch <mange@freemail.hu>
28558
28559 * dbusbind.c (xd_signature): Signature of variant is just "v".
28560
285612007-12-30 Michael Albinus <michael.albinus@gmx.de>
28562
28563 * dbusbind.c: Fix several errors and compiler warnings.
28564 Reported by Tom Tromey <tromey@redhat.com>.
28565 (XD_ERROR, XD_DEBUG_MESSAGE)
28566 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
28567 (xd_append_arg): Part for basic D-Bus types rewritten.
28568 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
28569 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
28570 appropriate.
28571 (xd_read_message): Return Qnil. Don't signal an error; it is not
28572 useful during event reading.
28573 (Fdbus_register_signal): Signal an error if the check for
28574 FUNCTIONP fails.
28575 (Fdbus_register_method): New function. The implementation is not
28576 complete, the call of the function signals an error therefore.
28577 (Fdbus_unregister_object): New function, renamed from
28578 Fdbus_unregister_signal. The initial check signals an error, if
28579 the object is not well formed.
28580
285812007-12-30 Richard Stallman <rms@gnu.org>
28582
28583 * textprop.c (get_char_property_and_overlay):
28584 Signal error if POSITION is out of range in a buffer.
28585
285862007-12-29 Martin Rudalics <rudalics@gmx.at>
28587
28588 * w32fns.c (Fx_create_frame): Make copy of frame parameters
28589 because the original parameters are in pure storage now.
28590
285912007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28592
28593 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
28594
285952007-12-22 Eli Zaretskii <eliz@gnu.org>
28596
28597 * callint.c (syms_of_callint) <command-history>: Add reference to
28598 history-length in the doc string.
28599
286002007-12-17 Jason Rumney <jasonr@gnu.org>
28601
28602 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
28603 before passing as wParam.
28604
286052007-12-22 Michael Albinus <michael.albinus@gmx.de>
28606
28607 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
28608 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
28609 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
28610 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
28611 as number.
28612 (Fdbus_call_method): Fix docstring.
28613
286142007-12-21 Michael Albinus <michael.albinus@gmx.de>
28615
28616 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
28617 New macros.
28618 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
28619 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
28620 Simplify.
28621 (xd_signature): New function.
28622 (xd_append_arg): Compute also signatures. Major rewrite.
28623 (xd_retrieve_arg): Make debug messages friendly.
28624 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
28625 Check for signatures of arguments.
28626
286272007-12-19 Michael Albinus <michael.albinus@gmx.de>
28628
28629 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
28630 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
28631 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
28632 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
28633 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
28634 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
28635 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
28636 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
28637 (xd_retrieve_value): Remove. Functionality included in ...
28638 (xd_append_arg): New function.
28639 (Fdbus_call_method, Fdbus_send_signal): Apply it.
28640
286412007-12-16 Michael Albinus <michael.albinus@gmx.de>
28642
28643 * dbusbind.c (top): Include <stdio.h>.
28644 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
28645 dbus_message_new_method_call and dbus_message_new_signal.
28646 (Fdbus_register_signal): Rename unique_name to uname.
28647 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
28648 non-existing unique name. Fix typos in matching rule. Return an
28649 object which is useful in Fdbus_unregister_signal.
28650 (Fdbus_unregister_signal): Reimplementation, in order to remove
28651 only the corresponding entry.
28652 (Vdbus_registered_functions_table): Change the order of entries.
28653 Apply these changes in xd_read_message and Fdbus_register_signal.
28654
286552007-12-16 Andreas Schwab <schwab@suse.de>
28656
28657 * fileio.c (Finsert_file_contents): Fix overflow check to not
28658 depend on undefined integer overflow.
28659
286602007-12-14 Jason Rumney <jasonr@gnu.org>
28661
28662 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
28663 for characters above 127.
28664
286652007-12-13 Jason Rumney <jasonr@gnu.org>
28666
28667 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
28668 before dereferencing array.
28669 (lookup_vk_code): Remove zero comparison.
28670
286712007-12-14 Michael Albinus <michael.albinus@gmx.de>
28672
28673 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
28674 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
28675 Use `unsigned int' instead of `uint'.
28676 (xd_read_message, Fdbus_register_signal): Split expressions into
28677 multiple lines before operators "&&" and "||", according to the
28678 GNU Coding Standards.
28679
286802007-12-14 Eli Zaretskii <eliz@gnu.org>
28681
28682 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
28683
286842007-12-12 Juri Linkov <juri@jurta.org>
28685
28686 * buffer.c (Frename_buffer): In interactive spec replace
28687 `read-buffer' with `read-string' that uses `buffer-name-history'
28688 as history, and the current buffer's name as default.
28689
286902007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
28691
28692 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
28693 manipulating the backtrace manually.
28694 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
28695 (struct backtrace, backtrace_list): Remove.
28696 (command_loop_1): Remove dead var `no_direct'.
28697
28698 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
28699 preserve non-built-in buffer-local variables.
28700 (Fkill_all_local_variables): Don't re-create&re-set permanent
28701 buffer-local variables.
28702
287032007-12-09 Juri Linkov <juri@jurta.org>
28704
28705 * buffer.c (Frename_buffer): Change interactive spec from "s" to
28706 Lisp code that uses `read-buffer' with current buffer as default.
28707
287082007-12-08 Michael Albinus <michael.albinus@gmx.de>
28709
28710 * dbusbind.c (xd_read_message): Generate an event for every
28711 registered handler. There might be several handlers registered
28712 for the same signal.
28713 (Fdbus_register_signal): Don't overwrite a registration for the
28714 same signal. Add a new registration if handlers are different.
28715 (Vdbus_registered_functions_table): Rework doc string.
28716
287172007-12-07 Michael Albinus <michael.albinus@gmx.de>
28718
28719 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
28720 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
28721 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
28722 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
28723 Unify argument lists.
28724 (xd_read_message, Fdbus_register_signal): Reorder and extend event
28725 arguments and hash table keys. Use unique name for service.
28726 (Fdbus_unregister_signal): Remove checks.
28727 (Vdbus_registered_functions_table): Fix doc string.
28728
287292007-12-05 Magnus Henoch <mange@freemail.hu>
28730
28731 * process.c (make_process): Initialize pty_flag to 0.
28732
287332007-12-05 Jason Rumney <jasonr@gnu.org>
28734
28735 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
28736 specified XBMs.
28737
287382007-12-05 Richard Stallman <rms@gnu.org>
28739
28740 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
28741
287422007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28743
28744 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
28745 New variable.
28746 (mac_try_close_socket) [MAC_OSX]: New function.
28747 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28748 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28749
28750 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28751 Use mac_try_close_socket.
28752
287532007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28754
28755 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28756 reloc_base.
28757 (copy_dysymtab): Compute relocation base here.
28758 (rebase_reloc_address) [__ppc64__]: New function.
28759 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28760 changed.
28761
287622007-12-05 Jason Rumney <jasonr@gnu.org>
28763
28764 * w32proc.c (sys_spawnve): Quote args with wildcards.
28765
287662007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28767
28768 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28769 __objc_* sections.
28770 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28771
287722007-12-05 Michael Albinus <michael.albinus@gmx.de>
28773
28774 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28775 Move check for Vdbus_registered_functions_table to
28776 xd_read_queued_messages.
28777 (xd_read_queued_messages): Protect xd_read_message calls by
28778 internal_condition_case_1.
28779
287802007-12-04 Michael Albinus <michael.albinus@gmx.de>
28781
28782 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
28783 Qdbus_system_bus and Qdbus_session_bus, respectively.
28784 (Vdbus_intern_symbols): Remove.
28785 (Vdbus_registered_functions_table): New hash table.
28786 (XD_SYMBOL_INTERN_SYMBOL): Remove.
28787 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
28788 Rewrite in order to manage registered functions by hash table
28789 Vdbus_registered_functions_table.
28790
287912007-12-03 Jan Djärv <jan.h.d@swipnet.se>
28792
28793 * xterm.c: Update URL to Window Manager Specification in comment.
28794
287952007-12-02 Michael Albinus <michael.albinus@gmx.de>
28796
28797 * config.in (HAVE_DBUS): Add.
28798
28799 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
28800 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
28801 (obj): Add $(DBUS_OBJ).
28802 (LIBES): Add $(DBUS_LIBS).
28803 (dbusbind.o): New target.
28804
28805 * dbusbind.c: New file.
28806
28807 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
28808
28809 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
28810 (Qdbus_event): New Lisp symbol.
28811 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
28812 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 28813 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
28814
28815 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
28816
288172007-12-01 Richard Stallman <rms@gnu.org>
28818
28819 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
28820
288212007-11-30 Jason Rumney <jasonr@gnu.org>
28822
28823 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
28824 (w32con_reset_terminal_modes): Clear screen buffer.
28825 (w32_face_attributes): Don't use color indexes that are out of range.
28826 Only reverse the default colors.
28827
28828 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
28829 WINDOWSNT.
28830
28831 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
28832
288332007-11-29 Jason Rumney <jasonr@gnu.org>
28834
28835 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
28836 (w32_face_attributes): Use Vtty_defined_color_alist to determine
28837 if the terminal colors are initialized.
28838 (unspecified_fg, unspecified_bg): Remove unused declarations.
28839
288402007-11-29 Andreas Schwab <schwab@suse.de>
28841
28842 * keyboard.c (apply_modifiers): Fix typo.
28843
288442007-11-29 Richard Stallman <rms@gnu.org>
28845
28846 * keymap.c (Fcurrent_local_map): Doc fix.
28847
288482007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
28849
28850 * s/gnu-kfreebsd.h: New file.
28851
288522007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
28853
28854 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
28855 Don't cast redundantly.
28856
28857 * keyboard.c (KEY_TO_CHAR): New macro.
28858 (parse_modifiers, apply_modifiers): Accept integer arguments.
28859 (read_key_sequence): Use them to unify the "shift->unshift" mapping
28860 for chars and symbol keys.
28861 After doing such remapping, apply function-key-map again.
28862
288632007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
28864
28865 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
28866 compiled anymore.
28867
288682007-11-26 Andreas Schwab <schwab@suse.de>
28869
28870 * process.c (list_processes_1): Fix indentation level of the
28871 command column.
28872
288732007-11-23 Andreas Schwab <schwab@suse.de>
28874
28875 * editfns.c (Fformat): Handle %c specially since it requires the
28876 argument to be of type int.
28877
288782007-11-23 Markus Triska <markus.triska@gmx.at>
28879
28880 * emacs.c (main): Call init_editfns before init_process, since
28881 init_process sets Vprocess_connection_type depending on OS release.
28882
288832007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28884
28885 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28886 (find_symbol_value): Use do_symval_forwarding.
28887
28888 * data.c (set_internal): Set the value in the `cons-cell' (for
28889 Buffer_Local_values) not only for frame-local variables.
28890
288912007-11-22 Andreas Schwab <schwab@suse.de>
28892
28893 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28894 values to sprintf.
28895 * keymap.c (Fsingle_key_description): Likewise.
28896 * print.c (print_object): Likewise.
28897
288982007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28899
28900 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28901 file for image is nil.
28902
289032007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28904
28905 * term.c: Include stdarg.h.
28906 (fatal): Implement using varargs.
28907 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28908
289092007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28910
28911 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28912 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28913 Update call to buffer_slot_type_mismatch.
28914 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28915 (buffer_slot_type_mismatch): Update.
28916 * buffer.c (buffer_local_types): Remove.
28917 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28918 (defvar_per_buffer): Set the type in the buffer_objfwd.
28919
289202007-11-21 Jason Rumney <jasonr@gnu.org>
28921
28922 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28923 CreateFileMapping returns NULL on failure.
28924
289252007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28926
28927 * search.c (Fset_match_data): Remove the `evaporate' feature.
28928 (unwind_set_match_data): Don't use the `evaporate' feature.
28929
289302007-11-21 Jason Rumney <jasonr@gnu.org>
28931
28932 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28933
28934 * w32console.c (w32con_write_glyphs): Remove unused variables.
28935
289362007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28937
28938 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28939
28940 * s/darwin.h (MULTI_KBOARD): Remove.
28941
28942 * macfns.c (x_create_tip_frame, Fx_create_frame)
28943 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28944
289452007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28946
28947 * buffer.c (Fbuffer_local_value): Remove redundant test.
28948 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28949 than in `current-buffer' to match the comment.
28950 Do the swap using swap_in_global_binding.
28951
28952 * data.c (store_symval_forwarding, set_internal):
28953 * eval.c (specbind): Remove dead code.
28954
28955 * coding.c (detect_coding, Fupdate_coding_systems_internal):
28956 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
28957 Since we do not want to see internal Lisp_*fwd objects here.
28958
289592007-11-18 Jan Djärv <jan.h.d@swipnet.se>
28960
28961 * sysdep.c (init_system_name): Use getaddrinfo if available.
28962
28963 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
28964 (x_scroll_bar_note_movement): start, end, with, height in struct
28965 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
28966
289672007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
28968
28969 * puresize.h (BASE_PURESIZE): Increase to 1190000.
28970
289712007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
28972
28973 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
28974 This undoes Richard's change of 14-Oct-2002.
28975
28976 * alloc.c (allocate_other_vector):
28977 * lisp.h (allocate_other_vector): Remove.
28978
28979 * window.c (struct save_window_data): Move non-lisp data to the end
28980 and make it `int' rather than Lisp_Object.
28981 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
28982 Done wrap/unwrap integer values.
28983 (Fset_window_configuration, compare_window_configurations):
28984 Update use of fields to their new types.
28985
28986 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
28987 Turn integer fields into `int'. Merge x_window_low and x_window_high.
28988 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
28989 (SET_SCROLL_BAR_X_WINDOW): Remove.
28990 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
28991 Access the new x_window field directly.
28992 * xterm.c (x_scroll_bar_create): Use a pseudovector.
28993 Don't wrap/unwrap integers into Lisp_Objects.
28994 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
28995 (x_scroll_bar_report_motion):
28996 Don't wrap/unwrap integers into Lisp_Objects.
28997 (x_term_init): Use SDATA.
28998 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
28999 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29000 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29001 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29002 * xfns.c (x_set_background_color):
29003 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29004 Access the new x_window field directly.
29005
29006 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29007 (allocate_pseudovector): Make non-static.
29008
29009 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29010 (allocate_pseudovector): Declare.
29011 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29012
290132007-11-15 Andreas Schwab <schwab@suse.de>
29014
29015 * editfns.c (Fformat): Correctly format EMACS_INT values.
29016 Also take precision into account when formatting an integer.
29017
29018 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29019
290202007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29021
29022 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29023 (syms_of_keyboard): Defsubr it.
29024
29025 * data.c (swap_in_global_binding): Fix longstanding bug where
29026 store_symval_forwarding was not called with the right second argument,
29027 thus causing objfwd-ing from being dropped.
29028
290292007-11-14 Juanma Barranquero <lekktu@gmail.com>
29030
29031 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29032 (Fx_display_pixel_height, Fx_display_planes)
29033 (Fx_display_color_cells, Fx_server_max_request_size)
29034 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29035 (Fx_display_visual_class, Fx_display_save_under):
29036 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29037 (Fx_display_pixel_height, Fx_display_planes)
29038 (Fx_display_color_cells, Fx_server_max_request_size)
29039 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29040 (Fx_display_mm_height, Fx_display_mm_width)
29041 (Fx_display_backing_store, Fx_display_visual_class)
29042 (Fw32_select_font, Fx_display_save_under):
29043 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29044 (Fx_display_pixel_height, Fx_display_planes)
29045 (Fx_display_color_cells, Fx_server_max_request_size)
29046 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29047 (Fx_display_save_under): Fix typos in docstrings.
29048
290492007-11-14 Juanma Barranquero <lekktu@gmail.com>
29050
29051 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29052 corresponding to deleted entries; they are an implementation detail.
29053 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29054 Remove variables.
29055 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29056 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29057 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29058 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29059 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29060 (Fw32_define_rgb_color, Fw32_load_color_file)
29061 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29062 Fix typos in docstrings.
29063 (Fx_server_version): Reflow docstring.
29064 (Fw32_shell_execute): Doc fixes.
29065
290662007-11-13 Juanma Barranquero <lekktu@gmail.com>
29067
29068 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29069 if w32_parse_hot_key returned nil.
29070
290712007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29072
29073 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29074
290752007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 29076
aac0c6e3
MR
29077 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29078
29079 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29080
29081 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29082 Remove W32_SCROLL_BAR_CLICK_EVENT.
29083
29084 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29085 Add MULTIMEDIA_KEY_EVENT.
29086
29087 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29088 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29089 (make_lispy_event) [WINDOWSNT]: Use it to translate
29090 MULTIMEDIA_KEY_EVENT.
29091
29092 * w32term.h (WM_APPCOMMAND): Define if not already.
29093 (GET_APPCOMMAND_LPARAM): Likewise.
29094
29095 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29096 WM_APPCOMMAND.
29097
29098 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29099 (syms_of_w32fns): Export and initialize it.
29100 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29101
291022007-11-09 Chong Yidong <cyd@stupidchicken.com>
29103
29104 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29105 twice.
29106
29107 * xdisp.c (handle_face_prop): Fix last change.
29108
291092007-11-09 Richard Stallman <rms@gnu.org>
29110
29111 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29112 not just for after-strings and before-strings.
29113 Call face_for_overlay_string and pass the overlay to it.
29114 (handle_display_prop): Determine whether property came from an overlay.
29115 Pass OVERLAY arg to handle_single_display_spec.
29116 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29117 (load_overlay_strings): Fill in it->string_overlays.
29118 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29119
29120 * xfaces.c (face_for_overlay_string): Function renamed from
29121 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29122
29123 * dispextern.h (struct it): New elt string_overlays.
29124 New elt from_overlay, also in stack.
29125 Rearrange a few elements.
29126 (face_for_overlay_string): Decl renamed from
29127 face_at_buffer_position_no_overlays, and add argument.
29128
291292007-11-09 Richard Stallman <rms@gnu.org>
29130
29131 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29132 to get the base face for an overlay string.
29133
29134 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29135
29136 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29137
29138 * xdisp.c (handle_stop): Move some code out of loop.
29139
291402007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29141
29142 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29143 Fix conversion from Lisp object to ATSUFontID.
29144
291452007-11-09 Jason Rumney <jasonr@gnu.org>
29146
29147 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29148
291492007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29150
29151 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29152 Don't assume regions are aligned to page boundary.
29153 (print_load_command_name): Add LC_UUID if defined.
29154
291552007-11-09 Richard Stallman <rms@gnu.org>
29156
29157 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29158
291592007-11-07 Jason Rumney <jasonr@gnu.org>
29160
29161 * s/windows95.h: Remove.
29162
291632007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29164
29165 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29166 abort with a message on unhandled store_type values.
29167
291682007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29169
29170 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29171 Remove HAVE_X11R5 and HAVE_X11R4.
29172
291732007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29174
29175 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29176
291772007-11-01 Johan Bockgård <bojohan@gnu.org>
29178
29179 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29180 Don't set s->stippled_p here, since it has already been set by
29181 x_set_glyph_string_gc from x_draw_glyph_string.
29182
291832007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29184
29185 * sunfns.c: Remove file.
29186
29187 * m/sun386.h:
29188 * m/sun2.h:
29189 * m/sparc.h: Remove Sun windows code.
29190
291912007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29192
29193 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29194 (init_keyboard): Set current_kboard's window-system to nil.
29195 (tty_read_avail_input): Typo.
29196 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29197
291982007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29199
29200 * s/usg5-4.h:
29201 * s/usg5-3.h:
29202 * s/ptx.h:
29203 * m/is386.h:
29204 * m/ibmps2-aix.h:
29205 * Makefile.in: Remove all mentions of X10.
29206
29207 * dispnew.c (syms_of_display): Don't mention version 10.
29208
292092007-10-28 Juanma Barranquero <lekktu@gmail.com>
29210
29211 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29212 ($(BLD)/abbrev.$(O)): Remove.
29213
292142007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29215
29216 Rewrite abbrev.c in Elisp.
29217 * image.c (Qcount): Don't declare as extern.
29218 (syms_of_image): Initialize and staticpro `Qcount'.
29219 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29220 * emacs.c (main): Don't call syms_of_abbrev.
29221 * Makefile.in (obj): Remove abbrev.o.
29222 (abbrev.o): Remove.
29223 * abbrev.c: Remove.
29224
292252007-10-26 Martin Rudalics <rudalics@gmx.at>
29226
29227 * window.c (window_min_size_2): Don't count header-line.
29228
292292007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29230
29231 * frame.h (struct frame): Move all bit fields after the first bit
29232 field to take advantage of the available space. Group all the
29233 chars together to reduce wasted space due to padding.
29234
292352007-10-26 Juanma Barranquero <lekktu@gmail.com>
29236
29237 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29238
29239 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29240 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29241 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29242 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29243 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29244 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29245 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29246 (last_marked, mark_object_loop_halt): Make static.
29247
29248 * frame.c (syms_of_frame) <delete-frame-functions>:
29249 Fix typo in docstring.
29250
292512007-10-25 Juanma Barranquero <lekktu@gmail.com>
29252
29253 * w32.c (init_environment): Fix tiny memory leak.
29254 (w32_get_resource): Remove unused variable `ok'.
29255
292562007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29257
29258 Make `window-system' into a keyboard-local variable (rather than
29259 frame-local as done originally by multi-tty).
29260
29261 * keyboard.h (struct kboard): Add Vwindow_system.
29262 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29263 (mark_kboards): Mark Vwindow_system.
29264
29265 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29266 (init_display): Don't set the obsolete `window-system' frame-param.
29267
29268 * xterm.c (x_term_init):
29269 * w32term.c (w32_create_terminal):
29270 * term.c (init_tty): Set Vwindow_system.
29271 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29272 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29273
29274 * xfns.c (Fx_create_frame, x_create_tip_frame):
29275 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29276 * macfns.c (Fx_create_frame):
29277 Don't set the obsolete `window-system' frame-param.
29278
29279 * frame.h (Qwindow_system): Remove.
29280 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29281 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29282
292832007-10-24 Richard Stallman <rms@gnu.org>
29284
29285 * frame.c (x_figure_window_size): For fullscreen case,
29286 set USPosition | PPosition without clobbering rest of window_prompting.
29287
29288 * keyboard.c (Fcurrent_idle_time): Doc fix.
29289
29290 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29291
292922007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29293
29294 * process.c (unwind_request_sigio): Only define if __ultrix__.
29295
29296 * callproc.c (child_setup): Remove spurious *.
29297
29298 * lisp.h (Fget_text_property): Declare.
29299 (have_menus_p): Declare it here rather than in sys-dep header files.
29300 * macterm.h (have_menus_p):
29301 * msdos.h (have_menus_p):
29302 * xterm.h (have_menus_p): Remove.
29303
29304 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29305 (Fmake_variable_frame_local): Just check the variable's const-ness
29306 rather than checking nil or t.
29307
293082007-10-22 Jason Rumney <jasonr@gnu.org>
29309
29310 * w32fns.c: Include math.h.
29311 (w32_abort): Declaration moved to nt/config.nt.
29312
29313 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29314 (abort): Redefinition moved to nt/config.nt.
29315
29316 * m/windowsnt.h: Remove.
29317
293182007-10-22 Juanma Barranquero <lekktu@gmail.com>
29319
29320 * emacs.c (Fdump_emacs): Fix typo in message.
29321 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29322 <installation-directory>: Reflow docstring.
29323
293242007-10-22 Juri Linkov <juri@jurta.org>
29325
29326 * minibuf.c: Allow minibuffer default to be a list of default values.
29327 With empty input use the first element of this list as returned default.
29328 (string_to_object)
29329 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29330 (read_minibuf): If defalt is cons, set histstring to its car.
29331 (Fread_string): If default_value is cons, set val to its car.
29332 (Fread_buffer): If def is cons, use its car.
29333 (Fcompleting_read): If defalt is cons, set val to its car.
29334
293352007-10-21 Michael Albinus <michael.albinus@gmx.de>
29336
29337 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29338
293392007-10-20 Juanma Barranquero <lekktu@gmail.com>
29340
29341 * doc.c (Fdocumentation): Check for advice in all cases.
29342
293432007-10-19 Chong Yidong <cyd@stupidchicken.com>
29344
29345 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29346
293472007-10-19 Richard Stallman <rms@gnu.org>
29348
29349 * doc.c (Fdocumentation): Check for and handle an advised function.
29350
293512007-10-19 Juanma Barranquero <lekktu@gmail.com>
29352
29353 * process.c (Fset_process_filter): Doc fix.
29354
293552007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29356
29357 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29358 which caused key-translation-map to applied repeatedly (thus breaking
29359 double-mode).
29360
293612007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29362
29363 * xselect.c (x_own_selection, x_handle_selection_clear)
29364 (x_clear_frame_selections):
29365 * w32menu.c (list_of_panes, list_of_items):
29366 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29367 * textprop.c (validate_plist, interval_has_all_properties)
29368 (interval_has_some_properties, interval_has_some_properties_list)
29369 (add_properties, text_property_list):
29370 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29371 * minibuf.c (Fassoc_string):
29372 * macselect.c (x_own_selection, x_clear_frame_selections)
29373 (Fx_disown_selection_internal):
29374 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29375 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29376
293772007-10-17 Chong Yidong <cyd@stupidchicken.com>
29378
29379 * process.c: Link to libs for calling res_init() if available.
29380 (Fmake_network_process): Call res_init() before getaddrinfo or
29381 gethostbyname, if possible.
29382
293832007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29384
29385 * lread.c (read1): Set pvectype for char_tables.
29386
29387 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29388 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29389 Add type checks.
29390 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29391
29392 * alloc.c (free_misc): Use XMISCTYPE.
29393 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29394
293952007-10-17 Glenn Morris <rgm@gnu.org>
29396
29397 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29398 (syms_of_minibuf): Add Qcompletion_ignore_case.
29399 * dired.c (Qcompletion_ignore_case): Change to external.
29400 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29401 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29402 (Fread_file_name): Use it rather than intern'ing.
29403
29404 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29405 (Fread_coding_system): Ignore case of user input.
29406
294072007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29408
29409 * xdisp.c (handle_display_prop): Ignore display specs after
29410 replacing one when string text is being replaced.
29411 (handle_single_display_spec): Pretend as if characters with display
29412 property haven't been consumed only when buffer text is being replaced.
29413
294142007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29415
29416 * xfns.c (Fx_create_frame, Fx_display_list):
29417 * window.c (window_fixed_size_p, enlarge_window)
29418 (shrink_window_lowest_first):
29419 * macterm.c (init_font_name_table):
29420 * macfns.c (Fx_create_frame, Fx_display_list):
29421 * lread.c (close_load_descs):
29422 * keyboard.c (read_char_x_menu_prompt):
29423 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29424 * coding.c (code_convert_region_unwind): Test the type of an object
29425 rather than just !NILP before extracting data from it.
29426
29427 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29428
29429 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29430 (XMISCANY): New macro.
29431 (XMISCTYPE): Use it.
29432 (struct Lisp_Misc_Any): New type.
29433 (union Lisp_Misc): Use it.
29434 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29435 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29436 (find_symbol_value, set_internal, default_value, Fset_default)
29437 (Fmake_variable_buffer_local, Fmake_local_variable)
29438 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29439 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29440 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29441 * alloc.c (allocate_buffer): Set the size and tag.
29442 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29443 Use XMISCANY.
29444 (die): Follow the GNU convention for error messages.
29445 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29446 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29447 tag any more.
29448 (set_buffer_internal_1):
29449 * frame.c (store_frame_param):
29450 * eval.c (specbind):
29451 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29452
29453 * doc.c (Fsnarf_documentation): Simplify.
29454
294552007-10-14 Juanma Barranquero <lekktu@gmail.com>
29456
29457 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29458 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29459
294602007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29461
29462 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29463
294642007-10-14 Juanma Barranquero <lekktu@gmail.com>
29465
29466 * eval.c (do_autoload): Don't save autoloads.
29467
29468 * data.c (Ffset): Save autoload of the function being set.
29469
294702007-10-07 John Paul Wallington <jpw@pobox.com>
29471
29472 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29473 parameter before setting up faces.
29474
294752007-10-13 Eli Zaretskii <eliz@gnu.org>
29476
29477 * ccl.c (Fregister_code_conversion_map):
29478 * keyboard.c (append_tool_bar_item): Reformat last change.
29479
29480 * lisp.h (eabs): Rename from `abs'. All callers changed.
29481
294822007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29483
29484 * buffer.c (add_overlay_mod_hooklist):
29485 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29486 * fontset.c (make_fontset):
29487 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29488 (append_tool_bar_item):
29489 * macmenu.c (grow_menu_items):
29490 * w32menu.c (grow_menu_items):
29491 * xmenu.c (grow_menu_items): Use larger_vector.
29492
294932007-10-13 Eli Zaretskii <eliz@gnu.org>
29494
29495 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29496 selected frame'' on MSDOS).
29497
294982007-10-12 Martin Rudalics <rudalics@gmx.at>
29499
29500 * frame.c (Qexplicit_name): New variable.
29501 (x_report_frame_params): Report it in parameter alist.
29502 (syms_of_frame): Intern and staticpro it.
29503
295042007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29505
29506 * macfns.c (x_create_tip_frame): Set terminal for frame.
29507
295082007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29509
29510 * frame.c (Qenvironment): Remove.
29511 (syms_of_frame) <Qenvironment>: Don't initialize.
29512 (Fdelete_frame): Don't treat the `environment' param specially.
29513 * frame.h (Qenvironment): Don't declare.
29514 * callproc.c (set_initial_environment): Don't set unused frame param.
29515
29516 * frame.c (Fframe_with_environment): Remove.
29517 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29518
29519 * lisp.h (Fframe_with_environment): Don't declare.
29520
295212007-10-10 Juanma Barranquero <lekktu@gmail.com>
29522
29523 * indent.c (indent_tabs_mode, last_known_column)
29524 (last_known_column_modified): Make static.
29525 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29526
295272007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29528
29529 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29530
295312007-10-09 Jason Rumney <jasonr@gnu.org>
29532
29533 * w32term.c (x_set_window_size): Disable code that attempts to tell
29534 Lisp code about a size change before it actually happens.
29535
295362007-10-09 Richard Stallman <rms@gnu.org>
29537
29538 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29539 return HANDLED_RETURN.
29540
295412007-10-08 Martin Rudalics <rudalics@gmx.at>
29542
29543 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29544 when there's an unread command event.
29545
29546 * frame.c (focus_follows_mouse): Move here from frame.el to allow
29547 window autoselection act appropriately when leaving selected frame.
29548 (syms_of_frame): Initialize focus_follows_mouse.
29549 * frame.h (focus_follows_mouse): Extern it.
29550 * macterm.c (XTread_socket): When focus_follows_mouse is nil
29551 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
29552 * msdos.c (dos_rawgetc): Likewise.
29553 * w32term.c (w32_read_socket): Likewise.
29554 * xterm.c (handle_one_xevent): Likewise.
29555 * xdisp.c (syms_of_xdisp): In doc-string of
29556 mouse-autoselect-window mention focus-follows-mouse.
29557
295582007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29559
29560 * macterm.c (mac_load_query_font): Fix missing return value.
29561 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
29562 Add BLOCK_INPUT.
29563
295642007-10-08 Richard Stallman <rms@gnu.org>
29565
29566 * xdisp.c (get_window_cursor_type): Implement documented behavior
29567 for cursor-in-non-selected-windows = t.
29568
295692007-10-08 Jason Rumney <jasonr@gnu.org>
29570
29571 * w32.c (w32_get_resource): Always close registry keys.
29572
295732007-10-08 Jason Rumney <jasonr@gnu.org>
29574
29575 * makefile.w32-in (LIBS): Add COMCTL32.
29576
29577 * w32fns.c (globals_of_w32fns): Init common controls.
29578
295792007-10-08 Richard Stallman <rms@gnu.org>
29580
29581 * image.c (our_memory_buffer): Rename from omfib_buffer.
29582
295832007-10-08 Richard Stallman <rms@gnu.org>
29584
29585 * buffer.c (Foverlays_at): Doc fix.
29586
295872007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
29588
29589 * fns.c (Fplist_put): Preserve uneven tail data.
29590
295912007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
29592
29593 * termhooks.h (enum event_kind): Remove trailing comma.
29594
29595 * frame.h (enum): Remove trailing comma.
29596
295972007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
29598
29599 * w32proc.c (delete_child): Don't terminate threads of zombies.
29600
296012007-10-08 Martin Rudalics <rudalics@gmx.at>
29602
29603 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
29604
29605 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
29606 last-repeatable-command.
29607 (init_kboard): Initialize Vlast_repeatable_command.
29608 (command_loop_1): Set it to real_this_command unless that was
29609 bound to an input event.
29610 (mark_kboards): Mark it.
29611
296122007-10-08 Richard Stallman <rms@gnu.org>
29613
29614 * eval.c (condition-case): Doc fix.
29615
296162007-10-08 Masatake YAMATO <jet@gyve.org>
29617
29618 * xfaces.c (tty_supports_face_attributes_p): Fix code
29619 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
29620 was copied and not edited.
29621
296222007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
29623
29624 Add new `input-decode-map' keymap and use it for terminal
29625 escape sequences.
29626 * keyboard.h (struct kboard): Add Vinput_decode_map.
29627 Remove Vlocal_key_translation_map.
29628 * keyboard.c (read_key_sequence): Add support for input-decode-map.
29629 (init_kboard): Init input-decode-map.
29630 Replace local-key-translation-map back with key-translation-map.
29631 (syms_of_keyboard): Declare input-decode-map.
29632 Remove local-key-translation-map. Update docstrings.
29633 (mark_kboards): Mark Vinput_decode_map.
29634 Don't mark Vlocal_key_translation_map.
29635 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
29636 Replace local-key-translation-map back with key-translation-map.
29637 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
29638 Bind in input-decode-map rather than function-key-map.
29639
29640 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
29641 This was made redundant by the previous introduction of XSETPVECTYPE.
29642
296432007-10-09 Richard Stallman <rms@gnu.org>
29644
29645 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
29646
296472007-09-29 Richard Stallman <rms@gnu.org>
29648
29649 * eval.c (internal_condition_case_2, internal_condition_case_1)
29650 (internal_condition_case): Reenable abort if x_catching_errors ()
29651 to see if that really happens and why.
29652
296532007-10-06 Andreas Schwab <schwab@suse.de>
29654
29655 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
29656
296572007-10-04 Juanma Barranquero <lekktu@gmail.com>
29658
29659 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
29660
296612007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
29662
29663 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
29664
296652007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
29666
29667 * window.h (struct window):
29668 * window.c (struct save_window_data, struct saved_window):
29669 * termhooks.h (struct terminal):
29670 * process.h (struct Lisp_Process):
29671 * frame.h (struct frame):
29672 * buffer.h (struct buffer):
29673 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
29674 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
29675 The size field of (pseudo)vectors is now unsigned.
29676 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
29677
29678 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
29679 Turn `count' into an integer.
29680
29681 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
29682 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
29683 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
29684 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
29685 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
29686
29687 * alloc.c (allocate_pseudovector): New fun.
29688 (ALLOCATE_PSEUDOVECTOR): New macro.
29689 (allocate_window, allocate_terminal, allocate_frame)
29690 (allocate_process): Use it.
29691 (mark_vectorlike): New function.
29692 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
29693 (mark_terminals): Use it.
29694 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
29695 (Fmake_byte_code): Use XSETPVECTYPE.
29696
29697 * frame.c (Fframe_parameters): Minor simplification.
29698
29699 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
29700
29701 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
29702
29703 * buffer.c (Fget_buffer_create, init_buffer_once):
29704 * lread.c (defsubr):
29705 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
29706
29707 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
29708 defined differently in the m/*.h files.
29709 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
29710 (XSETPVECTYPE): New macro.
29711 (XSETPSEUDOVECTOR): Use it.
29712
29713 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
29714 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
29715
29716 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
29717 * lread.c (defvar_per_buffer):
29718 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
29719
29720 * window.c (candidate_window_p): Only consider as visible frames that
29721 are on the same terminal.
29722
29723 * m/ibms390x.h (MARKBIT): Remove unused macro.
29724
297252007-10-01 Juanma Barranquero <lekktu@gmail.com>
29726
29727 * lread.c (Fload): Fix typo in docstring.
29728
297292007-10-01 Michaël Cadilhac <michael@cadilhac.name>
29730
29731 * floatfns.c (Fexpt): Manually check for overflows, so that a power
29732 of a non-zero value can't yield zero.
29733
297342007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
29735
29736 * term.c (term_clear_mouse_face, term_mouse_highlight)
29737 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
29738
29739 * print.c (safe_debug_print): Use XHASH.
29740
29741 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
29742 Lisp elements such as tags.
29743 (XHASH): New macro.
29744 (EQ): Use it.
29745 (SREF, SSET, STRING_COPYIN): Use SDATA.
29746 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29747
29748 * alloc.c (mark_terminal): Remove left-over declaration.
29749 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29750 (allocate_vectorlike): Remove type argument. Adjust callers.
29751 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29752 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29753
29754 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29755 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29756 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29757 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29758 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29759 Use them.
29760
29761 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29762 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29763 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29764
297652007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29766
29767 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29768 loaded by default.
29769
297702007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29771
29772 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29773 on this tty.
29774 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29775
29776 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29777 Update all users.
29778 (handle_one_term_event): Use Gpm_DrawPointer.
29779 (Fgpm_mouse_start): Rename from Fterm_open_connection.
29780 Signal errors instead of returning nil. Always return nil.
29781 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
29782 Make it a noop if gpm-mouse was not activated.
29783 (syms_of_term): Update names.
29784
297852007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
29786
29787 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
29788 (init_sys_modes): Check that gpm_tty is the current tty.
29789
29790 * alloc.c (allocate_terminal): Set the vector size to only count the
29791 lisp fields. Initialize those to nil.
29792 (mark_object): Don't treat terminals specially.
29793 (mark_terminal): Remove.
29794 (mark_terminals): Use mark_object instead.
29795
29796 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
29797 the GC to the beginning.
29798
29799 * indent.h:
29800 * indent.c: Use EMACS_INT for ints coming from Elisp data.
29801
29802 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
29803
298042007-09-25 Jason Rumney <jasonr@gnu.org>
29805
29806 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
29807
29808 * w32console.c (create_w32cons_output): Remove.
29809
29810 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
29811
29812 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
29813 (reset_sys_modes): Use reset_terminal_modes_hook.
29814
298152007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
29816
29817 * eval.c (do_autoload): Don't output any message.
29818
298192007-09-24 Juri Linkov <juri@jurta.org>
29820
29821 * emacs.c (standard_args): Change priority of "--no-splash"
29822 from 40 to 3. Add "--no-desktop" with the same priority.
29823
298242007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
29825
29826 * alloc.c (gc_sweep): Check cons cell mark bits word by word
29827 and optimize the case where they are all 1.
29828
298292007-09-23 Johannes Weiner <hannes@saeurebad.de>
29830
29831 * lisp.h (abs): Define if not defined.
29832 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
29833 Don't define `abs', since it's defined in lisp.h.
29834
298352007-09-22 Eli Zaretskii <eliz@gnu.org>
29836
29837 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
29838 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
29839 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
29840 (init_tty): Use DEV_TTY instead of "/dev/tty".
29841 [WINDOWSNT]: No need to protect from NAME arg being null.
29842
298432007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
29844
29845 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
29846 up the tty state.
29847
298482007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29849
29850 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
29851 (gpm_tty): Change its type.
29852 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
29853 (gpm_tty): Change its type and initialize it.
29854 (Fterm_open_connection): Check the frame is indeed a tty.
29855 Use the new gpm_tty.
29856 (Fterm_close_connection): Use the new gpm_tty.
29857 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
29858 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
29859
298602007-09-21 Juanma Barranquero <lekktu@gmail.com>
29861
29862 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
29863 underline_color, to draw strike-through.
29864
298652007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29866
29867 * lisp.h (allocate_terminal): Declare.
29868
29869 * window.c (candidate_window_p): Consider frames that are being placed
29870 by the user as somewhere between visible and iconified.
29871 (window_loop): Prefer windows on the current frame.
29872 (Fselect_window): Move the use of select-frame to the beginning so we
29873 can just delegate all the work (it'll call us back anyway).
29874
29875 * frame.c (Qdisplay_environment_variable):
29876 * frame.h (Qdisplay_environment_variable): Delete.
29877
29878 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29879 of the first arg, since that value may be a union.
29880
29881 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29882 parameter rather than Qdisplay_environment_variable. If all else
29883 fails, look for DISPLAY in initial-environment.
29884
298852007-09-21 Glenn Morris <rgm@gnu.org>
29886
29887 * Makefile.in (emacstool): Remove target.
29888 (lisp, shortlisp): Remove termdev.elc.
29889
298902007-09-21 Markus Triska <markus.triska@gmx.at>
29891
29892 * xterm.c (x_delete_display): Compile session management conditionally.
29893
298942007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29895
29896 * callproc.c (getenv_internal_1): New function.
29897 (getenv_internal): Use it.
29898 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29899
29900 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29901 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29902 (Fset_terminal_parameter): Work with dead terminals as well.
29903 (Fmodify_terminal_parameters): Remove.
29904
29905 * terminal.c (get_terminal): Handle terminals.
29906 Make sure the terminal returned is live.
29907 (create_terminal): Use allocate_terminal.
29908 (mark_terminals): Move to alloc.c.
29909 (delete_terminal): Use terminal->name as liveness status.
29910 NULL out fields after freeing their contents.
29911 Don't deallocate the object.
29912 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29913 rather than an int.
29914 (Fterminal_live_p): Accept non-integer arguments.
29915 (Fterminal_list): Return terminal objects rather than an ints.
29916
29917 * alloc.c (enum mem_type): New member for `terminal' objects.
29918 (allocate_terminal): New function.
29919 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29920 Handle terminals.
29921 (mark_terminal): New fun.
29922 (mark_terminals): Move from terminal.c.
29923
29924 * term.c (get_tty_terminal): Don't treat output_initial specially.
29925 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29926 (delete_tty): Use terminal->name as liveness status.
29927
29928 * termhooks.h (struct terminal): Make it into a pseudovector.
29929 Remove `deleted' replaced by checking `name's nullness.
29930
29931 * print.c (print_object): Handle terminals.
29932
29933 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29934 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29935
29936 * frame.c (make_terminal_frame):
29937 * keyboard.c (tty_read_avail_input):
29938 * w32term.c (x_delete_terminal):
29939 * xfns.c (Fx_create_frame, x_create_tip_frame):
29940 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29941
299422007-09-20 Glenn Morris <rgm@gnu.org>
29943
29944 * process.c (Fmake_network_process): Doc fix.
29945
299462007-09-19 Jason Rumney <jasonr@gnu.org>
29947
29948 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29949
299502007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29951
29952 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29953 Fix a C warning regarding variable constness.
29954
29955 * xterm.c (handle_one_xevent): Fix a C warning.
29956
299572007-09-18 Jason Rumney <jasonr@gnu.org>
29958
29959 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
29960
299612007-09-17 Jan Djärv <jan.h.d@swipnet.se>
29962
29963 * gtkutil.c (gdpy_def): New variable.
29964 (xg_initialize): Initialize gdpy_def.
29965 (xg_display_close): If no other display exists, set gdpy_def to a
29966 new connection.
29967
299682007-09-16 Jan Djärv <jan.h.d@swipnet.se>
29969
29970 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
29971 when we have no file name for the icon.
29972 (xg_tool_bar_expose_callback): Remove.
29973 (xg_create_tool_bar): Don't connect expose signal to
29974 xg_tool_bar_expose_callback.
29975 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
29976
299772007-09-16 Andreas Schwab <schwab@suse.de>
29978
29979 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
29980 values instead of zapping them.
29981
299822007-09-14 Glenn Morris <rgm@gnu.org>
29983
29984 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
29985 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
29986 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
29987 scope and rename to omfib_buffer for clarity.
29988 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
29989
299902007-09-14 Kenichi Handa <handa@m17n.org>
29991
29992 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
29993
299942007-09-13 Jason Rumney <jasonr@gnu.org>
29995
29996 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
29997
29998 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
29999
30000 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30001 (mac_term_init): Call here instead, passing rif.
30002
300032007-09-13 Glenn Morris <rgm@gnu.org>
30004
30005 * s/hpux.h: No longer define `static' as nothing.
30006
300072007-09-13 Johan Bockgård <bojohan@gnu.org>
30008
30009 * callint.c (Fcall_interactively): Remove unused var `fun'.
30010
300112007-09-12 Romain Francoise <romain@orebokech.com>
30012
30013 * window.c (prefer_window_split_horizontally, display_buffer):
30014 Revert 2007-09-08 change.
30015
300162007-09-12 Glenn Morris <rgm@gnu.org>
30017
30018 * alloca.c: Remove file.
30019 * Makefile.in (alloca): Do not undef.
30020 (allocaobj, alloca.o): Remove.
30021 (otherobj): Remove allocaobj.
30022 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30023 * regex.c (C_ALLOCA): Remove all references and code that was only
30024 used when this was defined.
30025 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30026 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30027 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30028
30029 * Makefile.in (SOURCES, unlock, relock): Delete.
30030
30031 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30032 (menu_grab_callback): All uses changed.
30033
30034 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30035 (x_reply_selection_request): All uses changed.
30036
300372007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30038
30039 * lread.c (load_warn_old_style_backquotes): Change message to look
30040 better when it appears in the middle of byte-compiler messages.
30041
300422007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30043
30044 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30045
30046 * xterm.c (x_create_terminal): Add comment.
30047
30048 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30049
300502007-09-10 Richard Stallman <rms@gnu.org>
30051
30052 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30053
300542007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30055
30056 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30057 (DEFUN): Document `intspec', use it instead of `prompt'.
30058
30059 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30060
30061 * data.c (Finteractive_form): If the interactive specification starts
30062 with a `(', use it as a Lisp form.
30063
30064 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30065 name and file modes.
30066
30067 * callint.c (Fcall_interactively): Comment fixes.
30068
300692007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30070
30071 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30072 and compiled functions.
30073
300742007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30075
30076 * window.c (prefer_window_split_horizontally): New variable.
30077 (display_buffer): Consider splitting window horizontally depending
30078 on prefer_window_split_horizontally.
30079
300802007-09-08 Eli Zaretskii <eliz@gnu.org>
30081
30082 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30083
300842007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30085
30086 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30087
30088 * frame.c (x_set_frame_parameters): Check number is positive before
30089 using XFASTINT.
30090
30091 * window.c (freeze_window_start): Don't presume selected_window holds
30092 a window object.
30093 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30094
300952007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30096
30097 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30098
300992007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30100
30101 * window.c (Vsplit_window_preferred_function): New var.
30102 (Fdisplay_buffer): Use it.
30103 (syms_of_window): Export, and initialize it.
30104
301052007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30106
30107 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30108
301092007-09-06 Glenn Morris <rgm@gnu.org>
30110
30111 * gtkutil.c (menu_grab_callback) <cnt>:
30112 * xselect.c (x_reply_selection_request) <cnt>: Move static
30113 variable to file scope.
30114
301152007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30116
30117 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30118 consistent values of selected_frame and selected_window.
30119
301202007-09-04 Jason Rumney <jasonr@gnu.org>
30121
30122 * w32console.c (initialize_w32_display): Zero unused hooks.
30123
301242007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30125
30126 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30127 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30128
301292007-09-04 Jason Rumney <jasonr@gnu.org>
30130
30131 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30132 in w32console.c. Set up input. Remove XXX comments that have been
30133 confirmed as correct.
30134
30135 * s/ms-w32.h (MULTI_KBOARD): Define.
30136
30137 * w32console.c (one_and_only_w32cons): Remove.
30138 (initialize_w32_display): Take terminal argument.
30139
30140 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30141 initialize_w32_display.
30142 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30143
30144 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30145
30146 * keyboard.c (discard_mouse_events): Discard it.
30147 (make_lispy_event): Translate it to a lisp event.
30148 (lispy_wheel_names): Add wheel-left and right events.
30149 (syms_of_keyboard): Enlarge wheel_syms.
30150
30151 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30152 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30153
30154 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30155
30156 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30157 from WM_MOUSEHWHEEL.
30158 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30159
30160 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30161 terminal.
30162
30163 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30164 keyboard for the terminal.
30165
301662007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30167
30168 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30169 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30170 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30171 and resume-tty-function to resume-tty-hook.
30172 (Fsuspend_tty, Fresume_tty): Use new names.
30173
301742007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30175
30176 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30177 if it starts with "n:".
30178
301792007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30180
30181 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30182
301832007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30184
30185 * frame.h:
30186 * frame.c (Qterm_environment_variable): Remove.
30187 (syms_of_frame): Don't init and staticpro it.
30188
30189 * callproc.c (getenv_internal): Remove special case for $TERM.
30190
30191 * callproc.c (Vinitial_environment): New variable.
30192 (set_initial_environment): Initialize it.
30193 (syms_of_callproc): Declare it.
30194 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30195 TERM under which a process runs is never related to the TERM in which
30196 Emacs is running.
30197
301982007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30199
30200 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30201 * s/darwin.h: ... do it here.
30202
302032007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30204
30205 * lisp.h (set_initial_environment): Rename from set_global_environment.
30206
30207 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30208 removed by mistake on the multi-tty branch.
30209
30210 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30211 (Fmodify_frame_parameters): Return a value.
30212
30213 * image.c (png_load): Comment-out var only used in commented-out code.
30214
30215 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30216 before passing it to mark_object.
30217
30218 * xfaces.c (internal_resolve_face_name): Return a value.
30219 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30220
30221 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30222 (x_icon): Comment-out var only used in commented-out code.
30223
302242007-08-29 Romain Francoise <romain@orebokech.com>
30225
30226 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30227 QUIT hasn't been provided.
30228
302292007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30230
30231 * callproc.c (child_setup, getenv_internal): Use the
30232 display-environment-variable and term-environment-variable frame params.
30233 (set_initial_environment): Initialise Vprocess_environment.
30234
30235 * config.in: Disable multi-keyboard support on a mac.
30236
30237 * frame.c (Qterm_environment_variable)
30238 (Qdisplay_environment_variable): New variables.
30239 (syms_of_frame): Intern and staticpro them.
30240 (Fmake_terminal_frame): Disable output method test.
30241
30242 * frame.h: Declare them here.
30243
30244 * macfns.c (x_set_mouse_color): Get rif from the frame.
30245 (x_set_tool_bar_lines): Don't use updating_frame.
30246 (mac_window): Add 2 new parameters for consistency with other systems.
30247 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30248 frame parameters following what is done in X11 and w32. Don't use
30249 FRAME_MAC_DISPLAY_INFO.
30250 (Fx_open_connection, start_hourglass): Remove window-system check.
30251 (x_create_tip_frame): Get the keyboard from the terminal.
30252
30253 * macmenu.c: Reorder includes.
30254 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30255
30256 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30257 terminal parameter.
30258 (x_clear_frame): Add a frame parameter.
30259 (note_mouse_movement): Get rif from the frame.
30260 (mac_term_init): Initialize the terminal.
30261 (mac_initialize): Make static and move terminal initialization ...
30262 (mac_create_terminal): ... to this new function.
30263
30264 * macterm.h (struct mac_display_info): Add terminal.
30265 (mac_initialize): Delete declaration.
30266
30267 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30268
30269 * sysdep.c: Comment out text after #endif.
30270
30271 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30272 is defined. Better initialize ttys in windows. Use terminal
30273 specific mouse_position_hook.
30274
30275 * termhooks.h (union display_info): Add mac_display_info.
30276
30277 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30278 Set the default minibuffer frame, window_system and the rest of the
30279 frame parameters following what is done in X11.
30280
30281 * w32term.c (w32_initialize): Make static.
30282
30283 * xselect.c (x_handle_selection_clear): Only access
30284 terminal->kboard when MULTI_KBOARD is defined.
30285
30286 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30287 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30288
302892007-08-29 Jason Rumney <jasonr@gnu.org>
30290
30291 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30292 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30293
30294 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30295 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30296
30297 * keyboard.c (restore_kboard_configuration): Only define when
30298 MULTI_KBOARD defined.
30299
30300 * makefile.w32-in: Update dependancies from Makefile.in.
30301 (OBJ1): Add terminal.$(O)
30302
30303 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30304 Don't define function body.
30305 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30306
30307 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30308
30309 * w32.c (request_sigio, unrequest_sigio): Remove.
30310
30311 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30312 (w32con_clear_frame, w32con_clear_end_of_line)
30313 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30314 (w32con_delete_glyphs, w32con_set_terminal_window)
30315 (scroll_line, w32_sys_ring_bell): Add frame arg.
30316 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30317 Add terminal arg.
30318 (PICK_FRAME): Remove.
30319 (w32con_write_glyphs): Use frame specific terminal coding.
30320 (one_and_only_w32cons): New global variable.
30321 (initialize_w32_display): Use it for storing hooks.
30322 (create_w32cons_output): New function.
30323
30324 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30325 arg a frame.
30326
30327 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30328 Set window_system.
30329 (x_set_tool_bar_lines): Don't use updating_frame.
30330 (Fx_create_frame): Set terminal and ref count.
30331 (Fx_open_connection): Remove window-system check.
30332
30333 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30334
30335 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30336 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30337 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30338 Add frame arg.
30339 (x_delete_terminal, w32_create_terminal): New functions.
30340 (w32_term_init): Create a terminal.
30341 (w32_initialize): Move terminal specific initialization to
30342 w32_create_terminal.
30343
30344 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30345 (w32_clear_rect, w32_clear_area): Use background from frame.
30346 (w32_display_info): Add terminal.
30347 (w32_sys_ring_bell, x_delete_display): Declare here.
30348
30349 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30350
30351 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30352
303532007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30354
30355 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30356 Fix get_named_tty calls for the controlling tty.
30357
303582007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30359
194d44e7 30360 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
30361
303622007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30363
30364 * term.c (tty_insert_glyphs): Add missing first parameter.
30365
303662007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30367
30368 * buffer.c (Fbuffer_list, Fbury_buffer):
30369 Take frame->buried_buffer_list into account.
30370
30371 * cm.c (current_tty): New variable, for cmputc().
30372 (cmputc): Use it.
30373 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30374 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30375 (cmgoto): Add tty parameter. Pass it on to calccost().
30376 Use emacs_tputs() instead of tputs().
30377
30378 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30379 tputs().
30380 (current_tty): New variable, for cmputc().
30381 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30382
30383 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30384 (internal_condition_case, internal_condition_case_1)
30385 (internal_condition_case_2): Don't abort when x_catching_errors.
30386
30387 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30388 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30389 prevent crashes caused by bogus longjmps in read_char.
30390
30391 * keymap.h (Fset_keymap_parent): Add EXFUN.
30392
30393 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30394 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30395 Remove redundant definition.
30396
30397 * macfns.c (x_set_mouse_color, x_make_gc):
30398 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30399
30400 * w32term.c (x_free_frame_resources):
30401 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30402 (w32_initialize): Use the accessor macros for terminal characteristics.
30403
30404 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30405 Use the accessor macros for terminal characteristics.
30406 * msdos.c (internal_terminal_init): Use the accessor macros for
30407 terminal characteristics.
30408 (ScreenVisualBell, internal_terminal_init):
30409 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30410
30411 * termopts.h (no_redraw_on_reenter): Declare.
30412
30413 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30414 (mark_terminals, mark_ttys): Declare.
30415 (Fgarbage_collect): Call them.
30416 (mark_object): Mark buried_buffer_list.
30417
30418 * prefix-args.c: Include stdlib.h for exit.
30419
30420 * syssignal.h: Add comment.
30421
30422 * indent.c: Include stdio.h.
30423
30424 * window.h (Vinitial_window_system): Declare.
30425 (Vwindow_system): Delete declaration.
30426
30427 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30428
30429 * image.c (lookup_image): Don't initialize `c' until the xasserts
30430 have been run.
30431
30432 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30433 FRAME_FOREGROUND_PIXEL.
30434
30435 * print.c (print_preprocess): Don't lose print_depth levels while
30436 iterating.
30437
30438 * widget.c (update_from_various_frame_slots):
30439 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30440
30441 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30442 frames.
30443 (window_internal_height): Remove bogus make_number call.
30444 (init_window_once): Call make_terminal_frame with two zero parameters.
30445
30446 * fileio.c (Fread_file_name): Update comment.
30447
30448 * callint.c (Fcall_interactively):
30449 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30450 Make sure it is correctly unwound.
30451
30452 * xsmfns.c (x_session_close): New function.
30453
30454 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30455 Delete declarations.
30456
30457 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30458 (x_output): Remove background_pixel and foreground_pixel fields.
30459 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30460 (x_delete_device, x_session_close): Declare.
30461
30462 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30463 (read_filtered_event): Call `read_char' with a local
30464 `wrong_kboard_jmpbuf'.
30465
30466 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30467 Don't call single_kboard_state. Use FRAME_RIF.
30468
30469 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30470 systems.
30471
30472 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30473 (Fframe_with_environment, Fset_input_meta_mode)
30474 (Fset_quit_char): EXFUN.
30475 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30476 (init_sys_modes, reset_sys_modes): Update prototypes.
30477 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30478
30479 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30480 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30481 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30482 Delete declarations.
30483 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30484 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30485 New declarations.
30486
30487 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30488 already does that during init_display(). Call syms_of_keymap
30489 before syms_of_keyboard. Call `syms_of_terminal'.
30490 Call set_initial_environment, not set_process_environment.
30491 (shut_down_emacs): Call reset_all_sys_modes() instead of
30492 reset_sys_modes().
30493
30494 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30495 (internal_resolve_face_name, resolve_face_name_error): New functions.
30496 (resolve_face_name): Protect against loops and errors thrown by Fget.
30497 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30498 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30499
30500 * scroll.c: Replace CURTTY() with local variables throughout the
30501 file (where applicable).
30502 (calculate_scrolling, calculate_direct_scrolling)
30503 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30504 characteristics.
30505
30506 * keymap.c (Vfunction_key_map): Remove.
30507 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30508 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30509 (Vkey_translation_map): Remove.
30510 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30511 (Fdescribe_buffer_bindings)
30512 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30513 Update for terminal-local key-translation-map.
30514
30515 * Makefile.in (callproc.o): Update dependencies.
30516 (lisp, shortlisp): Add termdev.elc.
30517 (obj): Add terminal.o.
30518 (terminal.o): Add dependencies.
30519 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30520 (data.o, fns.o): Add termhooks.h dependency.
30521 (SOME_MACHINE_LISP): Add dnd.elc.
30522 (minibuf.o): Fix typo.
30523 Update dependencies.
30524
30525 * data.c (do_symval_forwarding, store_symval_forwarding)
30526 (find_symbol_value): Use the selected frame's keyboard, not
30527 current_kboard.
30528
30529 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30530 Vwindow_system.
30531
30532 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30533 Fmenu_bar_open.
30534 (syms_of_xmenu): Update defsubr.
30535 (mouse_position_for_popup, Fx_popup_menu)
30536 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30537 (set_frame_menubar, free_frame_menubar)
b97439ce 30538 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
30539 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30540 an X frame.
30541
30542 * xselect.c (x_own_selection): Abort if not an X frame.
30543 (some_frame_on_display): Check if it is an X frame.
30544 (x_handle_selection_clear): Deal with MULTI_KBOARD.
30545
30546 * coding.c: Include frame.h and termhooks.h.
30547 (terminal_coding, keyboard_coding): Delete.
30548 (Fset_terminal_coding_system_internal)
30549 (Fset_keyboard_coding_system_internal)
30550 (Fkeyboard_coding_system)
30551 (Fterminal_coding_system): Add a terminal parameter.
30552 Get terminal_coding from the terminal.
30553 (init_coding_once): Don't call setup_coding_system here.
30554
30555 * dispextern.h (set_scroll_region, turn_off_insert)
30556 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
30557 (tty_clear_end_of_line, tty_setup_colors)
30558 (delete_tty, updating_frame)
30559 (produce_special_glyphs, produce_glyphs, write_glyphs)
30560 (insert_glyphs): Remove.
30561 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
30562 (tty_turn_off_highlight, get_tty_size): Add declaration.
30563 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
30564
30565 * frame.h (enum output_method): Add output_initial.
30566 (struct x_output): Delete.
30567 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30568 Access foreground_pixel and background_pixel directly from the frame.
30569 (tty_display): Delete.
30570 (struct frame): Add buried_buffer_list, foreground_pixel,
30571 background_pixel and terminal. Delete kboard.
30572 (union output_data): Add tty.
30573 (FRAME_KBOARD): Get the kboard from the terminal.
30574 (FRAME_INITIAL_P): New macro.
30575 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
30576 (Qterm_environment_variable, Qdisplay_environment_variable)
30577 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
30578 New declarations.
30579
30580 * termchar.h (tty_output, tty_display_info): New structures.
30581 (tty_list): Declare.
30582 (FRAME_TTY, CURTTY): New macros.
30583 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
30584 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
30585 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
30586 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
30587
30588 * callproc.c: Include frame.h and termhooks.h, for terminal
30589 parameters.
30590 (add_env): New function.
30591 (child_setup): Use it.
30592 (child_setup, getenv_internal): Handle the new Vprocess_environment.
30593 (getenv_internal): Fix get_terminal_param call.
30594 (Fgetenv_internal, egetenv): Update doc.
30595 (syms_of_callproc): Initialize Vprocess_environment to nil.
30596 Register and initialize them. Remove obsolete defvars. Update doc
30597 strings.
30598 (child_setup): Handle Vlocal_environment_variables.
30599 (getenv_internal): Add terminal parameter.
30600 Handle Vlocal_environment_variables.
30601 (Fgetenv_internal): Add terminal parameter.
30602 (child_setup, getenv_internal, Fgetenv_internal): Store the local
30603 environment in a frame (not terminal) parameter. Update doc strings.
30604 (set_initial_environment): Rename from set_global_environment.
30605 Store Emacs environment in initial frame parameter.
30606
30607 * xdisp.c (redisplay_internal): Update references to
30608 `previous_terminal_frame'.
30609 (display_mode_line, Fformat_mode_line): Replace calls to
30610 `push_frame_kboard' with `push_kboard'.
30611 (get_glyph_string_clip_rects): Add extra parentheses and
30612 braces to prevent compiler warnings.
30613 (calc_pixel_width_or_height): Add xassert to check that the
30614 frame is alive. Don't call `lookup_image' on a termcap frame.
30615 (message2_nolog, message3_nolog, redisplay_internal)
30616 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
30617 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
30618 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
30619 (Fx_display_pixel_width, Fx_display_pixel_height)
30620 (Fx_display_planes, Fx_display_color_cells)
30621 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
30622 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
30623 (Fx_display_backing_store, Fx_display_visual_class)
30624 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
30625 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
30626
30627 * xfns.c (x_set_foreground_color x_set_background_color)
30628 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
30629 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30630 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
30631 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
30632 terminal that is being deleted.
30633 (Fx_create_frame): Use `store_frame_param' to set `window-system'
30634 frame parameter, and make sure it overrides any user-supplied setting.
30635 (Fx_close_connection, Fx_synchronize): Unify argument names with
30636 the rest of the DEFUNs.
30637
30638 * dispnew.c (Fsend_string_to_terminal): Update call to
30639 `get_tty_terminal'.
30640 (Fredraw_frame, Fsend_string_to_terminal)
30641 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
30642 FRAME_TERMCAP_P and FRAME_TTY.
30643 (window_change_signal): Don't believe width/height values that are
30644 impossibly small.
30645 (Vinitial_window_system): Rename from Vwindow_system.
30646 (termscript, Wcm, rif): Delete.
30647
30648 * termhooks.h (struct terminal): New struct containing the
30649 previously global text display hooks and new members NAME,
30650 DELETED and PARAM_ALIST.
30651 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
30652 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
30653 (FRAME_RIF): New macros.
30654 (get_terminal_param, get_device): New declarations.
30655 (termscript): Delete declaration.
30656
30657 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
30658 (XTflash, x_free_frame_resources, x_scroll_bar_create)
30659 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
30660 FRAME_FOREGROUND_PIXEL.
30661 (x_fully_uncatch_errors): Disable definition.
30662 (x_scroll_bar_expose): Fix reference to foreground pixel.
30663 (XTread_socket): Disable loop on all X displays.
30664 (x_delete_terminal): Don't set terminal->deleted and let
30665 delete_terminal delete the frames on the terminal.
30666 (x_delete_display): Doc update to reflect changes in
30667 delete_terminal.
30668 (x_display_info) <terminal>: Move member earlier in the struct.
30669 (deleting_tty): Remove old variable.
30670 (Fsuspend_tty): Call clear_tty_hooks.
30671 (Fresume_tty, init_tty): Call set_tty_hooks.
30672 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
30673 errors on X frames.
30674 (x_catch_errors_unwind): Abort if x_error_message is NULL.
30675 (handle_one_xevent): Initialize `f' to NULL.
30676 (x_delete_terminal, x_create_terminal): New functions.
30677 (XTset_terminal_modes, XTreset_terminal_modes)
30678 (XTread_socket, x_connection_closed, x_term_init)
30679 (x_term_init, x_delete_display): Add terminal parameter.
30680 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
30681 X connections.
30682
30683 * frame.c: Include termchar.h.
30684 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
30685 (Qwindow_system, Qenvironment, Qterm_environment_variable)
30686 (Qdisplay_environment_variable): New vars.
30687 (Fframep): Deal with output_initial.
30688 (Fframe-live-p): Doc fix.
30689 (Fwindow-system): New function.
30690 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
30691 (make_terminal_frame): Don't create frames on a terminal that is
30692 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30693 (store_frame_param): Check for found_for_frame before calling XFRAME.
30694 (Fmake_terminal_frame): Handle NULL tty names correctly.
30695 (syms_of_frame): Enhance doc string of `default-frame-alist'.
30696 (Fdelete_frame): Remove unused variable `count'. Don't allow other
30697 frames to refer to a deleted frame in their 'environment parameter.
30698 (Fframe_with_environment): New function.
30699 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
30700 (get_future_frame_param): New function.
30701 (Fmake_terminal_frame): Use it.
30702 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
30703
30704 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
30705 * sysdep.c (reset_sys_modes): Update for renames.
30706
30707 * keyboard.c (tty_read_avail_input): New function.
30708 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
30709 (syms_of_keyboard): Defsubr them.
30710 (Fset_input_meta_mode, Fset_quit_char): New functions.
30711 (Fset_input_mode): Split to above functions.
30712 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
30713 parameter. Use it in call to `read_char'.
30714 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
30715 Set wrong_kboard_jmpbuf correctly in recursive calls.
30716 Use current_kboard to access Vkeyboard_translate_table.
30717 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
30718 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
30719 Update longjmp invocations. Remember the original current_kboard,
30720 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
30721 changes it. Comment out unnecessary calls to
30722 `record_single_kboard_state' and `any_kboard_state'.
30723 Update recursive calls.
30724 (wrong_kboard_jmpbuf): Remove global variable.
30725 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
30726 Handle deleted interrupted_kboards correctly; that is a legal
30727 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
30728 and read_char calls. Abort if interrupted_kboard died in read_char.
30729 (any_kboard_state, single_kboard_state)
30730 (push_frame_kboard): Remove function.
30731 (pop_kboard): Switch out of single_kboard mode if the kboard has
30732 been deleted. Remove unused variable. Help debugging by not
30733 changing current_kboard unnecessarily. Set current_kboard to the
30734 kboard of the selected frame when the stored kboard object has
30735 been deleted before pop_kboard.
30736 (temporarily_switch_to_single_kboard): Change first parameter to a
30737 frame pointer. Throw an error when caller wants to change kboards
30738 while in single_kboard mode. Don't push_kboard if we weren't in
30739 single kboard state. Don't pop_kboard if we popped into any
30740 kboard state.
30741 (restore_kboard_configuration): Abort if pop_kboard changed the
30742 kboard in single_kboard mode. Call pop_kboard only after setting
30743 up single_kboard mode.
30744 (Frecursive_edit): Switch to single_kboard mode only in nested
30745 command loops.
30746 (cmd_error, command_loop, command_loop_1, timer_check):
30747 Comment out unnecessary call to `any_kboard_state' and
30748 `record_single_kboard_state'.
30749 (delete_kboard): Exit single_kboard mode if we have just deleted
30750 that kboard. Use FRAME_KBOARD.
30751 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30752 `fatal_error_signal'.
30753 (record_single_kboard_state): Don't push_kboard if we weren't in
30754 single kboard state. Don't pop_kboard if we popped into any
30755 kboard state.
30756 (push_frame_kboard): Rename to push_kboard.
30757 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30758 (read_avail_input): Read input from all terminals.
30759 (mark_kboards): Also mark Vkeyboard_translate_table.
30760 (kbd_buffer_store_event_hold): Simplify condition.
30761 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30762 (Vkeyboard_translate_table): Move to struct kboard.
30763 (init_kboard): Initialize Vkeyboard_translate_table.
30764 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30765 Vkeyboard_translate_table. Update doc strings. Update docs of
30766 local-function-key-map and function-key-map.
30767
30768 * terminal.c: New file.
30769
30770 * term.c: Include errno.h.
30771 (Vring_bell_function, device_list, initial_device)
30772 (next_device_id, ring_bell, update_begin, update_end)
30773 (set_terminal_window, cursor_to, raw_cursor_to)
30774 (clear_to_end, clear_frame, clear_end_of_line)
30775 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30776 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30777 (syms_of_term): Move their initialization to terminal.c.
30778 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30779 (Ftty_display_color_cells)
30780 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
30781 (clear_tty_hooks, set_tty_hooks)
30782 (init_tty, maybe_fatal): New functions.
30783 (Ftty_type): Return nil if terminal is not on a tty instead of
30784 throwing an error. Doc update.
30785 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
30786 Doc update. Initialize new subrs and variables.
30787 (delete_tty): Use terminal->deleted.
30788 (tty_set_terminal_modes): Rename from set_terminal_modes.
30789 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
30790 (set_scroll_region): Rename to `tty_set_scroll_region'.
30791 (turn_on_insert): Rename to `tty_turn_on_insert'.
30792 (turn_off_insert): Rename to `tty_turn_off_insert'.
30793 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
30794 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
30795 (toggle_highligh): Rename to `tty_toggle_highlight'.
30796 (background_highlight): Rename to `tty_background_highlight'.
30797 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
30798 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
30799 (tty_set_scroll_region, tty_background_highlight)
30800 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
30801 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
30802 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
30803 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
30804 Add static modifier.
30805 (tty_reset_terminal_modes, tty_set_terminal_window)
30806 (tty_set_scroll_region, tty_background_highlight)
30807 (tty_highlight_if_desired, tty_cursor_to)
30808 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
30809 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
30810 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
30811 renames.
30812
308132007-08-28 Jan Djärv <jan.h.d@swipnet.se>
30814
30815 * keyboard.c: Qrtl is new.
30816 (parse_tool_bar_item): Handle :rtl keyword.
30817 (syms_of_keyboard): Intern :rtl keyword.
30818
30819 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
30820
30821 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
30822 so no Lisp code is executed.
30823 (file_for_image, find_rtl_image): New functions.
30824 (xg_get_image_for_pixmap): Use file_for_image.
30825 (update_frame_tool_bar): If direction is RTL, use RTL image if
30826 defined. Use Gtk stock images if defined.
30827
308282007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30829
30830 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
30831 for nonexistent or zero-width glyph in composition glyph.
30832
308332007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
30834
30835 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
30836
30837 * xdisp.c (Finvisible_p): New function.
30838 (syms_of_xdisp): defsubr it.
30839
308402007-08-24 Juanma Barranquero <lekktu@gmail.com>
30841
30842 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
30843 Doc fixes.
30844
308452007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30846
30847 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
30848
308492007-08-24 Martin Rudalics <rudalics@gmx.at>
30850
30851 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
30852 whether decoding has modified buffer contents.
30853
308542007-08-24 Jason Rumney <jasonr@gnu.org>
30855
30856 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
30857 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
30858 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
30859 (init_svg_functions) [HAVE_NTGUI]: New function.
30860 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
30861 (svg_load_image): Use them.
30862 (svg_load_image) [HAVE_NTGUI]: Implement background.
30863
308642007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30865
30866 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
30867 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
30868 (LIBX): Remove @RSVG_LIBS@.
30869 (LIBES): Add $(RSVG_LIBS).
30870
30871 * image.c (svg_load_image): Blend with specified background if exists.
30872 Use IMAGE_BACKGROUND. Add Mac OS Support.
30873
30874 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
30875 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
30876 Remove macros.
30877 [MAC_OSX] (socket_callback): Do nothing.
30878 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30879 ReceiveNextEvent.
30880 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30881 socket_callback.
30882 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30883
308842007-08-22 Glenn Morris <rgm@gnu.org>
30885
30886 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30887
308882007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30889
30890 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30891
30892 * image.c: Add support for SVG images. Some additional comments
30893 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30894 (svg_image_p): New function to test for SVG image.
30895 (svg_load): New function to load SVG image.
30896 (svg_load_image): New function, helper for svg_load.
30897 (Qsvg): New Lisp_object.
30898 (svg_keyword_index): New enum.
30899 (svg_format): New static `image_keyword' struct.
30900 (svg_type): New static `image_type' struct.
30901 (librsvg/rsvg.h): Include it.
30902
309032007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30904
30905 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30906
309072007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30908
30909 * lread.c (Qold_style_backquotes): New var.
30910 (syms_of_lread): Init and staticpro it.
30911 (load_warn_old_style_backquotes): New fun.
30912 (Fload): Use them to warn about old style backquotes.
30913 (end_of_file_error, Fload): Remove unused vars.
30914
30915 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30916
30917 * lread.c (Vold_style_backquotes): New var.
30918 (syms_of_lread): Init and export it to Elisp.
30919 (read1): Set it when we find an old-style (back)quote.
30920
309212007-08-22 Jason Rumney <jasonr@gnu.org>
30922
30923 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30924
309252007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30926
30927 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30928
309292007-08-19 Richard Stallman <rms@gnu.org>
30930
30931 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30932
309332007-08-19 Andreas Schwab <schwab@suse.de>
30934
30935 * alloc.c (pure): Round PURESIZE up.
30936
309372007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30938
30939 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30940 active frame.
30941
309422007-08-16 Richard Stallman <rms@gnu.org>
30943
30944 * eval.c (Fcommandp): Add parens to clarify.
30945
30946 * minibuf.c (Fall_completions): Use enum for type of table.
30947
30948 * emacs.c (USAGE2): Improve text.
30949
309502007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30951
30952 * term.c (tty_default_color_capabilities): Declare static
30953 variables in file scope, to avoid HPUX compiler problem.
30954
309552007-08-13 Jan Djärv <jan.h.d@swipnet.se>
30956
30957 * gtkutil.c (update_frame_tool_bar): Use -1 as index
30958 to gtk_toolbar_insert.
30959
309602007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
30961
30962 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
30963
30964 * insdel.c (reset_var_on_error): New fun.
30965 (signal_before_change, signal_after_change):
30966 Use it to reset (after|before)-change-functions to nil in case of error.
30967 Bind inhibit-modification-hooks to t.
30968 Don't bind (after|before)-change-functions to nil while they run.
30969
309702007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30971
30972 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
30973 filling pixmap with stippled background.
30974
309752007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30976
30977 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
30978 Don't use invisible frame as parent window for repositioning.
30979
309802007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
30981
30982 * print.c (new_backquote_output): Rename from old_backquote_output.
30983 (print): Inverse its logic (according to its name) so as to match the
30984 behavior of new_backquote_flag in lread.c.
30985
309862007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30987
30988 * gmalloc.c (posix_memalign): New function.
30989
30990 * macterm.c (frame_highlight, frame_unhighlight): Don't call
30991 ActivateControl/DeactivateControl here.
30992 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
30993 frame-notice-user-settings is non-nil.
30994 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
30995 for kEventParamFMFontStyle.
30996 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
30997 mac_pass_command_to_system and mac_pass_control_to_system here.
30998 (XTread_socket): Call ActivateControl/DeactivateControl here.
30999 (XTread_socket) [TARGET_API_MAC_CARBON]:
31000 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31001 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31002 for window repositioning.
31003
310042007-08-08 Glenn Morris <rgm@gnu.org>
31005
31006 * Replace `iff' in doc-strings and comments.
31007
310082007-08-07 Chong Yidong <cyd@stupidchicken.com>
31009
31010 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31011
310122007-08-07 Martin Rudalics <rudalics@gmx.at>
31013
31014 * fileio.c (Finsert_file_contents): Run format-decode and
31015 after_insert_file_functions on entire buffer when REPLACE is
31016 non-nil and inhibit modification_hooks and point_motion_hooks.
31017 For consistency, run after_insert_file_functions iff something
31018 got inserted. Move signal_after_change and update_compositions
31019 after code running after_insert_file_functions. Make sure that
31020 undo_list doesn't record intermediate steps of the decoding process.
31021
310222007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31023
31024 * emacs.c (main)
31025 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31026 Call malloc_enable_thread on interactive startup.
31027
31028 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31029 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31030 [USE_PTHREAD]: Conditionalize with it.
31031 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31032 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31033 New functions.
31034
310352007-08-06 Chong Yidong <cyd@stupidchicken.com>
31036
31037 * xdisp.c (redisplay_window): When restoring original buffer
31038 position, make sure it is still valid.
31039
31040 * image.c (png_load): Ignore png-supplied background color.
31041
310422007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31043
31044 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31045 Use kCFAbsoluteTimeIntervalSince1970.
31046
31047 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31048 New variable.
31049 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31050 event loop should be quit.
31051 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31052 Quit dialog event loop if quit_dialog_event_loop is set.
31053
31054 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31055 (Selection): New typedef. Use instead of ScrapRef.
31056 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31057 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31058 (mac_clear_selection): Rename from clear_scrap.
31059 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31060 scrap_has_target_type. All uses changed.
31061 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31062 (mac_selection_has_target_p): New functions.
31063 (mac_put_selection_value): Rename from put_scrap_string.
31064 (mac_get_selection_value): Rename from get_scrap_string.
31065 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31066 (put_scrap_private_timestamp, scrap_has_target_type)
31067 (get_scrap_private_timestamp): Remove functions.
31068 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31069 (x_own_selection, x_get_local_selection):
31070 Use mac_valid_selection_value_p.
31071 (x_own_selection): Don't use put_scrap_private_timestamp.
31072 Record OWNERSHIP-INFO into Vselection_alist instead.
31073 (x_get_local_selection): Don't check type if request is local.
31074 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31075 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31076
310772007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31078
31079 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31080 add comment explaining why.
31081
310822007-08-03 Richard Stallman <rms@gnu.org>
31083
31084 * fileio.c (Fvisited_file_modtime): Use make_time.
31085
310862007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31087
31088 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31089 build.
31090
310912007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31092
31093 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31094
310952007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31096
31097 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31098
310992007-07-30 Richard Stallman <rms@gnu.org>
31100
31101 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31102
311032007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31104
31105 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31106
311072007-07-28 Nick Roberts <nickrob@snap.net.nz>
31108
31109 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31110 remote default-directory.
31111
31112 * buffer.c (mode-line-format): Update doc string.
31113
311142007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31115
31116 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31117 scroll bar gap.
31118 (x_scroll_bar_create): Set bar->fringe_extended_p.
31119 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31120 on frame edge. Check fringe background extension. Don't clear
31121 extended fringe background area.
31122
31123 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31124 (w32_fill_area): Enclose multiple statements with do ... while (0).
31125
31126 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31127 Extend fringe background to scroll bar gap.
31128 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31129 Set bar->fringe_extended_p.
31130 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31131 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31132 background extension. Don't clear extended fringe background area.
31133
31134 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31135 New member fringe_extended_p.
31136
311372007-07-25 Glenn Morris <rgm@gnu.org>
31138
31139 * Relicense all FSF files to GPLv3 or later.
31140
31141 * COPYING: Switch to GPLv3.
31142
311432007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31144
31145 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31146
31147 * data.c (Finteractive_form): Check for the presence of an
31148 `interactive-form' symbol property more thoroughly.
31149
31150 * data.c (Finteractive_form): Use an `interactive-form' property if
31151 present, analogous to the function-documentation property.
31152
311532007-07-24 Jason Rumney <jasonr@gnu.org>
31154
31155 * w32fns.c (x_real_positions): Get real position from OS instead of
31156 calculating it.
31157
311582007-07-23 Jason Rumney <jasonr@gnu.org>
31159
31160 * filelock.c (current_lock_owner): Allow for @ sign in username.
31161
311622007-07-22 Nick Roberts <nickrob@snap.net.nz>
31163
31164 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31165 remote default-directory.
31166
31167 * buffer.c (mode-line-format): Describe above case in doc string.
31168
311692007-07-20 Eli Zaretskii <eliz@gnu.org>
31170
31171 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31172 Define if not defined.
31173
311742007-07-18 Jason Rumney <jasonr@gnu.org>
31175
31176 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31177
311782007-07-18 Richard Stallman <rms@gnu.org>
31179
31180 * data.c (Fsetq_default): Doc fix.
31181
31182 * eval.c (Fsetq): Doc fix.
31183
311842007-07-18 Juanma Barranquero <lekktu@gmail.com>
31185
31186 * coding.c (Ffind_operation_coding_system):
31187 * eval.c (For, Fand): Doc fixes.
31188 Reported by Johan Bockgård.
31189
311902007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31191
31192 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31193
31194 * xterm.h: Declare x_ewmh_activate_frame.
31195
31196 * xterm.c (x_ewmh_activate_frame): New function.
31197 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31198
311992007-07-17 Martin Rudalics <rudalics@gmx.at>
31200
31201 * window.c (Fdisplay_buffer): If largest or LRU window is the
31202 only window, split it even if it is not eligible for splitting.
31203 This restores the original behavior broken by the 2007-07-15
31204 change.
31205
312062007-07-17 Glenn Morris <rgm@gnu.org>
31207
31208 * abbrev.c (abbrev_check_chars): New function.
31209 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31210 Call abbrev_check_chars to check abbrev characters are word
31211 constituents. Doc fix.
31212
312132007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31214
31215 * process.c (Fstart_process, Fmake_network_process)
31216 (read_process_output): Fix up last changes.
31217
312182007-07-16 Eli Zaretskii <eliz@gnu.org>
31219
31220 * makefile.w32-in (clean): Don't delete *~.
31221
312222007-07-16 Andreas Schwab <schwab@suse.de>
31223
31224 * window.c (Fdisplay_buffer): Use NILP.
31225 (Fset_window_scroll_bars): Likewise.
31226
312272007-07-15 Martin Rudalics <rudalics@gmx.at>
31228
31229 * window.c (window_min_size_2): New function.
31230 (window_min_size_1, size_window, Fdisplay_buffer)
31231 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31232 windows without mode- or header-lines when window-min-height is
31233 too small.
31234 (size_window): Reset nodelete_p after testing it, following an
31235 earlier note by Kim F. Storm.
31236 (display_buffer): Do not set split_height_threshold to twice the
31237 value of window_min_height to avoid changing the value of a
31238 customizable variable. Rather explicitly check whether the
31239 height of the window that shall be splitted is at least as large
31240 as split_height_threshold.
31241 (Fwindow_full_width_p): New defun.
31242 (syms_of_window): Defsubr it.
31243
31244 * window.h: Add EXFUN for Fwindow_full_width_p.
31245
312462007-07-14 Jason Rumney <jasonr@gnu.org>
31247
31248 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31249
312502007-07-14 Richard Stallman <rms@gnu.org>
31251
31252 * eval.c (maybe_call_debugger): New function.
31253 (find_handler_clause): Use maybe_call_debugger.
31254 Call it when the handler says `debug'.
31255 Eliminate DEBUGGER_VALUE_PTR.
31256 (Fsignal): Eliminate debugger_value.
31257 (Qdebug): New variable.
31258 (syms_of_eval): Initialize it.
31259
312602007-07-14 Juanma Barranquero <lekktu@gmail.com>
31261
31262 * eval.c (Fprogn):
31263 * keyboard.c (Ftrack_mouse):
31264 * print.c (Fwith_output_to_temp_buffer):
31265 * window.c (Fsave_window_excursion): Doc fix.
31266
312672007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31268
31269 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31270
312712007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31272
31273 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31274 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31275 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31276 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31277 Remove unused encoding_carryover.
31278 * process.c: Adjust all functions accordingly.
31279
312802007-07-12 Richard Stallman <rms@gnu.org>
31281
31282 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31283
312842007-07-11 Jason Rumney <jasonr@gnu.org>
31285
31286 * makefile.w32-in (LIBS): Include OLE32.
31287
31288 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31289 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31290
312912007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31292
31293 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31294 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31295 from a Lisp_Object into a bare pointer.
31296 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31297 Adjust the code correspondingly.
31298
31299 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31300
31301 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31302 (term_show_mouse_face): Remove unused var `j'.
31303 (handle_one_term_event): Remove unused vars `i' and `j'.
31304 Don't cast return value of ttyname since it's not necessary.
31305
313062007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31307
31308 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31309 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31310
31311 * fns.c (map_char_table): Use an array of int for `indices' rather than
31312 an array of Lisp_Objects (which are only ever integers anyway).
31313 (Fmap_char_table): Update caller.
31314 * lisp.h: Update prototype.
31315 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31316 * fontset.c (Ffontset_info):
31317 * casetab.c (set_case_table): Update callers.
31318
31319 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31320
31321 * keymap.c (struct accessible_keymaps_data)
31322 (struct where_is_internal_data): New structures.
31323 (accessible_keymaps_1, where_is_internal_1): Use them to change
31324 interface to adhere to the one used by map_keymap.
31325 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31326 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31327
31328 * keymap.h (map_keymap_function_t): More informative prototype.
31329
313302007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31331
31332 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31333 (looking_at_1): Don't change search_regs and last_thing_searched
31334 if `inhibit-changing-match-data' is non-nil.
31335 (string_match_1, search_buffer, set_search_regs): Likewise.
31336 (syms_of_search): Add Lisp level definition for
31337 `inhibit-changing-match-data' and set it to nil.
31338 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31339 start and end of the match, instead of using values in search_regs.
31340
313412007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31342
31343 * minibuf.c (Fcompleting_read): New value `confirm-only'
31344 for `require-match'.
31345
313462007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31347
31348 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31349 part of the 2007-06-27 change to syms_of_fileio.
31350
313512007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31352
31353 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31354 Check WINDOWP before using XWINDOW. Consolidate return statements.
31355
313562007-06-27 Richard Stallman <rms@gnu.org>
31357
31358 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31359
313602007-06-27 Juanma Barranquero <lekktu@gmail.com>
31361
31362 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31363
313642007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31365
31366 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31367 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31368 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31369 (_free_internal, memalign): Use them.
31370 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31371 Initialize to PTHREAD_MUTEX_INITIALIZER.
31372 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31373 (morecore_nolock): Rename from morecore. All uses changed.
31374 Use only nolock versions of internal allocation functions.
31375 (_malloc_internal_nolock, _realloc_internal_nolock)
31376 (_free_internal_nolock): New functions created from
31377 _malloc_internal, _realloc_internal, and _free_internal.
31378 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31379 Copy hook value to automatic variable before its use.
31380 (memalign): Copy hook value to automatic variable before its use.
31381
313822007-06-26 Kenichi Handa <handa@m17n.org>
31383
31384 * coding.c (Ffind_operation_coding_system): Docstring improved.
31385 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31386
313872007-06-25 David Kastrup <dak@gnu.org>
31388
31389 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31390 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31391 cater for additional parameter.
31392
31393 * keymap.h: Adjust number of parameters to `current-active-maps'.
31394
31395 * doc.c (Fsubstitute_command_keys): Adjust call of
31396 `current-active-maps'.
31397
313982007-06-25 David Kastrup <dak@gnu.org>
31399
31400 * callint.c (Fcall_interactively): Make the parsing of interactive
31401 specs somewhat more readable.
31402
314032007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31404
31405 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31406 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31407 if extended background has already been filled.
31408
314092007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31410
31411 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31412 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31413
31414 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31415 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31416 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31417 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31418 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31419 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31420 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31421 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31422 Run timers during dialog popup.
31423 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31424
314252007-06-21 Jason Rumney <jasonr@gnu.org>
31426
31427 * image.c (convert_mono_to_color_image): Swap fore and background.
31428
314292007-06-20 Jason Rumney <jasonr@gnu.org>
31430
31431 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31432 (w32_free_bdf_font): Unmap memory not handle.
31433
314342007-06-20 Sam Steingold <sds@gnu.org>
31435
31436 * gmalloc.c (__morecore): Fix the declaration to comply with the
31437 definition.
31438
314392007-06-20 Juanma Barranquero <lekktu@gmail.com>
31440
31441 * w32term.c (w32_delete_display): Remove leftover declaration.
31442 (w32_define_cursor, w32_initialize): Make static.
31443
31444 * w32.c (_wsa_errlist): Fix typo in error message.
31445 (init_environment): Ignore any environment variable from the
31446 registry having a null value.
31447
314482007-06-20 Glenn Morris <rgm@gnu.org>
31449
31450 * Makefile.in (LIBGIF): Default to -lgif.
31451
314522007-06-17 Jason Rumney <jasonr@gnu.org>
31453
31454 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31455 unicode strings.
31456
314572007-06-16 Juanma Barranquero <lekktu@gmail.com>
31458
31459 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31460 Fix typo in docstring.
31461
314622007-06-16 Eli Zaretskii <eliz@gnu.org>
31463
31464 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31465 and their keybindings.
31466
314672007-06-15 Chong Yidong <cyd@stupidchicken.com>
31468
31469 * composite.c (update_compositions): Fix last fix.
31470
314712007-06-14 Jason Rumney <jasonr@gnu.org>
31472
31473 * w32.c (get_process_times_fn): New function pointer.
31474 (globals_of_w32): Intialize it if present in kernel32.dll.
31475 (w32_get_internal_run_time): New function.
31476
31477 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31478
314792007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31480
31481 * composite.c (update_compositions): Check the validness of
31482 compositions.
31483
314842007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31485
31486 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31487 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31488
31489 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31490 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31491
31492 * macgui.h (USE_MAC_TOOLBAR): New define.
31493
31494 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31495 Return immediately unless popup is activated.
31496
31497 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31498 background to scroll bar gap.
31499 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31500 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31501 scroll bars on frame edge. Check fringe background extension.
31502 Don't clear extended fringe background area.
31503 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31504 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31505 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31506 [USE_MAC_TOOLBAR]: New macros.
31507 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31508 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31509 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31510 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31511 [USE_MAC_TOOLBAR]: New functions.
31512 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31513 manually if previous repositioning has failed.
31514 (mac_handle_keyboard_event): Use precomputed event kind.
31515 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31516 as tool bar item click. Handle mouse movement over tool bar items.
31517
31518 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31519 toolbar_win_gravity.
31520 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31521 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31522 Add externs.
31523
31524 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31525 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31526
315272007-06-14 Chong Yidong <cyd@stupidchicken.com>
31528
31529 * image.c (search_image_cache): Remove unused variable.
31530
315312007-06-13 Chong Yidong <cyd@stupidchicken.com>
31532
31533 * xfns.c, xmenu.c: Link to xaw3d if available.
31534
315352007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31536
31537 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31538 frame_foreground and frame_background.
31539
31540 * image.c (lookup_image): Save frame foreground and background colors.
31541 (search_image_cache): Check if saved and current frame colors match.
31542
315432007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31544
31545 * regex.c (regex_compile): Remove the `regnum' counter.
31546 Use bufp->re_nsub instead. Add support for \(?N:RE\).
31547
315482007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
31549
31550 * term.c: Include intervals.h to declare Fget_text_property.
31551
315522007-06-10 Jason Rumney <jasonr@gnu.org>
31553
31554 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
31555
315562007-06-08 Juanma Barranquero <lekktu@gmail.com>
31557
31558 * callint.c (Fcall_interactively):
31559 * editfns.c (Fdelete_and_extract_region):
31560 * fileio.c (Fread_file_name):
31561 * fns.c (Fmapconcat):
31562 * keyboard.c (cmd_error_internal):
31563 * keymap.c (Fkey_description):
31564 * lread.c (openp):
31565 * minibuf.c (read_minibuf):
31566 * search.c (wordify):
31567 * sunfns.c (sel_read):
31568 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
31569 * xfns.c (x_default_scroll_bar_color_parameter):
31570 * xmenu.c (menu_help_callback):
31571 * xselect.c (Fx_get_atom_name):
31572 * xterm.c (x_term_init): Use empty_unibyte_string.
31573
315742007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
31575
31576 * alloc.c (init_strings): Initialize canonical empty strings.
31577 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
31578 canonical empty string when the requested size is 0.
31579
31580 * emacs.c (empty_unibyte_string): Rename from empty_string.
31581 (empty_multibyte_string): New canonical empty string.
31582 (syms_of_emacs): Don't initialize empty_string.
31583
31584 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
31585 string, if appropriate.
31586 (empty_unibyte_string, empty_multibyte_string): New externs.
31587 (empty_string): Remove extern.
31588
31589 * lread.c (syms_of_lread): Use empty_unibyte_string.
31590
315912007-06-07 Jason Rumney <jasonr@gnu.org>
31592
31593 * s/ms-w32.h: Don't define HAVE_TZNAME.
31594
31595 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
31596
315972007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31598
31599 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
31600
31601 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
31602 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
31603
31604 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31605 Don't call next handler.
31606 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
31607 Remove argument. Install handler to application.
31608 (set_frame_menubar): Don't change deep_p.
31609 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
31610 FRAME_OUTER_TO_INNER_DIFF_Y.
31611 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
31612 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
31613 [HAVE_DIALOGS]: New macros.
31614 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
31615 Use them.
31616 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
31617
31618 * macselect.c [MAC_OSX] (install_service_handler): Rename from
31619 init_service_handler. All callers changed. Return OSStatus value.
31620
31621 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
31622 All callers changed so as not to call SetPortWindowPort.
31623 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
31624 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
31625 mac_draw_string_common.
31626 (mac_draw_image_string_qd): Likewise.
31627 (mac_draw_string_common): Use them. Add INLINE.
31628 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
31629 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
31630 GetGlobalMouse.
31631 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
31632 and FRAME_OUTER_TO_INNER_DIFF_Y.
31633 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
31634 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
31635 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
31636 repositioning window to mac_handle_window_event.
31637 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
31638 saving window location to mac_handle_window_event
31639 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
31640 (install_menu_target_item_handler): Remove argument in extern.
31641 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
31642 Also accept command events.
31643 (do_keystroke): New function created from XTread_socket.
31644 (init_command_handler): Remove functions.
31645 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
31646 and save window location by kEventWindowShowing and kEventWindowHiding
31647 handlers here. Don't call next handler for window state change and
31648 focus events.
31649 (mac_handle_application_event, mac_handle_keyboard_event)
31650 [TARGET_API_MAC_CARBON]: New functions.
31651 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
31652 kEventWindowShowing and kEventWindowHiding events. Move installation
31653 of mouse, font, text input and menu target item handlers to
31654 install_application_handler.
31655 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
31656 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31657 New function.
31658 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31659 Register it.
31660 (XTread_socket) [TARGET_API_MAC_CARBON]:
31661 Consolidate SendEventToEventTarget calls.
31662 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
31663 Move application activation handler to mac_handle_application_event.
31664 Move keyboard handler to mac_handle_keyboard_event.
31665 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
31666 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
31667 init_command_handler. Call install_application_handler.
31668
31669 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
31670 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
31671
316722007-06-07 Glenn Morris <rgm@gnu.org>
31673
31674 * emacs.c (main): Use `emacs-copyright' in --version output.
31675
316762007-06-06 Chong Yidong <cyd@stupidchicken.com>
31677
31678 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
31679
316802007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31681
31682 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
31683
31684 * macgui.h: Replace WindowPtr with WindowRef.
31685
31686 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31687 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31688 Replace ControlHandle with ControlRef.
31689 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
31690
31691 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31692 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31693 Replace ControlHandle with ControlRef.
31694 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
31695 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
31696
31697 * macterm.h (struct scroll_bar): Rename member control_handle_low
31698 and control_handle_high to control_ref_low and control_ref_high.
31699 All uses changed.
31700 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
31701 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
31702 respectively. All uses changed.
31703 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
31704 (install_window_handler, remove_window_handler): Replace WindowPtr
31705 with WindowRef in externs.
31706
317072007-06-05 Juanma Barranquero <lekktu@gmail.com>
31708
31709 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
31710
317112007-06-03 Nick Roberts <nickrob@snap.net.nz>
31712
31713 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
31714
31715 * frame.c (Fmouse_position, Fmouse_pixel_position):
31716 Condition on HAVE_GPM too.
31717
31718 * term.c (term_mouse_highlight): Remove unused variables.
31719 (Fterm_open_connection): Set gpm_zerobased to 1.
31720 (term_mouse_movement, term_mouse_click, handle_one_term_event):
31721 Use zero based co-ordinates.
31722 (handle_one_term_event): Report a drag as mouse movement too.
31723
31724 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
31725
317262007-06-03 Chong Yidong <cyd@stupidchicken.com>
31727
31728 * image.c (search_image_cache): New function. Require background
31729 color match if background color is unspecified in the image spec.
31730 (uncache_image, lookup_image): Use it.
31731
317322007-06-01 Juanma Barranquero <lekktu@gmail.com>
31733
31734 * window.c (Fshrink_window): Reflow docstring.
31735
317362007-06-02 Chong Yidong <cyd@stupidchicken.com>
31737
31738 * Version 22.1 released.
31739
317402007-06-01 Richard Stallman <rms@gnu.org>
31741
31742 * xfns.c (x_encode_text): Add GCPRO.
31743
317442007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31745
31746 * xfns.c (x_set_name_internal): Save encoded name before
31747 x_encode_text in case string data is relocated.
31748
317492007-05-31 Richard Stallman <rms@gnu.org>
31750
31751 * buffer.c (syms_of_buffer): Doc fix.
31752
317532007-05-30 Nick Roberts <nickrob@snap.net.nz>
31754
31755 * sysdep.c (init_sys_modes): Add rather than replace with
31756 O_NONBLOCK.
31757
31758 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31759 term_mouse_moveto.
31760
31761 * termhooks.h (term_mouse_moveto): New extern.
31762
31763 * term.c (mouse_face_window): Rename...
31764 (Qmouse_face_window): ...to this.
31765 (term_show_mouse_face, term_clear_mouse_face)
31766 (term_mouse_highlight): Use Qmouse_face_window.
31767 (term_mouse_moveto): New function.
31768 (term_mouse_position): Make it work.
31769 (syms_of_term): Uncomment assignment to mouse_position_hook.
31770 Staticpro Qmouse_face_window.
31771
317722007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31773
31774 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31775 around current_column call.
31776
317772007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31778
31779 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
31780 * xdisp.c (next_element_from_buffer):
31781 * window.c (delete_window):
31782 * term.c (term_mouse_highlight):
31783 * msdos.c (getdefdir):
31784 * macterm.c (mac_create_bitmap_from_bitmap_data)
31785 (init_font_name_table):
31786 * fns.c (Fsxhash):
31787 * data.c (Fmake_local_variable):
31788 * ccl.c (ccl_driver): Likewise.
31789
317902007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31791
31792 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
31793 Call mac_wakeup_from_rne on window size change.
31794
317952007-05-25 Chong Yidong <cyd@stupidchicken.com>
31796
31797 * image.c (uncache_image): Fix typo.
31798
317992007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
31800
31801 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
31802
318032007-05-22 Richard Stallman <rms@gnu.org>
31804
31805 * xterm.c (x_connection_closed): Remove NO_RETURN.
31806
318072007-05-22 Martin Rudalics <rudalics@gmx.at>
31808
31809 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
31810
318112007-05-21 Chong Yidong <cyd@stupidchicken.com>
31812
31813 * image.c (uncache_image): New function.
31814 (Fimage_refresh): New function.
31815
318162007-05-20 Jan Djärv <jan.h.d@swipnet.se>
31817
31818 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
31819
318202007-05-20 Nick Roberts <nickrob@snap.net.nz>
31821
31822 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
31823 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
31824
318252007-05-20 Nick Roberts <nickrob@snap.net.nz>
31826
31827 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
31828 conditional on [HAVE_GPM_H].
31829
318302007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
31831
31832 * syntax.c (skip_chars): Update syntax-table only after we checked that
31833 the new location is valid.
31834
318352007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31836
31837 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
31838 mac_get_window_bounds.
31839
318402007-05-20 Nick Roberts <nickrob@snap.net.nz>
31841
31842 * Makefile.in (LIBGPM): Allow it to be set from configure.
31843 If set then link Emacs with it.
31844
31845 * config.in: Regenerate.
31846
31847 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
31848 New externs.
31849
31850 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
31851 Include gpm.h.
31852 (handle_one_term_event, term_gpm): New externs.
31853
31854 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
31855 and allow it to be interrupted by SIGIO.
31856
31857 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
31858 (wait_reading_process_output): Wait on gpm_fd too.
31859 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
31860 (add_gpm_wait_descriptor_called_flag): New variable.
31861 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
31862
31863 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
31864 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
31865 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
31866 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
31867 (make_lispy_event): Add case GPM_CLICK_EVENT.
31868 (read_avail_input): Handle mouse input.
31869
31870 * term.c (write_glyphs_with_face): New function.
31871 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
31872 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
31873 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
31874 (mouse_face_face_id, term_gpm, pos_x, pos_y)
31875 (last_mouse_x, last_mouse_y): New variables.
31876 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
31877 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
31878 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31879 (Fterm_close_connection): New functions.
31880 (term_init): Initialise mouse_face_window.
31881
318822007-05-19 Chong Yidong <cyd@stupidchicken.com>
31883
31884 * xdisp.c (redisplay_window): If first window line is a
31885 continuation line, recompute the new window start instead of
31886 recentering.
31887
318882007-05-18 Glenn Morris <rgm@gnu.org>
31889
31890 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31891 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31892
318932007-05-17 Glenn Morris <rgm@gnu.org>
31894
31895 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31896
318972007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31898
31899 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31900 dead key repeat and up events.
31901
319022007-05-14 Chong Yidong <cyd@stupidchicken.com>
31903
31904 * image.c (pbm_load): Check image size for monochrome pbm.
31905
319062007-05-13 Chong Yidong <cyd@stupidchicken.com>
31907
31908 * xterm.c (XTread_socket): Revert last change.
31909
319102007-05-12 Chong Yidong <cyd@stupidchicken.com>
31911
31912 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31913
31914 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31915
319162007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31917
31918 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31919 mixup (YAILOM).
31920
319212007-05-07 Andreas Schwab <schwab@suse.de>
31922
31923 * keymap.c (Flookup_key): Fix typo in last change.
31924
319252007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31926
31927 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31928 mapping for unibyte strings.
31929
319302007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31931
31932 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31933 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31934
319352007-04-29 Richard Stallman <rms@gnu.org>
31936
31937 * insdel.c (replace_range): For undo, record insertion first.
31938
319392007-04-29 Andreas Schwab <schwab@suse.de>
31940
31941 * lisp.h (VECSIZE): Use OFFSETOF.
31942
319432007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31944
31945 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31946 disabled lines.
31947
319482007-04-28 Richard Stallman <rms@gnu.org>
31949
31950 * lread.c (read_escape): In a string, \s is always space.
31951
319522007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31953
31954 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
31955
31956 * gtkutil.c (xg_update_menubar, create_menus): Create empty
31957 submenu for menu bar items.
31958
31959See ChangeLog.10 for earlier changes.
31960
31961;; Local Variables:
31962;; coding: utf-8
aac0c6e3
MR
31963;; End:
31964
73b0cd50 31965 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
31966
31967 This file is part of GNU Emacs.
31968
31969 GNU Emacs is free software: you can redistribute it and/or modify
31970 it under the terms of the GNU General Public License as published by
31971 the Free Software Foundation, either version 3 of the License, or
31972 (at your option) any later version.
31973
31974 GNU Emacs is distributed in the hope that it will be useful,
31975 but WITHOUT ANY WARRANTY; without even the implied warranty of
31976 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31977 GNU General Public License for more details.
31978
31979 You should have received a copy of the GNU General Public License
31980 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.