* alloc.c (mark_backtrace): Move decl from here ...
[bpt/emacs.git] / src / ChangeLog
CommitLineData
63c5d10b
PE
12011-03-16 Paul Eggert <eggert@cs.ucla.edu>
2
8b2c52e9
PE
3 * alloc.c (mark_backtrace): Move decl from here ...
4 * lisp.h: ... to here, so that it can be checked.
5
475545b5 6 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
d28a2170 7 (Fdefvar): Rewrite so as not to use empty "else".
cfcbfb1a
PE
8 (lisp_indirect_variable): Name an expression,
9 to avoid gcc -Wbad-function-cast warning.
475545b5 10
b1349114 11 * callint.c (quotify_arg, quotify_args): Now static.
a3e8cbda 12 (Fcall_interactively): Rename locals to avoid shadowing.
b0e80955 13 Use const pointer when appropriate.
b1349114 14
a2928364
PE
15 * lisp.h (get_system_name, get_operating_system_release):
16 Move decls here, to check interfaces.
17 * process.c (get_operating_system_release): Move decl to lisp.h.
18 * xrdb.c (get_system_name): Likewise.
63c5d10b
PE
19 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
20 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
21 some of which prompt warnings from gcc -Wbad-function-cast.
545b49b4
PE
22 (Fformat_time_string, Fencode_time, Finsert_char):
23 (Ftranslate_region_internal, Fformat):
24 Rename or remove local vars to avoid shadowing.
9710023e 25 (Ftranslate_region_internal): Mark var as initialized.
63c5d10b 26
5df8f01b
PE
272011-03-15 Paul Eggert <eggert@cs.ucla.edu>
28
a415e694
PE
29 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
30 avoid shadowing.
31
8ef4622d
PE
32 * lisp.h (eassert): Check that the argument compiles, even if
33 ENABLE_CHECKING is not defined.
34
946f9a5b
PE
35 * data.c (Findirect_variable): Name an expression, to avoid
36 gcc -Wbad-function-cast warning.
112396d6 37 (default_value, arithcompare, arith_driver, arith_error): Now static.
b9b84fa9 38 (store_symval_forwarding): Rename local to avoid shadowing.
cdef261f
PE
39 (Fmake_variable_buffer_local, Fmake_local_variable): Mark
40 variables as initialized.
52746918 41 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
946f9a5b 42
e5aab7e7 43 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
ae35e756
PE
44 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
45 Rename locals to avoid shadowing.
dff45157
PE
46 (mark_stack): Move local variables into the #ifdef region where
47 they're used.
7bc26fdb
PE
48 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
49 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
50 needed otherwise.
51 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
52 (GC_STRING_CHARS): Remove; not used.
d40d4be1 53 (Fmemory_limit): Cast sbrk's returned value to char *.
ae35e756 54
e5aab7e7
PE
55 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
56 avoids undefined behavior in theory.
57
4da60324
PE
58 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
59
88043301
PE
60 Use functions, not macros, for up- and down-casing (Bug#8254).
61 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
62 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
63 to use the following functions instead of these macros.
64 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
65 EMACS_INT, since callers assume the returned value fits in int.
66 (upcase1): Likewise, for UPCASE_TABLE.
67 (uppercasep, lowercasep, upcase): New static inline functions.
0da09c43 68 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
db69b0cd 69 the race-condition problem in the old DOWNCASE.
88043301 70
19ed5445
PE
71 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
72 Rename locals to avoid shadowing.
73 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
abbd1bcf
PE
74 (regex_compile, re_search_2, re_match_2_internal):
75 Remove unused local vars.
952db0d7
PE
76 (FREE_VAR): Rewrite so as not to use empty "else",
77 which gcc can warn about.
da053e48 78 (regex_compile, re_match_2_internal): Mark locals as initialized.
b313f9d8
PE
79 (RETALLOC_IF): Define only if needed.
80 (WORDCHAR_P): Likewise. This one is never needed, but is used
81 only in a comment talking about a compiler bug, so put inside
82 the #if 0 of that comment.
83 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
84 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
85 Remove; unused.
19ed5445 86
1f3561e4 87 * search.c (boyer_moore): Rename locals to avoid shadowing.
76ef09b7
PE
88 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
89 (PREV_CHAR_BOUNDARY): Likewise.
1f3561e4 90
ded6f8f7
PE
91 * search.c (simple_search): Remove unused var.
92
dbd37a95
PE
93 * dired.c (compile_pattern): Move decl from here ...
94 * lisp.h: ... to here, so that it can be checked.
95 (struct re_registers): New forward decl.
96
7e47afad
PE
97 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
98
85f24f61
PE
99 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
100 All uses changed.
101 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
102 Rename locals to avoid shadowing.
5671df8f 103 (Fvertical_motion): Mark locals as initialized.
85f24f61 104
181aa2be 105 * casefiddle.c (casify_object, casify_region): Now static.
e45a141a 106 (casify_region): Mark local as initialized.
181aa2be 107
930d429c
PE
108 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
109
7082eac6
PE
110 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
111 New macros, so that the caller can use some names other than
112 gcpro1, gcpro2, etc.
113 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
114 of the new macros.
115 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
116 argument, for consistency with GCPRO2_VAR, etc: it is now the
117 prefix of the variable, not the variable itself. All uses
118 changed.
38b2c076
PE
119 * dired.c (directory_files_internal, file_name_completion):
120 Rename locals to avoid shadowing.
121
15206ed9
PE
122 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
123 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
124 dired.c's scmp function, had undefined behavior.
125 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
126 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
127 * buffer.h: ... to here, because these macros use current_buffer,
128 and the new implementation with inline functions needs to have
129 current_buffer in scope now, rather than later when the macros
130 are used.
131 (downcase, upcase1): New static inline functions.
132 (DOWNCASE, UPCASE1): Reimplement using these functions.
133 This avoids undefined behavior in expressions like
134 DOWNCASE (x) == DOWNCASE (y), which previously suffered
135 from race conditions in accessing the global variables
136 case_temp1 and case_temp2.
137 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
138 * lisp.h (case_temp1, case_temp2): Remove their decls.
139 * character.h (ASCII_CHAR_P): Move from here ...
140 * lisp.h: ... to here, so that the inline functions mentioned
141 above can use them.
142
4a6bea26
PE
143 * dired.c (directory_files_internal_unwind): Now static.
144
f14b7e14
PE
145 * fileio.c (file_name_as_directory, directory_file_name):
146 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
147 Now static.
2893f146
PE
148 (file_name_as_directory): Use const pointers when appropriate.
149 (Fexpand_file_name): Likewise. In particular, newdir might
150 point at constant storage, so make it a const pointer.
fd4ead52 151 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
b14aac08
PE
152 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
153 signedness issues.
f839df0c
PE
154 (Fset_file_times, Finsert_file_contents, auto_save_error):
155 Rename locals to avoid shadowing.
f14b7e14 156
5716756e 157 * minibuf.c (choose_minibuf_frame_1): Now static.
62137a95
PE
158 (Ftry_completion, Fall_completions): Rename or remove locals
159 to avoid shadowing.
5716756e 160
b4c3046a
PE
161 * marker.c (bytepos_to_charpos): Remove; unused.
162
b45db522
PE
163 * lisp.h (verify_bytepos, count_markers): New decls,
164 so that gcc does not warn that these functions aren't declared.
165
85876d07
PE
166 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
167 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
f0cb4a60 168 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
40ef059e 169 (copy_text): Remove unused local var.
85876d07 170
03d78a21 171 * filelock.c (within_one_second): Now static.
b3dd38ab 172 (lock_file_1): Rename local to avoid shadowing.
03d78a21 173
5df8f01b
PE
174 * buffer.c (fix_overlays_before): Mark locals as initialized.
175 (fix_start_end_in_overlays): Likewise. This function should be
176 simplified by using pointers-to-pointers, but that's a different
177 matter.
178
59d6fe83
PE
1792011-03-14 Paul Eggert <eggert@cs.ucla.edu>
180
c3bd59b5 181 * buffer.c (switch_to_buffer_1): Now static.
8f54f30a
PE
182 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
183 (report_overlay_modification): Rename locals to avoid shadowing.
c3bd59b5 184
a70072c9 185 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
fbd02d7b 186 Fix pointer signedness issue.
edced198
PE
187 (sys_subshell): Mark local as volatile if checking for lint,
188 to suppress a gcc -Wclobbered warning that does not seem to be right.
15dfd3d9 189 (MAXPATHLEN): Define only if needed.
a70072c9 190
a0977c44
PE
191 * process.c (serial_open, serial_configure): Move decls from here ...
192 * systty.h: ... to here, so that they can be checked.
193
a884fdcc
PE
194 * fns.c (get_random, seed_random): Move extern decls from here ...
195 * lisp.h: ... to here, so that they can be checked.
196
604efe86 197 * sysdep.c (reset_io): Now static.
b8950c94 198 (wait_for_termination_signal): Remove; unused.
604efe86 199
38fc62d9
PE
200 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
201 (copy_keymap_item, append_key, push_text_char_description):
202 Now static.
1004a21a 203 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
dbbb8427 204 (DENSE_TABLE_SIZE): Remove; unused.
c1141155
PE
205 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
206 (describe_map_tree):
207 Rename locals to avoid shadowing.
38fc62d9 208
2f2650da
PE
209 * keyboard.c: Declare functions static if they are not used elsewhere.
210 (echo_char, echo_dash, cmd_error, top_level_2):
211 (poll_for_input, handle_async_input): Now static.
69a058fa
PE
212 (read_char, kbd_buffer_get_event, make_lispy_position):
213 (make_lispy_event, make_lispy_movement, apply_modifiers):
214 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
215 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
216 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
c8a06054 217 (read_key_sequence, read_char): Mark locals as initialized.
3ac94672 218 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
2f2650da 219
a053e86c 220 * keyboard.h (make_ctrl_char): New decl.
da2f2dd9
PE
221 (mark_kboards): Move decl here ...
222 * alloc.c (mark_kboards): ... from here.
a053e86c 223
4752793e
PE
224 * lisp.h (force_auto_save_soon): New decl.
225
74f10ca7 226 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
244fc23d
PE
227 (DEFINE_DUMMY_FUNCTION): New macro.
228 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
229 Use it.
c03cd23f
PE
230 (main): Add casts to avoid warnings
231 if GCC considers string literals to be constants.
74f10ca7 232
022e70d4
PE
233 * lisp.h (fatal_error_signal): Add decl, since it's exported.
234
59d6fe83
PE
235 * dbusbind.c: Pointer signedness fixes.
236 (xd_signature, xd_append_arg, xd_initialize):
237 (Fdbus_call_method, Fdbus_call_method_asynchronously):
238 (Fdbus_method_return_internal, Fdbus_method_error_internal):
239 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
240 (Fdbus_register_signal): Use SSDATA when the context wants char *.
241
78320123
PE
242 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
243 if GCC considers string literals to be constants.
49cebcca 244 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
78320123 245
cffc6f3b
CY
2462011-03-13 Chong Yidong <cyd@stupidchicken.com>
247
248 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
249 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
250 These macros can no longer be used for assignment.
251
252 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
253 struct members directly, instead of using BUF_BEGV etc.
254 (record_buffer_markers, fetch_buffer_markers): New functions for
255 recording and fetching special buffer markers.
256 (set_buffer_internal_1, set_buffer_temp): Use them.
257
258 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
259
260 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
261
262 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
263 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
264
265 * xdisp.c (hscroll_window_tree):
266 (reconsider_clip_changes): Use PT instead of BUF_PT.
267
d251f04b
EZ
2682011-03-13 Eli Zaretskii <eliz@gnu.org>
269
270 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
271 $(EMACS_ROOT)/lib/intprops.h.
272
f0c77cd1
PE
2732011-03-13 Paul Eggert <eggert@cs.ucla.edu>
274
3eca4629
PE
275 Fix more problems found by GCC 4.5.2's static checks.
276
7c86ee98
PE
277 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
278 to unsigned char * to avoid compiler diagnostic.
b0afc268
PE
279 (xg_free_frame_widgets): Make it clear that a local variable is
280 needed only if USE_GTK_TOOLTIP.
01e0b5ad
PE
281 (gdk_window_get_screen): Make it clear that this macro is needed
282 only if USE_GTK_TOOLTIP.
1e5524e7
PE
283 (int_gtk_range_get_value): New function, which avoids a diagnostic
284 from gcc -Wbad-function-cast.
285 (xg_set_toolkit_scroll_bar_thumb): Use it.
286 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
287 diagnostic from gcc -Wbad-function-cast.
65dc836c
PE
288 (get_utf8_string, xg_get_file_with_chooser):
289 Rename locals to avoid shadowing.
290 (create_dialog): Move locals to avoid shadowing.
7c86ee98 291
41729b81
PE
292 * xgselect.c (xg_select): Remove unused var.
293
f0c77cd1
PE
294 * image.c (four_corners_best): Mark locals as initialized.
295 (gif_load): Initialize transparent_p to zero (Bug#8238).
296 Mark another local as initialized.
ec6cf4c6 297 (my_png_error, my_error_exit): Mark with NO_RETURN.
f0c77cd1 298
ce0ad53d 299 * image.c (clear_image_cache): Now static.
d5d5a617 300 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
e22cffbc 301 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
77a765fd
PE
302 (x_edge_detection): Remove unnecessary cast that
303 gcc -Wbad-function-cast diagnoses.
2037898d 304 (gif_load): Fix pointer signedness.
6ae141d6
PE
305 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
306 (jpeg_load, gif_load): Rename locals to avoid shadowing.
ce0ad53d 307
3eca4629
PE
3082011-03-11 Paul Eggert <eggert@cs.ucla.edu>
309
d32df629
PE
310 Improve quality of tests for time stamp overflow.
311 For example, without this patch (encode-time 0 0 0 1 1
312 1152921504606846976) returns the obviously-bogus value (-948597
313 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
314 reports time overflow. See
315 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
b8d9bd41
PE
316 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
317 * editfns.c: Include limits.h and intprops.h.
318 (TIME_T_MIN, TIME_T_MAX): New macros.
319 (time_overflow): Move earlier, to before first use.
320 (hi_time, lo_time): New functions, for an accurate test for
321 out-of-range times.
322 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
323 (Fget_internal_run_time): Don't assume time_t fits in int.
324 (make_time): Use list2 instead of Fcons twice.
325 (Fdecode_time): More accurate test for out-of-range times.
326 (check_tm_member): New function.
327 (Fencode_time): Use it, to test for out-of-range times.
d32df629
PE
328 (lisp_time_argument): Don't rely on undefined left-shift and
329 right-shift behavior when checking for time stamp overflow.
8be6f318 330
fe31d94c
PE
331 * editfns.c (time_overflow): New function, refactoring common code.
332 (Fformat_time_string, Fdecode_time, Fencode_time):
333 (Fcurrent_time_string): Use it.
334
8be6f318
PE
335 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
336 * dired.c (make_time): Move to ...
337 * editfns.c (make_time): ... here.
338 * systime.h: Note the move.
339
09d9db2c 3402011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c47cbdfd 341
126bc0dc
YM
342 * fringe.c (update_window_fringes): Remove unused variables.
343
c47cbdfd
YM
344 * unexmacosx.c (copy_data_segment): Also copy __got section.
345 (Bug#8223)
346
7ac80be9
EZ
3472011-03-12 Eli Zaretskii <eliz@gnu.org>
348
058e5dad
EZ
349 * termcap.c [MSDOS]: Include "msdos.h.
350 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
351 Constify `char *' arguments and their references according to
352 prototypes in tparam.h.
353
ecb0f94d 354 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
058e5dad 355
7ac80be9
EZ
356 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
357 Adapt all references accordingly.
358
359 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
360
ef1fd07e
TT
3612011-03-11 Tom Tromey <tromey@redhat.com>
362
363 * buffer.c (syms_of_buffer): Remove obsolete comment.
364
7ef4b50c
EZ
3652011-03-11 Eli Zaretskii <eliz@gnu.org>
366
367 * termhooks.h (encode_terminal_code): Declare prototype.
368
369 * msdos.c (encode_terminal_code): Don't declare prototype.
370
371 * term.c (encode_terminal_code): Now external again, used by
372 w32console.c and msdos.c.
373
374 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
375 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
376
4b1ec863 3772011-03-11 Paul Eggert <eggert@cs.ucla.edu>
f78faa98 378
1714f52b 379 Fix some minor problems found by GCC 4.5.2's static checks.
83316bf4 380
4b1ec863
PE
381 * fringe.c (update_window_fringes): Mark locals as initialized
382 (Bug#8227).
383 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
bf60f616 384
524c7aa6
PE
385 * alloc.c (mark_fringe_data): Move decl from here ...
386 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
387 to check its interface.
388 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
389
a5c0af81 390 * fontset.c (free_realized_fontset): Now static.
7519b8cd 391 (Fset_fontset_font): Rename local to avoid shadowing.
cc6e5db1 392 (fontset_font): Mark local as initialized.
a9a06e0b 393 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
a5c0af81 394
b4716021
PE
395 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
396
811e9bac 397 * xselect.c (x_disown_buffer_selections): Remove; not used.
7b83e2f1 398 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
aa0daa9f
PE
399 (x_own_selection, Fx_disown_selection_internal): Rename locals
400 to avoid shadowing.
401 (x_handle_dnd_message): Remove local to avoid shadowing.
811e9bac 402
7e3ab302
PE
403 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
404 so that the caller can use some name other than gcpro1.
405 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
58d2d479
PE
406 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
407 (Fx_backspace_delete_keys_p):
408 Use them to avoid shadowing, and rename vars to avoid shadowing.
409 (x_decode_color, x_set_name, x_window): Now static.
6b437900 410 (Fx_create_frame): Add braces to silence GCC warning.
c0951e53 411 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
06b0c8a0
PE
412 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
413 Remove unused locals.
7e3ab302
PE
414 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
415 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
416 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
417 macros.
f78faa98 418
e2b13473
PE
419 * xterm.h (x_mouse_leave): New decl.
420
77f23912
PE
421 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
422 Remove unused functions.
cdf4ba58
PE
423 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
424 (x_calc_absolute_position): Now static.
7411c686 425 (XTread_socket): Don't define label "out" unless it's used.
2b07bcff 426 Don't declare local "event" unless it's used.
ed7bf3a5
PE
427 (x_iconify_frame, x_free_frame_resources): Don't declare locals
428 unless they are used.
38d0b34a
PE
429 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
430 (x_fatal_error_signal): Remove; not used.
a6067996
PE
431 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
432 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
433 (x_error_catcher, x_connection_closed, x_error_handler):
434 (x_error_quitter, xembed_send_message, x_iconify_frame):
435 (my_log_handler): Rename locals to avoid shadowing.
28f1c698 436 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
2a8fade0 437 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
77f23912 438
071048a3
PE
439 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
440 or move locals to avoid shadowing.
6b463e58 441 (tty_defined_color, merge_face_heights): Now static.
5967d051 442 (free_realized_faces_for_fontset): Remove; not used.
1e9966ea
PE
443 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
444 does not deduce is never used uninitialized.
73719eba
PE
445 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
446 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
071048a3 447
426994c3 448 * terminal.c (store_terminal_param): Now static.
5489860b 449
032f1620 450 * xmenu.c (menu_highlight_callback): Now static.
9d66f88e 451 (set_frame_menubar): Remove unused local.
d4323972 452 (xmenu_show): Rename parameter to avoid shadowing.
6d1f7fee
PE
453 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
454 since they might point to immutable storage.
281585b0
PE
455 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
456 since it's unused otherwise.
032f1620 457
367c19e5 458 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
53df7c11 459 Add a FIXME, since the code still doesn't look right. (Bug#8215)
9f36b9fd
PE
460 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
461 avoids a gcc -Wuninitialized diagnostic.
0e086e8f 462 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
44a3a108
PE
463 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
464 does not deduce are never used uninitialized.
70739cbe 465
07b48fa9
PE
466 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
467
8868a238 468 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
4554d213
PE
469 * window.c (window_loop, size_window):
470 (run_window_configuration_change_hook, enlarge_window): Likewise.
8868a238 471
7e5cf297 472 * window.c (display_buffer): Now static.
d6550a9f
PE
473 (size_window): Mark variables that gcc -Wuninitialized
474 does not deduce are never used uninitialized.
a586633d
PE
475 * window.h (check_all_windows): New decl, to forestall
476 gcc -Wmissing-prototypes diagnostic.
5b555da1 477 * dispextern.h (bidi_dump_cached_states): Likewise.
7e5cf297 478
f6095868
PE
479 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
480 shadowing.
481 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
726929c4
PE
482 Include <limits.h>.
483 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
484 and to avoid gcc -Wuninitialized warning.
89ef49df
PE
485 (load_charset_map): Mark variables that gcc -Wuninitialized
486 does not deduce are never used uninitialized.
53df7c11 487 (load_charset): Abort instead of using uninitialized var (Bug#8229).
f6095868 488
f38b440c
PE
489 * coding.c (coding_set_source, coding_set_destination):
490 Use "else { /* comment */ }" rather than "else /* comment */;"
491 for clarity, and to avoid gcc -Wempty-body warning.
2735d060
PE
492 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
493 a block, when the outer 'i' will do.
494 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
495 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
496 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
497 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
498 (Fdecode_sjis_char, Fdefine_coding_system_internal):
499 Rename locals to avoid shadowing.
500 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
e2f1bab9
PE
501 * coding.c (emacs_mule_char, encode_invocation_designation):
502 Now static, since they're not used elsewhere.
413bb2db 503 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
c4a63b12 504 (decode_coding_object, encode_coding_object, detect_coding_system):
ee05f961
PE
505 (decode_coding_emacs_mule): Mark variables that gcc
506 -Wuninitialized does not deduce are never used uninitialized.
160b01f6
PE
507 (detect_coding_iso_2022): Initialize a local variable that might
508 be used uninitialized. Leave a FIXME because it's not clear that
53df7c11 509 this initialization is needed. (Bug#8211)
5f58e762
PE
510 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
511 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
512 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
513 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
514 Remove unused macros.
f38b440c 515
232b38b9 516 * category.c (hash_get_category_set): Remove unused local var.
9f3b5e69 517 (copy_category_table): Now static, since it's not used elsewhere.
d0891610 518 * character.c (string_count_byte8): Likewise.
232b38b9 519
fb90da1b
PE
520 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
521 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
522
fb93dbc2
PE
523 * chartab.c (copy_sub_char_table): Now static, since it's not used
524 elsewhere.
5c156ace
PE
525 (sub_char_table_ref_and_range, char_table_ref_and_range):
526 Rename locals to avoid shadowing.
bbcd0949 527 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
fb93dbc2 528
7d3b3862 529 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
630d6892 530 (BIDI_BOB): Remove unused macro.
7d3b3862 531
6be7d3da
PE
532 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
533 deduce are never used uninitialized.
c2ed9c8b 534 * term.c (encode_terminal_code): Likewise.
6be7d3da 535
75f8807f 536 * term.c (encode_terminal_code): Now static. Remove unused local.
72abad34 537
50938595
PE
538 * tparam.h: New file.
539 * term.c, tparam.h: Include it.
540 * deps.mk (term.o, tparam.o): Depend on tparam.h.
541 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
542 Move these decls to tparam.h, and make them agree with what
543 is actually in tparam.c. The previous trick of using incompatible
544 decls in different modules does not conform to the C standard.
545 All callers of tparam changed to use tparam's actual API.
546 * tparam.c (tparam1, tparam, tgoto):
547 Use const pointers where appropriate.
548
fbceeba2
PE
549 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
550 * cm.h (struct cm): Likewise.
551 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
552 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
553 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
554 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
555 (turn_on_face, init_tty): Likewise.
556 * termchar.h (struct tty_display_info): Likewise.
fbceeba2 557
7f3f1250
PE
558 * term.c (term_mouse_position): Rename local to avoid shadowing.
559
e6ca6543
PE
560 * alloc.c (mark_ttys): Move decl from here ...
561 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
562
c40f8d15
AS
5632011-03-11 Andreas Schwab <schwab@linux-m68k.org>
564
565 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
566
cfe0661d
JB
5672011-03-09 Juanma Barranquero <lekktu@gmail.com>
568
569 * search.c (compile_pattern_1): Remove argument regp, unused since
570 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
571 (compile_pattern): Don't pass it.
572
0afb4571
J
5732011-03-08 Jan Djärv <jan.h.d@swipnet.se>
574
575 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
576 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
577 for ! HAVE_GTK3.
578 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
579
580 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
581
582 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
583 gdk_window_get_screen, gdk_window_get_geometry,
584 gdk_x11_window_lookup_for_display and GDK_KEY_g.
585 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
586 (xg_get_pixbuf_from_pixmap): New function.
587 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
588 to Pixmap, take frame as parameter, remove GdkColormap parameter.
589 Call xg_get_pixbuf_from_pixmap instead of
590 gdk_pixbuf_get_from_drawable.
591 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
592 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
593 (xg_check_special_colors): Use GtkStyleContext and its functions
594 for HAVE_GTK3.
595 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
596 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
597 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
598 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
599 gtk_widget_get_preferred_size.
600 (xg_frame_resized): gdk_window_get_geometry only takes 5
601 parameters.
602 (xg_win_to_widget, xg_event_is_for_menubar): Call
603 gdk_x11_window_lookup_for_display.
604 (xg_set_widget_bg): New function.
605 (delete_cb): New function.
606 (xg_create_frame_widgets): connect delete-event to delete_cb.
607 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
608 (xg_set_background_color): Call xg_set_widget_bg.
609 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
610 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
611 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
612 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
613 if ! HAVE_GTK3.
614 (update_frame_tool_bar): Call gtk_widget_hide.
615 (xg_initialize): Use GDK_KEY_g.
616
617 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
618 if ! HAVE_GTK3
619 (x_session_initialize): Call gdk_x11_set_sm_client_id.
620
621 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
622 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
623 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
624
1c2cc4ef
JB
6252011-03-08 Juanma Barranquero <lekktu@gmail.com>
626
627 * w32xfns.c (select_palette): Check success of RealizePalette against
628 GDI_ERROR, not zero.
629
7faeca66
BK
6302011-03-07 Ben Key <bkey76@gmail.com>
631
632 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
633 (file_dialog_callback): Fix locating the window handle of the File Name
634 text field. After disabling it, set focus on the list control.
635 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
636 Name text field to "Current Directory" if it does not already have
cfe0661d 637 another value. (Bug#8181)
7faeca66 638
cf715c3c
AR
6392011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
640
641 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
642 parameter for hbar cursors. Based on a patch by Ben Key
643 <bkey76@gmail.com>.
644
ef272f1f
CY
6452011-03-06 Chong Yidong <cyd@stupidchicken.com>
646
647 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
648 change.
649
5489860b
PE
6502011-03-06 Paul Eggert <eggert@cs.ucla.edu>
651
5f349a89
PE
652 current_column: Now returns EMACS_INT, fixing some iftc
653 that was introduced in the 2002-06-02 change "temporarily"; see
654 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
7831777b
PE
655 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
656 * cmds.c (internal_self_insert): Likewise.
657 * indent.c (Fcurrent_column): Likewise.
658 * keymap.c (describe_command): Likewise.
659 * minibuf.c (read_minibuf): Likewise.
660 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
661 to int.
662 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
663 Likewise.
664 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
665 not int or double, if they might contain a column number.
666 * indent.c (current_column, Findent_to, indented_beyond_p):
667 (compute_motion, vmotion): Likewise.
668 * keymap.c (describe_command): Likewise.
669 * xdisp.c (pint2str): Likewise.
670 * indent.c (last_known_column): Now EMACS_INT, not int.
671 * minibuf.c (minibuf_prompt_width): Likewise.
672 * indent.c (current_column, current_column_1, position_indentation):
673 Return EMACS_INT, not double.
674 * lisp.h (current_column): Likewise.
675 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
676 All callers changed.
677 * lisp.h (indented_beyond_p): Likewise.
678
e9588e2e
PE
679 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
680 from xdisp.c, and make static, since these are used only here.
681 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
682 Remove decls.
683
1e12733b 684 * cmds.c (internal_self_insert): Reindent to match Emacs style.
179b8720 685 * xdisp.c (redisplay_window): Likewise.
1e12733b 686
5489860b
PE
687 * xdisp.c: Rename or move local decls to avoid shadowing.
688 (init_iterator, handle_fontified_prop, handle_single_display_spec):
689 (message_dolog, message_with_string, redisplay_internal):
690 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
691 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
692 (display_line, display_string, rows_from_pos_range):
693 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
694 Rename or move local decls.
7b781e9f 695 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
841081e1
PE
696 (produce_glyphless_glyph): Make a pointer "const"
697 since it might point to immutable storage.
cfe0661d 698 (update_window_cursor): Now static, since it's not used elsewhere.
acbfe54c 699 (SKIP_GLYPHS): Removed unused macro.
5489860b 700
aa248733
MS
7012011-03-06 Michael Shields <shields@msrl.com> (tiny change)
702
703 * window.c (Fnext_window): Doc fix. (Bug#5567)
704
04cb6840
CY
7052011-03-05 Chong Yidong <cyd@stupidchicken.com>
706
707 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
708
22c28cb8 7092011-03-02 Ken Brown <kbrown@cornell.edu>
5aef9e9a
KB
710
711 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
712
6c0dea8a
PE
7132011-03-02 Paul Eggert <eggert@cs.ucla.edu>
714
715 Work around some portability problems with symlinks.
716
717 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
718 generate a special message for it. Suggested by Eli Zaretskii in
719 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
720 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
721 Simplify the code by assuming that the readlink and symlink calls
722 exist, even if they always fail on this host.
723 (Ffile_readable_p): Likewise, for fifos.
724 * config.in: Regenerate.
725
52eb77a6
CY
7262011-02-27 Chong Yidong <cyd@stupidchicken.com>
727
728 * frame.c (store_frame_param): Don't store value directly in
729 buffer_list and buried_buffer_list; copy the list and remove dead
730 buffers (Bug#7898).
731
0f7bb05d
EZ
7322011-02-27 Eli Zaretskii <eliz@gnu.org>
733
40be44e2
EZ
734 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
735
01c35094 736 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
40be44e2 737
0f7bb05d
EZ
738 * w32.c (symlink, readlink): New stub functions.
739
27786b2f
PE
7402011-02-27 Paul Eggert <eggert@cs.ucla.edu>
741
c783d15b
PE
742 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
743 This avoids a gcc warning in some configurations.
744
76c1cebc
PE
745 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
746
0ff162fc
PE
747 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
748 (set_menu_bar_lines, x_get_resource_string): New decls.
749 * msdos.c (set_menu_bar_lines): Omit decl.
750
fdb0b28b
PE
751 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
752 It's always given int values and used as an int. This suppresses
753 a gcc "comparison of unsigned expression >= 0" warning in some
754 configurations.
755
27786b2f
PE
756 * dispnew.c: Rename locals to avoid shadowing.
757 (update_text_area, scrolling_window, update_frame_1): Rename locals.
758
09ad5a91
PE
7592011-02-26 Paul Eggert <eggert@cs.ucla.edu>
760
761 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
762 (copy_glyph_row_contents): Remove; not used.
763 (frame_row_to_window, check_current_matrix_flags):
764 (window_change_signal): Now static, since they're not used elsewhere.
765 (check_current_matrix_flags): Surround with "#if 0", since its
766 only use is in a comment. Maybe both the comment and the "#if 0"
767 stuff should be removed?
768
d2d37ddc
PE
769 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
770 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
771 contexts that actually need it.
772
003fa8b6
EZ
7732011-02-26 Eli Zaretskii <eliz@gnu.org>
774
775 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
776 (lstat): Define for DJGPP < 2.04.
777
b1894766
PE
7782011-02-25 Paul Eggert <eggert@cs.ucla.edu>
779
780 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
781 as per recent filemodestring API change. Reported by Jonas Öster in
782 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
783
e18c0aa3 7842011-02-23 Ben Key <bkey76@gmail.com>
2c6584e8
BK
785
786 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
787 directly, for bar cursors.
788
7892011-02-23 Chong Yidong <cyd@stupidchicken.com>
790
791 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
792 into the frame's cursor_width.
793
617a0e83
SM
7942011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
795
796 * print.c (print_object): Never print old-style backquotes.
797 Obey escapeflag for hash tables as well.
798
cce7d530 7992011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
800
801 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 802 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 803
8d40723d
PE
8042011-02-22 Paul Eggert <eggert@cs.ucla.edu>
805
806 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
807
aa0f73d1
WJ
8082011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
809
810 * lread.c (openp): Correct Boolean typo in last commit.
811
bdaa0745
AR
8122011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
813
814 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 815 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 816
f68c809d
PE
8172011-02-22 Paul Eggert <eggert@cs.ucla.edu>
818
819 Assume S_ISLNK etc. work, since gnulib supports this.
820 * config.in: Regenerate.
821 * dired.c (lstat): Remove.
822 (file_name_completion): Assume S_ISDIR works.
823 (file_name_completion_stat): Assume S_ISLNK works.
824 Do not bother calling stat unless lstat says it's a symlink.
825 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
826 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
827 (check_writable, Ffile_writable_p, Fset_file_times):
828 Assume S_ISDIR works.
829 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
830 fifos exist.
2f8f196d 831 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
832 * filelock.c (S_ISLNK): Remove.
833 * lread.c (openp): Assume S_ISDIR works.
834 * xrdb.c (S_ISDIR): Remove.
835
25c51af3
EZ
8362011-02-21 Eli Zaretskii <eliz@gnu.org>
837
838 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 839 lib/makefile.w32-in.
25c51af3
EZ
840 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
841 (GLOBAL_SOURCES): Remove filemode.c.
842 (OBJ1): Remove $(BLD)/filemode.$(O).
843
5c185672
PE
8442011-02-21 Paul Eggert <eggert@cs.ucla.edu>
845
846 Import filemode module from gnulib.
847 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
848 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
849 (filemode.o): Remove; this is now in ../lib.
850 * dired.c: Include <filemode.h>.
851 (filemodestring): Remove now-redundant decl.
852 * config.in: Regenerate.
853
32159fc3
CS
8542011-02-20 Eli Zaretskii <eliz@gnu.org>
855
856 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
857 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
858
2f8f196d 8592011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
860
861 * makefile.w32-in: Remove md5.$(O).
862 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
863 lib/makefile.w32-in.
864
61353ac8 8652011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 866
61353ac8
PE
867 Import crypto/md5 and stdint modules from gnulib.
868 * Makefile.in (base_obj): Remove md5.o, since this file
869 is in lib now.
870 * config.in: Regenerate.
871 * md5.h, md5.h: Move to ../lib.
872 * deps.mk (md5.o): Remove.
873 (fns.o): Depend on ../lib/md5.h, not md5.h.
874
9d9d12cd
EZ
8752011-02-19 Eli Zaretskii <eliz@gnu.org>
876
f601db19
EZ
877 * termcap.c (tputs): Don't declare baud_rate.
878
9d9d12cd
EZ
879 * s/msdos.h (strtold): Define to _strtold.
880
aa56f361
SM
8812011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
882
cbe81f1d
SM
883 * process.c (Fstart_process, Fmake_serial_process)
884 (Fmake_network_process, server_accept_connection):
885 Use empty_unibyte_string.
886
887 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
888
aa56f361
SM
889 * lread.c (Qdir_ok): New constant.
890 (syms_of_lread): Initialize it.
891 (openp): Don't ignore directories if the predicate returns dir-ok.
892
d6de49a1
EZ
8932011-02-18 Eli Zaretskii <eliz@gnu.org>
894
42af913d
EZ
895 * xdisp.c (display_line): Fix the change made for bug#7939.
896
d6de49a1
EZ
897 * terminal.c (create_terminal): Use default-keyboard-coding-system
898 and default-terminal-coding-system to initialize coding systems of
899 the new terminal. (Bug#7840)
900
b286858c
SM
9012011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
902
903 * lisp.h (BYTE_MARK_STACK): New macro.
904 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
905
906 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
907 (struct byte_stack): Only define `top' and `bottom' if used.
908 (mark_byte_stack): Only define if used.
909 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
910 is not set.
911 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
912
913 * term.c (OUTPUT_IF): Use OUTPUT.
914
915 * alloc.c (Fgarbage_collect): When using stack scanning, don't
916 redundantly scan byte-code stacks, catchlist, and handlerlist.
917
124c9ff0
JD
9182011-02-17 Jan Djärv <jan.h.d@swipnet.se>
919
920 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
921 (Fns_read_file_name): Replace B_ with BVAR.
922
923 * nsterm.m (ns_term_init): Use KVAR.
924
05c65251
EZ
9252011-02-16 Eli Zaretskii <eliz@gnu.org>
926
026d69ec
EZ
927 * msdos.c (internal_terminal_init): Use KVAR.
928
05c65251
EZ
929 * w32fns.c (Fx_create_frame): Use KVAR.
930
931 * w32term.c (w32_create_terminal): Use KVAR.
932
933 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 934 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
935
936 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
937
b286858c
SM
938 * fileio.c (Finsert_file_contents, Fwrite_region):
939 Remove references to buffer_file_type.
05c65251
EZ
940 (syms_of_fileio): Don't intern and staticpro
941 find-buffer-file-type.
942
943 * callproc.c (syms_of_callproc): Remove references to
944 buffer_file_type.
945
946 * buffer.c (reset_buffer_local_variables): Don't set
947 buffer_file_type.
948 (init_buffer_once): Likewise.
949 (syms_of_buffer): Don't define buffer-file-type.
950
951 * buffer.h (struct buffer): Remove buffer_file_type.
952
1344aad4
TT
9532011-02-16 Tom Tromey <tromey@parfait>
954
15f58304
EZ
955 * callint.c (Fcall_interactively): Update for change to field names.
956 * doc.c (Fsubstitute_command_keys): Update for change to field names.
957 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 958 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 959 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
960 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
961 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 962 Update for change to field names.
1344aad4
TT
963 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
964 (echo_length, echo_truncate, cmd_error, command_loop_1)
965 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
966 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
967 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
968 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
969 Update for change to field names.
970 * xfns.c (Fx_create_frame): Update for change to field names.
971 * xterm.c (x_connection_closed, x_term_init): Update for change to
972 field names.
1344aad4 973 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 974 Update for change to field names.
1344aad4 975 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 976 Update for change to field names.
1344aad4 977 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 978 (delete_frame): Update for change to field names.
1344aad4
TT
979 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
980 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
981 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
982
eb4916d7
TT
9832011-02-16 Tom Tromey <tromey@redhat.com>
984
985 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
986
4b4deea2
TT
9872011-02-16 Tom Tromey <tromey@parfait>
988
989 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
990 * xfaces.c (compute_char_face): Replace B_ with BVAR.
991 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
992 (message_dolog, update_echo_area, ensure_echo_area_buffers)
993 (with_echo_area_buffer, setup_echo_area_for_printing)
994 (set_message_1, update_menu_bar, update_tool_bar)
995 (text_outside_line_unchanged_p, redisplay_internal)
996 (try_scrolling, try_cursor_movement, redisplay_window)
997 (try_window_reusing_current_matrix, row_containing_pos)
998 (try_window_id, get_overlay_arrow_glyph_row, display_line)
999 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1000 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1001 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1002 BVAR.
1003 * window.c (window_display_table, unshow_buffer, window_loop)
1004 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1005 (select_window, Fforce_window_update, temp_output_buffer_show)
1006 (Fset_window_configuration, save_window_save): Replace B_ with
1007 BVAR.
1008 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1009 Replace B_ with BVAR.
1010 * undo.c (record_point, record_insert, record_delete)
1011 (record_marker_adjustment, record_first_change)
1012 (record_property_change, Fundo_boundary, truncate_undo_list)
1013 (Fprimitive_undo): Replace B_ with BVAR.
1014 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1015 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1016 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1017 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1018 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1019 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1020 (string_match_1, fast_looking_at, newline_cache_on_off)
1021 (search_command, search_buffer, simple_search, boyer_moore)
1022 (Freplace_match): Replace B_ with BVAR.
1023 * process.c (get_process, list_processes_1, Fstart_process)
1024 (Fmake_serial_process, Fmake_network_process)
1025 (read_process_output, send_process, exec_sentinel)
1026 (status_notify, setup_process_coding_systems): Replace B_ with
1027 BVAR.
1028 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1029 (strout, print_string, temp_output_buffer_setup, print_object):
1030 Replace B_ with BVAR.
1031 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
1032 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1033 Replace B_ with BVAR.
4b4deea2
TT
1034 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1035 (set_marker_both, set_marker_restricted_both, unchain_marker):
1036 Replace B_ with BVAR.
1037 * lread.c (readchar, unreadchar, openp, readevalloop)
1038 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1039 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1040 * keymap.c (Flocal_key_binding, Fuse_local_map)
1041 (Fcurrent_local_map, push_key_description)
1042 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1043 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1044 (read_key_sequence): Replace B_ with BVAR.
1045 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1046 * intervals.c (set_point_both, get_local_map): Replace B_ with
1047 BVAR.
1048 * insdel.c (check_markers, insert_char, insert_1_both)
1049 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1050 (adjust_after_replace, replace_range, del_range_2)
1051 (modify_region, prepare_to_modify_buffer)
1052 (Fcombine_after_change_execute): Replace B_ with BVAR.
1053 * indent.c (buffer_display_table, recompute_width_table)
1054 (width_run_cache_on_off, current_column, scan_for_column)
1055 (Findent_to, position_indentation, compute_motion, vmotion):
1056 Replace B_ with BVAR.
1057 * fringe.c (get_logical_cursor_bitmap)
1058 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1059 with BVAR.
1060 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1061 * font.c (font_at): Replace B_ with BVAR.
1062 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1063 Replace B_ with BVAR.
1064 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1065 (unlock_buffer): Replace B_ with BVAR.
1066 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1067 (Ffile_regular_p, Ffile_selinux_context)
1068 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1069 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1070 (Finsert_file_contents, choose_write_coding_system)
1071 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1072 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1073 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1074 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1075 (save_excursion_restore, Fprevious_char, Fchar_before)
1076 (general_insert_function, Finsert_char, Finsert_byte)
1077 (make_buffer_string_both, Finsert_buffer_substring)
1078 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1079 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1080 (Ftranslate_region_internal, save_restriction_restore)
1081 (Fchar_equal): Replace B_ with BVAR.
1082 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1083 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1084 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1085 * dired.c (directory_files_internal): Replace B_ with BVAR.
1086 * data.c (swap_in_symval_forwarding, set_internal)
1087 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1088 Replace B_ with BVAR.
1089 * composite.c (fill_gstring_header)
1090 (composition_compute_stop_pos, composition_adjust_point)
1091 (Ffind_composition_internal): Replace B_ with BVAR.
1092 * coding.c (decode_coding, encode_coding)
1093 (make_conversion_work_buffer, decode_coding_gap)
1094 (decode_coding_object, encode_coding_object)
1095 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1096 (Funencodable_char_position, Fcheck_coding_systems_region):
1097 Replace B_ with BVAR.
1098 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1099 with BVAR.
1100 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1101 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1102 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1103 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1104 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1105 * category.c (check_category_table, Fcategory_table)
1106 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1107 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1108 BVAR.
1109 * casefiddle.c (casify_object, casify_region): Replace B_ with
1110 BVAR.
1111 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1112 with BVAR.
1113 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1114 BVAR.
1115 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1116 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1117 with BVAR.
1118 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1119 (get_truename_buffer, Fget_buffer_create)
1120 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1121 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1122 (Fbuffer_local_value, buffer_lisp_local_variables)
1123 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1124 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1125 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1126 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1127 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1128 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1129 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1130 (record_overlay_string, overlay_strings, init_buffer_once)
1131 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1132
8678d9e4 11332011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
1134
1135 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1136 window is changed inside calls to do_pending_window_change.
1137 (Bug#8020)
1138
1f5d53eb
PE
11392011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1140
1141 Remove no-longer needed getloadavg symbols.
1142 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1143 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1144 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1145 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1146 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1147 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1148 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1149 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1150 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1151 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1152 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1153 (LDAV_SYMBOL): Remove.
1154 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1155 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1156
1157 Import getloadavg module from gnulib.
1158 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1159 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1160 now does this.
1161 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1162 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1163 * config.in: Regenerate.
1164
8017fd6b
EZ
11652011-02-15 Eli Zaretskii <eliz@gnu.org>
1166
1167 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1168
75b43359
MWD
11692011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1170
1171 * print.c (float_to_string): Ensure that a decimal point is
1172 printed if using dtoastr (Bug#8033).
1173
fc3ca113
EZ
11742011-02-14 Eli Zaretskii <eliz@gnu.org>
1175
1f5d53eb 1176 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
1177 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1178
fc3ca113
EZ
1179 * dired.c (directory_files_internal):
1180 * fileio.c (Finsert_file_contents):
1181 * insdel.c (prepare_to_modify_buffer):
1182 * xdisp.c (pos_visible_p):
1183 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1184 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1185 Use B_ for the MS-Windows build.
1186
3928f2b6
JD
11872011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1188
1189 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1190 resource that specifies helvetica for menus and dialogs.
1191
1192 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1193 (apply_systemfont_to_menu): Set resources *menubar*font and
1194 *popup*font. Remove defflt.
b286858c
SM
1195 (set_frame_menubar, create_and_show_popup_menu):
1196 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 1197
4bb81cc2
TT
11982011-02-14 Tom Tromey <tromey@redhat.com>
1199
fc3ca113
EZ
1200 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1201
4bb81cc2
TT
1202 * keyboard.h: Remove obsolete comment.
1203
5d8ea120
TT
12042011-02-14 Tom Tromey <tromey@parfait>
1205
1206 * composite.c (fill_gstring_header)
1207 (composition_compute_stop_pos, composition_adjust_point)
1208 (Ffind_composition_internal): Use B_.
1209 * intervals.c (set_point_both, get_local_map): Use B_.
1210 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1211 * process.c (get_process, list_processes_1, Fstart_process)
1212 (Fmake_serial_process, Fmake_network_process)
1213 (read_process_output, send_process, exec_sentinel)
1214 (status_notify, setup_process_coding_systems): Use B_.
1215 * bytecode.c (Fbyte_code): Use B_.
1216 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1217 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1218 (skip_syntaxes, scan_lists): Use B_.
1219 * lread.c (readchar, unreadchar, openp, readevalloop)
1220 (Feval_buffer, Feval_region): Use B_.
1221 * print.c (printchar, strout, print_string, PRINTDECLARE)
1222 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1223 (print_object): Use B_.
1224 * font.c (font_at): Use B_.
b286858c
SM
1225 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1226 Use B_.
5d8ea120
TT
1227 * callint.c (check_mark, Fcall_interactively): Use B_.
1228 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1229 (save_excursion_restore, Fprevious_char, Fchar_before)
1230 (general_insert_function, Finsert_char, Finsert_byte)
1231 (make_buffer_string_both, Finsert_buffer_substring)
1232 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1233 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1234 (Ftranslate_region_internal, save_restriction_restore)
1235 (Fchar_equal): Use B_.
1236 * data.c (swap_in_symval_forwarding, set_internal)
1237 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1238 Use B_.
1239 * undo.c (record_point, record_insert, record_delete)
1240 (record_marker_adjustment, record_first_change)
1241 (record_property_change, Fundo_boundary, truncate_undo_list)
1242 (Fprimitive_undo): Use B_.
1243 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1244 (string_match_1, fast_looking_at, newline_cache_on_off)
1245 (search_command, search_buffer, simple_search, boyer_moore)
1246 (Freplace_match): Use B_.
1247 * indent.c (buffer_display_table, recompute_width_table)
1248 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
1249 (Findent_to, position_indentation, compute_motion, vmotion):
1250 Use B_.
5d8ea120
TT
1251 * casefiddle.c (casify_object, casify_region): Use B_.
1252 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1253 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1254 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1255 (Ffile_regular_p, Ffile_selinux_context)
1256 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1257 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1258 (Finsert_file_contents, choose_write_coding_system)
1259 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1260 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1261 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1262 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1263 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
1264 (set_marker_both, set_marker_restricted_both, unchain_marker):
1265 Use B_.
5d8ea120
TT
1266 * insdel.c (check_markers, insert_char, insert_1_both)
1267 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1268 (adjust_after_replace, replace_range, del_range_2)
1269 (modify_region, prepare_to_modify_buffer)
1270 (Fcombine_after_change_execute): Use B_.
1271 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1272 (unlock_buffer): Use B_.
1273 * keymap.c (Flocal_key_binding, Fuse_local_map)
1274 (Fcurrent_local_map, push_key_description)
1275 (Fdescribe_buffer_bindings): Use B_.
1276 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1277 (read_key_sequence): Use B_.
1278 * fringe.c (get_logical_cursor_bitmap)
1279 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1280 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1281 * xfaces.c (compute_char_face): Use B_.
1282 * character.c (chars_in_text, Fget_byte): Use B_.
1283 * category.c (check_category_table, Fcategory_table)
1284 (Fset_category_table, char_category_set): Use B_.
1285 * coding.c (decode_coding, encode_coding)
1286 (make_conversion_work_buffer, decode_coding_gap)
1287 (decode_coding_object, encode_coding_object)
1288 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
1289 (Funencodable_char_position, Fcheck_coding_systems_region):
1290 Use B_.
5d8ea120
TT
1291 * charset.c (Ffind_charset_region): Use B_.
1292 * window.c (window_display_table, unshow_buffer, window_loop)
1293 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1294 (select_window, Fforce_window_update, temp_output_buffer_show)
1295 (Fset_window_configuration, save_window_save): Use B_.
1296 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1297 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1298 (with_echo_area_buffer, setup_echo_area_for_printing)
1299 (set_message_1, update_menu_bar, update_tool_bar)
1300 (text_outside_line_unchanged_p, redisplay_internal)
1301 (try_scrolling, try_cursor_movement, redisplay_window)
1302 (try_window_reusing_current_matrix, row_containing_pos)
1303 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1304 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1305 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1306 (get_window_cursor_type, note_mouse_highlight): Use B_.
1307 * frame.c (make_frame_visible_1): Use B_.
1308 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1309 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1310 (WINDOW_WANTS_MODELINE_P): Use B_.
1311 * syntax.h (Vstandard_syntax_table): Update.
1312 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1313 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1314 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1315 * character.h (FETCH_CHAR_ADVANCE): Update.
1316 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1317 * category.h (Vstandard_category_table): Update.
1318 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1319 names.
1320 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1321 * buffer.c (swapfield_): New macro.
1322 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1323 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1324 (Fget_buffer_create, clone_per_buffer_values)
1325 (Fmake_indirect_buffer, reset_buffer)
1326 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1327 (Fbuffer_local_value, buffer_lisp_local_variables)
1328 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1329 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1330 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1331 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1332 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1333 (Fbuffer_swap_text, Fset_buffer_multibyte)
1334 (swap_out_buffer_local_variables, record_overlay_string)
1335 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1336 Use B_.
1337 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1338 (BUFFER_INTERNAL_FIELD, B_): New macro.
1339 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1340
42f60557
JD
13412011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1342
1343 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1344 is null.
1345
2f9a22e2
J
13462011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1347
1348 * callproc.c (Fcall_process):
1349 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1350 comment.
1351
84eb0351 13522011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
1353
1354 * window.c (select_window): Check inhibit_point_swap argument when
1355 deciding whether to return immediately.
1356
84eb0351 13572011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
1358
1359 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1360 zero (Bug#7348).
1361
84eb0351
CY
13622011-02-12 Chong Yidong <cyd@stupidchicken.com>
1363
1364 * config.in (TERMINFO): New definition.
1365
1366 * s/netbsd.h: Use it to choose between terminfo and termcap
1367 (Bug#7642).
1368
33d605d0
PE
13692011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1370
1371 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1372 The difference doesn't matter here, in practice, and sizeof is
1373 more portable to non-GCC compilers. Also, this makes the code
1374 match the already-existing comment.
1375
c0ad4ea5
AS
13762011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1377
1378 * process.c (create_process): Reset SIGPIPE handler in the child.
1379 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1380
50fd938f
EZ
13812011-02-12 Eli Zaretskii <eliz@gnu.org>
1382
1383 * xdisp.c <this_line_min_pos>: New variable.
1384 (move_it_in_display_line_to): Record in this_line_min_pos the
1385 smallest position iterated across.
1386 (display_line): Use this_line_min_pos to record the smallest
1387 position in the line even if it is not displayed due to
1388 hscrolling. (Bug#7939)
1389
af59aa6e
PE
13902011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1391
cec81b22
PE
1392 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1393 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1394 (struct md5_ctx): Use it.
1395
af59aa6e
PE
1396 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1397 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1398 defined.
1399 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1400 FC_HINT_STYLE is supported.
1401
02c3706c
JD
14022011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1403
1404 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1405 Make sure we don't do x_catch_errors twice.
1406
5ac75e8f
GM
14072011-02-10 Glenn Morris <rgm@gnu.org>
1408
1409 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1410
d37f40ed
EZ
14112011-02-09 Eli Zaretskii <eliz@gnu.org>
1412
5ac75e8f
GM
1413 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1414 New macros.
d37f40ed
EZ
1415 (globals.h, gl-stamp): New targets.
1416 (clean): Clean gl-stamp and globals.h.
1417
33cd3ee4
AS
14182011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1419
1420 * Makefile.in (gl-stamp): Create globals.h here.
1421 (globals.h): Don't do it here.
1422 (mostlyclean): Clean globals.h and gl-stamp.
1423
f9f2e7f5
PE
14242011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1425
1426 * Makefile.in ($(otherobj)): Depend on globals.h.
1427 Otherwise 'make -j10' failed on my host, because the build lacked
1428 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1429
00b3c7ac
TT
14302011-02-08 Tom Tromey <tromey@redhat.com>
1431
1432 * Makefile.in (NS_OBJC_OBJ): New variable.
1433 (base_obj): Rename from 'obj'.
1434 (obj): New variable.
1435 (globals.h, gl-stamp, $(obj)): New targets.
1436 (GLOBAL_SOURCES): New variable.
1437 * globals.h: Remove.
1438 * nsselect.m (Vselection_alist): Define. Reverts part of
1439 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1440 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1441 variable.
1442 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1443
8f3b2e12
KH
14442011-02-08 Kenichi Handa <handa@m17n.org>
1445
1446 * font.c (Ffont_get): Do not cache :otf value.
1447
4f043d0f
PE
14482011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1449
1450 conform to C89 pointer rules
1451
1452 * dired.c (scmp, file_name_completion):
1453 Change types between char * and unsigned char *, to satisfy C89
1454 rules about pointer type compatibility.
47ce90e4 1455 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 1456 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
1457 * alloc.c (make_string, make_specified_string, make_pure_string):
1458 Likewise.
57ace6d0 1459 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
1460 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1461 (print_object): Likewise.
e7f8264d
PE
1462 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1463 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1464 (Fformat): Likewise.
a2db9982 1465 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
1466 * fns.c (string_make_multibyte, string_to_multibyte):
1467 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1468 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1469 Likewise.
4a25e32a 1470 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
1471 * process.c (read_process_output, send_process, Fprocess_send_region):
1472 Likewise.
0ca76b1e 1473 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
1474 * doprnt.c (doprnt): Likewise.
1475 * indent.c (compute_motion): Likewise.
efe0234f 1476 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 1477 * ralloc.c (resize_bloc): Likewise.
b19beacc 1478 * image.c (tiff_load): Likewise.
c45e5276 1479 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
1480 * character.c (strwidth): Make its argument const char *, not const
1481 unsigned char *, since more callers prefer it that way. All callers
1482 changed.
4f043d0f 1483
9eee99eb
PE
14842011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1485
4c83cffc
PE
1486 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1487 Emacs assumes two's complement elsewhere, but the assumption is
1488 easy to remove here, and this suppresses a warning with Sun C 5.8.
1489
82470039
PE
1490 conform to C89 pointer rules
1491
1492 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1493 (same_x_server, x_term_init):
9eee99eb
PE
1494 Change types between char * and unsigned char *, to satisfy C89
1495 rules about pointer type compatibility.
82470039
PE
1496 * doc.c (get_doc_string, Fsnarf_documentation):
1497 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
1498 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1499 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 1500 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
1501 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1502 Likewise.
01c9aa3a 1503 * keymap.c (Ftext_char_description): Likewise.
637de37e 1504 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
1505 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1506 (DRIVE_LETTER) [defined DOS_NT]:
1507 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1508 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1509 (search_embedded_absfilename, Fsubstitute_in_file_name):
1510 (barf_or_query_if_file_exists, Fmake_directory_internal):
1511 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1512 (Finsert_file_contents, Fwrite_region):
1513 Likewise.
b68864e5
PE
1514 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1515 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1516 Likewise. This changes these functions' signatures, which is
1517 more convenient since most callers use char *. All remaining
1518 callers changed.
1519 * editfns.c (general_insert_function): Change signature to
1520 match changes to insert functions' signatures.
b286858c
SM
1521 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1522 Use explicit cast when converting between void * and function pointer
01c9aa3a 1523 types, as C89 requires this.
9eee99eb 1524
32299e33
PE
15252011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1526
1527 don't ignore chdir failure
1528 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1529 failure and exit.
1530 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1531 remaining unchecked chdir calls in this function; some DOS/NT
1532 expert needs to fix them.
1533 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1534 in this function; some NextStep expert needs to fix them.
1535
233ba4d9 15362011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
1537
1538 * xfaces.c (Finternal_set_lisp_face_attribute):
1539 Try to clarify some error messages. (Bug#2659)
1540
233ba4d9 15412011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
1542
1543 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1544 current_column cache (bug#7946).
1545
233ba4d9 15462011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
1547
1548 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1549
1550 * xftfont.c (xftfont_open): Likewise.
1551
233ba4d9 15522011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
1553
1554 * window.c (Fselect_window): Add missing return value.
1555
d67985d3
PE
15562011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1557
25a48bd0
PE
1558 xstrcasecmp: conform to C89 pointer rules
1559 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1560 to const char *, since they're usually low-level C strings, and
1561 this stays compatible with C89 pointer rules. All callers changed.
1562
2f8f196d 1563 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
1564 (define_charset_internal): Switch between char * and unsigned char *.
1565
2f8f196d 1566 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
1567 (xmenu_show, xdialog_show): Declare local var as char *, not
1568 const char *, to stay compatible with C89 const rules.
1569
2f8f196d 1570 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
1571 (store_mode_line_noprop, display_string, reseat_to_string):
1572 (c_string_pos, number_of_chars, message_dolog):
1573 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1574 (display_mode_element, display_string):
1575 Switch between char * and unsigned char * to stay compatible wth
1576 C89 pointer rules.
1577
2f8f196d 1578 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
1579 (re_wctype): Add cast, as C89 does not allow assigning between
1580 char * and unsigned char *.
1581 (regex_compile): Likewise.
1582
d67985d3
PE
1583 sync from gnulib to remove HAVE_STDBOOL_H
1584 * config.in: Regenerate.
1585
a5d733f5
EZ
15862011-02-04 Eli Zaretskii <eliz@gnu.org>
1587
f90e08f5
EZ
1588 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1589 Replace all uses of lisp.h with $(LISP_H), and all uses of
1590 process.h with $(PROCESS_H).
1591 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
1592 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
1593
be50df37
EZ
1594 * deps.mk: Update for recent changes: gnutls support, gnulib
1595 imports, addition of globals.h.
1596
f90e08f5
EZ
1597 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
1598 ../lib/ignore-value.h.
a5d733f5 1599
67342916
PE
16002011-02-03 Paul Eggert <eggert@cs.ucla.edu>
1601
1602 allow C code to suppress warnings about ignored return values
1603
1604 We need to go through the code and for each such warning, either
1605 fix the code to pay attention to the returned value, or tell GCC
1606 that we really do want to ignore the returned value. Here is one
1607 example of how to do the latter.
1608 * sysdep.c: Include <ignore-value.h>.
1609 (sys_subshell): Suppress an undesirable warning about not checking
1610 the returned value of 'write', as there's nothing useful one can
1611 do with that returned value.
1612
36941b32
JD
16132011-02-03 Jan Djärv <jan.h.d@swipnet.se>
1614
1615 * xterm.c (x_connection_closed): Remove all calls that calls
1616 XSync (Bug#7949).
1617
3082f617
EZ
16182011-02-01 Eli Zaretskii <eliz@gnu.org>
1619
1620 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
1621 TIFFClientOpen.
1622
4df0af9b
JD
16232011-02-01 Jan Djärv <jan.h.d@swipnet.se>
1624
1625 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
1626 (x_session_check_input): Change args and return type so it can be used
1627 as argument to add_read_fd. Make static. Remove call to select.
1628 Call kbd_buffer_store_event for emacs_event.
1629 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
1630 (ice_conn_watch_CB): Call add_read_fd.
1631
1632 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
1633 x_session_check_input.
1634 (x_session_initialized): Remove definition.
1635 (x_initialize): Remove setting of x_session_initialized.
1636
1637 * xterm.h (x_session_check_input): Remove declaration.
1638
a4180391
PE
16392011-02-01 Paul Eggert <eggert@cs.ucla.edu>
1640
1641 format-time-string now supports subsecond time stamp resolution
b286858c 1642 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
1643 for consistency with its new argument and with gnulib nstrftime.
1644 All callers changed. New argument NS.
1645 (Fformat_time_string): Check that the time argument's microseconds
1646 component, if any, is in range; this avoids integer overflow and
1647 also nstrftime needs this. Document %N.
1648
14beddf4 16492011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
1650
1651 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
1652 of int. All uses adjusted.
1653 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
1654 (svg_load_image): Remove casts.
1655
14beddf4 16562011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
1657
1658 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
1659 function definitions for compiling with libpng-1.5.
1660 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
1661 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
1662 (Bug#7908).
1663
70b0d280
EZ
16642011-01-31 Eli Zaretskii <eliz@gnu.org>
1665
8b3c625b
EZ
1666 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
1667
70b0d280
EZ
1668 * makefile.w32-in (OBJ2): Remove strftime.$(O).
1669 ($(BLD)/strftime.$(O)): Remove prerequisites.
1670
16fab143
PE
16712011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1672
1673 src/emacs.c now gets version number from configure.in
1674 * emacs.c (emacs_version): Set to VERSION so that it
1675 is determined automatically from ../configure.in.
1676
546961a9
JM
16772011-01-31 Jim Meyering <meyering@redhat.com>
1678
1679 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
1680 Use xmalloc rather than malloc.
1681
42a5b22f
PE
16822011-01-30 Paul Eggert <eggert@cs.ucla.edu>
1683
16c3e636
PE
1684 strftime: import from gnulib
1685 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
1686 * deps.mk (strftime.o): Remove.
1687 * editfns.c: Include <strftime.h>, supplied by gnulib.
1688 (emacs_strftimeu): Remove decl.
1689 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
1690 emacs_strftimeu.
1691 * config.in: Regenerate.
1692 * strftime.c: Remove; we now use strftime from gnulib.
1693
42a5b22f
PE
1694 Use SSDATA when the context wants char *.
1695 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
1696 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
1697 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
1698 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
1699 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
1700 Use SSDATA (not SDATA) when the context of the expression wants
1701 char * (not unsigned char *).
1702
2787bba3
JD
17032011-01-30 Jan Djärv <jan.h.d@swipnet.se>
1704
1705 * .gdbinit: Read global lisp variables as globals.f_V*.
1706
4ec88040
AS
17072011-01-30 Andreas Schwab <schwab@linux-m68k.org>
1708
1709 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
1710 All uses changed.
1711 (PROP_SAVE): Likewise.
1712
b6bcd048
CY
17132011-01-29 Chong Yidong <cyd@stupidchicken.com>
1714
1715 * keyboard.c (make_lispy_position): Fix typo in last change
1716 (Bug#7935).
1717
f915f0f7
EZ
17182011-01-29 Eli Zaretskii <eliz@gnu.org>
1719
1720 * s/ms-w32.h (HAVE_MKTIME): Remove.
1721
1722 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1723 (GNULIB): New variable.
1724 (LIBS): Add $(GNULIB).
1725 $(TEMACS): Depend on $(GNULIB).
1726 <top-level>: Fix font-lock disrupted by a lone `"'.
1727
497a1925
JD
17282011-01-29 Jan Djärv <jan.h.d@swipnet.se>
1729
1730 * nsselect.m (ns_string_from_pasteboard): Get length of string
1731 and use make_string instead of build_string (Bug#7934).
1732 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
1733 instead of stringWithUTF8String (Bug#7934).
1734
2f8f196d 17352011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 1736
2f8f196d
JB
1737 * nsfont.m (nsfont_open): Ensure that fonts with inexact
1738 descenders would not become one pixel too tall (Bug#7887).
481ae085 1739
6b918613
CY
17402011-01-28 Chong Yidong <cyd@stupidchicken.com>
1741
1742 * keyboard.c (make_lispy_position): For clicks on right fringe or
1743 margin, compute text position using the X coordinate relative to
1744 the left of the text area (Bug#7839).
1745
9e269017
KH
17462011-01-28 Kenichi Handa <handa@m17n.org>
1747
1748 * ftfont.c (ftfont_spec_pattern): Check each extra property
1749 value.
1750
17dd1fc8
SM
17512011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1752
1753 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
1754
372fb76b
CY
17552011-01-27 Chong Yidong <cyd@stupidchicken.com>
1756
1757 * font.c (font_parse_fcname): Undefine a temporary macro.
1758
e7f7fbaa
SM
17592011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
1760
1761 Let the debugger continue to the normal handler (bug#7825).
1762 * eval.c (maybe_call_debugger): Declare before new use.
1763 (find_handler_clause): Don't call debugger any more.
1764 Ignore Vstack_trace_on_error.
1765 Use XCAR/XCDR.
1766 (syms_of_eval): Remove Vstack_trace_on_error.
1767 (Fsignal): Only modify handlerlist when we know we need to do it.
1768 Call the debugger when necessary.
1769 * globals.h (Vstack_trace_on_error): Remove.
1770
6608a7d8
CY
17712011-01-26 Chong Yidong <cyd@stupidchicken.com>
1772
1773 * font.c (font_parse_fcname): Rewrite GTK font name parser.
1774
06d8ace5 17752011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
1776
1777 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
1778 the buffer's point-max (bug#7876).
1779
06d8ace5 17802011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
1781
1782 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 1783 Remove unused case (Bug#6811).
19634648 1784
8ab70320
JD
17852011-01-23 Jan Djärv <jan.h.d@swipnet.se>
1786
1787 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
1788 setFrameTopLeftPoint is constrained.
1789
51b59d79
PE
17902011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1791
9055082e
PE
1792 Check return values of some library calls.
1793 * emacs.c (main): Check dup result.
1794 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1795 (frame_name_fnn_p): Check strtol result.
1796
5c7d01a5 1797 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
1798 when calling XpmCreatePixmapFromData.
1799
51b59d79
PE
1800 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1801 * lisp.h (SSDATA): New macro.
1802 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1803 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1804 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1805 * xsmfns.c (SSDATA): Likewise.
1806
e6b84b30
MR
18072011-01-22 Martin Rudalics <rudalics@gmx.at>
1808
1809 * window.c (select_window): New function.
1810 (Fselect_window): Call it.
1811 (inhibit_point_swap): Variable deleted.
1812 (Fset_window_configuration): Call select_window directly.
1813
3fb69558
JD
18142011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1815
1816 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1817
449ab399
JD
18182011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1819
e2f79c8d
JD
1820 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1821 screen, not the window screen.
1822 (x_set_window_size): Remove constraints.
1823 Calculate origin.y only if zooming is 0 and without referring to a
1824 screen.
1825 (windowWillResize): Don't modify frameSize.
1826 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
1827 (initFrameFromEmacs): Initialize ns_userRect.
1828 (windowShouldZoom): Set zooming to one. Remove all other code.
1829 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
1830 Zero it after restore.
1831 (constrainFrameRect): New method for EmacsWindow.
1832 (mouseDragged): Always post NSWindowDidResizeNotification after call to
1833 windowWillResize.
1834
1835 * nsterm.h (ns_output): Add dont_constrain and zooming.
1836 (EmacsView): Add ns_userRect.
1837
449ab399
JD
1838 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
1839 if ns_alternate_modifier is none.
1840
e885315d
JD
18412011-01-20 Jan Djärv <jan.h.d@swipnet.se>
1842
1843 * unexmacosx.c: Add comment about include order.
1844
bb1c6663
GM
18452011-01-20 Glenn Morris <rgm@gnu.org>
1846
c11136ec
GM
1847 * minibuf.c (syms_of_minibuf) <read-expression-history>:
1848 Give it a doc string.
1849 * globals.h: Add Vread_expression_history.
1850
bb1c6663
GM
1851 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
1852 Give it a doc string.
1853 * globals.h: Add Vkbd_macro_termination_hook.
1854
9aea757b
CY
18552011-01-20 Chong Yidong <cyd@stupidchicken.com>
1856
1857 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
1858
e1ef0dac
PE
18592011-01-19 Paul Eggert <eggert@cs.ucla.edu>
1860
1861 Fix X11 compilation failure.
1862 * globals.h (struct emacs_globals): Document f_Vselection_alist.
1863 * xselect.c (Vselection_alist): Remove declaration, moving its
1864 documentation to globals.h. This fixes a compilation failure
1865 induced by the earlier change to globals.h today.
1866
fb9d0f5a
JD
18672011-01-19 Jan Djärv <jan.h.d@swipnet.se>
1868
8beb828a
JD
1869 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
1870
fb9d0f5a
JD
1871 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
1872 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
1873 (ns_input_spi_name, ns_input_spi_arg)
1874 (ns_alternate_modifier, ns_right_alternate_modifier)
1875 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
1876 (ns_right_control_modifier, ns_function_modifier)
1877 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
1878 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
1879 (x_underline_at_descent_line): Remove declaration.
1880 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
1881
01c35094 1882 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
fb9d0f5a
JD
1883 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
1884 (syms_of_nsselect): Remove & from DEFVAR_LISP.
1885
1886 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
1887 Remove declaration.
1888
1889 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
1890 globals.h.
1891 (syms_of_nsfont): Remove & from DEFVAR_LISP.
1892
1893 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
1894 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
1895 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
1896
1897 * globals.h (struct emacs_globals): Add f_ns_input_file,
1898 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
1899 f_ns_input_color, f_ns_input_text, f_ns_working_text,
1900 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
1901 f_ns_right_alternate_modifier, f_ns_command_modifier,
1902 f_ns_right_command_modifier, f_ns_control_modifier,
1903 f_ns_right_control_modifier, f_ns_function_modifier,
1904 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
1905 f_Vns_version_string, f_Vns_sent_selection_hooks,
1906 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
1907 and corresponding defines.
1908
4e55715e
SS
19092011-01-19 Sam Steingold <sds@gnu.org>
1910
1911 * w32.c (check_windows_init_file): Remove declarations of
1912 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 1913 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 1914
ef79d2fa
TT
19152011-01-19 Tom Tromey <tromey@redhat.com>
1916
1917 * window.c: Fix error introduced by previous patch.
1918
29208e82
TT
19192011-01-18 Tom Tromey <tromey@parfait>
1920
1921 * globals.h: New file.
1922 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
1923 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
1924 (Vwindow_system_version): Remove declaration.
1925 * w32term.h (Vw32_enable_palette)
1926 (Vx_pixel_size_width_font_regexp): Remove declaration.
1927 * w32menu.c (Voverriding_local_map)
1928 (Voverriding_local_map_menu_flag): Remove declaration.
1929 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1930 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1931 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1932 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1933 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1934 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1935 (w32_use_full_screen_buffer): Remove declaration.
1936 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1937 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1938 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1939 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1940 (no_redraw_on_reenter, visible_bell): Remove declaration.
1941 * sysdep.c (Vsystem_name): Remove declaration.
1942 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1943 * menu.h (Vmenu_updating_frame): Remove declaration.
1944 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1945 Remove declaration.
1946 * lisp.h (Vafter_init_time, Vafter_load_alist)
1947 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1948 (Vcompletion_regexp_list, Vcurrent_load_list)
1949 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1950 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1951 (Vexec_directory, Vexec_path, Vexec_suffixes)
1952 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1953 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1954 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1955 (Vinstallation_directory, Vinvocation_directory)
1956 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1957 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1958 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1959 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1960 (Vscalable_fonts_allowed, Vselect_active_regions)
1961 (Vshell_file_name, Vstandard_input, Vstandard_output)
1962 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1963 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1964 (Vuser_login_name, Vwindow_scroll_functions)
1965 (Vwindow_system_version, Vx_no_window_manager)
1966 (Vx_resource_class, Vx_resource_name, baud_rate)
1967 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1968 (history_delete_duplicates, inhibit_x_resources)
1969 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1970 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
1971 (use_dialog_box, use_file_dialog): Remove declaration.
1972 Include globals.h.
29208e82 1973 * keymap.h (Voverriding_local_map)
b286858c
SM
1974 (Voverriding_local_map_menu_flag, meta_prefix_char):
1975 Remove declaration.
29208e82
TT
1976 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1977 (Vinput_method_function, Vkey_translation_map)
1978 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1979 (do_mouse_tracking, extra_keyboard_modifiers)
1980 (num_nonmacro_input_events): Remove declaration.
1981 * intervals.h (Vchar_property_alias_alist)
1982 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1983 (Vtext_property_default_nonsticky): Remove declaration.
1984 * gtkutil.h (x_gtk_file_dialog_help_text)
1985 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1986 (x_gtk_whole_detached_tool_bar): Remove declaration.
1987 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1988 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1989 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1990 (focus_follows_mouse): Remove declaration.
1991 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1992 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
1993 (Vuse_default_ascent, Vvertical_centering_font_regexp):
1994 Remove declaration.
29208e82
TT
1995 * font.h (Vfont_log): Remove declaration.
1996 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1997 (Vdos_windows_version, dos_codepage, dos_country_code)
1998 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
1999 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2000 Remove declaration.
2001 * disptab.h (Vglyph_table, Vstandard_display_table):
2002 Remove declaration.
29208e82
TT
2003 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2004 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2005 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2006 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2007 (inverse_video, mode_line_in_non_selected_windows)
2008 (tool_bar_button_relief, tool_bar_max_label_size)
2009 (underline_minimum_offset)
2010 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2011 Remove declaration.
2012 * composite.h (Vauto_composition_function)
2013 (Vcomposition_function_table): Remove declaration.
2014 * commands.h (Vexecuting_kbd_macro)
2015 (Vminibuffer_local_completion_map)
2016 (Vminibuffer_local_filename_completion_map)
2017 (Vminibuffer_local_filename_must_match_map)
2018 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2019 (Vminibuffer_local_ns_map, Vthis_command)
2020 (Vunread_command_events, cursor_in_echo_area)
2021 (last_command_event, last_nonmenu_event, unread_command_char):
2022 Remove declaration.
2023 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2024 (Vdefault_file_name_coding_system)
2025 (Vdefault_process_coding_system, Vfile_name_coding_system)
2026 (Vlast_coding_system_used, Vlocale_coding_system)
2027 (Vselect_safe_coding_system_function)
2028 (Vtranslation_table_for_input, coding_system_require_warning)
2029 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
2030 (eol_mnemonic_unix, inherit_process_coding_system):
2031 Remove declaration.
2032 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2033 Remove declaration.
29208e82
TT
2034 * character.h (Vauto_fill_chars, Vchar_direction_table)
2035 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2036 (Vscript_representative_chars, Vtranslation_table_vector)
2037 (Vunicode_category_table): Remove declaration.
2038 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2039 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2040 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2041 (inhibit_modification_hooks): Remove declaration.
2042 * xterm.c (syms_of_xterm): Update.
2043 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2044 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2045 (x_mouse_click_focus_ignore_position)
2046 (x_underline_at_descent_line)
2047 (x_use_underline_position_properties): Remove.
2048 * xsmfns.c (syms_of_xsmfns): Update.
2049 (Vx_session_id, Vx_session_previous_id): Remove.
2050 * xsettings.c (syms_of_xsettings): Update.
2051 (Vxft_settings, use_system_font): Remove.
2052 * xselect.c (syms_of_xselect): Update.
2053 (Vselection_converter_alist, Vx_lost_selection_functions)
2054 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2055 * xfns.c (syms_of_xfns): Update.
2056 (Vgtk_version_string, Vmotif_version_string)
2057 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2058 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2059 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2060 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2061 (Vx_sensitive_text_pointer_shape)
2062 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2063 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2064 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2065 Remove.
2066 * xfaces.c (syms_of_xfaces): Update.
2067 (Vface_default_stipple, Vface_font_rescale_alist)
2068 (Vface_ignored_fonts, Vface_new_frame_defaults)
2069 (Vface_remapping_alist, Vfont_list_limit)
2070 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2071 * xdisp.c (syms_of_xdisp): Update.
2072 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2073 (Vdisplay_pixels_per_inch, Vfontification_functions)
2074 (Vframe_title_format, Vglobal_mode_string)
2075 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2076 (Vicon_title_format, Vinhibit_redisplay)
2077 (Vline_number_display_limit, Vline_prefix)
2078 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2079 (Vmenu_updating_frame, Vmessage_log_max)
2080 (Vmouse_autoselect_window, Vnobreak_char_display)
2081 (Voverlay_arrow_position, Voverlay_arrow_string)
2082 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2083 (Vresize_mini_windows, Vshow_trailing_whitespace)
2084 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2085 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2086 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2087 (Vwindow_text_change_functions, Vwrap_prefix)
2088 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2089 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2090 (highlight_nonselected_windows, hscroll_margin)
2091 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2092 (inhibit_menubar_update, inhibit_try_cursor_movement)
2093 (inhibit_try_window_id, inhibit_try_window_reusing)
2094 (line_number_display_limit_width)
2095 (make_cursor_line_fully_visible_p, message_truncate_lines)
2096 (mode_line_inverse_video, multiple_frames, overline_margin)
2097 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2098 (tool_bar_max_label_size, underline_minimum_offset)
2099 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2100 Remove.
2101 * window.c (syms_of_window): Update.
2102 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2103 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2104 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2105 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2106 (mode_line_in_non_selected_windows, next_screen_context_lines)
2107 (window_min_height, window_min_width): Remove.
2108 (scroll_margin): Remove declaration.
2109 * w32term.c (syms_of_w32term): Update.
2110 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2111 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2112 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2113 (w32_use_visible_system_caret, x_underline_at_descent_line)
2114 (x_use_underline_position_properties): Remove.
2115 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2116 Remove declaration.
2117 * w32select.c (syms_of_w32select): Update.
2118 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2119 * w32proc.c (syms_of_ntproc): Update.
2120 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2121 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2122 (Vw32_start_process_inherit_error_mode)
2123 (Vw32_start_process_share_console)
2124 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2125 (Vsystem_name): Remove declaration.
2126 * w32font.c (syms_of_w32font): Update.
2127 (Vw32_charset_info_alist): Remove.
2128 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2129 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2130 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2131 (Vw32_enable_palette, Vw32_lwindow_modifier)
2132 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2133 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2134 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2135 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2136 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2137 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2138 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2139 (Vx_sensitive_text_pointer_shape)
2140 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2141 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2142 (w32_mouse_move_interval)
2143 (w32_pass_extra_mouse_buttons_to_system)
2144 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2145 (w32_strict_fontnames, w32_strict_painting): Remove.
2146 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2147 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
2148 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2149 Remove declaration.
29208e82
TT
2150 * w32console.c (syms_of_ntterm): Update.
2151 (w32_use_full_screen_buffer): Remove.
2152 (Vtty_defined_color_alist): Remove declaration.
2153 * w16select.c (syms_of_win16select): Update.
2154 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2155 * undo.c (syms_of_undo): Update.
2156 (Vundo_outer_limit, Vundo_outer_limit_function)
2157 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2158 Remove.
2159 * textprop.c (syms_of_textprop): Update.
2160 (Vchar_property_alias_alist, Vdefault_text_properties)
2161 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2162 Remove.
2163 * terminal.c (syms_of_terminal): Update.
2164 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2165 * term.c (syms_of_term): Update.
2166 (Vresume_tty_functions, Vsuspend_tty_functions)
2167 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2168 Remove.
2169 * syntax.c (syms_of_syntax): Update.
2170 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2171 (open_paren_in_column_0_is_defun_start)
2172 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2173 (words_include_escapes): Remove.
2174 * search.c (syms_of_search): Update.
2175 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2176 * process.c (syms_of_process): Update.
2177 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2178 (delete_exited_processes): Remove.
2179 * print.c (syms_of_print): Update.
2180 (Vfloat_output_format, Vprint_charset_text_property)
2181 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2182 (Vprint_length, Vprint_level, Vprint_number_table)
2183 (Vstandard_output, print_escape_multibyte)
2184 (print_escape_newlines, print_escape_nonascii, print_quoted):
2185 Remove.
2186 * msdos.c (syms_of_msdos): Update.
2187 (Vdos_unsupported_char_glyph): Remove.
2188 (unibyte_display_via_language_environment): Remove declaration.
2189 * minibuf.c (syms_of_minibuf): Update.
2190 (Vcompletion_regexp_list, Vhistory_add_new_input)
2191 (Vhistory_length, Vminibuffer_completing_file_name)
2192 (Vminibuffer_completion_confirm)
2193 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2194 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2195 (Vminibuffer_history_position, Vminibuffer_history_variable)
2196 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2197 (Vread_buffer_function, Vread_expression_map)
2198 (completion_ignore_case, enable_recursive_minibuffers)
2199 (history_delete_duplicates, minibuffer_allow_text_properties)
2200 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2201 Remove.
2202 * marker.c (syms_of_marker): Update.
2203 (byte_debug_flag): Remove.
2204 * macros.c (syms_of_macros): Update.
2205 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2206 * lread.c (syms_of_lread): Update.
2207 (Vafter_load_alist, Vbyte_boolean_vars)
2208 (Vbytecomp_version_regexp, Vcurrent_load_list)
2209 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2210 (Vload_history, Vload_path, Vload_read_function)
2211 (Vload_source_file_function, Vload_suffixes, Vobarray)
2212 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2213 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2214 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2215 (force_load_messages, load_convert_to_unibyte)
2216 (load_dangerous_libraries, load_force_doc_strings)
2217 (load_in_progress): Remove.
2218 * keymap.c (syms_of_keymap): Update.
2219 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2220 (Vminibuffer_local_completion_map)
2221 (Vminibuffer_local_filename_completion_map)
2222 (Vminibuffer_local_filename_must_match_map)
2223 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2224 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2225 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2226 Remove.
2227 * keyboard.c (syms_of_keyboard): Update.
2228 (Vauto_save_timeout, Vcommand_error_function)
2229 (Vcommand_hook_internal, Vdeactivate_mark)
2230 (Vdeferred_action_function, Vdeferred_action_list)
2231 (Vdisable_point_adjustment, Vdouble_click_time)
2232 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2233 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2234 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2235 (Vinput_method_function, Vinput_method_previous_message)
2236 (Vkey_translation_map, Vlast_event_frame)
2237 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2238 (Vminibuffer_message_timeout, Voverriding_local_map)
2239 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2240 (Vpre_command_hook, Vprefix_help_command)
2241 (Vsaved_region_selection, Vselect_active_regions)
2242 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2243 (Vthis_command, Vthis_command_keys_shift_translated)
2244 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2245 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2246 (Vtty_erase_char, Vunread_command_events)
2247 (Vunread_input_method_events, Vunread_post_input_method_events)
2248 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2249 (double_click_fuzz, extra_keyboard_modifiers)
2250 (inhibit_local_menu_bar_menus, last_command_event)
2251 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2252 (menu_prompting, meta_prefix_char, num_input_keys)
2253 (num_nonmacro_input_events, polling_period, unread_command_char):
2254 Remove.
2255 * insdel.c (syms_of_insdel): Update.
2256 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2257 * indent.c (syms_of_indent): Update.
2258 (indent_tabs_mode): Remove.
2259 * image.c (syms_of_image): Update.
2260 (Vimage_cache_eviction_delay, Vimage_types)
2261 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2262 (cross_disabled_images): Remove.
2263 * fringe.c (syms_of_fringe): Update.
2264 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2265 * frame.c (syms_of_frame): Update.
2266 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2267 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2268 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2269 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2270 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2271 Remove.
2272 * fontset.c (syms_of_fontset): Update.
2273 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2274 (Vfontset_alias_alist, Vignore_relative_composition)
2275 (Votf_script_alist, Vuse_default_ascent)
2276 (Vvertical_centering_font_regexp): Remove.
2277 * font.c (syms_of_font): Update.
2278 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2279 (Vfont_weight_table, Vfont_width_table): Remove.
2280 * fns.c (syms_of_fns): Update.
2281 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2282 * filelock.c (syms_of_filelock): Update.
2283 (Vtemporary_file_directory): Remove.
2284 * fileio.c (syms_of_fileio): Update.
2285 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2286 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2287 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2288 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2289 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2290 (Vwrite_region_annotate_functions)
2291 (Vwrite_region_annotations_so_far)
2292 (Vwrite_region_post_annotation_function)
2293 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2294 (Vw32_get_true_file_attributes): Remove declaration.
2295 * eval.c (syms_of_eval): Update.
2296 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2297 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2298 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2299 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2300 (max_lisp_eval_depth, max_specpdl_size): Remove.
2301 * emacs.c (syms_of_emacs): Update.
2302 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2303 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2304 (Vinstallation_directory, Vinvocation_directory)
2305 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2306 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2307 (Vsystem_configuration, Vsystem_configuration_options)
2308 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2309 (inhibit_x_resources, noninteractive1): Remove.
2310 * editfns.c (syms_of_editfns): Update.
2311 (Vbuffer_access_fontified_property)
2312 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2313 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2314 (Vuser_login_name, Vuser_real_login_name): Remove.
2315 * dosfns.c (syms_of_dosfns): Update.
2316 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2317 (dos_codepage, dos_country_code, dos_decimal_point)
2318 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2319 (dos_super_key, dos_timezone_offset): Remove.
2320 * doc.c (syms_of_doc): Update.
2321 (Vbuild_files, Vdoc_file_name): Remove.
2322 * dispnew.c (syms_of_display): Update.
2323 (Vglyph_table, Vinitial_window_system)
2324 (Vredisplay_preemption_period, Vstandard_display_table)
2325 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2326 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2327 * dired.c (syms_of_dired): Update.
2328 (Vcompletion_ignored_extensions): Remove.
2329 (Vw32_get_true_file_attributes): Remove declaration.
2330 * dbusbind.c (syms_of_dbusbind): Update.
2331 (Vdbus_debug, Vdbus_registered_buses)
2332 (Vdbus_registered_objects_table): Remove.
2333 * data.c (syms_of_data): Update.
2334 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2335 * composite.c (syms_of_composite): Update.
2336 (Vauto_composition_function, Vauto_composition_mode)
2337 (Vcompose_chars_after_function, Vcomposition_function_table):
2338 Remove.
2339 * coding.c (syms_of_coding): Update.
2340 (Vcharset_revision_table, Vcoding_category_list)
2341 (Vcoding_system_alist, Vcoding_system_for_read)
2342 (Vcoding_system_for_write, Vcoding_system_list)
2343 (Vdefault_process_coding_system, Venable_character_translation)
2344 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2345 (Vlast_coding_system_used, Vlatin_extra_code_table)
2346 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2347 (Vprocess_coding_system_alist)
2348 (Vselect_safe_coding_system_function)
2349 (Vstandard_translation_table_for_decode)
2350 (Vstandard_translation_table_for_encode)
2351 (Vtranslation_table_for_input, coding_system_require_warning)
2352 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2353 (eol_mnemonic_unix, inherit_process_coding_system)
2354 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2355 (inhibit_null_byte_detection): Remove.
2356 * cmds.c (syms_of_cmds): Update.
2357 (Vpost_self_insert_hook): Remove.
2358 * charset.c (syms_of_charset): Update.
2359 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2360 (inhibit_load_charset_map): Remove.
2361 * character.c (syms_of_character): Update.
2362 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2363 (Vchar_width_table, Vprintable_chars)
2364 (Vscript_representative_chars, Vtranslation_table_vector)
2365 (Vunicode_category_table): Remove.
2366 * ccl.c (syms_of_ccl): Update.
2367 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2368 (Vtranslation_hash_table_vector): Remove.
2369 * category.c (syms_of_category): Update.
2370 (Vword_combining_categories, Vword_separating_categories): Remove.
2371 * callproc.c (syms_of_callproc): Update.
2372 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2373 (Vexec_directory, Vexec_path, Vexec_suffixes)
2374 (Vinitial_environment, Vprocess_environment)
2375 (Vshared_game_score_directory, Vshell_file_name): Remove.
2376 * callint.c (syms_of_callint): Update.
2377 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2378 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2379 * bytecode.c (syms_of_bytecode): Update.
2380 (Vbyte_code_meter, byte_metering_on): Remove.
2381 * buffer.c (syms_of_buffer): Update.
2382 (Vafter_change_functions, Vbefore_change_functions)
2383 (Vchange_major_mode_hook, Vfirst_change_hook)
2384 (Vinhibit_read_only, Vkill_buffer_query_functions)
2385 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2386 * alloc.c (syms_of_alloc): Update.
2387 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2388 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2389 (cons_cells_consed, floats_consed, garbage_collection_messages)
2390 (gc_cons_threshold, gcs_done, intervals_consed)
2391 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2392 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2393
2394 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2395 (DEFVAR_INT): Assume global is in `globals'.
2396 * alloc.c (globals): Define.
2397
448c0820
TT
23982011-01-18 Tom Tromey <tromey@redhat.com>
2399
2400 * image.c (Vimagemagick_render_type): Remove redundant
2401 definition.
2402
8442d95d
TT
24032011-01-18 Tom Tromey <tromey@redhat.com>
2404
2405 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2406 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2407 (redisplay_window): Update.
2408 (syms_of_xdisp): Update.
2409
cab0ba98
TT
24102011-01-18 Tom Tromey <tromey@redhat.com>
2411
2412 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2413 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2414 Declare.
2415 * gtkutil.c (xg_uses_old_file_dialog):
2416 (xg_get_file_with_chooser):
2417 (xg_tool_bar_detach_callback): Don't redeclare globals.
2418
422745d0
TT
24192011-01-18 Tom Tromey <tromey@redhat.com>
2420
2421 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2422 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2423
7cae64b4
PE
24242011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2425
2426 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2427 defined __GNUC__. ../configure now checks for this GCC feature,
2428 which is now also supported by IBM and Oracle compilers.
2429 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2430 since Solaris malloc returns mult-of-8.
2431
a9faac5c 24322011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
2433
2434 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2435
a3e44e79 24362011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 2437
6e8e6bf2
PE
2438 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2439 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2440 * data.c (Fnumber_to_string): Use it.
2441 * print.c (float_to_string, print_object): Likewise.
2442
4004364e
PE
2443 Include <unistd.h> unilaterally.
2444 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2445 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2446 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2447 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2448 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2449 * xterm.c:
2450 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2451 unistd.h is always present now, possibly supplied by gnulib.
2452
e84aba69
PE
2453 * mktime.c: Remove; moving to ../lib.
2454
1e11dbe3
PE
2455 Use gnulib's mktime module.
2456 * deps.mk (mktime.o): Remove rule.
2457
fa2c4f56
PE
2458 Use gnulib's ftoastr module.
2459 * print.c: Include ftoastr.h.
2460 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2461 Remove; no longer needed.
2462 (float_to_string): Use dtoastr rather than rolling our own code,
2463 which had an off-by-one bug on non-IEEE hosts.
2464
9a514d4a
PE
2465 Automate syncing from gnulib.
2466 * Makefile.in (lib): New macro.
2467 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2468 ($(lib)/libgnu.a): New rule.
2469 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2470
717c30e0
PE
2471 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2472 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2473 so change the type of 'ign' to unsigned int from int.
2474
8865d794
PE
2475 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2476
4ef36a7b
PE
2477 * xterm.h (struct x_display_info): Remove stray semicolon.
2478 The extra semicolon didn't conform to the C standard.
2479 Problem reported by Sun cc.
2480
6df4097e
PE
2481 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2482 These changes make compilation easier to follow with Sun cc.
2483 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2484 EMACS_INT values without provoking overflow diagnostics.
2485 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2486 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2487 diagnostic with signed left shift.
9fba3563 2488
410ed5c3
PE
2489 * fileio.c (make_temp_name): Remove unreachable code.
2490
97be3ce3
PE
2491 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2492 Previously it was marked by preceding it with "return;", but
2493 Sun cc complains about this.
2494
9fba3563
PE
2495 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2496 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2497 which fixed Bug#2370. Caught by Sun cc.
2498
6dc1d2d3
MR
24992011-01-15 Martin Rudalics <rudalics@gmx.at>
2500
2501 * window.c (inhibit_point_swap): New variable.
2502 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2503 point this time.
2504 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2505 of setting selected_window to nil (Bug#7728).
2506
f853f599
TH
25072011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2508
8dabbfd6
SM
2509 * image.c (imagemagick_load_image, Finit_image_library):
2510 Free intermediate image after creating a MagickWand from it.
2511 Terminate MagickWand environment after image loading.
f853f599 2512
2bc92a93
MA
25132011-01-10 Michael Albinus <michael.albinus@gmx.de>
2514
2515 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2516 unexpected return values.
2517 (Fdbus_register_method): Remove connection initialization.
2518
25192011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
2520
2521 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2522 used by Fdbus_register_service.
2523 (QCdbus_request_name_replace_existing): Likewise.
2524 (QCdbus_request_name_do_not_queue): Likewise.
2525 (QCdbus_request_name_reply_primary_owner): Likewise.
2526 (QCdbus_request_name_reply_in_queue): Likewise.
2527 (QCdbus_request_name_reply_exists): Likewise.
2528 (QCdbus_request_name_reply_already_owner): Likewise.
2529 (Fdbus_register_service): New function.
2530 (Fdbus_register_method): Use Fdbus_register_service to do the name
2531 registration.
2532 (syms_of_dbusbind): Add symbols dbus-register-service,
2533 :allow-replacement, :replace-existing, :do-not-queue,
2534 :primary-owner, :existing, :in-queue and :already-owner.
2535
21a76236
CY
25362011-01-09 Chong Yidong <cyd@stupidchicken.com>
2537
2538 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2539 when removing extra buttons.
2540
3d91e302
CY
25412011-01-08 Chong Yidong <cyd@stupidchicken.com>
2542
2543 * fns.c (Fyes_or_no_p): Doc fix.
2544
0d23ffb5
AS
25452011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2546
2547 * fns.c (Fyes_or_no_p): Add usage.
2548
9dc3366b
GM
25492011-01-08 Glenn Morris <rgm@gnu.org>
2550
d0981f82
GM
2551 * makefile.w32-in ($(EMACS)):
2552 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2553
9dc3366b
GM
2554 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2555 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2556
466cbae9
AS
25572011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2558
2559 * image.c (imagemagick_load_image): Fix some resource leaks and
2560 error handling.
2561
8c51d2a2
CY
25622011-01-07 Chong Yidong <cyd@stupidchicken.com>
2563
2564 * fns.c (Fyes_or_no_p): Accept format string args.
2565
66b7b0fe
GM
25662011-01-07 Glenn Morris <rgm@gnu.org>
2567
2568 * emacs.c (no_site_lisp): New int.
2569 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2570 (main): Set no_site_lisp.
2571 (standard_args): Add --no-site-lisp.
2572 * lisp.h (no_site_lisp): New int.
2573 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2574 directories to Vload_path.
2575
2018939f
AS
25762011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2577
2578 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2579
6ed843e5
MA
25802011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2581
8dabbfd6 2582 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
2583 dont_register_service. Updated docstring accordingly.
2584
3f9b7090
GM
25852011-01-04 Glenn Morris <rgm@gnu.org>
2586
2587 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2588
d82bce4a
EZ
25892011-01-03 Eli Zaretskii <eliz@gnu.org>
2590
2591 * image.c (png_jmpbuf): Remove definition.
2592 (my_png_error, png_load): Don't use png_jmpbuf.
2593
7c420169
CY
25942011-01-02 Eli Zaretskii <eliz@gnu.org>
2595
2596 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
2597
25982011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
2599
2600 * image.c <Qlibpng_version>: New variable.
2601 (syms_of_image): Intern and staticpro it. Set its value to the
2602 version of PNG library we were compiled with.
2603 (my_png_error, png_load): Avoid GCC warnings about direct access
2604 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
2605 (png_jmpbuf): New macro.
2606 (my_png_error, png_load): Use it instead of #ifdef'ing according
2607 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 2608
7c420169 26092011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
2610
2611 * .gdbinit (xgetptr): Fix the union+lsb case.
2612 (xbacktrace): Fix the union case.
2613
7c420169 26142011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
2615
2616 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
2617 different from selected-window's.
2618
7c420169 26192011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 2620
71fe378d
EZ
2621 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
2622 equivalent of a menu item when the key sequence is given by the
2623 `:keys' attribute. (Bug#7662)
2624
2e4ab211
EZ
2625 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
2626 the basic faces are supported.
2627
7c420169 26282011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
2629
2630 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
2631
7c420169 26322011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
2633
2634 * xdisp.c (Fformat_mode_line): Fix last change.
2635
7c420169 26362011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
2637
2638 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
2639 faces (Bug#7587).
2640
7c420169 26412011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
2642
2643 * fileio.c (Fexpand_file_name): One more doc fix.
2644
3afff00e
CY
26452011-01-01 Chong Yidong <cyd@stupidchicken.com>
2646
2647 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
2648 image or label in the container.
2649 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
2650 (xg_show_toolbar_item): Function deleted.
2651 (xg_tool_item_stale_p): New function.
2652 (update_frame_tool_bar): Calculate tool-bar style once per call.
2653 Instead of hiding text labels, omit them. Don't use
2654 xg_show_toolbar_item; create new GtkToolItems from scratch if
2655 necessary, instead of trying to re-use them. This avoids an
2656 annoying animation when changing tool-bars.
2657
aeb7e951
JD
26582010-12-31 Jan Djärv <jan.h.d@swipnet.se>
2659
2660 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
2661 title and buffer filename only for RepresentedFilename.
2662 Handle bad UTF-8 in buffer name (Bug#7517).
2663
5bbb4727
JD
26642010-12-30 Jan Djärv <jan.h.d@swipnet.se>
2665
2666 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
2667
2668 * nsfns.m (ns_set_name_iconic): Remove.
2669 (ns_set_name_internal): New function (Bug#7517).
2670 (Vicon_title_format): Extern declare.
2671 (ns_set_name): Call ns_set_name_internal.
2672 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
2673 (x_implicitly_set_name): Ditto.
2674 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
2675 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
2676
f1aab3ff
ŠN
26772010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
2678
2679 * window.c (syms_of_window): Add missing defsubr for
2680 window-use-time.
2681
365525b3
AS
26822010-12-28 Andreas Schwab <schwab@linux-m68k.org>
2683
2684 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
2685 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
2686
59fc5cf9
AS
26872010-12-27 Andreas Schwab <schwab@linux-m68k.org>
2688
2f7c71a1
AS
2689 * buffer.c: Remove unused declarations.
2690 * buffer.h: Likewise.
2691 * charset.h: Likewise.
2692 * composite.h: Likewise.
2693 * dispextern.h: Likewise.
2694 * dispnew.c: Likewise.
2695 * font.h: Likewise.
2696 * fontset.c: Likewise.
2697 * fontset.h: Likewise.
2698 * intervals.h: Likewise.
2699 * keymap.h: Likewise.
2700 * lisp.h: Likewise.
2701 * syntax.c: Likewise.
2702 * syntax.h: Likewise.
2703 * termhooks.h: Likewise.
2704 * window.h: Likewise.
2705 * xsettings.h: Likewise.
2706 * xterm.c: Likewise.
2707 * xterm.h: Likewise.
2708
2709 * chartab.c (sub_char_table_ref): Make static.
2710 * dispnew.c (line_hash_code, required_matrix_height)
2711 (required_matrix_width): Likewise.
2712 * eval.c (interactive_p, apply_lambda): Likewise.
2713 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
2714 Likewise.
2715 * font.c (QCadstyle, QCregistry, font_make_spec)
2716 (font_parse_fcname, font_encode_char, font_at): Likewise.
2717 * frame.c (x_frame_get_arg): Likewise.
2718 * keymap.c (get_keyelt): Likewise.
2719 * lread.c (read_filtered_event): Likewise.
2720 * print.c (write_string_1): Likewise.
2721 * window.c (delete_window, window_height, window_width)
2722 (foreach_window): Likewise.
2723 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
2724 * xterm.c (x_scroll_bar_clear, xembed_set_info)
2725 (xembed_send_message): Likewise.
2726
2727 * eval.c (run_hook_list_with_args): Delete.
2728 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
2729 * terminal.c (get_terminal_param): Likewise.
2730 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
2731
c4b607ed
AS
2732 * scroll.c: Fix comment.
2733
59fc5cf9
AS
2734 * dispnew.c (add_window_display_history)
2735 (add_frame_display_history, glyph_row_slice_p)
2736 (find_glyph_row_slice, flush_stdout)
2737 (check_matrix_pointer_lossage, matrix_row)
2738 (check_matrix_invariants, check_window_matrix_pointers)
2739 (check_matrix_pointers, window_to_frame_vpos)
2740 (window_to_frame_hpos): Prototize.
2741 * textprop.c (erase_properties): Likewise.
2742
a65b85b5
SM
27432010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2744
17870c01
SM
2745 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
2746 (print_preprocess): Fix handling of uninterned symbols in last change.
2747
a65b85b5
SM
2748 * print.c (print, print_preprocess, print_object): Use a hash table
2749 rather than a linear table for Vprint_number_table.
2750
f13183cf
CY
27512010-12-20 Chong Yidong <cyd@stupidchicken.com>
2752
2753 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
2754
94975270
CY
27552010-12-20 Chong Yidong <cyd@stupidchicken.com>
2756
2757 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
2758 (parse_tool_bar_item): Use it to obtain image separators for
2759 displays not using native tool-bar separators.
2760
2761 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
2762 specially, since this is now done in parse_tool_bar_item.
2763
ef1b0ba7
SM
27642010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2765
2766 Minor clean up to silence some gcc warnings.
2767 * window.c (Fset_window_buffer):
2768 * xterm.c (x_set_frame_alpha): Restructure code to silence
2769 compiler warning.
2770 (handle_one_xevent): Remove unused var `p'.
2771 (do_ewmh_fullscreen): Remove unused var `lval'.
2772 (xembed_set_info): Remove unused var `atom'.
2773 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
2774 compiler warning.
2775 * fontset.c (fontset_id_valid_p, dump_fontset):
2776 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
2777 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
2778 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
2779 label only when it's used.
2780 * image.c (x_create_bitmap_from_xpm_data):
2781 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
2782 its callers.
2783 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
2784 `consumed_chars'.
2785 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
2786 (decode_coding_emacs_mule): Remove unused label `retry'.
2787 (detect_eol): Add parens to silence compiler warning.
2788 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
2789 it's used to silence the compiler.
2790 (make_number): Modernize k&r declaration.
2791 (mark_char_table): Add parens to silence compiler warning.
2792
4039c786
CY
27932010-12-17 Chong Yidong <cyd@stupidchicken.com>
2794
2795 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2796 tool-bar maps.
2797 (menu_separator_name_p): New function, from gtkutil.c.
2798 (separator_names): Move from gtkutil.c.
2799
2800 * keyboard.h (menu_separator_name_p): Add prototype.
2801
2802 * gtkutil.c (XG_BIN_CHILD): New macro.
2803 (xg_get_menu_item_label, xg_update_menubar)
2804 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2805 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2806 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
2807 (create_menus, xg_update_submenu, update_frame_tool_bar):
2808 Use menu_separator_name_p.
4039c786
CY
2809
2810 * nsmenu.m (name_is_separator): Function deleted.
2811 (addItemWithWidgetValue): Use menu_separator_name_p.
2812
2813 * w32menu.c (name_is_separator): Function deleted.
2814 (add_menu_item): Use menu_separator_name_p.
2815
aa936e8e
JD
28162010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2817
2818 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2819 same as the background, use the face forground as cursor.
2820
f49d1f52 28212010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
2822
2823 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2824
f49d1f52 28252010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 2826
f0559026
EZ
2827 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
2828 (face_before_or_after_it_pos, next_element_from_string)
2829 (next_element_from_c_string, produce_stretch_glyph): Remove unused
2830 calculations of maximum string length before calling
2831 string_char_and_length and STRING_CHAR_AND_LENGTH.
2832 (string_char_and_length): Update commentary: MAXLEN is no longer
2833 needed.
2834
f49d1f52 28352010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
2836
2837 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
2838 as (Qsave_session arg).
2839
2840 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
2841 (smc_die_CB): Make an event with arg Qt.
2842 (Fhandle_save_session): If event has Qt as argument,
2843 call Fkill_emacs (Bug#7552).
2844
f49d1f52
SM
28452010-12-13 Chong Yidong <cyd@stupidchicken.com>
2846
2847 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
2848
28492010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
2850
2851 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
2852
f49d1f52 28532010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
2854
2855 * dispextern.h (struct it): New member overlay_strings_charpos.
2856
2857 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
2858 charpos where we computed n_overlay_strings.
2859 (next_overlay_string): Load overlay strings at recorded position,
2860 which may not be the same as the iterator's charpos (Bug#7016).
2861
f49d1f52 28622010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
2863
2864 * xdisp.c (try_scrolling): Avoid infloop if the first line is
2865 obscured due to a vscroll (Bug#7537).
2866
f49d1f52 28672010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
2868
2869 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2870
2871 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
2872 Use FRAME_TOOLBAR_HEIGHT.
2873 (x_set_offset): Handle XNegative and YNegative in
2874 f->size_hint_flags (Bug#7510).
2875
39321b94
EZ
28762010-12-11 Eli Zaretskii <eliz@gnu.org>
2877
2878 * w32fns.c (Fx_show_tip): Call try_window with last argument
2879 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
2880 solved. Round up the tip height to an integral multiple of the
2881 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
2882 (Bug#7398)
2883
ec1b9b17
GM
28842010-12-08 Glenn Morris <rgm@gnu.org>
2885
2886 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
2887
3c2317e8
LMI
28882010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
2889
2890 * xml.c (parse_region): Ignore blank HTML nodes.
2891 (make_dom): Return CDATA sections (like <style>foo</style>) as
2892 text nodes.
2893
bba3e508
SM
28942010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2895
2896 * lread.c (read1): Allow newstyle unquote outside of backquote.
2897 Disallow old-style backquotes inside new-style backquotes.
2898 Don't count unquotes to figure out when we're "syntactically inside
2899 but semantically outside of a backquote" any more.
2900 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
2901 to all contexts.
2902
d23d8608
CY
29032010-12-05 Chong Yidong <cyd@stupidchicken.com>
2904
2905 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
2906
d6a003a8
AS
29072010-12-04 Andreas Schwab <schwab@linux-m68k.org>
2908
2909 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
2910 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
2911 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
2912
201ef780
AS
29132010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2914
2915 * lisp.h (union Lisp_Object): Explicitly declare signedness of
2916 bit-field.
2917 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
2918 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
2919 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2920 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2921 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
2922 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
2923 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
2924 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
2925 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
2926 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2927 * m/hp800.h: Remove file.
2928 * m/mips.h: Remove file.
2929
146490c3
JD
29302010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2931
2932 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2933 with cursor color and draw a rectangle around the image (Bug#7412).
2934
babc8f0d
AS
29352010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2936
2937 * frame.c (x_set_font): Remove unused variable.
2938
9583e9a0
JD
29392010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2940
dd723bbd
JD
2941 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2942
9583e9a0
JD
2943 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2944 drawing text under filled box cursor (Bug#7479).
2945
07976ae3 29462010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
2947
2948 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2949 i.e. integer.
bba3e508 2950 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
2951 (init_charset_once): Likewise.
2952
bba3e508
SM
2953 * charset.h (emacs_mule_charset): Adjust the prototype.
2954 Delete duplicated extern.
b84ae584
KH
2955
2956 * coding.c (emacs_mule_char): Adjust for the change of
2957 emacs_mule_charset.
2958
2959 * lread.c (read_emacs_mule_char): Adjust for the change of
2960 emacs_mule_charset.
2961
07976ae3 29622010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
2963
2964 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2965 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2966
07976ae3 29672010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
2968
2969 * alloc.c (mark_terminals): Ensure that the image cache is marked
2970 even if the terminal object was marked earlier (Bug#6301).
2971
35f1de62
CY
29722010-11-21 Chong Yidong <cyd@stupidchicken.com>
2973
2974 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2975
07976ae3 29762010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
2977
2978 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2979 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 2980 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 2981
8547874a
EZ
29822010-11-26 Eli Zaretskii <eliz@gnu.org>
2983
228482b2
EZ
2984 * xdisp.c (set_message_1): Force paragraph direction in echo area
2985 be left-to-right.
2986
8547874a
EZ
2987 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2988 when the click is on the header or mode line.
2989
1e2dddbe
EZ
29902010-11-25 Eli Zaretskii <eliz@gnu.org>
2991
2992 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2993 `cursor' property of the first character in overlay strings.
12365240 2994 (Bug#7474) (Bug#7481)
1e2dddbe 2995
50795d1f
JD
29962010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2997
2998 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2999 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
3000 (keyDown): Parse left and right keys separately (Bug#7458).
3001 Compare Left key masks exactly (Bug#7458).
50795d1f 3002
f8ab8c1f
EZ
30032010-11-23 Eli Zaretskii <eliz@gnu.org>
3004
3005 * intervals.c (temp_set_point_both): Define before calling, to
3006 avoid GCC warnings.
3007
2e8a4797
DN
30082010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3009
b29116ef
DN
3010 * nsmenu.m: Use #include <config.h> instead of "config.h".
3011
b932f8b1 3012 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3013 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3014 Move declarations ...
3015 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3016 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3017 ... here.
3018
42c8bc9b
DN
3019 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3020 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3021 (gdb_pvec_type):
3022 * print.c (print_output_debug_flag):
3023 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3024 (safe_debug_print): New declaration.
3025
2e8a4797
DN
3026 * xterm.c:
3027 * systty.h:
3028 * sound.c: Include <sys/ioctl.h> unconditionally.
3029
b609f591
YM
30302010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3031
3032 * alloc.c (mark_maybe_object): Return early if given a Lisp
3033 integer (Bug#6301).
3034
731e263a
KB
30352010-11-21 Ken Brown <kbrown@cornell.edu>
3036
3037 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3038
b7d1e144
JD
30392010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3040
3041 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3042 Define (Bug#7458).
3043 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3044 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3045 NSRightControlKeyMask also (Bug#7458).
3046 (keyDown): Ditto (Bug#7458).
3047 (syms_of_nsterm): Defvar ns-right-command-modifier and
3048 ns-right-control-modifier (Bug#7458).
3049
b7982059
DN
30502010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3051
bee3419f
DN
3052 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3053 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3054
b7982059
DN
3055 * intervals.h (temp_set_point, temp_set_point_both):
3056 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3057
01664ed1
KB
30582010-11-20 Ken Brown <kbrown@cornell.edu>
3059
3060 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3061
7c2d713b
EZ
30622010-11-20 Eli Zaretskii <eliz@gnu.org>
3063
3064 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3065 \xNNNNNN for hex-code display of glyphless characters.
3066
d2bd5189
JD
30672010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3068
3069 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3070 Set important to ! vert_only.
3071 (xg_show_toolbar_item): Don't show label horizontally if
3072 tool item isn't important.
3073 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3074 xg_make_tool_item, or update important on existing tool item.
3075
3076 * keyboard.c (QCvert_only): New variable.
3077 (parse_tool_bar_item): Check for QCvert_only.
3078 (syms_of_keyboard): Initialize QCvert_only.
3079
3080 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3081
d9a95e67
EZ
30822010-11-20 Eli Zaretskii <eliz@gnu.org>
3083
3084 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3085 same in-line.
3086
b6557553
AS
30872010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3088
3089 * xfaces.c (lookup_face): Make static.
3090 * dispnew.c (copy_row_except_pointers): Likewise.
3091 * syntax.c (dec_bytepos): Likewise.
3092 (inc_bytepos): Remove.
3093 * dispextern.h (lookup_face): Remove declaration.
3094
f48fe1f0
EZ
30952010-11-19 Eli Zaretskii <eliz@gnu.org>
3096
3097 * xdisp.c (set_cursor_from_row): Display cursor after all the
3098 glyphs that come from an overlay. Don't overstep the last glyph
3099 when skipping glyphs from an overlay. (Bug#6687)
3100
654ef137
DN
31012010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3102
84dfc8a7
DN
3103 * alloc.c (refill_memory_reserve): Move declaration ...
3104 * lisp.h (refill_memory_reserve): ... here.
3105
94fa3833
DN
3106 * strftime.c (_strftime_copytm): Add declaration.
3107
dde990a0
DN
3108 * callproc.c (syms_of_callproc): Use intern_c_string.
3109
50c77428
DN
3110 Move declarations from .c files to .h files.
3111 * process.c (timers_run):
3112 * minibuf.c (quit_char):
3113 * lread.c (read_emacs_mule_char):
3114 * keyboard.c (minibuf_level, message_enable_multibyte)
3115 (pending_malloc_warning):
3116 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3117 (Qonly): Remove declarations.
3118 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3119 (Vselect_active_regions):
2f8f196d 3120 * keyboard.h (timers_run): Add declarations.
50c77428 3121
654ef137
DN
3122 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3123 (tm_diff): Convert definitions to standard C.
3124 (extra_args_spec_iso): Remove, unused.
3125
4a47c275 31262010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
3127
3128 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3129
3130 * config.in (HAVE_G_TYPE_INIT): New symbol.
3131
4a47c275 31322010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
3133
3134 * lread.c (Fload): Mention `load-in-progress' and
3135 `load-file-name'. (Bug#7346)
3136
86520d8c
EZ
3137 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3138 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3139 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3140 subprocesses. Use buffer_free only ifdef subprocesses.
3141
3142 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3143 the subprocesses version, not in the non-subprocesses one.
3144
794a4b6d
EZ
3145 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3146
146d267b
EZ
31472010-11-17 Eli Zaretskii <eliz@gnu.org>
3148
3149 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3150 lines on text-mode terminals. (bug#7417)
3151
fad0d565
SM
31522010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3153
3154 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3155 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3156
6b4bb703
KH
31572010-11-17 Kenichi Handa <handa@m17n.org>
3158
3159 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3160 change (set charset-ID list instead of charset-symbol list).
3161
9173a8fb
CY
31622010-11-16 Chong Yidong <cyd@stupidchicken.com>
3163
3164 * keyboard.c (make_lispy_position): For text area clicks, record Y
3165 pixel position relative to the text area, excluding header line.
3166 Also change X and Y to Lisp_Objects, not pointers; don't return
3167 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3168 buffer_posn_from_coords counting from the start of the text area.
3169 (Fposn_at_x_y, make_lispy_event): Callers changed.
3170
3171 * window.c (coordinates_in_window): Change X and Y to ints rather
3172 than pointers; don't return coordinates via pointers.
3173 (struct check_window_data): Change X and Y from pointers to ints.
3174 (window_from_coordinates): Remove args WX and WY; don't return
3175 coordinates via pointers.
3176 (Fcoordinates_in_window_p, window_from_coordinates):
3177 (check_window_containing, Fwindow_at): Callers changed.
3178 (window_relative_x_coord): New function.
3179
3180 * window.h (window_from_coordinates, window_relative_x_coord):
3181 Update prototypes.
3182
3183 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3184 the start of the text area.
3185
3186 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3187 call. Use window_relative_x_coord.
3188 (note_mouse_highlight): Change window_from_coordinates call.
3189
3190 * w32term.c (w32_read_socket):
3191 * msdos.c (dos_rawgetc):
3192 * xterm.c (handle_one_xevent): Likewise.
3193
d2762c86
DN
31942010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3195
3196 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3197 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3198 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3199 Convert definitions to standard C.
3200 * regex.c: Do not include <stdlib.h>, config.h does it.
3201 Include unistd.h.
3202 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3203 (regerror, regfree): Convert definitions to standard C.
3204 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3205 (__mktime_internal): Convert definitions to standard C.
3206
c2f0866a
DN
32072010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3208
42a7e7f1
DN
3209 * w32proc.c:
3210 * w32inevt.c:
3211 * w32heap.c:
3212 * w32.c: Remove config.h include guards.
3213
67802943
DN
3214 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3215 No code changes.
3216
f0e1af46
DN
3217 * process.c: Include <sys/ioctl.h> unconditionally,
3218 keyboard.c already does it.
3219
c2f0866a
DN
3220 * keyboard.c (pending_malloc_warning): Add const to match
3221 definition in alloc.c.
3222 (Fset_input_interrupt_mode): Simplify #ifdefs.
3223
92d3ab7e
DN
32242010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3225
12e610e8
DN
3226 Clean up systty.h macros.
3227 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3228 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3229 definition in all uses.
3230 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3231 * sysdep.c (discard_tty_input, child_setup_tty)
3232 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3233 * emacs.c (shut_down_emacs):
3234 * callproc.c (child_setup):
3235 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3236
92d3ab7e
DN
3237 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3238
a3e6bad4
CY
32392010-11-14 Chong Yidong <cyd@stupidchicken.com>
3240
3241 * w32fns.c (Fx_create_frame):
3242 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3243 resource here; it's now done at startup.
3244
5a232ffb
J
32452010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3246
3247 * xterm.c (set_wm_state): Add Qnil to final cons.
3248
3249 * xselect.c (x_send_client_event): Remove unused variables cons and
3250 size.
3251
24021b38
YM
32522010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3253
2f8f196d 3254 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
3255 arg NAME_TABLE.
3256 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3257 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3258 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3259 Add const to array elements.
3260 (scroll_bar_parts): Make static. Fix position of const.
3261
3262 * w32fns.c (lispy_function_keys): Add const to extern.
3263
3264 * w32inevt.c (lispy_function_keys): Likewise.
3265
afa42fe3
CY
32662010-11-14 Chong Yidong <cyd@stupidchicken.com>
3267
3268 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3269 resource here; it's now done at startup.
3270
53260a94
DN
32712010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3272
c865c575 3273 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 3274
c865c575 3275 Fix compilation on Solaris.
ff2e8052
DN
3276 * sysdep.c: Do not #include <term.h>.
3277 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3278
53260a94
DN
3279 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3280
933e29ff
J
32812010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3282
3283 * xterm.c (set_wm_state): Don't put Atom in cons, call
3284 make_fixnum_or_float on them first.
3285 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3286 Xatom_net_supported correctly.
3287
3288 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3289 (Fx_send_client_event): to here.
3290
a048073e
MR
32912010-11-13 Martin Rudalics <rudalics@gmx.at>
3292
3293 * window.c (Fwindow_use_time): New function.
3294
0eb025fb
EZ
32952010-11-13 Eli Zaretskii <eliz@gnu.org>
3296
3297 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3298 zero-width characters.
3299
3300 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3301
3302 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3303 box before drawing the glyphs inside it.
3304
3305 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3306
bba3e508
SM
3307 * dispextern.h (enum glyphless_display_method):
3308 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3309 All users changed.
0eb025fb 3310
bba3e508
SM
3311 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3312 Fix comments.
0eb025fb
EZ
3313 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3314 whitespace in "[]", to simulate a box. Don't use uninitialized
3315 variable `width'.
3316
c869cc37
JD
33172010-11-11 Julien Danjou <julien@danjou.info>
3318
2d9074ba
JD
3319 * xsettings.c (init_xsettings): Use already fetch atoms.
3320
3321 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3322 from dpyinfo.
3323
3324 * xselect.c (Fx_send_client_event): Split and create
3325 x_send_client_event.
3326
3327 * lisp.h: Do not EXFUN Fx_send_client_event.
3328
3329 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3330 from dpyinfo.
3331 (wm_supports): Use atoms from dpyinfo.
3332 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3333 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3334 (xembed_set_info): Use atoms from dpyinfo.
3335 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3336 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3337 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3338 Get all atoms in one round-trip.
3339 (set_wm_state): Use x_send_client_event rather than
3340 Fx_send_client_event, using Atom directly.
3341 (x_ewmh_activate_frame): Ditto.
3342 (x_set_sticky): Pass atoms to set_wm_state.
3343 (do_ewmh_fullscreen): Ditto.
3344
2d9074ba
JD
3345 * xterm.h (x_display_info): Add Xatom_net_supported,
3346 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3347 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3348
c869cc37
JD
3349 * xfns.c (Fx_show_tip): Fix typo in docstring.
3350
1a4236ea
SM
33512010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3352
3353 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3354 it's not negative.
3355
3106121c
YM
33562010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3357
3358 * font.c (font_filter_properties): Add const to array elements of
3359 properties args.
3360
3361 * font.h (font_filter_properties): Likewise.
3362
3363 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3364 elements.
3365
3366 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3367
da1fec2b
MA
33682010-11-10 Michael Albinus <michael.albinus@gmx.de>
3369
3370 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3371 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3372 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3373 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3374 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3375
bd6bc222
GM
33762010-11-10 Glenn Morris <rgm@gnu.org>
3377
3378 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3379
c0098065
EZ
33802010-11-09 Eli Zaretskii <eliz@gnu.org>
3381
bd6bc222 3382 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 3383
d607b96b 33842010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
3385
3386 * image.c (free_image): Don't garbage the frame here, since this
3387 function can be called while redisplaying (Bug#7210).
3388 (uncache_image): Garbage the frame here (Bug#6426).
3389
d607b96b 33902010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 3391
d607b96b
SM
3392 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3393 parent is the root window. Check this after traversing window tree.
184765cc 3394
d607b96b 3395 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 3396
d607b96b 3397 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 3398
d607b96b
SM
3399 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3400 before traversing window tree (Bug#5721).
c2e124a9 3401
27f92be7
J
34022010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3403
66b16767
J
3404 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3405
25f38310
SM
3406 * xdisp.c (note_mode_line_or_margin_highlight):
3407 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 3408
a971c0a7
EZ
34092010-11-06 Eli Zaretskii <eliz@gnu.org>
3410
3411 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3412 adjust width of tool-tip frame to the width of text, excluding the
3413 stretch glyph at the beginning of R2L glyph rows.
3414
3415 * w32fns.c (Fx_show_tip): Likewise.
3416
80417b95
JD
34172010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3418
3419 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 3420 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 3421
28118eb6
EZ
34222010-11-05 Eli Zaretskii <eliz@gnu.org>
3423
c1fc2d3a 3424 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
3425
3426 * term.c: Remove static mouse_face_* variables. All users
3427 changed.
3428 (term_show_mouse_face, term_clear_mouse_face)
3429 (fast_find_position, term_mouse_highlight): Functions deleted.
3430 (tty_draw_row_with_mouse_face): New function.
3431 (term_mouse_movement): Call note_mouse_highlight instead of
3432 term_mouse_highlight.
3433
bbf534ce
EZ
3434 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3435 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3436 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3437 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3438 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3439 Replace Display_Info with Mouse_HLInfo everywhere where
3440 mouse_face_* members were accessed for mouse highlight purposes.
3441
3442 * xterm.c (x_update_window_begin, x_update_window_end)
3443 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
3444 (handle_one_xevent, x_free_frame_resources, x_term_init):
3445 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
3446 members were accessed for mouse highlight purposes.
3447
3448 * w32term.c (x_update_window_begin, x_update_window_end)
3449 (x_update_end, w32_read_socket, x_free_frame_resources)
3450 (w32_initialize_display_info): Replace Display_Info with
3451 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3452 for mouse highlight purposes.
3453
3454 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3455 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3456 unless the frame is on a window-system.
c1fc2d3a 3457 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
3458 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3459 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3460 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3461 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3462 Replace Display_Info with Mouse_HLInfo everywhere where
3463 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 3464 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
3465 HAVE_WINDOW_SYSTEM conditional.
3466 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3467 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
3468 (try_window_id) [HAVE_GPM || MSDOS]:
3469 Call x_clear_window_mouse_face.
d009ae66 3470 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
3471 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3472 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3473 calling draw_glyphs directly.
d009ae66
EZ
3474 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3475 (cursor_in_mouse_face_p, rows_from_pos_range)
3476 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3477 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3478 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3479 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3480 fragments.
3481 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3482 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3483 integer.
3484 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
3485 (x_consider_frame_title, tool_bar_lines_needed):
3486 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
3487 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3488 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3489 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3490 part.
d009ae66
EZ
3491
3492 * dispnew.c (mirror_make_current): Set Y coordinate of the
3493 mode-line and header-line rows.
c1fc2d3a
EZ
3494 (init_display): Setup initial frame's output_data for text
3495 terminal frames.
d009ae66 3496
c1fc2d3a
EZ
3497 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3498 its own definition on msdos.c.
d009ae66
EZ
3499
3500 * msdos.c (show_mouse_face, clear_mouse_face)
3501 (fast_find_position, IT_note_mode_line_highlight)
3502 (IT_note_mouse_highlight): Functions deleted.
3503 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3504 instead of IT_note_mouse_highlight.
3505 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
3506 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3507 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3508 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3509 where mouse_face_* members were accessed for mouse highlight
3510 purposes.
3511
3512 * msdos.h (initialize_msdos_display): Add prototype.
3513
3514 * frame.h (MOUSE_HL_INFO): New macro.
3515
3516 * lisp.h (Mouse_HLInfo): New data type.
3517
3518 * xterm.h (struct x_display_info):
3519 * w32term.h (struct w32_display_info):
3520 * nsterm.h (struct ns_display_info):
3521 * termchar.h (struct tty_display_info): Use it instead of
3522 mouse_face_* members.
3523
3524 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3525 1st argument.
3526 (frame_to_window_pixel_xy, note_mouse_highlight)
3527 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3528 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3529 HAVE_WINDOW_SYSTEM conditional.
3530 (draw_row_with_mouse_face): Declare prototype.
3531 (tty_draw_row_with_mouse_face): Declare prototype.
3532
6e8d7c47
EZ
35332010-11-05 Eli Zaretskii <eliz@gnu.org>
3534
bba3e508
SM
3535 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3536 Remove unused variables.
6e8d7c47 3537
f31ba3f0
AR
35382010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3539
3540 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3541 logic pointed out by Eli Zaretskii.
3542
448e17d6
LMI
35432010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3544
0c3a9a9f
GM
3545 * coding.c (coding-category-list): Refer to set-coding-system-priority
3546 instead of the obsolete set-coding-priority in the doc string.
448e17d6 3547
3fdebbf9 35482010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 3549
2f8f196d 3550 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
3551 correct value.
3552 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3553 don't change the method signature, change the return.
3554
35552010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
3556
3557 * nsfont.m (nsfont_draw)
3558 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 3559 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 3560
17c0c952
JD
35612010-11-03 Julien Danjou <julien@danjou.info>
3562
3563 * image.c (gif_load): Add support for transparency and specified
3564 :background.
3565
b18fad6d
KH
35662010-11-01 Kenichi Handa <handa@m17n.org>
3567
3568 * dispextern.h (lookup_glyphless_char_display): Extern it.
3569
3570 * termhooks.h (struct terminal): New member charset_list.
3571
3572 * coding.c (Fset_terminal_coding_system_internal): Set the
3573 `charset_list' member of struct terminal.
3574
a8039db1 3575 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
3576 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3577
3578 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3579 (lookup_glyphless_char_display): Set it->what at the end.
3580 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3581 (last_glyphless_glyph_merged_face_id): Make them non-static.
3582
a8039db1
JB
3583 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3584 Fix the arg with_background for font->driver->draw.
65b6b59a 3585
a8039db1 35862010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 3587
a8039db1
JB
3588 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3589 Surround chp by parentheses.
0269bd90 3590
a8039db1 35912010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
3592
3593 Implement various display methods for glyphless characters.
3594
3595 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
3596 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
3597 (Qzero_width): New variables.
3598 (THIN_SPACE_WIDTH): New macro.
01c35094 3599 (lookup_glyphless_char_display): New function.
b2cca856
KH
3600 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3601 (last_glyphless_glyph_merged_face_id): New variables.
3602 (get_next_display_element): Check glyphless characters.
3603 (redisplay_internal): Initialize last_glyphless_glyph_frame and
3604 last_glyphless_glyph_face_id.
3605 (fill_glyphless_glyph_string): New function.
3606 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
3607 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
3608 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3609 (x_produce_glyphs): If a suitable font is not found, produce a
3610 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
3611 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
3612 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
3613 Qzero_width.
3614 (Vglyphless_char_display): Declare it as a Lisp variable.
3615
3616 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
3617 (struct glyph): Change the size of the member "type" to 3.
3618 Add glyphless to the union slice and u.
b2cca856
KH
3619 (enum display_element_type): Add IT_GLYPHLESS.
3620 (enum glyphless_display_method): New enum.
3621 (struct it): New member glyphless_method.
3622 (Vglyphless_char_display): Extern it.
3623
3624 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
3625 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3626
a8039db1 3627 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
3628 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3629
3630 * nsterm.m (ns_draw_glyph_string): Handle the case
3631 GLYPHLESS_GLYPH (the detail is not yet implemented).
3632
c8c59954
GM
36332010-10-31 Glenn Morris <rgm@gnu.org>
3634
80696982
GM
3635 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
3636
c8c59954
GM
3637 * frame.c (syms_of_frame) <tool-bar-mode>:
3638 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
3639
46eadc7a
CY
36402010-10-31 Chong Yidong <cyd@stupidchicken.com>
3641
3642 * xterm.c (x_connection_closed): Print informative error message
3643 when aborting on GTK. This requires using shut_down_emacs
3644 directly instead of Fkill_emacs.
3645
ffe75e6b
EZ
36462010-10-29 Eli Zaretskii <eliz@gnu.org>
3647
3648 * emacs.c (main): Call syms_of_filelock unconditionally.
3649
3650 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
3651 clause, but keep part of it conditioned on CLASH_DETECTION.
3652
9d794026
GM
36532010-10-29 Glenn Morris <rgm@gnu.org>
3654
4f4f2973
GM
3655 * nsfns.m (Fx-display-save-under, Fx-open-connection)
3656 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
3657 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
3658 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
3659 Sync docs between X, W32, NS.
3660
9d794026
GM
3661 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
3662 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
3663
d46f6bbb
JB
36642010-10-26 Juanma Barranquero <lekktu@gmail.com>
3665
3666 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
3667 otherwise, bootstrapping on Windows fails to compile macroexp.el.
3668
2e35f1a2
EZ
36692010-10-26 Eli Zaretskii <eliz@gnu.org>
3670
3671 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 3672 zero or negative. (Bug#7281)
2e35f1a2 3673
8daaeda6
J
36742010-10-26 Jan Djärv <jan.h.d@swipnet.se>
3675
3676 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
3677
6a5c2175
GM
36782010-10-25 Glenn Morris <rgm@gnu.org>
3679
3680 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
3681
7c051dd8
GM
36822010-10-24 Glenn Morris <rgm@gnu.org>
3683
3684 * w32fns.c (Fx_synchronize, Fx_change_window_property)
3685 (Fx_window_property, Fx_file_dialog):
3686 * xfns.c (Fx_synchronize, Fx_change_window_property)
3687 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
3688
23c261f5
CY
36892010-10-24 Chong Yidong <cyd@stupidchicken.com>
3690
3691 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
3692
d414c713 36932010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
3694
3695 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
3696
3697 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
3698 Deprecate use as a boolean flag.
3699
947f5e01
JM
37002010-10-24 Jim Meyering <jim@meyering.net>
3701
3702 * emacs.c (argmatch): Don't treat "--" as "--chdir".
3703
65807d73
GM
37042010-10-24 Glenn Morris <rgm@gnu.org>
3705
f5f25615
GM
3706 * w16select.c (syms_of_win16select) <selection-coding-system>:
3707 <next-selection-coding-system>:
3708 * w32select.c (syms_of_w32select) <selection-coding-system>:
3709 <next-selection-coding-system>:
3646b86d
GM
3710 Sync docs with select.el.
3711
46710489
GM
3712 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
3713 Lisp version.
3714
ea883883
GM
3715 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3716 Sync doc with the xterm.c version.
3717
65807d73
GM
3718 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
3719 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
3720
f3d87560
GM
37212010-10-23 Glenn Morris <rgm@gnu.org>
3722
66c6abf0 3723 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 3724 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 3725 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 3726 <hourglass-delay>: Sync docs with Lisp.
f3d87560 3727
7b7e2c18
EZ
37282010-10-23 Eli Zaretskii <eliz@gnu.org>
3729
d1d6801e 3730 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
3731
3732 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
3733 (mouse_face_from_string_pos): New function, replaces
3734 fast_find_string_pos.
3735 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
3736 (note_mode_line_or_margin_highlight): Support bidi-reordered
3737 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
3738 (note_mouse_highlight): When bidi reordering is turned on in a
3739 buffer, call next-single-property-change and
ef1b0ba7
SM
3740 previous-single-property-change with last argument nil.
3741 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 3742 glyph that stands for no text beyond the line end.
1f382a02
EZ
3743 (row_containing_pos): Don't return too early when CHARPOS is in a
3744 bidi-reordered continued line. Return immediately when the first
3745 hit is found in a line that is not continued, or when an exact
3746 match for CHARPOS is found.
d1d6801e
EZ
3747 (rows_from_pos_range): New function.
3748 (mouse_face_from_buffer_pos): Use it instead of calling
3749 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
3750 function to support mouse highlight in bidi-reordered lines and
3751 not to assume that START_CHARPOS is always in mouse_face_beg_row.
3752 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
3753 that the former is always above the latter or identical to it.
1554d88e 3754 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
3755 (coords_in_mouse_face_p): New function, bidi-aware.
3756 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
3757 Call it instead of comparing with mouse-face members of dpyinfo.
3758 (note_mode_line_or_margin_highlight): Fix confusingly swapped
3759 usage of hpos and vpos.
544bbc31 3760
dee186b6
J
37612010-10-22 Jan Djärv <jan.h.d@swipnet.se>
3762
3763 * xrdb.c: Include keyboard.h for MOTIF.
3764
3765 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
3766 MOTIF (Bug#7263).
3767
3768 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
3769 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
3770 Make ANSI prototypes.
dee186b6 3771
5fb59edb
GM
37722010-10-22 Glenn Morris <rgm@gnu.org>
3773
3774 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
3775 Remove ccl and duplicate mouse.
3776
8b78d5e3
CY
37772010-10-21 Chong Yidong <cyd@stupidchicken.com>
3778
3779 * insdel.c (prepare_to_modify_buffer): Don't set
3780 saved-region-selection if modification hooks are disabled.
3781
b8a47412
CY
37822010-10-19 Chong Yidong <cyd@stupidchicken.com>
3783
3784 * cmds.c (Fdelete_char): Doc fix.
3785
ca3fa302 37862010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
3787
3788 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
3789
ca3fa302 37902010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
3791
3792 Fix incorrect font metrics when the same font is opened with
3793 different pixelsizes.
3794
3795 * xftfont.c: Include composite.h.
3796 (xftfont_shape): New function.
3797 (syms_of_xftfont): Set xftfont_driver.shape.
3798
c978536f
JD
37992010-10-18 Julien Danjou <julien@danjou.info>
3800
3801 * frame.c (Fframe_pointer_visible_p):
3802 Add `frame-pointer-visible-p' to get the pointer visibility.
3803
4b2d9ec2
LMI
38042010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3805
3806 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3807 non-"EAGAIN"-like error to signal to Emacs that the socket should
3808 be closed.
3809
9cf66cf2
EZ
38102010-10-15 Eli Zaretskii <eliz@gnu.org>
3811
c3911ead
EZ
3812 * unexcoff.c (make_hdr): Fix prototype according to changes in
3813 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3814
9cf66cf2
EZ
3815 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3816
be98da05
TH
38172010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3818
3819 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3820 made building the X menu fail.
cc98b256 3821 (really-oldXMenu): Fix my previous fix.
be98da05 3822
220d91b8 38232010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
3824
3825 Fix handling of font properties on Windows (bug#6303).
3826 * font.c (font_filter_properties): New function, refactored from
3827 ftfont_filter_properties.
3828 * font.h (font_filter_properties): Declare.
3829 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
3830 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
3831 (w32font_filter_properties): New function.
3832 (w32font_driver): Add w32font_filter_properties.
3833
220d91b8 38342010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 3835
c0943d3d 3836 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
3837 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
3838
24f981c9
JB
38392010-10-14 Juanma Barranquero <lekktu@gmail.com>
3840
3841 * w32fns.c (w32_wnd_proc, file_dialog_callback):
3842 * w32font.c (w32_generic_family):
3843 * w32inevt.c (key_event):
3844 * w32menu.c (fill_in_menu):
3845 * w32proc.c (reader_thread, w32_executable_type, compare_env)
3846 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
3847 * w32term.c (w32_read_socket): Make static.
3848
850690cc
JB
38492010-10-13 Juanma Barranquero <lekktu@gmail.com>
3850
3851 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
3852 prototypes; all callers changed.
3853
5e371708
JB
38542010-10-13 Juanma Barranquero <lekktu@gmail.com>
3855
3856 * makefile.w32-in (TLIB2): Rename from TLIBW32.
3857 (OBJ2): New macro.
3858 (WIN32OBJ, FONTOBJ): Remove.
3859 (OBJ1): Redistribute object files with OBJ2.
3860 (LIBS, $(TEMACS)): Use TLIB2.
3861 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
3862 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
3863
2e288d54
JB
38642010-10-13 Juanma Barranquero <lekktu@gmail.com>
3865
3866 * emacs.c (Vdynamic_library_alist)
3867 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
3868 Doc fix.
3869
3870 * lisp.h (Vdynamic_library_alist): Declare extern.
3871
3872 * image.c (Vimage_library_alist)
3873 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
3874 (lookup_image_type): Use Vdynamic_library_alist.
3875 (Finit_image_library): Doc fix.
3876
aba1381b
DN
38772010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
3878
3879 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
3880 (lispdir): Remove trailing /, update all uses.
3881
4c14013d 38822010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
3883
3884 * nsterm.m (Qleft): Declare.
01c35094 3885 (ns_right_alternate_modifier): New variable.
a2e35ef5
JD
3886 (NSRightAlternateKeyMask): New define.
3887 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
3888 ns_right_alternate_modifier isn't Qleft.
3889 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
3890 as emacs modifier for NSRightAlternateKeyMask.
3891 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
3892
355cdaf3
LMI
38932010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
3894
3895 * gnutls.c (emacs_gnutls_write): If we're trying to write before
3896 gnutls is ready, return EAGAIN as the errno.
3897
4c620157
DN
38982010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
3899
edfd76ce
DN
3900 * vm-limit.c:
3901 * unexhp9k800.c:
3902 * unexelf.c:
3903 * unexaix.c:
3904 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
3905
a4daeecf
DN
3906 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
3907 (PROFILING_LDFLAGS): Remove, not needed anymore.
3908
01c35094 3909 * Makefile.in: Use $(...) everywhere instead of ${...}.
4cf3ad30
DN
3910 (CRT_DIR): Move near potential user.
3911 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 3912
4c620157
DN
3913 * sysdep.c (LPASS8): Remove, unused.
3914 (emacs_ospeed): Change from being a global to a local in the only
3915 user: init_baud_rate.
3916
b845653d
LMI
39172010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3918
3919 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 3920 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 3921 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 3922 gnutls_read. This allows us to actually read lots of data from
b845653d 3923 the GnuTLS stream.
2e6c74c5
LMI
3924 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3925 According to the documentation, this is correct, and it seems to
3926 make things work.
b845653d 3927
3625b3e2
CY
39282010-10-09 Chong Yidong <cyd@stupidchicken.com>
3929
3930 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3931
8b1c619f
MA
39322010-10-08 Michael Albinus <michael.albinus@gmx.de>
3933
3934 * keyboard.c: Revert last change; it was not intended to be
3935 synchronized with the trunk.
3936
93d50df8
KH
39372010-10-08 Kenichi Handa <handa@m17n.org>
3938
2b7c9342 3939 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 3940
4628bef1 39412010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
3942
3943 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3944 (Fdbus_init_bus): ... here. (Bug#7113)
3945
4628bef1 39462010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
3947
3948 * buffer.c (before-change-functions, after-change-functions):
3949 Three-year overdue doc fix following 2007-08-13 change.
3950
4628bef1 39512010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
3952
3953 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3954 eol-format, inherit from the system's default.
3955 (complement_process_encoding_system): Make a new coding system
3956 inherit the original eol-format.
3957
4628bef1 39582010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
3959
3960 * coding.c (complement_process_encoding_system): New function.
3961
3962 * coding.h (complement_process_encoding_system): Extern it.
3963
3964 * callproc.c (Fcall_process): Complement the coding system for
3965 encoding arguments.
3966 (Fcall_process_region): Complement the coding system for encoding
3967 the input to the process.
3968
3969 * process.c (Fstart_process): Complement the coding system for
3970 encoding arguments.
3971 (send_process): Complement the coding system for encoding what
3972 sent to the process.
3973
4628bef1 39742010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
3975
3976 * xfont.c (xfont_open): Fix setting of font->average_width from
3977 :avgwidth property (Bug#7123).
3978
4628bef1 39792010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
3980
3981 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3982 is more portable.
3983
3984 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 3985 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
3986 has not defined SIGIO.
3987
389454fb
CY
39882010-10-08 Chong Yidong <cyd@stupidchicken.com>
3989
3990 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3991 draw the outermost line using the black relief, for legibility.
3992 Omit drawing the four corner pixels.
3993
51b403bd
CY
39942010-10-04 Chong Yidong <cyd@stupidchicken.com>
3995
3996 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3997 (read_key_sequence): Inline echo_prompt.
3998 (echo_dash): Add a dash only if key is continued (Bug#7137).
3999
3e6ae1a4
DN
40002010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4001
4002 Remove O_RDONLY, O_WRONLY definitions, not needed.
4003 * unexcoff.c:
4004 * lread.c:
4005 * fileio.c:
4006 * doc.c:
4007 * callproc.c:
4008 * alloc.c:
4009 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4010
c1ae068b
LMI
40112010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4012
4013 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4014
4015 * gnutls.c: Add property list symbol holders.
4016 (emacs_gnutls_handshake): Clarify how sockets are passed to
4017 GnuTLS.
4018 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4019 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4020 and keyfiles to be a list of file names. Default to "NORMAL" for
4021 the priority string. Improve logging.
4022
e2afe435
GM
40232010-10-03 Glenn Morris <rgm@gnu.org>
4024
4025 * fileio.c (Vdirectory_sep_char): Remove.
4026
dd5ecd6b
DN
40272010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4028
b5437a05
DN
4029 * termhooks.h: Remove #ifdef CONSP.
4030
4777478a
DN
4031 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4032
a3d5088d
DN
4033 Include <fcntl.h> unconditionally.
4034 * termcap.c:
4035 * sysdep.c:
4036 * lread.c:
4037 * keyboard.c:
4038 * filelock.c:
4039 * fileio.c:
4040 * doc.c:
4041 * callproc.c:
4042 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4043 does it.
4044
82719735
DN
4045 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4046
9de940b5
DN
4047 * sysdep.c (flush_pending_output): Remove code, does not do
4048 anything on any platform.
4049
57507bf8 4050 Remove unused code.
bba3e508
SM
4051 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4052 Remove select emulation, all systems support select.
57507bf8
DN
4053 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4054 * process.c (create_process): Remove #if 0 code.
4055
dd5ecd6b
DN
4056 Remove unused arguments for unexec.
4057 The third one is never used, and the last two are always passed as zero.
4058 * emacs.c (unexec): Add declaration.
4059 (Fdump_emacs): Only pass the first two arguments to unexec.
4060 Simplify #ifdef.
4061 * unexw32.c (unexec):
4062 * unexsol.c (unexec):
4063 * unexhp9k800.c (unexec):
4064 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4065 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4066 (find_section): Use const.
4067 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4068 (unexec_error): Declare it NO_RETURN.
4069 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4070 it as an argument, remove data_start and entry_address arguments, unused.
4071 (unexec): Remove bss_start, data_start and
4072 entry_address arguments.
4073 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4074 it as an argument, remove data_start and entry_address arguments, unused.
4075 (unexec): Remove bss_start, data_start and
4076 entry_address arguments.
4077
74f1829d
JB
40782010-10-03 Juanma Barranquero <lekktu@gmail.com>
4079
7f467e14
JB
4080 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4081
74f1829d
JB
4082 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4083 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4084 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4085 Fix typos in docstrings.
4086 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4087 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4088
6926550f
CY
40892010-10-03 Chong Yidong <cyd@stupidchicken.com>
4090
4091 * keyboard.c (command_loop_1): Make sure the mark is really alive
4092 before using it (Bug#7044).
4093
54b65f7b
JB
40942010-10-02 Juanma Barranquero <lekktu@gmail.com>
4095
4096 * makefile.w32-in (tags): Rename target to full-tags.
4097
383ebd15
EZ
40982010-10-02 Eli Zaretskii <eliz@gnu.org>
4099
4100 * emacs.c (main): Remove !WINDOWSNT conditional.
4101 (Fkill_emacs): Don't mention exemption on MS-Windows.
4102
9c524fcb
GM
41032010-10-02 Glenn Morris <rgm@gnu.org>
4104
3226d6ca
GM
4105 * character.c (Fchar_bytes): Remove obsolete function.
4106 (syms_of_character): Remove Schar_bytes.
4107
9c524fcb
GM
4108 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4109 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4110 in batch-mode.
4111 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4112 (kill-emacs-hook): Doc fix.
4113
1b217849
LMI
41142010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4115
4116 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 4117 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
4118 renamed to reflect that these are the libxml functions.
4119
54cc6a83
EZ
41202010-10-01 Eli Zaretskii <eliz@gnu.org>
4121
0ebf79de
EZ
4122 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4123 screen dimensions in tty->Wcm.
4124
54cc6a83
EZ
4125 * xdisp.c (set_cursor_from_row): When the row is truncated and
4126 point is outside the range of displayed characters, position the
4127 cursor inside the scroll margin. (Bug#6349)
4128
321401d1
DN
41292010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4130
4cacd822
DN
4131 Do not include stdlib.h and string.h, config.h does it.
4132 * xfont.c:
4133 * w32term.c:
4134 * w32reg.c:
4135 * w32inevt.c:
4136 * w32heap.c:
4137 * w32console.c:
4138 * w16select.c:
4139 * unexsol.c:
4140 * term.c:
4141 * sound.c:
4142 * scroll.c (m):
4143 * gtkutil.c:
4144 * font.c:
4145 * filelock.c:
4146 * fileio.c:
4147 * dosfns.c:
4148 * dbusbind.c:
4149 * bidi.c:
4150 * callproc.c:
4151 * process.c:
4152 * msdos.c:
4153 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4154
bba3e508
SM
4155 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4156 defines it.
0781e7ab 4157
9bf58201
DN
4158 * process.c: Move #include <pty.h> earlier.
4159 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4160 (pty_name): Move definition later.
4161
088dcc3e
DN
4162 * nsselect.m (syms_of_nsselect):
4163 * nsmenu.m (syms_of_nsmenu):
4164 * nsfns.m (syms_of_nsfns):
4165 * msdos.c (syms_of_msdos):
4cacd822 4166
088dcc3e
DN
4167 * image.c (syms_of_image):
4168 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4169
321401d1
DN
4170 * point.h: Remove, unused.
4171
73077a9a
EZ
41722010-10-01 Eli Zaretskii <eliz@gnu.org>
4173
4174 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4175 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4176 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4177
55e572ef
DN
41782010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4179
4180 * xml.c (parse_string): Use const.
4181
d4b6d95d
LMI
41822010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4183
ef1b0ba7
SM
4184 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4185 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
4186 the level to 8 to produce more useful backtraces for bug reports.
4187
e4b6db12
DN
41882010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4189
4190 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4191
1becef93
JB
41922010-09-30 Juanma Barranquero <lekktu@gmail.com>
4193
4194 * w32console.c (vga_stdcolor_name): Remove unused function;
4195 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4196
df7fcaff
LMI
41972010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4198
bac5cef8
LMI
4199 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4200 (Fgnutls_boot): Start the handshake.
4201 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
4202 (Fgnutls_boot): Remove some debugging messages.
4203 Change indentation throughout to use the Emacs style.
4204 (emacs_gnutls_handshake): Cast the fds to something that's
4205 possibly the expected length.
4206 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 4207
df7fcaff
LMI
4208 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4209
4210 * process.c (make_process): Set the gnutls_p field to zero by
4211 default.
4212 (read_process_output): Always call the gnutls_read function if the
4213 stream is a gnutls stream.
4214 (send_process): Ditto for writes.
4215
4216 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4217 or write anything until the state is GNUTLS_STAGE_READY.
4218 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4219
d585695f
EZ
42202010-09-29 Eli Zaretskii <eliz@gnu.org>
4221
af7ef32d
EZ
4222 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4223 NEUTRAL_DIR.
4224 (handle_invisible_prop, iterate_out_of_display_property)
4225 (next_element_from_buffer): If bidi_it.first_elt is set, call
4226 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4227 (Bug#7128)
4228
d585695f
EZ
4229 * print.c (print_object): Fix format string and argument types for
4230 printing a Lisp_Misc_Marker.
4231
4232 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4233 (load_overlay_strings, get_overlay_strings_1)
4234 (get_overlay_strings, forward_to_next_line_start)
4235 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4236 (get_next_display_element, next_element_from_string)
4237 (next_element_from_c_string, next_element_from_buffer)
4238 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4239 (message_dolog, message_log_check_duplicate, message2_nolog)
4240 (message3, message3_nolog, vmessage, set_message, set_message_1)
4241 (hscroll_window_tree, text_outside_line_unchanged_p)
4242 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4243 (find_last_unchanged_at_beg_row)
4244 (find_first_unchanged_at_end_row, row_containing_pos)
4245 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
4246 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4247 Use EMACS_INT for buffer and string positions.
d585695f
EZ
4248
4249 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4250 (row_containing_pos): Adjust prototype.
4251
4252 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4253 (message2_nolog, set_message): Adjust prototypes.
4254
a6f3211f
SM
42552010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4256
4257 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4258 (Fgnutls_boot): Use SDATA.
4259 (Fgnutls_handshake): Remove unused var `max_log_level'.
4260
e0720500
MA
42612010-09-27 Michael Albinus <michael.albinus@gmx.de>
4262
11a5af7c 4263 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
4264 (Bug#7113)
4265
d8a4b27a
J
42662010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4267
42d3022b
J
4268 * xgselect.c (xg_select): Clear file descriptors not set from
4269 rfds and wfds.
4270
d8a4b27a
J
4271 * process.c (wait_reading_process_output): Add missing FD_CLR
4272 for write_mask (must mirror connect_wait_mask).
4273
8ed70bf3
LMI
42742010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4275
4276 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4277 prefix.
4278 (Fgnutls_boot): Use changed process members. Use log level with a
4279 function parameter to set it. Bring back Emacs-level debugging
4280 messages at log level 1 and 2.
4281
4282 * process.c (make_process): Initialize gnutls_log_level.
4283
4284 * process.h: Add gnutls_log_level and rename x509_cred and
4285 anon_cred to have the gnutls_ prefix for consistency.
4286
4287 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4288
bedf4aab
JB
42892010-09-27 Juanma Barranquero <lekktu@gmail.com>
4290
4291 * w32.c (g_b_init_get_sid_identifier_authority)
4292 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4293 Remove, not used.
4294 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4295 (init_winsock): Remove useless assignment.
4296 (open_process_token, get_token_information, lookup_account_sid)
4297 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4298 (get_security_descriptor_owner, get_security_descriptor_group)
4299 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4300 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4301 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4302 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4303 (unc_volume_file_attributes, convert_from_time_t)
4304 (create_toolhelp32_snapshot, process32_first, process32_next)
4305 (open_thread_token, impersonate_self, revert_to_self)
4306 (get_process_memory_info, get_process_working_set_size)
4307 (global_memory_status, global_memory_status_ex, socket_to_fd)
4308 (shutdown_handler): Make static.
4309
08609ffd
MA
43102010-09-27 Michael Albinus <michael.albinus@gmx.de>
4311
4312 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4313 (xd_pending_messages): Functions removed.
4314 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4315 order to be compatible with add_read_fd. Determine bus from data,
4316 and call xd_read_message just for this bus.
4317 (xd_add_watch): Use xd_read_queued_messages as callback function.
4318 Add data.
4319
4320 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4321
d2e9d0bb
LMI
43222010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4323
ef1b0ba7 4324 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 4325 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 4326
4be9765d
KH
43272010-09-27 Kenichi Handa <handa@m17n.org>
4328
4329 These changes are to remove restriction on the number of glyphs in
4330 one composition.
4331
4332 * dispextern.h (struct glyph): Change the member "slice" to union.
4333 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 4334 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
4335
4336 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4337 instead of glyph->slice.
4338 (marginal_area_string): Likewise.
4339
4340 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4341 glyph->u.cmp.
4342 (append_composite_glyph): Likewise.
4343
4344 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4345 glyph->u.cmp.
4346 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4347 (append_composite_glyph): Likewise.
4348 (fill_image_glyph_string): Use glyph->slice.img instead of
4349 glyph->slice.
4350 (append_glyph, produce_image_glyph, append_stretch_glyph)
4351 (note_mouse_highlight): Likewise.
4352
3fad2ad2
J
43532010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4354
bf05eed6
J
4355 * process.c (add_keyboard_wait_descriptor)
4356 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
4357 (wait_reading_process_output): Don't pass write_mask to select
4358 if SELECT_CANT_DO_WRITE_MASK is defined.
4359 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 4360
3fad2ad2
J
4361 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4362 (delete_write_fd): Declare.
4363
4364 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4365 (write_mask): New variable.
ef1b0ba7 4366 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 4367 (fd_callback_info): New variable.
70e31436
JB
4368 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4369 New functions.
3fad2ad2
J
4370 (Fmake_network_process): FD_SET write_mask.
4371 (deactivate_process): FD_CLR write_mask.
4372 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
4373 check_connect removed. check_write is new. Remove references to gpm.
4374 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
4375 NON_BLOCKING_CONNECT) instead of Connecting.
4376 Loop over file descriptors and call callbacks in fd_callback_info
4377 if file descriptor is ready for I/O.
4378 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4379 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4380 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
4381 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4382 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
4383 (init_process): Initialize write_mask and fd_callback_info.
4384
4385 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4386
4387 * dbusbind.c: Include process.h.
4388 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4389 (xd_read_message_1): New functions.
70e31436
JB
4390 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4391 Handle watch for both read and write.
3fad2ad2
J
4392 (Fdbus_init_bus): Also register xd_toggle_watch.
4393 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4394 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4395 to dbus_connection_flush.
70e31436 4396 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
4397 Call xd_read_message_1 until status is COMPLETE.
4398
dce4c2ac
DN
43992010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4400
4401 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
4402 (init_tty): Reorder code to reduce the number of #ifdefs.
4403 No code changes.
dce4c2ac 4404
8af55556
TZ
44052010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4406
4407 * process.h: Set up GnuTLS support.
4408
4409 * process.c (make_process, Fstart_process)
4410 (read_process_output, send_process): Set up GnuTLS support for
4411 process input/output file descriptors.
4412
4413 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4414
4415 * gnutls.c: The source code for GnuTLS support in Emacs.
4416
4417 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4418
4419 * config.in: Set up GnuTLS support.
4420
4421 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4422 (obj, LIBES): Set up GnuTLS support.
4423
83e245c4
JB
44242010-09-26 Juanma Barranquero <lekktu@gmail.com>
4425
4426 * w32.c (get_emacs_configuration_options): Fix previous change.
4427
d24ec09a
CY
44282010-09-25 Chong Yidong <cyd@stupidchicken.com>
4429
4430 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4431 alive before using it (Bug#6977).
4432
b7bdc47c
LMI
44332010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4434
a952d5f3
LMI
4435 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4436
4437 * dispextern.h: EMACS_INT/int fixup.
4438
4439 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4440 fixup.
4441
b7bdc47c
LMI
4442 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4443
41118bd3
EZ
44442010-09-25 Eli Zaretskii <eliz@gnu.org>
4445
2452438f
EZ
4446 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4447 (Fselect_window, window_scroll_pixel_based)
4448 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4449 Use EMACS_INT for buffer positions.
4450
4451 * textprop.c (validate_interval_range, interval_of)
4452 (property_change_between_p, Fadd_text_properties)
4453 (set_text_properties_1, Fremove_text_properties)
4454 (Fremove_list_of_text_properties, Ftext_property_any)
4455 (Ftext_property_not_all, copy_text_properties)
4456 (text_property_list, extend_property_ranges)
4457 (verify_interval_modification): Use EMACS_INT for buffer
4458 positions.
4459
f877c546
EZ
4460 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4461 for buffer positions.
4462
4463 * process.c (read_process_output, send_process)
4464 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4465 and string positions and size.
4466
da43f021
EZ
4467 * print.c (print_object, print_string, strout): Use EMACS_INT for
4468 string indices.
4469
4470 * minibuf.c (string_to_object): Use EMACS_INT for string position
4471 and size.
4472
4473 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4474
4475 * lread.c <read_from_string_index, read_from_string_index_byte>
4476 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4477 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4478 buffer positions and string length.
4479
41118bd3
EZ
4480 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4481 EMACS_INT.
4482 (echo_truncate, adjust_point_for_property, read_char)
4483 (gen_help_event, make_lispy_event, modify_event_symbol)
4484 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4485 for buffer positions and string length.
4486
4487 * keyboard.h (gen_help_event): Adjust prototype.
4488
4489 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4490
4491 * commands.h <last_point_position>: Declare EMACS_INT.
4492
4493 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4494 (truncate_echo_area): Accept EMACS_INT argument.
4495
4496 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4497
4498 * lisp.h (truncate_echo_area): Adjust prototype.
4499
4500 * composite.c (composition_adjust_point): Return EMACS_INT.
4501
4502 * composite.h (composition_adjust_point): Adjust prototype.
4503
ba3033ee
JB
45042010-09-25 Juanma Barranquero <lekktu@gmail.com>
4505
4506 * process.c (Fmake_network_process): When arg :host is 'local,
4507 use address 127.0.0.1, not name "localhost". (Bug#6781)
4508
4f3a2f8d
EZ
45092010-09-24 Eli Zaretskii <eliz@gnu.org>
4510
5816888b
EZ
4511 * indent.c (Fcurrent_indentation, indented_beyond_p)
4512 (compute_motion): Use EMACS_INT for buffer position variables.
4513
4514 * lisp.h (indented_beyond_p): Adjust prototype.
4515
4516 * buffer.c (overlay_strings): Return EMACS_INT.
4517
4518 * buffer.h (overlay_strings): Adjust prototype.
4519
4520 * region-cache.c (pp_cache): Adjust format to arguments.
4521
4522 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4523 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4524 (verror): Use EMACS_INT for size of allocated buffer.
4525
ace1712c
EZ
4526 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4527 positions.
4528
4529 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
4530 (set_cursor_from_row, find_first_unchanged_at_end_row):
4531 Use EMACS_INT for buffer positions.
ace1712c 4532
f5276b75 4533 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
4534
4535 * dispnew.c (increment_matrix_positions)
4536 (increment_row_positions, copy_glyph_row_contents)
4537 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4538 positions.
4539
4540 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
4541 (increment_matrix_positions, increment_row_positions):
4542 Adjust prototypes.
ace1712c
EZ
4543
4544 * data.c (Faref, Faset): Use EMACS_INT for string length and
4545 positions.
4546
4547 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4548 characters to insert.
4549
4550 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4551 position and size.
4552
4f3a2f8d
EZ
4553 * syntax.c (scan_words, update_syntax_table)
4554 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
4555 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4556 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
4557
4558 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4559
4560 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4561 positions.
4562
db063399
LMI
45632010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4564
f0812d35
LMI
4565 * scroll.c (calculate_scrolling, line_ins_del)
4566 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4567 conversion.
4568
f5c7fc27
LMI
4569 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4570 (region_cache_backward, region_cache_forward)
4571 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4572 conversion.
4573
db063399
LMI
4574 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4575
4576 * eval.c (verror): Fix EMACS_INT/int conversion.
4577
07914cd0 4578 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
4579 (print_preprocess, print_check_string_charset_prop)
4580 (print_object): Fix EMACS_INT/int conversion.
4581
4582 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4583
e6d4aefa
EZ
45842010-09-24 Eli Zaretskii <eliz@gnu.org>
4585
69481da7
EZ
4586 * callproc.c (Fcall_process): Use EMACS_INT for count of
4587 characters read from the subprocess.
4588
61bfec98
EZ
4589 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4590 positions.
4591 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
4592 positions.
4593
145582a0
EZ
4594 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4595 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
4596 length.
4597 (advance_to_char_boundary, Fset_buffer_multibyte)
4598 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
4599 (overlay_touches_p, record_overlay_string, overlay_strings)
4600 (recenter_overlay_lists, fix_start_end_in_overlays)
4601 (modify_overlay, Fmove_overlay, report_overlay_modification)
4602 (evaporate_overlays): Use EMACS_INT for buffer positions.
4603
bba3e508
SM
4604 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
4605 Adjust prototypes.
145582a0 4606
446470a9
EZ
4607 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
4608 positions.
4609
e6d4aefa
EZ
4610 * fns.c (Fcompare_strings, Fstring_lessp, concat)
4611 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
4612 (Fsubstring_no_properties, substring_both, Ffillarray)
4613 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
4614 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
4615 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
4616 (Fmd5): Use EMACS_INT for buffer and string positions and length
4617 variables and arguments.
4618
4619 * lisp.h (substring_both): Adjust prototype.
4620
eb652396
JB
46212010-09-24 Juanma Barranquero <lekktu@gmail.com>
4622
4623 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
4624 * w32fns.c (clipboard_sequence_fn): Don't declare.
4625 (globals_of_w32fns): Don't initialize it.
4626
266a86bd 46272010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
4628
4629 * syntax.c (back_comment): Detect the case where a 1-char comment
4630 starter is also the 2nd char of a 2-char comment ender.
4631
266a86bd 46322010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
4633
4634 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
4635
40283062
LMI
46362010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4637
db063399
LMI
4638 * eval.c (verror): EMACS_INT/int cleanup.
4639
faf8b5bc
LMI
4640 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
4641 unwind_protect more than 2GB worth of functions.
4642
4643 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
4644
40283062
LMI
4645 * lisp.h: Have oblookup take EMACS_INT to allow interning big
4646 string and avoid compiler warnings.
4647 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
4648 all users.
4649
4650 * lread.c (oblookup): EMACS_INT/int cleanup.
4651
4652 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
4653
fe3537c3
EZ
46542010-09-23 Eli Zaretskii <eliz@gnu.org>
4655
4656 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
4657
4658 * lisp.h (clip_to_bounds): Adjust prototype.
4659
4660 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
4661
0350982f
LMI
46622010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4663
84c9ce05
LMI
4664 * lisp.h: doprnt.c EMACS_INT/int cleanup.
4665
4666 * doprnt.c (doprnt): EMACS_INT/int cleanup.
4667
4668 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
4669 cleanup.
4670
0350982f
LMI
4671 * lisp.h: Change the definition of all marker.c functions that
4672 take and return buffer stuff to be EMACS_INT instead of int.
4673
4674 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
4675 (buf_charpos_to_bytepos, bytepos_to_charpos)
4676 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
4677 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
4678 for all buffer positions.
4679
c50bd0d2
CY
46802010-09-23 Chong Yidong <cyd@stupidchicken.com>
4681
4682 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4683 (split_interval_right, find_interval, next_interval)
4684 (delete_node, delete_interval, interval_deletion_adjustment)
4685 (adjust_intervals_for_deletion, merge_interval_right)
4686 (merge_interval_left, graft_intervals_into_buffer)
4687 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
4688
4689 * intervals.h (traverse_intervals): Update prototype.
4690
14162469
EZ
46912010-09-23 Eli Zaretskii <eliz@gnu.org>
4692
c098fdb8
EZ
4693 * indent.c (compute_motion): Use EMACS_INT for arguments to
4694 region_cache_forward.
4695
bba3e508
SM
4696 * region-cache.c (struct boundary, struct region_cache):
4697 Use EMACS_INT for positions.
c098fdb8
EZ
4698 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
4699 (delete_cache_boundaries, set_cache_region)
4700 (invalidate_region_cache, know_region_cache)
bba3e508
SM
4701 (region_cache_forward, region_cache_backward, pp_cache):
4702 Use EMACS_INT for buffer positions.
c098fdb8
EZ
4703
4704 * region-cache.h (know_region_cache, invalidate_region_cache)
4705 (region_cache_forward, region_cache_backward): Adjust prototypes.
4706
4707 * search.c (string_match_1, fast_c_string_match_ignore_case)
4708 (looking_at_1, scan_buffer, scan_newline)
4709 (find_next_newline_no_quit, find_before_next_newline)
4710 (search_command, trivial_regexp_p, search_buffer, simple_search)
4711 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
4712 and string positions and length.
4713
caefdbe7
EZ
4714 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
4715 (find_before_next_newline): Adjust prototypes.
c098fdb8 4716
29cdc13e
EZ
4717 * editfns.c (transpose_markers, update_buffer_properties)
4718 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
4719 (get_pos_property, Fconstrain_to_field)
4720 (Fline_beginning_position, Fline_end_position, Fprevious_char)
4721 (Fchar_after, Fchar_before, Finsert_char)
4722 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
4723 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
4724 Use EMACS_INT for buffer and string position variables.
c098fdb8 4725 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
4726
4727 * lisp.h (clip_to_bounds): Adjust prototype.
4728
e79123aa
EZ
4729 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4730 (balance_an_interval, split_interval_right, split_interval_left)
4731 (find_interval, next_interval, update_interval)
4732 (adjust_intervals_for_insertion, delete_node, delete_interval)
4733 (interval_deletion_adjustment, adjust_intervals_for_deletion)
4734 (offset_intervals, merge_interval_right, merge_interval_left)
4735 (graft_intervals_into_buffer, adjust_for_invis_intang)
4736 (move_if_not_intangible, get_local_map, copy_intervals)
4737 (copy_intervals_to_string, compare_string_intervals)
4738 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 4739 and for interval tree size.
e79123aa
EZ
4740
4741 * intervals.h (traverse_intervals, split_interval_right)
4742 (split_interval_left, find_interval, offset_intervals)
4743 (graft_intervals_into_buffer, copy_intervals)
4744 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
4745 (update_interval): Adjust prototypes.
4746
579c18d0
EZ
4747 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
4748 Use EMACS_INT for buffer position variables and arguments.
4749
4750 * composite.c (get_composition_id, find_composition)
4751 (run_composition_function, compose_text)
4752 (composition_gstring_width, autocmp_chars)
4753 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
4754 for buffer positions and string length variables and arguments.
4755
4756 * composite.h (get_composition_id, find_composition, compose_text)
4757 (composition_gstring_width): Adjust prototypes.
4758
4759 * editfns.c (Fformat): Use EMACS_INT for string size variables.
4760
bba3e508
SM
4761 * xdisp.c (store_mode_line_noprop, display_mode_element):
4762 Use EMACS_INT for string positions.
579c18d0
EZ
4763
4764 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
4765 position arguments.
4766
4767 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
4768
4769 * character.c (parse_str_as_multibyte, str_as_multibyte)
4770 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 4771 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
4772 (strwidth, lisp_string_width, multibyte_chars_in_text):
4773 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4774
4775 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 4776 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
4777 (c_string_width, strwidth, lisp_string_width):
4778 Adjust prototypes.
14162469 4779
579c18d0
EZ
4780 * font.c (font_intern_prop): Use EMACS_INT for string length
4781 variables.
4782
4783 * font.c (font_intern_prop): Use EMACS_INT for string length
4784 variables.
4785
14162469
EZ
4786 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
4787 variables.
4788
4789 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
4790 (Fmake_string): Protect against too large strings.
4791 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4792 (live_misc_p): Use ptrdiff_t instead of int for pointer
4793 differences.
4794 (string_bytes, check_sblock, check_string_free_list)
4795 (allocate_string_data, compact_small_strings, Fmake_string)
4796 (Fmake_bool_vector, make_string, make_unibyte_string)
4797 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
4798 (make_specified_string_string, Fmake_list, Fmake_vector):
4799 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4800 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4801 (Fpurecopy): Use EMACS_INT for string size.
4802 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4803 for vector size.
4804
4805 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4806 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
4807 (make_pure_string, string_bytes, check_point_in_composition):
4808 Adjust prototypes.
14162469 4809
c8a66ab8
EZ
48102010-09-22 Eli Zaretskii <eliz@gnu.org>
4811
4812 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4813 (check_translation): Use EMACS_INT for buffer positions and
4814 length.
4815
4816 * undo.c (record_marker_adjustment, record_delete)
4817 (record_change, record_point, record_insert)
4818 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4819 buffer positions.
4820
4821 * lisp.h (record_marker_adjustment, record_delete)
4822 (record_change, record_point, record_insert)
4823 (record_property_change, Fprimitive_undo): Adjust prototypes.
4824
38c54d9d
JB
48252010-09-22 Juanma Barranquero <lekktu@gmail.com>
4826 Eli Zaretskii <eliz@gnu.org>
4827
4828 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
4829
413d18e7
EZ
48302010-09-22 Eli Zaretskii <eliz@gnu.org>
4831
4832 * minibuf.c (Fminibuffer_contents)
4833 (Fminibuffer_contents_no_properties)
4834 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
4835 positions.
4836
4837 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
4838 mark.
4839
4840 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
4841 (allocate_string_data): Accept EMACS_INT for string length.
4842
4843 * editfns.c (Ffield_string, Ffield_string_no_properties)
4844 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
4845 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
4846 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
4847 (Ffield_end): Use EMACS_INT for buffer positions.
4848
4849 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
4850 point with mark.
4851
4852 * lisp.h (allocate_string_data, make_uninit_string)
4853 (make_uninit_multibyte_string, make_buffer_string)
4854 (make_buffer_string_both): Adjust prototypes.
4855
4b9832a6
CY
48562010-09-22 Chong Yidong <cyd@stupidchicken.com>
4857
4858 * xml.c: Switch to GNU indentation.
4859 (make_dom): Change parse tree format to match xml.el.
4860 (Fxml_parse_html_string_internal): Rename from html-parse-string.
4861 (Fxml_parse_string_internal): Rename from xml-parse-string.
4862
86282aab
KH
48632010-09-22 Kenichi Handa <handa@m17n.org>
4864
4865 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
4866 only if we are not at a composition.
4867 (set_iterator_to_next): Give it->end_charpos to
4868 composition_compute_stop_pos.
4869 (set_iterator_to_next, next_element_from_buffer): Likewise.
4870
4871 * dispnew.c (buffer_posn_from_coords): Fix position when the
4872 current display element is a grapheme cluster in bidi-reordered
4873 region.
4874
840b985a
AR
48752010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
4876
4877 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
4878 the regions may overlap.
4879
5bc88f4b
JB
48802010-09-21 Juanma Barranquero <lekktu@gmail.com>
4881
4882 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
4883
92bc9a36
DN
48842010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4885
d19e096e
DN
4886 * emacs.c: Do not include sys/ioctl.h, not needed.
4887
92bc9a36
DN
4888 * doprnt.c: Do not include stdlib.h, config.h does it.
4889 Move #include before macro definition.
4890
15f844ac
DN
48912010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
4892
48e24408
DN
4893 * Makefile.in (temacs): Link using $(CC) not $(LD).
4894 (LD_FIRSTFLAG): Define using autoconf.
4895 (LD): Remove.
4896
65539506
DN
4897 Remove HAVE_TERMIOS definitions.
4898 * s/usg5-4-common.h (HAVE_TERMIOS):
4899 * s/template.h (HAVE_TERMIOS):
4900 * s/gnu-linux.h (HAVE_TERMIOS):
4901 * s/darwin.h (HAVE_TERMIOS):
4902 * s/cygwin.h (HAVE_TERMIOS):
4903 * s/bsd-common.h (HAVE_TERMIOS):
4904 * s/aix4-2.h (HAVE_TERMIOS):
4905 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
4906 defined on all non-MS platforms.
4907 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
4908
15f844ac
DN
4909 * xterm.c (xt_action_hook): Use const.
4910
7d701334
JB
49112010-09-20 Juanma Barranquero <lekktu@gmail.com>
4912
4913 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
4914 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4915 (gethostname) [!HAVE_SOCKETS]: Remove.
4916 (SOCK_REPLACE_HANDLE): Remove macro.
4917 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
4918 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
4919 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4920 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
4921
f3ec267a
EZ
49222010-09-18 Eli Zaretskii <eliz@gnu.org>
4923
4924 * deps.mk (xml.o): Add dependencies.
4925
93acd23d
JB
4926 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4927 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
4928
4929 * bidi.c (bidi_paragraph_init): Accept an additional argument
4930 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4931 search back until a paragraph with a strong directional character
4932 is found, and use that to determine paragraph's base direction.
4933
4934 * dispextern.h (bidi_paragraph_init): Update prototype.
4935
69e847be
EZ
49362010-09-17 Eli Zaretskii <eliz@gnu.org>
4937
4938 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4939 of w32api >= 3.15. (Bug#6989)
4940
283357a7
LMI
49412010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4942
4943 * process.c (wait_reading_process_output): Don't message about
4944 accept-process-output unless the time limit really is zero.
4945
4ddb20d6
SM
49462010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4947
4948 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4949 int/Lisp_Object mixup).
4950
e24ad6dd
J
49512010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4952
4953 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4954 not HELP.
4955
fb0cf781
J
49562010-09-17 Stephen Berman <stephen.berman@gmx.net>
4957
4958 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4959 bar's pixel width to Lisp (Bug#7048).
4960
4ddb20d6
SM
49612010-09-14 Juanma Barranquero <lekktu@gmail.com>
4962
4963 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 4964
318a04c6
J
49652010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4966
4967 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4968 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4969
78a21772
KH
49702010-09-17 Kenichi Handa <handa@m17n.org>
4971
4972 * ftfont.c (ftfont_check_otf): Fix previous change.
4973
fa3f6039
KH
49742010-09-14 Kenichi Handa <handa@m17n.org>
4975
4976 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4977 existence of GSUB or GPOS.
4978
2b5491fa
JB
49792010-09-14 Juanma Barranquero <lekktu@gmail.com>
4980
4981 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4982
c97c655f
LMI
49832010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4984
ef1b0ba7 4985 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
4986 what it does.
4987 (parse_string): Return nil when the document can't be parsed.
4988
6664fc59 49892010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
4990
4991 * xterm.c (get_current_vm_state): New function.
4992 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4993 want_fullscreen so set_wm_state calls are few (Bug#7013).
4994 (x_handle_net_wm_state): Move code to get_current_vm_state and
4995 call that function.
4996
6664fc59 49972010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
4998
4999 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5000
6664fc59 50012010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
5002
5003 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5004 we may use designation or locking-shift.
5005
6664fc59 50062010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
5007
5008 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5009 sequence when the source is multibyte.
5010
1da70e99
AS
50112010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5012
6664fc59
JB
5013 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5014 Don't make first argument optional. Doc fix.
1da70e99 5015
26632d8d
LMI
50162010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5017
5018 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5019 parameters for the doc string.
5020
21fa8e37
LMI
50212010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5022
5023 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5024
5616cc54
SM
50252010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5026
5027 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5028 (syms_of_fns): Don't defsubr Sy_or_n_p.
5029 * lisp.h: Don't declare Fy_or_n_p.
5030 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5031
381408e2
LMI
50322010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5033
5034 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5035
50362010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5037
5038 * xml.c: New file.
5039 (Fhtml_parse_buffer): New function to interface to the libxml2
5040 html parsing function.
5041
733946e7
JB
50422010-09-05 Juanma Barranquero <lekktu@gmail.com>
5043
5044 * biditype.h: Regenerate.
5045
7574650a
AS
50462010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5047
5048 * nsimage.m (ns_load_image): Check argument types.
5049
5050 * image.c: Remove all uses of gcpro.
5051 (xpm_load): Check all lisp types.
5052 (pbm_load): Likewise.
5053 (png_load): Likewise.
5054 (jpeg_load): Likewise.
5055 (tiff_load): Likewise.
5056 (gif_load): Likewise.
5057 (imagemagick_load_image): Likewise.
5058 (imagemagick_load): Likewise.
5059 (svg_load): Likewise.
5060 (gs_load): Likewise.
5061
6e6b8e25
EZ
50622010-09-04 Eli Zaretskii <eliz@gnu.org>
5063
bba3e508
SM
5064 * w32uniscribe.c (uniscribe_shape): Update commentary.
5065 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
5066 hold them in the logical order.
5067 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5068 return glyph codes in the logical order.
5069
dbfe4532
AS
50702010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5071
5072 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 5073 (imagemagick_load_image): Fix type mismatch.
5e5992c2 5074 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 5075
6d7cc563
JD
50762010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5077
5078 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5079
5080 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5081
5082 * xselect.c: Remove declaration of cut-buffer objects and functions.
5083 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5084 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5085 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5086 (Fx_rotate_cut_buffers_internal): Remove.
5087 (syms_of_xselect): Remove defsubr of above.
5088 Remove intern of QCUT_BUFFERn.
5089
8f4e9110
SM
50902010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5091
5092 * cmds.c (Vblink_paren_function): Remove.
5093 (internal_self_insert): Make it insert N chars at a time.
5094 Don't call blink-paren-function.
5095 (Fself_insert_command): Adjust accordingly.
5096 (syms_of_cmds): Don't declare blink-paren-function.
5097
d419e1d9
KH
50982010-08-31 Kenichi Handa <handa@m17n.org>
5099
5100 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5101 characters.
5102
5103 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
5104 (produce_glyphs): Don't set it->char_to_display here.
5105 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
5106 (produce_special_glyphs): Set temp_it.char_to_display before
5107 calling produce_glyphs.
5108
5109 * xdisp.c (get_next_display_element): Set it->char_to_display
5110 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5111 characters.
5112 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5113 calling PRODUCE_GLYPHS.
5114 (append_space_for_newline): Save and store it->char_to_display.
5115 Set it->char_to_display before calling PRODUCE_GLYPHS.
5116 (extend_face_to_end_of_line): Set it->char_to_display before
5117 calling PRODUCE_GLYPHS.
5118 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5119 character to its byte value.
5120 (get_char_glyph_code): New function.
5121 (produce_stretch_glyph): Set it2.char_to_display too before
5122 calling x_produce_glyphs.
5123 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
5124 non-ASCII characters. Don't set it->char_to_display here.
5125 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 5126 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 5127
b819f760
SM
51282010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5129
5130 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5131
07fa68a7
CY
51322010-08-31 Chong Yidong <cyd@stupidchicken.com>
5133
5134 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5135
cd196f12
SM
51362010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5137
5138 * marker.c (Fcopy_marker): Make the first arg optional.
5139
49a752bb
KH
51402010-08-30 Kenichi Handa <handa@m17n.org>
5141
5142 * composite.c (composition_update_it): Fix computing of
5143 cmp_it->width.
5144
769ae9e1
KH
51452010-08-29 Kenichi Handa <handa@m17n.org>
5146
9e69cb05 5147 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 5148 corresponding bytes.
9e69cb05 5149
4520b858
J
51502010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5151
5152 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5153
fe50eb41
KH
51542010-08-26 Kenichi Handa <handa@m17n.org>
5155
5156 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5157 on calling composition_compute_stop_pos.
5158
f6aa6ec6
KH
51592010-08-25 Kenichi Handa <handa@m17n.org>
5160
9dfdbc0a
KH
5161 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5162 :otf.
5163
f6aa6ec6
KH
5164 * composite.c (composition_compute_stop_pos): Don't break
5165 composition at PT.
5166 (composition_reseat_it): Likewise. Fix calculation of character
5167 position starting a composition.
5168 (Fcomposition_get_gstring): Don't limit the number of components
5169 for automatic composition.
5170
ff94e32c
KH
51712010-08-25 Kenichi Handa <handa@m17n.org>
5172
5173 * composite.c (composition_compute_stop_pos): In forward search,
5174 pay attention to the possibility that some character after ENDPOS
5175 will be composed with charactrs before ENDPOS.
5176
1c409d0b
CY
51772010-08-24 Chong Yidong <cyd@stupidchicken.com>
5178
5179 * keyboard.c (command_loop_1): Don't clobber primary selection
5180 during handle-switch-frame (Bug#6872).
5181
0c372655
MA
51822010-08-23 Michael Albinus <michael.albinus@gmx.de>
5183
5184 * dbusbind.c: Accept UNIX domain sockets as bus address.
5185 (Fdbus_close_bus): New function.
5186 (Vdbus_registered_buses): New variable.
5187 (xd_initialize): Implement string as bus address.
5188 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5189 (Fdbus_get_unique_name, Fdbus_call_method)
5190 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5191 (Fdbus_method_error_internal, Fdbus_send_signal)
5192 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5193 check. This is done in xd_initialize_bus. Adapt doc string, if
5194 necessary.
5195 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5196 Vdbus_registered_buses.
5197 (Vdbus_registered_objects_table): Create hash.
5198
7133b7ee
JL
51992010-08-22 Juri Linkov <juri@jurta.org>
5200
5201 * keyboard.c (Fexecute_extended_command): Move reading a command name
5202 with `completing-read' to a new Elisp function `read-extended-command'.
5203 Call it to read a command to `function' (bug#5364, bug#5214).
5204
198a7a97
CY
52052010-08-22 Chong Yidong <cyd@stupidchicken.com>
5206
5207 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5208
b0126eac 52092010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
5210
5211 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5212 instead of SAFE_ALLOCA.
5213
b0126eac 52142010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
5215
5216 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5217 (Bug#6214).
5218
b0126eac 52192010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
5220
5221 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5222
b0126eac
CY
52232010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5224
5225 * doc.c (Fsnarf_documentation): Initialize skip_file before
5226 build-files test.
5227
692f3ddc 52282010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 5229
692f3ddc
JB
5230 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5231 New definitions.
b0126eac
CY
5232 (HAVE_TERMIO): Remove.
5233
5f2f0bc1
EZ
52342010-08-22 Eli Zaretskii <eliz@gnu.org>
5235
b613941b
EZ
5236 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5237
a583bbef
EZ
5238 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5239 for w32.
5240
5241 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5242 it's done in nt/config.nt.
5243
5244 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5245
5f2f0bc1
EZ
5246 * unexcoff.c (report_error, make_hdr, write_segment)
5247 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5248 Convert argument lists and prototypes to ANSI C.
5249 (make_hdr, write_segment): Remove unused variables.
5250 (unexec): Remove commented-out line. Initialize `new' to shut up
5251 compiler warnings.
5252
a7ebc409
DN
52532010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5254
5255 Simplify termio code.
5256 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5257 HAVE_TERMIO code is obsolete.
5258 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5259 * systty.h: Do not define HAVE_TCATTR.
5260 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5261 Do not define EMACS_HAVE_TTY_PGRP. Only define
5262 EMACS_GET_TTY_PGRP for !DOS_NT.
5263 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
5264 sys/ioctl.h and termios.h, systty.h does it.
5265 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
5266 (init_baud_rate): Remove HAVE_TERMIO code.
5267 (child_setup_tty): Remove HAVE_TERMIO code.
5268 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5269 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5270 (new_ltchars, new_tchars): Remove, unused.
5271 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
5272 code. Remove special casing for __mips__, it was a no-op.
5273 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
5274 (init_sys_modes): Remove HPUX special case.
5275 * process.c: Include stdlib.h unconditionally. Do not include
5276 fcntl.h, systty.h does it. Remove conditional code for
5277 HAVE_SERIAL, it is always true.
5278 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5279 always true when SIGNALS_VIA_CHARACTERS is true.
5280 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5281 !WINDOWSNT means HAVE_TERMIOS.
5282 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5283 conditional, which is true for all HAVE_TERMIOS systems.
5284 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5285 instead of HAVE_TERMIOS.
5286 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5287 EMACS_HAVE_TTY_PGRP.
5288 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5289 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5290 anyway.
5291
914f049b 52922010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
5293
5294 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5295 mirroring pixel positions.
5296
d931da8c
DN
52972010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5298
b5c76d0c
DN
5299 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5300 write only.
5301 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5302 malloc_sbrk_used, nothing uses them.
5303
74815588
DN
5304 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5305 defined, unconditionally defined in lisp.h.
5306
f5817d1c
DN
5307 * term.c: Do not include <termios.h>, systty.h does it.
5308
d931da8c
DN
5309 * s/unixware.h (HAVE_TCATTR):
5310 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5311 systty.h defines it when HAVE_TERMIOS is defined.
5312
ff2de6d2 53132010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 5314
b43c883c 5315 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 5316 terminals: add one-character offset for R2L lines.
b43c883c 5317
491a1546
EZ
5318 * emacs.c <emacs_version>: Add a comment regarding
5319 msdos/mainmake.v2's dependency on the syntax of this declaration.
5320
2396cbba
EZ
53212010-08-20 Eli Zaretskii <eliz@gnu.org>
5322
5323 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5324 position for R2L lines by mirroring the pixel position wrt the
5325 text are box. Improve commentary.
5326
7df6150a
AS
53272010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5328
5329 * image.c (imagemagick_clear_image): Remove debugging output.
5330
a2e5caf7
SM
53312010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5332
5333 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5334 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5335 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5336 self-insert-face.
5337 (syms_of_cmds): Initialize the new vars.
5338
20d60baf
JR
53392010-08-19 Jason Rumney <jasonr@gnu.org>
5340
cc477da7
JR
5341 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5342
20d60baf
JR
5343 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5344
2c0ac867
J
53452010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5346
5347 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5348
93352106
EZ
53492010-08-18 Eli Zaretskii <eliz@gnu.org>
5350
5351 * xterm.c (x_draw_bar_cursor):
5352 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5353 R2L, draw the bar cursor on its right rather than on its left.
5354
c785836d
SM
53552010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5356
0193499f
SM
5357 * eval.c (Fdefmacro): Only obey one declaration.
5358
c785836d
SM
5359 * casefiddle.c (casify_region): Setup gl_state.
5360
9cb728a5
J
53612010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5362
5363 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5364
e1e18511
J
53652010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5366
1d77b63e 5367 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 5368
64cb6c78
J
53692010-08-18 David De La Harpe Golden <david@harpegolden.net>
5370
5371 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5372 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5373 QPRIMARY => NXPrimaryPboard.
5374 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5375 NXPrimaryPboard => QPRIMARY.
5376 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5377 NXSecondaryPboard = SecondarySelection.
5378 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5379
0c9b8993
GM
53802010-08-18 Joakim Verona <joakim@verona.se>
5381
5382 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5383 defined:
5384 (imagemagick_image_p): New function to test for ImageMagic image.
5385 (imagemagick_load): New function to load ImageMagick image.
5386 (imagemagick_load_image): New function, helper for imagemagick_load.
5387 (imagemagick-types): New function.
5388 (Qimagemagick): New Lisp_object.
5389 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 5390
c3554f68
SM
53912010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5392
5393 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5394 is a string.
5395
1ff2e434
J
53962010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5397
5398 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5399 x_set_tool_bar_position handler.
5400
0cc56427
EZ
54012010-08-17 Eli Zaretskii <eliz@gnu.org>
5402
5403 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5404 x_set_tool_bar_position handler, needed to support changes from
5405 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5406
e45a249b
JD
54072010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5408
2f8f196d 5409 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 5410 declaration (Bug#6863).
573d150b 5411 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 5412
e45a249b
JD
5413 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5414
5415 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5416
7c23dd44
CY
54172010-08-16 Chong Yidong <cyd@stupidchicken.com>
5418
5419 * keyboard.c (command_loop_1): Avoid setting selection twice,
5420 since it's done in deactivate-mark as well.
5421 (Vselect_active_regions): Change default to t. Replace `lazy'
5422 with non-default value `only', meaning only set PRIMARY for
5423 temporarily active regions.
5424
5425 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5426 select-active-regions.
5427
0005830c
J
54282010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5429
5430 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5431 isn't a string.
5432
603dfc72
AS
54332010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5434
5435 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5436
c25ce9d0
J
54372010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5438
c3554f68
SM
5439 * keyboard.c (parse_tool_bar_item): malloc buf.
5440 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5441 new_lbl (Bug#6855).
c25ce9d0 5442
5872c762
EZ
54432010-08-14 Eli Zaretskii <eliz@gnu.org>
5444
b236615c
EZ
5445 * xterm.c (x_draw_stretch_glyph_string):
5446 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5447 the cursor on the right edge of the stretch glyph.
5448
c3554f68
SM
5449 * xdisp.c (window_box_right_offset, window_box_right):
5450 Fix commentary.
b236615c 5451
5872c762
EZ
5452 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5453 direction when point is inside a run of whitespace characters.
5454
5455 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5456
e66f9a1b
JR
54572010-08-14 Jason Rumney <jasonr@gnu.org>
5458
5459 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5460
79d6f59e
CY
54612010-08-14 Chong Yidong <cyd@stupidchicken.com>
5462
5463 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5464
1c9b4129
JR
54652010-08-13 Jason Rumney <jasonr@gnu.org>
5466
5467 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5468 (MessageBoxW_Proc): New function typedef.
5469 (unicode-message-box): New function pointer.
2f8f196d 5470 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 5471
2b4e6277
J
54722010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5473
5474 * frame.h (Qtool_bar_position): Declare.
5475
5476 * xfns.c (Fx_create_frame): Call x_default_parameter for
5477 Qtool_bar_position.
5478
94c97d85
EZ
54792010-08-13 Eli Zaretskii <eliz@gnu.org>
5480
8ee81892
EZ
5481 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5482 (report_error, report_error_1): Ditto.
5483 (write_segment): Remove "#if 0" unused code.
5484 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5485 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5486 (start_of_text): Remove unused function (was used only if NO_REMAP
5487 was NOT defined).
5488
891ef8f7
EZ
5489 * msdos.c (IT_set_face): Fix format string to match argument
5490 types.
5491 (IT_write_glyphs, IT_note_mode_line_highlight)
5492 (IT_set_frame_parameters): Remove unused variables.
5493 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5494 (IT_set_terminal_modes): Disambiguate expression in if clause.
5495 (Fmsdos_remember_default_colors): Return Qnil.
5496 (IT_set_frame_parameters): Add parens to disambiguate boolean
5497 expression for logging the cursor type to termscript.
5498 (keyboard_layout_list, keypad_translate_map)
5499 (grey_key_translate_map): Add braces in inner initializers.
5500 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5501 (dos_rawgetc): Remove unused label.
5502 (XMenuActivate): Add braces to remove ambiguous `else'.
5503 (dos_ttraw): Always return a value.
5504 (spawnve): Declare.
5505 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5506
5507 * dosfns.h (x_set_title): Declare.
5508
5509 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5510 Remove unused variables.
5511
5512 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5513 variables.
5514 (init_dosfns): Declare get_lim_data.
5515 (system_process_attributes): Declare Fget_internal_run_time.
5516
38e41e0e
EZ
5517 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5518 list to be consistent with menu.h.
5519
94c97d85
EZ
5520 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5521 warnings due to mixing of "char *" and "const char *".
5522
c5683ceb
SM
55232010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5524
5525 Introduce a new comment style "c" flag.
5526 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5527 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5528 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5529 (syntax_prefix_flag_p): New function.
5530 (Fstring_to_syntax): Understand new "c" flag.
5531 (Finternal_describe_syntax_value): Recognize new flag; use the
5532 SYNTAX_FLAGS_* macros.
5533 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5534 comment style to accomodate the new styles.
5535 (back_comment, forw_comment, Fforward_comment, scan_lists)
5536 (scan_sexps_forward): Update code to obey the new comment style flag.
5537
5538 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5539
5540 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5541
7aee76f4
J
55422010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5543
3a46642b
J
5544 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5545 first.
94dff98f 5546 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
5547
5548 * gtkutil.h (xg_check_special_colors): Declare.
5549
5550 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5551 (xg_create_frame_widgets): Connect theme name changes to
5552 style_changed_cb.
5553
42ca4633
J
5554 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5555 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5556 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 5557 string literal. file is const char*.
42ca4633
J
5558
5559 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5560 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5561 props. Free them at the end.
5562
5563 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5564
c5683ceb
SM
5565 * xrdb.c (get_system_app): Make path const and use char *p for
5566 non-const char.
42ca4633
J
5567
5568 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 5569 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
5570 char *.
5571 (button_names): Is const char *.
5572 (xdialog_show): error_name and pane_string is const.
5573
5574 * process.h (synch_process_death): Is const char*.
5575
5576 * w32menu.c (w32_menu_show):
5577 * nsmenu.m (ns_menu_show): error parameter is const char **.
5578
5579 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5580 is const char **.
5581
5582 * menu.c (Fx_popup_menu): error_name is const.
5583
5584 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5585 with unsigned char and XtPointer with void *.
5586
5587 * gtkutil.h: Replace widget_value with struct _widget_value.
5588 (enum button_type, struct _widget_value): Remove and use the one from
5589 keyboard.h.
5590
5591 * gtkutil.c (get_utf8_string): Always return an allocated string.
5592 Parameter is const.
5593 (create_dialog, xg_create_one_menuitem, create_menus)
5594 (xg_item_label_same_p, xg_update_menu_item): Free result from
5595 get_utf8_string.
5596 (xg_separator_p, xg_item_label_same_p): label is const.
5597
5598 * font.h (font_open_by_name): Make name const.
5599
5600 * font.c (font_open_by_name): Make name const.
5601
5602 * floatfns.c (matherr): Use a const char* variable for x->name.
5603
5604 * emacs.c (main): Pass char[] to putenv instead of literal.
5605
5606 * callproc.c (synch_process_death): Make const.
5607 (Fcall_process): Make signame const.
5608
9c5bd55a
J
5609 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
5610 (addDisplayItemWithImage): Use const char*.
5611
5612 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
5613 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
5614
5615 * nsfont.m (ns_descriptor_to_entity): Use const char*.
5616
5617 * keyboard.h (_widget_value): name, value and key are const char*.
5618
7aee76f4
J
5619 * unexmacosx.c (unexec_error): Use const char *.
5620
09d93395
DN
56212010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5622
5623 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5624 (font_parse_name, font_open_by_name):
09d93395 5625 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5626 (font_parse_name, font_open_by_name): Remove const.
09d93395 5627
671d409f
AS
56282010-08-09 Andreas Schwab <schwab@linux-m68k.org>
5629
5630 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
5631 definition.
5632
5633 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
5634 * m/amdx86-64.h: Likewise.
5635 * m/arm.h: Likewise.
5636 * m/hp800.h: Likewise.
5637 * m/ia64.h: Likewise.
5638 * m/ibmrs6000.h: Likewise.
5639 * m/ibms390.h: Likewise.
5640 * m/intel386.h: Likewise.
5641 * m/iris4d.h: Likewise.
5642 * m/m68k.h: Likewise.
5643 * m/macppc.h: Likewise.
5644 * m/mips.h: Likewise.
5645 * m/sh3.h: Likewise.
5646 * m/sparc.h: Likewise.
5647 * m/template.h: Likewise.
5648 * m/vax.h: Likewise.
5649 * m/xtensa.h: Likewise.
5650 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
5651 WORDS_BIG_ENDIAN.
5652 * lisp.h: Likewise.
5653 * md5.c: Likewise.
5654 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
5655
8ea90aa3
DN
56562010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5657
5658 Use const char* instead of char*.
5659 Reduce the number of warnings with -Wwrite-strings.
5660 * xrdb.c (get_environ_db, get_system_name):
5661 * unexelf.c (find_section):
5662 * term.c (string_cost, string_cost_one_line, per_line_cost)
5663 (get_named_tty, init_tty):
5664 * sysdep.c (sys_subshell):
5665 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
5666 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
5667 * search.c (Freplace_match):
5668 * process.c (Fmake_network_process, send_process, init_process):
5669 * lread.c (Fload, init_lread):
5670 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
5671 * keyboard.c (parse_tool_bar_item, struct event_head):
5672 * gtkutil.h (xg_get_font_name):
5673 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
5674 (make_widget_for_menu_item, make_menu_item, create_menus)
5675 (xg_make_tool_item):
5676 * font.c (parse_matrix, font_parse_name):
5677 * floatfns.c (rounding_driver, float_error_fn_name):
5678 * filelock.c (get_boot_time_1, lock_file_1):
5679 * fileio.c (barf_or_query_if_file_exists, check_writable):
5680 * editfns.c (get_system_name, get_operating_system_release)
5681 (Fencode_time, Fset_time_zone_rule):
5682 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
5683 * buffer.c (defvar_per_buffer): Use const.
5684
7815fe19 56852010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 5686
692f3ddc 5687 * charset.c: Include <stdlib.h>.
7a84eee5
KH
5688 (struct charset_sort_data): New struct.
5689 (charset_compare): New function.
692f3ddc 5690 (Fsort_charsets): New function.
7a84eee5
KH
5691 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
5692
5693 * coding.c (decode_coding_iso_2022): Fix checking of dimension
5694 number in CTEXT extended segment.
5695
7815fe19 56962010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
5697
5698 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
5699 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
5700
7815fe19 57012010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
5702
5703 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
5704 (Fhash_table_size): Fix typos in docstrings.
5705 (Fmake_hash_table): Doc fix.
5706
7815fe19 57072010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
5708
5709 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
5710 Doc fix (bug#5625).
5711
7815fe19 57122010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
5713
5714 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
5715 the MSDOS definition.
5716
1b6d8cf0
DN
57172010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
5718
675e2c69
DN
5719 Use const char* instead of char*.
5720 * xterm.c (x_create_toolkit_scroll_bar):
5721 * xfont.c (xfont_list_pattern):
5722 * xfns.c (x_default_scroll_bar_color_parameter)
5723 (xic_create_fontsetname, x_default_font_parameter)
5724 (x_screen_planes):
5725 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
5726 (store_mode_line_string, decode_mode_spec, display_string):
5727 * menu.c (digest_single_submenu):
5728 * keymap.h (initial_define_key, initial_define_lispy_key):
5729 * keymap.c (initial_define_key, initial_define_lispy_key):
5730 * image.c (image_error, image_keyword):
5731 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
5732 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
5733 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
5734 (ftfont_list, ftfont_match):
5735 * frame.c (frame_parm_table):
5736 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5737 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5738 (font_add_log, font_deferred_log):
5739 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5740 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5741 (font_add_log, font_deferred_log):
5742 * emacs.c (argmatch):
5743 * dispextern.h (struct it):
5744 * coding.c (ENCODE_DESIGNATION):
5745 * charset.c (define_charset_internal): Use const.
5746
25717ca1
DN
5747 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
5748
c5683ceb
SM
5749 * xrdb.c: Remove include guard.
5750 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
5751 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
5752 realloc->xrealloc instead of using #defines.
5753
efb41e21
EZ
57542010-08-08 Eli Zaretskii <eliz@gnu.org>
5755
cd21226d 5756 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
5757 * editfns.c (Fline_beginning_position, Fline_end_position):
5758 State in the doc strings that start and end of line are in the
5759 logical order.
cd21226d 5760
efb41e21
EZ
5761 * xdisp.c (display_line): Move the handling of overlay arrow after
5762 the call to find_row_edges. (Bug#6699)
5763
746812d9
CY
57642010-08-07 Chong Yidong <cyd@stupidchicken.com>
5765
5766 * keyboard.c (command_loop_1):
5767 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
5768
9852377f
CY
57692010-08-07 Chong Yidong <cyd@stupidchicken.com>
5770
5771 * insdel.c (prepare_to_modify_buffer): Save active region text to
5772 Vsaved_region_selection.
5773
5774 * xselect.c (QPRIMARY): Move to keyboard.c.
5775
5776 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
5777 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
5778 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 5779
0e9c8657
JB
57802010-08-07 Juanma Barranquero <lekktu@gmail.com>
5781
5782 * alloc.c (lisp_malloc):
5783 * buffer.c (set_buffer_internal, set_buffer_internal_1):
5784 * charset.h (emacs_mule_charset):
5785 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
5786 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
5787 (bitch_at_user):
5788 * lisp.h (Fcheck_coding_system, Fget_text_property)
5789 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
5790 Remove duplicate declarations.
5791
648801d1
DN
57922010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5793
32bc6709
DN
5794 * process.c: Simplify include logic.
5795
3ef1d108
DN
5796 * keyboard.h (quit_char): Add declaration.
5797 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
5798 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5799 Add declarations.
3ef1d108
DN
5800 * sysdep.c:
5801 * w32.c: Remove the above declarations.
5802
97ec208f
DN
5803 Remove extern declarations in .c files, .h files have them.
5804 * xterm.c:
5805 * xdisp.c:
97ec208f
DN
5806 * msdos.c:
5807 * image.c:
5808 * gtkutil.c:
5809 * fileio.c:
5810 * eval.c: Remove declarations.
5811
94eed851
DN
5812 * frame.c (frame_params): Make const.
5813
36e053eb
DN
5814 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5815
0e843971
DN
5816 * emacs.c (emacs_copyright, emacs_version): Make static.
5817 (Vinitial_window_system, Vauto_save_list_file_name)
5818 (Vinhibit_redisplay): Remove declarations.
5819 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5820 for AIX.
5821
648801d1
DN
5822 Use const for some arrays and functions.
5823 * xterm.h (xg_set_icon_from_xpm_data):
5824 * xfns.c (xg_set_icon_from_xpm_data):
5825 * term.c (fkeys):
5826 * keyboard.c (lispy_accent_keys, lispy_function_keys)
5827 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
5828 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
5829 (frame.c frame_parms):
5830 * emacs-icon.h (gnu_xpm_bits):
5831 * callint.c (callint_argfuns): Use const.
5832
8646d999
J
58332010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5834
5835 * sysdep.c: Move include term.h last of includes (Bug#6812).
5836
cb4545ad
EZ
58372010-08-06 Eli Zaretskii <eliz@gnu.org>
5838
5839 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
5840
5841 * msdos.c (IT_display_cursor): Log cursor position on termscript.
5842
5843 * .gdbinit (pgx): Display the avoid_cursor_p flag.
5844
da7e2be6
JB
58452010-08-06 Juanma Barranquero <lekktu@gmail.com>
5846
5847 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
5848
3d608a86
J
58492010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5850
7908fb60
J
5851 * xterm.h (x_get_focus_frame): Declare.
5852
5853 * keyboard.h (poll_for_input_1): Unconditionally declare.
5854
4094bf36
J
5855 * nsterm.h (x_set_menu_bar_lines): Declare.
5856
5857 * window.c: Don't include menu.h, it depends on lots of other .h-files.
5858
3d608a86
J
5859 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
5860
5861 * window.c: Include menu.h.
5862
5863 * unexmacosx.c (print_region_list, print_regions)
5864 (build_region_list, find_emacs_zone_regions)
5865 (unexec_regions_merge, read_load_commands, dump_it)
5866 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
5867
5868 * term.c: Check HAVE_SYS_IOCTL_H.
5869
686b968e 5870 * sysdep.c: Check HAVE_TERM_H.
3d608a86 5871
686b968e 5872 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
5873
5874 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
5875 (ns_ring_bell, ns_defined_color, hide_hourglass)
5876 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
5877 Convert to ANSI C prototypes.
5878 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
5879 before code.
5880
5881 * nsterm.h : Include sysselect.h.
5882 (x_sync, x_get_focus_frame, x_set_mouse_position)
5883 (x_set_mouse_pixel_position, x_make_frame_visible)
5884 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
5885 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
5886 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
5887 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 5888 Declare.
3d608a86
J
5889
5890 * nsmenu.m (popup_activated, name_is_separator)
5891 (syms_of_nsmenu): Convert to ANSI C prototypes.
5892 (runMenuAt): Prototypes and move declarations before code.
5893
5894 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
5895
5896 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
5897 prototypes.
5898
5899 * nsfns.m (have_menus_p, ns_display_info_for_name)
5900 (x_set_cursor_type, ns_appkit_version_str)
5901 (ns_appkit_version_int, ns_do_applescript)
5902 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
5903 (syms_of_nsfns): Convert to ANSI C prototypes.
5904
5905 * menu.h (x_set_menu_bar_line): Declare.
5906 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
5907
5908 * lisp.h (fmod_float): Declare.
5909
5910 * image.c (xpm_scan, xpm_make_color_table_v)
5911 (xpm_put_color_table_v, xpm_get_color_table_v)
5912 (xpm_make_color_table_h, xpm_put_color_table_h)
5913 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
5914 (xpm_load): Convert to ANSI C prototypes.
5915
5916 * emacs.c: Include nsterm.h if HAVE_NS.
5917
5918 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
5919
fce70521
DN
59202010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5921
5922 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
5923 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5924 (socket_options): Use const char* for name.
5925
a11889ab
JB
59262010-08-06 Juanma Barranquero <lekktu@gmail.com>
5927
5928 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5929
5930 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5931 Don't declare xmalloc_widget_value and digest_single_submenu.
5932
5933 * w32font.c (Qlatin): Remove declaration.
5934
5935 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5936
c95b508f 5937 * dired.c (compile_pattern): Restore declaration.
a11889ab 5938
6254cdda
DN
59392010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5940
04bab72c
DN
5941 Remove extern declarations in .c files, .h files have them.
5942 * data.c:
5943 * dired.c:
5944 * editfns.c:
5945 * filelock.c:
5946 * fns.c:
5947 * font.c:
5948 * fontset.c:
5949 * frame.c:
5950 * fringe.c:
5951 * ftfont.c:
5952 * gtkutil.c:
5953 * indent.c:
5954 * keyboard.c:
5955 * keymap.c:
5956 * lread.c:
5957 * menu.c:
5958 * print.c:
5959 * search.c:
5960 * sound.c:
5961 * window.c:
5962 * xdisp.c:
5963 * xfaces.c:
5964 * xfns.c:
5965 * xfont.c:
5966 * xftfont.c:
5967 * xmenu.c:
5968 * xterm.c: Remove declarations.
5969
dff94ed5
DN
5970 Cleanup syssignal.h.
5971 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5972 (main_thread): Move down to remove #ifdef.
5973 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5974 Remove conditional definition following unconditional ones.
5975
99f3388e
DN
5976 * lisp.h: Remove HAVE_SHM code, unused.
5977 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5978 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5979 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5980 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5981 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5982 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5983 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5984 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5985 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5986 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5987 (Qwindow_scroll_functions, Vafter_load_alist)
5988 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5989 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5990 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5991 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5992 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5993 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5994 (initial_argv, last_nonmenu_event, load_in_progress)
5995 (noninteractive_need_newline, scroll_margin): Add declarations.
5996
bba3e508
SM
5997 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5998 Remove declarations, menu.h has them.
99f3388e
DN
5999 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6000 (Vinput_method_function, Qinput_method_function)
6001 (Qevent_symbol_element_mask, last_event_timestamp):
6002 * dispextern.h (Voverflow_newline_into_fringe):
6003 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6004 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6005 (syms_of_w32font, syms_of_nsfont):
6006 * fontset.h (find_font_encoding, Qlatin):
6007 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6008 (Vtool_bar_mode, set_frame_menubar):
6009 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6010 * xterm.h (Qx_gtk_map_stock):
6011 * keymap.h (meta_prefix_char): Add declarations.
6012
9f5dd6f2
DN
6013 * term.c: Remove dead code.
6014
6254cdda
DN
6015 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6016 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6017 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6018 which is what was there before BSD_PGRPS was removed.
6019
29cf3e20
EZ
60202010-08-05 Eli Zaretskii <eliz@gnu.org>
6021
6022 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6023
6024 * unexcoff.c: Renamed from unexec.c.
6025
aaa0a19a
SM
60262010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6027
6028 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6029
8d1d9587
JB
60302010-08-03 Johan Bockgård <bojohan@gnu.org>
6031
6032 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 6033 (Bug#6744)
8d1d9587 6034
9a747ba6
JD
60352010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6036
4d464ae4
JD
6037 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6038 to TRUE if depth of screen is < 16.
6039
ac01763e
JD
6040 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6041 USE_GTK_TOOLTIP.
e0d62a9b
JB
6042 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6043 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 6044 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
6045 USE_GTK_TOOLTIP.
6046 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6047
6048 * xterm.h (USE_GTK_TOOLTIP): New define.
6049 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6050
9a747ba6
JD
6051 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6052 to Control-D (Bug#6771).
6053
7b0815ba
JB
60542010-08-02 Juanma Barranquero <lekktu@gmail.com>
6055
6056 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6057 Wording by Drew Adams <drew.adams@oracle.com>.
6058
aa1859f5
J
60592010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6060
6061 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6062 ttip_lbl.
6063
6064 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6065 calling gtk_widget_queue_draw.
6066 (x_free_frame_resources): Call xg_free_frame_widgets.
6067
6068 * xfns.c (x_gtk_use_system_tooltips): New variable.
6069 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6070 new gtkutil tooltip functions to show the tooltip.
6071 (Fx_hide_tip): Call xg_hide_tooltip.
6072 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6073
6074 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6075 (xg_show_tooltip, xg_hide_tooltip): Declare.
6076
6077 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
6078 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6079 New functions.
aa1859f5
J
6080 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6081 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6082 Remove code that is commented out.
6083
76417ef4
SM
60842010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6085
6086 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6087
16041401
CY
60882010-07-31 Chong Yidong <cyd@stupidchicken.com>
6089
6090 * xselect.c (x_own_selection): Use list4.
6091
2c09a58f
DN
60922010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6093
6094 * buffer.c (Qwindow): Do not define, already defined in data.c.
6095 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6096
59df9fdd 60972010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 6098
59df9fdd
JB
6099 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6100 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6101 * config.in: Undef HAVE_DIRENT_H.
1c97e857 6102 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 6103 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 6104
1b231651
DN
61052010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6106
6107 Rename s/usg5-4.h -> s/usg5-4-common.h.
6108 * s/usg5-4.h: Rename file to ...
6109 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6110 * s/unixware.h:
6111 * s/sol2-6.h:
6112 * s/irix6-5.h: Update includes accordingly.
6113
bfeabdc3
JD
61142010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6115
2ebf1083
J
6116 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6117
bfeabdc3 6118 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
6119 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6120 Remove toolbar_height.
6121 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
6122 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6123 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6124 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6125
6126 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6127
6128 * xfns.c (x_set_tool_bar_position): New function.
6129 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6130 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 6131 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
6132
6133 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6134 and FRAME_TOOLBAR_LEFT_WIDTH.
6135
6136 * gtkutil.h (xg_change_toolbar_position): Declare.
6137
6138 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6139 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6140 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6141 (xg_create_frame_widgets): Create a hobox for placing widgets
6142 vertically. Use gtk_box_pack_start.
ef1b0ba7 6143 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
6144 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6145 (xg_update_frame_menubar, free_frame_menubar): Change to
6146 xg_height_or_width_changed.
6147 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6148 size correctly. Remove hardcoded 4, instead use handlebox size -
6149 toolbar size.
6150 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 6151 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
6152 (xg_pack_tool_bar): POS is a new parameter.
6153 Set orientation of tool bar based on pos.
6154 Only make handlebox_widget if NULL.
6155 Check if tool bar goes to vbox or hbox depending on pos.
6156 (xg_update_tool_bar_sizes): New function.
686b968e 6157 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
6158 height, call xg_update_tool_bar_sizes instead.
6159 (free_frame_tool_bar): Remove from hbox or vbox depending on
6160 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6161 (xg_change_toolbar_position): New function.
6162
6163 * frame.h (struct frame): Add tool_bar_position.
6164 (Qbottom): Declare.
6165
6166 * frame.c (Qtool_bar_position): New variable.
6167 (make_frame): Set tool_bar_position to Qtop.
6168 (frame_parms): Add tool-bar-position.
6169 (x_report_frame_params): Store tool_bar_position.
6170 (x_set_fringe_width): Reset wm size hint after fringe changes.
6171
26469a38
DN
61722010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6173
6174 Make lisp_time_argument declaration work on all systems.
6175 * lisp.h (lisp_time_argument): Move declaration ...
6176 * systime.h (lisp_time_argument): ... here
6177 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6178
8848b728
JD
61792010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6180
6181 * vm-limit.c (POINTER): Add typedef for it.
6182 (start_of_data): Change return type from POINTER to char *.
6183
6184 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6185 HAVE_WINDOW_SYSTEM.
6186
76fd1ee9
DN
61872010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6188
0441987e
DN
6189 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6190 Remove reference to __osf__, unused.
6191
56a000c7
DN
6192 * mem-limits.h: Remove duplicated includes.
6193 (NULL): Remove definition, unused.
6194 (POINTER): Remove definition.
6195 (start_of_data): Use char* in prototype, as the function
6196 definition does.
6197
e6cba650
DN
6198 Remove extern declarations from .c files, and them to .h files.
6199 * keyboard.h (Qhelp_echo, waiting_for_input)
6200 (input_available_clear_time, ignore_mouse_drag_p)
6201 (Vdouble_click_time, real_this_command, Vthis_original_command):
6202 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6203 (Voverriding_local_map_menu_flag):
6204 * lisp.h (Qinteractive_form, use_file_dialog)
6205 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6206 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6207 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6208 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6209 (Qfunction, debug_on_next_call, Qfield)
6210 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6211 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6212 (Qfile_directory_p, Qinsert_file_contents)
6213 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6214 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6215 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6216 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6217 (Qminibuffer_prompt)
6218 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6219 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6220 (gray_bitmap_bits, xic_create_fontsetname):
6221 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6222
6223 * xsmfns.c (Vuser_login_name):
6224 * xrdb.c (Vdouble_click_time):
6225 * xfaces.c (xic_create_fontsetname):
6226 * w32select.c (waiting_for_input):
6227 * print.c (minibuffer_auto_raise):
6228 * msdos.c (Qhelp_echo):
6229 * macros.c (real_this_command):
6230 * keymap.c (Voverriding_local_map):
6231 * xterm.c (poll_for_input_1, gray_bitmap_width)
6232 (gray_bitmap_height, gray_bitmap_bits;
6233 * xmenu.c ( Voverriding_local_map)
6234 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6235 (use_file_dialog, Xt_app_con):
6236 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6237 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6238 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6239 (Qtool_bar_lines, ignore_mouse_drag_p):
6240 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6241 (Qrear_nonsticky, nconc2):
6242 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6243 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6244 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6245 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6246 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6247 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6248 (gc_in_progress):
6249 * doc.c (Voverriding_local_map, Qremap):
6250 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6251 (Vcompletion_regexp_list):
6252 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6253 (Qcompletion_ignore_case):
6254 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6255 (Vhistory_length, Vthis_original_command, real_this_command)
6256 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6257 * image.c (Qrisky_local_variable):
6258 * fontset.c (QCname):
6259 * fns.c (minibuffer_auto_raise, QCname):
6260 * dispnew.c (char_ins_del_cost):
6261 * composite.c (font_fill_lglyph_metrics):
6262 * cmds.c (Qface, Vtranslation_table_for_input):
6263 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6264 * ccl.c (charset_unicode):
6265 * callproc.c (Vtemporary_file_directory):
6266 * buffer.c (emacs_strerror): Remove extern declarations.
6267
6268 * data.c (Qwindow): Make non-static, used from other files too.
6269 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6270
76fd1ee9
DN
6271 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6272 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6273 * s/usg5-4.h (COFF):
6274 * s/template.h:
6275 * s/msdos.h (COFF, NO_REMAP):
6276 * s/ms-w32.h (NO_REMAP):
6277 * s/hpux10-20.h (NO_REMAP):
6278 * m/sparc.h (SEGMENT_MASK):
6279 * m/m68k.h (NO_REMAP):
6280 * m/intel386.h (SEGMENT_MASK):
6281 * m/arm.h (NO_REMAP):
6282 * m/alpha.h (COFF):
6283 * m/template.h: Remove references to unused defines.
6284
8a52f00a
JD
62852010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6286
6287 * xsettings.c (Ftool_bar_get_system_style): Also check for
6288 Qtext_image_horiz.
6289
6290 * xdisp.c (Qtext_image_horiz): Define.
6291 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 6292 to documentation of tool-bar-style.
8a52f00a
JD
6293
6294 * lisp.h (Qtext_image_horiz): Declare.
6295
6296 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6297 style text_image_horiz.
6298
89dc303e
DN
62992010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6300
60799703
DN
6301 * emacs.c (Fkill_emacs): Remove return statement.
6302
37254dc1
DN
6303 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6304 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
6305 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6306 Remove local extern declarations.
37254dc1 6307
71c7345a
DN
6308 * xmenu.c: Do not included lwlib.h, not needed.
6309
6ba577cb
DN
6310 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6311
fdb183d6
DN
6312 * process.c: Move definitions earlier to minimize #ifdefs.
6313
6314 * xterm.h (x_get_customization_string, x_load_resources)
6315 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6316 (x_check_errors, x_property_data_to_lisp, defined_color)
6317 (xic_set_xfontset, x_defined_color): Use const.
6318
6319 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6320 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6321
6322 * xselect.c (selection_data_to_lisp_data)
6323 (x_property_data_to_lisp):
6324 * xrdb.c (x_get_string_resource, file_p)
6325 (x_get_customization_string, magic_file_p, search_magic_path)
6326 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6327 (x_get_string_resource): Use const.
6328
6329 * xfns.c: Include xlwmenu.h when USE_LUCID.
6330 (x_defined_color, xic_set_xfontset): Use const.
6331 (Fx_hide_tip): Remove local extern declaration.
6332
6333 * xfaces.c (Qmouse_face): Remove declaration.
6334 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 6335 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
6336
6337 * xdisp.c (do_mouse_tracking): Remove declaration.
6338 (add_to_log): Use const.
6339
6340 * minibuf.c (Qmouse_face): Remove declaration.
6341
6342 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6343
6344 * keyboard.h (do_mouse_tracking): Add declaration.
6345
6346 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6347 (QCdata, QCtype, Qcenter): Remove declarations.
6348
6349 * frame.c (x_get_resource_string, x_get_string_resource)
6350 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6351 (x_default_parameter): Use const.
6352
6353 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6354 (QCheight, QCsize, QCname): Remove declarations.
6355
6356 * emacs.c (main): Remove local extern declaration.
6357
6358 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6359 declarations.
6360
6361 * dispnew.c: Remove duplicate #include <unistd.h>.
6362 (update_window, update_frame_1, init_display): Remove local extern
6363 declarations.
6364
6365 * dispextern.h (add_to_log): Remove declaration.
6366 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6367 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6368
6369 * dired.c (scmp): Add const.
6370 (directory_files_internal): Remove local extern declaration.
6371
6372 * data.c (Finteractive_form): Use const.
6373
6374 * composite.c (syms_of_composite): Remove local extern declarations.
6375
6376 * charset.c (add_to_log): Remove declaration.
6377
6378 * character.c (strwidth, parse_str_to_multibyte): Add const.
6379
6380 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6381
6382 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6383
89dc303e 6384 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
6385 (Lisp_Subr): Make doc and intspec constant.
6386 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6387 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6388 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6389 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6390 (display_arg): Add declarations.
89dc303e 6391
0ed082fe 63922010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
6393
6394 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6395
0ed082fe
JB
6396 * window.c (Fwindow_height): Doc fix (bug#6518).
6397
63982010-07-27 Juanma Barranquero <lekktu@gmail.com>
6399
6400 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6401
ccaf0336
DN
64022010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6403
977105dc
DN
6404 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6405 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6406 functions.
6407
f5ada890
DN
6408 * frame.h (Qtty_color_mode): Add declaration.
6409
ccaf0336
DN
6410 * lisp.h (Ftop_level, Fexit_recursive_edit)
6411 (Fabort_recursive_edit): Mark as NO_RETURN.
6412
dfe3c90f
KH
64132010-07-26 Kenichi Handa <handa@m17n.org>
6414
6415 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 6416 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 6417
7d383292
JB
64182010-07-26 Juanma Barranquero <lekktu@gmail.com>
6419
6420 * lread.c (unreadpure, mapatoms_1): Make static.
6421
da31e629
JB
64222010-07-25 Juanma Barranquero <lekktu@gmail.com>
6423
6424 * terminfo.c (tparam): Fix prototype of tparm.
6425
7bfa6d77
AS
64262010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6427
dcc19aac
AS
6428 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6429 find start of text segment.
6430 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6431 is defined.
6432
7bfa6d77
AS
6433 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6434
63f9a672
KB
64352010-07-25 Ken Brown <kbrown@cornell.edu>
6436
6437 * vm-limit.c (check_memory_limits): Fix previous change;
6438 accidentally reverted an earlier change.
6439
24933075
KB
64402010-07-25 Ken Brown <kbrown@cornell.edu>
6441
6442 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6443 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6444
361358ea
JB
64452010-07-25 Juanma Barranquero <lekktu@gmail.com>
6446
6447 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6448 * dired.c (opendir, readdir): Fix prototypes.
6449 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6450 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6451 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6452 (telldir): Remove declaration.
6453 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6454 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6455 * syssignal.h (strsignal): Fix prototype.
6456 * term.c (tparam): Fix prototype.
6457 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6458 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6459 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6460 and __morecore.
6461 * w32gui.h (XParseGeometry): Fix prototype.
6462 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6463 * w32term.c (my_set_focus): Declare inside #if 0.
6464 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6465 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6466 (drain_message_queue, get_next_msg, post_msg, parse_button)
6467 (ClipboardSequence_Proc): Fix prototypes.
6468 (wait_for_sync): Remove declaration.
6469
630b9592
JB
64702010-07-24 Juanma Barranquero <lekktu@gmail.com>
6471
6472 * w32fns.c (w32_to_x_color): Remove, unused.
6473
6a0d6611
AS
64742010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6475
6476 * lisp.h: Remove leftover P_.
6477
4e8608ff
DN
64782010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6479
6480 * ecrt0.c, unexalpha.c: Remove files, unused.
6481
c8197983
AS
64822010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6483
6484 * cmds.c (internal_self_insert): Make static.
6485 * lisp.h (internal_self_insert): Remove declaration.
6486
97b372d7
JB
64872010-07-23 Juanma Barranquero <lekktu@gmail.com>
6488
33ac0414
JB
6489 * alloc.c (free_float):
6490 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6491 * frame.c (delete_frame_handler):
6492 * ralloc.c (reorder_bloc):
6493 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6494 Remove unused static functions.
6495
94da8397
JB
6496 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6497 it is called only from NS code.
6498
2e6c8532
JB
6499 * w32term.c (my_set_focus): #ifdef away; it is called only from
6500 "#ifdef 0" code.
6501
97b372d7
JB
6502 * w32fns.c (x_edge_detection):
6503 * xfaces.c (may_use_scalable_font_p):
6504 Remove obsolete static declarations.
6505
7c3320d8
JB
65062010-07-20 Juanma Barranquero <lekktu@gmail.com>
6507
6508 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6509 (emacs_blocked_realloc, uninterrupt_malloc):
6510 * fringe.c (w32_reset_fringes):
6511 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6512 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6513 * sound.c (be2hs, do_play_sound):
6514 * vm-limit.c (get_lim_data, ret_lim_data):
6515 * w32term.c (x_free_frame_resources):
6516 * xfaces.c (x_create_gc, x_free_gc):
6517 Convert definitions to standard C.
6518
d5273788
SM
65192010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6520
6521 * eval.c (Feval, Ffuncall): Use the new names.
6522
6523 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6524 (DEFUN): Add braces around the union initialisation and use ## to
6525 specify the right union alternative and avoid a cast.
6526
8d16a259
JB
65272010-07-18 Juanma Barranquero <lekktu@gmail.com>
6528
6529 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6530
3b8eff32
CY
65312010-07-17 Chong Yidong <cyd@stupidchicken.com>
6532
6533 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6534
499322ce
J
65352010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6536
6537 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6538 is related to the menu bar (Bug#6499).
a628ad9d 6539 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 6540
f6003da5 65412010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
6542
6543 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6544
6545 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6546
6547 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6548 i.e. don't put back ButtonRelease (Bug#6608).
6549
6550 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6551 instead of Window. Call xg_event_is_for_menubar when
6552 USE_GTK (Bug#6499).
6553
6554 * gtkutil.h (xg_event_is_for_menubar): Declare.
6555
6556 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6557
f6003da5 65582010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
6559
6560 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6561 when it's the same as the old foreground. (Bug#6609)
6562
23243f29
J
65632010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6564
6565 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6566 widget is non-null (Bug#6645).
6567
2b23d2a6
AS
65682010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6569
01b564ff
AS
6570 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6571 Convert old-style definition.
6572
2b23d2a6
AS
6573 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6574 timestamp argument.
6575
c4affd2c
EZ
65762010-07-15 Eli Zaretskii <eliz@gnu.org>
6577
6578 * fringe.c (update_window_fringes): Restore mistakenly reverted
6579 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6580
cf28cebc
J
65812010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6582
6583 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6584 (SET_SAVED_KEY_EVENT): Remove (not used).
6585 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6586 remove size parameter.
6587 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6588 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6589 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6590 ButtonRelease.
6b2c4bd9
J
6591 (x_set_window_size_1): scroll_bar_actual_width is always
6592 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
6593
6594 * xdisp.c (pending_menu_activation): Remove extern declaration.
6595 (prepare_menu_bars): Remove setting of pending_menu_activation.
6596
6597 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
6598 (x_activate_menubar): Set popup_activated_flag for Xt also.
6599 Remove setting of pending_menu_activation.
cf28cebc
J
6600 (set_frame_menubar): Remove check of pending_menu_activation.
6601 Declare menubar_size before code. Correct spelling in comment.
6602
f6c1c771
KH
66032010-07-14 Kenichi Handa <handa@m17n.org>
6604
6605 * font.c (font_open_entity): Cancel previous change.
6606 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
6607
20477505
EZ
66082010-07-13 Eli Zaretskii <eliz@gnu.org>
6609
77defa9a
EZ
6610 Remove subprocesses #ifdefs.
6611 * process.c <inhibit_sentinels>: Move to the common part.
6612 (Fwaiting_for_user_input_p): Move to the common part; return nil
6613 if async subprocesses aren't supported.
6614 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
6615 MS-DOS. Remove "#ifdef subprocesses".
6616 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
6617 (gettimeofday): Remove "#ifdef subprocesses".
6618 (wait_without_blocking): Remove function.
6619 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
6620 Remove "#ifdef subprocesses".
6621 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
6622 compiled on MS-DOS.
6623 * callproc.c (Fcall_process) [!MSDOS]: Don't call
6624 wait_for_termination on MS-DOS.
6625 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
6626 initialization of inhibit_sentinels.
6627 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
6628 subprocesses" conditional.
6629 * callproc.c (Fcall_process) [!subprocesses]: Don't call
6630 wait_for_termination, since `buffer' cannot be an integer when
6631 async subprocesses are not supported
6632 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
6633 for ifdefing away the call to Fprocess_status.
6634
20477505
EZ
6635 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
6636 away the entire body of the function.
6637
b3ffc17c
DN
66382010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6639
01faa934
DN
6640 Remove subprocesses #ifdefs from term.c.
6641 * process.c (add_keyboard_wait_descriptor)
6642 (delete_keyboard_wait_descriptor): Move to common section, do
6643 nothing when subprocesses is not defined.
a628ad9d
JB
6644 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
6645 Remove subprocesses #ifdefs.
01faa934 6646
b3ffc17c
DN
6647 Convert maybe_fatal to standard C.
6648 * lisp.h (verror): Declare.
6649 * eval.c (verror): New function containing the code from ...
6650 (error): ... this. Call verror.
6651 * term.c (vfatal): New function containing the code from ...
6652 (fatal): ... this. Call vfatal.
6653 (maybe_fatal): Convert to standard C, use variable number of
6654 arguments. Declare as non-return.
6655 (init_tty): Fix maybe_fatal call.
6656
0521f580
DN
66572010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6658
6659 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
6660 (_scroll_bar_note_movement): Convert definitions to standard C.
6661 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
6662 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
6663
ebd15611
DN
66642010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6665
6666 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
6667 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
6668 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
6669 (xaw_jump_callback, xaw_scroll_callback)
6670 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
6671 (x_wm_set_size_hint, x_activate_timeout_atimer):
6672 Convert definitions to standard C.
ebd15611
DN
6673 * xmenu.c (menubar_id_to_frame, popup_get_selection)
6674 (popup_activate_callback, popup_deactivate_callback)
6675 (menu_highlight_callback, menubar_selection_callback)
6676 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
6677 (free_frame_menubar, popup_selection_callback, as)
6678 (create_and_show_popup_menu, dialog_selection_callback)
6679 (create_and_show_dialog):
6680 * xfns.c (hack_wm_protocols, x_window):
6681 * xfaces.c (x_update_menu_appearance):
6682 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
6683 (char_to_pixel_size, round_size_to_char, get_wm_shell)
6684 (set_frame_size, update_wm_hints, setup_frame_gcs)
6685 (update_various_frame_slots, update_from_various_frame_slots)
6686 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
6687 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
6688 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
6689
de06a2dd
AS
66902010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6691
a628ad9d 6692 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 6693
fc549af9
EZ
66942010-07-12 Eli Zaretskii <eliz@gnu.org>
6695
6696 * process.c (setup_process_coding_systems): Move to the part
6697 shared by non-subprocesses systems, and make its body empty when
6698 subprocesses is not defined.
6699 (close_process_descs): Move to the part shared by non-subprocesses
6700 systems.
1408902e
EZ
6701 (wait_reading_process_output) [!subprocesses]: Convert arg list to
6702 ANSI C.
fc549af9 6703
d5a3eaaf
AS
67042010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6705
6706 * editfns.c (transpose_markers): Convert old-style definition.
6707 * emacs.c (abort, shut_down_emacs, fixup_locale)
6708 (synchronize_system_time_locale)
6709 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
6710 * floatfns.c (extract_float, matherr, init_floatfns)
6711 (syms_of_floatfns): Likewise.
6712 * fns.c (make_hash_table): Likewise.
6713 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
6714 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
6715 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
6716 (ftfont_variation_glyphs): Likewise.
6717 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
6718 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
6719 * lread.c (read_filtered_event): Likewise.
6720 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
6721 * process.c (wait_reading_process_output): Likewise.
6722 * scroll.c (do_line_insertion_deletion_costs): Likewise.
6723 * search.c (search_buffer, boyer_moore): Likewise.
6724 * syntax.c (scan_sexps_forward): Likewise.
6725 * xdisp.c (try_scrolling): Likewise.
6726 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6727 (face_at_string_position): Likewise.
6728 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
6729 * xselect.c (x_get_window_property, receive_incremental_selection)
6730 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
6731 Likewise.
6732 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
6733
6f704c76
DN
67342010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6735
ded80a25
DN
6736 * callproc.c (child_setup): Remove subprocesses conditional.
6737 Remove code dealing with SET_EMACS_PRIORITY, unused.
6738
49d937f4 6739 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
6740 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
6741
6742 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
6743 (__do_global_dtors, __main): Use void in definition.
6744 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
6745 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
6746 the only users from ...
6747 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
6748 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
6749 (HAVE_VOLATILE): Remove, unused.
6750
6f704c76
DN
6751 Convert more function definitions to standard C.
6752 * xdisp.c (window_box_edges, handle_single_display_spec)
6753 (display_string): Convert definition to standard C.
6754 * scroll.c (do_direct_scrolling, scrolling_1):
6755 * dispnew.c (allocate_matrices_for_frame_redisplay)
6756 (mirrored_line_dance):
6757 * coding.c (code_convert_string):
6758 * charset.c (map_charset_chars):
6759 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
6760 (Fregister_ccl_program, Fregister_code_conversion_map):
6761 * keyboard.c (kbd_buffer_nr_stored): Likewise.
6762 (head_table): Make static and const.
6763
e6cfa7c3
AS
67642010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6765
6766 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
6767 (PROFILING_LDFLAGS): Set from substitution.
6768 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
6769 CFLAGS last.
6770
892dd565
KH
67712010-07-12 Kenichi Handa <handa@m17n.org>
6772
6f2cdcd1
KH
6773 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
6774 (shortlisp): Likewise.
6775
892dd565
KH
6776 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
6777
6778 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
6779 of FONT_ENTITY_INDEX.
6780 (Ffont_get): If KEY is :otf and the font-object doesn't have the
6781 property, get the property value dynamically.
6782 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 6783 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 6784 return value changed.
bba3e508 6785 (syms_of_font): Adjust for the above change.
892dd565 6786
ae96d47a
AS
67872010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6788
c8fc18ee
AS
6789 * blockinput.h: Remove obsolete comment.
6790
89887d67
AS
6791 * lisp.h: Include <stddef.h>.
6792 (OFFSETOF): Don't define.
6793 (VECSIZE): Use offsetof instead of OFFSETOF.
6794 (PSEUDOVECSIZE): Likewise.
6795 * process.c (conv_sockaddr_to_lisp): Likewise.
6796 * alloc.c: Don't include <stddef.h>.
6797 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6798
ae96d47a
AS
6799 * process.c: Remove obsolete comment.
6800
635c0aa1
CY
68012010-07-11 Chong Yidong <cyd@stupidchicken.com>
6802
6803 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6804
a64df650
AS
68052010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6806
8966b757
AS
6807 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6808 index, rindex.
6809 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6810 * editfns.c (Fuser_full_name, Fformat): Likewise.
6811 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6812 * fileio.c (Ffile_symlink_p): Likewise.
6813 * filelock.c (current_lock_owner): Likewise.
6814 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6815 * fontset.c (fontset_pattern_regexp): Likewise.
6816 * lread.c (read1): Likewise.
6817 * sysdep.c (init_system_name): Likewise.
6818 * xfns.c (select_visual): Likewise.
6819 * s/hpux10-20.h (index, rindex): Don't define.
6820 * s/ms-w32.h (index): Likewise.
6821 * s/usg5-4.h: Likewise.
6822
cf237e27
AS
6823 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6824
a8fe7202
AS
6825 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
6826 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
6827 (egetenv): Likewise.
6828 * doprnt.c (doprnt): Likewise.
6829 * editfns.c (set_time_zone_rule, format2): Likewise.
6830 * emacs.c (decode_env_path): Likewise.
6831 * eval.c (signal_error, error): Likewise.
6832 * insdel.c (replace_range_2): Likewise.
6833 * keyboard.c (cmd_error_internal): Likewise.
6834 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
6835 * print.c (write_string, write_string_1, print_error_message):
6836 Likewise.
6837 * vm-limit.c (warn_function, memory_warnings): Likewise.
6838 * xdisp.c (message1, message1_nolog, message_with_string)
6839 (vmessage, message, message_nolog): Likewise.
6840 * emacs.c: Remove duplicate declaration.
6841 * keyboard.h: Likewise.
6842 * lisp.h: Update prototypes.
6843
bb8e180f
AS
6844 * eval.c: Fix indentation problem.
6845
01c35094 6846 * keyboard.c: Include "process.h".
83380e65 6847
a64df650
AS
6848 * eval.c: Remove obsolete noinline declaration.
6849 * fns.c: Likewise.
6850
6a8033e1
KR
68512010-07-11 Ken Raeburn <raeburn@raeburn.org>
6852
6853 * doprnt.c (doprnt): Take a va_list argument instead of count and
6854 pointer.
6855 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 6856 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
6857 changed to take a va_list argument.
6858 (message): New variadic wrapper.
6859 (message_nolog): Now a variadic function, calling vmessage.
6860 * lisp.h: Include stdarg.h for va_list.
6861 (doprnt, error, message, message_nolog): Decls updated.
6862
462aa963
EZ
68632010-07-11 Eli Zaretskii <eliz@gnu.org>
6864
6865 * process.c (syms_of_process) <delete-exited-processes>: Define
6866 even if !subprocesses.
6867 (delete_exited_processes): Ditto.
6868
6869 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
6870 (delete_exited_processes): Don't define.
6871
48104462
CY
68722010-07-10 Chong Yidong <cyd@stupidchicken.com>
6873
6874 * frame.c (make_frame): Initialize menu_bar_lines and
6875 tool_bar_lines members.
bba3e508
SM
6876 (make_initial_frame, make_terminal_frame):
6877 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
6878
6879 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
6880
f388c88a
EZ
68812010-07-10 Eli Zaretskii <eliz@gnu.org>
6882
6883 * process.c: Reshuffle #include's. Condition some of the global
6884 and static variables on `subprocesses'.
6885 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6886 Leave only one implementation.
6887 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
6888 (kill_buffer_processes, Flist_system_processes)
6889 (Fprocess_attributes, init_process, syms_of_process): Unify the
6890 implementations for with subprocesses and without them.
6891
723f5a07
J
68922010-07-09 Jan Djärv <jan.h.d@swipnet.se>
6893
6894 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
6895 correct size for Motif.
6896 (free_frame_menubar): Call x_set_window_size to update frame size.
6897
6898 * xfns.c (x_window): Set borderWidth to 0 for pane and
6899 EmacsFrame. Frame size calculation is wrong otherwise.
6900
2536a4b7
MA
69012010-07-09 Michael Albinus <michael.albinus@gmx.de>
6902
6903 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
6904 allows to suppress errors when polling in Emacs' main loop.
6905 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
6906 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
6907 (Fdbus_method_error_internal, Fdbus_send_signal)
6908 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
6909 (Fdbus_register_method): Use it. (Bug#6579)
6910
5842a27b
DN
69112010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6912
6913 * alloc.c: Convert DEFUNs to standard C.
6914 * buffer.c:
6915 * bytecode.c:
6916 * callint.c:
6917 * callproc.c:
6918 * casefiddle.c:
6919 * casetab.c:
6920 * category.c:
6921 * character.c:
6922 * charset.c:
6923 * chartab.c:
6924 * cmds.c:
6925 * coding.c:
6926 * composite.c:
6927 * data.c:
6928 * dbusbind.c:
6929 * dired.c:
6930 * dispnew.c:
6931 * doc.c:
6932 * dosfns.c:
6933 * editfns.c:
6934 * emacs.c:
6935 * eval.c:
6936 * fileio.c:
6937 * filelock.c:
6938 * floatfns.c:
6939 * fns.c:
6940 * font.c:
6941 * fontset.c:
6942 * frame.c:
6943 * fringe.c:
6944 * image.c:
6945 * indent.c:
6946 * insdel.c:
6947 * keyboard.c:
6948 * keymap.c:
6949 * lread.c:
6950 * macros.c:
6951 * marker.c:
6952 * menu.c:
6953 * minibuf.c:
6954 * msdos.c:
6955 * nsfns.m:
6956 * nsmenu.m:
6957 * nsselect.m:
6958 * print.c:
6959 * process.c:
6960 * search.c:
6961 * sound.c:
6962 * syntax.c:
6963 * term.c:
6964 * terminal.c:
6965 * textprop.c:
6966 * undo.c:
6967 * w16select.c:
6968 * w32console.c:
6969 * w32fns.c:
6970 * w32font.c:
6971 * w32menu.c:
6972 * w32proc.c:
6973 * w32select.c:
6974 * window.c:
6975 * xdisp.c:
6976 * xfaces.c:
6977 * xfns.c:
6978 * xmenu.c:
6979 * xselect.c:
6980 * xsettings.c:
6981 * xsmfns.c: Likewise.
6982
d568829b
EZ
69832010-07-08 Eli Zaretskii <eliz@gnu.org>
6984
6985 * process.c (kbd_is_on_hold, hold_keyboard_input)
6986 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6987
52214050
J
69882010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6989
6990 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6991 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6992 unless USE_LUCID.
6993
313d9eb2
DN
69942010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6995
a628ad9d
JB
6996 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6997 declaration.
d8825aa3 6998
295d0d8f
DN
6999 Clean up include guards.
7000 * tparam.c: Remove include guards for config.h, string.h and code
7001 that assumes #ifndef emacs.
7002 * termcap.c:
7003 * unexalpha.c:
7004 * sysdep.c:
7005 * filemode.c:
7006 * filelock.c:
7007 * bidi.c: Likewise.
7008
49d9e6b0
DN
7009 Remove prefix-args.c
7010 * prefix-args.c: Remove file.
7011 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7012 * Makefile.in (temacs${EXEEXT}): Remove references to
7013 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7014 (mostlyclean): Remove reference to prefix-args.
7015 (prefix-args): Remove.
7016
313d9eb2
DN
7017 Simplify cstart_of_data, start_of_code and related code.
7018 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7019 (start_of_data): Merge into start_of_data function.
7020 * sysdep.c (start_of_text): Remove. Move simplified versions of
7021 it in the only users: unexaix.c and unexec.c.
7022 (read_input_waiting): Remove local declaration of quit_char.
7023 (start, etext): Remove declarations.
7024 (start_of_data): Merge with the version in mem-limits.h and move
7025 to vm-limits.c.
7026 * vm-limit.c (start_of_data): Merged and simplified version of the
7027 code formerly in mem-limits.h and sysdep.c.
7028 * unexec.c (start): New declaration, moved from sysdep.c.
7029 (start_of_text): Simplified version of the code formerly in sysdep.c.
7030 * unexaix.c (start_of_text): Simplified version of the code
7031 formerly in sysdep.c.
7032 * m/alpha.h (HAVE_TEXT_START): Remove.
7033 (TEXT_START): Move ...
7034 * unexalpha.c (TEXT_START): ... here.
7035 * s/hpux10-20.h (TEXT_START): Remove.
7036 * s/darwin.h (TEXT_START):
7037 * m/mips.h (TEXT_START):
7038 * m/macppc.h (HAVE_TEXT_START):
7039 * m/m68k.h (TEXT_START):
7040 * m/iris4d.h (TEXT_START):
7041 * m/intel386.h (TEXT_START):
7042 * m/ibmrs6000.h (TEXT_START):
7043 * m/ia64.h (HAVE_TEXT_START):
7044 * s/msdos.h (TEXT_START): Likewise.
7045
72af86bd
AS
70462010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7047
7048 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7049 (overrun_check_free, xstrdup, allocate_string)
7050 (allocate_string_data, compact_small_strings, Fmake_string)
7051 (make_unibyte_string, make_multibyte_string)
7052 (make_string_from_bytes, make_specified_string, make_float)
7053 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7054 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7055 memcpy, memmove, memset, memcmp.
7056 * atimer.c (start_atimer, set_alarm): Likewise.
7057 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7058 (mmap_realloc, init_buffer_once): Likewise.
7059 * callint.c (Fcall_interactively): Likewise.
7060 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7061 (getenv_internal_1): Likewise.
7062 * casefiddle.c (casify_object): Likewise.
7063 * ccl.c (ccl_driver): Likewise.
7064 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7065 * charset.c (load_charset_map_from_file)
7066 (load_charset_map_from_file, load_charset_map_from_vector)
7067 (Fdefine_charset_internal): Likewise.
7068 * cm.c (Wcm_clear): Likewise.
7069 * coding.c (decode_eol, decode_coding_object)
7070 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7071 * data.c (Faset): Likewise.
7072 * dired.c (directory_files_internal, file_name_completion_stat):
7073 Likewise.
7074 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7075 (clear_glyph_row, copy_row_except_pointers)
7076 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7077 (save_current_matrix, restore_current_matrix)
7078 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7079 (mirror_line_dance, scrolling_window): Likewise.
7080 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7081 Likewise.
7082 * doprnt.c (doprnt): Likewise.
7083 * editfns.c (Fuser_full_name, make_buffer_string_both)
7084 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7085 * emacs.c (sort_args): Likewise.
7086 * eval.c (Fapply, Ffuncall): Likewise.
7087 * fileio.c (Ffile_name_directory, make_temp_name)
7088 (Fexpand_file_name, search_embedded_absfilename)
7089 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7090 (auto_save_error): Likewise.
7091 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7092 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7093 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7094 (Fmake_hash_table): Likewise.
7095 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7096 * ftfont.c (ftfont_text_extents): Likewise.
7097 * getloadavg.c (getloadavg): Likewise.
7098 * image.c (define_image_type, make_image, make_image_cache)
7099 (x_create_x_image_and_pixmap, xbm_image_p)
7100 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7101 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7102 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7103 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7104 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7105 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7106 Likewise.
7107 * indent.c (scan_for_column, compute_motion): Likewise.
7108 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7109 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7110 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7111 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7112 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7113 (store_user_signal_events, menu_bar_items, tool_bar_items)
7114 (process_tool_bar_item, append_tool_bar_item)
7115 (read_char_minibuf_menu_prompt, read_key_sequence)
7116 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7117 Likewise.
7118 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7119 Likewise.
7120 * lisp.h (STRING_COPYIN): Likewise.
7121 * lread.c (Fload, read1, oblookup): Likewise.
7122 * msdos.c (Frecent_doskeys): Likewise.
7123 * nsfns.m (Fx_create_frame): Likewise.
7124 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7125 Likewise.
7126 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7127 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7128 Likewise.
7129 * nsmenu.m (ns_update_menubar): Likewise.
7130 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7131 * print.c (print_unwind, printchar, strout, print_string)
7132 (print_error_message): Likewise.
7133 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7134 (Fmake_network_process, Fnetwork_interface_list)
7135 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7136 (init_process): Likewise.
7137 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7138 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7139 Likewise.
7140 * scroll.c (do_scrolling, do_direct_scrolling)
7141 (scrolling_max_lines_saved): Likewise.
7142 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7143 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7144 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7145 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7146 (emacs_set_tty): Likewise.
7147 * term.c (encode_terminal_code, calculate_costs)
7148 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7149 Likewise.
7150 * termcap.c (tgetst1, gobble_line): Likewise.
7151 * termhooks.h (EVENT_INIT): Likewise.
7152 * tparam.c (tparam1): Likewise.
7153 * unexalpha.c (unexec): Likewise.
7154 * unexec.c (write_segment): Likewise.
7155 * unexmacosx.c (unexec_write_zero): Likewise.
7156 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7157 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7158 * w32font.c (w32font_list_family, w32font_text_extents)
7159 (w32font_list_internal, w32font_match_internal)
7160 (w32font_open_internal, compute_metrics, Fx_select_font):
7161 Likewise.
7162 * w32menu.c (set_frame_menubar, add_menu_item)
7163 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7164 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7165 * w32uniscribe.c (uniscribe_list_family): Likewise.
7166 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7167 * window.c (make_window, replace_window, set_window_buffer)
7168 (Fsplit_window): Likewise.
7169 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7170 (add_to_log, message3, x_consider_frame_title)
7171 (append_space_for_newline, extend_face_to_end_of_line)
7172 (decode_mode_spec_coding, init_glyph_string): Likewise.
7173 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7174 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7175 (face_attr_equal_p, make_realized_face, make_face_cache)
7176 (free_realized_faces, lookup_named_face, smaller_face)
7177 (face_with_height, lookup_derived_face)
7178 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7179 (Finternal_set_font_selection_order, realize_default_face)
7180 (compute_char_face, face_at_buffer_position)
7181 (face_for_overlay_string, face_at_string_position, merge_faces):
7182 Likewise.
7183 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7184 (Fx_window_property, x_create_tip_frame)
7185 (Fx_backspace_delete_keys_p): Likewise.
7186 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7187 (xfont_text_extents): Likewise.
7188 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7189 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7190 * xselect.c (x_queue_event, x_get_window_property)
7191 (receive_incremental_selection): Likewise.
7192 * xsmfns.c (x_session_check_input): Likewise.
7193 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7194 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7195 Likewise.
7196 * character.h (BCOPY_SHORT): Removed.
7197 * config.in: Regenerate.
7198 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7199 * emacs.c (main) [PROFILING]: Don't declare
7200 dump_opcode_frequencies.
7201 * lisp.h (safe_bcopy): Remove declaration.
7202 (memset) [!HAVE_MEMSET]: Declare.
7203 (memcpy) [!HAVE_MEMCPY]: Likewise.
7204 (memmove) [!HAVE_MEMMOVE]: Likewise.
7205 (memcmp) [!HAVE_MEMCMP]: Likewise.
7206 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7207 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7208 Don't define.
7209 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7210 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7211 (BCOPY_DOWNWARD_SAFE): Don't define.
7212 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7213 (memcpy) [!HAVE_MEMCPY]: Define.
7214 (memmove) [!HAVE_MEMMOVE]: Define.
7215 (memcmp) [!HAVE_MEMCMP]: Define.
7216
cb768704
J
72172010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7218
7219 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
7220 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7221 New functions.
cb768704
J
7222 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7223 select on empty input mask.
7224 (init_process): Initialize kbd_is_on_hold to 0.
7225
7226 * process.h (hold_keyboard_input, unhold_keyboard_input)
7227 (kbd_on_hold_p): Declare.
7228
7229 * keyboard.c (input_available_signal): Declare.
7230 (kbd_buffer_nr_stored): New function.
7231 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7232 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7233 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7234 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7235 (tty_read_avail_input): If input is on hold, return.
7236 Don't read more that free slots in kbd_buffer (Bug#6571).
7237
3a8ce822
EZ
72382010-07-07 Eli Zaretskii <eliz@gnu.org>
7239
7240 * msdos.h:
7241 * msdos.c:
7242 * dosfns.c:
7243 * w16select.c: Convert function definitions to ANSI C.
7244
a628ad9d
JB
7245 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7246 Remove unused prototypes.
3a8ce822 7247
cf84bb53
JB
72482010-07-07 Juanma Barranquero <lekktu@gmail.com>
7249
7250 * coding.c, sysdep.c: Convert some more functions to standard C.
7251
1a4990fb
JB
72522010-07-07 Juanma Barranquero <lekktu@gmail.com>
7253
7254 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7255 (encode_coding_object): Use SPECPDL_INDEX.
7256 (syms_of_coding): Use DOS_NT.
7257
c0f2f16b
DN
72582010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7259
48fb6855
DN
7260 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7261
c0f2f16b
DN
7262 Make the function member of Lisp_Subr use standard C prototypes.
7263 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7264 (DECL_ALIGN): Add a cast for the function.
7265 * eval.c (Feval, Ffuncall): Use the proper type for each type
7266 function call.
7267
67aecef9
CY
72682010-07-06 Chong Yidong <cyd@stupidchicken.com>
7269
7270 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7271 fringe face id, so face-remapping-alist works (Bug#6091).
7272
b56ceb92
JB
72732010-07-06 Juanma Barranquero <lekktu@gmail.com>
7274
7275 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7276 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7277 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7278
7af07b96
AS
72792010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7280
7281 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7282 * lisp.h: Declare x_get_keysym_name.
7283 * keyboard.c (modify_event_symbol): Don't declare
7284 x_get_keysym_name here.
7285
69e24e34
DN
72862010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7287
7288 * ecrt0.c: Revert conversion to standard C.
7289
d3da34e0 72902010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
7291
7292 * vm-limit.c (memory_warnings):
7293 * keyboard.c (modify_event_symbol):
7294 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7295 (round2, emacs_rint):
7296 * process.c (send_process, old_sigpipe): Convert function
7297 definitions and declarations to standard C.
7298
72992010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
7300
7301 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7302 * xdisp.c: Convert function definitions to standard C.
7303
7304 * cm.c (cmputc): Arg C is now int, not char.
7305 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7306
00be444c
J
73072010-07-05 James Cloos <cloos@jhcloos.com>
7308
7309 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7310
7311 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7312 _NET_WM_ICON_NAME atoms.
7313
7314 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7315 and _NET_WM_ICON_NAME properties, too, matching what is
7316 done in the Gtk+ case.
7317
e4c8d29a
J
73182010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7319
ff919460
J
7320 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7321
e4c8d29a
J
7322 * xsmfns.c (SSDATA): New macro.
7323 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7324 passed to strlen/strcpy/strcat.
bba3e508
SM
7325 (create_client_leader_window): Surround with #ifndef USE_GTK.
7326 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
7327
7328 * xsettings.c (something_changedCB, parse_settings)
7329 (apply_xft_settings): Reformat prototype.
7330 (something_changedCB, init_gconf): Remove unused variable i.
7331 (read_settings): Remove unused variable long_len.
7332
7333 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7334 (xg_get_image_for_pixmap, create_dialog)
7335 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7336 (menuitem_highlight_callback, make_menu_item)
7337 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7338 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7339 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7340 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7341 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7342 (xg_tool_bar_item_expose_callback): Reformat prototype.
7343 (xg_update_menubar): GList *group => GSList *group.
7344 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7345 before use.
7346 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7347 to GTK_IMAGE (wimage).
7348
dd4c5104
DN
73492010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7350
898b4c5c
DN
7351 * atimer.c: Use "" instead of <> for local includes for
7352 consistency with the rest of the code.
7353
dd4c5104
DN
7354 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7355 * xrdb.c (get_system_name):
7356 * window.c (shrink_windows):
7357 * syntax.c (forw_comment):
7358 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7359 (ins_del_costs):
7360 * mem-limits.h (start_of_data):
7361 * lread.c (readevalloop):
7362 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7363 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7364 * frame.c (x_get_focus_frame):
7365 * floatfns.c (fmod_float):
7366 * fileio.c (choose_write_coding_system):
7367 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7368 (malloc_initialize_hook, sort_args, synchronize_locale):
7369 * doprnt.c (doprnt):
7370 * dired.c (compile_pattern):
7371 * data.c (fmod_float):
7372 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7373 (map_char_table_for_charset):
7374 * charset.c (define_charset_internal):
7375 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7376 to standard C.
7377
9a39b306 73782010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 7379 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
7380
7381 * lread.c (read1): Fix up last change to not mess up `c'.
7382
e6cb2cbb
JB
73832010-07-04 Juanma Barranquero <lekktu@gmail.com>
7384
7385 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7386
438105ed
JB
73872010-07-04 Juanma Barranquero <lekktu@gmail.com>
7388
7389 Fix prototypes.
7390
e5447b22 7391 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 7392 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
7393 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7394 arg, as required by internal_condition_case_1.
dcc7404b 7395 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
7396 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7397 (analyse_first): Fix "const const".
e5447b22 7398 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 7399 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 7400 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 7401
971de7fb
DN
74022010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7403
7404 * alloc.c: Convert function definitions to standard C.
7405 * atimer.c:
7406 * bidi.c:
7407 * bytecode.c:
7408 * callint.c:
7409 * callproc.c:
7410 * casefiddle.c:
7411 * casetab.c:
7412 * category.c:
7413 * ccl.c:
7414 * character.c:
7415 * charset.c:
7416 * chartab.c:
7417 * cmds.c:
7418 * coding.c:
7419 * composite.c:
7420 * data.c:
7421 * dbusbind.c:
7422 * dired.c:
7423 * dispnew.c:
7424 * doc.c:
7425 * doprnt.c:
7426 * ecrt0.c:
7427 * editfns.c:
7428 * fileio.c:
7429 * filelock.c:
7430 * filemode.c:
7431 * fns.c:
7432 * font.c:
7433 * fontset.c:
7434 * frame.c:
7435 * fringe.c:
7436 * ftfont.c:
7437 * ftxfont.c:
7438 * gtkutil.c:
7439 * indent.c:
7440 * insdel.c:
7441 * intervals.c:
7442 * keymap.c:
7443 * lread.c:
7444 * macros.c:
7445 * marker.c:
7446 * md5.c:
7447 * menu.c:
7448 * minibuf.c:
7449 * prefix-args.c:
7450 * print.c:
7451 * ralloc.c:
7452 * regex.c:
7453 * region-cache.c:
7454 * scroll.c:
7455 * search.c:
7456 * sound.c:
7457 * strftime.c:
7458 * syntax.c:
7459 * sysdep.c:
7460 * termcap.c:
7461 * terminal.c:
7462 * terminfo.c:
7463 * textprop.c:
7464 * tparam.c:
7465 * undo.c:
7466 * unexelf.c:
7467 * window.c:
7468 * xfaces.c:
7469 * xfns.c:
7470 * xfont.c:
7471 * xftfont.c:
7472 * xgselect.c:
7473 * xmenu.c:
7474 * xrdb.c:
7475 * xselect.c:
7476 * xsettings.c:
7477 * xsmfns.c:
7478 * xterm.c: Likewise.
7479
ae492bec
EZ
74802010-07-03 Eli Zaretskii <eliz@gnu.org>
7481
76ea4cc9
EZ
7482 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7483 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
7484 `reverse' is specified in the frame parameters.
7485 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
7486 internal-set-lisp-face-attribute. Initialize screen colors from
7487 initial_screen_colors[] when f->default_face_done_p is zero,
7488 instead of depending on being called with default-frame-alist as
7489 the alist argument.
7490
7491 * xfaces.c (update_face_from_frame_parameter): Move out of
7492 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7493 with HAVE_WINDOW_SYSTEM.
7494
1e6255ae
EZ
7495 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7496 to menu-bar-mode, if not set in the frame parameters or in
7497 default-frame-alist.
7498
ae492bec
EZ
7499 * w32console.c (sys_tputs): Adjust argument list to prototype in
7500 term.c.
7501
3a35a84c
JB
75022010-07-03 Juanma Barranquero <lekktu@gmail.com>
7503
7504 * lisp.h (memory_warnings): Fix prototype.
7505
7506 * cm.h (evalcost): Fix prototype.
7507
7508 * cm.c (evalcost): Fix arg type.
7509
c532d349
DN
75102010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7511
7512 * term.c (term_clear_mouse_face, Fidentity):
7513 * syssignal.h (signal_handler_t):
7514 * lisp.h (memory_warnings):
7515 * coding.h (preferred_coding_system):
7516 * cm.h (evalcost):
7517 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7518
c0b36d46
EZ
75192010-07-02 Eli Zaretskii <eliz@gnu.org>
7520
7521 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7522 from prototypes.
7523
7524 * msdos.h (load_pixmap): Don't define away.
7525
383e0970
J
75262010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7527
f57e2426
J
7528 * lisp.h:
7529 * atimer.h: Remove define for P_.
7530
7531 * alloc.c: Remove __P and P_ from .c and .m files.
7532 * atimer.c:
7533 * buffer.c:
7534 * callint.c:
7535 * category.c:
7536 * charset.c:
7537 * chartab.c:
7538 * cm.c:
7539 * coding.c:
7540 * composite.c:
7541 * data.c:
7542 * dired.c:
7543 * dispnew.c:
7544 * doc.c:
7545 * editfns.c:
7546 * emacs.c:
7547 * eval.c:
7548 * fileio.c:
7549 * filelock.c:
7550 * fns.c:
7551 * font.c:
7552 * fontset.c:
7553 * frame.c:
7554 * ftfont.c:
7555 * ftxfont.c:
7556 * gmalloc.c:
7557 * gtkutil.c:
7558 * image.c:
7559 * indent.c:
7560 * intervals.c:
7561 * keyboard.c:
7562 * keymap.c:
7563 * lread.c:
7564 * marker.c:
7565 * menu.c:
7566 * minibuf.c:
7567 * print.c:
7568 * process.c:
7569 * scroll.c:
7570 * search.c:
7571 * sound.c:
7572 * strftime.c:
7573 * syntax.c:
7574 * sysdep.c:
7575 * term.c:
7576 * terminal.c:
7577 * textprop.c:
7578 * unexalpha.c:
7579 * w32console.c:
7580 * w32fns.c:
7581 * w32font.c:
7582 * w32menu.c:
7583 * w32term.c:
7584 * w32uniscribe.c:
7585 * window.c:
7586 * xdisp.c:
7587 * xfaces.c:
7588 * xfns.c:
7589 * xfont.c:
7590 * xftfont.c:
7591 * xmenu.c:
7592 * xselect.c:
7593 * xterm.c: Likewise.
7594
383e0970 7595 Remove P_ and __P macros.
f57e2426
J
7596 * atimer.h: Remove P_ and __P macros.
7597 * buffer.h:
383e0970
J
7598 * category.h:
7599 * ccl.h:
7600 * character.h:
7601 * charset.h:
7602 * cm.h:
7603 * coding.h:
7604 * composite.h:
7605 * dispextern.h:
7606 * disptab.h:
9e892c8d 7607 * dosfns.h:
383e0970
J
7608 * font.h:
7609 * fontset.h:
7610 * frame.h:
7611 * gtkutil.h:
7612 * indent.h:
7613 * intervals.h:
7614 * keyboard.h:
7615 * keymap.h:
7616 * lisp.h:
7617 * macros.h:
7618 * md5.h:
7619 * menu.h:
7620 * msdos.h:
7621 * nsterm.h:
7622 * puresize.h:
7623 * region-cache.h:
7624 * syntax.h:
7625 * syssignal.h:
7626 * systime.h:
7627 * termhooks.h:
9e892c8d 7628 * w32font.h:
383e0970
J
7629 * w32term.h:
7630 * widget.h:
7631 * window.h:
7632 * xgselect.h:
7633 * xsettings.h:
7634 * xterm.h: Likewise.
7635
98601119
DN
76362010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7637
d9170db5
DN
7638 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
7639
98601119
DN
7640 Cleanup old code.
7641 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7642 * syssignal.h: Remove code for Lynx, not supported anymore.
7643 * vm-limit.c: Remove unused code the depends on emacs not being
7644 defined and NO_LIM_DATA being defined.
7645 * mem-limits.h: Remove dead code.
7646
1f984e12
J
76472010-07-01 Jan Djärv <jan.h.d@swipnet.se>
7648
c49d071a
J
7649 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
7650
9d5405ec
J
7651 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
7652 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
7653
7a18115b
J
7654 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
7655 parameters, they are already absolute.
7656
a628ad9d
JB
7657 * nsterm.m (x_set_window_size, initFrameFromEmacs):
7658 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 7659
a628ad9d 7660 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 7661
a628ad9d
JB
7662 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
7663 Update FRAME_TOOLBAR_HEIGHT.
581a8100 7664
a628ad9d
JB
7665 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
7666 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 7667
c1ef4455
CY
76682010-06-30 Chong Yidong <cyd@stupidchicken.com>
7669
bba3e508
SM
7670 * frame.c (get_future_frame_param, Fmake_terminal_frame):
7671 Don't check default-frame-alist.
c1ef4455 7672
ce8f5a9a
AS
76732010-06-30 Andreas Schwab <schwab@linux-m68k.org>
7674
7675 * process.c (create_process): Avoid using invalid file descriptors.
7676
7677 * callproc.c (child_setup): Avoid closing a file descriptor twice.
7678
bf935339
J
76792010-06-30 Jan Djärv <jan.h.d@swipnet.se>
7680
7681 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
7682 Improve documentation. Return font regardless of use_system_font.
7683 (syms_of_xsettings): Improve documentation for font-use-system-font.
7684
7c33a057
CY
76852010-07-10 Chong Yidong <cyd@stupidchicken.com>
7686
2ec1b5ee
CY
7687 * xfaces.c (realize_face): Garbage the frame if a face is removed
7688 (Bug#6593).
7689
76902010-07-05 Andreas Schwab <schwab@linux-m68k.org>
7691
7692 * keyboard.c: Remove duplicate <setjmp.h>.
7693 (read_key_sequence): Remove volatile qualifiers.
7694
76952010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7696
7697 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
7698 (struct glyph_row): New members left_fringe_offset and
7699 right_fringe_offset.
7700
7701 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
7702 specially.
7703 * w32term.c (w32_draw_fringe_bitmap): Likewise.
7704 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
7705
7706 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 7707 Take account of bitmap offset.
2ec1b5ee
CY
7708 (draw_window_fringes): Take account of window vscroll.
7709 (update_window_fringes): Likewise. Extend top-aligned top indicator
7710 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
7711 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
7712 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
7713
77142010-07-04 Juanma Barranquero <lekktu@gmail.com>
7715
7716 * w32fns.c (Qtooltip): Declare.
7717 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
7718
77192010-07-03 Jan Djärv <jan.h.d@swipnet.se>
7720
7721 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
7722 grab on just Press (Bug#6499).
7723
77242010-07-02 Chong Yidong <cyd@stupidchicken.com>
7725
7726 * frame.c (Qtooltip): New var.
7727 (delete_frame): Use it. Fix faulty if statement. Don't update
7728 mode line for tooltip frames. Suggested by Martin Rudalics.
7729
7730 * xfns.c (x_create_tip_frame):
7731 * w32fns.c (x_create_tip_frame): Use it.
7732
77332010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
7734
7735 * xftfont.c (xftfont_open): Check font width one by one also when
7736 spacing is dual.
7737
7738 * ftfont.c (ftfont_open): Ditto.
7739
6259c2ec
GM
77402010-06-30 Glenn Morris <rgm@gnu.org>
7741
a46007e9
GM
7742 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
7743
6259c2ec
GM
7744 * Makefile.in (CANNOT_DUMP): Update for configure name change.
7745
7746 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
7747 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7748 * s/darwin.h (SYSTEM_MALLOC):
7749 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
7750
5d1d3d04
J
77512010-06-29 Jan Djärv <jan.h.d@swipnet.se>
7752
7753 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
7754 (ns_get_screen): Don't assign integer to f.
7755 (Fx_display_color_cells): Declarations before statements.
7756
e547b051
J
77572010-06-28 Jan Djärv <jan.h.d@swipnet.se>
7758
5fc8e5bc
J
7759 * xfns.c (x_default_font_parameter): Remove got_from_system
7760 (Bug#6526).
7761
e547b051 7762 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
7763 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
7764 New defines based on what configure finds.
e547b051
J
7765
7766 * xterm.c (XTflash): Use gtk_widget_get_window.
7767 (xg_scroll_callback): Use gtk_adjustment_get_upper and
7768 gtk_adjustment_get_page_size.
7769 (handle_one_xevent): Use gtk_widget_get_mapped.
7770 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
7771 messages.
7772
7773 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
7774
7775 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
7776 HAVE_GTK_FILE_SELECTION_NEW.
7777
bba3e508
SM
7778 * gtkutil.c (xg_display_open, xg_display_close):
7779 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
7780 (xg_display_open): Return type is void.
7781 (gtk_widget_set_has_window)
7782 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
7783 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
7784 (gtk_adjustment_set_page_increment)
7785 (gtk_adjustment_get_step_increment): #define these if not found
7786 by configure.
7787 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
7788 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
7789 Use gtk_widget_get_window.
e547b051
J
7790 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
7791 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
7792 (create_dialog): Use gtk_dialog_get_action_area and
7793 gtk_dialog_get_content_area.
7794 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7795 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7796 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
7797 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7798 Use g_object_ref and g_object_unref.
7799 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7800 Use gtk_widget_get_sensitive.
e547b051
J
7801 (xg_update_submenu): Use remove_submenu.
7802 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7803 properties instead to get old x and y position.
7804 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7805 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 7806 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
7807 (xg_get_tool_bar_widgets): New function.
7808 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7809 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7810 (toolbar_set_orientation): New #define based on if configure
7811 finds gtk_orientable_set_orientation.
7812 (xg_create_tool_bar): Call toolbar_set_orientation.
7813 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7814 instead of gtk_box_pack_start_defaults.
7815
b9229673
CY
78162010-06-28 Chong Yidong <cyd@stupidchicken.com>
7817
7818 * cmds.c (Fdelete_backward_char): Move into Lisp.
7819
bbc803b0
DN
78202010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7821
7822 * s/freebsd.h (BSD4_2): Remove redundant definition.
7823 bsd-common.h defines it already.
7824
6431f2e6
CY
78252010-06-27 Chong Yidong <cyd@stupidchicken.com>
7826
7827 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
7828 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
7829 tool-bar-mode, which are now set using these X resources at
7830 startup, to determine the defaults (Bug#2249).
7831
7832 * w32fns.c (Fx_create_frame):
7833 * nsfns.m (Fx_create_frame): Likewise.
7834
7835 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
7836
8c079ebb
JB
78372010-06-24 Juanma Barranquero <lekktu@gmail.com>
7838
7839 * gtkutil.c (xg_update_scrollbar_pos):
7840 Avoid C99 mid-block variable declaration.
7841
e9b7ab96
JD
78422010-06-22 Jan Djärv <jan.h.d@swipnet.se>
7843
bc869eca
JD
7844 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
7845
2b7e356a 7846 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
7847
7848 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
7849 if height is less than scroll bar min size.
7850 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
7851
e9b7ab96
JD
7852 * xfns.c (x_default_font_parameter): Try to open font from system
7853 before using it (bug#6478). Rename got_from_gconf to got_from_system.
7854
a628ad9d 78552010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
7856
7857 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
7858
70c4cfbb
EZ
78592010-06-20 Eli Zaretskii <eliz@gnu.org>
7860
7861 * xdisp.c (try_scrolling): When scroll-conservatively is set to
7862 most-positive-fixnum, be extra accurate when scrolling window
7863 start, to avoid missing the cursor line.
7864
ad5a12b5
EZ
78652010-06-19 Eli Zaretskii <eliz@gnu.org>
7866
7867 * xdisp.c (try_scrolling): Compute the limit for searching point
7868 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
7869 of 10 screen lines.
7870 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
7871 and
7872 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
7873 for details.
7874
2a64315a 78752010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
7876
7877 * editfns.c (Fbyte_to_string): Pacify compiler.
7878
288cf4e9
SM
78792010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7880
7881 * lread.c (read1): Phase out old-style backquotes a bit more.
7882
6e6e5760
EZ
78832010-06-12 Eli Zaretskii <eliz@gnu.org>
7884
cbc4fd20
EZ
7885 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
7886 bidimirror.h.
7887
7888 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
7889
317fbf33
EZ
7890 * bidi.c (bidi_initialize): Remove explicit initialization of
7891 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 7892 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 7893 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
7894
7895 * biditype.h: New file.
7896
cbc4fd20
EZ
7897 * bidimirror.h: New file.
7898
6e6e5760
EZ
7899 * window.c (syms_of_window): Doc fix (bug#6409).
7900
4176cba2
RF
79012010-06-12 Romain Francoise <romain@orebokech.com>
7902
7903 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
7904 ediff-hook.
7905
cb4bfcb5
GM
79062010-06-10 Glenn Morris <rgm@gnu.org>
7907
64c60c2f
GM
7908 * editfns.c (Fbyte_to_string): Pacify compiler.
7909
cb4bfcb5
GM
7910 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
7911
2ec1b5ee
CY
79122010-06-26 Andreas Schwab <schwab@linux-m68k.org>
7913
7914 * alloc.c (Fmake_byte_code): Don't access undefined argument
7915 (Bug#6517).
7916
79172010-06-25 Chong Yidong <cyd@stupidchicken.com>
7918
7919 * xdisp.c (next_element_from_image): Ensure that after-strings are
7920 read the next time we hit handle_stop (Bug#1336).
7921
79222010-06-23 Andreas Schwab <schwab@linux-m68k.org>
7923
7924 * lread.c (read1): Signal error if #s is not followed by paren.
7925
79262010-06-19 Chong Yidong <cyd@stupidchicken.com>
7927
7928 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7929
7930 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7931
79322010-06-15 Glenn Morris <rgm@gnu.org>
7933
7934 * editfns.c (Fbyte_to_string): Pacify compiler.
7935
e454a4a3
SM
79362010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7937
7938 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7939 Check `object's type before accessing its guts.
7940
c1b1acc2
DN
79412010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7942
7943 * s/usg5-4.h: Fix previous change.
7944 Suggested by Lawrence Mitchell <wence@gmx.li>
7945
657d4c0b
AS
79462010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7947
7948 * minibuf.c (Fall_completions): Add more checks.
7949
9b27fd9f
JB
79502010-06-08 Juanma Barranquero <lekktu@gmail.com>
7951
7952 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7953
a99ebb40
DN
79542010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7955
d7c5d87d
DN
7956 * lread.c (X_OK): Remove, unused.
7957
0263a941
DN
7958 * dispnew.c: Remove obsolete comment.
7959
a99ebb40
DN
7960 Remove INCLUDED_FCNTL.
7961 * xterm.c (INCLUDED_FCNTL):
7962 * callproc.c (INCLUDED_FCNTL):
7963 * alloc.c (INCLUDED_FCNTL):
7964 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7965 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7966
13b5221f
MR
79672010-06-07 Martin Rudalics <rudalics@gmx.at>
7968
7969 * window.c (Fselect_window): Move `record_buffer' up to the
7970 beginning of this function, so the buffer gets recorded
7971 even if the selected window does not change.
7972 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7973
5220357f
JB
79742010-06-07 Juanma Barranquero <lekktu@gmail.com>
7975
7976 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7977 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7978
3085237c
DN
79792010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7980
7981 Remove BSTRING related code, all platforms define it.
7982 * s/usg5-4.h (BSTRING): Remove definition.
7983 * s/template.h (BSTRING):
7984 * s/msdos.h (BSTRING):
7985 * s/ms-w32.h (BSTRING):
7986 * s/hpux10-20.h (BSTRING):
7987 * s/gnu-linux.h (BSTRING):
7988 * s/darwin.h (BSTRING):
7989 * s/cygwin.h (BSTRING):
7990 * s/bsd-common.h (BSTRING):
7991 * s/aix4-2.h (BSTRING): Likewise.
7992 * sysdep.c: Remove code depending on BSTRING not being defined.
7993
409f2919
JB
79942010-06-05 Juanma Barranquero <lekktu@gmail.com>
7995
7996 Remove obsolete macro BASE_LEADING_CODE_P.
7997 * character.h (BASE_LEADING_CODE_P): Remove.
7998 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7999 * buffer.c (Fset_buffer_multibyte):
8000 * indent.c (scan_for_column, compute_motion):
8001 * insdel.c (count_combining_before, count_combining_after):
8002 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8003
087fc47a
JB
80042010-06-04 Juanma Barranquero <lekktu@gmail.com>
8005
8006 Turn `directory-sep-char' into a noop.
8007
8008 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8009 (DIRECTORY_SEP): Define unconditionally.
8010
8011 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8012
8013 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8014 call dostounix_filename directly.
8015
8016 * fileio.c (CORRECT_DIR_SEPS): Remove.
8017 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8018 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8019 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8020 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8021
8022 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8023 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8024
0eb7675e
AS
80252010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8026
a628ad9d
JB
8027 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8028 (Bug#6346)
0eb7675e 8029
78edd3b7
JB
80302010-06-03 Juanma Barranquero <lekktu@gmail.com>
8031
8032 * ccl.c (Fccl_program_p): Fix typo in docstring.
8033
eb697db5
DN
80342010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8035
8036 Move UNEXEC definition to autoconf.
8037 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8038 * s/sol2-10.h (UNEXEC):
8039 * s/irix6-5.h (UNEXEC):
8040 * s/hpux10-20.h (UNEXEC):
8041 * s/gnu-linux.h (UNEXEC):
8042 * s/darwin.h (UNEXEC):
8043 * s/cygwin.h (UNEXEC):
8044 * s/bsd-common.h (UNEXEC):
8045 * s/aix4-2.h (UNEXEC):
8046 * m/alpha.h (UNEXEC): Likewise.
8047 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8048
aa3830c4
JB
80492010-06-03 Juanma Barranquero <lekktu@gmail.com>
8050
8051 Remove obsolete pre-unicode2 macros.
8052 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8053 * composite.c (composition_reseat_it):
8054 * data.c (Faset):
8055 * fns.c (Ffillarray):
8056 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8057 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8058
d234d13e
JL
80592010-06-03 Juri Linkov <juri@jurta.org>
8060
8061 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8062 (Fswitch_to_buffer): Remove unused variable `err'.
8063
0d4bcf4d
GM
80642010-06-03 Glenn Morris <rgm@gnu.org>
8065
e23dc1e2
GM
8066 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8067
05b09564
GM
8068 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8069 now that AH_BOTTOM does it.
8070
824e2978
GM
8071 * m/hp800.h (HAVE_ALLOCA):
8072 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8073
0d4bcf4d
GM
8074 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8075 Remove NOT_C_CODE tests, it is always true now.
8076
c55d2abf
DN
80772010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8078
08a494a3
DN
8079 Fix config.h includes.
8080 * xsettings.c:
8081 * xgselect.c:
8082 * nsterm.m:
8083 * nsselect.m:
8084 * nsimage.m:
8085 * nsfont.m:
8086 * nsfns.m:
8087 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8088 other files do.
8089
75934b1d
DN
8090 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8091
9f32a766
DN
8092 * s/sol2-6.h: Remove obsolete comments.
8093
c55d2abf
DN
8094 Remove unnecessary alloca.h includes.
8095 * keymap.c: Do not include alloca.h, config.h does that.
8096 * sysdep.c: Likewise. Do not define fwrite, not used.
8097
06ac62b4
SM
80982010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8099
8100 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8101 the HAVE_TERMIO where it belongs (bug#6149).
8102
1ab8293c
SM
81032010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8104
8105 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8106 of bug#6305).
8107
6dcfd253
EZ
81082010-05-30 Eli Zaretskii <eliz@gnu.org>
8109
8110 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8111 state is always cached (bug#6306).
8112
6d26bbb2
EZ
81132010-05-29 Eli Zaretskii <eliz@gnu.org>
8114
06fa4a23
EZ
8115 Fix cursor motion in bidi-reordered continued lines.
8116 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8117 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
8118 over continuation lines in bidi-reordered buffers.
8119 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
8120 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8121
f5783df3
MA
81222010-05-28 Michael Albinus <michael.albinus@gmx.de>
8123
8124 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8125
7d56b2dd
KH
81262010-05-28 Kenichi Handa <handa@m17n.org>
8127
8128 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8129 Don't sheck SPEC if it is nil.
8130 (font_list_entities): Call font_delete_unmatched if
b925d231 8131 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 8132
e58d4ff7
GM
81332010-05-28 Glenn Morris <rgm@gnu.org>
8134
8135 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8136
f1a5d776
CY
81372010-05-27 Chong Yidong <cyd@stupidchicken.com>
8138
8139 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8140 whether to trash.
8141 (internal_delete_file, Frename_file): Callers changed.
8142 (delete_by_moving_to_trash): Doc fix.
8143 (Fdelete_directory_internal): Don't move to trash.
8144
8145 * callproc.c (delete_temp_file):
8146 * buffer.c (Fkill_buffer): Callers changed.
8147
8148 * lisp.h: Update prototype.
8149
f44a59e6
CY
81502010-05-27 Chong Yidong <cyd@stupidchicken.com>
8151
8152 * xdisp.c (redisplay_window): After redisplay, check if point is
8153 still valid before setting it (Bug#6177).
8154
81ac4f35
GM
81552010-05-27 Glenn Morris <rgm@gnu.org>
8156
8157 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8158 Convert comments to Makefile format.
8159
8160 * Makefile.in (bootstrap-clean): No more Makefile.c.
8161
ccd89fb3
GM
81622010-05-26 Glenn Morris <rgm@gnu.org>
8163
90278cb6
GM
8164 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8165 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8166
ccd89fb3
GM
8167 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8168 Remove.
8169 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8170
b7050583
KH
81712010-05-26 Kenichi Handa <handa@m17n.org>
8172
8173 * composite.c (composition_compute_stop_pos): Fix condition for
8174 backward scanning.
8175
e5458003
GM
81762010-05-25 Glenn Morris <rgm@gnu.org>
8177
c345fe90
GM
8178 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8179 Move before TEMACS_LDFLAGS.
8180 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8181 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8182
2e0689ab
GM
8183 * Makefile.in (NOT_C_CODE): No longer define.
8184 (config.h): No longer include.
8185
8009a5e8
GM
8186 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8187 variables it may reference.
8188
e5458003
GM
8189 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8190 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8191
10f72a37
KH
81922010-05-25 Kenichi Handa <handa@m17n.org>
8193
8194 * dispextern.h (struct composition_it): New members rule_idx and
8195 charpos.
8196
8197 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8198 that the character positions of IT point the last character of the
8199 current grapheme cluster.
8200 (next_element_from_composition): Don't change character positions
8201 of IT.
8202 (append_composite_glyph): Set glyph->charpos to
8203 it->cmp_it.charpos.
8204
8205 * composite.c (autocmp_chars): Change the first argument to RULE,
8206 and try composition with RULE only.
8207 (composition_compute_stop_pos): Record the index number of the
8208 composition rule in CMP_IT->rule_idx.
8209 (composition_reseat_it): Call autocmp_chars repeatedly until the
8210 correct rule of the composition is found.
8211 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8212 is at the last character of the current grapheme cluster when
8213 CMP_IT->reversed_p is nonzero.
8214
171eda53 82152010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 8216
171eda53
SM
8217 * editfns.c (Fbyte_to_string): New function.
8218
66a9f7f4
SM
82192010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8220
8221 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8222 Suggested by Masatake YAMATO <yamato@redhat.com>.
8223
d8c315d1
EZ
82242010-05-23 Eli Zaretskii <eliz@gnu.org>
8225
171eda53 8226 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 8227
f5b416d2 82282010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8229
8230 * s/netbsd.h: If terminfo is found, use it in preference to
8231 termcap. (Bug#6190) [Backport from trunk]
8232
0416466c
EZ
82332010-05-19 Eli Zaretskii <eliz@gnu.org>
8234
11117830 8235 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
8236
8237 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8238 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8239 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8240 and maxpos members instead of start.pos and end.pos, respectively.
8241
8242 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8243 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8244 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
8245 (try_window_reusing_current_matrix, try_window_id):
8246 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
8247 (init_from_display_pos, init_iterator): Use EMACS_INT for
8248 character and byte positions.
66a9f7f4 8249 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
8250 arguments for minimum and maximum buffer positions seen by
8251 display_line for this row. Don't use iterator to find the
8252 position following the maximum one; instead, increment the
11117830
EZ
8253 position found by display_line directly. Fix logic; eol_pos
8254 should be tested before the rest. Handle the case of characters
8255 delivered from display vector (bug#6036). Fix tests related to
8256 it->method. Handle the truncated_on_right_p rows.
8257 (RECORD_MAX_MIN_POS): New macro.
8258 (display_line): Use it to record the minimum and maximum buffer
8259 positions for glyphs in the row being assembled. Record the
8260 position of the newline that terminates the line. If word wrap is
8261 in effect, restore minimum and maximum positions seen up to the
8262 wrap point, when iterator returns to it.
8263 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8264 row and cursor not already at point. Restore original pre-bidi
8265 code for unidirectional buffers.
d36fe237
EZ
8266
8267 * dispnew.c (increment_row_positions, check_matrix_invariants):
8268 Increment and check row->start.pos and row->end.pos, in addition
8269 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8270
11117830
EZ
8271 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8272 Display truncated_on_left_p and truncated_on_right_p flags.
8273 Formatting fixes.
8274 (pmtxrows): Display the ordinal number of each row. Don't display
8275 rows beyond the last one.
8276
8277 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8278 it is not copied by bidi_copy_it.
8279
6e83d800
EZ
82802010-05-22 Eli Zaretskii <eliz@gnu.org>
8281
8282 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8283 (Bug#6237)
8284
110683ad
CY
82852010-05-22 Chong Yidong <cyd@stupidchicken.com>
8286
8287 * image.c (Fimage_flush): Rename from image-refresh.
8288
98fe5161
CY
82892010-05-21 Chong Yidong <cyd@stupidchicken.com>
8290
8291 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8292 just one window.
8293
8294 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8295 (clear_image_cache): If the number of cached images is unusually
8296 large, decrease the cache eviction delay (Bug#6230).
8297
e8752c66
GM
82982010-05-21 Glenn Morris <rgm@gnu.org>
8299
66dbf213
GM
8300 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8301 Move these rules to ns.mk.
8302 * ns.mk: New file.
8303
04384b2d
GM
8304 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8305
e8752c66
GM
8306 * Makefile.in (CANNOT_DUMP): New, set by configure.
8307 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8308
2e2bbddb
JL
83092010-05-20 Juri Linkov <juri@jurta.org>
8310
8311 * fileio.c (Fdelete_file): Change interative spec to use
8312 `read-file-name' like in `find-file-read-args' where the default
8313 value is `default-directory' instead of `buffer-file-name'.
8314 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8315
31c4aaf6
KR
83162010-05-20 Kevin Ryde <user42@zip.com.au>
8317
8318 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8319 (Voverriding_terminal_local_map, Vsystem_key_alist)
8320 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8321
9d5cf9b6
GM
83222010-05-20 Glenn Morris <rgm@gnu.org>
8323
8324 * Makefile.in (DEPDIR): New constant.
8325 (DEPFLAGS): Set with configure, not cpp.
8326 (MKDEPDIR): New, set by configure.
8327 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8328 (clean): Use $DEPDIR.
8329 (deps_frag): Include from configure.
8330 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8331 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8332
bba3e508
SM
8333 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8334 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 8335
7f34aec3
GM
83362010-05-19 Glenn Morris <rgm@gnu.org>
8337
d494e8f2
GM
8338 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8339
c1d0dcfd
GM
8340 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8341 (GNULIB_VAR): Remove.
8342 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8343
8344 * m/ibms390x.h (LINKER):
8345 * m/macppc.h (LINKER) [GNU_LINUX]:
8346 * s/aix4-2.h (ORDINARY_LINK):
8347 * s/cygwin.h (LINKER):
8348 * s/darwin.h (ORDINARY_LINK):
8349 * s/gnu.h (ORDINARY_LINK):
8350 * s/netbsd.h (LINKER):
8351 * s/usg5-4.h (ORDINARY_LINK):
8352 Move to configure.
8353
7f34aec3
GM
8354 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8355
754790b6
CY
83562010-05-18 Chong Yidong <cyd@stupidchicken.com>
8357
8358 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8359 prevent stack overflow if number of arguments is too large
8360 (Bug#6214).
8361
161e44d1
JB
83622010-05-18 Juanma Barranquero <lekktu@gmail.com>
8363
8364 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8365
be4ff9da
GM
83662010-05-18 Glenn Morris <rgm@gnu.org>
8367
9539dc5d
GM
8368 * s/gnu-linux.h: Combine two conditionals.
8369
8370 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
8371 $(POST_ALLOC_OBJ).
8372
40dc6bf4
GM
8373 * Makefile.in (RALLOC_OBJ): New, set by configure.
8374 (rallocobj): Replace with the previous variable.
8375 (otherobj): Use $RALLOC_OBJ.
8376
8377 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8378 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8379
be4ff9da
GM
8380 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8381 (gmallocobj, vmlimitobj): Replace with previous two variables.
8382 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8383
16455a85
GM
83842010-05-17 Glenn Morris <rgm@gnu.org>
8385
8386 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8387 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8388
5fdb7468
GM
83892010-05-16 Glenn Morris <rgm@gnu.org>
8390
7ca1f3f9
GM
8391 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8392
7541dad5
GM
8393 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8394
da53fab9
GM
8395 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8396 trailing "/".
8397
b02a6645
GM
8398 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8399 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8400
8877ca0f
GM
8401 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8402 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8403 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8404 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8405 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8406
5fdb7468
GM
8407 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8408 Remove ${STARTFLAGS}, nothing ever sets it.
8409
95adb4b1
DN
84102010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8411
8412 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8413
676b6304
GM
84142010-05-16 Glenn Morris <rgm@gnu.org>
8415
9beab9ce
GM
8416 * Makefile.in (LIBX_BASE): Always define.
8417
8a95f0e7
GM
8418 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8419
676b6304
GM
8420 * Makefile.in (LIBXT): Always define.
8421
6e546d18
GM
84222010-05-15 Glenn Morris <rgm@gnu.org>
8423
4235ca47 8424 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 8425
6e546d18
GM
8426 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8427 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8428
8c5ff6dd
KR
84292010-05-15 Ken Raeburn <raeburn@raeburn.org>
8430
560bb7ae 8431 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
8432 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8433
8b4eb796
KR
8434 * emacs.c (main): Initialize initial-environment and
8435 process-environment before generating from env, not after.
8436
8c5ff6dd
KR
8437 Handle --version reasonably in CANNOT_DUMP configuration.
8438 * emacs.c (emacs_version, emacs_copyright): New string variables.
8439 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8440 (syms_of_emacs): Defvar them, and initialize them from the C
8441 string variables.
8442 (main): If initialization hasn't been done, print initial version
8443 info from the C strings, instead of starting an interactive session.
8444
dbd3f723
EZ
84452010-05-15 Eli Zaretskii <eliz@gnu.org>
8446
d20e1419
EZ
8447 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8448 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
8449 (bidi_paragraph_init): Remove redundant assertion that we are at
8450 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
8451
8452 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8453 (syms_of_xdisp): Defsubr it.
8454
d36fe237
EZ
8455 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8456
dbd3f723
EZ
8457 * Makefile.in: Fix MSDOS-related comments.
8458
02be533b
GM
84592010-05-15 Glenn Morris <rgm@gnu.org>
8460
1a82cca9
GM
8461 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8462 (really-lwlib, really-oldXMenu): Always define.
8463 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8464
3df7b338
GM
8465 * Makefile.in: Simplify cpp conditional.
8466
2b5f541b
GM
8467 * Makefile.in (${ns_appdir}): Simplify using umask.
8468
02be533b
GM
8469 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8470
4e2db1fe
SM
84712010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8472
8473 * eval.c (specbind): Remove left-over duplicate test.
8474 Disallow let-binding frame-local vars. Add comment.
8475
4b292a22
EZ
84762010-05-14 Eli Zaretskii <eliz@gnu.org>
8477
2fe72643 8478 Make the cache of bidi iterator states dynamically allocated.
1edbd309 8479 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
8480 (bidi_init_it): Call it.
8481 (bidi_cache_iterator_state): Enlarge the cache if needed.
8482
4e2db1fe 8483 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
8484 bidi_get_next_char_visually. All callers changed.
8485
82ebc97b
KH
84862010-05-14 Kenichi Handa <handa@m17n.org>
8487
8488 * dispextern.h (struct composition_it): New member reversed_p.
8489
8490 * composite.c (composition_compute_stop_pos): Search backward if
8491 ENDPOS < CHARPOS.
8492 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8493 Set CMP_IT->reversed_p.
b4b6e17e 8494 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 8495
4e2db1fe
SM
8496 * xdisp.c (set_iterator_to_next):
8497 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
8498 scanning backward. Call composition_compute_stop_pos if scan
8499 direction is changed.
8500 (next_element_from_buffer): Call composition_compute_stop_pos with
8501 negative ENDPOS if we are scanning backward.
8502 (next_element_from_composition): Pay attention to
8503 IT->cmp_it.reversed_p.
8504
0e5d7800
KH
85052010-05-14 Kenichi Handa <handa@m17n.org>
8506
560bb7ae 8507 * font.c (font_range): Return the range for the font found at first.
0e5d7800 8508
cb027b32
GM
85092010-05-14 Glenn Morris <rgm@gnu.org>
8510
177b0288
GM
8511 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8512
fbc00890
GM
8513 * Makefile.in (mktime, X11, register): Move undefs to configure.
8514
f14d1dfd
GM
8515 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8516 (MSDOS_X_OBJ): New variable.
8517 (MSDOS_SUPPORT_REAL): New constant.
8518 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8519 (obj): Use MSDOS_X_OBJ.
8520 (lisp): Use MSDOS_SUPPORT as a variable.
8521
11842bd8
GM
8522 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8523 (GPM_MOUSE_SUPPORT): Now it's a constant.
8524 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8525 not cpp.
8526
489d31a4 8527 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 8528 (ns_appresdir): Remove, unused.
e20f1f07 8529
489d31a4
GM
8530 * Makefile.in (SHELL): Move outside cpp section.
8531
cb027b32
GM
8532 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8533
5a903aa9
GM
85342010-05-13 Glenn Morris <rgm@gnu.org>
8535
3369c79f
GM
8536 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8537 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8538
d5e982a6
GM
8539 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8540 HAVE_WINDOW_SYSTEM must be too.
8541
6192e163
GM
8542 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8543 (lisp): Remove WINNT_SUPPORT.
8544
472c5d6b
GM
8545 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8546 Let configure set these variables (to empty) in this case as well.
8547
0116466b
GM
8548 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8549 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8550
5a903aa9
GM
8551 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8552 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8553 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8554 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8555 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 8556 the values output by configure.
5a903aa9
GM
8557 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8558
1a0d7c06
GM
85592010-05-12 Glenn Morris <rgm@gnu.org>
8560
b5457f14
GM
8561 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8562 (LINKER_WAS_SPECIFIED): Remove.
8563
1a0d7c06
GM
8564 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8565 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8566 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8567 * s/cygwin.h (LIB_GCC):
8568 * s/freebsd.h (LIB_GCC):
8569 * s/gnu-linux.h (LIB_GCC):
8570 * s/msdos.h (LIB_GCC):
8571 * s/netbsd.h (LIB_GCC):
8572 Move to configure.
8573
d1ddd1d0 85742010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
8575
8576 * ftfont.c: Fix incorrect parentheses of #if condition for
8577 definining M17N_FLT_USE_NEW_FEATURE.
8578
acddf8ae
GM
85792010-05-11 Glenn Morris <rgm@gnu.org>
8580
8581 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8582 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8583
ae5e04fa
EZ
85842010-05-10 Eli Zaretskii <eliz@gnu.org>
8585
8586 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8587 unibyte buffers. See
8588 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8589
7490175b
GM
85902010-05-10 Glenn Morris <rgm@gnu.org>
8591
97efb629
GM
8592 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
8593 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
8594 (LIBES): Use LIBS_SYSTEM as a variable.
8595 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
8596 * s/aix4-2.h (LIBS_SYSTEM):
8597 * s/freebsd.h (LIBS_SYSTEM):
8598 * s/hpux10-20.h (LIBS_SYSTEM):
8599 * s/sol2-6.h (LIBS_SYSTEM):
8600 * s/unixware.h (LIBS_SYSTEM):
8601 Move to configure.
8602
7490175b
GM
8603 * s/aix4-2.h (MAIL_USE_LOCKF):
8604 * s/bsd-common.h (MAIL_USE_FLOCK):
8605 * s/darwin.h (MAIL_USE_FLOCK):
8606 * s/gnu-linux.h (MAIL_USE_FLOCK):
8607 * s/irix6-5.h (MAIL_USE_FLOCK):
8608 * s/template.h (MAIL_USE_FLOCK):
8609 Move to configure.
8610
0235128c 86112010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
8612
8613 * Version 23.2 released.
8614
0235128c 86152010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
8616
8617 * composite.c (autocmp_chars): Save point as marker before calling
8618 auto-composition-function (Bug#5984).
8619
8620 * lisp.h (restore_point_unwind): Add prototype.
8621
8622 * fileio.c (restore_point_unwind): Remove static attribute.
8623
0235128c 86242010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
8625
8626 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
8627 new feature of libotf and m17n-flt.
0235128c
SM
8628 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
8629 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
8630 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
8631 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
8632 that OUT is NULL. Use OTF_drive_gsub_with_log and
8633 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
8634 OTF_drive_gpos.
8635 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
8636 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
8637 Setup mflt_enable_new_feature and mflt_try_otf.
8638
4721152c
J
86392010-05-08 Jan Djärv <jan.h.d@swipnet.se>
8640
8641 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
8642
8643 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
8644 box and toolbar (Bug #6139).
8645 (xg_create_tool_bar): Remove comment (Bug #6139).
8646 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
8647 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
8648
ee0a16cf
JB
86492010-05-08 Juanma Barranquero <lekktu@gmail.com>
8650
8651 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
8652 Update dependencies.
8653
96d79611
EZ
86542010-05-08 Eli Zaretskii <eliz@gnu.org>
8655
8656 * fringe.c (update_window_fringes): Set up truncation bitmaps for
8657 R2L lines.
8658
40c17879
GM
86592010-05-08 Glenn Morris <rgm@gnu.org>
8660
7b42b29f
GM
8661 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
8662
40c17879
GM
8663 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
8664 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
8665 (termcapobj): Replace with TERMCAP_OBJ.
8666 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
8667 (LIBES): Use LIBS_TERMCAP as a variable.
8668
8669 * s/freebsd.h (osreldate.h): No longer include, since this file
8670 does not use __FreeBSD_version any more.
8671
8672 * s/aix4-2.h (TERMINFO):
8673 * s/cygwin.h (TERMINFO):
8674 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8675 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
8676 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8677 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8678 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
8679 * s/irix6-5.h (TERMINFO):
8680 * s/netbsd.h (LIBS_TERMCAP):
8681 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
8682 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
8683 * s/usg5-4.h (TERMINFO):
8684 Move to configure.
8685
94b612ad
SM
86862010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
8687
8688 * eval.c (unbind_to): Don't unbind a local binding into the global
8689 binding when the local binding disappeared. Inversely, don't unbind
8690 a global binding into a newly created local binding.
8691 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
8692 can specify the frame to use, when applicable. Adjust callers.
8693
15e12598 86942010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 8695 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
8696
8697 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
8698
f724825e
EZ
86992010-05-07 Eli Zaretskii <eliz@gnu.org>
8700
5cba3209
EZ
8701 * w32fns.c: Include w32.h.
8702 (Fw32_shell_execute): Decode the error message before passing it
8703 to `error'. (Bug#6126)
8704
d16bdfc3
EZ
8705 * msdos.c (dos_set_window_size):
8706 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
8707 instead of `XSYMBOL (foo)->value'.
8708
59d93e87
EZ
87092010-05-07 Eli Zaretskii <eliz@gnu.org>
8710
9fdec8bc
EZ
8711 Fix the MS-DOS build, broken by autoconfiscation.
8712
8713 * Makefile.in: Don't use Make-style comments past the "start of
8714 cpp stuff" line.
8715 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
8716
8717 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
8718 edited directly by msdos/sed1v2.inp).
f724825e 8719
2f86b22b
GM
87202010-05-07 Glenn Morris <rgm@gnu.org>
8721
8722 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
8723 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
8724 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
8725 move out of cpp section.
8726 * s/freebsd.h (LD_SWITCH_SYSTEM):
8727 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
8728 * s/netbsd.h (LD_SWITCH_SYSTEM):
8729 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
8730
49ebbd65
DN
87312010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8732
8733 Define LIB_STANDARD and START_FILES using autoconf.
8734 * s/usg5-4.h (LIB_STANDARD):
8735 * s/netbsd.h (START_FILES):
8736 * s/irix6-5.h (LIB_STANDARD):
8737 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
8738 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8739 * s/freebsd.h (START_FILES):
8740 * s/darwin.h (START_FILES):
8741 * s/cygwin.h (START_FILES):
8742 * s/aix4-2.h (LIB_STANDARD):
8743 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
8744 * Makefile.in (STARTFILES): Rename to START_FILES, define using
8745 autoconf, not cpp.
8746
d43c06d6
DN
87472010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
8748
28823648
DN
8749 Remove NEED_BSDTTY and NEED_UNISTD_H.
8750 * s/hpux10-20.h (NEED_BSDTTY): Remove.
8751 * s/aix4-2.h (NEED_UNISTD_H): Remove.
8752 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
8753 <sys/ptyio.h> and <unistd.h>.
8754
aca00430
DN
8755 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
8756
d43c06d6
DN
8757 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
8758 * s/gnu.h (START_FILES): Remove empty definition.
8759
3e56b11d
JD
87602010-05-06 Jan Djärv <jan.h.d@swipnet.se>
8761
8762 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
8763
e3cf0cde
GM
87642010-05-06 Glenn Morris <rgm@gnu.org>
8765
8766 * Makefile.in (CPP, LN_S): Remove unused variables.
8767
774b9a60
SM
87682010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8769
8770 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
8771
4ab92842
LM
87722010-05-05 Lawrence Mitchell <wence@gmx.li>
8773
8774 * m/sparc.h: Fix typo in earlier change.
8775
178f2507
SM
87762010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8777
8778 Misc tweaks.
8779 * eval.c (Fdefvaralias): Remove unintended nested if.
8780 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
8781
80f00217 87822010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
8783
8784 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
8785
ef03a4e6
DN
87862010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8787
58eb6cf0
DN
8788 Remove BSD_PGRPS.
8789 * s/bsd-common.h (BSD_PGRPS): Remove undef.
8790 * s/gnu-linux.h (BSD_PGRPS): Remove.
8791 * term.c (dissociate_if_controlling_tty):
8792 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8793 (init_sys_modes, reset_sys_modes):
8794 * emacs.c (main):
8795 * callproc.c (Fcall_process, child_setup): Remove code depending
8796 on BSD_PGRPS.
8797
ef03a4e6
DN
8798 Remove POSIX_SIGNALS.
8799 * s/usg5-4.h (POSIX_SIGNALS):
8800 * s/netbsd.h (POSIX_SIGNALS):
8801 * s/msdos.h (POSIX_SIGNALS):
8802 * s/ms-w32.h (POSIX_SIGNALS):
8803 * s/hpux11.h (POSIX_SIGNALS):
8804 * s/gnu.h (POSIX_SIGNALS):
8805 * s/gnu-linux.h (POSIX_SIGNALS):
8806 * s/freebsd.h (POSIX_SIGNALS):
8807 * s/darwin.h (POSIX_SIGNALS):
8808 * s/cygwin.h (POSIX_SIGNALS):
8809 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8810 * s/unixware.h:
8811 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8812 * process.c (create_process):
8813 * syssignal.h:
8814 * sysdep.c (wait_for_termination, init_signals):
8815 * process.c (create_process):
8816 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8817 remove all code that assumes the contrary.
8818
49628785
GM
88192010-05-04 Glenn Morris <rgm@gnu.org>
8820
27a2cdfc
GM
8821 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8822 variable.
8823 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8824 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8825 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8826 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
8827 LD_SWITCH_SYSTEM_tmp.
8828 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
8829 New variables, set by configure.
8830
eb21eab5
GM
8831 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8832 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
8833 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8834 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
8835 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
8836
49628785
GM
8837 * s/aix4-2.h (C_SWITCH_SYSTEM):
8838 * m/alpha.h (C_SWITCH_MACHINE):
8839 Move to configure.in.
8840 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
8841 New variables, set by configure.
8842 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
8843 $c_switch_machine and $c_switch_system.
8844
7dff330b
DN
88452010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8846
8847 * s/hpux10-20.h (LIB_STANDARD): New definition.
8848 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
8849 on it, not used anymore.
8850
53967e09
CY
88512010-05-03 Chong Yidong <cyd@stupidchicken.com>
8852
8853 * eval.c (internal_condition_case_n): Rename from
8854 internal_condition_case_2.
8855 (internal_condition_case_2): New function.
8856
8857 * xdisp.c (safe_call): Use internal_condition_case_n.
8858
8859 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
8860 (internal_delete_file, Frename_file): Callers changed.
8861
8862 * buffer.c (Fkill_buffer):
8863 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
8864
8865 * lisp.h: Update prototypes.
8866
3dee6fdb
GM
88672010-05-03 Glenn Morris <rgm@gnu.org>
8868
8869 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
8870 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
8871 (LIBXT): Set with configure, not cpp.
8872 (LIBX): Remove.
8873 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
8874
a101e0fb
DN
88752010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8876
8877 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
8878 The FreeBSD is not needed, the default works, Solaris version is
8879 not needed, and the remaining case is not supported by configure.
8880
f63d0028
JD
88812010-05-02 Jan Djärv <jan.h.d@swipnet.se>
8882
8883 * xsmfns.c (CHDIR_OPT): New define.
8884 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
8885 restarting emacs.
8886
8887 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
8888 shut_down_emacs.
8889
8890 * emacs.c (USAGE1): Mention --chdir.
8891 (main): Handle --chdir.
8892 (standard_args): Add --chdir.
8893 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
8894 #5552).
8895
e4814a9f
DN
88962010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
8897
cd03c74a
DN
8898 Remove LD_SWITCH_MACHINE.
8899 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
8900 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
8901
c3a398a1
DN
8902 Clean up IRIX code.
8903 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
8904 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
8905
87e7285c
DN
8906 Clean up AIX code.
8907 * m/ibmrs6000.inp: Remove file, unused.
8908 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
8909 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
8910 definition ...
8911 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
8912
80f00217
JB
8913 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
8914 unused.
e4814a9f 8915
59ca28de
EZ
89162010-05-01 Eli Zaretskii <eliz@gnu.org>
8917
197daef4
EZ
8918 Emulate POSIX_SIGNALS on MS-Windows.
8919
8920 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
8921 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
8922
8923 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
8924 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8925 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8926
80f00217
JB
8927 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8928 New stubs.
197daef4 8929
af7c7572
EZ
8930 Miscellaneous fixes of bidi display.
8931
59ca28de
EZ
8932 * xdisp.c (find_row_end): New function, refactored from display_line.
8933 (display_line): Use it.
017ea819
EZ
8934 (extend_face_to_end_of_line): In almost-filled rows, extend only
8935 if the row is R2L and not continued.
166e930d 8936 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 8937 Preserve overlay and string info in row->end.
166e930d
EZ
8938 (insert_left_trunc_glyphs): Support addition of left truncation
8939 glyphs to R2L rows.
b47e0dcf 8940 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
8941 glyph between adjacent windows. Fix a crash when a display string
8942 is continued to the next line. Don't return zero if cursor was
8943 found by `cursor' property of a display string.
b47e0dcf
EZ
8944 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8945 test for that explicitly.
59ca28de 8946
7acac9f4
GM
89472010-05-01 Glenn Morris <rgm@gnu.org>
8948
8949 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8950 for clarity.
8951 (OTHER_OBJ): Remove.
8952 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8953 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8954
45841e65
KK
89552010-05-01 Karel Klíč <kklic@redhat.com>
8956
8957 * fileio.c (Ffile_selinux_context): Context functions may return null.
8958
afc61943
DN
89592010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8960
80f00217 8961 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 8962
5a1bb006
GM
89632010-04-30 Glenn Morris <rgm@gnu.org>
8964
8965 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8966 (OTHER_OBJ): Define as a separate variable, for clarity.
8967
210af043
J
89682010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8969
2f8f196d 8970 * xsettings.c: Include limits.h and update file comment.
210af043 8971
0a7df391
GM
89722010-04-30 Glenn Morris <rgm@gnu.org>
8973
d5096f16
GM
8974 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8975 Set with configure, not cpp.
8976 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8977
7eb1ac33
GM
8978 * Makefile.in (mallocobj): Remove.
8979 (otherobj): Simplify using @OTHER_OBJ@.
8980
517d086b
GM
8981 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8982 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8983 Don't bother making nsgui.h dependency platform-specific.
8984
0a7df391
GM
8985 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8986
d6d23852
SM
89872010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8988
d2630aef
SM
8989 * process.c (read_process_output, exec_sentinel): Don't burp if the
8990 sentinel/filter kills the current buffer (bug#6060).
8991
f9dddf52 8992 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
8993 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8994 Remove unused var `args'.
8995 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8996 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8997 * doc.c (store_function_docstring): Use XSETCAR.
8998
f1e3642a
GM
89992010-04-28 Glenn Morris <rgm@gnu.org>
9000
faf535f8
GM
9001 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9002 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9003
c40f9449
GM
9004 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9005
658f86ca
GM
9006 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9007 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9008
bc0b5f61
GM
9009 * Makefile.in (FONT_OBJ): New, set by configure.
9010 (FONT_DRIVERS): Use $FONT_OBJ.
9011
294c50a0
GM
9012 * Makefile.in (LIBXMU): Set with configure, not cpp.
9013 * s/aix4-2.h (LIBXMU):
9014 * s/hpux10-20.h (LIBXMU):
9015 Remove definition, now set in configure.
9016
e6ec4e99
GM
9017 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9018
f1e3642a
GM
9019 * m/amdx86-64.h [i386]: Move this test to configure.in.
9020
c6ea2936
GM
90212010-04-27 Glenn Morris <rgm@gnu.org>
9022
8fdac2c3
GM
9023 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9024 * s/unixware.h (NEED_LIBW): Remove definition.
9025
986fb647
GM
9026 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9027 (TOOLKIT_LIBW): New, set by configure.
9028 (@X_TOOLKIT_TYPE@): No longer define it.
9029
c6ea2936
GM
9030 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9031 (MOTIF_LIBW): Set with configure, not cpp.
9032 * s/aix4-2.h (LIB_MOTIF):
9033 * s/gnu-linux.h (LIB_MOTIF):
9034 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9035
aaa36002
DN
90362010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9037
9038 Reduce CPP usage.
9039 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9040 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
9041 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9042 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 9043 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 9044
b678dd8b
GM
90452010-04-27 Glenn Morris <rgm@gnu.org>
9046
76cda504
GM
9047 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9048 since the defaults (set by the system file) are fine in most cases.
9049 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9050 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9051 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9052 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9053 Remove definitions, since they are set correctly in s/gnu-linux.h.
9054 * s/freebsd.h (START_FILES, LIB_STANDARD):
9055 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9056 * s/hpux10-20.h (START_FILES):
9057 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9058 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9059
b678dd8b
GM
9060 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9061 (MOTIF_LIBW): Use $LIBXP.
9062 (otherobj): Use $WIDGET_OBJ.
9063
9452ded1
DN
90642010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9065
7e10844c
DN
9066 * Makefile.in (LIBS_MACHINE): Remove, unused.
9067
9452ded1
DN
9068 Use autoconf instead of cpp for LIB_MATH.
9069 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9070 * s/cygwin.h (LIB_MATH): Likewise.
9071 * Makefile.in (LIB_MATH): Do not define with cpp.
9072 (LIBES): Use autoconf for LIB_MATH.
9073
fcebfc6a
KH
90742010-04-26 Kenichi Handa <handa@m17n.org>
9075
9076 * composite.c (Ffind_composition_internal): Fix the return value
9077 for an automatic composition.
9078
39e2ad1b
DN
90792010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9080
9081 Remove all NO_ARG_ARRAY uses.
9082 * fns.c (concat2, concat3, nconc2):
9083 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9084 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9085 * m/xtensa.h (NO_ARG_ARRAY):
9086 * m/template.h (NO_ARG_ARRAY):
9087 * m/sparc.h (NO_ARG_ARRAY):
9088 * m/sh3.h (NO_ARG_ARRAY):
9089 * m/mips.h (NO_ARG_ARRAY):
9090 * m/macppc.h (NO_ARG_ARRAY):
9091 * m/iris4d.h (NO_ARG_ARRAY):
9092 * m/intel386.h (NO_ARG_ARRAY):
9093 * m/ibms390x.h (NO_ARG_ARRAY):
9094 * m/ibms390.h (NO_ARG_ARRAY):
9095 * m/ibmrs6000.h (NO_ARG_ARRAY):
9096 * m/ia64.h (NO_ARG_ARRAY):
9097 * m/hp800.h (NO_ARG_ARRAY):
9098 * m/arm.h (NO_ARG_ARRAY):
9099 * m/amdx86-64.h (NO_ARG_ARRAY):
9100 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9101
adf4f59c
EZ
91022010-04-25 Eli Zaretskii <eliz@gnu.org>
9103
6bdf5d65
EZ
9104 * xdisp.c (display_line): Don't assume 2nd call to
9105 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
9106 (iterate_out_of_display_property): New function, body from pop_it.
9107 (pop_it): Use it.
adf4f59c 9108
dfbbda83
GM
91092010-04-24 Glenn Morris <rgm@gnu.org>
9110
9111 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9112 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9113 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9114 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9115
2d4018aa
EZ
91162010-04-24 Eli Zaretskii <eliz@gnu.org>
9117
a49884a6
EZ
9118 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9119 use `get_next_display_element' and `set_iterator_to_next' to
9120 advance to the next character, when looking for the character that
9121 begins the next row.
9122
76db6fcc 9123 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
9124 definition of "struct Lisp_Symbol".
9125
70eab5c1
GM
91262010-04-24 Glenn Morris <rgm@gnu.org>
9127
9128 * Makefile.in (CRT_DIR): New variable, set by configure.
9129 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9130 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9131
1ad4cc3d
DN
91322010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9133
e769f484
DN
9134 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9135
4196ff33
DN
9136 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9137
879b0ee4
DN
9138 Remove redundant flags.
9139 * s/freebsd.h (C_SWITCH_SYSTEM):
9140 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9141 * s/netbsd.h (C_SWITCH_SYSTEM):
9142 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9143 of these.
9144
03cbbcb8
DN
9145 Simplify m/intel386.h.
9146 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9147 user: ecrt0.c.
9148 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9149 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9150 the only user: s/unixware.h.
9151 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9152 from m/intel386.h.
bba3e508
SM
9153 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9154 Definitions moved here from m/intel386.h.
03cbbcb8 9155
1ad4cc3d
DN
9156 * m/mips.h: Remove #if 0 code.
9157
8785b888
EZ
91582010-04-23 Eli Zaretskii <eliz@gnu.org>
9159
728588cc
EZ
9160 Fix display of composed characters from L2R scripts in bidi buffers.
9161 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9162 After advancing IT past the composition, resync the bidi iterator
9163 with IT's position. (Bug#5977)
9164
a63f80b4
DN
91652010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9166
9167 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9168 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9169
ff5dec5c
SM
91702010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9171
9172 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9173
8785b888
EZ
91742010-04-23 Eli Zaretskii <eliz@gnu.org>
9175
58ccf243 9176 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
9177 * xdisp.c (pop_it): When the stack is popped after displaying
9178 from a string, bidi-iterate to exit from the text portion covered
9179 by the `display' property or overlay. (Bug#5988, bug#5920)
9180
feeb1604
DN
91812010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9182
8e324eb6
DN
9183 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9184 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9185
809fcaba
DN
9186 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9187 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9188
ed710380
DN
9189 Simplify STARTFILES definition.
9190 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9191 relying on Makefile.in to define it.
9192 * s/cygwin.h (START_FILES): Likewise.
9193 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9194
feeb1604
DN
9195 Clean up Solaris code.
9196 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9197 (LIB_MOTIF): Remove, configure takes care of this.
9198 (NOT_USING_MOTIF): Remove, unused.
9199 * xrdb.c: Remove #if 0-ed #include.
9200 (SYSV): Remove conditional for old SysV.
9201 * sysdep.c (closedir): Remove conditional code for Solaris,
9202 Solaris has closedir.
9203
a0d0b563
JD
92042010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9205
9206 * xsettings.c (read_and_apply_settings): Check if current_font is
9207 NULL before strcmp (Bug#6001).
9208
56bae7c7
DN
92092010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9210
9211 Clean up HP-UX files.
9212 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9213 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9214 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9215 * s/hpux10-20.h: ... to the only user, here.
9216
372b7a95
EZ
92172010-04-21 Eli Zaretskii <eliz@gnu.org>
9218
9219 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9220 use buffer-local values of paragraph-start and paragraph-separate.
9221 <paragraph_start_re, paragraph_separate_re>: Rename from
9222 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9223 (Bug#5992)
9224
f904c0f9
JD
92252010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9226
9227 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9228 current_tool_bar_style are new.
9229 (store_config_changed_event): Rename from store_font_changed_event.
9230 (XSETTINGS_TOOL_BAR_STYLE): New define.
9231 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9232 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9233 HAVE_XFT.
9234 (something_changedCB): store_font_changed_event is now
c4cc8b9a 9235 store_config_changed_event.
bba3e508
SM
9236 (parse_settings): Rename from parse_xft_settings.
9237 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 9238 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
9239 (apply_xft_settings): Take current settings as parameter. Do not
9240 call read_(xft)_settings.
9241 (read_and_apply_settings): New function.
bba3e508
SM
9242 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9243 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 9244 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
9245 Call read_and_apply_settings unconditionally.
9246 (xsettings_initialize): Call init_xsettings.
9247 (Ftool_bar_get_system_style): New function.
9248 (syms_of_xsettings): Define Qmonospace_font_name and
9249 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 9250 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 9251 dynamic-setting.
01c35094 9252 Move misplaced HAVE_GCONF.
f904c0f9
JD
9253
9254 * xsettings.h (Ftool_bar_get_system_style): Declare.
9255
9256 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9257 Qtext, Qboth, Qboth_horiz are new.
9258 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9259 Vtool_bar_style, tool_bar_max_label_size.
9260
9261 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9262
9263 * keyboard.c: QClabel is new.
9264 (parse_tool_bar_item): Take out QClabel from tool bar items.
9265 Try to construct a label if ther is no QClabel.
9266 (syms_of_keyboard): Intern :label as QClabel.
9267
9268 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9269 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9270 New.
9271
9272 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9273 dynamic-setting.el.
9274
9275 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9276 (xg_make_tool_item, xg_show_toolbar_item): New function.
9277 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9278 Call xg_make_tool_item to make a tool bar item.
9279 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9280
9281 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9282 into account for toolbars.
9283
c632dfda
JD
92842010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9285
9286 * data.c (make_blv): Declarations before code (Bug#5993).
9287
10efe302
GM
92882010-04-21 Glenn Morris <rgm@gnu.org>
9289
9290 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9291 Define using autoconf, not cpp.
9292 (LIBXSM): New variable, set by autoconf.
9293 (LIBXT): Use $LIBXSM.
9294
4285ac5a
DN
92952010-04-21 Dan Nicolaescu <local_user@dannlt>
9296
3ec759e7
DN
9297 Remove NOMULTIPLEJOBS, unused.
9298 * s/template.h (NOMULTIPLEJOBS):
9299 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9300
4285ac5a
DN
9301 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9302 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9303 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9304 detects -znocombreloc and passes it to the linker
9305 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9306
2807228d
GM
93072010-04-21 Glenn Morris <rgm@gnu.org>
9308
9309 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9310
574c05e2
KK
93112010-04-21 Karel Klíč <kklic@redhat.com>
9312
9313 * Makefile.in (LIBSELINUX_LIBS): New.
9314 (LIBES): Add $LIBSELINUX_LIBS.
9315 * eval.c, lisp.h (call7): New function.
9316 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9317 (Ffile_selinux_context, Fset_file_selinux_context):
9318 New functions.
9319 (Fcopy_file): New parameter preserve-selinux-context.
9320 (Frename_file): Preserve selinux context when renaming by copy-file.
9321
91eac4bb 93222010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 9323 Eli Zaretskii <eliz@gnu.org>
91eac4bb 9324
50426a04
JB
9325 Don't depend on cm.c or termcap.c on Windows, use stubs.
9326 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9327 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9328 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9329 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9330 (sys_tputs, sys_tgetstr): New stubs.
9331 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9332 (tputs, tgetstr): New; define to sys_*.
91eac4bb 9333
938efb77
JB
93342010-04-20 Juanma Barranquero <lekktu@gmail.com>
9335
9336 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9337
b4bf28b7
SM
93382010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9339
8b1e1112
SM
9340 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9341 Just signal a warning rather than an error when inside a let.
9342 (Fmake_variable_frame_local): Add the same test.
9343
933ac235
SM
9344 * font.c (syms_of_font): Make the style table vars read-only.
9345
b4bf28b7
SM
9346 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9347 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9348
9349 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9350
93d68d0c
EZ
93512010-04-20 Eli Zaretskii <eliz@gnu.org>
9352
9353 Fix R2L paragraph display on TTY.
9354
9355 * xdisp.c (unproduce_glyphs): New function.
9356 (display_line): Use it when produced glyphs are discarded from R2L
9357 glyph rows.
9358 (append_composite_glyph): In R2L rows, prepend the glyph rather
9359 than appending it.
9360
9361 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9362 rather than append it. Set up the resolved_level and bidi_type
9363 attributes of the appended glyph.
283ccc18
EZ
9364 (produce_special_glyphs): Mirror the backslash continuation
9365 character in R2L lines.
93d68d0c 9366
283ccc18 9367 Implement display of R2L paragraphs in GUI sessions.
26cdf528 9368
283ccc18
EZ
9369 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9370 append_stretch_glyph.
bba3e508
SM
9371 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9372 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
9373 (append_stretch_glyph): In reversed row, prepend the glyph rather
9374 than append it. Set resolved_level and bidi_type of the glyph.
9375 (extend_face_to_end_of_line): If the row is reversed, prepend a
9376 stretch glyph whose width is such that the rightmost glyph will be
9377 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
9378 TTY frames in testing whether a line needs face extension.
9379 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
9380 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9381 region face.
bba3e508
SM
9382 (set_cursor_from_row, display_line):
9383 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 9384 row->continuation_lines_width.
283ccc18
EZ
9385 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9386 are at ZV. Fixes a crash when reseated to ZV by
9387 try_window_reusing_current_matrix.
45903529
EZ
9388 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9389 which happens with R2L glyph rows. Fixes a crash when inserting a
9390 character at end of an R2L line.
283ccc18
EZ
9391 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9392 treat them as having zero-width characters. Improve comments.
9393 Don't reverse pos_before and pos_after for reversed glyph rows.
9394 Set cursor.x to negative value when the cursor might be on the
9395 left fringe.
9396 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9397 left fringe, not the right one.
f951a506
EZ
9398 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9399 (erase_phys_cursor): For reversed cursor_row, support cursor on
9400 the left fringe.
9401
283ccc18
EZ
9402 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9403 of continuation indicators on the fringes.
9404 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9405 left fringe.
9406
f951a506
EZ
9407 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9408 draw cursor on the left fringe.
9409
9410 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9411 cursor on the left fringe.
9412
f951a506
EZ
9413 * dispnew.c (update_text_area): Handle reversed desired rows when
9414 the cursor is on the left fringe.
9415 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9416 below, not by 0, for when the cursor is on the left fringe.
9417
3bb49aaf
JD
94182010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9419
9420 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9421 widget is a scrollbar.
9422
c0be27fd
KH
94232010-04-20 Kenichi Handa <handa@m17n.org>
9424
9425 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9426 only when the arg CHARSET_LIST is nil.
9427
ce5b453a
SM
94282010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9429
9430 Make variable forwarding explicit rather the using special values.
9431 Basically, this makes the structure of buffer-local values and object
9432 forwarding explicit in the type of Lisp_Symbols rather than use
9433 special Lisp_Objects for that. This tends to lead to slightly more
9434 verbose code, but is more C-like, simpler, and makes it easier to make
9435 sure we handled all cases, among other things by letting the compiler
9436 help us check it.
9437 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9438 Removing forwarding objects.
9439 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9440 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9441 explicit rather than hiding them inside Lisp_Object "values".
9442 (XFWDTYPE): New macro.
9443 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9444 (XBUFFER_LOCAL_VALUE): Remove.
9445 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9446 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9447 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9448 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9449 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9450 Remove the Lisp_Misc_* header.
9451 (struct Lisp_Buffer_Local_Value): Redefine.
9452 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9453 (struct Lisp_Misc_Any): Add filler to get the right size.
9454 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9455 Lisp_Intfwd.
9456 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9457 (DEFVAR_KBOARD): Allocate a forwarding object.
9458 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9459 (let_shadows_global_binding_p): New function.
9460 (union Lisp_Val_Fwd): New type.
9461 (make_blv): New function.
9462 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9463 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9464 (swap_in_symval_forwarding, find_symbol_value, Fset)
9465 (let_shadows_buffer_binding_p, set_internal, default_value)
9466 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9467 (Fkill_local_variable, Fmake_variable_frame_local)
9468 (Flocal_variable_p, Flocal_variable_if_set_p)
9469 (Fvariable_binding_locus):
9470 * xdisp.c (select_frame_for_redisplay):
9471 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9472 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9473 * frame.c (store_frame_param):
9474 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9475 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9476 value structure.
9477 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9478 (clone_per_buffer_values): Only adjust markers into the current buffer.
9479 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9480 (Fbuffer_local_value, set_buffer_internal_1)
9481 (swap_out_buffer_local_variables):
9482 Adapt to the new symbol value structure.
9483 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9484 (defvar_per_buffer): Take a new arg for the fwd object.
9485 (buffer_lisp_local_variables): Return a proper alist (different fix
9486 for bug#4138).
9487 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9488 (Fgarbage_collect): Don't handle buffer_defaults specially.
9489 (mark_object): Handle new symbol value structure rather than the old
9490 special Lisp_Misc_* objects.
9491 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9492 * term.c (set_tty_color_mode):
9493 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9494 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9495 a buffer_local_flags.
9496 * print.c (print_object): Get rid of impossible forwarding objects.
9497
fd3998ff
EZ
94982010-04-19 Eli Zaretskii <eliz@gnu.org>
9499
9500 * bidi.c (bidi_get_type, bidi_get_category)
9501 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
9502 (bidi_type_of_next_char, bidi_level_of_next_char):
9503 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 9504
e42cd1a7
JB
95052010-04-19 Juanma Barranquero <lekktu@gmail.com>
9506
9507 * dired.c (Ffile_attributes): Fix typo in docstring.
9508
6e104790 95092010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
9510
9511 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9512 NSInteger (Bug#5811).
9513
6e104790 95142010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
9515
9516 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9517 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9518
6e104790 95192010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
9520
9521 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9522
6e104790
SM
95232010-04-19 Chong Yidong <cyd@stupidchicken.com>
9524
9525 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9526 terminal frames (Bug#5837).
9527
37dcfea0
EZ
95282010-04-19 Eli Zaretskii <eliz@gnu.org>
9529
d1da276f
EZ
9530 * .gdbinit (xsubchartable): New command.
9531
37dcfea0
EZ
95322010-04-19 Eli Zaretskii <eliz@gnu.org>
9533
9534 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 9535 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
9536 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9537 and
9538 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9539
e9515805
SM
95402010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9541
9542 * alloc.c (Fpurecopy): Hash-cons if requested.
9543 (syms_of_alloc): Update purify-flag docstring.
9544
22aa44a8
JD
95452010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9546
9547 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9548 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9549
ebb5722e
EZ
95502010-04-17 Eli Zaretskii <eliz@gnu.org>
9551
9552 Fix a crash when an NSM character is inserted at BEGV.
9553
9554 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9555 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9556 NEUTRAL_B or UNKNOWN_BT.
9557
0f4442ef
EZ
95582010-04-16 Eli Zaretskii <eliz@gnu.org>
9559
9560 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9561 other rows with cursor unless they are different from this row and
9562 this row is part of a continued line. (Bug#5943)
9563
7d4e45f8
DN
95642010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9565
9566 * s/freebsd.h: Restore osreldate.h include.
9567 Suggested by Naohiro Aota.
9568
5ba5ec85
J
95692010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9570
9571 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9572
20af301d
CY
95732010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9574
9575 * s/cygwin.h: Avoid linking against static libgcc.
9576
a4b000fb
JL
95772010-04-15 Juri Linkov <juri@jurta.org>
9578
9579 * window.c: Add Qscroll_command.
9580 Remove Vscroll_preserve_screen_position_commands.
9581 (window_scroll_pixel_based, window_scroll_line_based): Check the
9582 `scroll-command' property on the last command instead of searching
9583 the last command in Vscroll_preserve_screen_position_commands.
9584 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9585 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9586 (scroll-preserve-screen-position): Doc fix.
9587 (Vscroll_preserve_screen_position_commands): Remove variable.
9588
bc319ba4
DN
95892010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9590
6bb24457
DN
9591 * xdisp.c (message): Do not use NO_ARG_ARRAY.
9592
19d4c244
DN
95932010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
9594
9595 Reduce cpp use in Makefile.in.
9596 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
9597 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
9598 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
9599 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
9600 (CRT0_COMPILE): Remove, inline it in the only user.
9601
32129746
JL
96022010-04-14 Juri Linkov <juri@jurta.org>
9603
9604 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
9605 `scroll-up-command' and `M-v' from `scroll-down' to
9606 `scroll-down-command'.
9607
9013a7f8
JL
96082010-04-14 Juri Linkov <juri@jurta.org>
9609
9610 * window.c (Vscroll_preserve_screen_position_commands): New variable
9611 with the default value as the list of Qscroll_down and Qscroll_up.
9612 (window_scroll_pixel_based, window_scroll_line_based): Search the
9613 last command in the list Vscroll_preserve_screen_position_commands
9614 instead of comparing with Qscroll_up and Qscroll_down.
9615
4bef8d26
JD
96162010-04-13 Jan Djärv <jan.h.d@swipnet.se>
9617
92848133
JD
9618 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
9619 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
9620 does that.
9621
4bef8d26
JD
9622 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
9623 to zero.
9624
58b963f7
SM
96252010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9626
84164a0d
SM
9627 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
9628
2b0a91e7
SM
9629 Try to solve the problem of spurious EOF chars in long lines of text
9630 sent to interactive subprocesses.
9631 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
9632 (system_process_attributes): Remove unused var `ttotal'.
9633 * process.c (send_process): Don't bother breaking long line with EOF
9634 chars when talking to ttys any more.
9635 (wait_reading_process_output): Output a warning when called in such
9636 a way that it could block without being interruptible.
9637
58b963f7
SM
9638 Try to detect file modification within the same second.
9639 * buffer.h (struct buffer): New field modtime_size.
9640 * buffer.c (reset_buffer): Initialize it.
9641 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
9642 (Fverify_visited_file_modtime): Check it.
9643 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9644 (Fset_visited_file_modtime): Set (or clear) it.
9645
01f5787b
SM
96462010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9647
9648 * process.c (status_notify): Remove unused var `ro'.
9649
83725342
JD
96502010-04-12 Jan Djärv <jan.h.d@swipnet.se>
9651
9652 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
9653 more than one visual (Bug#5938).
9654
b9465836
DN
96552010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9656
50426a04
JB
9657 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
9658 Undefine.
b9465836 9659
8d9c8ece
DN
96602010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
9661
b1f52161
DN
9662 Remove C_SWITCH_SYSTEM_TEMACS.
9663 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
9664 (malloc, realloc, free): Use emacs, not temacs for conditional
9665 definition.
9666
9667 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
9668 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
9669
8d9c8ece
DN
9670 Use autoconf, not cpp for some variables.
9671 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
9672 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
9673 (ALL_CFLAGS): Use them as make variables.
9674 (really-lwlib, really-oldXMenu): Do not pass them.
9675
1ecb2d3f
JD
96762010-04-11 Jan Djärv <jan.h.d@swipnet.se>
9677
9678 * xmenu.c (apply_systemfont_to_dialog): New.
9679 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
9680
3a4fa2f2
SM
96812010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9682
97e53006
SM
9683 * process.c (exec_sentinel): Preserve current-buffer.
9684
3a4fa2f2
SM
9685 * process.c (read_process_output): Move the save-current-buffer to
9686 apply to both the filter and the non-filter branches.
9687
88df7221
DN
96882010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
9689
9690 * s/msdos.h (UNEXEC): New definition.
9691
5634ff85
YM
96922010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9693
6eff5c3d
YM
9694 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
9695 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
9696
9697 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
9698 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
9699 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
9700 TRY_WINDOW_CHECK_MARGINS.
9701
9702 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
9703 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
9704 width only when it is for padding.
5634ff85 9705
b13aef54
J
97062010-04-09 Jan Djärv <jan.h.d@swipnet.se>
9707
9708 * xfns.c (Fx_show_tip): Call try_window in a loop until
9709 fonts_changed_p is zero (Bug#2423).
9710
21d28484
EZ
97112010-04-08 Eli Zaretskii <eliz@gnu.org>
9712
9713 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
9714 the end of TEXT_AREA. (Bug#5856)
9715
0269ef77
JD
97162010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9717
9718 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9719 HAVE_GCONF.
9720
5930fe97
EZ
97212010-04-08 Eli Zaretskii <eliz@gnu.org>
9722
9723 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
9724 prev.orig_type, for resolving type of NSM. (Bug#5858)
9725
99852628
JD
97262010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9727
9728 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9729 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
9730 in current_font.
9731 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
9732 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
9733 New functions.
9734 (syms_of_xsettings): Initialize current_font.
9735 defsubr Sfont_get_system_normal_font.
99852628 9736
686b968e
JB
9737 * xsettings.h (Ffont_get_system_normal_font)
9738 (xsettings_get_system_normal_font): Declare.
99852628
JD
9739
9740 * xfns.c (extern xlwmenu_default_font): Remove.
9741 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
9742 to xlwmenu.c.
9743
9744 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
9745 menu items in UTF-8.
9746
2f8f196d 9747 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 9748 (apply_systemfont_to_menu): New function.
bba3e508
SM
9749 (set_frame_menubar, create_and_show_popup_menu):
9750 Call apply_systemfont_to_menu.
99852628 9751
7fc874c4
J
97522010-04-07 Jan Djärv <jan.h.d@swipnet.se>
9753
9754 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
9755 FRAME_LINE_TO_PIXEL_Y.
9756
9757 * xterm.c (x_set_window_size_1): Don't add border_width/height to
9758 pixelwidth/height.
9759
863bf481
DN
97602010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
9761
5e5a3b92
DN
9762 Simplify code for HP machines.
9763 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
9764 for GNU_LINUX, not needed.
9765 (UNEXEC, NEED_BSDTTY): Move definitions...
9766 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
9767
863bf481
DN
9768 * m/iris4d.h (UNEXEC): Move definition ...
9769 * s/irix6-5.h (UNEXEC): ... here.
9770
3e6bec3b
JD
97712010-04-04 Jan Djärv <jan.h.d@swipnet.se>
9772
9773 * xfns.c (set_machine_and_pid_properties): New function.
9774 (Fx_create_frame): Call set_machine_and_pid_properties.
9775
2912322b
SM
97762010-04-03 Eli Zaretskii <eliz@gnu.org>
9777
bba3e508
SM
9778 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
9779 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
9780 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
9781
2912322b
SM
9782 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
9783 in this function. (Bug#5703)
9784
97852010-04-03 Chong Yidong <cyd@stupidchicken.com>
9786
9787 * nsterm.h: Fix last change.
9788
c435b432
DN
97892010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
9790
a568f507
DN
9791 * m/intel386.h (NO_REMAP): Move definition ...
9792 * s/msdos.h (NO_REMAP): ... here.
9793
4cd9f6c2
DN
9794 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9795
c435b432
DN
9796 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9797 used on those platforms.
9798
42a2c622
DN
97992010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9800
9801 Remove extern errno declarations.
9802 * xterm.c:
9803 * xrdb.c:
9804 * w32term.c:
9805 * unexec.c:
9806 * unexaix.c:
9807 * sysdep.c:
9808 * process.c:
9809 * lread.c:
9810 * keyboard.c:
9811 * floatfns.c:
9812 * filelock.c:
9813 * fileio.c:
9814 * emacs.c (main):
9815 * ecrt0.c:
9816 * dispnew.c:
9817 * callproc.c:
9818 * buffer.c: Remove errno extern declarations.
9819 * s/netbsd.h (NEED_ERRNO): Remove.
9820
8224f93d
DN
98212010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9822
9823 Remove all uses of LIBX11_SYSTEM.
9824 * Makefile.in (LIBX11_SYSTEM): Remove.
9825 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
9826 instead.
9827
814062c7
EZ
98282010-04-01 Eli Zaretskii <eliz@gnu.org>
9829
ed68db4d
EZ
9830 Remove support for DJGPP v1.x (bug#5813).
9831
9832 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
9833 * s/msdos.h:
9834 * unexec.c (make_hdr, copy_text_and_data):
9835 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 9836 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
9837 (IT_set_terminal_modes, __write, _rename, gethostname)
9838 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
9839 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
9840 the value of __DJGPP__.
ed68db4d
EZ
9841 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
9842 compatibility code.
8224f93d
DN
9843 * lread.c:
9844 * gmalloc.c (memalign):
9845 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
9846 * emacs.c (main):
9847 * dosfns.c (init_dosfns):
ed68db4d
EZ
9848 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
9849
52f4d8d5
EZ
98502010-04-01 Eli Zaretskii <eliz@gnu.org>
9851
814062c7
EZ
9852 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
9853 string with `cursor' property comes from an `after-string'
9854 overlay. (Bug#5816)
9855
0dc2e11d
GM
98562010-04-01 Glenn Morris <rgm@gnu.org>
9857
9858 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
9859 Define as Makefile variables.
9860 (LIBX): Use above variables rather than directly using autoconf.
9861
1d29df59
DN
98622010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
9863
9864 Clean up BSD_SYSTEM use.
9865 * xterm.c:
9866 * process.c:
9867 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
9868 for including <sys/ioctl.h>.
9869 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
9870 code is only used for MSDOS.
9871
1546c559
JL
98722010-03-31 Juri Linkov <juri@jurta.org>
9873
9874 * image.c: Add `Qextension_data'.
9875 (syms_of_image): Initialize and staticpro `Qextension_data'.
9876 (Fimage_metadata): Rename from `Fimage_extension_data'.
9877 (gif_load): Put GIF extension data to the property
9878 `Qextension_data'.
9879
6521c534
CY
98802010-03-31 Chong Yidong <cyd@stupidchicken.com>
9881
9882 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
9883 * nsterm.h: Fix prototype.
9884
52c30783
EZ
98852010-03-31 Eli Zaretskii <eliz@gnu.org>
9886
9887 * xdisp.c (highlight_trailing_whitespace): Support highlight of
9888 trailing whitespace in right-to-left rows.
9889
855a0da7
SM
98902010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9891
9892 Get rid of the direct_output optimizations.
9893 * keyboard.c (nonundocount): Remove extern declaration.
9894 (command_loop_1): Remove brittle optimisation for cheap and
9895 common operations.
9896 * xdisp.c (redisplay_internal): Don't bother checking
9897 redisplay_performed_directly_p any more.
9898 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
9899 any more.
9900 * dispnew.c (redisplay_performed_directly_p)
9901 (direct_output_for_insert, direct_output_forward_char):
9902 * dispextern.h (redisplay_performed_directly_p)
9903 (direct_output_for_insert, direct_output_forward_char): Remove.
9904 * cmds.c (nonundocount): Make it static.
9905
85738751 99062010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
9907
9908 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
9909
85738751 99102010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
9911
9912 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
9913 invisible (Bug#5766).
9914
85738751 99152010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 9916
855a0da7
SM
9917 * xdisp.c (x_consider_frame_title, update_window_cursor):
9918 Remove HAVE_NS conditionals.
194d44e7 9919 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
9920
9921 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
9922 filename for the title.
9923 (ns_set_doc_edited): Do nothing if the selected window is a
9924 minibuffer window.
9925
9926 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9927 ns_set_doc_edited.
9928
9929 * nsterm.m: Remove unneeded prototype.
9930
85738751 99312010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
9932
9933 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9934 in the DOC file. (Bug#5336)
9935
85738751 99362010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
9937
9938 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9939
75d1428c
SM
99402010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9941
9942 * window.c (keys_of_window): Remove redundant/overridden bindings.
9943
82043cfb
EZ
99442010-03-30 Eli Zaretskii <eliz@gnu.org>
9945
9946 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9947 Restore original behavior when the iterator is not bidi_p.
9948
b5dd0ae7
DN
99492010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9950
9951 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9952
bd924a5d
EZ
99532010-03-30 Eli Zaretskii <eliz@gnu.org>
9954
9955 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9956 are outside the range of cached character positions.
9957
3580374b
JB
99582010-03-30 Juanma Barranquero <lekktu@gmail.com>
9959
9960 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9961
a7b02820
EZ
99622010-03-30 Eli Zaretskii <eliz@gnu.org>
9963
9964 Initial support for bidirectional editing.
9965
9966 * Makefile.in (obj): Include bidi.o.
9967 (bidi.o): New target.
9968
9969 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9970 ($(BLD)/bidi.$(O)): New target.
9971
9972 * bidi.c: New file.
9973
9974 * buffer.h (struct buffer): New members bidi_display_reordering
9975 and bidi_paragraph_direction.
9976
9977 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9978 and bidi_paragraph_direction.
9979 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9980 and bidi-paragraph-direction.
9981 (Fbuffer_swap_text): Swap the values of
9982 bidi_display_reordering and bidi_paragraph_direction.
9983
9984 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9985 (bidi_type_t, bidi_dir_t): New types.
9986 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9987 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9988 prev_stop, base_level_stop, and eol_pos.
9989 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9990 (IT_STACK_SIZE): Enlarge to 5.
9991 (struct glyph_row): New member reversed_p.
9992 <string_buffer_position>: Update prototype.
9993 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9994 glyph_row if bidi_it.paragraph_dir == R2L.
9995 (struct glyph): New members resolved_level and bidi_type.
9996
9997 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9998 processing or buffer's direction is right-to-left.
9999 (prepare_desired_row): Preserve the reversed_p flag.
10000 (row_equal_p): Compare the reversed_p attributes as well.
10001
bba3e508
SM
10002 * xdisp.c (init_iterator): Initialize it->bidi_p.
10003 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
10004 buffer's value of bidi_paragraph_direction.
10005 (reseat_1): Initialize bidi_it.first_elt.
10006 (set_iterator_to_next, next_element_from_buffer): Use the value of
10007 paragraph_embedding to determine the paragraph direction.
10008 (set_iterator_to_next): Under bidi reordering, call
10009 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10010 new_paragraph flag is set in the bidi iterator.
10011 (next_element_from_buffer): If bidi_it.first_elt is set,
10012 initialize paragraph direction and find the first character to
10013 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
10014 prime the bidi iterator starting at the line's beginning.
10015 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
10016 non-linearity of the bidi iteration. Likewise for when we back up
10017 beyond the previous stop_charpos. When moving across stop_charpos,
10018 record it in prev_stop.
10019 (display_line): Set row->end and it->start for the next row to the
10020 next character in logical order. Always extend reversed_p rows to
10021 the end of line, even if they end at ZV. Copy the reversed_p flag
10022 to the next glyph row. Keep calling set_cursor_from_row for
10023 bidi-reordered rows even if we already have a possible candidate
10024 for cursor position. Set row_end after all the row's glyphs have
10025 been produced, by looping over the glyphs. Record the position
10026 after EOL in it->eol_pos, and use it to set end_pos of the last
10027 row produced for a continued line.
10028 <Qright_to_left, Qleft_to_right>: New variables.
10029 (syms_of_xdisp): Initialize and staticpro them.
10030 (string_buffer_position_lim): New function.
10031 (string_buffer_position): Most of code moved to
10032 string_buffer_position_lim. Last argument and return value are
10033 now EMACS_INT; all callers changed.
10034 (set_cursor_from_row): Rewritten to support bidirectional text and
10035 reversed glyph rows.
bba3e508
SM
10036 (text_outside_line_unchanged_p, try_window_id):
10037 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
10038 paragraph direction can be affected by the change.
10039 (append_glyph, append_composite_glyph)
10040 (produce_image_glyph, append_stretch_glyph): Set the
10041 resolved_level and bidi_type members of each glyph.
10042 (append_glyph): If the glyph row is reversed, prepend the glyph
10043 rather than appending it.
10044 (handle_stop_backwards): New function.
10045 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 10046 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
10047 base_level_stop for the new position.
10048 (handle_invisible_prop): Under bidi iteration, skip invisible text
10049 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10050 paragraph direction. Update IT->prev_stop after skipping
10051 invisible text.
10052 (move_it_in_display_line_to): New variables prev_method
10053 and prev_pos. Compare for strict equality in
10054 BUFFER_POS_REACHED_P.
10055 (try_cursor_movement): Examine all the candidate rows that occlude
10056 point, to return the best match. If rows are bidi-reordered
10057 and point moved backwards, back up to the row that is not a
10058 continuation line, and start looking for a suitable row from
10059 there.
10060
10061 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10062 rather than appending, if the glyph_row's reversed_p flag is set.
10063 Set the resolved_level and bidi_type members of each glyph.
10064
10065 * .gdbinit (pbiditype): New command.
10066 (pgx): Use it to display bidi level and type of the glyph.
10067 (pitx): Display some bidi information about the iterator.
10068 (prowlims, pmtxrows): New commands.
10069
32a8894e
DN
100702010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10071
10072 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10073 * s/usg5-4.h (LIBS_DEBUG):
10074 * s/irix6-5.h (C_DEBUG_SWITCH):
10075 * s/gnu-linux.h (LIBS_DEBUG):
10076 * s/darwin.h (LIBS_DEBUG):
10077 * s/bsd-common.h (LIBS_DEBUG):
10078 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10079 * m/iris4d.h (LIBS_DEBUG):
10080 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10081
10082 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10083 (LIBS_DEBUG): Remove definition.
10084
649dbf36
CY
100852010-03-27 Chong Yidong <cyd@stupidchicken.com>
10086
10087 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10088 Windows.
10089
cad4261f
YM
100902010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10091
10092 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10093 `connect' (Bug#5723).
10094
cd591dbc
HE
100952010-03-25 Helmut Eller <eller.helmut@gmail.com>
10096
10097 * process.c (Fmake_network_process): Call `select' for interrupted
10098 `connect' rather than creating new socket (Bug#5173).
10099
e867cb5d 101002010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
10101
10102 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10103
10104 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10105
10106 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10107
e867cb5d 101082010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
10109
10110 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10111 XLoadQueryFont.
10112
e867cb5d 101132010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
10114
10115 * coding.c (decode_coding_ccl): Fix previous change for the
10116 multibyte case.
fb608df3
KH
10117 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10118 case that the output buffer is fullfilled.
10119 (encode_coding): Setup ccl program here.
fbdc1721 10120
5845f0ed
DN
101212010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10122
814fb708
DN
10123 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10124
5845f0ed
DN
10125 Simplify LIBS_MACHINE definitions.
10126 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10127 * m/iris4d.h (LIBS_MACHINE): Likewise.
10128 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10129 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 10130 * s/netbsd.h: Remove commented out code.
5845f0ed 10131
b7064064
DN
101322010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10133
df7734b2
DN
10134 Remove dead code dealing with POSIX_SIGNALS.
10135 * atimer.c (set_alarm): Remove dead code, all USG systems define
10136 POSIX_SIGNALS.
10137 * data.c (arith_error): Likewise.
10138 * keyboard.c (input_available_signal, handle_user_signal)
10139 (interrupt_signal): Likewise.
10140 * process.c (sigchld_handler): Likewise.
10141 (create_process): Remove if 0 code. Remove HPUX conditional when
10142 !defined (POSIX_SIGNALS), it cannot be true.
10143 * syssignal.h: Remove USG5_4 and USG conditionals when
10144 !POSIX_SIGNALS, they cannot be true.
10145
b7064064
DN
10146 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10147 NO_SOCK_SIGIO, not used anymore.
10148
55da5ee3
DN
101492010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10150
0be96e3a
DN
10151 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10152 support vax on BSDs.
10153
55da5ee3
DN
10154 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10155 * s/aix4-2.h (ORDINARY_LINK): ... here.
10156
c0282183
AS
101572010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10158
82c3d67a
AS
10159 * Makefile.in (abs_builddir): Define.
10160 (bootstrap_exe): Use it.
10161 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 10162
3613edce
SM
101632010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10164
10165 * Makefile.in (bootstrap_exe): Use an absolute name.
10166
7f110ddc
DN
101672010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10168
22e87574
DN
10169 Remove support for old GNU/Linux using libc version 5.
10170 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10171 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10172
05a670e6
DN
10173 Consolidate redundant definitions in s/bsd-common.h.
10174 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10175 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10176 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10177 doing it in all files that include this one.
10178 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10179 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10180 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10181 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10182 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10183 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10184 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10185 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10186 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10187
2968f561
DN
10188 Consolidate redundant definitions.
10189 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10190 it's undefined in all files that include this one.
10191 (POSIX_SIGNALS): Define here instead of doing it in all files that
10192 include this one.
10193 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10194 (POSIX_SIGNALS): Do not define.
10195 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10196 (POSIX_SIGNALS): Do not define.
10197 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10198 (POSIX_SIGNALS): Do not define.
10199
15d25dc0
DN
10200 Remove support for old UNIX System V systems.
10201 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
10202 * s/usg-5-4-2.h: Remove.
10203
07e339e4
DN
10204 Remove support for Solaris on PPC and for old versions.
10205 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10206 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10207 that cancel each other.
10208 * s/sol2-3.h:
10209 * s/sol2-4.h:
10210 * s/sol2-5.h: Remove.
10211 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10212 (NO_REMAP): Remove, unused.
10213 (UNEXEC): Move definition ...
10214 * s/aix4-2.h (UNEXEC): ... here.
10215
7f110ddc
DN
10216 * s/openbsd.h: Remove support for non-ELF and for systems that do
10217 not support shared libraries.
10218 * s/netbsd.h:
10219 * s/freebsd.h: Likewise.
10220
605f35cd
DN
102212010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10222
10223 Remove non-working support for lynxos 3.0.
10224 * s/lynxos.h: Remove file.
10225
10226 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10227 COFF_BSD_SYMBOLS, nothing defines it anymore.
10228
aed71cf4
DN
102292010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10230
10231 Remove obsolete uses of HAVE_SHM.
10232 * emacs.c (standard_args):
10233 (Fdump_emacs):
10234 (syms_of_emacs): Remove code depending on HAVE_SHM.
10235
10236 * alloc.c: Remove HAVE_SHM dependent definition.
10237
10238 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10239
aded53ff
GM
102402010-03-18 Glenn Morris <rgm@gnu.org>
10241
17284745
GM
10242 * emacs.c (USAGE4): Hard-code bug address.
10243 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10244 (bug_reporting_address): Remove.
10245 (main): Don't call bug_reporting_address.
10246
aded53ff
GM
10247 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10248 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10249
303500aa
CY
102502010-03-15 Chong Yidong <cyd@stupidchicken.com>
10251
10252 * xfns.c (Fx_create_frame):
10253 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10254 on left.
10255
cef3058f
CY
102562010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10257
10258 * editfns.c (Fformat): Account for string precision when computing
10259 field width (Bug#5710).
10260
a647d59d
CY
102612010-03-12 Chong Yidong <cyd@stupidchicken.com>
10262
4fa42018
CY
10263 * xfns.c (Fx_create_frame): Set default to Qright.
10264
a647d59d
CY
10265 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10266 all window systems.
10267
6da23aaa
EZ
102682010-03-12 Eli Zaretskii <eliz@gnu.org>
10269
a96f6398 10270 These changes remove termcap.c from the build on Posix platforms.
83d02def 10271 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
10272 (MSDOS_OBJ): ...to here.
10273 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10274 now identical to when LIBS_TERMCAP is defined.
10275
10276 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10277
10278 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10279
a96f6398 10280 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 10281
288f9fc0
CY
102822010-03-10 Chong Yidong <cyd@stupidchicken.com>
10283
10284 * Branch for 23.2.
10285
d48cd3f4
SM
102862010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10287
10288 Cleanup setup of gl_state in various parts of the code.
10289 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10290 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10291 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10292 (skip_chars):
10293 * regex.c (regex_compile): Use it.
10294 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10295 it's now set in regex_compile when/if we need it.
10296
618db430
SM
102972010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10298
c0335e02
SM
10299 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10300 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10301 (QUIT): Use it to consolidate code and remove redundancy.
10302 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10303
254c06a8
SM
10304 * regex.c (regex_compile): Setup gl_state as well.
10305
618db430
SM
10306 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10307 (in_classes): Use CONSP before XCAR/XCDR.
10308
233f0c9f
CY
103092010-03-03 Chong Yidong <cyd@stupidchicken.com>
10310
10311 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10312 definitions, so that keyboard macros are correctly handled
10313 (Bug#5481).
10314
75f80e63
EZ
103152010-03-02 Eli Zaretskii <eliz@gnu.org>
10316
10317 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10318 text that could be relocated inside the call to emacs_mule_char.
10319 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10320 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10321
dcfb9bc4
KH
103222010-03-02 Kenichi Handa <handa@m17n.org>
10323
fc9a17bc
KH
10324 * character.c (parse_str_as_multibyte): Fix handling of the
10325 multibyte form of raw-bytes.
10326 (str_as_multibyte): Likewise.
10327
dcfb9bc4
KH
10328 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10329 form of raw-bytes.
10330
412c01b6
CY
103312010-02-28 Chong Yidong <cyd@stupidchicken.com>
10332
10333 * charset.c (load_charset_map_from_file)
10334 (load_charset_map_from_vector): Zero out allocated
10335 charset_map_entries before using them.
10336
df7e1ea0
AS
103372010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10338
10339 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10340
fe69a722
CY
103412010-02-27 Chong Yidong <cyd@stupidchicken.com>
10342
4ed28cf4
CY
10343 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10344 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 10345
7379cfce
KH
103462010-02-26 Kenichi Handa <handa@m17n.org>
10347
f88cc4d6
KH
10348 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10349
7379cfce
KH
10350 * xdisp.c (reseat_to_string): Fix previous change.
10351
cf2fdcfb
CY
103522010-02-26 David Reitter <david.reitter@gmail.com>
10353
10354 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10355 Lisp_Object (Bug#4736).
10356
cc6c7c75
KH
103572010-02-25 Kenichi Handa <handa@m17n.org>
10358
10359 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10360
32e737d7
JD
103612010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10362
10363 * xterm.c (XTflash): Move declarations before statements.
10364
10365 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10366 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10367 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10368 (xg_create_tool_bar): Remove unused variables.
10369 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 10370 (xg_create_frame_widgets): Remove variable grav.
32e737d7 10371
676cae9f
CY
103722010-02-21 Chong Yidong <cyd@stupidchicken.com>
10373
10374 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10375
886cc2b8
SM
103762010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10377
10378 * term.c (fatal): Add a final \n if needed (bug#5596).
10379
ddb2d8e2
CY
103802010-02-18 Chong Yidong <cyd@stupidchicken.com>
10381
10382 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10383
2a4f8d3d
GM
103842010-02-18 Glenn Morris <rgm@gnu.org>
10385
10386 * callint.c (Finteractive): Doc fix.
10387
ebaf11b6
KH
103882010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10389
886cc2b8
SM
10390 * coding.c (record_conversion_result):
10391 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
10392 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10393 memory allocation error.
10394
d0396581
KH
103952010-02-17 Kenichi Handa <handa@m17n.org>
10396
886cc2b8
SM
10397 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10398 Fix for the case that the output buffer is fullfilled.
d0396581
KH
10399 (decode_coding): Setup ccl program here. Keep looping when the
10400 decoder stopped because the output buffer is
10401 fullfilled (bug#5534).
10402
10403 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10404
98599f74
JD
104052010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10406
471e4f04 10407 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 10408 bug #5571.
886cc2b8 10409 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 10410 overdrawn.
98599f74 10411
182659ae
JD
104122010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10413
10414 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10415 doing_interact here.
10416 (ice_connection_closed): New function.
10417 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10418 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10419 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10420 returns I/O error.
10421 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10422 bug #5512.
10423
9be32c4e 104242010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
10425
10426 * nsfont.m (nsfont_open): The system's value for the font descent
10427 is negative, so round it down to avoid clipping.
10428
a2f3eb19
CY
104292010-02-06 Chong Yidong <cyd@stupidchicken.com>
10430
10431 * charset.c (load_charset_map_from_file)
10432 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 10433 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 10434
3088147c
CY
104352010-02-05 Chong Yidong <cyd@stupidchicken.com>
10436
10437 * charset.c (load_charset_map_from_file): Allocate large
10438 charset_map_entries structure on the heap rather than the stack.
10439 (Bug#5526).
10440
b57d9029
KH
104412010-01-31 Kenichi Handa <handa@m17n.org>
10442
10443 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 10444 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 10445
c67d885b
CY
104462010-01-31 Chong Yidong <cyd@stupidchicken.com>
10447
10448 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10449 <deactivated@gmail.com> (Bug#3605).
10450
8fab2362
CY
104512010-01-31 David De La Harpe Golden <david@harpegolden.net>
10452
10453 * fileio.c (Frename_file): Correctly rename symlinks to
10454 directories (Bug#5496).
10455
cb2a62f2
CY
104562010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10457
10458 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10459
944c7a26
AS
104602010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10461
10462 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10463
c024ac08
CY
104642010-01-29 Chong Yidong <cyd@stupidchicken.com>
10465
10466 * frame.c (DEFAULT_ROWS): Change default to 35.
10467
10468 * xfns.c (x_default_font_parameter): Change default XFT font to
10469 monospace-10 (Bug#3643).
10470
af93af83
EZ
104712010-01-29 Eli Zaretskii <eliz@gnu.org>
10472
10473 * w32inevt.c (key_event): Remove unnecessary comparison of
10474 event->uChar.AsciiChar with 128.
10475
ca0eb708
CY
104762010-01-28 Chong Yidong <cyd@stupidchicken.com>
10477
b242dbfc
CY
10478 * fileio.c (Frename_file): Fix last change (Bug#5487).
10479
ca0eb708
CY
10480 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10481
10482 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10483
45d45af5
JD
104842010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10485
10486 * xfns.c (Fx_create_frame): Remove window size matching code from
10487 2010-01-15.
a73f9c9d 10488 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 10489
7e233730
JR
104902010-01-27 Jason Rumney <jasonr@gnu.org>
10491
10492 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 10493 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 10494
86e893e3
KH
104952010-01-27 Kenichi Handa <handa@m17n.org>
10496
10497 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 10498 pattern string (Bug#4209).
86e893e3 10499
8719abec
CY
105002010-01-27 David De La Harpe Golden <david@harpegolden.net>
10501
10502 * fileio.c (Frename_file): Call copy-directory and
10503 delete-directory for directories, in order to handle cross-device
10504 renaming (Bug#3353).
10505
844794c8
JD
105062010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10507
aa3e13b5 10508 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 10509 sizes 24 and 10. Bug #3643.
844794c8 10510
bd4b5750
SM
105112010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10512
8dc1adf6 10513 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
10514 * keymap.c (shadow_lookup): Add `remap' arg.
10515 (describe_map, describe_vector): Update calls to shadow_lookup.
10516 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10517 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
10518 perform remapping during shadow_lookup check of remapped_sequences.
10519
285d07e2
CY
105202010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10521
10522 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10523 png_check_sig, which has been removed in libpng 1.4.
10524
c6d09b8d
CY
105252010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10526
10527 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10528 lacks this header file).
10529
3d782998
YM
105302010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10531
10532 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10533 as in Emacs 22.
10534
2aff7c53
YM
105352010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10536
10537 * lisp.h (make_pure_string): String pointer arg now points to const.
10538
10539 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10540 args now point to const.
10541
74327f7a
EZ
105422010-01-22 Eli Zaretskii <eliz@gnu.org>
10543
10544 * lread.c (Fload): Don't treat files without .elc extension as
10545 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10546 them. (bug#5303)
10547
4d1e6632
KH
105482010-01-20 Kenichi Handa <handa@m17n.org>
10549
10550 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10551 treat the source as actual byte sequence.
10552
1fdede8f
AM
105532010-01-19 Alan Mackenzie <acm@muc.de>
10554
10555 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 10556 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
10557 `signal_after_change_p' to `coherent_change_p', and make the
10558 invocation of `modify_region' conditional on it.
10559
67477f30
JD
105602010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10561
10562 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10563 for debug purpose.
10564 (syms_of_xsettings): Declare xft-settings.
10565
244b023e
CY
105662010-01-18 Chong Yidong <cyd@stupidchicken.com>
10567
10568 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10569
617364fe
CY
105702010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10571
10572 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10573
4fe22cdf
CY
105742010-01-16 Chong Yidong <cyd@stupidchicken.com>
10575
10576 * emacs.c (standard_args): Adjust arg priorities to reflect how
10577 they are processed in startup.el.
10578
e118d2be
AS
105792010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10580
10581 * Makefile.in (lisp, shortlisp): Update.
10582
523ae620
SM
105832010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10584
10585 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10586 code, link the new kboard into all_kboard before running Lisp code,
10587 and protect the new terminal with GCPRO (Bug#5365).
10588 (x_term_init): Remove unused var `atom'.
10589 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10590
f0d13888
JD
105912010-01-15 Jan Djärv <jan.h.d@swipnet.se>
10592
10593 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
10594 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
10595 to find out usable size of the desktop. Don't make frames larger than
ac146f82 10596 this. Bug #3643.
f0d13888 10597
cc320f07
KH
105982010-01-15 Kenichi Handa <handa@m17n.org>
10599
10600 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
10601
7ffdf101
CY
106022010-01-15 Chong Yidong <cyd@stupidchicken.com>
10603
10604 * nsterm.m (Qnone): Define.
10605
10606 * nsfns.m (Qnone): Move definition to nsterm.m.
10607
d12bd917
KH
106082010-01-14 Kenichi Handa <handa@m17n.org>
10609
10610 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
10611 systems.
10612
d9a7c140
KH
106132010-01-14 Kenichi Handa <handa@m17n.org>
10614
10615 Make auto-composition work on all buffers even if they are
10616 fundamental mode.
10617
10618 * composite.c (Vauto_composition_mode): New variable.
10619 (composition_compute_stop_pos): Check Vauto_composition_mode
10620 instead of Vauto_composition_function.
10621 (composition_adjust_point, Ffind_composition_internal): Likewise.
10622 (syms_of_composite): Declare Lisp variable
10623 "auto-composition-mode" here.
10624
63286bb2
CY
106252010-01-13 Chong Yidong <cyd@stupidchicken.com>
10626
10627 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
10628 during call to vendor-specific-keysyms (Bug#5365).
10629
c2623ee7
YM
106302010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10631
10632 * keyboard.c (input_available_signal) [SYNC_INPUT]:
10633 Call SIGNAL_THREAD_CHECK (Bug#5333).
10634
10635 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
10636 Call SIGNAL_THREAD_CHECK.
10637
0b5397c2
SM
106382010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
10639
10640 Try to fix bug#5314. This is probably not the final word, tho.
10641 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
10642 recent-auto-save-p as a side-effect.
10643 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
10644 * buffer.c (Fkill_buffer, reset_buffer):
10645 * editfns.c (Fsubst_char_in_region):
10646 * fileio.c (Finsert_file_contents, Fdo_auto_save)
10647 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
10648
dc954cb2
KH
106492010-01-13 Kenichi Handa <handa@m17n.org>
10650
10651 Display buffer name, etc. in mode line by composing correctly.
10652
10653 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
10654 STRING is not nil.
0b5397c2 10655 (display_mode_element): Adjust for the change of
dc954cb2
KH
10656 decode_mode_spec and display_line.
10657 (decode_mode_spec): Change arg MULTIBYTE to STRING.
10658 (display_string): Handle the case that STRING is non-null and
10659 LISP_STRING is not nil.
10660
0b5397c2
SM
10661 * xterm.c (x_draw_composite_glyph_string_foreground):
10662 Pay attention to s->face->overstrike.
dc954cb2
KH
10663
10664 * composite.c (composition_reseat_it): Don't check PT if STRING is
10665 non nil.
10666
4a00eaca
YM
106672010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10668
10669 * keyboard.c (read_char): Don't apply previous change when current
10670 buffer is unchanged by command execution.
10671
60abb287
JD
106722010-01-12 Jan Djärv <jan.h.d@swipnet.se>
10673
10674 * keyboard.c (read_char): Return after executing from special map.
10675
893db5bc
GM
106762010-01-12 Glenn Morris <rgm@gnu.org>
10677
10678 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
10679 bug-gnu-emacs rather than emacs-pretest-bug.
10680
4d03ece0
CY
106812010-01-11 Chong Yidong <cyd@stupidchicken.com>
10682
10683 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
10684 initializing the Lisp variables that depend on them.
10685
1df47e38
YM
106862010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10687
10688 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
10689 Clear areas that will not be updated after change of menu bar lines.
10690 Clear the menu bar window's current matrix when the window gets empty.
10691
2f1c6384
CY
106922010-01-09 Chong Yidong <cyd@stupidchicken.com>
10693
e398c61c
CY
10694 * intervals.h, textprop.c (extend_property_ranges): Return value
10695 and args changed. Discard properties that begin at or after the
10696 new end (Bug#5306).
10697
10698 * editfns.c (Fformat): Caller changed.
10699
e5a29a10
CY
10700 * nsterm.m (ns_set_default_prefs): Delete function.
10701 (syms_of_nsterm): Initialize ns_command_modifier,
10702 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
10703 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
10704
2f1c6384
CY
10705 * xdisp.c (pos_visible_p): Check for invisible text at the correct
10706 position (Bug#4040).
10707
d427a9fa
EZ
107082010-01-09 Eli Zaretskii <eliz@gnu.org>
10709
10710 * editfns.c (Ffloat_time): Doc fix.
10711
21b9df2f
JD
107122010-01-09 Jan Djärv <jan.h.d@swipnet.se>
10713
10714 * xfns.c (Fx_create_frame): Don't create frame larger than display
10715 by default bug#3643.
10716
4b00d3b1
YM
107172010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10718
10719 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
10720 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
10721 windows above internal border.
10722
10723 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
10724 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
10725 windows above internal border.
10726
10727 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
10728 tool bar windows specially.
10729
10730 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
10731
10732 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
10733 specially.
10734 (XTflash): Take account of menu bar height.
10735
10736 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
10737 specially.
10738
5075d853
JD
107392010-01-08 Jan Djärv <jan.h.d@swipnet.se>
10740
ac146f82 10741 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
10742 also be true before we can return early (bug #5339).
10743
474217c8
CY
107442010-01-06 David Reitter <david.reitter@gmail.com>
10745
10746 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
10747 (Fns_display_usable_bounds): Rewrite, computing bounds properly
10748 (Bug#3233).
10749
c0e6d47d
JD
107502010-01-06 Jan Djärv <jan.h.d@swipnet.se>
10751
d0cf45b7
JD
10752 * font.c (font_open_entity): Enable chache and call cached_font_ok
10753 for the driver if defined.
10754 (QCuser_spec): New symbol.
10755 (font_spec_from_name): Save name as user-spec.
10756 (font_load_for_lface): Keep user-spec instead of name.
10757 (font_open_by_name): Save name as user-spec.
10758 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 10759 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
10760
10761 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
10762 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
10763 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
10764
10765 * font.h (struct font_driver): Add cached_font_ok.
10766
c0e6d47d
JD
10767 * xterm.c (x_clear_frame): Queue draw for scroll bars.
10768
7c583cd8
JD
107692010-01-05 Jan Djärv <jan.h.d@swipnet.se>
10770
10771 * xterm.c (x_new_font): Move code for setting rows/cols before
10772 resizing ...
ac146f82 10773 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
10774
10775 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
10776 (xg_frame_resized, xg_frame_set_char_size):
10777 Call xg_clear_under_internal_border.
7c583cd8 10778 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 10779
03f77f0a
CY
107802010-01-05 Chong Yidong <cyd@stupidchicken.com>
10781
10782 * keyboard.c (read_key_sequence): Catch keyboard switch after
10783 making a new tty frame (Bug#5095).
10784
2a1ef5be
KH
107852010-01-05 Kenichi Handa <handa@m17n.org>
10786
10787 * fontset.c (fontset_find_font): Fix getting the frame pointer.
10788
e3eb1dae
SM
107892010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10790
10791 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
10792 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10793 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10794
777013f2
MA
107952010-01-03 Michael Albinus <michael.albinus@gmx.de>
10796
10797 * dbusbind.c (xd_add_watch): Improve debug message.
10798 (xd_remove_watch): Improve debug message. If DATA is the session
10799 bus, unset D-Bus session environment.
10800 (Fdbus_init_bus): Pass the bus as argument to
10801 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 10802
8932b1c2
CY
108032010-01-01 Chong Yidong <cyd@stupidchicken.com>
10804
87231e2c
CY
10805 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10806
4801c5fa
CY
10807 * lread.c (syms_of_lread): Make it clearer that these are the
10808 names of loaded files (Bug#5068).
10809
8932b1c2
CY
10810 * eval.c (run_hook_with_args): Handle the case where the global
10811 value has the obsolete single-function form (Bug#5026).
10812
11e3c684
CY
108132009-12-27 Chong Yidong <cyd@stupidchicken.com>
10814
10815 * minibuf.c (Fall_completions): Minor optimization.
10816
5b28ce35
EZ
108172009-12-26 Eli Zaretskii <eliz@gnu.org>
10818
5ce6e4f4
JB
10819 * .gdbinit (pgx): Fix display of composite glyphs.
10820 Display cmp.from and cmp.to as well.
10821 (pitx): Fix last change.
5b28ce35 10822
bcffff46
KH
108232009-12-25 Kenichi Handa <handa@m17n.org>
10824
10825 * composite.h (composition_adjust_point): Update prototype.
10826
10827 * composite.c (composition_reseat_it): Don't make a composition
10828 spanning over point.
10829 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
10830 composable characters.
10831 (composition_adjust_point): New arg NEW_PT. Callers changed.
10832
10833 * keyboard.c (command_loop_1): Force redisplay if the last point
10834 was within a composition.
10835 (adjust_point_for_property): Don't adjust point for automatic
10836 composition when called after buffer modification.
10837
3f670e9a
EZ
108382009-12-19 Eli Zaretskii <eliz@gnu.org>
10839
5ce6e4f4
JB
10840 * .gdbinit (pitx): Don't use enum names, use their values.
10841 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
10842 (pgx): Don't use enum names, use their values.
10843 (pitmethod): New helper command.
10844 (pitx): Use it to display iteration method.
10845 (pgrowit): New command.
10846
ad903955
EZ
10847 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
10848
3f670e9a
EZ
10849 Update dependencies in Makefile.in.
10850
10851 * Makefile.in (alloc.o): Depend on termhooks.h.
10852 (atimer.o): Depend on blockinput.h.
10853 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
10854 and frame.h.
10855 (callint.o): Depend on systime.h, coding.h, and composite.h.
10856 (callproc.o): Depend on buffer.h.
10857 (casefiddle.o): Don't depend on charset.h.
10858 (casetab.o): Depend on character.h.
10859 (ccl.o): Depend on composite.h.
10860 (chartab.o): Depend on ccl.h.
10861 (cm.o): Depend on dispextern.h.
10862 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
10863 (coding.o): Don't depend on $(INTERVALS_H).
10864 (composite.o): Don't depend on dispextern.h explicitly (it's in
10865 $(INTERVALS_H)). Depend on ccl.h.
10866 (data.o): Depend on systime.h, coding.h, composite.h,
10867 dispextern.h, font.h, and ccl.h.
10868 (dired.o): Depend on composite.h.
10869 (dispnew.o): Depend on coding.h. Don't depend explicitly on
10870 composite.h (it's in $(INTERVALS_H)).
10871 (doc.o): Depend on systime.h, coding.h, and composite.h.
10872 (editfns.o): Don't depend explicitly on dispextern.h.
10873 (emacs.o): Depend on frame.h and coding.h.
10874 (eval.o): Depend on coding.h, composite.h, and xterm.h.
10875 (fileio.o): Depend on frame.h and commands.h. Don't depend
10876 explicitly on dispextern.h.
10877 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
10878 composite.h.
10879 (fns.o): Don't depend on termhooks.h.
10880 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
10881 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
10882 coding.h, $(INTERVALS_H), window.h, xterm.h.
10883 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
10884 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
10885 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
10886 fontset.h, ccl.h, and ftfont.h.
10887 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10888 (gtkutil.o): Depend on dispextern.h and composite.h.
10889 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
10890 termhooks.h, and ccl.h.
10891 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
10892 (intervals.o): Depend on systime.h and coding.h.
10893 (keyboard.o): Depend on composite.h and coding.h.
10894 (keymap.o): Depend on coding.h and frame.h.
10895 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
10896 (macros.o): Depend on systime.h, coding.h, and composite.h.
10897 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
10898 and atimer.h.
10899 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
10900 dispextern.h explicitly.
0b5397c2
SM
10901 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
10902 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
10903 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
10904 (regex.o): Don't depend on charset.h.
10905 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
10906 (search.o): Don't depend explicitly on composite.h.
10907 (sound.o): Depend on atimer.h and systime.h.
10908 (syntax.o): Don't depend explicitly on composite.h.
10909 (sysdep.o): Depend on coding.h and composite.h.
10910 (term.o): Depend on xterm.h and buffer.h.
10911 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
10912 (textprop.o): Don't depend on dispextern.h explicitly.
10913 (undo.o): Depend on dispextern.h.
10914 (window.o): Depend on coding.h and termhooks.h. Don't depend on
10915 dispextern.h and composite.h explicitly.
10916 (xdisp.o): Depend on ccl.h.
10917 (xfaces.o): Depend on coding.h and ccl.h.
10918 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
10919 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10920 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
10921 ftfont.h.
10922 (xgselect.o): New dependency.
10923 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
10924 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10925 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10926 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10927 (xsmfns.o): Depend on frame.h and dispextern.h.
10928 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10929 sysselect.h.
10930
7a6f7fea
AS
109312009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10932
10933 * font.c (Fclear_font_cache): Pass correct cache argument to
10934 font_clear_cache.
10935
f4c21026
AS
109362009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10937
10938 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10939 twice.
10940
f7ab0997
CY
109412009-12-15 Chong Yidong <cyd@stupidchicken.com>
10942
10943 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10944 calling file-remote-p. Reported by Jim Meyering.
10945
fa8e045a
MA
109462009-12-15 Michael Albinus <michael.albinus@gmx.de>
10947
10948 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 10949 avoid compiler warnings. (Bug #5217)
fa8e045a 10950
a63dba42
KH
109512009-12-14 Kenichi Handa <handa@m17n.org>
10952
10953 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10954 in 8-bit encoding.
10955
5ce6e4f4 109562009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
10957
10958 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10959 tooltip windows.
10960
223e5fc6
JD
109612009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10962
36acb2a7
JD
10963 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10964 Xatom_net_window_type.
10965
10966 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10967 Xatom_net_window_type.
10968
b8f00677
JD
10969 * xterm.c (my_log_handler): New function.
10970 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 10971 so we can filter out buggy messages. (Bug #5120).
b8f00677 10972
e5f0bc9a
JD
10973 * xterm.c (xg_scroll_callback): Parameter list changed,
10974 use parameter GtkScrollType to determine scroll/line/page.
10975 Only allow dragging if a button < 4 is grabbed (bug #5177).
10976 (xg_end_scroll_callback): New function.
10977 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10978 xg_create_scroll_bar.
10979
10980 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10981 (scroll_end_callback): Remove.
10982 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10983 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 10984 bug #5177.
e5f0bc9a
JD
10985 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10986 bug #5177.
10987
10988 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10989 (xg_create_scroll_bar): Add GCallback end_callback.
10990
223e5fc6
JD
10991 * xftfont.c (QClcdfilter): New variable.
10992 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10993 (syms_of_xftfont): Initialize QClcdfilter.
10994
3c055b77
JD
109952009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10996
10997 * xsettings.c (struct xsettings): Add member seen.
10998 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 10999 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
11000 (apply_xft_settings): Only update Xft settings with what member seen
11001 indicates as new.
11002
05fe33ff
EZ
110032009-12-12 Eli Zaretskii <eliz@gnu.org>
11004
c4cc8b9a 11005 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
11006 (struct glyph): Use EMACS_INT for charpos.
11007 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11008 region_beg_charpos, region_end_charpos,
11009 redisplay_end_trigger_charpos, and also for
11010 iterator_stack_entry.end_charpos and
11011 iterator_stack_entry.stop_charpos.
11012
e8d7886a
JD
110132009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11014
5ce6e4f4 11015 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
11016 (xg_create_scroll_bar): Call scroll_end_callback on button release
11017 event (bug #5177).
11018 (xg_event_is_for_scrollbar): != replaced with ==.
11019
d0db2ec8
KH
110202009-12-12 Kenichi Handa <handa@m17n.org>
11021
11022 * ftfont.c (struct ftfont_info): New member matrix.
11023 (ftfont_open): Setup xftfont_info->matrix.
11024 (MFLTFontFT): New member matrix.
11025 (FLOOR, CEIL, ROUND): New macros.
11026 (ftfont_get_metrics): Handle matrix transformation.
11027 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11028
11029 * xftfont.c (struct xftfont_info): New member matrix.
11030 (xftfont_open): Setup xftfont_info->matrix.
11031
110322009-12-10 Kenichi Handa <handa@m17n.org>
11033
11034 * xdisp.c (append_space_for_newline): Consider face-remapping.
11035
2cc7b62f
AS
110362009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11037
b87dd913
AS
11038 * xsettings.c: Include "keyboard.h".
11039
eba5eb94
AS
11040 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11041
2cc7b62f
AS
11042 Fix implicit function declarations.
11043 * cmds.c: Include "frame.h".
11044 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11045 * frame.h: Move declaration of delete_frame outside of
11046 HAVE_WINDOW_SYSTEM.
11047
a4ef73c8
CY
110482009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11049
11050 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11051
11052 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11053 GTK builds.
11054
944a300c
AS
110552009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11056
11057 * unexelf.c (unexec): Don't search for .data twice.
11058
022eef62
CY
110592009-12-05 Chong Yidong <cyd@stupidchicken.com>
11060
426ac949
CY
11061 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11062 if push failed.
11063 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11064 of push_display_prop (Bug#5000).
11065
022eef62
CY
11066 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11067 value of font_list_entities (Bug#5085).
11068
be95bee9
JB
110692009-12-04 Juanma Barranquero <lekktu@gmail.com>
11070
11071 Fix `string-to-number' to deal consistently with integers and floats.
11072 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11073 trailing characters, not just whitespace.
11074 (read1): Pass new arg 0 to keep old behavior.
11075 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11076 trailing chars, as it is already done for integers. Doc fixes.
11077 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11078
24c2d7ce
EZ
110792009-12-04 Eli Zaretskii <eliz@gnu.org>
11080
0b5397c2
SM
11081 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11082 Delete unused enumeration value.
24c2d7ce 11083
7e694795
EZ
110842009-12-03 Eli Zaretskii <eliz@gnu.org>
11085
11086 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11087
84b31826
SM
110882009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11089
11090 * process.c (Fmake_network_process): Fix up the tests for
11091 "connectionless socket", so they DTRT for seqpacket sockets as well.
11092
f00c449b
SM
110932009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11094
11095 * process.c (Qseqpacket): New symbol.
11096 (HAVE_SEQPACKET): New macro.
11097 (Fmake_network_process): Accept new :type `seqpacket'.
11098 (init_process): Add `seqpacket' feature when applicable.
11099 (syms_of_process): Initialize Qseqpacket.
11100
8096a0ff
YM
111012009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11102
11103 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11104 if entity is Qnil.
11105
3e0de07f
SM
111062009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11107
11108 * print.c (print_preprocess): Preprocess the key_and_value table of
11109 hashtables, even tho they're "hidden" (bug#5082).
11110
abeafb2a
JD
111112009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11112
11113 * frame.c (frame_make_pointer_invisible)
11114 (frame_make_pointer_visible): Declare f before statements.
11115
4bf47195
EZ
111162009-11-28 Eli Zaretskii <eliz@gnu.org>
11117
11118 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11119 omitted dependencies on lisp.h.
11120
c525b3f2
JD
111212009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11122
ece2d4ed
JD
11123 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11124 is NULL.
11125
11126 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11127
11128 * frame.c (frame_make_pointer_invisible)
3e0de07f 11129 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
11130 frame.
11131
c525b3f2
JD
11132 * search.c (simple_search): Remove warning by making *p const.
11133
2f00e299
DN
111342009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11135
11136 * xdisp.c (power_letter): Remove duplicate const.
11137
084b049b
JD
111382009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11139
a1fadc6f
JD
11140 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11141
5ce6e4f4 11142 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
11143 defaults (bug #5025).
11144
28259cac
SM
111452009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11146
11147 * insdel.c (adjust_markers_for_delete): Move it in the
11148 right direction! (bug#4803)
11149
e8e14166
YM
111502009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11151
11152 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11153
11154 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11155
86677b58
GM
111562009-11-24 Glenn Morris <rgm@gnu.org>
11157
11158 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11159
581e51e8
JD
111602009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11161
cfc86c7a
JD
11162 * Makefile.in: Must create deps for ecrt0.o in its rule.
11163
581e51e8
JD
11164 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11165 because that is what Gtk+ font dialog understands.
11166
11167 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11168 of Fcopy_sequence.
11169 (font_open_by_name): Put name given into QCname for font-object returned.
11170
11171 * frame.c (x_set_font): Save original font name as frame parameter
11172 font-parameter.
11173
11174 * xsettings.c (set_default_xft_settings): New function.
11175 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11176 is found.
11177
8b264ecb
AS
111782009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11179
11180 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11181 searching backwards through multibyte buffer.
11182
872870b2
JD
111832009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11184
11185 * xterm.c: #include xgselect.h.
11186 (x_initialize): Call xgselect_initialize.
11187
11188 * xsettings.c (something_changedCB): C++ comments => C comments.
11189 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11190 does that now.
11191
11192 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11193 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11194 (scroll_bar_button_cb): Remove.
5ce6e4f4 11195 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
11196 event.
11197 (xg_create_scroll_bar): Don't bind button-press-event and
11198 button-release-event.
11199
11200 * process.c: Include xgselect.h if defined (USE_GTK) ||
11201 defined (HAVE_GCONF).
11202 (wait_reading_process_output): Call xg_select for the same condition.
11203
11204 * xgselect.c (xg_select): New function to better integrate with
11205 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11206
11207 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11208
11209 * Makefile.in (XOBJ): Add xgselect.o.
11210
62a6e103
AS
112112009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11212
0b5397c2
SM
11213 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11214 Remove ignored second argument. All callers changed.
62a6e103
AS
11215 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11216 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11217 * xdisp.c (string_char_and_length): Likewise.
11218
b0ca0f33
DN
112192009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11220
11221 * xterm.c (x_new_font):
11222 * print.c (print_object):
11223 * cmds.c (Fself_insert_command): Move declarations before statements.
11224
dd5a6279
CY
112252009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11226
11227 * s/cygwin.h: Remove unneeded linker flags.
11228
4a8e097d
JD
112292009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11230
0d1d0d26
JD
11231 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11232
11233 * xsettings.h: Declare xsettings_get_system_font.
11234
11235 * xsettings.c (xsettings_get_system_font): New function.
11236 (init_gconf): No use initiating gconf unless we have Xft also.
11237 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11238 HAVE_GCONF.
11239
4a8e097d
JD
11240 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11241 add a blank entry so it doesn't collapse into nothing.
11242
8ab1650e
SM
112432009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11244
11245 * lread.c (Funintern): Comment out last change.
11246
82c602f0
RS
112472009-11-19 Richard Stallman <rms@gnu.org>
11248
11249 * lread.c (Funintern): Error if symbol is t or nil.
11250
87e32266
SM
112512009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11252
11253 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11254 representation of Lisp integers.
11255 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11256
1b9ac145
AS
112572009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11258
11259 * lisp.h: Remove declaration of Ffont_get_system_font.
11260 * xfns.c: Move include of "xsettings.h".
11261 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11262
dfb3c4c6
JD
112632009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11264
87e32266
SM
11265 * xsettings.c (something_changedCB, Ffont_get_system_font):
11266 Check use_system_font.
dfb3c4c6
JD
11267 (syms_of_xsettings): DEFVAR font-use-system-font.
11268
9370c1d8
AS
112692009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11270
25fe851a
AS
11271 * xfns.c (x_default_font_parameter): Remove dead assignment.
11272
9370c1d8
AS
11273 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11274
637fa988
JD
112752009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11276
87e32266 11277 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 11278 not have FC_LCD_*. #define them if not there.
a6eb20d8 11279
87e32266 11280 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 11281
637fa988
JD
11282 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11283
11284 * xterm.c (handle_one_xevent): Call xft_settings_event for
11285 ClientMessage, PropertyNotify and DestroyNotify.
11286 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11287 Call xsettings_initialize.
11288
11289 * xftfont.c (xftfont_fix_match): New function.
11290 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11291 Call xftfont_fix_match after XftFontMatch.
11292
11293 * xfont.c (xfont_driver): Initialize all members.
11294
87e32266
SM
11295 * xfns.c (x_default_font_parameter):
11296 Try font from Ffont_get_system_font.
637fa988
JD
11297 Do not get font from x_default_parameter if we got one from
11298 Ffont_get_system_font.
87e32266 11299 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
11300
11301 * w32font.c (w32font_driver): Initialize all members.
11302
11303 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11304
11305 * lisp.h: Declare syms_of_xsettings.
11306
87e32266
SM
11307 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11308 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
11309
11310 * ftfont.c (ftfont_filter_properties): New function.
11311
11312 * frame.c (x_set_font): Remove unused variable lval.
11313
87e32266 11314 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
11315
11316 * font.c (font_put_extra): Don't return if val is nil, it means
11317 boolean option is off.
11318 (font_parse_fcname): Collect all extra properties in extra_props
11319 and call filter_properties for all drivers with extra_props and
11320 font as parameter.
87e32266
SM
11321 (font_open_entity): Do not use cache, it does not pick up new
11322 fontconfig settings like hinting.
637fa988
JD
11323 (font_load_for_lface): If spec had a name in it, store it in entity.
11324
a73f9c9d 11325 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
11326
11327 * config.in: HAVE_GCONF is new.
11328
11329 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11330 xsettings.o is new.
11331
5a942932
KH
113322009-11-17 Kenichi Handa <handa@m17n.org>
11333
11334 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11335 back to the default font in case that no suitable font is found.
11336
b7c7a4d1
SM
113372009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11338
11339 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11340 Suggested by Chad Brown <yandros@mit.edu>.
11341 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11342
072f1e39
JD
113432009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11344
11345 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11346
5d1e70a2
AS
113472009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11348
87e32266 11349 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 11350
a53cfbe5
JD
113512009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11352
473a99b7
JD
11353 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11354 has a parent.
11355
a53cfbe5 11356 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 11357 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
11358
11359 * config.in: Generated (AUTO_DEPEND).
11360
f04bb9b2
MA
113612009-11-13 Michael Albinus <michael.albinus@gmx.de>
11362
b7c7a4d1 11363 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
11364 Vdbus_registered_functions_table, because it contains also
11365 properties. Fix docstring.
b7c7a4d1 11366 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 11367
8f11f7ec
SM
113682009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11369
11370 * alloc.c (mark_object): Don't reprocess marked strings.
11371 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11372 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11373
8a605fe8
KH
113742009-11-13 Kenichi Handa <handa@m17n.org>
11375
8f11f7ec 11376 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
11377 semantics of Vword_combining_categories.
11378 (Vword_combining_categories): Describe the slight change of the
11379 semantics.
11380
241c4680
EZ
113812009-11-13 Eli Zaretskii <eliz@gnu.org>
11382
11383 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11384
11385 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11386
5d58e44c
SM
113872009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11388
11389 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11390
5e13f9d3
JB
113912009-11-12 Juanma Barranquero <lekktu@gmail.com>
11392
11393 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11394
cf54c754
DR
113952009-11-11 David Reitter <david.reitter@gmail.com>
11396
11397 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11398 variables to fix 2009-11-09 change.
11399
a4ada374
DN
114002009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11401
91433552
DN
11402 * process.c (ifflag_def): Make flag_sym constant.
11403 (Fnetwork_interface_info): Use a constant pointer.
11404 (ifflag_table):
11405 * xfns.c (cursor_bits):
11406 * xdisp.c (power_letter):
11407 * termcap.c (speeds, esctab):
11408 * sysdep.c (baud_convert):
11409 * keyboard.c (lispy_accent_codes, modifier_names):
11410 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11411 (jpeg_format, tiff_format, gif_format, svg_format)
11412 (interlace_start, interlace_increment, gs_format):
11413 * gtkutil.c (separator_names):
11414 * fringe.c (swap_nibble):
11415 * fns.c (base64_value_to_char, base64_char_to_value):
11416 * fileio.c (make_temp_name_tbl):
11417 * coding.c (suffixes): Make constant.
11418
f4265f6c
DN
11419 * frame.c (make_initial_frame):
11420 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11421 build_string.
11422 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11423
04420943
DN
11424 * s/freebsd.h:
11425 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11426
0a5d24ae
DN
11427 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11428 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11429
a4ada374
DN
11430 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11431 * xterm.c (syms_of_xterm):
11432 * xfaces.c (syms_of_xfaces):
11433 * xdisp.c (syms_of_xdisp):
11434 * lread.c (syms_of_lread):
11435 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11436 build_string.
91433552 11437
a4ada374
DN
11438 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11439
af98fc7f
SM
114402009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11441
8ab1650e 11442 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 11443
e90292a9
JD
114442009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11445
11446 * keyboard.h: Declare timer_check.
11447
11448 * keyboard.c (timer_check_2): New function that does what the old
11449 timer_check did.
11450 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11451 returned, i.e. don't return -1 with timers pending.
11452
11453 * process.c: Remove extern declaration of timer_check.
11454
11455 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11456 even if timer_check returned -1.
11457
af98fc7f
SM
11458 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11459 xg_dialog_data.
e90292a9
JD
11460 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11461 the event loop.
11462 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11463 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11464 Destroy the dialog after xg_dialog_run.
11465
045b83c0
SM
114662009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11467
11468 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11469
1fb99a3a
JD
114702009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11471
11472 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11473
04e452cb
JB
114742009-11-09 Juanma Barranquero <lekktu@gmail.com>
11475
11476 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11477
ef7417fd
SM
114782009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11479
11480 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11481 w32menu.c, and nsmenu.m.
11482 Simplify the obsolete case where position is nil.
11483 (cleanup_popup_menu): New function, moved from nsmenu.m.
11484 (struct skp): Remove slot `notreal'.
11485 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11486 adjust callers.
11487 (single_menu_item): Adjust call to parse_menu_item.
11488 (syms_of_menu): Defsubr x-popup-menu.
11489 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11490 (keymap_panes): Don't export any more.
11491 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11492 (xmenu_show): Declare.
11493 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11494 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11495 * keyboard.h (parse_menu_item): Update declaration.
11496 * xmenu.c (Fx_popup_menu): Remove.
11497 (syms_of_xmenu): Don't defsubr x-popup-menu.
11498 * w32menu.c (Fx_popup_menu): Remove.
11499 (syms_of_w32menu): Don't defsubr x-popup-menu.
11500 * nsmenu.m (cleanup_popup_menu): Remove.
11501 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11502 moved to menu.c's Fx_popup_menu.
11503 (Fx_popup_menu): Remove.
11504 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11505 menu_items (it's done in menu.c already).
11506
424d6179
SM
115072009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11508
11509 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11510 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11511
c0df13a6 115122009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
11513
11514 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 11515 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
11516 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11517 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11518
2de9f71c
SM
115192009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11520
11521 Let integers use up 2 tags to give them one extra bit and thus double
11522 their range.
11523 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11524 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11525 New macros.
11526 (enum Lisp_Type): Use them. Give explicit values.
11527 (Lisp_Type_Limit): Remove.
11528 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11529 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11530 Pay attention to USE_2_TAGS_FOR_INTS.
11531 (INTEGERP): Use LISP_INT_TAG_P.
11532 * fns.c (internal_equal): Simplify the default case.
11533 (sxhash): Use case_Lisp_Int.
11534 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11535 any more.
11536 (Ftype_of): Use case_Lisp_Int.
11537 (store_symval_forwarding): Take into account the fact that Ints can
11538 now have more than one tag.
11539 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 11540 (buffer_slot_type_mismatch):
2de9f71c
SM
11541 * xfaces.c (face_attr_equal_p):
11542 * print.c (print_object):
11543 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11544 Use case_Lisp_Int.
11545
323637a2
EZ
115462009-11-06 Eli Zaretskii <eliz@gnu.org>
11547
7ac65b38
EZ
11548 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11549
323637a2
EZ
11550 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11551 warning.
11552
e511451f
JD
115532009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11554
11555 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11556
11557 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11558
11559 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11560 ButtonPressRelease and MotionNotify (bug#4870).
11561
5e2327cf
DN
115622009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11563
5adc433e
DN
11564 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11565
d67b4f80
DN
11566 * xterm.c (syms_of_xterm):
11567 * xselect.c (syms_of_xselect):
11568 * xmenu.c (syms_of_xmenu):
11569 * xfns.c (syms_of_xfns):
11570 * xfaces.c (syms_of_xfaces):
11571 * xdisp.c (syms_of_xdisp):
11572 * window.c (syms_of_window):
11573 * w32fns.c (syms_of_w32fns):
11574 * undo.c (syms_of_undo):
11575 * textprop.c (syms_of_textprop):
11576 * terminal.c (syms_of_terminal):
11577 * syntax.c (syms_of_syntax):
11578 * sound.c (syms_of_sound):
11579 * search.c (syms_of_search):
11580 * print.c (syms_of_print):
11581 * minibuf.c (syms_of_minibuf):
11582 * macros.c (syms_of_macros):
11583 * keymap.c (syms_of_keymap, initial_define_key)
11584 (initial_define_lispy_key):
11585 * keyboard.c (syms_of_keyboard):
11586 * insdel.c (syms_of_insdel):
11587 * image.c (syms_of_image):
11588 * fringe.c (syms_of_fringe):
11589 * frame.c (syms_of_frame):
11590 * fontset.c (syms_of_fontset):
11591 * fns.c (syms_of_fns):
11592 * fns.c (syms_of_fns):
11593 * fileio.c (syms_of_fileio):
11594 * fileio.c (syms_of_fileio):
11595 * eval.c (syms_of_eval):
11596 * doc.c (syms_of_doc):
11597 * dispnew.c (syms_of_display):
11598 * dired.c (syms_of_dired):
11599 * dbusbind.c (syms_of_dbusbind):
11600 * data.c (syms_of_data):
11601 * composite.c (syms_of_composite):
11602 * coding.c (syms_of_coding):
11603 * cmds.c (syms_of_cmds):
11604 * charset.c (define_charset_internal, syms_of_character):
11605 * ccl.c (syms_of_ccl):
11606 * category.c (syms_of_category, init_category_once):
11607 * casetab.c (syms_of_casetab):
11608 * casefiddle.c (syms_of_casefiddle):
11609 * callint.c (syms_of_callint):
11610 * bytecode.c (syms_of_bytecode):
11611 * buffer.c (keys_of_buffer, syms_of_buffer):
11612 * alloc.c (syms_of_alloc):
11613 * process.c (syms_of_process, init_process):
11614 * lread.c (syms_of_lread, init_obarray):
11615 * font.c (build_style_table):
11616 * emacs.c (syms_of_emacs, main): Replace calls to intern with
11617 intern_c_string, calls to make_pure_string with
11618 make_pure_c_string. Use pure_cons instead of Fcons.
11619
5e2327cf
DN
11620 * process.c (socket_options): Make it const.
11621 (set_socket_option, init_process): Use a const pointer.
11622
11623 * lread.c (intern_c_string): New function.
11624 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11625 (defvar_int): Uset it. Make the name const char*.
11626
11627 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11628 (defvar_int): Update prototypes.
11629 (DEFUN, EXFUN): Support for prototypes is now required.
11630 (intern_c_string): New prototype.
11631 (struct Lisp_Subr): Make symbol_name constant.
11632
11633 * font.c (struct table_entry): Remove unused member. Make NAMES
11634 constant.
11635 (weight_table, slant_table, width_table): Make constant.
11636
11637 * emacs.c (struct standard_args): Make name and longname constant.
11638
11639 * character.h (DEFSYM): Use intern_c_string.
11640
a56eaaef
DN
116412009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11642
11643 * alloc.c (make_pure_c_string): New function.
11644
11645 * eval.c (Fautoload): Purecopy all arguments.
11646
f6a07420
KH
116472009-11-05 Kenichi Handa <handa@m17n.org>
11648
11649 * fileio.c (Finsert_file_contents): Be sure set coding-system of
11650 the buffer in case of replace.
11651
5d28d4b1
DN
116522009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
11653
11654 * puresize.h (BASE_PURESIZE): Increase to 1620000.
11655
b349d111
SM
116562009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
11657
d528b1ce
SM
11658 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
11659 when applicable (bug#4851).
11660
b349d111
SM
11661 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
11662 (P_): Support for prototypes is now required.
11663
c38eb027
CY
116642009-10-31 Chong Yidong <cyd@stupidchicken.com>
11665
11666 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
11667 (Bug#4827).
11668
0405f8d9
EZ
116692009-10-30 Eli Zaretskii <eliz@gnu.org>
11670
d528b1ce 11671 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 11672
ca0a881a
DN
116732009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
11674
11675 * puresize.h (BASE_PURESIZE): Increase to 1470000.
11676
d528b1ce
SM
11677 * lread.c (Fload): Purecopy the file name when building
11678 Vpreloaded_file_list.
ca0a881a 11679
47e0e0e4
JR
116802009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
11681
11682 * w32fns.c (syms_of_w32fns): Change default value of
11683 w32-scroll-lock-modifier to nil. (Bug#2827)
11684
057bce6f
JB
116852009-10-26 Juanma Barranquero <lekktu@gmail.com>
11686
782a943e 11687 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 11688
242bc74c
AS
116892009-10-26 Andreas Schwab <schwab@redhat.com>
11690
11691 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
11692
522d013a
JB
116932009-10-26 Juanma Barranquero <lekktu@gmail.com>
11694
11695 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
11696 For delta < 0, skip check that only makes sense when the mini-window
11697 is going to be enlarged. (Bug#4534)
11698
18060980
CY
116992009-10-25 Chong Yidong <cyd@stupidchicken.com>
11700
11701 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
11702 string in menu maps (Bug#4471).
11703
fec8f0fe
CY
117042009-10-24 Chong Yidong <cyd@stupidchicken.com>
11705
11706 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
11707 FRAME_NS_VIEW on terminal frames (Bug#4765).
11708
10d66ec0
AS
117092009-10-24 Andreas Schwab <schwab@linux-m68k.org>
11710
1cae01f7
AS
11711 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
11712 DBUS_TYPE_UINTnn separately to get proper sign extension.
11713
58a12889
AS
11714 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
11715 can properly handle unsigned types.
d528b1ce 11716 (make_uid, make_gid): Remove.
58a12889 11717
987c9327
AS
11718 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
11719 types again.
11720
522d013a 11721 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
11722 (system_process_attributes): Likewise.
11723
905a9ed3
DN
117242009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
11725
11726 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
11727
11728 * eval.c (Fautoload): Purecopy the filename. Simplify.
11729
11730 * category.c (Fdefine_category): Purecopy docstring.
11731
a599b3e8
AS
117322009-10-23 Andreas Schwab <schwab@linux-m68k.org>
11733
7b792fc9
AS
11734 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
11735
a599b3e8
AS
11736 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
11737
b35ac83e
CY
117382009-10-23 Chong Yidong <cyd@stupidchicken.com>
11739
11740 * window.c (Fwindow_edges, Fwindow_pixel_edges)
11741 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
11742 (Bug#4775).
11743
e8903e00
SM
117442009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11745
11746 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
11747 (init_fileio_once):
11748 * lisp.h (init_fileio_once): Remove.
11749 * emacs.c (main): Don't call init_fileio_once.
11750
8f43cbf3
DN
117512009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
11752
11753 * puresize.h (BASE_PURESIZE): Increase to 1430000.
11754
26898943
AS
117552009-10-21 Andreas Schwab <schwab@linux-m68k.org>
11756
11757 * doprnt.c (doprnt): Fix overflow check.
11758
5c646d5a
JD
117592009-10-21 Jan Djärv <jan.h.d@swipnet.se>
11760
3132a7ea
JD
11761 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
11762
5c646d5a
JD
11763 * xterm.h (x_wait_for_event): Declare it.
11764
11765 * xterm.c (pending_event_wait): New variable.
11766 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
11767 see pending_event_wait.eventtype.
11768 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
11769 (x_new_font): Call change_frame_size with new rows/columns before we
11770 try to resize the frame.
5c646d5a 11771 (x_wait_for_event): New function.
d528b1ce
SM
11772 (x_set_window_size_1): Don't change gravity unless change_gravity
11773 is set.
5c646d5a
JD
11774 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
11775 don't change frame size, instead wait for the ConfigureNotify.
11776 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
11777 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
11778 (x_initialize): Initialize pending_event_wait.
11779
11780 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
11781 size.
11782
11783 * widget.c (EmacsFrameSetValues): Add comment.
11784 (EmacsFrameSetCharSize): Just call x_set_window_size.
11785
11786 * gtkutil.c (xg_frame_set_char_size): Flush events and call
11787 x_wait_for_event.
d528b1ce 11788 (flush_and_sync): Remove again.
5c646d5a
JD
11789 (xg_get_font_name): Suggest monospace if no previous font is known.
11790
e9c1637d
SM
117912009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
11792
11793 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 11794 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 11795
5a72cccb
YM
117962009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11797
11798 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11799 processing pending events when event is filtered for input method.
ab04798f 11800 (Bug#3681)
5a72cccb 11801
2629aa37
JB
118022009-10-20 Juanma Barranquero <lekktu@gmail.com>
11803
11804 * fns.c: Add #endif accidentally removed in previous change.
11805
c3417a74
DN
118062009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11807
11808 * fns.c: Remove code for unsupported system: MAC_OS.
11809 * image.c: Likewise. Include setjmp.h.
11810
9685cef2
JD
118112009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11812
11813 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11814 pixel -1 (bug #4742).
11815
d7306fe6
DN
118162009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11817
019d2c4c
DN
11818 * process.c (create_pty): Remove conditionals for no longer
11819 supported systems: UNIPLUS and RTU.
11820
ee6bacd4
DN
11821 * xterm.c:
11822 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11823
d7306fe6
DN
11824 * alloc.c: Do not define struct catchtag.
11825 * eval.c: Move struct catchtag definition ...
11826 * lisp.h: ... here.
11827
11828 * image.c: Move png.h #include earlier to avoid warnings.
11829
11830 * xterm.c:
11831 * xsmfns.c:
11832 * xselect.c:
11833 * xrdb.c:
11834 * xmenu.c:
11835 * xftfont.c:
11836 * xfont.c:
11837 * xfns.c:
11838 * xfaces.c:
11839 * xdisp.c:
11840 * window.c:
11841 * widget.c:
11842 * w32xfns.c:
11843 * w32uniscribe.c:
11844 * w32term.c:
11845 * w32select.c:
11846 * w32reg.c:
11847 * w32proc.c:
11848 * w32menu.c:
11849 * w32inevt.c:
11850 * w32heap.c:
11851 * w32font.c:
11852 * w32fns.c:
11853 * w32console.c:
11854 * w32.c:
11855 * w16select.c:
11856 * vm-limit.c:
11857 * unexsol.c:
11858 * unexec.c:
11859 * unexcw.c:
11860 * unexaix.c:
11861 * undo.c:
11862 * tparam.c:
11863 * textprop.c:
11864 * terminfo.c:
11865 * terminal.c:
11866 * termcap.c:
11867 * term.c:
11868 * syntax.c:
11869 * sound.c:
11870 * sheap.c:
11871 * search.c:
11872 * scroll.c:
11873 * region-cache.c:
11874 * regex.c:
11875 * ralloc.c:
11876 * process.c:
11877 * print.c:
b024548b
DN
11878 * nsterm.m:
11879 * nsselect.m:
11880 * nsmenu.m:
11881 * nsimage.m:
11882 * nsfont.m:
11883 * nsfns.m:
d7306fe6
DN
11884 * msdos.c:
11885 * minibuf.c:
11886 * menu.c:
11887 * marker.c:
11888 * macros.c:
11889 * keymap.c:
11890 * keyboard.c:
11891 * intervals.c:
11892 * insdel.c:
11893 * indent.c:
11894 * gtkutil.c:
11895 * ftxfont.c:
11896 * ftfont.c:
11897 * fringe.c:
11898 * frame.c:
11899 * fontset.c:
11900 * font.c:
11901 * fns.c:
11902 * floatfns.c:
11903 * filelock.c:
11904 * fileio.c:
11905 * emacs.c:
11906 * editfns.c:
11907 * dosfns.c:
11908 * doprnt.c:
11909 * doc.c:
11910 * dispnew.c:
11911 * dired.c:
11912 * dbusbind.c:
11913 * data.c:
11914 * composite.c:
11915 * coding.c:
11916 * cmds.c:
11917 * cm.c:
11918 * chartab.c:
11919 * charset.c:
11920 * character.c:
11921 * ccl.c:
11922 * category.c:
11923 * casetab.c:
11924 * casefiddle.c:
11925 * callproc.c:
11926 * callint.c:
11927 * bytecode.c:
11928 * buffer.c:
11929 * atimer.c: Include setjmp.h. (Bug#4643)
11930
fd5f21e6
SM
119312009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11932
4c0354d7
SM
11933 Remove leftover table unibyte_to_multibyte_table.
11934 * character.c (unibyte_to_multibyte_table): Remove.
11935 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11936 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11937 * character.h (UNIBYTE_TO_CHAR): New macro.
11938 (MAKE_CHAR_MULTIBYTE): Use it.
11939 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11940 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11941 (message_dolog, set_message_1):
11942 * search.c (Freplace_match):
11943 * editfns.c (Fcompare_buffer_substrings):
11944 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11945 (concat):
11946 * insdel.c (copy_text, count_size_as_multibyte):
11947 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11948 * term.c (produce_glyphs):
11949 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11950 * regex.c (RE_CHAR_TO_MULTIBYTE):
11951 * cmds.c (internal_self_insert):
11952 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11953
fd5f21e6
SM
11954 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11955
4418646e
DN
119562009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11957
11958 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11959
35f5c1d2
JB
119602009-10-16 Juanma Barranquero <lekktu@gmail.com>
11961
11962 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11963
a0cd8f6b
AR
119642009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11965
11966 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11967 still needed under Tiger.
11968
11969 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11970
11971 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11972 __Apple__.
11973
11974 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11975
01a8d3fa
KH
119762009-10-15 Kenichi Handa <handa@m17n.org>
11977
11978 * print.c (print_object): Escape a symbol like "2E10" too.
11979
bf6c75c9 119802009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
11981
11982 Cleanups and changes for 64-bit compile under Snow Leopard.
11983 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
11984
11985 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11986
c5959062 11987 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
11988 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11989 cast argument.
11990 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 11991 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
11992
11993 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11994
11995 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11996 where appropriate.
11997
11998 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11999 where appropriate.
6e4780c5
JB
12000 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12001 Use stringWithUTF8String.
bf6c75c9
AR
12002 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12003
6e4780c5
JB
12004 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12005 Add formal protocol mention to inheritance.
bf6c75c9
AR
12006 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12007
6e4780c5
JB
12008 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12009 Fix printf format.
bf6c75c9
AR
12010 (ns_query_color): Use CGFloat where appropriate.
12011 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 12012 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
12013 argument.
12014
3d87f118
AR
12015 * config.in (NS_HAVE_NSINTEGER): Drop.
12016
a95c8102
AR
12017 * dbusbind.c (dbus-method-return-internal)
12018 (dbus-method-error-internal): Use long format in printf, and cast
12019 argument.
12020
12021 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12022 in printf, and cast argument.
12023
6873acca 12024 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
12025 cast argument.
12026
9ec6f100
GM
120272009-10-11 Glenn Morris <rgm@gnu.org>
12028
12029 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12030
5be883cd
JD
120312009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12032
12033 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12034 menu bar with a small width so it doesn't enlarge the frame.
12035
d7a39b51
JB
120362009-10-08 Juanma Barranquero <lekktu@gmail.com>
12037
12038 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12039
0c2b6f8e
GM
120402009-10-06 Glenn Morris <rgm@gnu.org>
12041
12042 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12043 SOME_MACHINE_LISP (this enters indirectly via DOC).
12044
e02131a2
EZ
120452009-10-05 Eli Zaretskii <eliz@gnu.org>
12046
12047 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12048
b4744254
EZ
120492009-10-04 Eli Zaretskii <eliz@gnu.org>
12050
12051 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12052 Doc fix.
12053
dbf64827
JB
120542009-10-03 Martin Rudalics <rudalics@gmx.at>
12055
12056 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12057
e9a0aef8
MA
120582009-10-02 Michael Albinus <michael.albinus@gmx.de>
12059
d528b1ce 12060 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
12061 used anymore outside fileio.c.
12062
12063 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12064
64eb2b56
JB
120652009-10-01 Juanma Barranquero <lekktu@gmail.com>
12066
12067 * lisp.h (Qdelete_directory_internal):
12068 Declare, instead of Qdelete_directory.
12069
12070 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12071
9d28c33e
SM
120722009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12073
12074 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12075
9d8f3bd9
MA
120762009-10-01 Michael Albinus <michael.albinus@gmx.de>
12077
9d28c33e 12078 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
12079 Fdelete_directory. It is not a command anymore. It has no file
12080 name handler.
12081
9694740b
SM
120822009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12083
12084 * xdisp.c (get_next_display_element): Use an enum in last change.
12085
748e162f
KH
120862009-09-28 Kenichi Handa <handa@m17n.org>
12087
9694740b 12088 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
12089 unibyte_display_via_language_environment in handling
12090 Vnobreak_char_display.
12091
17efd58d
AR
120922009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12093
12094 * nsterm.h (ns_app_name): New extern variable.
12095
12096 * nsterm.m (ns_app_name): New variable.
12097 (ns_term_init): Set and use it.
12098 (ns_term_shutdown): Use it.
12099
12100 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12101 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12102
12103 * nsfns.m (ns_set_name_iconic, ns_set_name)
12104 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12105 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12106
9694740b
SM
12107 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12108 Remove double-casting in client_data comparison.
31c2d412 12109
3208cb35
YM
121102009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12111
12112 * keyboard.c (make_lispy_event): Remember last wheel direction.
12113 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12114
b7d552d6
GM
121152009-09-26 Glenn Morris <rgm@gnu.org>
12116
12117 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12118 internal.elc. Add term/pc-win.elc.
12119 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12120 term/x-win.elc.
12121 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12122 term/w32-win.elc.
12123 (NS_SUPPORT): New.
12124 (lisp): Add NS_SUPPORT.
12125 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12126
4ff670a8
DR
121272009-09-25 David Reitter <david.reitter@gmail.com>
12128
12129 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12130 on Mac OS X 10.6+ (bug#4513).
12131
feabfb6c
JB
121322009-09-24 Juanma Barranquero <lekktu@gmail.com>
12133
12134 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
12135 some parts of Emacs code (like font selection) don't grok them.
12136 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 12137
de59072a
AS
121382009-09-24 Andreas Schwab <schwab@redhat.com>
12139
12140 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12141
a489517b
JB
121422009-09-24 Juanma Barranquero <lekktu@gmail.com>
12143
12144 * dired.c (Fdirectory_files): Fix typo in docstring.
12145
0592970c
AR
121462009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12147
12148 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12149 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12150 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12151 under GNUstep.
12152 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12153
12154 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12155 glyph advancement.
12156
48e8a88b
AR
121572009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12158
12159 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 12160 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
12161
12162 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12163 deleted (bug #4492).
12164
e14f0a78
AR
12165 * nsfont.m (Vns_reg_to_script): New lisp variable.
12166 (syms_of_nsfont): Declare it.
12167 (ns_registry_to_script): New function.
12168 (ns_get_req_script): Call it.
12169 (ns_findfonts): Don't give up on non-unicode registry.
12170
12171 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12172
5b650faa
SM
121732009-09-20 Tom Tromey <tromey@redhat.com>
12174
12175 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12176 batch mode (bug#4228).
12177
a489517b 121782009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
12179
12180 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 12181 carefully. (Bug #4339)
0bae4e09 12182
fcfe06f3
CY
121832009-09-18 Chong Yidong <cyd@stupidchicken.com>
12184
d798ba87 12185 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 12186
31642728
AR
121872009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12188
12189 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
12190 (main) [HAVE_NS]: Don't process --no-init-file option.
12191 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
12192
12193 * nsterm.h (ns_no_defaults): Remove.
12194
12195 * nsterm.m (ns_no_defaults): Remove.
12196 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12197 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
12198 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12199 don't update the NSWindow itself.
bba3e508
SM
12200 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12201 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
12202
12203 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12204 ns_use_qd_smoothing.
12205
12206 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12207 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 12208 (x-close-connection): Drop PSFlush() under OS X.
a489517b 12209 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 12210
8686ac71
JB
122112009-09-17 Juanma Barranquero <lekktu@gmail.com>
12212
12213 * emacs.c (inhibit_x_resources): New variable.
12214 (main) [HAVE_NS]: Don't process --quick command line option.
12215 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12216
12217 * lisp.h (inhibit_x_resources): Declare it extern.
12218
12219 * w32reg.c (x_get_string_resource):
12220 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12221
e227ba05
EZ
122222009-09-17 Eli Zaretskii <eliz@gnu.org>
12223
362654a6
JB
12224 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12225 Add lisp/term/internal.elc.
e227ba05 12226
742d40e8
SM
122272009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12228
12229 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12230 (bug#4461).
12231
005bd5a2
DN
122322009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12233
12234 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12235
12236 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12237 (OBJECTS_MACHINE): Remove, unused.
12238
f9af9719
SM
122392009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12240
12241 * frame.c (x_get_resource_string): Remove unused.
12242
0307c7d2
JD
122432009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12244
12245 * xterm.c (x_new_font): Call change_frame_size before calling
12246 x_set_window_size, in case frame size won't change.
12247
12248 * frame.c (x_set_font): Remove dead code.
12249
428b13d6
SM
122502009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12251
12252 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12253
5766c380
SM
122542009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12255
12256 * lread.c (Fload): Don't output a message after loading an obsolete
12257 package any more (done in Lisp now).
12258
2fd0161b
CY
122592009-09-12 Chong Yidong <cyd@stupidchicken.com>
12260
12261 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12262
bc5e75b6
SM
122632009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12264
12265 * keymap.c (Fwhere_is_internal): Use nconc2.
12266
c31c985e
AM
122672009-09-11 Alan Mackenzie <acm@muc.de>
12268
12269 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12270 batch mode.
12271
78012bd2
AS
122722009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12273
12274 * xdisp.c (display_mode_element): Detect cycles.
12275
9d889332
SM
122762009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12277
12278 * keymap.c (where_is_internal): Don't erroneously return nil right after
12279 filling the cache.
12280 (where_is_internal_1): Fix up typo.
12281
7ab5d780
GM
122822009-09-11 Glenn Morris <rgm@gnu.org>
12283
12284 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12285 share a common doc-string.
12286
5238a749
SM
122872009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12288
66d77eda
SM
12289 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12290 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12291
5238a749
SM
12292 * keymap.c (QCadvertised_binding): New constant.
12293 (syms_of_keymap): Initialize it.
12294 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12295 if applicable.
12296
19f48442
SM
122972009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12298
50d4ba39
SM
12299 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12300 (parse_menu_item): Streamline since bindings are recomputed all the
12301 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12302 more and don't support lmenu's menu-alias any more either.
12303
a88a5372
SM
12304 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12305 (where_is_internal): Strip it down to only traverse the keymaps.
12306 Move the cache handling from Fwhere_is_internal to here.
12307 (Fwhere_is_internal): Move the handling of remapping and the choice of
12308 the best binding from where_is_internal to here.
12309 Unify the cached/noncached paths, so remapping is also handled
12310 correctly when the cache is used, and so the cache can be used to
12311 speed up remap-handling when applicable.
12312 Give preference to non-remapped bindings.
12313 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12314 non-remapped bindings.
12315 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12316 command remapping.
12317
19f48442
SM
12318 * xdisp.c (display_mode_element): Move list length limit from 50 to
12319 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12320
599498c3 123212009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
12322
12323 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12324
f9b7b5ac
SM
123252009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12326
a53af587
JB
12327 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12328 (Bug#4334)
12329
f9b7b5ac
SM
12330 * keymap.c (where_is_internal): Filter out shadowed remappings.
12331 Assume that where_is_internal returns unshadowed bindings to simplify
12332 the code and get rid of the gotos. Use ASIZE.
12333
04f4b72d
JD
123342009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12335
4da146f2
JD
12336 * xterm.c (x_focus_changed): If we get a focusout and pointer
12337 is invisible, make it visible.
12338
04f4b72d
JD
12339 * xterm.h: Remove condition for declaration of
12340 x_*_window_to_frame.
12341
7cef7ce3
SM
123422009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12343
12344 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12345 initial terminal as well.
12346
a54fa5b7
JD
123472009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12348
12349 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 12350 x_menubar_window_to_frame.
a54fa5b7 12351
50426a04 12352 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
12353 (XTmouse_position): Do not return valid positions
12354 for clicks in the menubar and the toolbar for Gtk+.
12355
12356 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12357 if the widget for the event has the same top level as a frame,
12358 return the frame.
12359 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12360 internal windows, bug #4122.
12361 (x_non_menubar_window_to_frame): Remove.
12362
5a021dd0
GM
123632009-09-02 Glenn Morris <rgm@gnu.org>
12364
12365 * buffer.c (default-major-mode): Move most of the doc from here...
12366 (major-mode): ... to here.
12367
548fe2f3
NR
123682009-08-30 Nick Roberts <nickrob@snap.net.nz>
12369
12370 * process.c (wait_reading_process_output): Keep the descriptor
12371 when pty is used by a non-child process, e.g., in I/O buffer of
12372 GDB this allows inferior to be restarted.
12373
e0840eef
EZ
123742009-08-29 Eli Zaretskii <eliz@gnu.org>
12375
12376 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12377 both branches into one.
12378
82e98df4
SM
123792009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12380
12381 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12382 (main): Use enable-multibyte-characters rather than
12383 default-enable-multibyte-characters. Output a warning message when
12384 running a unibyte session.
12385
890617cb
YM
123862009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12387
12388 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12389 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12390 (copy_data_segment): Also copy __program_vars section.
12391 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12392 (dump_it) [LC_DYLD_INFO]: Use it.
12393
12394 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12395
e7adeadc
EZ
123962009-08-28 Eli Zaretskii <eliz@gnu.org>
12397
12398 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12399 $(SRC)/buildobj.h.
ef1b0ba7 12400 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
12401 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12402 $(SRC)/buildobj.h.
12403 (clean): Add buildobj.h.
12404
3ed8bbdc
TZ
124052009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12406
12407 * print.c (print_object): Set escapeflag to 1 when printing
12408 hashtable keys and values.
12409
155a6764
SM
124102009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12411
12412 * lread.c (read_integer): Use doubles (and potentially return a float
12413 number) as we do in string-to-number.
12414 (read1): Use strtol to read integers, signal errors on strtol's
12415 overflow and use floats if strtol's output is too large for
12416 Elisp integers.
12417
877610de
EZ
124182009-08-27 Eli Zaretskii <eliz@gnu.org>
12419
12420 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12421 (make-buildobj-SH): Fix last change.
12422 (SRC): Move to before where it's first used.
12423
ef73e7be
KH
124242009-08-27 Kenichi Handa <handa@m17n.org>
12425
550c8289
KH
12426 * process.c (send_process): Use encode_coding_object instead of
12427 encode_coding_string to perform eol-conversion even if the string
12428 is unibyte.
12429
60afa08d
KH
12430 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12431 character.
12432
ef73e7be 12433 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 12434 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 12435
7b3a82d7
DN
124362009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12437
5654bf63
DN
12438 * callproc.c (Fcall_process): Remove always true #if.
12439
7b3a82d7
DN
12440 * lisp.h: Replace #if 0 code for checking with text pointing to
12441 the --enable-checking configure flag.
12442
12443 * emacs.c (main): Mention the --enable-profiling configure flag
12444 instead of using CFLAGS.
12445
878bde49
KR
124462009-08-26 Ken Raeburn <raeburn@raeburn.org>
12447
12448 * Makefile.in (buildobj.h): New target.
12449 (doc.o): Depend on it.
12450 (temacs${EXEEXT}): Don't generate buildobj.lst.
12451 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12452 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12453 ($(BLD)/doc.$(O)): Depend on it.
12454 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12455 provided by Eli Zaretskii.)
12456 ($(TEMACS)): Don't generate buildobj.lst.
12457 * doc.c: Include buildobj.h.
12458 (buildobj): New static variable.
12459 (Fsnarf_documentation): Use it, instead of opening and reading
12460 buildobj.lst.
12461
1574224c
MA
124622009-08-25 Michael Albinus <michael.albinus@gmx.de>
12463
12464 * dbusbind.c (Fdbus_call_method)
12465 (Fdbus_call_method_asynchronously): Use English numeric format for
12466 timeout values in doc string.
12467
d9da2f45
KH
124682009-08-25 Kenichi Handa <handa@m17n.org>
12469
ef73e7be
KH
12470 * alloc.c (mark_char_table): New function.
12471 (mark_object): Use mark_char_table for a char-table.
12472
d9da2f45
KH
12473 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12474 (CHAR_TABLE_REF): Use it.
12475
c8edcc01
KR
124762009-08-23 Ken Raeburn <raeburn@raeburn.org>
12477
12478 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12479 before invoking the newly build emacs to check for load-path
12480 shadowing.
12481
7763401b
GM
124822009-08-22 Glenn Morris <rgm@gnu.org>
12483
12484 * Makefile.in (bootstrap_exe): New variable.
12485 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12486 Use ${bootstrap_exe}.
12487
729eadda
EZ
124882009-08-22 Eli Zaretskii <eliz@gnu.org>
12489
12490 * coding.h (encode_coding_string): Don't encode unibyte strings.
12491 (Bug#4047)
12492
eb4c6ace
MA
124932009-08-22 Michael Albinus <michael.albinus@gmx.de>
12494
12495 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12496
12497 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12498 intended as hotfix only.
12499 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12500
36e34d1b
AR
125012009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12502
12503 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
12504 change, and clean up loose ends in the code left by it.
12505 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
12506 yet another X11 format (rgb:r/g/b) for compatibility.
12507 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12508 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12509
f983eb8a
SM
125102009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12511
12512 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12513
3f56d3c6
MA
125142009-08-20 Michael Albinus <michael.albinus@gmx.de>
12515
12516 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12517 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12518 (xd_initialize, xd_pending_messages): Check, whether
12519 $DBUS_SESSION_BUS_ADDRESS is set.
12520
fb641d68
YM
125212009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12522
12523 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12524
12525 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12526
cf59a374
GM
125272009-08-20 Glenn Morris <rgm@gnu.org>
12528
12529 * emacs.c (system-type): Doc fix.
12530
1373f3be
SM
125312009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12532
12533 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12534 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12535
058ed861
MA
125362009-08-18 Michael Albinus <michael.albinus@gmx.de>
12537
1373f3be
SM
12538 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12539 New functions.
058ed861
MA
12540 (xd_initialize): Revert change from 2009-08-16.
12541
563a866e 125422009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
12543
12544 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 12545 font-group vector, return nil.
5fc05db0 12546
e42bdf01
CY
125472009-08-17 Chong Yidong <cyd@stupidchicken.com>
12548
12549 * process.c (status_notify): Don't perform redisplay.
12550 (Fdelete_process, list_processes_1, process_send_signal):
12551 Expliticly perform redisplay.
12552 (wait_reading_process_output): Always check process status, but
12553 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12554
4230ab74
KR
125552009-08-17 Ken Raeburn <raeburn@raeburn.org>
12556
1373f3be 12557 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
12558 (XFLOAT_INIT): New macro for storing a float value.
12559 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12560 * fns.c (sxhash): Copy out the value of a float in order to
12561 examine its bytes.
12562 * dbusbind.c (xd_append_arg): Likewise.
12563
4230ab74
KR
12564 * emacs.c (main): Don't call syms_of_data twice.
12565
a0645cdd
MA
125662009-08-16 Michael Albinus <michael.albinus@gmx.de>
12567
12568 * dbusbind.c (xd_initialize): Add connection file descriptor to
12569 input_wait_mask, in order to let select() detect, whether a new
12570 message has been arrived.
ca4f31ea 12571 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 12572
485db0ba
MA
125732009-08-15 Michael Albinus <michael.albinus@gmx.de>
12574
1373f3be
SM
12575 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12576 New functions.
485db0ba
MA
12577
12578 * lisp.h (xd_pending_messages): Declare.
12579
12580 * keyboard.c (readable_events): Call xd_pending_messages.
12581
b5b98ff4
CY
125822009-08-15 Chong Yidong <cyd@stupidchicken.com>
12583
1373f3be 12584 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 12585
f8354c6e
CY
12586 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12587
b5b98ff4
CY
12588 * buffer.c (set_buffer_internal_1)
12589 (swap_out_buffer_local_variables): Check for unbound local
12590 variables (Bug#4138).
12591
8b9fc636
EZ
125922009-08-14 Eli Zaretskii <eliz@gnu.org>
12593
12594 * process.c (create_pty): Fix last change.
12595
ce959360
CY
125962009-08-13 Chong Yidong <cyd@stupidchicken.com>
12597
12598 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
12599 (xbm_load_image): Caller changed.
64b807c9 12600 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 12601
c7baf7e9
NR
126022009-08-13 Nick Roberts <nickrob@snap.net.nz>
12603
12604 * process.c (create_pty): New function.
12605 (Fstart_process): Use it to allow Emacs to just associate a pty
12606 with the buffer. See associated change in gdb-mi.el.
12607 (list_processes_1): Deal with no program name.
12608 (start_process_unwind): Use pid == -2 to mean no process.
12609
1ac9108a
SM
126102009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
12611
12612 * cmds.c (nonundocount): New global variable.
12613 (keys_of_cmds): Initialize it.
12614 (Fself_insert_command): Use it to combine upto 20 sequential chars
12615 into a single undo entry, just like the Qself_insert_command code in
12616 keyboard.c does.
12617 Call frame_make_pointer_invisible, also like the Qself_insert_command
12618 code in keyboard.c does.
12619 * keyboard.c (command_loop_1): Use the new global nonundocount rather
12620 than its own local replacement for it.
12621
e267324c
KR
126222009-08-10 Ken Raeburn <raeburn@raeburn.org>
12623
1ac9108a 12624 * fns.c (concat): Don't re-set string length to its current value.
77437343 12625
1ac9108a
SM
12626 * coding.h (decode_coding_string, encode_coding_string):
12627 Use SBYTES macro.
f0bed503 12628
1ac9108a 12629 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
12630 (doprnt): Merge with doprnt1, discarding lispstrings code.
12631 * lisp.h (doprnt_lisp): Don't declare.
12632
416e006d
JL
126332009-08-07 Juri Linkov <juri@jurta.org>
12634
12635 * puresize.h (BASE_PURESIZE): Increase to 1270000.
12636
6f7d5780
DN
126372009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12638
12639 * print.c (syms_of_print): Undo previous change.
12640
f19a0f5b
TZ
126412009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
12642
12643 * lread.c (read1, syms_of_lread): Read hashtables back from the
12644 readable format.
12645
12646 * print.c (print_preprocess, print_object): Print hashtables fully
12647 and readably.
12648 (syms_of_print): Provide 'hashtable-print-readable.
12649
b9173dc2
AR
126502009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12651
12652 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
12653 no family set.
12654 (nsfont_open): Handle case when entity has no family.
12655
1586503c
AR
126562009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12657
12658 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
12659 element, not a list, for match case.
12660
087048cd
KH
126612009-07-28 Kenichi Handa <handa@m17n.org>
12662
12663 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
12664 rigidly.
12665
12666 * xfont.c (xfont_list_pattern): Don't ignore the return value of
12667 font_parse_xlfd. Check font properties more rigidly.
12668
780c2506
DN
126692009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12670
31fd7c5c
JB
12671 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
12672 bsd-common.h.
780c2506 12673
a8c0cc18
KH
126742009-07-27 Kenichi Handa <handa@m17n.org>
12675
12676 * xfaces.c (face_with_height): Call font_clear_prop.
12677
4fbe2306
CY
126782009-07-26 Chong Yidong <cyd@stupidchicken.com>
12679
111d9af3
CY
12680 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
12681
12682 * xterm.c (x_term_init): Use Qx.
12683
4fbe2306
CY
12684 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
12685
1ac9108a 12686 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
12687 (ns_get_color): Revert 2009-07-16 change.
12688
beb0b7f9
EZ
126892009-07-25 Eli Zaretskii <eliz@gnu.org>
12690
12691 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 12692 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 12693
2baf5e76
KR
126942009-07-25 Ken Raeburn <raeburn@raeburn.org>
12695
1ac9108a
SM
12696 * coding.h (decode_coding_string, encode_coding_string):
12697 Use SCHARS macro.
8890e5f5 12698
2baf5e76 12699 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 12700 (load_depth): Delete.
2baf5e76
KR
12701 (Qload_in_progress): New variable.
12702 (load_unwind): Don't reference load_depth or load_in_progress.
12703 (Fload): Likewise; specbind Qload_in_progress instead.
12704 (init_lread): Don't initialize load_depth.
12705 (syms_of_lread): Initialize and protect Qload_in_progress.
12706
1395c6f5
AR
127072009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12708
12709 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
12710
4e2f36cf
AR
127112009-07-23 Yavor Doganov <yavor@gnu.org>
12712
12713 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
12714
5dd9a6f7
AR
127152009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12716
12717 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
12718 Bugs 3792, 3720, 2402.
12719 (ns_lookup_indexed_color): Check for bad index.
12720 (ns_index_color): Init unused slot to 0.
12721 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
12722 Bug 3714, possibly 3082.
5dd9a6f7 12723
c902b920
JR
127242009-07-22 Jason Rumney <jasonr@gnu.org>
12725
1ac9108a
SM
12726 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
12727 Position IME window at cursor (Bug#2570).
c902b920
JR
12728 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
12729 (globals_of_w32fns): Dynamically load functions required above.
12730
12731 * w32term.c (w32_draw_window_cursor): Send message to reposition
12732 any IME window.
12733
090101cf
CY
127342009-07-21 Chong Yidong <cyd@stupidchicken.com>
12735
12736 * fileio.c: Revert 2009-07-16 changes.
12737 (Vauto_save_include_big_deletions): New variable.
12738 (Fdo_auto_save): Disable auto-save only if
12739 auto-save-include-big-deletions is nil.
12740
e6583e3d
CY
127412009-07-21 Chong Yidong <cyd@stupidchicken.com>
12742
12743 * xdisp.c (move_it_to): For continued lines ending in a tab, take
12744 the overflowed pixels into account (Bug#3879).
12745
ece435a5
KR
127462009-07-21 Ken Raeburn <raeburn@raeburn.org>
12747
12748 * lread.c (load_depth): New variable.
12749 (Fload, load_unwind, init_lread): Set it to the load recursion
12750 depth; set load_in_progress as a simple boolean based on the
12751 current load_depth. (Bug#3892)
12752
40b2d973
AR
127532009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12754
12755 * nsfont.m (ns_has_attribute): Remove.
12756 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
12757
10be7e0d
JL
127582009-07-18 Juri Linkov <juri@jurta.org>
12759
12760 * process.c (Fset_process_query_on_exit_flag): Mention killing
12761 a buffer in docstring.
12762
fa055055
KH
127632009-07-17 Kenichi Handa <handa@m17n.org>
12764
12765 * casetab.c (shuffle): Fix the logic of setting up the cycle.
12766
042f7b69
YM
127672009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12768
12769 * nsfns.m (Fns_set_alpha): Remove function.
12770 (syms_of_nsfns): Don't defsubr it.
12771
12772 * nsterm.m (ns_get_color): Remove incompatible color formats.
12773 (ns_color_to_lisp): Generate #rrggbb color format string.
12774
4be941e3
RS
127752009-07-16 Richard Stallman <rms@gnu.org>
12776
12777 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
12778 (Fset_buffer_auto_saved): Handle save_length = -2.
12779
4e6b227d
CY
127802009-07-16 Chong Yidong <cyd@stupidchicken.com>
12781
12782 * xterm.c (Qx_gtk_map_stock): New var.
12783
12784 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
12785 of calling intern each time.
12786
a1856973
YM
127872009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12788
12789 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
12790 does tiling.
12791
12792 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12793
497e54d8
KH
127942009-07-14 Kenichi Handa <handa@m17n.org>
12795
72d36834
KH
12796 * font.c (font_vconcat_entity_vectors): New function.
12797 (struct font_sort_data): New member font_driver_preference.
12798 (font_compare): Check font_driver_preference.
12799 (font_sort_entities): The format of the first argument changed.
12800 (font_delete_unmatched): Likewise.
12801 (font_list_entities): The return type changed.
12802 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
12803 (font_find_for_lface): Adjuste for the above changes.
12804 Don't suppress the checking of C even if the repertory supports it.
12805 (Flist_fonts): Adjust for the above changes.
72d36834 12806
1ac9108a
SM
12807 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12808 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
12809 Reject a font who has adstyle property that is different from a
12810 langname derived from registry property.
1ac9108a 12811 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 12812
b6046155
EZ
128132009-07-13 Eli Zaretskii <eliz@gnu.org>
12814
12815 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12816 local copy of dirfilename.
12817
fb6b6049
KH
128182009-07-13 Kenichi Handa <handa@m17n.org>
12819
e2402a5e
KH
12820 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12821 against max_char.
12822
fb6b6049
KH
12823 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12824 calling XSYMBOL (sym).
12825
65156807
EZ
128262009-07-11 Eli Zaretskii <eliz@gnu.org>
12827
1ac9108a
SM
12828 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
12829 New function.
12830 (directory_files_internal) [WINDOWSNT]:
12831 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
12832 the filesystem of the directory is fast or slow.
12833
12834 * w32.c (logon_network_drive): Don't assume PATH is an absolute
12835 file name.
12836 (is_slow_fs): New function.
12837 (stat): Use it to determine whether to issue more system calls to
12838 get accurate file attributes, when w32-get-true-file-attributes is
12839 `local'.
12840
e0ab5fcf
JD
128412009-07-10 Jan Djärv <jan.h.d@swipnet.se>
12842
12843 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 12844 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
12845 parameter font-parameter as default to the font dialog.
12846
784ceded
KH
128472009-07-10 Kenichi Handa <handa@m17n.org>
12848
12849 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
12850
fb8edc0b
EZ
128512009-07-09 Eli Zaretskii <eliz@gnu.org>
12852
1ac9108a 12853 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 12854
fb8edc0b
EZ
12855 * w32.c (stat): Treat UNC file names as residing on remote
12856 drives. (Bug#3542)
12857
635c75b1
KH
128582009-07-09 Kenichi Handa <handa@m17n.org>
12859
12860 * fontset.c (fontset_find_font): Fix previous change.
12861
c1d5ce94
MA
128622009-07-08 Michael Albinus <michael.albinus@gmx.de>
12863
12864 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
12865 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
12866 error flag.
12867
edb61b39
KH
128682009-07-08 Kenichi Handa <handa@m17n.org>
12869
374bf7e4
KH
12870 * fontset.c (fontset_find_font): Fix the logic of handling
12871 charset_matched.
12872 (font_for_char): Delete unused var.
12873 (generate_ascii_font_name): Delete it.
12874
edb61b39
KH
12875 * coding.h (JIS_TO_SJIS2): Fix the code range check.
12876
12877 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
12878 (encode_coding_sjis): Fix the code range check.
12879
0f3f018c
CY
128802009-07-07 Chong Yidong <cyd@stupidchicken.com>
12881
12882 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
12883 (Fexpand_file_name): Copy string data properly (Bug#3772).
12884
fcaf6f3a
JD
128852009-07-07 Jan Djärv <jan.h.d@swipnet.se>
12886
12887 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
12888 first MapNotify.
12889
6809ca75
KH
128902009-07-07 Kenichi Handa <handa@m17n.org>
12891
12892 * character.h (unibyte_has_multibyte_table): Delete extern.
12893 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
12894
12895 * charset.c (Fset_charset_priority): Update charset_unibyte.
12896 (syms_of_charset): Initialize charset_unibyte.
12897
12898 * character.c (unibyte_has_multibyte_table): Delete it.
12899 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
12900 charset_unibyte.
12901 (multibyte_char_to_unibyte_safe): Likewise.
12902 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
12903
1ac9108a 12904 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
12905 (x_produce_glyphs): Likewise.
12906
12907 * .gdbinit (xcharset): Fix the treating $arg0.
12908
ad9e2d54
EZ
129092009-07-04 Eli Zaretskii <eliz@gnu.org>
12910
12911 Emulation of `getloadavg' on MS-Windows.
50426a04 12912 * w32.c: Include float.h.
ad9e2d54
EZ
12913 (g_b_init_get_native_system_info, g_b_init_get_system_times)
12914 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
12915 (get_native_system_info, get_system_times): New functions.
12916 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
12917 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
12918 (globals_of_w32): Initialize g_b_init_get_native_system_info,
12919 g_b_init_get_system_times, and num_of_processors.
12920
0a3472c7
JR
129212009-07-03 Jason Rumney <jasonr@gnu.org>
12922
12923 * w32term.c (w32_initialize): Use standard types.
12924
80904120
EZ
129252009-07-03 Eli Zaretskii <eliz@gnu.org>
12926
12927 * dired.c (Ffile_attributes): Decode user and group names by the
12928 locale's encoding. (Bug#3443)
12929
6978862d
DN
129302009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12931
f8d23104
DN
12932 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12933 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12934
12935 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12936
12937 * term.c (init_tty): Remove spurious #ifdef.
12938
6978862d
DN
12939 * m/mips.h: Mention this file is also used for netbsd.
12940 * m/pmax.h: Remove file.
12941
e044e4fc
JD
129422009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12943
12944 * xterm.h (struct x_display_info): Add invisible_cursor.
12945 (struct x_output): Add current_cursor.
12946
12947 * xterm.c (XTtoggle_invisible_pointer): New function.
12948 (x_define_frame_cursor): Don't define cursor if invisible or the
12949 same as before. Set current_cursor.
12950 (x_create_terminal): Set toggle_invisible_pointer_hook.
12951
12952 * xfns.c (make_invisible_cursor): New function.
12953 (x_set_mouse_color): Call make_invisible_cursor.
12954 Set current_cursor.
12955 (x_window): Set current_cursor.
12956
12957 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12958
12959 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12960 inserting a character.
12961 (read_avail_input): Call frame_make_pointer_visible.
12962
12963 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
12964 (frame_make_pointer_invisible, frame_make_pointer_visible):
12965 New functions.
e044e4fc
JD
12966 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12967
12968 * frame.h: Declare frame_make_pointer_invisible and
12969 frame_make_pointer_visible.
12970 (struct frame): Add pointer_invisible.
12971
574c8efa
JD
129722009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12973
7b507248
JD
12974 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12975 frame isn't visible.
12976 (xg_frame_resized): If width/height is -1, get size of window
12977 from X server.
12978
12979 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12980 for MapNotify.
12981
835bdaa7 12982 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 12983 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 12984 (flush_and_sync): Reintroduce.
574c8efa 12985
3f1c6666 129862009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 12987
31fd7c5c 12988 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
12989
12990 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12991 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12992
12993 * frame.h: Declare Qsticky.
12994
cad9ef74
JD
12995 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12996
12997 * nsfns.m (ns_frame_parm_handlers): Ditto.
12998
12999 * frame.c: Declare Qsticky.
13000 (frame_parms): Add sticky.
13001
13002 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13003
13004 * xterm.h: Declare x_set_sticky.
13005
13006 * xterm.c (x_set_sticky): New function.
13007
69b16610
JD
13008 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13009 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13010 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
13011
13012 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13013
13014 * frame.c: Qmaximized is new.
13015 (x_set_frame_parameters): Do not handle fullscreen specially.
13016 Only set width and height if explicitly set.
13017 (x_set_fullscreen): Handle Qmaximized.
13018 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13019 (syms_of_frame): Initialize Qmaximized.
13020
1ac9108a
SM
13021 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13022 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
13023
13024 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
13025 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13026 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
13027 set gravity to NorthWestGravity when USE_GTK.
13028 (set_wm_state): New function.
31fd7c5c 13029 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
13030 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13031 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 13032 or the case when no window manager is running. That means remove calls
3f1c6666
JD
13033 to x_real_positions and x_fullscreen_adjust.
13034
13035 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13036 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13037 flush_and_sync.
13038 (xg_height_changed): New function.
13039 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
13040 and gtk_window_set_policy. Set frame gravity after parsing the
13041 geometry string.
3f1c6666
JD
13042 (xg_update_frame_menubar, free_frame_menubar)
13043 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13044 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13045 Remove calls to xg_frame_set_char_size.
13046
fd503d99
KH
130472009-07-01 Kenichi Handa <handa@m17n.org>
13048
13049 * keyboard.c (decode_keyboard_code): New function.
13050 (tty_read_avail_input): Decode the input bytes if necessary.
13051
1ac9108a
SM
13052 * coding.c (setup_coding_system):
13053 Initialize coding->carryover_bytes to 0.
fd503d99
KH
13054 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13055 use Qno_conversion.
13056
24ed93fb
YM
130572009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13058
13059 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13060
99061dfc
CY
130612009-06-30 Chong Yidong <cyd@stupidchicken.com>
13062
1ac9108a 13063 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 13064
ff90fbde
JR
130652009-06-30 Jason Rumney <jasonr@gnu.org>
13066
13067 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13068 is already loaded.
13069 Set user model ID if supported (bug#1849).
13070
5f445726
JM
130712009-06-29 Jim Meyering <meyering@redhat.com>
13072
13073 Remove useless if-before-xfree test.
13074 * nsfont.m (nsfont_close): Remove useless test.
13075 * term.c (delete_tty): Likewise.
13076 * w32.c (system_process_attributes): Likewise.
13077 * w32font.c (w32font_close): Likewise.
13078 * xfaces.c (x_free_gc): Likewise.
13079 * xselect.c (buffer): Likewise.
13080
b9607587
AS
130812009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13082
13083 * process.c (send_process): Keep decoded string in a local
13084 variable and protect it from GC. (Bug#3521)
13085
89ba96f4
EZ
130862009-06-28 Eli Zaretskii <eliz@gnu.org>
13087
13088 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13089 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13090
098a1589
CY
130912009-06-28 Chong Yidong <cyd@stupidchicken.com>
13092
485422be
CY
13093 * xdisp.c (start_display, handle_face_prop)
13094 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
13095 (redisplay_window, try_window_id, produce_image_glyph):
13096 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 13097
098a1589
CY
13098 * xterm.c (x_update_window_begin, x_new_focus_frame)
13099 (x_scroll_bar_handle_click, handle_one_xevent)
13100 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13101 (x_make_frame_visible, x_make_frame_invisible)
13102 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13103 code chunks that are now obsolete.
13104
78c38319
MA
131052009-06-28 Michael Albinus <michael.albinus@gmx.de>
13106
13107 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13108 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13109 for hours, when optimzation is enabled.
13110 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13111 (xd_read_message): Make them static.
13112
4189ed40
CY
131132009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13114
13115 * term.c (turn_on_face): Allow simultaneously bold and dim
13116 terminal faces (Bug#3530).
13117
cd9b5e16
CY
131182009-06-27 Chong Yidong <cyd@stupidchicken.com>
13119
4e23bedb
CY
13120 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13121
cd9b5e16
CY
13122 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13123 truncation glyphs (Bug#3686).
13124
07cc3c35
GM
131252009-06-27 Glenn Morris <rgm@gnu.org>
13126
13127 * m/pmax.h: Restore file, with only netbsd portions.
13128
31fd7c5c 131292009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 13130
cd9b5e16 13131 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 13132
42d4a64f
KH
131332009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13134
13135 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13136 the arg FORCE_SYMBOL.
13137
930fe55b 131382009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
13139
13140 * fontset.c (fontset_find_font): When a usable rfont_def is found
13141 in a fallback font-group, make it the first element of the group.
13142
57ebc3fd
CY
131432009-06-24 Chong Yidong <cyd@stupidchicken.com>
13144
13145 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13146
f084f942
KH
131472009-06-24 Kenichi Handa <handa@m17n.org>
13148
13149 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13150 set for C.
13151 (fontset_font): Record the availability of a font for C both in
13152 the realized fontsets of the current one and the default one.
13153
2f686c87
DN
131542009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13155
13156 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13157 conditional, it is always defined on AIX.
13158
666e158e
MB
131592009-06-23 Miles Bader <miles@gnu.org>
13160
13161 * window.c (Vrecenter_redisplay): New variable.
13162 (syms_of_window): Initialize it.
13163 (Qtty): New extern declaration.
13164 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13165
c6da7cd2
JM
131662009-06-23 Jim Meyering <meyering@redhat.com>
13167
1ac9108a
SM
13168 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13169 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 13170 pointer dereferences are guaranteed to be valid.
c6da7cd2 13171
678dca3d
KH
131722009-06-23 Kenichi Handa <handa@m17n.org>
13173
74d75424
KH
13174 * emacs.c (main): Call init_font ().
13175
13176 * font.h (Vfont_log): Extern it.
13177 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13178
13179 * font.c (font_sort_entities, font_list_entities)
13180 (font_matching_entity, font_open_entity)
13181 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13182 (Vfont_log): Delete static.
13183 (font_log_env_checked): Delete this variable.
13184 (font_add_log): Don't check font_log_env_checked.
13185 (font_deferred_log): Check Vfont_log.
13186 (init_font): New function.
13187
678dca3d
KH
13188 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13189
13190 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13191
13192 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13193
13194 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13195
13196 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13197 (face_for_char): Don't call font_deferred_log here.
13198 (font_for_char): Likewise.
13199
8a668709
CY
132002009-06-22 Chong Yidong <cyd@stupidchicken.com>
13201
9a01ee33
CY
13202 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13203 rather than its background_width for drawing the overline and
13204 underline (Bug#489).
13205
13206 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13207 rather than its background_width for drawing the overline and
13208 underline (Bug#489).
ec7c9926
CY
13209 (xg_default_icon_file): New variable.
13210 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13211 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 13212
8a668709
CY
13213 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13214 (load_overlay_strings): Remove externs.
13215 (fast_find_position): Function deleted.
13216 (mouse_face_from_buffer_pos): New function, based on
13217 fast_find_position. Correctly handle before-strings,
13218 display-strings, and after-strings (Bug#1220).
13219 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13220
4d4c02d8
CY
132212009-06-21 Chong Yidong <cyd@stupidchicken.com>
13222
1ac9108a 13223 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
13224 (move_it_in_display_line_to, move_it_in_display_line_to)
13225 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13226
70243478
CY
132272009-06-21 Chong Yidong <cyd@stupidchicken.com>
13228
13229 * Branch for 23.1.
13230
13087e59
JR
132312009-06-21 Jason Rumney <jasonr@gnu.org>
13232
13233 * w32term.c (keyboard_codepage): New static variable.
13234 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13235 (w32_read_socket) [WM_CHAR]: Use it to decode character
13236 input (bug#3237).
13237 (w32_initialize): Initialize it.
13238 (codepage_for_locale): New function.
13239
4735b74e
KR
132402009-06-20 Ken Raeburn <raeburn@raeburn.org>
13241
13242 * process.c (status_message): Pass Faset index argument as a lisp
13243 object, so as to work with USE_LISP_UNION_TYPE.
13244
0e727afa
YM
132452009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13246
13247 * coding.c (Ffind_coding_systems_region_internal):
13248 Cache checked characters.
13249
cf299835
KH
132502009-06-18 Kenichi Handa <handa@m17n.org>
13251
1ac9108a 13252 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 13253
90f20d94
AS
132542009-06-18 Andreas Schwab <aschwab@redhat.com>
13255
13256 * xdisp.c (redisplay_internal): Check that the frame is still
13257 live after redisplay of its windows.
13258 (redisplay_windows): Check that the window is still live.
13259
7f1faf1c
KH
132602009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13261
13262 * coding.c (detect_coding_utf_16): Fix previous change.
13263
cc13543e
KH
132642009-06-16 Kenichi Handa <handa@m17n.org>
13265
13266 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13267 UTF-16 by checking the dispersion of Eth and Oth bytes.
13268
977b85f4
AS
132692009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13270
13271 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13272
66bd43d1
KH
132732009-06-15 Kenichi Handa <handa@m17n.org>
13274
13275 * process.c (status_message): Fix previous change. Be sure to
13276 decode a localized string.
13277
cb5ca9c5
YM
132782009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13279
13280 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13281 add comment explaining why.
13282
ec7709ba 132832009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 13284
ec7709ba 13285 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 13286
4b7f335c
AR
132872009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13288
13289 * nsfont.m (ns_attribute_value): Remove.
13290 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13291 (ns_has_attribute): Shrink the normal range.
13292 (ns_findfonts): Don't worry about requested spec in determining
13293 need for synthItal.
e41820ee 13294 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 13295
73b26103
SZ
132962009-06-14 Seiji Zenitani <zenitani@mac.com>
13297
13298 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13299
5753e4da
KH
133002009-06-11 Kenichi Handa <handa@m17n.org>
13301
13302 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13303 overhang for the static composition case.
13304
3561b671
KH
133052009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13306
5753e4da
KH
13307 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13308 overhang for the automatic composition case.
13309
3561b671
KH
13310 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13311 composition case.
13312
852bbd41
CY
133132009-06-10 Chong Yidong <cyd@stupidchicken.com>
13314
13315 * xdisp.c (get_next_display_element): When handling wrap-prefix
13316 and line-prefix, treat \n as a control character (bug#3502).
13317
9903d1e6
KH
133182009-06-10 Kenichi Handa <handa@m17n.org>
13319
13320 * font.c (font_parse_family_registry): Fix for one-char foundry.
13321 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13322
0bcbaaaa
CY
133232009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13324
13325 * process.c (status_message): Fix handling of multibyte signal
13326 string (Bug#3499).
13327
40aa3f13
JM
133282009-06-09 Jim Meyering <meyering@redhat.com>
13329
1f80c7e2
CY
13330 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13331 color name is missing.
40aa3f13 13332
72d51285
KH
133332009-06-09 Kenichi Handa <handa@m17n.org>
13334
13335 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13336 FROM-CODE and TO-CODE are codepoints of CHARSET.
13337
c1d04d84
AR
133382009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13339
13340 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13341
133422009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13343
13344 Changes to support :script/:lang/:otf in NS font driver.
13345 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13346 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13347 indicate not part of font driver interface, and change callers.
13348 (ns_get_family): Remove pointless null check.
13349 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13350 ns_spec_to_descriptor, ns_descriptor_to_entity.
13351 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13352 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13353 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13354 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13355 (ns_get_req_script, ns_accumulate_script_ranges)
13356 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13357 New functions.
13358 (nsfont_list, nsfont_match): Use ns_findfonts.
13359 (nsfont_open): Use font descriptor instead of traits.
13360 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13361 (dump_glyphstring): Rename to ns_dump_glyphstring.
13362
c7eb9816
AR
13363 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13364
c1d04d84
AR
13365 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13366
13367 * fontset.c (fontset_from_font): Remove NS-specific code.
13368
ec7709ba 133692009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
13370
13371 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13372 nonactive windows.
13373
31fd7c5c 133742009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 13375
1ac9108a 13376 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 13377
68852c13 133782009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
13379
13380 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13381
6756cd1d
CY
133822009-06-07 Chong Yidong <cyd@stupidchicken.com>
13383
13384 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13385 account for the overflowing of newlines into the last glyph on the
13386 display line (Bug#3482).
13387
28bf482a
DR
133882009-06-05 David Reitter <david.reitter@gmail.com>
13389
ec7709ba
JB
13390 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13391 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
13392 Fns_selection_exists_p, Fns_selection_owner_p.
13393
fdb55376
JR
133942009-06-03 Jason Rumney <jasonr@gnu.org>
13395
13396 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13397 available. (Bug#3379)
13398
05129fbe
KH
133992009-05-29 Kenichi Handa <handa@m17n.org>
13400
1ac9108a
SM
13401 * coding.c (get_translation_table):
13402 Check Venable_character_translation.
05129fbe 13403
ec7709ba 134042009-05-26 David Reitter <david.reitter@gmail.com>
15891144 13405
ec7709ba
JB
13406 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13407 (x_make_frame_visible): Move frame to front rather than calling
15891144 13408 ns_raise_frame().
ec7709ba 13409 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 13410 isn't key window.
ec7709ba 13411 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
13412 drawRect may be called by NSView even if the frame is hidden.
13413
ec7709ba
JB
13414 * nsfns.m (Fx_create_frame): Follow other ports in
13415 determining visibility; default to t. Ensure async_visible is set.
15891144 13416
21f73755
EZ
134172009-05-23 Eli Zaretskii <eliz@gnu.org>
13418
13419 * dired.c (Ffile_attributes): Doc fix.
13420
34001e41
CY
134212009-05-22 Chong Yidong <cyd@stupidchicken.com>
13422
13423 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13424
46306a17
SM
134252009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13426
13427 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13428 and xfont_scratch_props.
13429 (syms_of_xfont): Do it here instead.
13430 (xfont_find_ccl_program): Delete, unused.
13431 (xfont_open): Delete unused var `i'.
13432
ef6e0694
KH
134332009-05-21 Kenichi Handa <handa@m17n.org>
13434
13435 * fontset.c (Qlatin): Don't make it static.
13436
46306a17
SM
13437 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13438 New functions.
ef6e0694
KH
13439 (xfont_scripts_cache, xfont_scratch_props): New variables.
13440 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
13441 (xfont_list_pattern): Argument changed. Callers changed.
13442 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
13443 (xfont_list): Don't reject a font spec with :script property.
13444 (xfont_has_char): Fix setting of encoding.
13445 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13446 xfont_scratch_props.
13447
134482009-05-19 Kenichi Handa <handa@m17n.org>
13449
46306a17 13450 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
13451 Callers changed.
13452
134532009-05-18 Kenichi Handa <handa@m17n.org>
13454
13455 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13456
ac71ced7
SM
134572009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13458
13459 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13460 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13461
1c6d1051
YM
134622009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13463
13464 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13465 (x_delete_terminal): Dissociate resource database from display and
13466 then call XrmDestroyDatabase before closing display.
13467
9b9b779c
AR
134682009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13469
13470 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
13471 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13472 whether selected frame is viable before raising it (based on patch
13473 by David Reitter), and improve commentary.
13474 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 13475
cccd42d5
KH
134762009-05-15 Kenichi Handa <handa@m17n.org>
13477
13478 * font.c (Ffont_spec): Check arguments.
13479
337fbd17
CY
134802009-05-14 Chong Yidong <cyd@stupidchicken.com>
13481
13482 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13483 weight when testing attributes (Bug#3282).
13484
47a6002f
JD
134852009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13486
13487 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13488 what we expect to get in the next ConfigureNotify event.
13489
9cb363db
YM
13490 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13491 before Xft one (Bug#1696).
13492
b9126609
CY
134932009-05-07 David Reitter <david.reitter@gmail.com>
13494
13495 * nsfns.m (Fx_display_planes): Compute bitplanes using
13496 NSBitsPerPixelFromDepth (Bug#3207).
13497
27a69fd9
CY
134982009-05-10 Chong Yidong <cyd@stupidchicken.com>
13499
13500 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13501
00f37552
TTN
135022009-05-10 Ulrich Mueller <ulm@gentoo.org>
13503
13504 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13505
2d82a920
DR
135062009-05-07 David Reitter <david.reitter@gmail.com>
13507
ec7709ba
JB
13508 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13509 Respect mouse face background.
2d82a920 13510
46b0d52d
DR
135112009-05-07 David Reitter <david.reitter@gmail.com>
13512
ec7709ba
JB
13513 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13514 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
13515 in ns_update_begin and ns_update_end.
13516
ce1b23bb
SM
135172009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13518
5996e1b7
SM
13519 * nsfns.m (ns_get_screen): Rewrite.
13520 Don't presume selected-frame is of type `ns'.
13521
ba98e3a0
SM
13522 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13523 all drivers.
13524
ce1b23bb
SM
13525 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13526
bcda200f
YM
135272009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13528
13529 * keyboard.h (add_user_signal): Fix typo in extern.
13530
13531 * lisp.h (add_user_signal): Remove extern.
13532
13533 * unexelf.c (unexec): Consider a section to precede the .bss section
13534 if its addresses overlap that of .bss.
13535 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13536 instead of dumping process.
13537
864660a2
SM
135382009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13539
13540 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13541
50da4e56
SM
135422009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13543
13544 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13545
51520a1a
DN
135462009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13547
13548 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13549 any statements.
13550
409ea3a1
AS
135512009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13552
59c4c60f
AS
13553 * process.c (read_process_output): Make sure the current buffer is
13554 always restored.
13555
409ea3a1
AS
13556 * coding.c (record_conversion_result): Don't modify
13557 Vlast_code_conversion_error for successful result.
13558 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13559
56f00ed2
KH
135602009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13561
13562 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 13563 (load_charset_map): Remove unnecessary code.
56f00ed2 13564
4491c9d2
DR
135652009-04-30 David Reitter <david.reitter@gmail.com>
13566
35f5b128 13567 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
13568 through f24.
13569
6970f632
CY
135702009-04-30 Chong Yidong <cyd@stupidchicken.com>
13571
13572 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13573
13574 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13575 face_at_buffer_position.
13576 (face_before_or_after_it_pos, get_next_display_element)
13577 (note_mouse_highlight): Update face_at_buffer_position call.
13578
13579 * term.c (term_mouse_highlight):
13580 * msdos.c (IT_note_mouse_highlight):
13581 * fontset.c (Finternal_char_font):
35f5b128 13582 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
13583
13584 * dispextern.h (face_at_buffer_position): Update prototype.
13585
0c616f63
KH
135862009-04-30 Kenichi Handa <handa@m17n.org>
13587
35f5b128 13588 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 13589
ad3aaf33
AS
135902009-04-29 Andreas Schwab <schwab@linux-m68k.org>
13591
13592 * callproc.c (Fcall_process): Fix GC protection. Make sure
13593 current buffer is always restored.
13594
c3c963a0
YM
135952009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13596
13597 * atimer.c (init_atimer): Also clear stopped_atimers.
13598
13599 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
13600
7e3386cb
YM
13601 * process.c (create_process): Clean up merger residues of
13602 2008-07-17 change.
13603
91f68422
CY
136042009-04-29 Ulrich Mueller <ulm@gentoo.org>
13605
13606 * lread.c (Vread_circle): New variable.
13607 (read1): Disable recursive read if Vread_circle is nil.
13608
24b34550
KH
136092009-04-29 Kenichi Handa <handa@m17n.org>
13610
13611 * fontset.h (set_default_ascii_font): Delete extern.
13612
13613 * fontset.c (set_default_ascii_font): Delete this unused function.
13614
13615 * frame.c (x_set_font): When ARG is a font-object, check if the
13616 font-object matches with the ASCII font-spec of the frame's
9c358bda 13617 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 13618
77bf07e1
AS
136192009-04-28 Andreas Schwab <schwab@linux-m68k.org>
13620
13621 * fns.c (Flocale_info): Protect vector from GC during decoding.
13622
13623 * process.c (Fstart_process): Protect argv strings from GC during
13624 encoding.
13625
2c55aacf
AS
136262009-04-27 Andreas Schwab <schwab@linux-m68k.org>
13627
13628 * sysdep.c: Include <ctype.h>.
13629
b892d3c9
DR
136302009-04-27 David Reitter <david.reitter@gmail.com>
13631
35f5b128 13632 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
13633 Remove commented-out code.
13634
9d0644c4
JB
136352009-04-26 Johan Bockgård <bojohan@gnu.org>
13636
13637 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13638
b7053016
JR
136392009-04-25 Jason Rumney <jasonr@gnu.org>
13640
13641 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
13642
4e8231f3
YM
136432009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13644
13645 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
13646 Swap bytes in short integer if fringe bitmap width > 8.
13647
493dcf2c
KH
136482009-04-23 Kenichi Handa <handa@m17n.org>
13649
13650 * xfaces.c (Fx_list_fonts): If a font size is specified in
13651 PATTERN, set it in returned scalable fonts.
13652
401e9e57
CY
136532009-04-22 Chong Yidong <cyd@stupidchicken.com>
13654
708e05dc
CY
13655 * keyboard.c (Fset_input_meta_mode): Doc fix.
13656
13657 * dispnew.c (Fsend_string_to_terminal): Doc fix.
13658
1ac9108a 13659 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
13660
13661 * coding.c (Fterminal_coding_system): Doc fix.
13662
13663 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
13664 (Fx_display_pixel_height, Fx_display_planes)
13665 (Fx_display_color_cells, Fx_server_max_request_size)
13666 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13667 (Fx_display_mm_height, Fx_display_mm_width)
13668 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
13669 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
13670 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
13671 (check_x_display_info): Handle terminal objects instead of
13672 terminal ids.
13673
401e9e57
CY
13674 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
13675 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
13676 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
13677 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 13678
df80c7f0
KH
136792009-04-21 Kenichi Handa <handa@m17n.org>
13680
5a8f12af 13681 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 13682 (font_score): Check AVGWIDTH too.
908567ef 13683
df80c7f0
KH
13684 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
13685 worst case.
1ac9108a
SM
13686 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
13687 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 13688
705af33f
JR
136892009-04-19 Jason Rumney <jasonr@gnu.org>
13690
13691 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 13692 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
13693
13694 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
13695 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
13696 get_phys_cursor_geometry.
13697
b71ac3dd 13698 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
13699 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
13700 using get_phys_cursor_geometry.
13701
13702 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
13703 correctly calculated.
13704
dc2933eb
JD
137052009-04-19 Jan Djärv <jan.h.d@swipnet.se>
13706
1ac9108a
SM
13707 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
13708 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
13709 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
13710 is deprecated.
13711
973e7849
AS
137122009-04-18 Andreas Schwab <schwab@linux-m68k.org>
13713
13714 * font.c (font_put_frame_data): Use xfree instead of free.
13715
314d66f4
JB
137162009-04-17 Juanma Barranquero <lekktu@gmail.com>
13717
13718 * w32font.c (Qja, Qko): Remove declarations.
13719 (syms_of_w32font): Don't DEFSYM them.
13720
cf702558
CY
137212009-04-17 Chong Yidong <cyd@stupidchicken.com>
13722
13723 * font.c (Qja, Qko): Move definitions here from ftfont.c.
13724
13725 * font.h (Qja, Qko): Extern them.
13726
13727 * ftfont.c (Qja, Qko): Remove declarations.
13728
13729 * xfont.c (Qja, Qko): Remove declarations.
13730
b50504f5
KH
137312009-04-17 Kenichi Handa <handa@m17n.org>
13732
bde25748
KH
13733 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
13734 string from a vector to handle Latin-1 characters correctly.
13735
b50504f5
KH
13736 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
13737 entity even if the cache hits.
13738
f4646fff
AS
137392009-04-16 Andreas Schwab <schwab@linux-m68k.org>
13740
13741 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 13742 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 13743
e7deaab0
AS
13744 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
13745 * lisp.h: Adjust prototypes.
13746
0a0e7d49
CY
137472009-04-16 Chong Yidong <cyd@stupidchicken.com>
13748
13749 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
13750 change (Bug#3003).
13751
3c908a57
KH
137522009-04-16 Kenichi Handa <handa@m17n.org>
13753
1ac9108a 13754 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
13755
13756 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
13757 adstyle.
13758
13759 * ftfont.c (Qja, Qko): Don't make them static.
13760 (enum ftfont_cache_for): New enum.
13761 (fc_charset_table): Undo the previous change.
13762 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
13763 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
13764 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
13765 non-scarable font, try to get AVERAGE_WIDTH.
13766 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
13767 Change ft_face_cache from a list of a hash-table. Don't check
13768 `ja' and `ko' adstyle here.
13769 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
13770 FTFONT_CACHE_FOR_CHARET.
13771 (ftfont_get_charset): Undo the previous change.
1ac9108a 13772 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
13773 (ftfont_close): Likewise.
13774 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
13775
13776 * font.c (font_sort_entites): Change the meaning of the arg
13777 BEST-ONLY. Don't optimize for VEC of lenght 1.
13778 (font_select_entity): Just return the value of font_sort_entites.
13779
13780 * xfaces.c (merge_face_vectors): Reflect font properties in
13781 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
13782 font_clear_prop if a face attribute doesn't change.
13783
3c908a57
KH
13784 * charset.h (charset_ksc5601): Extern it.
13785
13786 * charset.c (charset_ksc5601): New variable.
13787 (Fdefine_charset_internal): Set charset_ksc5601.
13788 (init_charset_once): Initialize charset_ksc5601 to -1.
13789
d65859c3
DN
137902009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
13791
13792 * fileio.c (history_delete_duplicates): Remove unused declaration.
13793
13794 * callint.c (history_delete_duplicates): New declaration.
13795 (Fcall_interactively): Remove command history duplicates when
13796 history_delete_duplicates is true.
13797
3ba010e5
EZ
137982009-04-14 Eli Zaretskii <eliz@gnu.org>
13799
13800 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13801
06f19b91
KH
138022009-04-14 Kenichi Handa <handa@m17n.org>
13803
13804 * font.c (Ffont_info): Fix docstring. Fix the second element of
13805 the returned value (bug#2949).
13806
2cce8bfc
CY
138072009-04-14 Chong Yidong <cyd@stupidchicken.com>
13808
13809 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13810
d156542d
KH
138112009-04-14 Kenichi Handa <handa@m17n.org>
13812
13813 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13814 encoding charset is ascii_compatible.
13815
13816 * charset.c (Fdefine_charset_internal): Make charset
13817 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13818 code_offset is 0, and covers all ASCII characters.
13819
86fa089e
SM
138202009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13821
13822 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13823 (ns_string_to_pasteboard_internal):
13824 * nsmenu.m (process_dialog):
13825 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
13826 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
13827 * lisp.h (Fx_load_color_file): Declare.
13828
a8a3728b
KH
138292009-04-13 Kenichi Handa <handa@m17n.org>
13830
1ac9108a 13831 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
13832 (font_select_entity): Suppress the code to optimize for the same
13833 kind of fonts.
13834 (font_load_for_lface): Get a font that supports at least ASCII
13835 characters.
13836
13837 * ftfont.c (Qja, Qko): New variables.
13838 (fc_charset_table): Delete uniquifier data for iso8859-1.
13839 (ftfont_get_latin1_charset): New function.
13840 (get_adstyle_property): New function.
13841 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
13842 bitmap fonts.
13843 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
13844 Delete iso-8859-1 range from the charset of fonts whose adstyle is
13845 `ko' or `ja'.
13846 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 13847 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
13848 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
13849 property.
13850 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
13851 (syms_of_ftfont): DEFSYM Qja and Qko.
13852
483670b5
KH
138532009-04-09 Kenichi Handa <handa@m17n.org>
13854
12b55765
KH
13855 * charset.c (map_charset_chars): For a charset of `superset'
13856 method, fix calculation of code range.
13857
483670b5
KH
13858 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
13859 from the list of extra properties.
13860 (font_clear_prop): Be sure to delete `:name' font property.
13861
57d3b93b
KH
138622009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13863
b4b2c2ca
YM
13864 * dispnew.c (redraw_overlapping_rows): Fix detection of
13865 overlapping for topmost and bottommost rows.
13866
1ac9108a 13867 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 13868
472c3609
JR
138692009-04-06 Jason Rumney <jasonr@gnu.org>
13870
13871 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
13872
ab193662
KH
138732009-04-06 Kenichi Handa <handa@m17n.org>
13874
13875 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
13876
13877 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
13878
0c26f026
KH
138792009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13880
13881 * ftfont.c (ftfont_open): Fix checking of the return value of
13882 FT_Load_Char. Fix setting font->underline_thickness.
13883
e173bbce
CY
138842009-04-04 Chong Yidong <cyd@stupidchicken.com>
13885
13886 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
13887 (Fterminal_parameters, Fterminal_parameter)
13888 (Fset_terminal_parameter): In doc string, refer to terminal
13889 objects rather than terminal ids.
13890
693a2698
EZ
138912009-04-04 Eli Zaretskii <eliz@gnu.org>
13892
13893 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
13894 ret_lim_data. (Bug#2867)
13895
d5221487
CY
138962009-04-03 Chong Yidong <cyd@stupidchicken.com>
13897
13898 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
13899 so they don't get wider than the window, matching 2006-01-23
13900 change to the partner function in xdisp.c (Bug#2800).
13901
223509a3
KH
139022009-04-03 Kenichi Handa <handa@m17n.org>
13903
13904 * print.c (print_object): Make each lowest sub_char_table start a
13905 new line (Bug#2866).
13906
74fcd0b1
KH
139072009-04-02 Kenichi Handa <handa@m17n.org>
13908
13909 * fontset.c (fontset_font): Record no-font when a fontset
13910 explicitly tells not to try another font-specs.
13911
c542407d
SM
139122009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
13913
13914 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
13915
e3869731
KH
139162009-03-30 Kenichi Handa <handa@m17n.org>
13917
d8d2f142
KH
13918 * fontset.c (fontset_from_font): Specify only registry in a
13919 font-spec for all characters supported by that registry.
13920
e3869731
KH
13921 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
13922 even if HAVE_M17N_FLT is not defined.
13923
5da5f805
CY
139242009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13925
13926 * ftfont.c: Conditionalize prototyping and use of
13927 ftfont_variation_glyphs.
13928
ab226c50
SM
139292009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13930
9628fed7
SM
13931 * frame.c (delete_frame): Work around compiler bug.
13932
13933 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13934 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13935 Some more EMACS_INT.
13936 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13937
13938 * xdisp.c (dump_glyph): Fix typo.
13939
ae19ba7c
SM
13940 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13941 (adjust_markers_gap_motion, adjust_markers_for_delete)
13942 (adjust_markers_for_insert, adjust_point)
13943 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13944 (make_gap, copy_text, count_size_as_multibyte, insert)
13945 (insert_and_inherit, insert_before_markers)
13946 (insert_before_markers_and_inherit, insert_1)
13947 (count_combining_before, count_combining_after, insert_1_both)
13948 (insert_from_string, insert_from_string_before_markers)
13949 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13950 (insert_from_buffer_1, adjust_after_replace)
13951 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13952 (replace_range_2, del_range, del_range_1, del_range_byte)
13953 (del_range_both, del_range_2, modify_region)
13954 (prepare_to_modify_buffer, signal_before_change)
13955 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13956 for buffer positions and sizes.
13957 * lisp.h: Adjust prototypes accordingly.
13958
13959 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13960 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13961 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13962
ab226c50
SM
13963 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13964
46dfb8fb
JD
139652009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13966
13967 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13968 lines and columns so we keep the same pixel height and width.
13969
13970 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13971 the property _NET_WM_STATE has changed.
46dfb8fb
JD
13972 (x_handle_net_wm_state): New function to update frame parameter
13973 fullscreen.
13974 (x_term_init): Initialize atoms for _NET_WM_STATE.
13975
13976 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13977
d347e494
SM
139782009-03-27 Kevin Ryde <user42@zip.com.au>
13979
13980 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13981 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13982 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13983 (Fgpm_mouse_stop): Pass that new parameter.
13984 * termhooks.h (close_gpm): Adjust prototype.
13985
84db11d6
SM
139862009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13987
c95a5008
SM
13988 * lisp.h (Fx_focus_frame): Declare.
13989
84db11d6
SM
13990 * callint.c (Fcall_interactively): For '^' just delegate the work to
13991 handle-shift-selection.
13992 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13993
0a1958d6
CY
139942009-03-24 Chong Yidong <cyd@stupidchicken.com>
13995
0bfdff23
CY
13996 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13997
0a1958d6
CY
13998 * data.c (Qinteractive_form): New variable.
13999 (Finteractive_form): Use it.
14000
14001 * eval.c (Fcommandp): Use Qinteractive_form.
14002
58aec0d6
JR
140032009-03-24 Jason Rumney <jasonr@gnu.org>
14004
14005 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14006 Calculate total size precisely. Decode environment variables
14007 before substituting. (Bug#38)
14008
553dd618
KH
140092009-03-24 Kenichi Handa <handa@m17n.org>
14010
14011 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 14012 encoding (Bug#2722).
553dd618 14013
c39ea606
JD
140142009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14015
14016 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14017 that gdpy is set.
14018
bc9b2b5e
AM
140192009-03-22 Alan Mackenzie <acm@muc.de>
14020
14021 * callint.c (Finteractive): Clarify the doc string - even
14022 promptless elements need \n separators.
14023
9f995a76
JR
140242009-03-22 Jason Rumney <jasonr@gnu.org>
14025
14026 * w32term.c (syms_of_w32term): Doc fix for
14027 x-use-underline-position-properties.
14028
22749e9a
EZ
140292009-03-21 Eli Zaretskii <eliz@gnu.org>
14030
14031 * w32.c (getpwuid): Change argument type to unsigned.
14032 (struct w32_id): Change type of `rid' member to unsigned.
14033 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14034 argument ID to unsigned. All callers changed.
14035 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14036
e00553bf
EZ
140372009-03-20 Eli Zaretskii <eliz@gnu.org>
14038
14039 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14040 negative, produce a float value.
14041
14042 * dired.c (make_uid, make_gid): New functions.
14043 (Ffile_attributes): Use them to avoid negative UID and GID.
14044
f761d6b6
JB
140452009-03-20 Juanma Barranquero <lekktu@gmail.com>
14046
14047 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14048 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14049 Fix typos in docstrings.
14050
d507f8d7
KH
140512009-03-19 Kenichi Handa <handa@m17n.org>
14052
14053 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
14054 changed, use font_load_for_lface to get a new font object.
14055 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
14056
14057 * frame.c (x_set_font): Handle the case that ARG is a cons.
14058
c68845e0
GM
140592009-03-19 Glenn Morris <rgm@gnu.org>
14060
14061 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14062
bfa49dd1
CY
140632009-03-19 Chong Yidong <cyd@stupidchicken.com>
14064
14065 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14066
8458d4c1
KH
140672009-03-19 Kenichi Handa <handa@m17n.org>
14068
14069 * charset.c (load_charset_map_from_file): When a mapfile can't be
14070 loaded, signal an error.
14071
78e7d1fe
EZ
140722009-03-18 Eli Zaretskii <eliz@gnu.org>
14073
14074 * dired.c (Ffile_attributes): Make sure UID and GID are always
14075 positive, even if the value is too large for a positive EMACS_INT.
14076 Doc fix.
14077
14078 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14079
5da9fdfa
YM
140802009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14081
14082 * xmenu.c (xdialog_show): Move Fredisplay call ...
14083 (Fx_popup_dialog): ... here.
14084
7519c40d
SM
140852009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14086
14087 * dired.c (file_name_completion): Disable the first optimization just
14088 installed, since it is not implemented correctly.
14089
2cd298e2
SM
140902009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14091
14092 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 14093 only if the entry can affect bestmatch.
2cd298e2
SM
14094 Stop the search early, as Ftry_completion already does.
14095
48d37adf
CY
140962009-03-17 Chong Yidong <cyd@stupidchicken.com>
14097
e10c9c93 14098 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 14099
9286b16a
CY
141002009-03-15 Chong Yidong <cyd@stupidchicken.com>
14101
14102 * keyboard.c (parse_menu_item): Don't display remappings as menu
14103 equivalent bindings (Bug#788).
14104
f7b146dc
JR
141052009-03-15 Jason Rumney <jasonr@gnu.org>
14106
14107 * w32term.h (WM_EMACS_PAINT): New message.
14108 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14109 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14110 before passing to lisp thread. (Bug#950)
14111
f761d6b6 141122009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 14113
d93f9575
CY
14114 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14115 variable as it was never reset.
14116 (ns_term_init): Remove initialization of Lisp-settable defaults
14117 and ns_expand_space.
14118 (-setPanelFromDefaultValues): Remove ns_expand_space.
14119 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14120 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
14121 i.e. no additional spacing, similar to Carbon port.
14122
d93f9575
CY
14123 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14124 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 14125
305018ec
JD
141262009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14127
14128 * sound.c (alsa_configure): Remove call to deprecated
14129 snd_pcm_sw_params_set_xfer_align.
14130
f761d6b6 141312009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
14132
14133 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14134 after clicking in a detached tool bar.
14135 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14136
46e722a9
SM
141372009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14138
348db3dd
SM
14139 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14140 int/Lisp_Object mixup).
46e722a9 14141
a3d16f39
KH
141422009-03-13 Kenichi Handa <handa@m17n.org>
14143
14144 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 14145 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
14146 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14147 (set_fontset_font): Change ARG to a vector. Handle range_list in
14148 ARG correctly.
14149 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 14150 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
14151 the above change.
14152 (fontset_from_font): Fix previous change.
fe24f56a 14153 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
14154 entry. If FONTSET is the default fontset, don't set the extra
14155 slot of the returning char-table.
14156
b066e6b6
JB
141572009-03-12 Juanma Barranquero <lekktu@gmail.com>
14158
14159 * nsfns.m (Fx_close_connection): Doc fix.
14160 (Fns_do_applescript): Reflow docstring.
14161 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14162 (Fx_display_pixel_width, Fx_display_pixel_height)
14163 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14164 Fix typos in docstrings.
14165 (Fns_set_alpha): Fix typos in error messages.
14166
d472514e 141672009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 14168
d472514e 14169 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
14170 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14171 were used for such events.
14172
d472514e
JB
14173 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14174 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 14175
d472514e 14176 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
14177 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14178
fb930676
KH
141792009-03-11 Kenichi Handa <handa@m17n.org>
14180
ff85581a
KH
14181 * font.h (font_open_by_spec): Extern it.
14182
c50b7e98
KH
14183 * font.c (font_open_by_spec): New function.
14184 (font_open_by_name): Use font_open_by_spec.
14185
fb930676
KH
14186 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14187 fontset of the frame.
14188
14189 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14190 modify the default font of frames that use this fontset.
14191 (num_auto_fontsets): New variable.
14192 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14193 name. Be sure to set FONTSET_ASCII to the correct font name.
14194 (update_auto_fontset_alist): New function.
14195
df4e8455
JB
141962009-03-11 Juanma Barranquero <lekktu@gmail.com>
14197
14198 * makefile.w32-in: Update dependencies.
14199
0a375797
AR
142002009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14201
14202 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14203
61313fa3
SM
142042009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14205
14206 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14207
b55103fb
CY
142082009-03-10 Chong Yidong <cyd@stupidchicken.com>
14209
14210 * lread.c (Feval_buffer): Doc fix.
14211
dde2559c
KH
142122009-03-09 Kenichi Handa <handa@m17n.org>
14213
14214 * charset.c (Qfile_name_handler_alist): Extern it.
14215 (load_charset_map_from_file): Temporarily bind
14216 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14217
df4e8455 142182009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 14219
47f588bb
GM
14220 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14221 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 14222
4ddf94bd
AR
142232009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14224
4c9bdfc2
AR
14225 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14226 (x_set_window_size): Change back to calculated method of setting
14227 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
14228 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14229 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14230
fe41ae9e
AR
14231 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14232
4c9bdfc2
AR
14233 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14234 accelerator in parens under GNUstep.
14235
825d0875
KH
142362009-03-06 Kenichi Handa <handa@m17n.org>
14237
14238 These changes are to detect incorrect composition sequence without
f3b3be74 14239 looking ahead the source. (Bug#2370)
825d0875
KH
14240
14241 * coding.h: Include "composite.h".
14242 (enum compisition_state): New enum.
14243 (struct compisition_status): New struct.
14244 (struct iso_2022_spec): New member cmp_status.
14245 (struct emacs_mule_spec): New struct.
14246 (struct coding_system): New members ctext_extended_segment_len and
14247 embedded_utf_8. Change the union member
14248 spec.emacs_mule_full_support to spec.emacs_mule.
14249
14250 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14251 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 14252 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
14253 (ADD_COMPOSITION_DATA): New arg nbytes.
14254 (emacs_mule_char): New arg cmp_status.
14255 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14256 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14257 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14258 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14259 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14260 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14261 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14262 (EMACS_MULE_COMPOSITION_END): New macro.
14263 (emacs_mule_finish_composition): New function.
14264 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14265 (decode_coding_emacs_mule): Avoid long looking ahead while
14266 handling composition.
14267 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14268 (ENCODE_COMPOSITION_RULE): New macro.
14269 (finish_composition): New function.
14270 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14271 (DECODE_COMPOSITION_START): New implementation.
14272 (DECODE_COMPOSITION_END): Likewise.
14273 (STORE_COMPOSITION_RULE): New macro.
14274 (decode_coding_iso_2022): Avoid long looking ahead while handling
14275 composition, CTEXT extended segment, and embedded UTF-8.
14276 (setup_coding_system): For a coding of type iso-2022, reset
14277 CODING_ISO_EXTSEGMENT_LEN (coding) and
14278 CODING_ISO_EMBEDDED_UTF_8 (coding).
14279 (get_translation): Delete arguments last_block, from_nchars,
14280 to_nchars. Callers changed.
14281 (produce_chars): Don't modify charbuf. Adjusted for the change of
14282 get_translation.
98a326f7 14283 (produce_composition): Adjust for the new annotation sequence.
825d0875 14284 (handle_composition_annotation): Likewise.
98a326f7 14285 (consume_chars): Adjust for the change of get_translation.
825d0875 14286
ccbc4452
AR
142872009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14288
4ddf94bd 14289 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 14290
988a7ddb
KH
142912009-03-05 Kenichi Handa <handa@m17n.org>
14292
14293 * font.c (font_select_entity): New function.
14294 (font_find_for_lface): Use font_select_entity to select a font.
14295
14296 * fontset.c (fontset_find_font): If a font found without
a8a3728b 14297 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
14298 font with C restriction.
14299
98a326f7 143002009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 14301
be1bce46 14302 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 14303
10ea2b82
JR
143042009-03-04 Jason Rumney <jasonr@gnu.org>
14305
2c93b248 14306 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 14307 characters that have already been read. (Bug#2569)
2c93b248 14308
10ea2b82
JR
14309 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14310 Log an error message if check_image_size failed.
14311 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 14312 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 14313
71a0c011
EZ
143142009-03-02 Eli Zaretskii <eliz@gnu.org>
14315
14316 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14317 when decoding process output.
14318
2f63bba8
RS
143192009-03-01 Richard M Stallman <rms@gnu.org>
14320
14321 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14322
14323 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14324
0a9564cb
EZ
143252009-02-28 Eli Zaretskii <eliz@gnu.org>
14326
14327 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14328 (decode_coding_emacs_mule, decode_coding_iso_2022)
14329 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14330 (decode_coding_raw_text, decode_coding_charset)
14331 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14332 Honor inhibit-eol-conversion. (Bug #2186)
14333
449148b3
JR
143342009-02-28 Jason Rumney <jasonr@gnu.org>
14335
14336 * coding.c (detect_coding_charset): If not checking latin extra,
14337 fail on characters between 0x80 and 0xA0. (Bug#2354)
14338
a4aee864
EZ
143392009-02-28 Eli Zaretskii <eliz@gnu.org>
14340
14341 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 14342 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 14343
d88bee5a
GM
143442009-02-27 Glenn Morris <rgm@gnu.org>
14345
14346 * callint.c (Finteractive): Doc fix.
14347
a808f22d
KH
143482009-02-27 Kenichi Handa <handa@m17n.org>
14349
14350 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14351
caf8d60c
CY
143522009-02-27 Chong Yidong <cyd@stupidchicken.com>
14353
14354 * font.c (font_style_to_value): Set value for unknown symbols to
14355 100 instead of 255.
b61137ea
CY
14356 (weight_table, slant_table, width_table): Treat "unspecified" as
14357 the default value.
caf8d60c 14358
1a0de25c
JB
143592009-02-26 Juanma Barranquero <lekktu@gmail.com>
14360
14361 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14362
8fc45744
JB
143632009-02-25 Juanma Barranquero <lekktu@gmail.com>
14364
107bd7d1
JB
14365 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14366 error as soon as a recursive load is detected.
8fc45744 14367
f097e223
AR
143682009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14369
14370 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14371 before caching.
14372
8810a12f
KH
143732009-02-24 Kenichi Handa <handa@m17n.org>
14374
14375 * fontset.c (fontset_find_font): Fix the condition for checking
14376 unavailable font.
14377
2c7d1565
GM
143782009-02-24 Glenn Morris <rgm@gnu.org>
14379
14380 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14381 whitespace that confuses documentation.
14382
a20878b6
MB
143832009-02-23 Miles Bader <miles@gnu.org>
14384
14385 * process.c (Flist_system_processes, Fprocess_attributes)
14386 (syms_of_process): Rename `system-process-attributes' to
14387 `process-attributes'.
14388
b3b58c01
AS
143892009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14390
1b3b981b
AS
14391 * coding.h (struct coding_system): Make safe_charsets a pointer to
14392 unsigned char.
14393 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14394 being 255.
14395 (SAFE_CHARSET_P): Likewise.
14396 (setup_iso_safe_charsets): Properly setup safe_charsets.
14397 (Fdefine_coding_system_internal): Likewise.
14398 (setup_coding_system): Likewise. Remove unneeded casts.
14399 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
14400 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14401 Remove unneeded casts.
1b3b981b 14402
b3b58c01
AS
14403 * insdel.c (del_range_2): Don't modify gap contents when called
14404 from decode_coding_object. (Bug#1809)
14405
0b6f228c
CY
144062009-02-21 Chong Yidong <cyd@stupidchicken.com>
14407
14408 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14409 Qfont_object.
14410 (Ftype_of): Recognize font objects.
14411
14412 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14413
bba3e508
SM
14414 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14415 Definitions moved to data.c.
0b6f228c 14416
52f8870b
AR
144172009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14418
14419 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14420 async_iconified. Based on a patch by Christian Lynbech
14421 <christian.lynbech@tieto.com>.
14422 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14423
7087d5e9
GM
144242009-02-20 Glenn Morris <rgm@gnu.org>
14425
14426 * syntax.c (Fskip_chars_forward): Fix doc typo.
14427
41d2ceef
CY
144282009-02-20 Chong Yidong <cyd@stupidchicken.com>
14429
14430 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14431
1a3b7ca6
CY
144322009-02-19 Chong Yidong <cyd@stupidchicken.com>
14433
14434 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14435
73cce38d
KH
144362009-02-19 Kenichi Handa <handa@m17n.org>
14437
14438 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 14439 Don't overflow coding->carryover. (Bug#2370)
73cce38d 14440
a51092ee
DN
144412009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14442
14443 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14444
c423ecca
KH
144452009-02-18 Kenichi Handa <handa@m17n.org>
14446
14447 * font.c (font_check_otf_features): Fix handling of `nil' element.
14448 (Ffont_spec): Describe :lang and :otf in the docstring.
14449
4c1958f4
AS
144502009-02-16 Andreas Schwab <schwab@suse.de>
14451
14452 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14453 string.
14454
5704f39a
KH
144552009-02-16 Kenichi Handa <handa@m17n.org>
14456
14457 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 14458 (Bug#1723)
5704f39a 14459
8f0085aa
CY
144602009-02-14 Chong Yidong <cyd@stupidchicken.com>
14461
a057d86a 14462 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
14463
14464 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14465 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14466
aff01dd9
EZ
144672009-02-14 Eli Zaretskii <eliz@gnu.org>
14468
14469 * msdos.c (MAX_SCREEN_BUF): New macro.
14470 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14471 Encode the entire run of glyphs sharing the same face, instead of
14472 doing that one glyph at a time (fixes a bug with displaying
14473 double-size characters).
14474
ba301db3
AR
144752009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14476
14477 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14478
14479 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14480 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 14481 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
14482
14483 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 14484 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 14485
51d861de
SM
144862009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14487
ac146f82 14488 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
14489 invisible areas.
14490
7fed8996
JR
144912009-02-12 Jason Rumney <jasonr@gnu.org>
14492
631ea4fb
JR
14493 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14494 (add_font_entity_to_list): Call check_face_name even when family
14495 is unspecified.
14496
cb4a3e42
JR
14497 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14498 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 14499 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 14500
7fed8996 14501 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 14502 raster fonts. (Bug#2219)
7fed8996 14503
895416e3
KH
145042009-02-12 Kenichi Handa <handa@m17n.org>
14505
14506 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14507 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14508 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 14509 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14510 (find_automatic_composition): While looking forward and backward,
14511 check static composition. Fix where to stop looking forward.
14512 (composition_adjust_point): Fix checking of static composition.
14513 (Fcomposition_get_gstring): Pay attention to
1dacf998 14514 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14515
14516 * lisp.h (fast_looking_at): Extern it.
14517
14518 * search.c (fast_looking_at): New function.
14519
51d861de 14520 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
14521 <struct glyph>.u.cmp.to.
14522 (append_composite_glyph): Likewise.
14523
51d861de 14524 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
14525 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14526 composition.
51d861de 14527 (append_composite_glyph): Adjust for the change of
895416e3
KH
14528 <strcut glyph>.u.cmp.to.
14529
8510724d
JB
145302009-02-11 Juanma Barranquero <lekktu@gmail.com>
14531
14532 * casetab.c (init_casetab_once):
14533 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14534 * font.c (font_update_lface):
14535 * fontset.c (Fnew_fontset):
14536 * ftfont.c (ftfont_drive_otf):
14537 * xfont.c (xfont_open):
14538 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14539
294fa707
SM
145402009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14541
14542 * fileio.c (Fwrite_region): !NILP -> CONSP.
14543
b5bfebec
AS
145442009-02-10 Andreas Schwab <schwab@suse.de>
14545
14546 * process.c (send_process): Properly relocate pointer into data
adab88bd 14547 when using encoded data. (Bug#2272)
b5bfebec 14548
cb84a2be
KH
145492009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14550
14551 * coding.c (detect_coding_charset): Fix previous change.
14552
89e09428
JR
145532009-02-08 Jason Rumney <jasonr@gnu.org>
14554
14555 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 14556 disappeared while hourglass was displayed. (Bug #2193)
89e09428 14557
4470a277
AS
145582009-02-07 Andreas Schwab <schwab@suse.de>
14559
14560 * unexelf.c (unexec): Fix error message.
14561
3175b12a
AR
145622009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14563
14564 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 14565 when modal window is active. (Bug #2152)
3175b12a
AR
14566 (applicationShouldTerminate:): Remove now-unneeded while loop
14567 around NSRunAlertPanel.
14568
14569 * nsmenu.m (popupSession): New file-global variable.
14570 (pop_down_menu): End the popupSession before closing dialog.
14571 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14572 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14573 don't query NSApp for events (just sleep instead).
14574
8434d0b8
EZ
145752009-02-07 Eli Zaretskii <eliz@gnu.org>
14576
51d861de
SM
14577 * coding.c (syms_of_coding) <translation-table-for-input>:
14578 Modify doc string to discourage use for character code unification.
8434d0b8 14579
aa82edfd
CY
145802009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14581
14582 * atimer.c (run_timers): Update pending_atimers.
14583
2d283c7c
CY
145842009-02-06 Chong Yidong <cyd@stupidchicken.com>
14585
eb306cab
CY
14586 * image.c (svg_load_image): Fix last change.
14587
2d283c7c
CY
14588 * xfns.c (Fx_create_frame): Signal an error if no font is
14589 found (Bug#2147).
14590
4d8e170e
JB
145912009-02-05 Juanma Barranquero <lekktu@gmail.com>
14592
14593 * character.c (syms_of_character) <script-representative-chars>:
14594 Fix typo in docstring.
14595
c96169a0
AR
145962009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14597
14598 * nsmenu.m (pop_down_menu): New function.
14599 (ns_popup_dialog): Call it on unwind.
14600 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
14601 call timer_check() (Bug#2154).
14602 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
14603 handling_signal is set.
14604 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
14605
31fd7c5c 14606 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
14607
14608 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
14609
14610 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
14611
51d861de
SM
14612 * keyboard.c (poll_for_input_1, handle_async_input):
14613 Set handling_signal under HAVE_NS.
c96169a0 14614
aacd8ba1
GM
146152009-02-04 Glenn Morris <rgm@gnu.org>
14616
14617 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
14618
4cb75c4b
KH
146192009-02-04 Kenichi Handa <handa@m17n.org>
14620
14621 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
14622
14623 * charset.c (Fchar_charset): New optional arg restriction.
14624
14625 * coding.h (coding_system_charset_list): Extern it.
14626
14627 * coding.c (coding_system_charset_list): New function.
14628
14629 * composite.c: Include coding.h and termhooks.h.
14630 (composition_gstring_p): Fix for the terminal case.
14631 (composition_gstring_width): Likewise.
14632 (fill_gstring_body): Likewise.
14633 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
14634 the frame.
14635 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
14636 is within a composition.
867d4bb3 14637 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
14638
14639 * term.c (encode_terminal_code): Fix handling of composition.
14640 (produce_composite_glyph): For static composition, get pixel_width
14641 from struct composition.
14642
826ba17e
AS
146432009-02-02 Andreas Schwab <schwab@suse.de>
14644
14645 * unexelf.c (unexec): Handle unaligned bss offset.
14646
8ad093db
AR
146472009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14648
14649 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
14650 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 14651
8ad093db
AR
14652 * keyboard.c (handle_interrupt): Don't call
14653 quit_throw_to_read_char() under NS.
d0a76a6e 14654
8ad093db
AR
14655 * blockinput.h: Remove NS-specific code.
14656
4d18a7a2
DN
146572009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
14658
db878925
DN
14659 * dispnew.c (window_change_signal): Don't try to get the size of a
14660 suspended tty frame.
14661 * term.c (Fresume_tty): Resize if the size has changed while the
14662 tty was suspended.
14663
4d18a7a2
DN
14664 * alloc.c (mark_stack): Properly conditionalize previous change.
14665
8984df7c
JB
146662009-01-30 Juanma Barranquero <lekktu@gmail.com>
14667
14668 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
14669 * w32term.c (w32_read_socket) [SYNC_INPUT]:
14670 Remove; this code is not used on Windows.
14671
75f4f1ac
EZ
146722009-01-30 Eli Zaretskii <eliz@gnu.org>
14673
14674 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
14675 EOLs that also has stray ^M characters.
14676
07a1e794
JB
146772009-01-30 Juanma Barranquero <lekktu@gmail.com>
14678
14679 * atimer.c (run_timers, alarm_signal_handler):
14680 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
14681 * w32inevt.c (w32_console_read_socket):
14682 * w32term.c (w32_read_socket):
14683 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
14684
a8b11cc9
CY
146852009-01-30 Chong Yidong <cyd@stupidchicken.com>
14686
14687 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
14688 Initialize it as a relative filename pattern.
14689 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
14690 (Fcall_process_region): Simplify temp file creation using
14691 temporary-file-directory.
14692
c279587b
EZ
146932009-01-29 Eli Zaretskii <eliz@gnu.org>
14694
14695 * msdos.c: Rename pending_signals to msdos_pending_signals.
14696 (sig_suspender, sigprocmask): Adjust.
14697
a8fe3242
CY
146982009-01-29 Chong Yidong <cyd@stupidchicken.com>
14699
14700 * keyboard.c (pending_signals): New var.
14701 (poll_for_input, input_available_signal, init_keyboard): Set it.
14702 (process_pending_signals): New function.
14703
14704 * lisp.h (QUIT): Check pending_signals instead of
14705 interrupt_input_pending. Use process_pending_signals.
14706
51d861de 14707 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 14708
51d861de 14709 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
14710
14711 * sysdep.c (emacs_write): Use process_pending_signals.
14712
14713 * xterm.c (XTread_socket): Update pending_signals.
14714
14715 * w32term.c (w32_read_socket): Update pending_signals.
14716
14717 * w32inevt.c (w32_console_read_socket): Update pending_signals.
14718
6570a1c4
KH
147192009-01-29 Kenichi Handa <handa@m17n.org>
14720
14721 * xftfont.c (xftfont_has_char): New function.
14722 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
14723
d72a4afa
AR
147242009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14725
14726 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
14727 under GNUstep.
14728 (ns_query_color): New declaration.
14729
14730 * nsterm.m (ns_confirm_quit): New variable.
14731 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
14732 (EmacsApp-applicationShouldTerminate:): Use it.
14733 (EmacsPrefsController): Let user set it.
14734 (ns_query_color): New function.
14735 (ns_defined_color): Use it.
14736 (ns_initialize): Drop.
14737 (ns_term_init): Add two lines from ns_initialize(), and set
14738 input_interrupt_mode to nil.
14739
14740 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 14741 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 14742
9fe78804
KH
147432009-01-28 Kenichi Handa <handa@m17n.org>
14744
14745 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
14746 (fontset_get_font_group): Remember that no font-group is specified
14747 for C.
9fe78804 14748
fa57de36
CY
147492009-01-27 Chong Yidong <cyd@stupidchicken.com>
14750
930600e9
CY
14751 * fns.c (concat): Check for string overflow (bug#1787).
14752
fa57de36
CY
14753 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
14754 Quadruple undo limits (bug#1501).
14755
7179ce7b
KH
147562009-01-27 Kenichi Handa <handa@m17n.org>
14757
14758 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
14759 directly use GT_Get_Char_index.
14760
14761 * xftfont.c (struct xftfont_info): New member `index'.
14762
14763 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 14764 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 14765
5be8fcc0
CY
147662009-01-26 Kenichi Handa <handa@m17n.org>
14767
14768 * fontset.c (fontset_find_font): Fix handling of non-cons return
14769 value of fontset_get_font_group.
14770 (fontset_font): Revert last change.
14771
19ae3e61
JR
147722009-01-26 Jason Rumney <jasonr@gnu.org>
14773
14774 * w32font.c (w32font_list_internal): Return quickly if registry is
14775 unknown. Simplify final return.
14776 (add_font_entity_to_list): Break complex logic down into more
14777 manageable chunks. Move unknown registry check to
14778 w32font_list_internal.
14779
8612b71a
AR
147802009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
14781
14782 Changes to remove Feval calls from GUI under NS.
14783
d8038940
JB
14784 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
14785 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
14786 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
14787
14788 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
14789 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
14790 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
14791 instead of NON_ASCII_KEYSTROKE_EVENT.
14792 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14793 (EmacsApp-applicationShouldTerminate:): Query user.
14794 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14795 instead of Feval.
14796
14797 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14798
14799 * keyboard.c (kbd_buffer_get_event): Check for it.
14800 (keys_of_keyboard): Define lispy keys for
14801 ns-put/unput-working-text.
14802
14803 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14804 versions.
14805 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14806
6288ae55
CY
148072009-01-25 Chong Yidong <cyd@stupidchicken.com>
14808
14809 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 14810 setting current_buffer directly. (Bug#2044)
6288ae55 14811
289e7f8f
CY
148122009-01-24 Chong Yidong <cyd@stupidchicken.com>
14813
5ce87308 14814 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 14815 any work. (Bug#1952, bug#1990).
5ce87308 14816
64cc3cf6 14817 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 14818
b3243e6f
AR
148192009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14820
14821 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
14822 (ns_no_defaults): New declaration.
14823 (main): Use it.
e0d2e69a 14824
d900b2af 14825 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 14826
d900b2af 14827 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 14828
d900b2af
AR
14829 * nsterm.m (ns_no_defaults): New variable.
14830 (ns_initialize): Don't read defaults when ns_no_defaults.
14831 (EmacsView-readSelectionFromPasteboard:)
14832 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 14833 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
14834 (ns_dumpglyphs_stretch): New function.
14835 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 14836 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 14837
e0d2e69a
AR
14838 * nsimage.m (setPixmapData:): Set to ignore image DPI.
14839
3ac71f5d
CY
148402009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
14841
14842 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
14843 call for Sparc64.
14844
3fe53a83
AR
148452009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14846
14847 * nsfns.m:
14848 * nsgui.h:
14849 * nsmenu.m:
14850 * nsselect.m:
14851 * nsterm.h:
14852 * nsterm.m: Remove '23' comments that indicated code added during
14853 update from emacs-20 -> emacs-23.
14854
10f87c6f 148552009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
14856
14857 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 14858 ns_alternate_modifier. (Bug#1217)
a3b53a85 14859
c7cef62d
AR
14860 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
14861 Display all shortcuts, including those w/o super modifier.
14862
575fb8bd
AR
14863 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
14864
918b848b
CY
148652009-01-22 Chong Yidong <cyd@stupidchicken.com>
14866
14867 * fileio.c (Vwrite_region_post_annotation_function)
14868 (Vwrite_region_annotation_buffers): New vars.
14869 (build_annotations_unwind): Just reset
14870 Vwrite_region_annotation_buffers.
14871 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
14872 Call write-region-post-annotation-function.
14873 (build_annotations): Add to Vwrite_region_annotation_buffers if
14874 buffer changes.
14875
a39e2539
AR
148762009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14877
14878 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
14879 Tiger.
51d861de
SM
14880 * nsfns.m (ns_do_applescript):
14881 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 14882
35ed44db
AR
148832009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14884
14885 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
14886
cbe0b5bf
AR
148872009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14888
14889 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 14890
6049d3a0
AR
14891 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
14892
14893 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
14894 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
14895 handle Ctrl-tab. (Bug#1841)
14896 (ns_get_color): Use unsigned long long for scanned hex string value.
14897 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 14898 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 14899 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 14900 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 14901 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 14902 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 14903 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 14904
d3810c21 14905 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 14906 DPI. (Bug#1316)
d3810c21
AR
14907 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
14908 values in onTiger section.
4c7077c3 14909
e301e634
CY
149102009-01-19 Chong Yidong <cyd@stupidchicken.com>
14911
7f82490b
CY
14912 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
14913 Check return value of font_spec_from_name.
64cc3cf6 14914 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
14915
14916 * font.c (font_spec_from_name): Return Qnil if font name could not
14917 be parsed.
14918 (font_parse_name): Treat a `?' character as part of an XLFD.
14919
e301e634
CY
14920 * fns.c (Fsubstring): Doc fix.
14921
1c0db158
KH
149222009-01-19 Kenichi Handa <handa@m17n.org>
14923
51d861de 14924 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
14925 (ftfont_list): Likewise.
14926
acf20901
JB
149272009-01-18 Juanma Barranquero <lekktu@gmail.com>
14928
fff4e459
JB
14929 * dbusbind.c (Fdbus_register_signal):
14930 * process.c (conv_sockaddr_to_lisp):
14931 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14932
acf20901
JB
14933 * callproc.c (Fgetenv_internal): Doc fix.
14934
e7abcdfb
CY
149352009-01-16 Chong Yidong <cyd@stupidchicken.com>
14936
14937 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14938 it is not even used.
14939
b60861e6
GM
149402009-01-16 Glenn Morris <rgm@gnu.org>
14941
14942 * font.c (Ffont_variation_glyphs): Silence compiler.
14943
8db52afe
JB
149442009-01-15 Juanma Barranquero <lekktu@gmail.com>
14945
14946 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14947 Reported by David Robinow <drobinow@gmail.com>.
14948
4cddb209
KH
149492009-01-15 Kenichi Handa <handa@m17n.org>
14950
51d861de 14951 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 14952
f247f67b
JR
149532009-01-14 Jason Rumney <jasonr@gnu.org>
14954
14955 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 14956 never a fontset. (Bug#1562)
f247f67b 14957
f56a4450
KH
149582009-01-14 Kenichi Handa <handa@m17n.org>
14959
14960 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 14961 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 14962
4e99855e
CY
149632009-01-13 Chong Yidong <cyd@stupidchicken.com>
14964
14965 * font.c (font_clear_prop): If clearing the family, clear the font
14966 width index too.
14967
fff4e459 14968 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 14969
24f01470
JB
149702009-01-12 Juanma Barranquero <lekktu@gmail.com>
14971
14972 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14973 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14974 functions, use sizeof.
14975
a41240a3
MR
149762009-01-12 Martin Rudalics <rudalics@gmx.at>
14977
14978 * keyboard.c (read_char): Fix case where last_nonmenu_event
14979 returned a bad value with submenus. (Bug#447)
14980
944636b8
CY
149812009-01-12 Chong Yidong <cyd@stupidchicken.com>
14982
14983 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14984 family, clear the font width index too.
14985
0dad7c6f
JR
149862009-01-11 Jason Rumney <jasonr@gnu.org>
14987
14988 * keyboard.c (cmd_error_internal): Exit when errors occur before
14989 frame creation and not in daemon mode. (Bug#1836)
14990
7c2363af
CY
149912009-01-10 Chong Yidong <cyd@stupidchicken.com>
14992
14993 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14994 of a display vector, backtrack.
14995 (try_window_reusing_current_matrix): Check glyph type before
14996 referencing charpos member.
14997
97b1b294
EZ
149982009-01-10 Eli Zaretskii <eliz@gnu.org>
14999
15000 Fix Bug #876:
15001
15002 * coding.c (inhibit_null_byte_detection): New variable.
15003 (detect_coding, detect_coding_system): Don't pay attention to null
15004 bytes if inhibit_null_byte_detection is non-zero.
51d861de 15005 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
15006 <inhibit-iso-escape-detection>: Doc fix.
15007
4624b6e3
JR
150082009-01-09 Jason Rumney <jasonr@gnu.org>
15009
15010 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 15011 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
15012 Only report Unicode Plane 2 fonts as unicode-sip.
15013
323b840c
CY
150142009-01-09 Chong Yidong <cyd@stupidchicken.com>
15015
51d861de
SM
15016 * xfaces.c (Fx_font_family_list): Delete function.
15017 Move compatibility version to faces.el.
323b840c 15018
51d861de 15019 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 15020
eba7400d
MR
150212009-01-09 Martin Rudalics <rudalics@gmx.at>
15022
15023 * frame.c (x_set_frame_parameters): Remember requested value for
15024 fullscreen before it's reset by the parameter handler.
15025
4b09796d
GM
150262009-01-09 Glenn Morris <rgm@gnu.org>
15027
15028 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 15029 (last_command_event): ... and update all users.
4b09796d
GM
15030 (last_input_char): For clarity, rename to...
15031 (last_input_event): ... and update all users.
15032 (last-command-char, last-input-char): Move to subr.el as aliases.
15033 * cmds.c, commands.h: Update for last_command_char rename.
15034
14ccea62
CY
150352009-01-08 Chong Yidong <cyd@stupidchicken.com>
15036
51d861de 15037 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 15038
5f004711
JR
150392009-01-08 Jason Rumney <jasonr@gnu.org>
15040
15041 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15042 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15043 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15044 Don't declare.
fff4e459 15045 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
15046 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15047
b71f6f73
KH
150482009-01-07 Kenichi Handa <handa@m17n.org>
15049
50b06221 15050 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 15051 remember the coding system used for decoding in
50b06221
KH
15052 coding_system (Bug#1039).
15053
b71f6f73 15054 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 15055 breaking the loop. (Bug#870)
b71f6f73
KH
15056 (decode_coding_utf_16, decode_coding_emacs_mule)
15057 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15058 (decode_coding_charset): Likewise.
15059
56f668f7
MR
150602009-01-05 Martin Rudalics <rudalics@gmx.at>
15061
15062 * frame.c (x_set_frame_parameters): Make sure height (width) get
15063 applied when fullwidth (fullheight) is set. (Bug#1522)
15064
5da9424d
JB
150652009-01-04 Juanma Barranquero <lekktu@gmail.com>
15066
15067 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15068 (utc_base): Declare as ULONGLONG, not long double.
15069 (convert_time_raw): Delete.
15070 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15071 (initialize_utc_base): New function.
15072 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15073 (convert_from_time_t): Use initialize_utc_base; compute result with
15074 64-bit arithmetic.
15075 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15076
c4605e09
EZ
150772009-01-03 Eli Zaretskii <eliz@gnu.org>
15078
9acef61c 15079 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
15080 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15081 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15082 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15083 [!subprocesses]: Define.
15084 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15085 (Flist_system_processes, Fsystem_process_attributes)
15086 [!subprocesses]: Call list_system_processes and
15087 system_process_attributes instead of returning Qnil.
15088
9acef61c
JB
15089 * dosfns.c (system_process_attributes, list_system_processes):
15090 New functions.
c4605e09
EZ
15091
15092 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15093
15094 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15095 Don't use the default (no-op) implementation.
15096
8b7d0a16
JR
150972009-01-03 Jason Rumney <jasonr@gnu.org>
15098
a6d46bc1
JR
15099 * keyboard.c (parse_modifiers_uncached): Wheel events are
15100 clicks (bug#687).
15101
8b7d0a16
JR
15102 * w32term.c (x_query_colors, x_query_color): New functions.
15103
15104 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15105 (svg_load_image): Cast returned pointers from dynamically loaded
15106 functions. Eliminate W32 specific code.
15107
bfe11752
DN
151082009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15109
89e2438a
DN
15110 * nsfns.m (x_set_foreground_color, x_set_background_color)
15111 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15112 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15113 x_ prefix instead of ns_. Update references.
15114 (syms_of_nsfns): Add a FIXME comment.
15115
15116 * nsterm.m (x_set_cursor_type): New prototype.
15117 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15118
bfe11752
DN
15119 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15120 for Solaris instead of incorrectly providing Qutime and Qcutime.
15121
031da700
EZ
151222009-01-02 Eli Zaretskii <eliz@gnu.org>
15123
15124 * w32.c (process_times): Compute sum of utime and stime.
15125 (system_process_attributes): Add Qtime to the alist.
15126
15127 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15128 and add them to the alist.
15129
15130 * process.c (top level) <Qtime, Qctime>: New variables.
15131 (syms_of_process): staticpro them.
15132 (Fsystem_process_attributes): Add their documentation to the doc
15133 string.
15134
15135 * process.h: Declare Qtime and Qctime.
15136
df23bf08
JR
151372009-01-02 Jason Rumney <jasonr@gnu.org>
15138
9acef61c 15139 * image.c (Qgobject): New symbol.
df23bf08
JR
15140 (syms_of_image): Initialize it.
15141 (init_svg_functions): Load some functions from gobject library.
15142
5bbdf7aa
DN
151432009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15144
15145 * frame.c (make_terminal_frame): Remove redundant code and useless
15146 block.
15147
63136da6
AS
151482009-01-01 Andreas Schwab <schwab@suse.de>
15149
15150 * process.c (conv_sockaddr_to_lisp): Add workaround for
15151 getsockname bug on BSD.
15152
9ef69046
CY
151532009-01-01 Chong Yidong <cyd@stupidchicken.com>
15154
d6fafbe0
CY
15155 * xfns.c (x_create_tip_frame): Set border width of the X window.
15156
51d861de 15157 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 15158
f9c34147
JR
151592009-01-01 Jason Rumney <jasonr@gnu.org>
15160
9acef61c 15161 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
15162 Don't block input, as per earlier xterm.c changes.
15163
f5497e45
AR
151642008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15165
15166 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15167 (ns_appkit_version_int): New function.
15168 (x-server-version): Use ns_appkit_version_int and follow 21+
15169 convention of returning 3 integers.
15170
c19cab20
KH
151712008-12-30 Kenichi Handa <handa@m17n.org>
15172
15173 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15174 (CHAR_SURROGATE_PAIR_P): New macro.
15175
15176 * font.h (struct font_driver): New member get_variation_glyphs.
15177
9acef61c 15178 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
15179 (Ffont_variation_glyphs): New function.
15180 (syms_of_font): Defsubr it.
15181
15182 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15183 ftfont_variation_glyphs.
15184 (setup_otf_gstring): New function.
15185 (ftfont_drive_otf): Use it.
15186 (ftfont_shape_by_flt): Handle variation selector.
15187 (ftfont_variation_glyphs): New function.
15188
28cd591f
MR
151892008-12-30 Martin Rudalics <rudalics@gmx.at>
15190
15191 * frame.c (Vemacs_iconified): Remove.
15192
7f714baf
JR
151932008-12-30 Jason Rumney <jasonr@gnu.org>
15194
15195 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 15196 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 15197
9d2d22ab
CY
151982008-12-30 Chong Yidong <cyd@stupidchicken.com>
15199
15200 * indent.c (Fvertical_motion): Don't advance iterator if we have
15201 reseated to the desired position.
15202
15203 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15204 checking for pos match.
15205
545312c2
KH
152062008-12-30 Kenichi Handa <handa@m17n.org>
15207
1ede3eb6
KH
15208 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15209 just get the low 8-bit of the code.
15210
545312c2
KH
15211 * font.c (font_intern_prop): Validate str as multibyte.
15212
bd7bbf29
DN
152132008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15214
31e0750e
DN
15215 * dispextern.h (struct face): Move lface and hash from the middle
15216 of bitfields.
15217
bd7bbf29
DN
15218 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15219
b5672e7c
DN
152202008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15221
15222 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15223 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15224 instead of intervals.h.
15225
d704470f
AS
152262008-12-26 Andreas Schwab <schwab@suse.de>
15227
15228 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15229 cons.
15230
54b33868
MR
152312008-12-26 Martin Rudalics <rudalics@gmx.at>
15232
15233 * textprop.c (Qminibuffer_prompt): New variable.
15234 (syms_of_textprop): Initialize it.
15235 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15236 in minibuffer-prompt face. (Bug#1662)
15237
40b615d6
JR
152382008-12-25 Jason Rumney <jasonr@gnu.org>
15239
15240 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15241
baae5c2d
JR
152422008-12-24 Jason Rumney <jasonr@gnu.org>
15243
15244 * ralloc.c (r_alloc_reset_variable): New function.
15245
15246 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 15247 record of what points where. (Bug#716)
baae5c2d 15248
a9051c88
DN
152492008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15250
15251 * minibuf.c (read_minibuf): Follow the non-interactive case when
15252 running as a daemon, before detaching.
15253
8b146312
AS
152542008-12-22 Andreas Schwab <schwab@suse.de>
15255
15256 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15257 * gtkutil.c (free_widget_value): Use xfree instead of free.
15258
56f2de10
MR
152592008-12-22 Martin Rudalics <rudalics@gmx.at>
15260
15261 * frame.c (delete_frame): New function derived from
15262 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15263 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15264 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15265 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15266 * frame.h: Extern delete_frame.
15267 * window.c (window_loop):
15268 * terminal.c (delete_terminal):
15269 * xterm.c (x_connection_closed):
15270 * xfns.c (Fx_hide_tip):
9acef61c 15271 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 15272
1fc200d6
JR
152732008-12-21 Jason Rumney <jasonr@gnu.org>
15274
15275 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15276 when character maps to .notdef character.
15277
5e252df2
SM
152782008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15279
15280 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15281
99b72cc4
JR
152822008-12-20 Jason Rumney <jasonr@gnu.org>
15283
15284 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 15285 a graphical frame on Windows. (Bug#1325)
99b72cc4 15286
acc49a52
JD
152872008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15288
15289 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15290
6ea15123
CY
152912008-12-20 Chong Yidong <cyd@stupidchicken.com>
15292
15293 * minibuf.c (Fread_buffer): Doc fix.
15294
b2dab6c8
JR
152952008-12-20 Jason Rumney <jasonr@gnu.org>
15296
54ea0c87 15297 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 15298 server name in UNC paths. (Bug#719)
54ea0c87 15299
b2dab6c8 15300 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 15301 charbuf. (Bug#1035)
b2dab6c8 15302
6d1921be
DN
153032008-12-19 Daniel Engeler <engeler@gmail.com>
15304
15305 * sysdep.c (serial_configure): Fix typo.
15306
53934c98
DN
153072008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15308
15309 * sysdep.c: Include alloca.h.
f4f634e8
DN
15310 (system_process_attributes): Add implementation for Solaris.
15311
15312 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 15313
06e111a6
DN
153142008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15315
15316 Reorganize implementation of Flist_system_processes and
15317 Fsystem_process_attributes. No functional changes.
15318 * process.c: Don't #include pwd.h, grp.h and limits.h.
15319 (Flist_system_processes): Just call list_system_processes.
15320 (Fsystem_process_attributes): Just call system_process_attributes.
15321 (procfs_list_system_processes, time_from_jiffies)
15322 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15323 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15324
15325 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15326 (list_system_processes): Rename from
15327 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15328 Provide a do nothing implementation.
15329 (system_process_attributes): Rename from
15330 procfs_list_system_processes.
15331 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 15332 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
15333
15334 * w32.c (list_system_processes): Rename from
15335 w32_list_system_processes.
15336 (system_process_attributes): Rename from
15337 w32_system_process_attributes.
15338
15339 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15340
15341 * process.h (w32_list_system_processes)
15342 (w32_system_process_attributes): Remove.
362654a6
JB
15343 (list_system_processes, system_process_attributes):
15344 New prototypes.
06e111a6 15345
6a705b23
KH
153462008-12-19 Kenichi Handa <handa@m17n.org>
15347
15348 * xfont.c (xfont_decode_coding_xlfd): New function.
15349 (xfont_encode_coding_xlfd): New function.
15350 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15351 (xfont_list): Decode and encode XLFD by iso-8859-1.
15352 (xfont_match): Likewise.
15353 (xfont_list_family): Likewise.
15354 (xfont_open): Likewise.
15355
d66c0241 15356 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
15357 names are utf-8.
15358
d66c0241 15359 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
15360 names are utf-8.
15361
5a130941
JD
153622008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15363
15364 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15365 changed.
bfd20325
JD
15366 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15367 clicked on a detached tool bar button.
5a130941 15368
fd95644b
DN
153692008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15370
15371 * emacs.c (main): Print and error and exit when no data is read
15372 from the pipe.
15373
e6eee6ae
JR
153742008-12-17 Jason Rumney <jasonr@gnu.org>
15375
15376 * w32font.c (w32font_has_char): Always return -1.
15377
a35dd56b
KH
153782008-12-16 Kenichi Handa <handa@m17n.org>
15379
15380 * font.c (font_open_entity): Fix previous change.
15381
0e3635c2
DN
153822008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15383
15384 * process.c: Include <limits.h>.
15385
d4835507 153862008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
15387
15388 * font.c (font_update_drivers): Fix mistake in reconstructing the
15389 driver list.
15390
153912008-12-16 Chong Yidong <cyd@stupidchicken.com>
15392
15393 * font.c (font_clear_cache): Fix format of font cache data.
15394
e2cbc401
CY
153952008-12-15 Chong Yidong <cyd@stupidchicken.com>
15396
15397 * xftfont.c (xftfont_open): Free Xft font pattern if
15398 XftFontOpenPattern fails.
15399
15400 * xterm.c (x_free_frame_resources): Remove extraneous call to
15401 free_frame_faces.
15402
b131d535
CY
154032008-12-13 Chong Yidong <cyd@stupidchicken.com>
15404
15405 * xterm.c (x_delete_display): Move xim_close_dpy call to
15406 x_delete_terminal.
15407 (x_delete_terminal): Call xim_close_dpy.
15408
e6df5336
JR
154092008-12-13 Jason Rumney <jasonr@gnu.org>
15410
15411 * w32font.c (intern_font_name): New function.
15412 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15413 (w32font_open_internal, Fx_select_font): Decode font name.
15414 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15415
15416 * w32font.h (intern_font_name): Declare new function.
15417
15418 * w32uniscribe.c (add_opentype_font_name_to_list):
15419 Use intern_font_name.
15420
20d68145
CY
154212008-12-13 Chong Yidong <cyd@stupidchicken.com>
15422
9f2554de
CY
15423 * frame.c (Fdelete_frame): Call free_font_driver_list.
15424
3d9bec9a
CY
15425 * font.c (free_font_driver_list): Implement missing function.
15426
20d68145
CY
15427 * w32term.c (w32_term_init): Don't initialize the image cache
15428 here; it will be done in init_frame_faces.
15429
15430 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
15431 (struct x_display_info): Remove unused member null_pixel.
15432 New member xim_callback_data.
20d68145
CY
15433
15434 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15435 (xim_initialize): Save pointer to callback function data.
15436 (xim_close_dpy): Free callback function data. Call XCloseIM,
15437 reverting 2008-11-04 change by David Smith.
15438 (x_term_init): Don't initialize the image cache here; it will be
15439 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15440 (x_delete_display): Free x_dnd_atoms member.
15441
96f9306b
KH
154422008-12-13 Kenichi Handa <handa@m17n.org>
15443
ef1b0ba7 15444 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 15445 Argument type changed. Handle a font-spec too.
96f9306b 15446 (font_score): Check Vface_font_rescale_alist.
6dec9044 15447 (font_open_entity): Likewise. (Bug#1547)
96f9306b 15448
ef1b0ba7 15449 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 15450
8d5b4964
CY
154512008-12-13 Chong Yidong <cyd@stupidchicken.com>
15452
15453 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15454
e6df5336
JR
154552008-12-12 Jason Rumney <jasonr@gnu.org>
15456
bba3e508
SM
15457 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15458 Set Vwindow_system_version to the real w32 major version.
e6df5336 15459
97c6058a
DN
154602008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15461
15462 * term.c (init_tty): Move setting the terminal name before the
15463 potential user: maybe_fatal.
15464
ec4e88d7
CY
154652008-12-11 Chong Yidong <cyd@stupidchicken.com>
15466
ef1b0ba7 15467 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 15468 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 15469
b4233ec9
JR
154702008-12-11 Jason Rumney <jasonr@gnu.org>
15471
8ec71e23 15472 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 15473 SYMBOL_CHARSET. (Bug#547)
8ec71e23 15474
b4233ec9 15475 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 15476 size for surrogates. (Bug#1096, bug#872)
b4233ec9 15477
011a0143
JB
154782008-12-11 Juanma Barranquero <lekktu@gmail.com>
15479
15480 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15481
3c309f34
JB
154822008-12-11 Juanma Barranquero <lekktu@gmail.com>
15483
15484 * process.c (Fsystem_process_attributes, syms_of_process):
15485 Fix typo in name of Ssystem_process_attributes.
15486 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15487
fedc6ab5
JB
154882008-12-11 Juanma Barranquero <lekktu@gmail.com>
15489
15490 * syntax.c (Fmodify_syntax_entry): Doc fix.
15491
ba3de0e8
JB
154922008-12-10 Juanma Barranquero <lekktu@gmail.com>
15493
15494 * font.c (Ffont_spec): Move usage to end of docstring.
15495
174f1c74
JR
154962008-12-10 Jason Rumney <jasonr@gnu.org>
15497
15498 * w32font.c (Qcham): New symbol.
15499 (font_supported_scripts): Add cham, and comments for other new
15500 scripts in bitfield from OpenType spec.
9d32f818
JR
15501 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15502 contain characters beyond the bmp.
174f1c74 15503
7b649478
KH
155042008-12-10 Kenichi Handa <handa@m17n.org>
15505
15506 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 15507 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
15508 Qunicode_sip.
15509
2133e2d1
JB
155102008-12-10 Juanma Barranquero <lekktu@gmail.com>
15511
15512 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15513 (Fcoding_system_put): Use QCdefault_char.
15514 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15515
9af886ee
CY
155162008-12-09 Chong Yidong <cyd@stupidchicken.com>
15517
74d819eb
CY
15518 * xftfont.c (syms_of_xftfont): Fix typo.
15519
4ccfa1c0 15520 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 15521
7c19d3ae
DN
155222008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15523
15524 * emacs.c (main): Close daemon_pipe on exec.
15525
567826bb
CY
155262008-12-08 Chong Yidong <cyd@stupidchicken.com>
15527
15528 * termchar.h (struct tty): New members termcap_term_buffer and
15529 termcap_strings_buffer.
15530
15531 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 15532 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
15533 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15534 All callers changed.
15535 (init_tty): Store termcap data and string buffers in new struct
15536 tty members termcap_term_buffer and termcap_strings_buffer.
15537 (delete_tty): Free them.
4ccfa1c0 15538 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 15539
aa96c42b
SZ
155402008-12-07 Seiji Zenitani <zenitani@mac.com>
15541
15542 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 15543 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 15544
b7e1d896
CY
155452008-12-06 Chong Yidong <cyd@stupidchicken.com>
15546
15547 * coding.c (make_conversion_work_buffer): Disable buffer
15548 modification hooks in the work buffer.
15549
b5ec91a5
EZ
155502008-12-05 Eli Zaretskii <eliz@gnu.org>
15551
15552 * process.c (procfs_system_process_attributes): If `nread' has a
15553 negative value, assign zero to it.
15554
a5d2a52b
CY
155552008-12-05 Chong Yidong <cyd@stupidchicken.com>
15556
68c5540b 15557 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 15558
7bf1bb21
KH
155592008-12-05 Kenichi Handa <handa@m17n.org>
15560
15561 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15562 second character is a combining character.
15563
2fdc7d00
EZ
155642008-12-05 Eli Zaretskii <eliz@gnu.org>
15565
15566 * process.c (procfs_system_process_attributes): Don't use cmd,
15567 cmdsize, and q without initializing them first.
15568
bf6bfba8
JR
155692008-12-04 Jason Rumney <jasonr@gnu.org>
15570
15571 * w32font.c (w32font_draw): Initialize orig_clip before getting
15572 it, and delete it when finished.
15573
a3b1a468
DN
155742008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15575
15576 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15577 case when running as a daemon before detaching.
15578
8b8be8eb
JB
155792008-12-03 Juanma Barranquero <lekktu@gmail.com>
15580
805f2638 15581 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 15582
b1bde622
KH
155832008-12-03 Kenichi Handa <handa@m17n.org>
15584
e500c47d
KH
15585 * font.c (font_at): Set `multibyte' at first.
15586
ca516334
KH
15587 * coding.c (decode_coding_charset): Check type of an element of
15588 vector VALIDS.
7bf1bb21 15589 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 15590
4ccfa1c0 15591 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
15592 (font_for_char): Likewise.
15593
1e5ecd37
CY
155942008-12-03 Chong Yidong <cyd@stupidchicken.com>
15595
d5b01609 15596 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
15597 (font_update_lface): Handle fonts with corrupted size specs,
15598 i.e. non-int and non-float.
d5b01609 15599
11e3a6e4 15600 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 15601 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 15602 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 15603
ab06788b
CY
15604 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
15605
1e5ecd37 15606 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 15607 underline_minimum_offset for underline position.
1e5ecd37 15608
63c125ab
DN
156092008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
15610
15611 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
15612
15613 * character.c (c_string_width): Specify the type for LEN.
15614
3a8406e1
KH
156152008-12-03 Kenichi Handa <handa@m17n.org>
15616
4ccfa1c0 15617 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 15618 (decode_coding_utf_8): Likewise.
4ccfa1c0 15619 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 15620 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 15621
651df7d9
CY
156222008-12-02 Chong Yidong <cyd@stupidchicken.com>
15623
15624 * keyboard.c (make_lispy_position): Only use PT if the selected
15625 window is current.
15626
1f625c6c
AS
156272008-12-02 Andreas Schwab <schwab@suse.de>
15628
f7741ce9
AS
15629 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
15630
1f625c6c
AS
15631 * doprnt.c (doprnt1): Fix size of charbuf.
15632
92bc2678
CY
156332008-12-02 Chong Yidong <cyd@stupidchicken.com>
15634
15635 * keyboard.c (timer_check): Revert last change.
15636
93b9e8cc
JB
156372008-12-02 Juanma Barranquero <lekktu@gmail.com>
15638
15639 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
15640
fd7a37d5
JB
156412008-12-01 Juanma Barranquero <lekktu@gmail.com>
15642
15643 * makefile.w32-in: Update dependencies.
15644 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
15645
c115043b
AS
156462008-12-01 Andreas Schwab <schwab@suse.de>
15647
15648 * font.c (register_font_driver): Use xmalloc.
15649 (font_put_frame_data): Likewise.
15650
f5668d2a
CY
156512008-12-01 Chong Yidong <cyd@stupidchicken.com>
15652
860d96be
CY
15653 * xfaces.c (realize_x_face): Make abort condition clearer.
15654
f5668d2a
CY
15655 * gtkutil.c (update_frame_tool_bar): Initialize variable.
15656
379c17e7
CY
156572008-11-30 Chong Yidong <cyd@stupidchicken.com>
15658
15659 * keyboard.c (timer_check): After a timer runs, ensure that the
15660 selected window's buffer is current.
15661
35f36d65
JB
156622008-11-30 Juanma Barranquero <lekktu@gmail.com>
15663
f952c61c
JB
15664 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
15665 It was accidentally restored by the Unicode merge.
15666
35f36d65
JB
15667 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
15668
b23077df
JB
156692008-11-29 Juanma Barranquero <lekktu@gmail.com>
15670
15671 * w32proc.c: Include "coding.h".
15672 (Fw32_short_file_name): Encode filename passed to Windows API.
15673 (Fw32_long_file_name): Encode filename passed to Windows API and
15674 decode back the result. (Bug#1433)
15675
b8ebe9dd
KH
156762008-11-29 Kenichi Handa <handa@m17n.org>
15677
8cc53f96
KH
15678 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
15679 not before accessing it.
15680
b8ebe9dd
KH
15681 * charset.c (Fdefine_charset_internal): After calculating
15682 min_char, max_char, and fastmap, copy the charset structure again.
15683 (encode_char): Fix the previous change.
15684
59bc82c0
SZ
156852008-11-28 Seiji Zenitani <zenitani@mac.com>
15686
15687 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
15688
15689 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
15690
15691 * nsterm.m (x_set_frame_alpha): New function.
15692
32247e3d
EZ
156932008-11-27 Eli Zaretskii <eliz@gnu.org>
15694
15695 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
15696
b003e5ff
JB
156972008-11-27 Juanma Barranquero <lekktu@gmail.com>
15698
15699 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
15700 pointer to check_face_name.
15701
708550f5
KH
157022008-11-27 Kenichi Handa <handa@m17n.org>
15703
15704 * category.h (SET_CATEGORY_SET): Call set_category_set.
15705 (set_category_set): Extern it.
15706
15707 * category.c (hash_get_category_set): New function.
bba3e508 15708 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
15709 char_table_ref_and_range. Call hash_get_category_set to get a
15710 category set to store in the table.
15711
15712 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
15713 Funify_charset.
15714
2ae37cf0 15715 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
15716 (DECODE_CHAR): Check if the decoder vector is ready.
15717 (ENCODE_CHAR): Check if the encoder char-table is ready.
15718 (maybe_unify_char): Extern it.
15719
15720 * charset.c (Vchar_unified_charset_table): Delete it.
15721 (inhibit_load_charset_map): New variable.
15722 (temp_charset_work): New variable.
15723 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
15724 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
15725 New macros.
bba3e508
SM
15726 (load_charset_map): Meaning of control_flag changed.
15727 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
15728 temp_charset_work.
15729 (load_charset): New argument control_flag.
15730 (map_charset_for_dump): New function.
15731 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
15732 map_charset_for_dump.
15733 (Fdefine_charset_internal): If the charset method is MAP, load
15734 mapping tables by calling load_charset.
15735 (Funify_charset): Don't load a mapping table but directly set
15736 Vchar_unify_table.
15737 (maybe_unify_char): New function.
15738 (decode_char): Don't handle the deleted method MAP_DEFERRED.
15739 Handle the case of inhibit_load_charset_map being nonzero.
15740 (encode_char): Don't handle the deleted method MAP_DEFERRED.
15741 Handle the case of inhibit_load_charset_map being nonzero.
15742 (Fclear_charset_maps): Just free temp_charset_work.
15743 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
15744 variable.
15745
bba3e508 15746 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
15747 change of char_table_ref_and_range.
15748 (char_table_ref_and_range): Change the meaning of argument FROM
15749 and TO. Now the caller must provide initial values for *FROM
15750 and *TO.
15751
bba3e508 15752 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
15753 char_table_ref_and_range.
15754 (fontset_get_font_group): Likewise.
15755 (Ffontset_info): Likewise.
15756
bba3e508 15757 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
15758 char_table_ref_and_range. For char-table, put boundary between
15759 non-ASCII and 8-bit characters.
15760
15761 * print.c (print_object): For bool-vector, delete unnecessary
15762 check of ASCII_BYTE_P.
15763
9196133b
JR
157642008-11-26 Jason Rumney <jasonr@gnu.org>
15765
15766 * w32font.c (w32font_open_internal): Don't include external
9acef61c 15767 leading in font height. (Bug#879)
9196133b 15768
9f688acf
GM
157692008-11-26 Glenn Morris <rgm@gnu.org>
15770
15771 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
15772 redefinition with ifdef. (Bug#1383)
15773
90d19aff
AR
157742008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15775
15776 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
15777
4ccfa1c0 157782008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
15779
15780 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
15781 New EmacsView methods.
15782 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
15783 Fixes bug #1048,1357,1414.
15784
157852008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15786
15787 Fix bug #1362.
15788 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
15789 is not an indexed color.
15790 * nsterm.m (free_indexed_color): Add argument checking.
15791 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
15792
e7d5ecb3
CY
157932008-11-24 Chong Yidong <cyd@stupidchicken.com>
15794
15795 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15796 Document confirm-after-completion value for
15797 minibuffer-completion-confirm.
15798
c285743c
JR
157992008-11-24 Jason Rumney <jasonr@gnu.org>
15800
15801 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15802 warning.
15803
b0857706
JR
158042008-11-23 Jason Rumney <jasonr@gnu.org>
15805
15806 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15807 restored before returning.
15808
15809 * w32font.c (check_face_name): New function.
15810 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 15811 fonts. (Bug#642)
b0857706 15812
ee50ff07
MR
158132008-11-22 Martin Rudalics <rudalics@gmx.at>
15814
15815 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15816 confirm-nonexistent-file-or-buffer in doc-string.
15817
b8ff72fa
SM
158182008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15819
15820 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15821 Fix copy/paste typo. Add checks.
15822
cee53ed4
KH
158232008-11-21 Kenichi Handa <handa@m17n.org>
15824
15825 * coding.c (detect_coding_iso_2022): Reject invalid composition
15826 sequence.
15827 (DECODE_COMPOSITION_START): If the current source is the last
15828 block, and the current composition doesn't end, regard this
15829 sequence as invalid.
15830 (decode_coding_iso_2022): Handle invalid composition sequence.
15831
f6ef1e65
MR
158322008-11-20 Martin Rudalics <rudalics@gmx.at>
15833
15834 * window.c (coordinates_in_window): Don't return
15835 ON_VERTICAL_BORDER for the rightmost position of a mode/header
15836 line when the window is not the rightmost one. (Bug#1372)
15837
e08b1705
MR
158382008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
15839
15840 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
15841
ad98e89f
EZ
158422008-11-15 Eli Zaretskii <eliz@gnu.org>
15843
15844 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
15845 and bright_bg if noninteractive is non-zero.
15846
fb098a4b
CY
158472008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15848
15849 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
15850 x_draw_glyph_string_background.
15851
15852 * w32term.c (x_draw_glyph_string): Likewise.
15853
ce952b6e
CY
158542008-11-15 Chong Yidong <cyd@stupidchicken.com>
15855
15856 * xterm.c (x_draw_glyph_string): Stop drawing the background of
15857 the next glyph string once past the overhang width.
15858
15859 * nsterm.m (ns_draw_glyph_string): Likewise.
15860
15861 * w32term.c (x_draw_glyph_string): Likewise.
15862
26ea7079
CY
158632008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
15864
15865 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
15866 double file close.
15867
1c33c906
MR
158682008-11-14 Martin Rudalics <rudalics@gmx.at>
15869
15870 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
15871 dedicated status of window before attempting to display another
15872 buffer in it.
15873
8fc29035
JB
158742008-11-14 Juanma Barranquero <lekktu@gmail.com>
15875
15876 * msdos.c (Fmsdos_long_file_names):
15877 (syms_of_msdos) <dos-unsupported-char-glyph>:
15878 * dosfns.c (Fint86): Fix typos in docstrings.
15879
55fb4286
EZ
158802008-11-14 Eli Zaretskii <eliz@gnu.org>
15881
15882 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
15883
3fda0315
KY
158842008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
15885
15886 * puresize.h (BASE_PURESIZE): Increase to 1260000.
15887
7e849c17
CY
158882008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
15889
15890 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
15891
15892 * frame.h: Negative alpha means "don't touch".
15893
15894 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
15895
15896 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
15897
b9fd67bd
DN
158982008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
15899
15900 * hftctl.c:
15901 * chpdef.h:
15902 * acldef.h: Remove files used only for systems no longer supported.
15903
15904 * Makefile.in: Fix .o alphabetical ordering.
15905 (hftctl.o): Remove dependency, file removed.
15906 (keymap.o, print.o): Depend on charset.h.
15907
d5998e03
KH
159082008-11-10 Kenichi Handa <handa@m17n.org>
15909
2ae37cf0 15910 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 15911
be70e183
CY
159122008-11-08 Chong Yidong <cyd@stupidchicken.com>
15913
15914 * dired.c (file_name_completion): If completion_ignore_case is
15915 enabled, ignore case when checking completion-regexp-list.
15916
7cf94eac
EZ
159172008-11-08 Eli Zaretskii <eliz@gnu.org>
15918
15919 * vm-limit.c (get_lim_data): Fix last change.
15920
ee107a89
KH
159212008-11-08 Kenichi Handa <handa@m17n.org>
15922
15923 * character.c (Fget_byte): New function.
15924 (syms_of_character): Defsubr Fget_byte.
15925
5fd15622
CY
159262008-11-07 Chong Yidong <cyd@stupidchicken.com>
15927
15928 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15929 cursor position is valid after scrolling.
15930
13d62fad
JB
159312008-11-06 Juanma Barranquero <lekktu@gmail.com>
15932
15933 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15934
a1dd2936
GM
159352008-11-06 Glenn Morris <rgm@gnu.org>
15936
15937 * xterm.c (handle_one_xevent): Don't let popup menus cause
15938 mouse-autoselect-window related window switching. (Bug#1261)
15939
860cd236
CY
159402008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15941
15942 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15943
653a3150
AS
159442008-11-04 Andreas Schwab <schwab@suse.de>
15945
15946 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15947
870f5cac
CY
159482008-11-03 Chong Yidong <cyd@stupidchicken.com>
15949
15950 * xfns.c (Fx_wm_set_size_hint): New function.
15951
1e02f3cb
MR
159522008-11-03 Martin Rudalics <rudalics@gmx.at>
15953
15954 * textprop.c (Fprevious_single_char_property_change): Return 0
15955 when there's no change in a string. (Bug#1301)
15956
e630dfc6
MR
159572008-11-02 Martin Rudalics <rudalics@gmx.at>
15958
15959 * frame.c (do_switch_frame): New argument NORECORD passed to
15960 Fselect_window.
15961 (Fselect_frame): New argument NORECORD passed to
15962 do_switch_frame.
15963 (Fset_frame_selected_window): New argument NORECORD passed to
15964 Fselect_frame.
15965 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15966 in call of do_switch_frame.
15967 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15968 Handle NORECORD argument in call of Fselect_frame.
15969 * lisp.h (do_switch_frame, Fselect_frame)
15970 (Fset_frame_selected_window): Adjust declarations.
15971 * window.c (select_frame_norecord): New function.
15972 (run_window_configuration_change_hook): Use it and call
15973 Fselect_frame with NORECORD set.
15974 (Fselect_window): Pass NORECORD to Fselect_frame.
15975 (Fset_window_configuration): Handle NORECORD argument in call of
15976 do_switch_frame.
15977 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15978 Fset_frame_selected_window.
15979 * keyboard.c (command_loop_1): Handle NORECORD in call of
15980 Fselect_frame (currently ifdefd).
15981
9020b223
GM
159822008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15983
15984 * emacs.c (USAGE2): Untabify.
15985
793ffee8
SM
159862008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15987
15988 * composite.c (fill_gstring_header): Fix copy/paste typo.
15989
ab6d1131
MR
159902008-10-31 Martin Rudalics <rudalics@gmx.at>
15991
15992 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15993 (Fother_window): Rename argument and rewrite doc-string.
15994 (select_window_norecord): Fix return value. (Bug#1276)
15995
601a9cf1
JB
159962008-10-30 Juanma Barranquero <lekktu@gmail.com>
15997
15998 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15999 new frames overriding foreground for tooltips. Based on similar patch
16000 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16001
813b0652
CY
160022008-10-29 Chong Yidong <cyd@stupidchicken.com>
16003
16004 * emacs.c (Fdaemon_initialized): Initialize nfd.
16005
4414f58f
MR
160062008-10-29 Martin Rudalics <rudalics@gmx.at>
16007
16008 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16009 (Fwindow_text_height): Clarify doc-strings.
16010 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16011 doc-string of window-scroll-functions.
16012
ecdcaa09
RS
160132008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16014
16015 * category.c (syms_of_category): Fix typo in docstring.
16016
23fe745a
JB
160172008-10-28 Juanma Barranquero <lekktu@gmail.com>
16018
16019 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16020 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16021 Fix typos in docstrings.
16022
ff808935
DN
160232008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16024
16025 * emacs.c (daemon_pipe): Make non-static.
16026 (IS_DAEMON): Move definition ...
16027 * lisp.h (IS_DAEMON): ... here.
16028 (daemon_pipe): Declare.
16029 (is_daemon): Remove.
16030 * dispnew.c (init_display): Use IS_DAEMON.
16031
fc012771
SM
160322008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16033
16034 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16035 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16036
16037 * emacs.c (is_daemon): Remove.
16038 (main): Don't set is_daemon.
16039 (IS_DAEMON): New macro.
16040 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 16041 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
16042 parent exits.
16043 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16044
d8bdbe6f
CY
160452008-10-27 Chong Yidong <cyd@stupidchicken.com>
16046
d1a072bf
CY
16047 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16048 over-sized glyph, draw it with the default glyph width.
16049
e2e325aa
CY
16050 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16051 glyph, draw it with the default glyph width.
16052
16053 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16054 glyph, draw it with the default glyph width.
16055
d8bdbe6f
CY
16056 * xdisp.c (try_scrolling): When computing the distance from the
16057 scroll margin to PT, try moving some distance past the window
16058 bottom before giving up.
16059
7bfac547
MR
160602008-10-27 Martin Rudalics <rudalics@gmx.at>
16061
16062 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16063 (Fset_window_buffer): Explain in doc-string that a window can be
16064 "strongly" dedicated to its buffer.
16065
4ff029f6
DN
160662008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16067
16068 * emacs.c (daemon_name): New variable.
16069 (main): Deal with --daemon=SERVER_NAME.
16070 (Fdaemonp): Return a name if one was passed to --daemon.
16071
5790ef40
DN
160722008-10-26 Romain Francoise <romain@orebokech.com>
16073
f9bd0df9 16074 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
16075 (main): Create a pipe before forking, make the parent exit only after
16076 the child has closed its end of the pipe. Move closing the
16077 descriptors ...
16078 (Fdaemon_initialized): ... here. New function.
16079
f5385255
SM
160802008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16081
4d632321
SM
16082 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16083 the previous unoptimized table.
16084
f5385255
SM
16085 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16086 the distinction between non-nil and non-t value of `dedicated'.
16087
6c56a0f3
CY
160882008-10-25 Chong Yidong <cyd@stupidchicken.com>
16089
16090 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 16091 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 16092
fec89261
MR
160932008-10-25 Martin Rudalics <rudalics@gmx.at>
16094
16095 * window.c (Fget_buffer_window, Fdelete_windows_on)
16096 (Freplace_buffer_in_windows): Make buffer argument optional and
16097 rename to buffer_or_name.
16098
34fcddd0
CY
160992008-10-24 Chong Yidong <cyd@stupidchicken.com>
16100
f5385255
SM
16101 * xdisp.c (handle_single_display_spec, handle_display_prop):
16102 Undo 2005-05-16 change.
34fcddd0
CY
16103 (handle_stop): Pop iterator if it's loaded with an empty string.
16104 (get_overlay_strings_1): Don't save iterator if it's loaded with
16105 an empty string (bug#1201).
16106
064766f2
KH
161072008-10-24 Kenichi Handa <handa@m17n.org>
16108
16109 * ftfont.c (ftfont_otf_features): Fix previous change.
16110 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16111 calling ftfont_otf_features.
16112
f9bd0df9 161132008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
16114
16115 * font.c (font_match_p): Fix for the case that a vector of
16116 characters is in script-representative-chars.
16117
1dae9197
MA
161182008-10-24 Michael Albinus <michael.albinus@gmx.de>
16119
16120 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 16121 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
16122 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16123 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 16124 macro. (Bug#1186)
1dae9197 16125
f9bd0df9 161262008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
16127
16128 * s/sol2-10.h: New file.
16129
878a4584
JB
161302008-10-23 Juanma Barranquero <lekktu@gmail.com>
16131
16132 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16133 poor beast has survived 9+ years and the jump from xterm.c!).
16134
cd265ca6
MR
161352008-10-23 Martin Rudalics <rudalics@gmx.at>
16136
16137 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16138 Reword doc-string.
f5385255 16139 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 16140
472a4dc9
JB
161412008-10-23 Juanma Barranquero <lekktu@gmail.com>
16142
16143 * character.c (syms_of_character) <script-representative-chars>:
16144 <unicode-category-table>: Doc fixes.
16145
159bd5a2
NF
161462008-10-23 Noah Friedman <friedman@splode.com>
16147
16148 * coding.c (make_conversion_work_buffer): Check that
16149 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16150 Fget_buffer_create.
16151
49f9c344
KH
161522008-10-23 Kenichi Handa <handa@m17n.org>
16153
16154 * font.c (font_add_log): Check the values of extra properties.
16155
12bb3111
MR
161562008-10-22 Martin Rudalics <rudalics@gmx.at>
16157
16158 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16159 Reword doc-string.
16160 (Fset_window_parameter): Use NILP.
16161 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 16162 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 16163
bbeb4e99
JB
161642008-10-22 Juanma Barranquero <lekktu@gmail.com>
16165
16166 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16167
161682008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
16169
16170 * nsfns.m (ns_appkit_version): New function.
16171 (x-server-version): Use it.
16172 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16173 (x-server-vendor): Don't check_ns().
16174
16175 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16176
a9b555d3
JB
161772008-10-22 Juanma Barranquero <lekktu@gmail.com>
16178
16179 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16180 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16181
4626499f
KH
161822008-10-22 Kenichi Handa <handa@m17n.org>
16183
e3681952
KH
16184 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16185 scripts.
16186
4626499f
KH
16187 * category.c (word_boundary_p): Check scripts instead of charset.
16188 Handle nil value in word-separating-categories and
16189 word-combining-categories.
16190 (syms_of_category): Fix docstrings of word-separating-categories
16191 and word-combining-categories.
16192
1560f91a
EZ
161932008-10-21 Eli Zaretskii <eliz@gnu.org>
16194
16195 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16196 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16197
f4668441
MR
161982008-10-21 Martin Rudalics <rudalics@gmx.at>
16199
16200 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16201 Rename arg "buffer" to "buffer_or_name".
16202 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16203 it optional.
16204 (no_switch_window): Remove since the return value is not used.
a9b555d3 16205 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
16206 Consider window as dedicated when Fwindow_dedicated_p returns a
16207 non-nil value.
16208 * lisp.h: Remove prototype for no_switch_window.
16209
fd75ddb2
JD
162102008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16211
16212 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 16213 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 16214
07295713
KH
162152008-10-21 Kenichi Handa <handa@m17n.org>
16216
16217 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16218 check Vlatin_extra_code_table.
16219
712adc82
EZ
162202008-10-20 Eli Zaretskii <eliz@gnu.org>
16221
16222 * fileio.c (Fset_file_modes): Doc fix.
16223
f549eb0b
MA
162242008-10-19 Michael Albinus <michael.albinus@gmx.de>
16225
16226 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16227 in arrays.
16228
aac0c6e3
MR
162292008-10-19 Martin Rudalics <rudalics@gmx.at>
16230
16231 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16232 Mention kill-buffer in doc-string.
16233 (Fset_window_buffer): Reinsert tem check removed in last commit.
16234 (Fenlarge_window, Fshrink_window): Have argument names and
16235 doc-string follow Elisp manual more closely.
16236
162372008-10-18 Eli Zaretskii <eliz@gnu.org>
16238
16239 * fileio.c (Fset_file_modes): Doc fix.
16240
162412008-10-18 Martin Rudalics <rudalics@gmx.at>
16242
16243 * window.c (Fwindow_width, Fset_window_start)
16244 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
16245 (Fdelete_windows_on, Freplace_buffer_in_windows):
16246 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
16247 (Fwindow_dedicated_p): Make window argument optional.
16248 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16249 (Fset_window_buffer): Respect any non-nil dedicated value for
16250 window. Rename "buffer" argument to "buffer_or_name".
16251
162522008-10-18 Ulrich Mueller <ulm@gentoo.org>
16253
16254 * m/sh3.h: New file, machine description for SuperH.
16255
162562008-10-17 Martin Rudalics <rudalics@gmx.at>
16257
16258 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16259
162602008-10-17 Kenichi Handa <handa@m17n.org>
16261
16262 * ftfont.c (ftfont_otf_features): Fix indexing
16263 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16264
162652008-10-16 Magnus Henoch <mange@freemail.hu>
16266
16267 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16268 (Fdbus_call_method_asynchronously): Ditto.
16269 This change makes C-h f display the argument list.
16270
162712008-10-16 Chong Yidong <cyd@stupidchicken.com>
16272
16273 * fileio.c (Fexpand_file_name): Doc fix.
16274
16275 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16276 of :foreground and :background equivalent to unspecified (20.x
16277 compatibility).
16278
162792008-10-15 Eli Zaretskii <eliz@gnu.org>
16280
16281 * buffer.c (syms_of_buffer): Doc fix.
16282
162832008-10-14 Kenichi Handa <handa@m17n.org>
16284
16285 * font.c (font_clear_prop): When clearing font width, clear the
16286 average width field too.
16287
162882008-10-12 Andreas Schwab <schwab@suse.de>
16289
16290 * ftfont.c (ftfont_shape_by_flt): Make static.
16291 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16292
16293 * font.c: Don't include <m17n-flt.h>.
16294
162952008-10-10 Eli Zaretskii <eliz@gnu.org>
16296
16297 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16298
162992008-10-09 Eli Zaretskii <eliz@gnu.org>
16300
16301 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16302 away code.
16303
163042008-10-09 Chong Yidong <cyd@stupidchicken.com>
16305
16306 * dispnew.c (update_text_area): Avoid looping due to large glyph
16307 overhangs (bug#1070).
16308
163092008-10-09 Kenichi Handa <handa@m17n.org>
16310
16311 * fontset.c (face_for_char): If face->fontset is negative, just
16312 return ascii_face.
16313
f5385255
SM
16314 * font.c (font_delete_unmatched): Fix previous change.
16315 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
16316
163172008-10-09 Martin Rudalics <rudalics@gmx.at>
16318
16319 * frame.c (Fraise_frame): On text-only terminals select frame in
16320 order to make it visible. (Bug#1061)
16321
163222008-10-08 Chong Yidong <cyd@stupidchicken.com>
16323
16324 * fontset.c (fontset_find_font): Check frame validity.
16325
163262008-10-07 Chong Yidong <cyd@stupidchicken.com>
16327
a9b555d3 16328 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
16329 (xg_display_close): Allow Emacs to close all displays (bug#985).
16330
163312008-10-06 Andreas Schwab <schwab@suse.de>
16332
f5385255 16333 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
16334
163352008-10-06 Chong Yidong <cyd@stupidchicken.com>
16336
f5385255 16337 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 16338
a9b555d3 16339 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
16340
16341 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16342 during initialization.
16343
163442008-10-04 Eli Zaretskii <eliz@gnu.org>
16345
16346 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16347 whole thing on MSDOS frames as well as on a TTY.
16348
16349 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16350 well as for TTY.
16351 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16352 well as on a TTY.
16353
16354 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16355 as well as for TTY.
16356
16357 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16358
16359 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16360 MSDOS frames as well.
16361
163622008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16363
16364 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16365 correct arguments.
b71ac3dd 16366 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
16367
163682008-10-03 Glenn Morris <rgm@gnu.org>
16369
16370 * emacs.c (USAGE1): Add --daemon.
16371
163722008-10-02 Eli Zaretskii <eliz@gnu.org>
16373
16374 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16375 100, so it's in percents as advertised.
16376
163772008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16378
16379 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16380 (ns_output.current_cursor, ns_output.desired_cursor)
16381 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16382 (FRAME_NEW_CURSOR_COLOR): Remove.
16383
16384 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 16385 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
16386 enumeration (HOLLOW_BOX_CURSOR, etc.).
16387
16388 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16389 (draw_window_cursor): Simplify code.
f5385255
SM
16390 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16391 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 16392 updates manually.
a9b555d3
JB
16393 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16394 Use core Emacs cursor types.
aac0c6e3 16395
b8ff72fa 16396 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
16397
163982008-10-02 Martin Rudalics <rudalics@gmx.at>
16399
16400 * process.c (Faccept_process_output): Fix doc-string.
16401
164022008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16403
16404 * gmalloc.c (__sbrk): Also define for uClibc.
16405
16406 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16407 for uClibc.
16408
164092008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16410
16411 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16412 styles.
16413 (nsfont_open): Reenable the cache.
16414
164152008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16416
16417 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16418 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16419
164202008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16421
16422 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16423 a suspended terminal.
16424
164252008-09-30 Michael Albinus <michael.albinus@gmx.de>
16426
16427 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16428
164292008-09-30 Eli Zaretskii <eliz@gnu.org>
16430
16431 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16432
164332008-09-30 Chong Yidong <cyd@stupidchicken.com>
16434
16435 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16436 in a continued line coincides with a line beginning.
16437
164382008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16439
16440 * nsfont.m (nsfont_trait_distance): Fix bug.
16441 (nsfont_list): Return a list rather than a vector (syncs with Handa
16442 changes of 2008-05-14).
16443 (nsfont_open): Improve logging.
16444
164452008-09-29 Andreas Schwab <schwab@suse.de>
16446
16447 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16448
164492008-09-28 Martin Rudalics <rudalics@gmx.at>
16450
16451 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16452 name as char-resolve-modifiers.
16453 Reported by: Markus Triska <markus.triska@gmx.at>
16454
164552008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16456
16457 * dispnew.c (init_display): Return earlier when running as a daemon.
16458
164592008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16460
16461 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16462
164632008-09-27 Eli Zaretskii <eliz@gnu.org>
16464
16465 * composite.c (Fcomposition_get_gstring)
16466 (Fcompose_region_internal, Fcompose_string_internal)
16467 (Ffind_composition_internal): Doc fix.
16468 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16469 (syms_of_composite) <auto-composition-function>: Doc fix.
16470 (syms_of_composite) <composition-function-table>: Doc fix.
16471
164722008-09-25 Chong Yidong <cyd@stupidchicken.com>
16473
16474 * search.c (wordify): New argument for lax word-ends.
16475 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16476
164772008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16478
16479 * lisp.h (is_daemon): Declare.
16480 * dispnew.c (init_display): Do not try to initialize the terminal
16481 when running as a daemon.
16482
164832008-09-22 Chong Yidong <cyd@stupidchicken.com>
16484
16485 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16486 x_display_pixel_height.
16487
164882008-09-22 Martin Rudalics <rudalics@gmx.at>
16489
16490 * undo.c (record_point): Don't call Fundo_boundary for first
16491 change. (Bug#731)
16492
164932008-09-22 Juanma Barranquero <lekktu@gmail.com>
16494
16495 * emacs.c (Fdaemonp): Doc fix.
16496
164972008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16498
16499 * emacs.c (main): Place #ifdef in the proper place.
16500
165012008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16502
16503 * emacs.c (standard_args): Add --daemon.
16504 (main): Disconnect from the terminal when --daemon is passed.
16505 (is_daemon): New variable.
16506 (Fdaemonp): New function.
16507 (syms_of_emacs): Defsubr it.
16508
165092008-09-20 Chong Yidong <cyd@stupidchicken.com>
16510
16511 * xdisp.c (get_next_display_element): Handle string display
16512 correctly when checking for the end of a box run.
16513
165142008-09-20 Glenn Morris <rgm@gnu.org>
16515
16516 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16517 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16518 (Frename_file): Avoid copying to trash if a rename involves
16519 a delete. (Bug#964).
16520
165212008-09-20 Eli Zaretskii <eliz@gnu.org>
16522
16523 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16524 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16525 frames as well as termcap frames.
16526 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16527 get_named_tty.
16528
165292008-09-19 Eli Zaretskii <eliz@gnu.org>
16530
16531 * process.c (procfs_system_process_attributes): Fix cmdline in
16532 case /proc/PID/cmdline is empty.
16533
16534 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16535 x_display_pixel_height.
16536
165372008-09-19 Juanma Barranquero <lekktu@gmail.com>
16538
16539 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16540
16541 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16542 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16543
165442008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16545
16546 * dispextern.h (struct it): Move line_wrap away from the middle of
16547 bitfields. Move voffset in struct iterator_stack_entry after the
16548 bitfields. Move tab_width near after another short.
16549
165502008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16551
16552 * frame.h (struct frame): Move alpha from the middle of bitfields.
16553
16554 * window.h (struct window): Move frozen_window_start_p after the
16555 rest of the bitfields to reduce padding.
16556
165572008-09-18 Chong Yidong <cyd@stupidchicken.com>
16558
16559 * xterm.h (x_display_info): Remove `height' and `width' members.
16560
16561 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16562
16563 * w32term.h (w32_display_info): Remove `height', `width',
16564 `height_in', and `width_in' members.
16565
b8ff72fa
SM
16566 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16567 New functions.
aac0c6e3
MR
16568 (x_calc_absolute_position): Use them.
16569 (x_term_init): Omit removed `height' and `width' members.
16570
b8ff72fa
SM
16571 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16572 New functions.
aac0c6e3
MR
16573 (w32_read_socket, x_calc_absolute_position): Use them.
16574 (w32_initialize_display_info, w32_term_init): Omit removed members
16575 of w32_display_info.
16576
b8ff72fa
SM
16577 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16578 New functions.
16579 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 16580
b8ff72fa
SM
16581 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16582 New functions.
aac0c6e3
MR
16583 (x_calc_absolute_position): Use them.
16584 (x_term_init): Omit removed `height' and `width' members.
16585
16586 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
16587 (compute_tip_xy):
16588 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
16589 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16590 x_display_pixel_width.
16591
165922008-09-18 Kenichi Handa <handa@m17n.org>
16593
16594 * composite.c (fill_gstring_header): Don't check FROM and TO here.
16595 (composition_compute_stop_pos): Fix handling of static composition.
16596 (Fcomposition_get_gstring): Check FROM and TO at first.
16597
165982008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
16599
46e722a9 16600 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
16601 mixup (YAILOM).
16602
166032008-09-17 Chong Yidong <cyd@stupidchicken.com>
16604
16605 * indent.c (Fvertical_motion): Use position reported by iterator
16606 instead of PT for determining screen motion (bug#943).
16607
166082008-09-17 Romain Francoise <romain@orebokech.com>
16609
16610 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
16611
166122008-09-17 Kenichi Handa <handa@m17n.org>
16613
16614 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
16615
16616 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
16617 if necessary.
16618
166192008-09-16 Kenichi Handa <handa@m17n.org>
16620
16621 * coding.c (make_conversion_work_buffer): Avoid calling
16622 Fget_buffer_create if it is not necessary.
16623
166242008-09-15 Martin Rudalics <rudalics@gmx.at>
16625
16626 * window.c (Fselect_window): Don't update window_select_count and
16627 use_time when norecord is not nil.
16628
166292008-09-14 Kenichi Handa <handa@m17n.org>
16630
16631 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
16632 specpdl_ptr.
16633
166342008-09-12 Kenichi Handa <handa@m17n.org>
16635
16636 * indent.c (scan_for_column): Don't handle automatic composition
16637 if the current buffer is not associated with a window.
16638
16639 * composite.c (composition_reseat_it): If the current buffer is
16640 not associated with a window, ignore the automatic composition.
16641 (find_automatic_composition): Likewise.
16642
166432008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16644
16645 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
16646 (Fgpm_mouse_stop): Use it.
16647 * termhooks.h (close_gpm): Declare.
16648 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
16649 connection if Gpm_GetEvent fails.
16650
16651 * window.c (set_window_buffer): Always preserve current-buffer.
16652
166532008-09-12 Glenn Morris <rgm@gnu.org>
16654
16655 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
16656
166572008-09-11 Glenn Morris <rgm@gnu.org>
16658
16659 * charset.c (charset-map-path): Doc fix.
16660
166612008-09-10 Kenichi Handa <handa@m17n.org>
16662
16663 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
16664
16665 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
16666 compose a grapheme cluster with the preceding base glyph.
16667
16668 * composite.c (composition_compute_stop_pos): Fix previous change.
16669 Reset cmp_it->id to -1 at first.
16670
166712008-09-10 Glenn Morris <rgm@gnu.org>
16672
16673 * Makefile.in (character.o, chartab.o): Fix config.h typo.
16674
166752008-09-09 Chong Yidong <cyd@stupidchicken.com>
16676
16677 * keyboard.c (read_key_sequence): Reapply translation maps when
16678 switching keyboards.
16679
166802008-09-09 Kenichi Handa <handa@m17n.org>
16681
16682 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
16683 characters.
16684
16685 * composite.c (FORWARD_CHAR): Fix calculation
16686 of (POSITION).pos_byte.
16687 (composition_compute_stop_pos): Limit the search of composition to
16688 at most 500 characters ahead. If we reach the limit or find a
16689 newline, set cmp_it->ch to -2 and return 0.
16690 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
16691
166922008-09-08 Kenichi Handa <handa@m17n.org>
16693
16694 * indent.c (Fvertical_motion): Be sure to set
16695 it_overshoot_expected if it.cmp_it.id is non-negative.
16696
166972008-09-07 Andreas Schwab <schwab@suse.de>
16698
16699 * callproc.c (Fcall_process): Don't hold references to string data
16700 across garbage collection. Move initialisation of new_argv down
16701 to avoid compiler bug.
16702
167032008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16704
16705 * process.c (Fsystem_process_attributes): Doc fix.
16706
167072008-09-07 Chong Yidong <cyd@stupidchicken.com>
16708
16709 * callproc.c (Fcall_process): Canonicalize current directory name.
16710
16711 * xdisp.c (move_it_to): When moving by vpos, ensure that the
16712 iterator advances to the next line if the current line ends in a
16713 continued tab.
16714
167152008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
16716
16717 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
16718 member to point to cmp_from.
16719
16720 * xdisp.c: Doc fix for references to gidx data member.
16721
167222008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16723
16724 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
16725
167262008-09-07 Kenichi Handa <handa@m17n.org>
16727
16728 * composite.c (FORWARD_CHAR): Check STOP after
16729 incrementing (POSITION).pos.
16730
167312008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16732
16733 * process.c (Fsystem_process_attributes): Doc fix.
16734
167352008-09-06 Chong Yidong <cyd@stupidchicken.com>
16736
16737 * keyboard.c (Ftop_level): Doc fix.
16738
167392008-09-06 Eli Zaretskii <eliz@gnu.org>
16740
16741 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
16742 minibuffer, don't let lower part of menu invade the echo area.
16743
16744 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
16745 "char *q" to access menu text and advance through it. Revert the
16746 change that displayed ">" instead of ASCII character 0x10.
16747
167482008-09-05 Eli Zaretskii <eliz@gnu.org>
16749
16750 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
16751 toggle boxes and radio buttons on MS-DOS as well.
16752
167532008-09-05 Kenichi Handa <handa@m17n.org>
16754
16755 * composite.c (autocmp_chars): Check lookback count.
16756 (composition_compute_stop_pos): Set cmp_it->lookback.
16757 (composition_reseat_it): Check lookback count.
16758 (struct position_record): New struct.
16759 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
16760 (find_automatic_composition): New function.
16761 (composition_adjust_point): Use find_automatic_composition.
16762
16763 * dispextern.h (struct composition_it): New member lookback.
16764
167652008-09-02 Chong Yidong <cyd@stupidchicken.com>
16766
16767 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
16768 if moving by a single line.
16769
167702008-09-02 Andreas Schwab <schwab@suse.de>
16771
16772 * xterm.c (x_delete_display): Fix merge error.
16773
16774 * fileio.c (Fexpand_file_name): Remove unused variables.
16775
167762008-09-02 Eli Zaretskii <eliz@gnu.org>
16777
16778 * fileio.c (Fexpand_file_name): Copy argument `name' into local
16779 storage on all platforms, not just on DOS_NT.
16780
167812008-09-02 Jason Rumney <jasonr@gnu.org>
16782
b8ff72fa
SM
16783 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
16784 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
16785
167862008-09-01 Chong Yidong <cyd@stupidchicken.com>
16787
16788 * xfaces.c (Finternal_set_alternative_font_family_alist)
16789 (Finternal_set_alternative_font_registry_alist): Properly copy
16790 entire alist structure.
16791
167922008-09-01 Kenichi Handa <handa@m17n.org>
16793
d66c0241 16794 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 16795 representative chars of the script is a vector.
d66c0241
JB
16796 (ftfont_list): Handle the case where the representative chars of
16797 the script is a vector.
aac0c6e3
MR
16798
16799 * character.c (syms_of_character): Docstring of
16800 script-representative-chars fixed.
16801
168022008-08-31 Eli Zaretskii <eliz@gnu.org>
16803
16804 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16805 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16806 the menu. Allocate larger buffer for `text', to account for
16807 possible ^C characters.
16808
168092008-08-31 Martin Rudalics <rudalics@gmx.at>
16810
16811 * xdisp.c (prepare_menu_bars): Don't call
16812 Vwindow_size_change_functions with arg Qt.
16813
168142008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16815
16816 * font.h (font_range):
16817 * fileio.c (report_file_error):
46e722a9
SM
16818 * composite.c (composition_update_it): Yet another int/Lisp_Object
16819 mixup (YAILOM).
aac0c6e3
MR
16820
168212008-08-30 Glenn Morris <rgm@gnu.org>
16822
16823 * data.c (Fmake_variable_frame_local): Doc fix.
16824
16825 * frame.c (Fmodify_frame_parameters): Doc fix.
16826
168272008-08-30 Eli Zaretskii <eliz@gnu.org>
16828
16829 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
16830 needed by GetTokenInformation.
16831 (w32_system_process_attributes): Check return values of all system
16832 APIs.
16833
16834 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
16835 only when the state changes.
16836 (IT_update_begin, IT_update_end): Add termscript trace.
16837
16838 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
16839 clipboard is unavailable. Set dst to NULL if it doesn't point to
16840 malloc'ed data.
16841 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
16842 passing random values to xfree.
16843
16844 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 16845 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
16846
168472008-08-29 Jason Rumney <jasonr@gnu.org>
16848
16849 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
16850
168512008-08-29 Eli Zaretskii <eliz@gnu.org>
16852
16853 * composite.c (fill_gstring_body): Avoid compiler warnings.
16854
16855 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
16856 LGLYPH_SET_CODE to avoid compiler warnings.
16857
2ae37cf0 16858 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
16859
16860 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
16861
16862 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
16863 LGLYPH_SET_CODE.
16864
168652008-08-29 Kenichi Handa <handa@m17n.org>
16866
16867 * fileio.c (report_file_error): Don't downcase the first character
16868 of errstring if it is still unibyte.
16869
168702008-08-29 Kenichi Handa <handa@m17n.org>
16871
16872 These changes are to re-implement the automatic composition so
16873 that it doesn't use text properties.
16874
16875 * Makefile.in (ftfont.o): Depend on composite.h.
16876 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
16877
16878 * character.h (Vunicode_category_table): Extern it.
16879
16880 * character.c (Vunicode_category_table): New variable.
16881 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
16882
16883 * chartab.c (optimize_sub_char_table): Perform more greedy
16884 optimization.
16885
b8ff72fa
SM
16886 * composite.h (enum composition_method):
16887 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
16888 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
16889 (Vcomposition_function_table): Extern it.
16890 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
16891 (composition_gstring_put_cache, composition_gstring_from_id)
16892 (composition_gstring_p, composition_gstring_width)
16893 (composition_compute_stop_pos, composition_reseat_it)
16894 (composition_update_it, composition_adjust_point): Extern them.
16895 (Fcomposition_get_gstring): EXFUN it.
16896
d66c0241 16897 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
16898 (Vcomposition_function_table)
16899 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
16900 (gstring_hash_table, gstring_work, gstring_work_headers):
16901 New variables.
aac0c6e3
MR
16902 (gstring_lookup_cache, composition_gstring_put_cache)
16903 (composition_gstring_from_id, composition_gstring_p)
16904 (composition_gstring_width, fill_gstring_header)
16905 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
16906 (composition_reseat_it, composition_update_it)
b8ff72fa 16907 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
16908 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
16909 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 16910 Defsubr composition_get_gstring.
aac0c6e3
MR
16911
16912 * dispextern.h (struct glyph): New union u.cmp. Delete the member
16913 cmp_id.
16914 (struct glyph_string): Delete the member gidx. New members
16915 cmp_id, cmp_from, and cmp_to.
16916 (enum it_method): Delete GET_FROM_COMPOSITION.
16917 (struct composition_it): New struct.
16918 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
16919 Delete c, len, cmp_id, cmp_len in u.comp.
16920
16921 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 16922 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 16923 (enum lglyph_indices): Likewise.
b8ff72fa 16924 (font_range): Adjust extern.
aac0c6e3
MR
16925 (font_fill_lglyph_metrics): Extern it.
16926
16927 * font.c (QCf): New variable.
16928 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16929 (font_prepare_composition): Delete this function.
16930 (font_range): Type and arguments changed.
16931 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16932 (font_fill_lglyph_metrics): New function.
b8ff72fa 16933 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 16934 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
16935 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16936 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
16937
16938 * fontset.h (font_for_char): Extern it.
16939
16940 * fontset.c (font_for_char): New function.
16941
16942 * ftfont.c: Include composite.h.
16943 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 16944 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
16945
16946 * indent.c: Include composite.h and dispextern.h.
16947 (check_composition): Delete this function.
16948 (scan_for_column): Handle composition by
16949 composition_compute_stop_pos, composition_reseat_it, and
16950 composition_update_it.
16951 (compute_motion): Likewise.
16952 (Fvertical_motion): Fix checking of composition.
16953
16954 * keyboard.c (adjust_point_for_property): Check composition by
16955 composition_adjust_point.
16956
b8ff72fa 16957 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
16958 struct glyph_string.
16959
b8ff72fa
SM
16960 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16961 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
16962 struct glyph.
16963 (produce_composite_glyph): Likewise.
16964
b8ff72fa
SM
16965 * w32term.c (x_draw_composite_glyph_string_foreground):
16966 Adjust for the change of struct glyph_string.
aac0c6e3
MR
16967 (x_draw_glyph_string): Likewise.
16968
16969 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16970 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16971
16972 * xdisp.c: Include font.h.
16973 (it_props): Delete the entry for Qauto_composed.
16974 (init_iterator): Initialize it->cmp_it.id to -1.
16975 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 16976 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
16977 (handle_auto_composed_prop): Delete it.
16978 (handle_composition_prop): Handle only static composition.
16979 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16980 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 16981 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
16982 (pop_it): Likewise.
16983 (get_next_element): Delete next_element_from_composition.
16984 (CHAR_COMPOSED_P): New macro.
16985 (get_next_display_element): For automatic composition, get a face
16986 from the font in the glyph-string.
16987 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 16988 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
16989 (next_element_from_string): Check if the character at the current
16990 position is composed by CHAR_COMPOSED_P.
16991 (next_element_from_buffer): Likewise.
d66c0241
JB
16992 (next_element_from_composition): Adjust for the change of struct it.
16993 Update it->cmp_it.
b8ff72fa
SM
16994 (dump_glyph): Adjust for the change of struct glyph.
16995 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
16996 it and struct glyph. Don't handle automatic composition here.
16997 (fill_gstring_glyph_string): New function.
16998 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 16999 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
17000 (BUILD_GSTRING_GLYPH_STRING): New macro.
17001 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17002 automatic composition.
b8ff72fa 17003 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 17004 struct glyph.
b8ff72fa 17005 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 17006
b8ff72fa 17007 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
17008 the change of struct glyph_string.
17009 (x_draw_glyph_string): Likewise.
17010
170112008-08-29 Glenn Morris <rgm@gnu.org>
17012
17013 * buffer.c (word-wrap): Doc fix.
17014 * xdisp.c (truncate-partial-width-windows): Doc fix.
17015 Increase default to 50.
17016
170172008-08-29 Chong Yidong <cyd@stupidchicken.com>
17018
17019 * xdisp.c (update_tool_bar_unwind): New function.
17020 (update_tool_bar): Temporarily set selected frame before building
17021 tool-bar items.
17022
170232008-08-28 Michael Albinus <michael.albinus@gmx.de>
17024
17025 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17026 snprintf, respectively.
17027 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17028
170292008-08-28 Chong Yidong <cyd@stupidchicken.com>
17030
17031 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17032 LDFLAGS to GNUstep CC invocation.
17033
170342008-08-27 Chong Yidong <cyd@stupidchicken.com>
17035
17036 * indent.c (Fvertical_motion): Revert last change. Handle the
17037 general case where we are moving forward, and PT spans multiple
17038 screen lines.
17039
17040 * eval.c (find_handler_clause): Temporarily increase
17041 max-lisp-eval-depth while printing the backtrace buffer, to
17042 guarantee that help-mode code can run.
17043
170442008-08-27 Eli Zaretskii <eliz@gnu.org>
17045
17046 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17047 colors under -rv.
17048 (IT_set_frame_parameters): Don't swap foreground and background
17049 colors if `(reverse . t)' is present in the frame properties.
17050 (internal_terminal_init): Call init_frame_faces only for the
17051 initial frame.
17052
170532008-08-27 Andreas Schwab <schwab@suse.de>
17054
17055 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17056
170572008-08-27 Andreas Schwab <schwab@suse.de>
17058
17059 * search.c (search_buffer): Set char_base to zero only at the end.
17060
170612008-08-27 Kenichi Handa <handa@m17n.org>
17062
b8ff72fa 17063 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
17064
170652008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17066
17067 * xterm.c (x_term_init): Temporarily hide the partially
17068 initialized terminal while calling vendor-specific-keysyms.
17069
170702008-08-26 Eli Zaretskii <eliz@gnu.org>
17071
17072 * msdos.c (internal_terminal_init): Most initializations done only
17073 once, especially initial_screen_colors[] and termscript open.
17074
170752008-08-26 Chong Yidong <cyd@stupidchicken.com>
17076
17077 * eval.c (Fcondition_case): Doc fix.
17078
17079 * widgetprv.h (EmacsFramePart): Change font member to the new font
17080 struct.
17081
17082 * widget.c: Include character.h and font.h for XSETFONT.
17083 (setup_frame_gcs): Compute X font id from font struct, just once.
17084
170852008-08-26 Eli Zaretskii <eliz@gnu.org>
17086
17087 * term.c (get_named_tty): Fix last change.
17088
170892008-08-26 Chong Yidong <cyd@stupidchicken.com>
17090
17091 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 17092 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
17093
170942008-08-25 Eli Zaretskii <eliz@gnu.org>
17095
17096 * frame.c (do_switch_frame): Mark previously displayed frame as
17097 obscured for FRAME_MSDOS_P frames as well.
17098
170992008-08-24 Eli Zaretskii <eliz@gnu.org>
17100
17101 * frame.c (make_terminal_frame): Initialize f->terminal,
17102 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17103 Set the top frame to newly created frame.
17104 (Fmake_terminal_frame): Reuse the_only_display_info.
17105
17106 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17107 estimating available memory.
17108
b97439ce 171092008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
17110
17111 * nsterm.m (ns_draw_window_cursor): Don't call
17112 NSDisableScreenUpdates and NSEnableScreenUpdates on
17113 non-NS_IMPL_COCOA systems.
17114
171152008-08-23 Andreas Schwab <schwab@suse.de>
17116
17117 * process.c (procfs_system_process_attributes): Fix use of
17118 uninitialized variables.
17119
171202008-08-23 Eli Zaretskii <eliz@gnu.org>
17121
17122 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17123
17124 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17125 calling tty-set-up-initial-frame-faces.
17126
b8ff72fa
SM
17127 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17128 Allow MSDOS frames along with X frames.
aac0c6e3
MR
17129
17130 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17131 addition to output_termcap.
17132
17133 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17134
17135 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17136 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17137 highlight.
17138
17139 * process.c [!subprocesses]: Define QCname.
17140 (syms_of_process): Intern and staticpro it.
17141
17142 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
17143 Adjust for changes in encoding/decoding routines.
17144 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
17145 encode_coding and decode_coding.
17146
b8ff72fa 17147 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
17148
17149 * dosfns.c: Include frame.h before termhooks.h.
17150 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17151 variable termscript.
17152
17153 * s/msdos.h (USER_FULL_NAME): Define.
17154 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17155
17156 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17157 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17158 pw->pw_gecos.
17159
17160 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17161 SELECTED_FRAME as additional (1st) argument.
17162 (tty_read_avail_input): Handle output_msdos_raw in
17163 addition to output_termcap.
17164
17165 * msdos.c: Include frame.h before termhooks.h.
17166 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17167 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17168 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17169 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17170 (IT_set_terminal_modes, IT_reset_terminal_modes)
17171 (IT_set_frame_parameters): Use tty->termscript instead of a global
17172 variable termscript.
17173 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17174 global variable terminal_coding. Don't refer to
17175 Vnonascii_translation_table.
17176 (internal_terminal_init): Set Vwindow_system in current_kboard.
17177 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17178 Announce date and time of session start, if termscript is open.
17179 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
17180 term.c:init_tty). Open termscript only of not already open.
17181 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
17182 here instead of dos_ttraw. Don't initialize display if this is an
17183 initial tty. Don't set FRAME_FONT.
17184 (Vwindow_system_version): Bump to 23.
17185 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17186 is available, set up mouse_position_hook.
17187 (dos_ttraw, IT_set_terminal_modes): If called with initial
17188 terminal, do nothing.
17189 (IT_set_frame_parameters): Handle the Qtty_type frame
17190 parameter by calling internal_terminal_init.
17191 (dos_set_window_size, show_mouse_face)
17192 (clear_mouse_face, IT_note_mode_line_highlight)
17193 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17194 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17195 (initialize_msdos_display): New function.
17196 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17197 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17198 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17199 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 17200 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
17201 (request_sigio, unrequest_sigio): Don't define, now defined on
17202 sysdep.c.
17203 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17204
17205 * term.c [MSDOS]: Include msdos.h.
17206 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17207 conditional to DOS_NT. Allow only one call to this function in a
17208 session. Don't allocate a new struct tty_display_info; instead,
17209 reuse the_only_display_info. Call get_tty_size to get screen
17210 dimensions. Call init_baud_rate to set bad_rate.
17211 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17212 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 17213 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
17214 (get_tty_terminal, get_named_tty, Ftty_type)
17215 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17216 output_termcap.
b8ff72fa
SM
17217 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17218 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 17219 only when subprocesses are supported.
aac0c6e3
MR
17220
17221 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17222 f->output_data.x.
17223 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17224 terminal devices.
17225
5582fbc7 17226 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
17227 x_output.
17228 (FRAME_FONT): Use output_data.tty.
17229 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
17230 (struct x_display_info): Rename from display_info. Update all users in
17231 msdos.c.
aac0c6e3 17232 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 17233 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
17234 (dos_ttraw): Update prototype.
17235
17236 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17237 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17238
172392008-08-23 Jason Rumney <jasonr@gnu.org>
17240
17241 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17242 (fn_TIFFSetDirectory): New library function used.
17243 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17244 (tiff_load): Use :index to select among multiple images. Set count
17245 property when multiple images exist.
17246 (gif_format): Use :index, not :image.
17247
172482008-08-23 Chong Yidong <cyd@stupidchicken.com>
17249
17250 * xdisp.c (try_scrolling): Check INT_MAX instead of
17251 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17252 to obtain INT_MAX.
17253
172542008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17255
17256 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17257
172582008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17259
17260 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17261 GNUstep library location.
17262
172632008-08-21 Chong Yidong <cyd@stupidchicken.com>
17264
17265 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17266 before using it.
17267
17268 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17269
172702008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17271
17272 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17273 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17274 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17275 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17276 (EmacsApp-cursor_blink_handler): Remove declaration.
17277 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17278 match 01 Feb 2008 changes in xterm.c.
17279 (ns_read_socket): Add cast to avoid warning.
17280 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17281 GNUstep.
17282
172832008-08-20 Chong Yidong <cyd@stupidchicken.com>
17284
17285 * xselect.c (x_get_foreign_selection): Return nil if desired
17286 selection could not be obtained, instead of signalling an error.
17287
172882008-08-20 David Reitter <david.reitter@gmail.com>
17289
17290 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17291 * nsterm.m: Remove ns-specific code for cursor blinking.
17292 (ns_draw_window_cursor): Clear cursor properly rather than
17293 redrawing the area. Respect width of bar cursors.
17294 These changes enable the use of generic blink-cursor-mode and
17295 generic cursor types in NS and support smooth cursor movements (do
17296 not blink off after command).
17297 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17298 Nextstep, too.
17299
173002008-08-19 Kenichi Handa <handa@m17n.org>
17301
17302 * font.c (Vfont_log_deferred): New variable.
17303 (font_add_log): Check Vfont_log_deferred.
17304 (font_deferred_log): New function.
17305
17306 * font.h (font_deferred_log): Extern it.
17307
17308 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17309 for sorting.
17310 (face_for_char): Use deferred log.
17311
173122008-08-18 Kenichi Handa <handa@m17n.org>
17313
17314 * fontset.c (face_for_char): Add font log.
17315
17316 * font.c (font_add_log): Add the font properties :script, :lang,
17317 and :otf in the log.
17318
173192008-08-17 Chong Yidong <cyd@stupidchicken.com>
17320
17321 * xdisp.c: Remove dead code.
17322 (handle_invisible_prop, next_overlay_string): Defer call to
17323 setup_for_ellipsis.
17324 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17325
173262008-08-15 Chong Yidong <cyd@stupidchicken.com>
17327
17328 * xfaces.c (lookup_derived_face): Properly handle possible zero
17329 return value of get_lface_attributes.
17330 (merge_faces): Don't tell lookup_derived_face to signal an error
17331 if face is not found.
17332
17333 * dired.c (Fdirectory_files): Doc fix.
17334
17335 * process.c (make_process): Initialize kill_without_query struct
17336 member.
17337
173382008-08-15 Eli Zaretskii <eliz@gnu.org>
17339
17340 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17341 Alternative calculation of totphys for Visual Studio 6.
17342
17343 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17344
17345 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17346 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17347 All users changed.
17348 (stat): Only root directory passed to GetDriveType. Allow RAM
17349 disk as well as local fixed disk when w32-get-true-file-attributes
17350 is set to `local'.
17351 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17352 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17353 (w32_cached_id, w32_add_to_cache): New functions.
17354 (get_name_and_id): Look account names in the cache before calling
17355 lookup_account_sid.
17356 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17357 New initialization flags.
17358 (globals_of_w32): Initialize them to zero.
17359 (w32_system_process_attributes): Use w32_cached_id and
17360 w32_add_to_cache.
17361
173622008-08-14 Lawrence Mitchell <wence@gmx.li>
17363
17364 * lread.c (Fread_char, Fread_char_exclusive): If no character
17365 event is read before timeout is reached, return nil, rather than
17366 converting to a number.
17367
173682008-08-14 Chong Yidong <cyd@stupidchicken.com>
17369
17370 * fns.c (use_dialog_box): Doc fix.
17371
17372 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17373 on OS X.
17374
173752008-08-13 Chong Yidong <cyd@stupidchicken.com>
17376
17377 * frame.c (Qns_parse_geometry): New var.
17378 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17379
173802008-08-11 Chong Yidong <cyd@stupidchicken.com>
17381
17382 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17383 space character in calculating tabs.
17384
173852008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17386
17387 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17388
173892008-08-10 Glenn Morris <rgm@gnu.org>
17390
17391 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17392 silence gcc "limited range of data type" warnings in some
17393 make_fixnum_or_float calls.
17394
173952008-08-09 Eli Zaretskii <eliz@gnu.org>
17396
17397 * w32.c (w32_system_process_attributes): If the process does not
17398 exist, return nil.
17399
17400 * w32.c: Include thelp32.h, psapi.h and coding.h.
17401 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17402 declarations.
17403 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17404 (Process32Next_Proc): New typedefs.
17405 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17406 (g_b_init_process32_next, g_b_init_open_thread_token)
17407 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17408 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17409 (g_b_init_get_process_working_set_size)
17410 (g_b_init_global_memory_status_ex): New static variables.
17411 (globals_of_w32): Initialize them.
17412 (create_toolhelp32_snapshot, process32_first, process32_next)
17413 (open_thread_token, impersonate_self, revert_to_self)
17414 (get_process_memory_info, get_process_working_set_size)
17415 (global_memory_status, global_memory_status_ex): New wrapper
17416 functions.
17417 (w32_list_system_processes, w32_system_process_attributes)
17418 (enable_privilege, restore_privilege, ltime, process_times):
17419 New functions.
17420 (convert_time_raw): New function.
17421 (convert_time): Remove conversion of FILETIME into time in 100
17422 nsec units, call convert_time_raw instead.
17423
17424 * process.h (w32_list_system_processes, w32_system_process_attributes):
17425 Add prototypes.
17426 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17427 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17428 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17429 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17430
17431 * process.c (Fsystem_process_attributes): Doc fix.
17432
174332008-08-08 Chong Yidong <cyd@stupidchicken.com>
17434
17435 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17436 a continued multi-char glyph; if so, advance to the actual glyph.
17437
174382008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17439
17440 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17441
17442 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17443 (.m.o): Use it.
17444 * config.in: Regenerate.
17445
174462008-08-07 Chong Yidong <cyd@stupidchicken.com>
17447
17448 * xdisp.c (redisplay_window): Revert last change.
17449 (try_window): Check bottom scroll margin too.
17450
174512008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17452
17453 * config.in: Regenerate.
17454
17455 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17456 -list-load-path-shadows'.
17457 (nsgui.h): Reduce number of things depending on it.
17458
174592008-08-06 Chong Yidong <cyd@stupidchicken.com>
17460
17461 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17462 instead of window-end which does the wrong thing at eob.
17463 (try_cursor_movement): Minor optimization.
17464 (redisplay_window): If scroll margin is defined, don't assume
17465 window doesn't need scrolling.
17466
174672008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17468
17469 * config.in: Regenerate.
17470
17471 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17472 (mostlyclean): Don't delete *.d under NS.
17473
17474 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17475
174762008-08-06 Kenichi Handa <handa@m17n.org>
17477
17478 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17479
174802008-08-06 Andreas Schwab <schwab@suse.de>
17481
17482 * config.in: Regenerate.
17483
174842008-08-05 Chong Yidong <cyd@stupidchicken.com>
17485
17486 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17487 forcing a window start.
17488
17489 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17490 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17491
174922008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17493
17494 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17495 argument.
17496
174972008-08-05 Juanma Barranquero <lekktu@gmail.com>
17498
17499 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17500 <scroll-down-aggressively, before-change-functions>:
17501 <after-change-functions>: Reflow docstrings.
17502
175032008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 17504 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
17505
17506 Dock menu customization, based on a patch by Ken Raeburn, plus some
17507 other fixes.
17508 * nsmenu.m (dockMenu): New variable.
17509 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17510
17511 * nsterm.h (dockMenu): Declare.
17512
17513 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17514 (ns_term_init): Initialize dockMenu.
17515 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17516 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17517 left.
17518
17519 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17520
175212008-08-04 Chong Yidong <cyd@stupidchicken.com>
17522
17523 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17524
17525 * config.in: Regenerate.
17526
175272008-08-04 Seiji Zenitani <zenitani@mac.com>
17528
17529 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17530
175312008-08-04 Chong Yidong <cyd@stupidchicken.com>
17532
17533 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17534
175352008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17536
17537 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17538
17539 * keyboard.h: Comment an #endif.
17540
17541 * lisp.h (have_menus_p): Adjust comment.
17542
17543 * menu.c (find_and_return_menu_selection): Fix comparison with
17544 client_data.
17545
17546 * nsmenu.m (popup_activated_flag): New variable.
17547 (popup_activated): New function.
17548 (menu-or-popup-active-p): New exported lisp definition.
17549 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17550 when popup done.
17551 (ns_popup_dialog): Set popup_activated_flag.
17552
17553 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17554 version for GNUstep (handled by conditional typedef in nsterm.m).
17555 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17556 in rgb.txt).
17557
17558 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17559
17560 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17561
17562 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17563
17564 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17565 shortcircuit if popup_activated like GTK and X toolkit.
17566
17567 * m/inter386.h: Change DARWIN to DARWIN_OS.
17568
17569 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17570 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
17571 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17572 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
17573
175742008-08-03 Chong Yidong <cyd@stupidchicken.com>
17575
17576 * nsterm.m (windowDidResize): Remove stopModal call.
17577
175782008-08-03 Andreas Schwab <schwab@suse.de>
17579
17580 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17581 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17582
175832008-08-02 Chong Yidong <cyd@stupidchicken.com>
17584
17585 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17586 Don't use uninitialized pointer variable when using getrlimit.
17587
175882008-08-02 Jason Rumney <jasonr@gnu.org>
17589
17590 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
17591
175922008-08-02 Eli Zaretskii <eliz@gnu.org>
17593
17594 * alloc.c (NSTATICS): Bump to 0x640.
17595
17596 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
17597
17598 * lisp.h: Add prototype for directory_files_internal.
17599
17600 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
17601 New functions.
17602 (syms_of_process): Defsubr them. Add initializations for various
17603 Q* symbols used in procfs_system_process_attributes.
17604 (procfs_list_system_processes, procfs_system_process_attributes)
17605 [HAVE_PROCFS]: New functions.
17606 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
17607 (procfs_get_total_memory): New functions.
17608
176092008-08-01 Juanma Barranquero <lekktu@gmail.com>
17610
17611 * xfaces.c (Fx_load_color_file): Fix previous change;
17612 it is #ifdef WINDOWSNT, not WINDOWS_NT.
17613
176142008-08-01 Michael Albinus <michael.albinus@gmx.de>
17615
17616 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
17617
176182008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17619
17620 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
17621
176222008-08-01 Chong Yidong <cyd@stupidchicken.com>
17623
17624 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
17625
17626 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
17627 define NSApplicationDelegateReplySuccess.
17628 (EmacsView -converstationIdentifier): Use long instead of
17629 NSInteger for GNUstep, since it doesn't have NSInteger.
17630
17631 * xmenu.c: Revert last change.
17632
17633 * keyboard.h: Fix last change.
17634
176352008-08-01 Juanma Barranquero <lekktu@gmail.com>
17636
17637 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
17638 on Windows.
17639
176402008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17641
17642 Warning clearing and clean-up in NS port.
17643 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
17644 Add prototypes.
17645 * nsgui.h (FACE_DEFAULT): Remove, unused.
17646 (XGCValues): Change colors to unsigned long.
17647 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
17648 nsterm.m.
17649 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
17650 (ns_list_fonts): Remove, unused.
17651 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
17652 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
17653 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
17654 (nsfont_draw): Compare face colors to 0, not nil.
17655 * nsmenu.m (struct widget_value): Drop unneeded declaration.
17656 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
17657 (-addSubmenuWithTitle:): Use NSMenuItem class.
17658 (ns_popup_menu): Use NO, not NULL, for enabled setting.
17659 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
17660 (ns_clip_to_row): Make gc arg a BOOL.
17661 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
17662 ns_clip_to_row() call.
17663 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
17664 used). Cast FRAME_FONT assignments.
17665 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
17666 (ns_string_to_lispmod): Change arg to const char.
17667 (ns_term_init): Use NSMenuItem class.
17668 (EmacsApp -openFile:): Move to different section of file.
17669 (EmacsApp -application:openFiles:): Don't return a value, call
17670 -replyToOpenOrPrint:.
17671 (EmacsView -keyDown:): Fix up cast.
17672 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
17673 (EmacsView -menuDown:): Cast tag in call to
17674 find_and_call_menu_selection().
17675 (ns_list_fonts): Remove, unused.
17676 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
17677 (ns_fontname_to_xlfd): Make static.
17678 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
17679 Remove prototypes (now in keyboard.h).
17680 (next_menubar_widget_id): Remove, unused.
17681 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
17682 Remove prototypes (now in keyboard.h).
17683 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
17684
176852008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
17686
17687 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
17688 (floatfns.o): Depend on syssignal.h.
17689 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
17690
17691 * systty.h: Fix previous change that removed BSD_TERMIOS.
17692 Add comments to #ifdefs.
17693
176942008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17695
17696 * w32fns.c (w32-load-color-file): Remove.
17697 (x-open-connection): Use renamed Fx_load_color_file.
17698 * xfaces.c (x-load-color-file): Add.
17699 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
17700 Emacs.clr.
17701 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
17702
177032008-07-31 Michael Albinus <michael.albinus@gmx.de>
17704
17705 * dbusbind.c (Fdbus_call_method_asynchronously)
17706 (Fdbus_method_error_internal): New defuns.
17707 (xd_read_message): Handle also reply messages.
17708 (Vdbus_registered_functions_table): Extend docstring.
17709
177102008-07-31 Juanma Barranquero <lekktu@gmail.com>
17711
17712 * keyboard.c (gobble_input): Fix previous change.
17713
177142008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17715
17716 * bitmaps/README:
17717 * xfns.c:
17718 * termcap.c:
17719 * term.c:
17720 * syswait.h:
17721 * systty.h:
17722 * systime.h:
17723 * syssignal.h:
17724 * sysdep.c:
17725 * process.h:
17726 * process.c:
17727 * print.c:
17728 * ndir.h:
17729 * lread.c:
17730 * keyboard.c:
17731 * getpagesize.h:
17732 * floatfns.c:
17733 * fileio.c:
17734 * emacs.c:
17735 * doc.c:
17736 * dispnew.c:
17737 * dired.c:
17738 * data.c:
17739 * callproc.c:
17740 * buffer.c:
17741 * README:
17742 * Makefile.in:
17743 * s/template.h:
17744 * s/msdos.h:
17745 * m/vax.h: Remove VMS support.
17746 * s/vms.h:
17747 * vlimit.h:
17748 * uaf.h:
17749 * temacs.opt:
17750 * param.h:
17751 * ioctl.h: Remove file.
17752
177532008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17754
17755 * s/ms-w32.h (MULTI_KBOARD): Remove.
17756 * xterm.c:
17757 * xselect.c:
17758 * xfns.c:
17759 * window.c:
17760 * w32term.c:
17761 * w32fns.c:
17762 * terminal.c:
17763 * termhooks.h:
17764 * term.c:
17765 * sysdep.c:
17766 * keyboard.h:
17767 * keyboard.c:
17768 * frame.h:
17769 * frame.c:
17770 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
17771 * config.in: Regenerate.
17772
177732008-07-30 Jason Rumney <jasonr@gnu.org>
17774
17775 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
17776
17777 * w32font.c (w32font_encode_char): Leave as unicode if in range.
17778 (w32font_open_internal): Get unicode version of textmetrics.
17779 Don't enable or disable glyph indices here.
17780 (w32font_open): Disable use of glyph indices.
17781
17782 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
17783
177842008-07-30 Chong Yidong <cyd@stupidchicken.com>
17785
17786 * minibuf.c (Vread_buffer_function): Doc fix.
17787
177882008-07-30 John Paul Wallington <jpw@pobox.com>
17789
17790 * minibuf.c (read_buffer_completion_ignore_case): New var.
17791 (Fread_buffer): Use it.
17792
177932008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17794
17795 * systty.h (sensemode): Remove empty #if. Remove reference to
17796 BSD_TERMIOS, unused.
17797
17798 * sysdep.c: Remove reference to DGUX.
17799 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17800
17801 * config.in: Regenerate.
17802
178032008-07-30 Jason Rumney <jasonr@gnu.org>
17804
17805 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17806
178072008-07-29 Jason Rumney <jasonr@gnu.org>
17808
17809 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17810 is populated.
17811 (uniscribe_encode_char): Always use uniscribe.
17812 Avoid using context if cache is populated.
17813
178142008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17815
17816 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17817 open menu.
17818
17819 * gtkutil.c (menu_nav_ended): Remove.
17820 (create_menus): Remove signal connect for menu_nav_ended.
17821
178222008-07-28 Chong Yidong <cyd@stupidchicken.com>
17823
17824 * xdisp.c (redisplay_window): Check return value of
17825 compute_window_start_on_continuation_line before forcing a window
17826 start.
17827
178282008-07-28 Jason Rumney <jasonr@gnu.org>
17829
17830 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
17831
17832 * w32term.c (w32_enable_unicode_output, cleartype_active):
17833 Remove obsolete display options.
17834 (x_draw_glyph_string_background): Don't use old cleartype_active
17835 workaround.
17836 (w32_initialize): Remove cleartype_active initialization.
17837 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
17838
178392008-07-28 Andreas Schwab <schwab@suse.de>
17840
17841 * lisp.h (init_weak_hash_tables, syms_of_font)
17842 (xd_read_queued_messages, syms_of_dbusbind): Declare.
17843 (remove_hash_entry): Don't declare.
17844 * eval.c (maybe_call_debugger): Make static and move before use.
17845 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
17846 * xdisp.c: Include "gtkutil.h" if USE_GTK.
17847 * xterm.h (x_set_frame_alpha): Declare.
17848
178492008-07-28 Jan Djärv <jan.h.d@swipnet.se>
17850
17851 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
17852 (create_menus): Connect selection-done to menu_nav_ended.
17853
178542008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17855
17856 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
17857 Set Vx_resource_name to a fallback. Replace read of 'buffered'
17858 parameter with read of 'alpha' one.
17859 (Qns_frame_parameter): Remove.
5582fbc7 17860 * nsselect.m (selection-coding-system)
aac0c6e3
MR
17861 (next-selection-coding-system, Vselection_coding_system)
17862 (Vnext_selection_coding_system): Drop.
17863
178642008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17865
17866 * nsfns.m (do-applescript, do_applescript): Rename to
17867 ns-do-applescript, ns_do_applescript, and move within file.
17868
178692008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
17870
17871 Remove support for Mac Carbon.
17872 * mactoolbox.c:
17873 * macterm.h:
17874 * macterm.c:
17875 * macselect.c:
17876 * macmenu.c:
17877 * macgui.h:
17878 * macfns.c:
17879 * mac.c: Remove file.
17880 * s/darwin.h:
17881 * m/intel386.h:
17882 * xfaces.c:
17883 * xdisp.c:
17884 * window.c:
17885 * tparam.c:
17886 * termhooks.h:
17887 * termcap.c:
17888 * term.c:
17889 * syssignal.h:
17890 * sysselect.h:
17891 * sysdep.c:
17892 * process.c:
17893 * lread.c:
17894 * lisp.h:
17895 * keyboard.c:
17896 * image.c:
17897 * fringe.c:
17898 * frame.h:
17899 * frame.c:
17900 * fontset.c:
17901 * font.h:
17902 * font.c:
17903 * fns.c:
17904 * fileio.c:
17905 * emacs.c:
17906 * dispnew.c:
17907 * dispextern.h:
17908 * config.in:
17909 * atimer.c:
2ae37cf0 17910 * Makefile.in: Remove code for Carbon.
aac0c6e3 17911
f0131492 179122008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
17913
17914 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
17915
179162008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17917
17918 * macterm.h (kCGBitmapByteOrder32Host): New define for
17919 non-universal SDKs.
17920
17921 * image.c (mac_create_cg_image_from_image, image_load_image_io)
17922 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17923
17924 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17925 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17926
179272008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17928
17929 * w32inevt.c: Include dispextern.h.
17930
179312008-07-26 Andreas Schwab <schwab@suse.de>
17932
17933 * print.c (print_object): Fix off-by-one in last change.
17934
179352008-07-25 Juanma Barranquero <lekktu@gmail.com>
17936
17937 * term.c (syms_of_term): Don't initialize default_orig_pair,
17938 default_set_foreground and default_set_background on Windows.
17939
179402008-07-25 Jason Rumney <jasonr@gnu.org>
17941
17942 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17943 ScriptItemize. Clean up return value checking. Remove unused
17944 variables.
17945 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17946 shaping engine.
17947
17948 * w32font.c (w32font_has_char): Handle the case where we can't
17949 determine the script for a character.
17950
179512008-07-25 Chong Yidong <cyd@stupidchicken.com>
17952
17953 * term.c (syms_of_term): Initialize default_orig_pair,
17954 default_set_foreground, and default_set_background.
17955
17956 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17957 clash (bug#86).
17958 (getloadavg): Callers changed.
17959
17960 * image.c (svg_load_image): Fix last change.
17961 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17962 image size is valid. Use g_object_unref instead of deprecated
17963 rsvg_handle_free to free rsvg handle.
17964 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17965
179662008-07-25 Jason Rumney <jasonr@gnu.org>
17967
17968 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17969 surrogates before looking up glyph index.
17970 (w32font_text_extents): Encode as surrogates if falling back to
17971 functions that need UTF-16 wide chars.
17972
17973 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17974 BMP as surrogates before looking up glyph index.
17975
179762008-07-25 Chong Yidong <cyd@stupidchicken.com>
17977
17978 * image.c (svg_load_image): Check for failure in return value of
17979 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17980
179812008-07-25 Jason Rumney <jasonr@gnu.org>
17982
17983 * w32font.c (Fx_select_font): Reverse sense of second arg.
17984
179852008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17988 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17989
17990 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17991 (PURESIZE): Use it.
17992
179932008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17994
17995 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17996 * m/alpha.h (TEXT_END):
17997 * m/ibmrs6000.h (TEXT_END):
17998 * m/macppc.h (TEXT_END):
17999 * s/darwin.h (TEXT_END):
18000 * s/msdos.h (TEXT_END): Remove, unused.
18001 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18002 * s/cygwin.h: Remove comment.
18003
18004 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18005 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18006 * m/intel386.h (DOT_GLOBAL_START):
18007 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18008 (USG): Remove, file not used on USG platforms.
18009
18010 * Makefile.in (HAVE_X11): Remove empty #else.
18011
180122008-07-24 Andreas Schwab <schwab@suse.de>
18013
18014 * fileio.c (Finsert_file_contents): Properly adjust undo list
18015 after format conversion.
18016
180172008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18018
18019 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18020 (menu_nav_ended): Remove.
18021 (create_menus): Remove signal connect for menu_nav_ended.
18022 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18023 create_menus.
18024 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18025
180262008-07-23 Jason Rumney <jasonr@gnu.org>
18027
18028 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18029 with opened font.
18030 (w32font_open): Set font type to gdi.
18031
18032 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18033
180342008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18035
18036 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18037 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18038 defines it.
18039 * unexec.c (ADDR_CORRECT): Define unconditionally.
18040
18041 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18042
18043 * unexec.c: Remove code depending on !COFF and USG, the file is
18044 not used for such systems.
18045
18046 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18047 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18048 (LD_SWITCH_SYSTEM_1): Remove, update users.
18049
18050 * s/darwin.h (DATA_END):
18051 * m/intel386.h (DATA_END):
18052 * m/ibmrs6000.h (DATA_END):
18053 * m/alpha.h (DATA_END): Remove, unused.
18054
18055 * config.in: Regenerate.
18056 * s/ms-w32.h (subprocesses): Define unconditionally.
18057 * s/template.h (subprocesses): Update comment.
18058 * s/vms.h (subprocesses):
18059 * s/usg5-4.h (subprocesses):
18060 * s/hpux10-20.h (subprocesses):
18061 * s/gnu-linux.h (subprocesses):
18062 * s/cygwin.h (subprocesses):
18063 * s/bsd-common.h (subprocesses):
18064 * s/aix4-2.h (subprocesses):
18065 * s/darwin.h (subprocesses): Do not define, defined by default now.
18066
18067 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18068 Remove all references.
18069 (temacs): Add GNUstep specific ld flags.
18070
18071 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18072 similarly to what X does.
18073
180742008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18075
18076 * nsfns.m (x-list-fonts): Remove.
18077 (syms_of_nsfns): Drop the x-list-fonts declaration.
18078 * nsterm.m: Get rid of remaining "//" comments.
18079
180802008-07-22 Chong Yidong <cyd@stupidchicken.com>
18081
18082 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18083
18084 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18085 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18086 (Fns_own_selection_internal, Fx_disown_selection_internal)
18087 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18088
18089 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18090 ... */' style of docstrings. Doc fixes.
18091
180922008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18093
18094 * terminfo.c (UP, BC, PC): Undo previous change.
18095
18096 * nsfns.m: Rename ns prefixed functions/variables to the
18097 corresponding x versions. Update references.
18098
180992008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18100
18101 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18102
181032008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18104
18105 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18106 Remove forwarding functions.
18107 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18108 non-static.
18109 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18110 non-static.
18111 (ns_frame_parm_handlers): Use the new names.
18112 (syms_of_nsfns): Move to the end of file.
18113
18114 * nsterm.m (syms_of_nsterm): Move to the end of file.
18115
18116 * dispnew.c (init_display): Remove code for X10.
18117
181182008-07-22 Jason Rumney <jasonr@gnu.org>
18119
18120 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18121 bare drive.
18122
181232008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18124
18125 * nsterm.m (syms_of_nsterm): Remove debugging println.
18126
181272008-07-22 David Reitter <david.reitter@gmail.com>
18128
18129 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18130 Carbon implementation of the same functionality: execute arbitrary
18131 AppleScript code.
18132
181332008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18134
18135 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18136 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18137 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18138 (Fx_display_mm_height, Fx_display_mm_width)
18139 (Fx_display_backing_store, Fx_display_visual_class)
18140 (Fx_display_save_under, Fx_open_connection)
18141 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18142 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18143 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18144 (Fx_display_pixel_width, Fx_display_pixel_height)
18145 (Fx_display_usable_bounds, Fx_display_planes)
18146 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18147 ... */' style of docstrings.
18148
181492008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18150
18151 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18152 on this platform.
18153 (mips):
18154 * m/iris4d.h (mips): Do not define.
18155 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18156
18157 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18158
18159 * image.c:
18160 * nsfns.m:
18161 * nsselect.m:
18162 * nsterm.h:
18163 * nsterm.m: Rename ns prefixed functions/variables to the
18164 corresponding x versions. Update references.
18165
18166 * m/ibms390x.h (NO_REMAP): Do not undefine.
18167
18168 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18169
181702008-07-21 Chong Yidong <cyd@stupidchicken.com>
18171
18172 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18173 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18174 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18175 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18176 (Fns_display_mm_height, Fns_display_mm_width)
18177 (Fns_display_backing_store, Fns_display_visual_class)
18178 (Fns_display_save_under, Fns_open_connection)
18179 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18180 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18181 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18182 (Fns_display_pixel_width, Fns_display_pixel_height)
18183 (Fns_display_usable_bounds, Fx_display_planes)
18184 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18185
181862008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18187
18188 * print.c (print_object): Check print_depth before searching for
18189 circularities.
18190
181912008-07-21 Michael Albinus <michael.albinus@gmx.de>
18192
18193 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18194 only sprintf.
18195
181962008-07-21 Kenichi Handa <handa@m17n.org>
18197
18198 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18199
182002008-07-20 Andreas Schwab <schwab@suse.de>
18201
18202 * syntax.c (find_start_pos, find_start_value)
18203 (find_start_value_byte, find_start_begv, find_defun_start)
18204 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18205
182062008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18207
18208 * s/sol2-3.h: Insert contents of s/sol2.h.
18209 (LD_SWITCH_SYSTEM): Remove redundant definition.
18210 * s/sol2.h: Remove, unused.
18211
182122008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18213
18214 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18215
182162008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18217
18218 * Makefile.in (ns_appdir): Fix typo in find command.
18219
182202008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18221
18222 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18223
18224 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18225 added not supported anymore.
18226
18227 * s/usg5-4-2.h (LIBS_SYSTEM):
18228 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18229
18230 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18231 * s/lynxos.h (GETPGRP_NO_ARG):
18232 * s/hpux10-20.h (NO_SIOCTL_H):
18233 * s/gnu.h (GETPGRP_NO_ARG):
18234 * s/gnu-linux.h (NO_SIOCTL_H):
18235 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18236 * s/cygwin.h (GETPGRP_NO_ARG):
18237 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18238 (C_DEBUG_SWITCH): Remove duplicate definition.
18239
18240 * m/ibms390.h: Remove boilerplate comments.
18241
18242 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18243
18244 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18245 (wait_reading_process_output): Remove code for SunOS, platform not
18246 supported anymore. Use SOLARIS2 instead of sun.
18247
182482008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18249
18250 * font.c (font_open_by_name): Under NS, default lface height to zero.
18251 (font_open_for_lface): Under NS, set size based on frame fontsize.
18252 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18253 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18254
182552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18256
18257 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18258 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18259 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18260 YES/NO.
18261 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18262 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18263 * Makefile.in (clean): Clear out build destination dir.
18264
182652008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18266
18267 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18268 xterm, xselect.
18269 * lisp.h: Remove declaration of hash_remove.
18270 * nsgui.h: Remove redefinitions of hash_remove.
18271 * fns.c (hash_remove): Rename to hash_remove_from_table.
18272
182732008-07-19 Seiji Zenitani <zenitani@mac.com>
18274
18275 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18276 strdup() the family UTF8String before modifying it.
18277
182782008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18279
18280 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18281 NS_FACE_BACKGROUND with 0 instead of nil.
18282 * nsfont.m (nsfont_draw): Same.
18283
182842008-07-19 Chong Yidong <cyd@stupidchicken.com>
18285
18286 * nsfns.m (ns_set_background_color): Fix crash.
18287
182882008-07-18 Chong Yidong <cyd@stupidchicken.com>
18289
18290 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18291
182922008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18293
18294 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18295
182962008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18297
18298 * gtkutil.c: Include <config.h> instead of "config.h".
18299
18300 * lisp.h (Foverlay_buffer): Add EXFUN.
18301
18302 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18303 child process to complete child_setup. Undo 2005-09-21 change.
18304
18305 * s/darwin.h: Mention setsid after vfork.
18306
183072008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18308
18309 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18310 Depend on macgui.h.
18311
18312 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18313 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18314
18315 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18316 and f19.
18317 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18318
18319 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18320 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18321 Remove enumerators.
18322
18323 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18324 Check if FACE_FROM_ID returns NULL.
18325
183262008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18327
18328 * w32inevt.c (change_frame_size): Remove extern declaration.
18329 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18330 change_frame_size.
18331
183322008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18333
18334 * getloadavg.c: Revert last change (2008-07-15).
18335
183362008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18337
18338 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 18339 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
18340 from configure.
18341
183422008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18343
18344 * s/sol2.h:
18345 * s/sol2-4.h: Reorganize conditionals.
18346
18347 * ecrt0.c: Remove code depending on m68000, not used anymore.
18348
18349 * fns.c (hash_remove): Make static.
18350 * lisp.h (hash_remove): Don't prototype.
18351
18352 * m/ibmrs6000.h:
18353 * m/ibms390x.h:
18354 * m/macppc.h: Remove boilerplate comments.
18355
18356 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18357 Solaris, which does not need them.
18358
18359 * m/vax.h: Remove comments about unsupported systems.
18360
18361 * s/darwin.h: Reorganize ifdefs.
18362
183632008-07-17 Andreas Schwab <schwab@suse.de>
18364
18365 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18366
183672008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18368
18369 Use SDATA. Follow coding convention of placing operators at
18370 beginning of next line rather than end of previous line, and placing
18371 spaces around infix operators.
18372
18373 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18374 in case it was defined already.
18375 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18376 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18377 ns_default.
18378 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18379 Lisp_Objects.
18380 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18381 (ns_defined_color, ns_color_to_lisp): Declare.
18382 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18383 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18384 it's accepted even with USE_LISP_UNION_TYPE.
18385 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18386 (update_frame_tool_bar): Remove apparently obsolete tests for
18387 non-integerness of f->tool_bar_lines.
18388 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18389 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18390 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18391 (nsfont_open): Don't confuse NULL for Qnil.
18392 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18393 * menu.h (find_and_call_menu_selection):
18394 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18395 (find_and_return_menu_selection): Always return something.
18396 * frame.h: Include dispextern.h for Display_Info.
18397 (display_x_get_resource): Declare.
18398
183992008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18400
18401 * syntax.c: Remove stdio.h include accidentally introduced in
18402 Emacs.app commit.
18403 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18404 NS_IMPL_COCOA.
18405 * keyboard.c (handle_async_input, input_available_signal): Remove
18406 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18407
184082008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18409
18410 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18411 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18412 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18413 Use SDATA.
18414
18415 * keymap.c: Remove all NS-specific code.
18416 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18417 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18418 where_is_preferred_modifier, return a different value depending on how
18419 preferred is the binding.
18420 (where_is_internal): Adjust accordingly.
18421 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18422 Adjust to new preferred_sequence_p.
18423 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18424 * keyboard.c (parse_solitary_modifier): Not static any more.
18425 * keyboard.h (parse_solitary_modifier): Declare.
18426
184272008-07-16 Andreas Schwab <schwab@suse.de>
18428
18429 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18430 of easymenu.
18431
184322008-07-16 Chong Yidong <cyd@stupidchicken.com>
18433
18434 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18435 that we don't move off the line.
18436
184372008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18438
18439 * keyboard.c (Qsuper): Remove.
18440 (parse_menu_item): Don't call where_is_internal specially for NS.
18441
184422008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18443
18444 * s/gnu-linux.h: Remove boilerplate comments.
18445
18446 * m/alpha.h (__ELF__): Consolidate conditions.
18447
18448 * m/m68k.h (linux): Use GNU_LINUX instead.
18449 Remove boilerplate comments.
18450
18451 * m/intel386.h: Undo refactoring from previous change.
18452 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18453 too, remove dead code.
18454 (linux): Use GNU_LINUX instead.
18455
184562008-07-16 Jason Rumney <jasonr@gnu.org>
18457
18458 * w32gui.h: Repeat 26 June changes lost by last change.
18459
184602008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18461
18462 * systty.h: Remove code for Aix on 386, unsupported platform.
18463
18464 * s/ms-w32.h: Remove boilerplate comments.
18465 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18466
18467 * s/gnu-linux.h (TERM): Remove support.
18468 (HAVE_SYSVIPC): Remove, unused.
18469 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18470 for this system.
18471
18472 * process.c: Remove support for IRIS, unused.
18473 Remove support for TERM, not relevant anymore.
18474
18475 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18476 used with the definition.
18477
18478 * s/aix4-2.h (static): Do not undef.
18479
18480 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18481 only used on Aix.
18482 (HAVE_SYSVIPC): Remove, unused.
18483
18484 * m/hp800.h (CANNOT_DUMP): Do not undef.
18485
18486 * m/alpha.h: Fix comment.
18487
18488 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18489 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18490 used by this configuration.
18491 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18492 * unexec.c: Remove code depending on HPUX and
18493 USG_SHARED_LIBRARIES, not used with this file. Remove code
18494 depending on IRIS, unused. Remove if 0-ed code.
18495
18496 * s/template.h: Remove comments about static.
18497
18498 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18499 Remove if 0-ed code.
18500 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18501 were the same as the default.
18502 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18503 Remove boilerplate comments.
18504 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18505 (HAVE_SYSVIPC): Remove, unused.
18506 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18507
18508 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18509 Remove boilerplate comments.
18510 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18511 Remove boilerplate comments.
18512 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18513 Remove boilerplate comments.
18514 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18515
18516 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18517 USG systems which do not use DATA_SEG_BITS.
18518 Refactor code. Remove boilerplate comments.
18519
18520 * m/ibms390.h:
18521 * m/m68k.h:
18522 * s/bsd-common.h:
18523 * s/cygwin.h:
18524 * s/darwin.h:
18525 * s/freebsd.h:
18526 * s/gnu.h:
18527 * s/msdos.h: Remove boilerplate comments.
18528
18529 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 18530 do not use this file.
aac0c6e3
MR
18531 (IRIS_4D): Remove, unused.
18532
18533 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 18534 do not use this file.
aac0c6e3
MR
18535 (SIGN_EXTEND_CHAR):
18536 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18537 * unexmips.c: Remove file, unused.
18538
18539 * editfns.c (Fuser_full_name): Replace the only use of
18540 USER_FULL_NAME with its value.
18541 * config.in: Regenerate.
18542
185432008-07-16 David Reitter <david.reitter@gmail.com>
18544
18545 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18546 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18547
185482008-07-16 Glenn Morris <rgm@gnu.org>
18549
18550 * emacs.c (system-type): Doc fix.
18551
185522008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18553
18554 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18555 If the cache doesn't work, let's fix it, rather than work around it.
18556
185572008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18558
18559 * Makefile.in: Correct additions for nsfont.o in last commit.
18560 * nsfont.m: New file (forgot last commit).
18561
185622008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18563
bba3e508
SM
18564 * callproc.c (set_initial_environment):
18565 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
18566 batch-compiling for bootstrap).
18567
185682008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 18569 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 18570
c4cc8b9a
JB
18571 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18572 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
18573
185742008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18575
18576 Changes and additions for NeXTstep windowing system (Cocoa and
18577 GNUstep) support.
18578
18579 * Makefile.in:
18580 * config.in: Support defines and build commands for NS port.
18581 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18582 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18583 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18584 windowing.
18585 (struct face): Add synth_ital field.
18586 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18587 (init_display): Initialize Vinitial_window_system to "ns" when so
18588 compiled.
18589 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18590 (display_arg): Use under NS.
18591 (main): Under NS, allocate autorelease pool and handle command line
18592 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
18593 (standard_args): Add NS-specific args.
18594 (shut_down_emacs): Shut down NS terminal if compiled under NS.
18595 * font.c (DEFAULT_ENCODING): New variable.
18596 (font_find_for_lface): Use it.
18597 (syms_of_font): Load syms_of_nsfont under NS.
18598 * font.h: Declare nsfont_driver when compiled under NS.
18599 * fontset.c: When compiling under NS, include nsterm.h.
18600 (fontset_from_font): Autoconstruct fontset under NS.
18601 * frame.c (various): Under NS, include nsterm.h, add Qns window system
18602 symbol, document and use it.
18603 (do_switch_frame): When for_deletion under Cocoa, add
18604 Fraise_frame(Qnil).
18605 (x_set_frame_parameters): Ensure font attribute changes are picked up.
18606 (x_get_arg): Allow "yes" and "no" as boolean values.
18607 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
18608 Qright under Cocoa.
18609 (focus-follows-mouse): Default to 0 under NS.
18610 * frame.h (enum output_method): Add output_ns.
18611 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
18612 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
18613 (FRAME_WINDOW_P): NS-specific definition.
18614 * fringe.c (max_used_fringe_bitmap): Make public.
18615 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
18616 (getloadavg): Use NeXT code under descendant OS's.
18617 * image.c (includes and header section, x_create_bitmap_from_data)
18618 (x_create_bitmap_from_file, free_bitmap_record, image_background)
18619 (image_background_transparent, x_clear_image_1)
18620 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
18621 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
18622 (x_to_xcolors, x_from_xcolors, x_disable_image)
18623 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
18624 other GUIs, including XPM support using code originally written for
18625 Carbon GUI.
18626 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
18627 using NS API.
18628 (image_ascent): Use font metrics macros instead of direct struct field
18629 access.
18630 * keyboard.c (includes): Add nsterm.h when compiling under NS.
18631 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
18632 Also, handle NS as GTK for menu bar purposes.
18633 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
18634 toolkit where they differ.
18635 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
18636 use cachelist, still needed under NS.
18637 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
18638 (struct widget_value): Define it here for menu.c.
18639 * keymap.c (includes): Include modifier internals.
18640 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
18641 NS.
18642 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
18643 support for preferring sequences using certain modifiers, specified by
18644 the FIRSTONLY argument.
18645 * lisp.h (hash_remove): Rename to avoid name clash when compiling
18646 under NS GNUstep implementation.
18647 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
18648 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
18649 * menu.c: Include nsterm.h under NS.
18650 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
18651 (free_menubar_widget_tree_value, update_submenu_strings)
18652 (find_and_call_menu_selection): Treat NS as X and NT.
18653 (find_and_return_menu_selection): New function, used for popup menus.
18654 * nsgui.h:
18655 * nsterm.h:
18656 * nsfns.m:
18657 * nsimage.m:
18658 * nsmenu.m:
18659 * nsselect.m:
18660 * nsterm.m: New files.
18661 * process.c (wait_reading_process_output): Under NS, call ns_select()
18662 instead of plain select().
18663 * syntax.c (char_quoted): Under NS, avoid a crash when called near
18664 beginning of buffer.
18665 * sysselect.h (init_process): Rename when compiling under Cocoa to
18666 avoid name conflict.
18667 * termhooks.h (display_info): Add ns_display_info to union.
18668 * terminal.c (Fterminal_live_p): Add ns to terminal types.
18669 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
18670 COCOA environment.
18671 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
18672 unexec() signature. (Note, this will dump, but the resulting file
18673 crashes; unexosx is used instead; keeping around for reference and
18674 possible aid in getting dump working under GNUstep.)
18675 * w32gui.h (button_type, widget_value): Remove definitions (now in
18676 keyboard.h).
18677 * window.c: Include nsterm.h when compiling under NS.
18678 * xdisp.c (includes): Include nsterm.h when compiling under NS.
18679 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
18680 other GUI windowing systems.
18681 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
18682 GTK.
18683 (x_consider_frame_title): Under NS, set icon type and frame
18684 modified-state indicator; use ns_set_name_as_filename() when using
18685 formatted title.
18686 (update_window_cursor): Make public when compiling under NS.
18687 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
18688 (hourglass_atimer, Vhourglass_delay
18689 * xfaces.c (header section, init_frame_faces, clear_font_table)
18690 (defined_color, unload_color, x_face_list_fonts)
18691 (prepare_face_for_display): Add NS support parallel to other GUIs.
18692 Emulate GCs like other non-X GUIs.
18693 (split_font_name): Don't lowercase font name under NS.
18694 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
18695 under NS.
18696 * s/darwin.h: Add support for compilation under NS.
18697
186982008-07-15 Jason Rumney <jasonr@gnu.org>
18699
18700 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
18701 (w32_show_hourglass): Rename from show_hourglass.
18702 (w32_hide_hourglass): Rename from hide_hourglass.
18703 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
18704 (Vhourglass_delay): Declare extern.
18705 (hourglass_started): Remove.
18706
18707 * xdisp.c (Vhourglass_delay): Remove static.
18708 (hourglass_started, start_hourglass, cancel_hourglass):
18709 Don't include these versions on WINDOWSNT.
18710
187112008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18712
18713 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
18714 variables (formerly in xfns.c).
18715 (show_hourglass, hide_hourglass): New prototypes (same).
18716 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
18717 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
18718 in xfns.c).
18719 (syms_of_xdisp): Declare/initialize display-hourglass,
18720 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
18721 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
18722 formerly in xfns.c.
18723 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18724 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18725 (start_hourglass, cancel_hourglass): Remove.
18726 (show_hourglass, hide_hourglass): Remove prototypes and static
18727 modifiers.
18728 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
18729 hourglass_atimer, hourglass_shown_p declaration/initialization.
18730 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18731 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18732 (start_hourglass, cancel_hourglass): Remove.
18733 (show_hourglass, hide_hourglass): Remove prototypes and static
18734 modifiers.
18735 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
18736 hourglass_atimer, hourglass_shown_p declaration/initialization.
18737 * w32fns.c (display_hourglass_p, Vhourglass_delay)
18738 (DEFAULT_HOURGLASS_DELAY): Remove.
18739 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
18740 hourglass_shown_p declaration/initialization.
18741
187422008-07-14 Jason Rumney <jasonr@gnu.org>
18743
18744 * w32fns.c (w32_get_arg): Remove wrapper function.
18745 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
18746 directly.
18747 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
18748
187492008-07-14 Kenichi Handa <handa@m17n.org>
18750
18751 * xfont.c (xfont_open): Add workaround for X's bug.
18752
187532008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18754
18755 * fontset.c: Include <stdio.h> unconditionally.
18756
187572008-07-13 Michael Albinus <michael.albinus@gmx.de>
18758
18759 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
18760 for filtering.
18761
187622008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
18763
18764 * s/vms.h: Use __GNUC__ instead of _GNUC_.
18765
18766 * m/macppc.h:
18767 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
18768
c4cc8b9a 18769 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
18770 (SPECIAL_EMACS_INT):
18771 * m/ia64.h (SPECIAL_EMACS_INT):
18772 * m/amdx86-64.h (SPECIAL_EMACS_INT):
18773 * s/gnu.h (NLIST_STRUCT):
18774 * s/aix4-2.h (X11R5_INHIBIT_I18N):
18775 * s/gnu-linux.h (LINUX):
18776 * s/msdos.h (HAVE_FACES):
18777 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
18778
18779 * systty.h:
18780 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
18781 anymore.
18782
187832008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
18784
18785 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
18786 always defined as int.
18787
18788 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
18789 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
18790 * s/gnu-linux.h (HAVE_WAIT_HEADER):
18791 * s/freebsd.h (HAVE_WAIT_HEADER):
18792 * s/bsd-common.h (HAVE_UNION_WAIT):
18793 * s/aix4-2.h (HAVE_WAIT_HEADER):
18794 * m/mips.h (HAVE_UNION_WAIT):
18795 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18796 (COFF, static): Do not define, they are undefined later in the file.
18797
18798 * process.c (update_status): Don't use a union.
18799 (status_convert):
18800 (sigchld_handler): Use int instead of WAITTYPE.
18801
188022008-07-12 Chong Yidong <cyd@stupidchicken.com>
18803
18804 * indent.c (Fvertical_motion): Restore hscroll before moving to
18805 goal column.
18806
188072008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18808
18809 * lisp.h: Remove left over code.
18810
188112008-07-11 Andreas Schwab <schwab@suse.de>
18812
18813 * lisp.h: Fix logic in last change.
18814
18815 * menu.h: New file.
18816 * menu.c: Include it.
18817 * xmenu.c: Likewise.
18818 * Makefile.in: Update dependencies.
18819
188202008-07-11 Kenichi Handa <handa@m17n.org>
18821
18822 * fontset.c (fontset_from_font): Cancel the previous change.
18823
188242008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18825
18826 * lisp.h:
18827 * w32heap.c:
18828 * emacs.c:
18829 * alloc.c: Replace all references of NO_UNION_TYPE with
18830 USE_LISP_UNION_TYPE.
18831
18832 * m/xtensa.h (NO_UNION_TYPE):
18833 * m/vax.h (NO_UNION_TYPE):
18834 * m/template.h (NO_UNION_TYPE):
18835 * m/sparc.h (NO_UNION_TYPE):
18836 * m/mips.h (NO_UNION_TYPE):
18837 * m/macppc.h (NO_UNION_TYPE):
18838 * m/m68k.h (NO_UNION_TYPE):
18839 * m/iris4d.h (NO_UNION_TYPE):
18840 * m/intel386.h (NO_UNION_TYPE):
18841 * m/ibms390x.h (NO_UNION_TYPE):
18842 * m/ibms390.h (NO_UNION_TYPE):
18843 * m/ibmrs6000.h (NO_UNION_TYPE):
18844 * m/ia64.h (NO_UNION_TYPE):
18845 * m/hp800.h (NO_UNION_TYPE):
18846 * m/arm.h (NO_UNION_TYPE):
18847 * m/amdx86-64.h (NO_UNION_TYPE):
18848 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
18849 defining it the same.
18850
188512008-07-10 Chong Yidong <cyd@stupidchicken.com>
18852
18853 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
18854
188552008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18856
18857 * fileio.c:
50426a04 18858 * sysdep.c:
aac0c6e3
MR
18859 * systty.h:
18860 * m/ibmrs6000.h:
18861 * m/iris4d.h:
18862 * s/aix4-2.h:
18863 * s/freebsd.h:
18864 * s/gnu-linux.h:
18865 * s/hpux10-20.h:
18866 * s/hpux11.h:
18867 * s/netbsd.h:
18868 * s/sol2-3.h:
18869 * s/sol2-4.h:
18870 * s/sol2.h:
18871 * s/usg5-4.h:
18872 * s/vms.h: Remove references to unused variables.
18873
188742008-07-10 Andreas Schwab <schwab@suse.de>
18875
18876 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
18877 pattern before matching the generic family.
18878
188792008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18880
18881 * unexec.c:
18882 * s/vms.h:
18883 * s/usg5-4-2.h:
18884 * s/sol2-5.h:
18885 * s/freebsd.h:
18886 * s/darwin.h: Remove dead code.
18887
18888 * m/template.h:
18889 * m/sparc.h:
18890 * m/mips.h:
18891 * m/m68k.h:
18892 * m/iris4d.h:
18893 * m/intel386.h:
18894 * m/ibms390x.h:
18895 * m/ibms390.h:
18896 * m/ia64.h:
18897 * m/hp800.h:
18898 * m/arm.h:
18899 * m/amdx86-64.h: Remove dead code and references to unused
18900 and compiler defined symbols.
18901
18902 * unexmips.c:
18903 * unexelf.c: Remove references to desupported systems.
18904
18905 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
18906
18907 * m/powermac.h: Remove boilerplate comments.
18908 (NO_REMAP): Remove unused definition.
18909
18910 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
18911 define them.
18912
189132008-07-10 Kenichi Handa <handa@m17n.org>
18914
18915 * xfont.c (xfont_open): Log the reason of failure.
18916
189172008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
18918
18919 * fontset.c (fontset_get_font_group):
18920 * font.c (font_check_otf): Specify argument types.
18921
189222008-07-09 Kenichi Handa <handa@m17n.org>
18923
18924 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18925 non-ASCII char is found.
18926
18927 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18928 (reorder_font_vector): Change the arg preferred_family to font.
18929 Prefer the spec matching with font.
18930 (fontset_get_font_group): New function.
18931 (fontset_find_font): Change the format of an element of a realized
18932 fontset. Use fontset_get_font_group.
18933 (fontset_font): Try the current fontset, the default fontset, the
18934 fallbacks of the current fontset, and the fallbacks of the default
18935 fontset in this order.
18936 (face_for_char): Delete the shortcut to use the current font.
18937 (fontset_from_font): Don't set fonts for Latin in the fontset.
18938
18939 * font.h (font_make_object, font_match_p): Adjust prototypes.
18940
18941 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18942
18943 * font.c (font_make_object): New arg entity and pixelsize.
18944 (font_check_otf_features, font_check_otf): New functions.
18945 (font_match_p): Check :lang, :script, and :otf properties.
18946
18947 * xfont.c (xfont_open): Adjust it for the change of
18948 font_make_object.
18949 (xfont_text_extents): Fix initial setting of metrics.
18950
18951 * ftfont.c (struct ftfont_info): New member index, delete member
18952 fc_charset_idx. Make the member order compatible with struct
18953 xftfont_info.
18954 (fc_charset_table): Change charset names to registry names.
18955 (ftfont_pattern_entity): Delete the args registry and
18956 fc_charset_idx. Change the value of :font-entity property
18957 to (FONTNAME . INDEX). Always set :registry property to
18958 `iso10646-1'.
18959 (struct ftfont_cache_data): New struct.
18960 (ftfont_lookup_cache): New arg for_face.
18961 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18962 (ftfont_driver): Set the member otf_capability.
18963 (ftfont_get_charset): Adjust it for the change of
18964 fc_charset_table.
18965 (OTF_TAG_SYM): New macro.
18966 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18967 for the change of fc_charset_table.
18968 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18969 ftfont_pattern_entity. Add FC_INDEX to objset.
18970 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18971 and ftfont_pattern_entity.
18972 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18973 font_make_object, struct ftfont_info.
18974 (ftfont_has_char): Use ftfont_get_fc_charset.
18975 (ftfont_otf_features, ftfont_otf_capability): New functions.
18976 (ftfont_shape): Use ftfont_get_otf.
18977 (ftfont_text_extents): Fix initial setting of metrics.
18978
18979 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18980 member order compatible with struct ftfont_info.
bba3e508
SM
18981 (xftfont_open): Add FC_CHARSET to the pattern.
18982 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
18983 properties if appropriate.
18984 (xftfont_close): Unlock the face.
18985 (xftfont_anchor_point, xftfont_shape): Deleted.
18986 (syms_of_xftfont): Don't set members anchor_point and shape of
18987 xftfont_driver.
18988
18989 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18990 font_make_object.
18991
18992 * w32font.c (w32font_open): Adjust it for the change of
18993 font_make_object.
18994 (w32font_open_internal): Don't set properties of font_object here.
18995
189962008-07-08 Chong Yidong <cyd@stupidchicken.com>
18997
18998 * macfns.c (x_create_tip_frame):
18999 * w32fns.c (x_create_tip_frame):
19000 * xfns.c (x_create_tip_frame): Pass parameter argument to
19001 face-set-after-frame-default.
19002
19003 * xfaces.c (Finternal_merge_in_global_face): Save merged
19004 attributes for the default face back into the face vector.
19005
190062008-07-08 Andreas Schwab <schwab@suse.de>
19007
19008 * fontset.h: Declare fontset_from_font. Don't declare
19009 new_fontset_from_font and fontset_from_font_name.
19010 * xterm.c: Include "fontset.h".
19011 * Makefile.in (xterm.o): Update dependencies.
19012
190132008-07-08 Glenn Morris <rgm@gnu.org>
19014
19015 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19016 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19017
190182008-07-07 Chong Yidong <cyd@stupidchicken.com>
19019
19020 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19021 (x_set_frame_parameters): Don't bind it.
19022
190232008-07-07 Juanma Barranquero <lekktu@gmail.com>
19024
19025 * w32fns.c (map_w32_filename): Declare extern.
19026
190272008-07-07 Jason Rumney <jasonr@gnu.org>
19028
19029 * w32term.c (WS_EX_LAYERED): Define if not already.
19030
190312008-07-06 Chong Yidong <cyd@stupidchicken.com>
19032
19033 * xfaces.c (set_font_frame_param): Don't try to set the font
19034 parameter if it is still unspecified in the lface.
19035
190362008-07-05 Chong Yidong <cyd@stupidchicken.com>
19037
19038 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19039 face if it didn't already exist.
19040
19041 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19042
190432008-07-05 Andreas Schwab <schwab@suse.de>
19044
19045 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19046
190472008-07-05 Chong Yidong <cyd@stupidchicken.com>
19048
19049 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19050 word-wrapping.
19051 (IT_DISPLAYING_WHITESPACE): New macro.
19052 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19053 when word-wrapping. Simplify word-wrapping logic. Use correct
19054 pixel positions when saving copies of the iterator.
19055 (display_line): Use proper wrap point if the last character on a
19056 line was preceded by whitespace.
19057
190582008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19059
19060 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19061
190622008-07-04 Kenichi Handa <handa@m17n.org>
19063
19064 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19065
19066 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19067
190682008-07-02 Jason Rumney <jasonr@gnu.org>
19069
19070 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 19071 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
19072
19073 * xdisp.c (next_element_from_display_vector): Move assignment out
19074 of if statement.
19075
190762008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19077
19078 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19079
19080 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19081 (syms_of_fileio): Initialize and export them.
19082 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19083
19084 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19085 (Fsystem_move_file_to_trash): New function.
19086 (syms_of_w32fns): Export it to lisp.
19087
190882008-07-01 Jason Rumney <jasonr@gnu.org>
19089
19090 * w32font.c (w32font_text_extents): Don't count overhang as part
19091 of width.
19092
190932008-06-30 Miles Bader <miles@gnu.org>
19094
19095 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19096 Add `avoid_cursor_p' field.
19097
19098 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19099 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19100 (append_glyph, append_composite_glyph, produce_image_glyph)
19101 (append_stretch_glyph): Initialize avoid_cursor_p.
19102 (get_it_property): Rename from `get_line_height_property'.
19103 (x_produce_glyphs): Use get_it_property.
19104 (handle_line_prefix, push_display_prop): New functions.
19105 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19106 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19107 New variables.
19108 (syms_of_xdisp): Initialize them.
19109
191102008-06-30 Kenichi Handa <handa@m17n.org>
19111
19112 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19113 XftDefaultSubstitute (they are called in XftFontMatch).
19114 (xftfont_open): Fix args to ftfont_font_format.
19115
19116 * ftfont.c (fc_charset_table): New member lang.
19117 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 19118 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
19119 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19120 (ftfont_open): Fix args to ftfont_font_format.
19121 (ftfont_font_format): New arg filename.
19122
191232008-06-30 Chong Yidong <cyd@stupidchicken.com>
19124
19125 * xfaces.c (Finternal_merge_in_global_face): If default face was
19126 modified, realize it again. Update the font face attribute.
19127
191282008-06-29 Jason Rumney <jasonr@gnu.org>
19129
19130 * w32term.c (x_set_frame_alpha): Fix logic.
19131
191322008-06-29 Kenichi Handa <handa@m17n.org>
19133
19134 * fontset.c (Finternal_char_font): Return font-object instead of
19135 font-name.
19136
19137 * composite.c (get_composition_id): Fix the width calculation for TAB.
19138
191392008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19140
19141 * indent.c (Fvertical_motion): Properly handle float column arg.
19142
191432008-06-28 Jason Rumney <jasonr@gnu.org>
19144
19145 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19146 (pfnSetLayeredWindowAttributes): New function pointer.
19147 (w32_initialize): Initialize it when supported.
19148 (x_set_frame_alpha): New function.
19149
19150 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19151 (w32_frame_parm_handlers): Set alpha handler.
19152
19153 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19154
191552008-06-27 Jason Rumney <jasonr@gnu.org>
19156
19157 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19158 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19159 (w32_to_x_charset, x_to_w32_charset)
19160 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19161 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19162 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19163 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19164 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19165 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19166 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19167 (Qw32_charset_unicode): Remove.
19168 (syms_of_w32fns): Update for above changes.
19169
19170 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19171 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19172 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19173 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19174 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19175 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19176 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19177 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19178 (syms_of_w32font): Update for above changes.
19179
191802008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19181
19182 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19183 removed #if.
19184 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19185
191862008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 19187 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
19188
19189 * makefile.w32-in (LOCAL_FLAGS):
19190 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19191
19192 * sysdep.c (_spawnlp, _getpid):
19193 Declare with explicit _cdecl instead of _CRTAPI1.
19194
19195 * editfns.c (Fget_internal_run_time):
19196 Check for WINDOWSNT with #ifdef, not #if.
19197
191982008-06-26 Jason Rumney <jasonr@gnu.org>
19199
19200 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19201
19202 * w32term.c (x_draw_glyph_string_foreground)
19203 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19204 Use FONT_HANDLE macro.
19205 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19206
19207 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19208 (uniscribe_encode_char): Use FONT_HANDLE macro.
19209
19210 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19211 (w32font_text_extents): Use precast w32_font.
19212 (w32font_close): Free cached metrics.
19213 (w32font_open_internal): Allocate space for name on stack.
19214
192152008-06-26 Chong Yidong <cyd@stupidchicken.com>
19216
19217 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19218
192192008-06-26 Jason Rumney <jasonr@gnu.org>
19220
19221 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19222 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19223
192242008-06-26 Juanma Barranquero <lekktu@gmail.com>
19225
19226 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19227
192282008-06-26 Jason Rumney <jasonr@gnu.org>
19229
19230 * w32bdf.c, w32bdf.h: Remove obsolete files.
19231
19232 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19233
19234 * w32gui.h: Don't include w32bdf.h.
19235 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19236 Remove obsolete font support.
19237
19238 * w32font.h (struct w32font_info): Remove compat_w32_font.
19239 Add hfont member.
19240 (FONT_COMPAT): Remove obsolete macro.
19241
19242 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19243 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19244 (w32font_open_internal): Remove compat code. Set new hfont member.
19245 (Fx_select_font): Use new hfont member.
19246
19247 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19248 (uniscribe_encode_char): Use new hfont member.
19249
19250 * w32term.c (x_draw_glyph_string_foreground)
19251 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19252 (x_draw_glyph_string): Use metrics in w32font_info.
19253
192542008-06-26 Kenichi Handa <handa@m17n.org>
19255
19256 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19257
192582008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19259
19260 * unexnext.c:
19261 * m/ews4800.h:
19262 * m/hp9000s300.h:
19263 * m/ibm370aix.h:
19264 * m/mips-siemens.h:
19265 * m/ncr386.h:
19266 * m/next.h:
19267 * m/pmax.h:
19268 * m/powerpcle.h:
19269 * m/tandem-s2.h:
19270 * s/386bsd.h:
19271 * s/bsd386.h:
19272 * s/bsd4-1.h:
19273 * s/bsd4-2.h:
19274 * s/bsdos2-1.h:
19275 * s/bsdos2.h:
19276 * s/bsdos3.h:
19277 * s/bsdos4.h:
19278 * s/nextstep.h:
19279 * s/ultrix4-3.h:
19280 * s/usg5-0.h:
19281 * s/usg5-2-2.h:
19282 * s/usg5-2.h:
19283 * s/usg5-4-3.h:
19284 * s/ux4800.h:
19285 * s/uxpds.h:
19286 * s/uxpv.h: Remove support for obsolete systems.
19287 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 19288 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
19289 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19290 Remove, insert contents in s/aix4-2.h.
19291 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19292 * s/bsd4-3.h: Rename to ...
19293 * s/bsd-common.h: ... this.
19294 * data.c:
19295 * doc.c:
19296 * ecrt0.c:
19297 * emacs.c:
19298 * fileio.c:
19299 * floatfns.c:
19300 * keyboard.c:
19301 * mem-limits.h:
19302 * print.c:
19303 * process.c:
19304 * sysdep.c:
19305 * syssignal.h:
19306 * systty.h:
19307 * syswait.h:
19308 * term.c:
19309 * unexec.c:
19310 * unexelf.c:
19311 * unexhp9k800.c:
19312 * m/hp800.h:
19313 * m/ibmrs6000.h:
19314 * m/mips.h:
19315 * m/vax.h:
19316 * s/darwin.h:
19317 * s/freebsd.h:
19318 * s/gnu.h:
19319 * s/ms-w32.h:
19320 * s/msdos.h:
19321 * s/netbsd.h:
19322 * s/template.h: Remove references to obsolete variables.
19323
19324 * Makefile.in: Add dependencies for all unexec files.
19325 (admindir): Remove unused variable.
19326 (UNEXEC_SRC): Remove references.
19327
193282008-06-25 Chong Yidong <cyd@stupidchicken.com>
19329
19330 * xfns.c (x_default_font_parameter): If Xft is available, first
19331 try Monospace-12 for the default font.
19332
193332008-06-25 Jason Rumney <jasonr@gnu.org>
19334
19335 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19336
193372008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19338
19339 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19340
19341 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19342
193432008-06-25 Juanma Barranquero <lekktu@gmail.com>
19344
19345 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19346 <scroll-conservatively>: Fix typo in docstring.
19347
19348 * xselect.c (Fx_send_client_event): Doc fix.
19349
193502008-06-25 Kenichi Handa <handa@m17n.org>
19351
19352 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19353
19354 * font.c (font_parse_fcname): Remove unused variables.
19355 (font_sort_entites): Delete the arg SPEC. Caller changed.
19356 Fix for the case of ! best_only.
19357 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19358
19359 * lisp.h (Fstring_to_unibyte): EXFUN it.
19360
19361 * character.h (str_to_unibyte): Extern it.
19362
19363 * character.c (str_to_unibyte): New function.
19364
19365 * fns.c (Fstring_to_unibyte): New function.
19366 (syms_of_fns): Defsubr it.
19367
193682008-06-24 Kenichi Handa <handa@m17n.org>
19369
19370 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19371 DPI too.
19372 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19373
193742008-06-24 Andreas Schwab <schwab@suse.de>
19375
19376 * Makefile.in (${lispsource}loaddefs.el): Rename from
19377 ../lisp/loaddefs.el.
19378 (bootstrap-clean): Do what distclean does but don't remove
19379 Makefile.
19380 (distclean): Depend on bootstrap-clean and remove Makefile.
19381
193822008-06-24 Chong Yidong <cyd@stupidchicken.com>
19383
19384 * buffer.h (struct buffer): New member word_wrap.
19385
19386 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19387 word-wrap.
19388 (init_buffer_once): Initialize them.
19389
19390 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19391 line_wrap enum possessing three possible values.
19392
19393 * termopts.h: Replace truncate_partial_width_windows with
19394 Vtruncate_partial_width_windows.
19395
19396 * dispnew.c (direct_output_for_insert): Avoid direct output when
19397 inserting a space with word wrap on.
19398
19399 * indent.c (compute_motion): Obey integer values of
19400 truncate-partial-width-windows.
19401
19402 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19403 replacing truncate_partial_width_windows.
19404 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19405 truncate only if the window width is below that integer.
19406 (start_display, resize_mini_window, produce_stretch_glyph)
19407 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
19408 (back_to_previous_visible_line_start, reseat_1):
19409 Reset string_from_display_prop_p.
aac0c6e3
MR
19410 (display_line): Extend default face to end of line when wrapping.
19411
194122008-06-24 Kim F. Storm <storm@cua.dk>
19413
19414 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19415 to wrap continued lines at word boundaries.
19416
194172008-06-24 Jason Rumney <jasonr@gnu.org>
19418
19419 * font.c (Ffont_face_attributes): Multiply pixel size before point
19420 conversion to avoid multiplying rounding error.
19421
194222008-06-23 Jason Rumney <jasonr@gnu.org>
19423
19424 * w32term.c (x_draw_glyph_string_background)
19425 (x_draw_glyph_string): Remove old bdf font code.
19426
19427 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19428
194292008-06-22 Kenichi Handa <handa@m17n.org>
19430
19431 * font.c (font_find_for_lface): Try the adstyle specified in
19432 the property of LFACE_FONT of LFACE (if any).
19433
194342008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19435 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19436
19437 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19438
194392008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19440
19441 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19442 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19443 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19444 (witness-emacs): Remove.
19445 (lisp, shortlisp): Move loaddefs.el earlier.
19446 (mostlyclean): Forget about witness-emacs.
19447
194482008-06-22 Glenn Morris <rgm@gnu.org>
19449
19450 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19451 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19452
194532008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19454
19455 * Makefile.in (PRECOMP): Remove.
19456 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19457 (witness-emacs): Run `compile-first'.
19458 (.el.elc): Use the new compile-onefile target.
19459
194602008-06-21 Kenichi Handa <handa@m17n.org>
19461
19462 * xftfont.c (xftfont_open): Handle QCembolden only when
19463 FC_EMBOLDEN is defined.
19464
194652008-06-21 Andreas Schwab <schwab@suse.de>
19466
19467 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19468 (.el.elc): Likewise.
19469
194702008-06-21 Miles Bader <miles@gnu.org>
19471
19472 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19473 build dir, not the lisp source dir.
19474
194752008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19476
19477 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19478 (bootstrapclean): Remove.
19479 (.el.elc): New rule.
19480 (PRECOMP): New var.
19481 (../lisp/subdirs.el): Remove.
19482 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19483 (witness-emacs): New target.
19484 (mostlyclean): Remove witness-emacs as well.
19485 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19486 Add witness-emacs dependency.
19487
194882008-06-20 Chong Yidong <cyd@stupidchicken.com>
19489
19490 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19491 defined by the font.
19492
194932008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19494
19495 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19496 (bootstrap-clean): New target that keeps TAGS around.
19497 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19498 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19499
195002008-06-20 Jason Rumney <jasonr@gnu.org>
19501
19502 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19503 Remove obsolete font code.
19504
19505 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19506 to determine language support.
19507
195082008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19509
19510 * sysdep.c (cfsetspeed): New fun extracted from the code.
19511 (cfmakeraw): Move before first use.
19512
195132008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19514
19515 * sysdep.c (cfmakeraw): Provide fallback implementation.
19516 (serial_configure): Provide fallback implementation of cfsetspeed.
19517
195182008-06-20 Kenichi Handa <handa@m17n.org>
19519
19520 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19521 the pattern.
19522
19523 * fontset.c (fontset_from_font): Copy font_spec before changing
19524 the elements.
19525
19526 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19527
195282008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19529
19530 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19531 for explicit `font' parameters.
19532
19533 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19534
195352008-06-19 Kenichi Handa <handa@m17n.org>
19536
19537 * frame.c: Include <ctype.h>.
19538 (x_set_font_backend): Allow spacing characters in the X resource
19539 for FontBackend.
19540
195412008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19542
19543 * w32fns.c, xfns.c (Qfont_param): New var.
19544 (syms_of_w32fns): Initialize it.
19545 (x_default_font_parameter): Record explicit `font' into
19546 `font-parameter'.
19547
195482008-06-18 Kenichi Handa <handa@m17n.org>
19549
19550 * font.c (font_parse_xlfd): Fix previous change.
19551 (font_parse_fcname): Don't use :fc-unknown-spec.
19552 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19553 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19554 (font_add_log): Prepend the driver name to the resulting fonts.
19555
19556 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19557 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19558 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19559
19560 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19561 (QCembolden): New variables.
19562 (syms_of_xftfont): DEFSYM them.
19563 (xftfont_open): Call XftFontMatch. Don't trust the result of
19564 XftTextExtents8 if the pixel_size is less than 5.
19565
195662008-06-18 Andreas Schwab <schwab@suse.de>
19567
19568 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19569 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19570
195712008-06-18 Jason Rumney <jasonr@gnu.org>
19572
19573 * w32font.c (w32font_list, w32font_match): Add logging.
19574
19575 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19576
195772008-06-17 Chong Yidong <cyd@stupidchicken.com>
19578
19579 * font.c (font_parse_fcname): Store divider characters for
19580 unknown-spec list. For known key symbols, intern using correct
19581 symbol name.
19582
195832008-06-17 Kenichi Handa <handa@m17n.org>
19584
19585 * xfaces.c (realize_default_face): If the frame is not on window
19586 system, set the fontset of face to nil.
19587
195882008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19589
19590 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
19591
195922008-06-16 Juanma Barranquero <lekktu@gmail.com>
19593
19594 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
19595 (build_font_name_from_vector): Delete externs.
19596
19597 * xfaces.c (struct font_name): Don't declare.
19598
195992008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
19600
19601 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
19602
196032008-06-16 Chong Yidong <cyd@stupidchicken.com>
19604
19605 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
19606
196072008-06-16 Juanma Barranquero <lekktu@gmail.com>
19608
19609 * font.c (Ffont_spec): Fix usage in docstring.
19610 (Ffont_face_attributes): Doc fix.
19611
196122008-06-16 Andreas Schwab <schwab@suse.de>
19613
19614 * font.c (Ffont_face_attributes): Fix definition.
19615
196162008-06-16 Jason Rumney <jasonr@gnu.org>
19617
19618 * font.h (font_style_symbolic_from_value): Remove.
19619
19620 * font.c (font_style_symbolic_from_value): Remove.
19621 (font_style_symbolic): Revert to pre 2008-06-13 version.
19622
19623 * w32font.c (w32_to_fc_weight): New function.
19624 (w32font_full_name, logfont_to_fcname): Use it.
19625
196262008-06-16 Kenichi Handa <handa@m17n.org>
19627
19628 * font.c (font_check_object): Delete it.
19629 (font_clear_cache): Check if a font-object is alive.
19630 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
19631 font-object to nil.
19632 (font_close_object): Don't check FONT_CLOSE_OBJECT.
19633 (font_at): Don't call font_check_object.
19634 (Ffont_get): Return a symbol for :weight, :slant, and :width.
19635
196362008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
19637
19638 * puresize.h (BASE_PURESIZE): Increase to 1230000.
19639
196402008-06-16 Chong Yidong <cyd@stupidchicken.com>
19641
19642 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
19643
196442008-06-15 Chong Yidong <cyd@stupidchicken.com>
19645
19646 * font.c (font_parse_fcname): Only one decimal point.
19647 (font_unparse_fcname): Handle data in family and foundry indices
19648 as symbols, not strings.
19649 (font_unparse_gtkname, Ffont_face_attributes): New functions.
19650
19651 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
19652
19653 * font.h (font_unparse_gtkname): Add prototype.
19654
196552008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19656
19657 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
19658
196592008-06-15 Andreas Schwab <schwab@suse.de>
19660
19661 * font.c (font_update_drivers): Fix crash when no drivers match.
19662
196632008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
19664
19665 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
19666 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
19667
196682008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
19669
19670 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
19671
196722008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
19673
19674 * process.c (Fserial_process_configure, Fprocess_send_eof):
19675 Use EQ to compare Lisp_Objects.
19676
196772008-06-13 Jason Rumney <jasonr@gnu.org>
19678
19679 * w32fns.c (Fw32_select_font): Remove old font API function.
19680
19681 * w32font.c (logfont_to_fcname): New function.
19682 (Fx_select_font): New font dialog function compatible with
19683 GTK/fontconfig version.
19684
19685 * font.c (font_style_symbolic_from_value): New function.
19686 (font_style_symbolic): Use it.
19687
19688 * font.h (font_style_symbolic_from_value): Declare new function.
19689
196902008-06-13 Juanma Barranquero <lekktu@gmail.com>
19691
19692 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
19693 <font-width-table>: Fix typos in docstrings.
19694
196952008-06-13 Daniel Engeler <engeler@gmail.com>
19696
19697 These changes add serial port access.
19698 * process.c: Add HAVE_SERIAL.
19699 (Fdelete_process, Fprocess_status, Fset_process_buffer)
19700 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
19701 (list_processes_1, select_wrapper, Fstop_process)
19702 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
19703 (status_notify): Modify to handle serial processes.
19704 [HAVE_SERIAL] (Fserial_process_configure)
19705 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
19706 New functions.
19707 * process.h (struct Lisp_Process): Add `type'.
19708 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
19709 New functions.
19710 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
19711 serial ports.
b71ac3dd 19712 (serial_open, serial_configure): New functions.
aac0c6e3
MR
19713 * w32.h: Add FILE_SERIAL.
19714 (struct _child_process): Add ovl_read, ovl_write.
19715
197162008-06-13 Kenichi Handa <handa@m17n.org>
19717
19718 * dispextern.h (enum lface_attribute_index): New member
19719 LFACE_FOUNDRY_INDEX.
19720
19721 * font.c (font_score): Delete arg alternate_families. Check only
19722 weight, slant, width, and size. Ignore the difference of alias
19723 style symbols.
19724 (font_sort_entites): Adjust for the above change. Reflect the
19725 order of font-driver to scores.
19726 (font_list_entities): Don't check alternate_familes here.
19727 (font_clear_prop): Handle foundry.
19728 (font_update_lface): Don't parse "foundry-family" form here.
19729 Handle FONT_FOUNDRY_INDEX.
19730 (font_find_for_lface): Likewise. Handle alternate families here.
19731 If registry is nil, try iso8859-1 and ascii-0.
19732 (font_open_for_lface): Pay attention to size in ENTITY.
19733 (font_open_by_name): Simplify by calling font_load_for_lface.
19734 (free_font_driver_list): Delete it.
19735 (font_update_drivers): Preserve the order of backends.
19736 (syms_of_font): Setting of sort_shift_bits adjusted for the change
19737 of font_score and font_sort_entites.
19738 (font_update_sort_order): Likewise.
19739
19740 * xfaces.c (LFACE_FOUNDRY): New macro.
19741 (check_lface_attrs): Check foundry.
19742 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
19743 (merge_face_vectors): Check foundry.
19744 (merge_face_ref): Likewise.
19745 (Finternal_set_lisp_face_attribute): Likewise.
19746 (x_update_menu_appearance): Likewise.
19747 (Finternal_get_lisp_face_attribute): Likewise.
19748 (lface_hash): Likewise.
19749 (lface_same_font_attributes_p): Likewise.
19750 (x_supports_face_attributes_p): Likewise.
19751 (tty_supports_face_attributes_p): Likewise.
19752 (Finternal_set_alternative_font_family_alist): Intern strings.
19753 (Finternal_set_alternative_font_registry_alist): Downcase strings.
19754 (realize_default_face): Set LFACE_FOUNDRY (lface).
19755
19756 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
19757 font-driver at first.
19758
19759 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
19760
197612008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19762
19763 * lread.c (Fload): Use xfree, not free on saved_doc_string.
19764
197652008-06-12 Jim Meyering <meyering@redhat.com>
19766
19767 Make unexec_free handle NULL the same way free does.
19768 * unexmacosx.c (unexec_free): Ignore a NULL argument.
19769
197702008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19771
19772 * character.h (CHAR_TO_BYTE_SAFE): New macro.
19773 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
19774 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
19775 (WEAK_ALIAS): Simplify.
19776 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
19777 when searching a unibyte buffer.
19778
197792008-06-12 Chong Yidong <cyd@stupidchicken.com>
19780
19781 * xfns.c (Fx_select_font): Rename from x-font-dialog.
19782
197832008-06-12 Juanma Barranquero <lekktu@gmail.com>
19784
19785 * w32font.c: Include ctype.h.
19786
197872008-06-11 Jason Rumney <jasonr@gnu.org>
19788
19789 * w32font.c (w32font_encode_char): Detect missing glyphs that are
19790 misreported as space.
19791 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
19792 as aliases for registry iso10646-1.
19793
197942008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19795
19796 * buffer.c (clone_per_buffer_values): Skip `name'.
19797
197982008-06-11 Chong Yidong <cyd@stupidchicken.com>
19799
19800 * font.c (font_parse_fcname): Fix last change; accept decimal
19801 points in font size.
19802
198032008-06-10 Jason Rumney <jasonr@gnu.org>
19804
19805 * w32uniscribe.c (add_opentype_font_name_to_list):
19806 Skip non unicode fonts.
19807
198082008-06-10 Chong Yidong <cyd@stupidchicken.com>
19809
19810 * xfns.c (Fx_font_dialog): New function.
19811
19812 * gtkutil.c (xg_dialog_response_cb): Rename from
19813 xg_file_response_callback.
19814 (pop_down_dialog): Rename from pop_down_file_dialog.
19815 (xg_get_file_name): Callers changed.
19816 (xg_get_font_name): New function.
19817
19818 * gtkutil.h (xg_get_font_name): Insert prototype.
19819
198202008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19821
19822 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19823 x_underline_minimum_display_offset.
19824 (syms_of_xdisp): Declare it here rather than in xterm.c.
19825 * dispextern.h (underline_minimum_offset): Declare it.
19826 * w32term.c (x_draw_glyph_string): Use it.
19827 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
19828 (syms_of_xterm): Don't declare it any more.
19829 (x_draw_glyph_string): Adjust to the new name.
19830
8719abec 198312008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
19832
19833 * xterm.c (x_underline_minimum_display_offset): New var.
19834 (x_draw_glyph_string): Use it.
19835 (syms_of_xterm): Declare it.
19836
198372008-06-10 Chong Yidong <cyd@stupidchicken.com>
19838
19839 * font.c (font_parse_fcname): Accept GTK-style font names too.
19840
198412008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19842
19843 * dired.c (file_name_completion): Don't return t if the match is exact
19844 but with different capitalization.
19845 * minibuf.c (Ftry_completion): Simplify.
19846
19847 * window.c (Vwindow_point_insertion_type): New var.
19848 (set_window_buffer): Use it.
19849 (syms_of_window): Init and export it to Lisp.
19850
198512008-06-10 Kenichi Handa <handa@m17n.org>
19852
19853 * font.h (font_intern_prop): Prototype adjusted.
19854
19855 * font.c (font_intern_prop): New arg force_symbol.
19856 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
19857 Adjust for the change of font_intern_prop.
19858
19859 * ftfont.c (ftfont_pattern_entity):
19860 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
19861 (w32_registry):
19862 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
19863 the change of font_intern_prop.
19864
198652008-06-09 Juanma Barranquero <lekktu@gmail.com>
19866
19867 * w32menu.c (digest_single_submenu): Declare extern.
19868
198692008-06-09 Jason Rumney <jasonr@gnu.org>
19870
19871 * w32term.c (x_make_frame_visible): Use alternate restore flags.
19872
19873 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
19874 (parse_single_submenu): Remove.
19875 (digest_single_submenu): Remove.
19876 (syms_of_w32menu): Don't initialise variables that have moved
19877 to menu.c.
19878 (set_frame_menubar): Sync with version in xmenu.c.
19879 (w32_menu_show): Sync with xmenu_show in xmenu.c.
19880
19881 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
19882 Make static again.
19883
198842008-06-09 Jason Rumney <jasonr@gnu.org>
19885
19886 Changes to w32 files related to the move of common menu code
19887 to menu.c on 2008-06-08 by Chong Yidong.
19888
19889 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
19890 defs to w32gui.h.
19891 (single_keymap_panes, push_menu_item, push_menu_pane):
19892 Make globally visible.
19893
19894 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
19895 (local_free, malloc_widget_value, free_widget_value)
19896 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
19897 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
19898 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
19899 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
19900 (menu_items, menu_items_allocated, menu_items_used)
19901 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
19902 (init_menu_items, finish_menu_items, discard_menu_items)
19903 (grow_menu_items, push_submenu_start, push_submenu_end)
19904 (push_left_right_boundary, push_menu_pane, push_menu_item)
19905 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
19906 (free_menubar_widget_tree_value, parse_single_submenu)
19907 (update_submenu_strings): Remove functions.
19908 (xmalloc_widget_value): Remove and declare extern.
19909
19910 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
19911 (OBJ1): Build it.
19912
19913 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
19914 (local_heap, local_alloc, local_free, malloc_widget_value)
19915 (free_widget_value): Define here.
19916
199172008-06-09 Kenichi Handa <handa@m17n.org>
19918
19919 * font.h (Qascii_0): Extern it.
19920
19921 * font.c (Qascii_0): New variable.
19922 (syms_of_font): DEFSYM it.
19923 (font_open_by_name): If the registry "iso8859-1" fails, try also
19924 "ascii-0".
19925
19926 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19927
199282008-06-08 Kenichi Handa <handa@m17n.org>
19929
19930 * .gdbinit (xfont): New command.
19931
199322008-06-08 Andreas Schwab <schwab@suse.de>
19933
19934 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19935 * Makefile.in (menu.o): Update dependencies.
19936
19937 * Makefile.in (obj): Always add menu.o.
19938 * emacs.c (main): Always call syms_of_menu.
19939 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19940
199412008-06-08 Chong Yidong <cyd@stupidchicken.com>
19942
19943 * Makefile.in: Compile menu.c.
19944
19945 * lisp.h: Declare syms_of_menu.
19946
19947 * emacs.c (main): Call syms_of_menu.
19948
19949 * keyboard.h: Relocate platform-independent menu definitions from
19950 xmenu.c.
19951
19952 * menu.c: New file. Relocate platform-independent menu
19953 definitions from xmenu.c. Suggested by Adrian Robert.
19954
19955 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 19956 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
19957 (menu_items_used, menu_items_n_panes)
19958 (menu_items_submenu_depth): Move to keyboard.h.
19959 (init_menu_items, finish_menu_items, unuse_menu_items)
19960 (discard_menu_items, restore_menu_items, save_menu_items)
19961 (grow_menu_items, push_submenu_start, push_submenu_end)
19962 (push_left_right_boundary, push_menu_pane, push_menu_item)
19963 (keymap_panes, single_keymap_panes, single_menu_item)
19964 (list_of_panes, list_of_items, find_and_call_menu_selection)
19965 (xmalloc_widget_value, free_menubar_widget_value_tree)
19966 (parse_single_submenu, digest_single_submenu)
19967 (update_submenu_strings): Move to menu.c.
19968
199692008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19970
19971 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19972
199732008-06-06 Miles Bader <miles@gnu.org>
19974
19975 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19976 face, not frame default.
19977
199782008-06-05 Martin Rudalics <rudalics@gmx.at>
19979
19980 * window.c (pop_up_windows, pop_up_frames)
19981 (display_buffer_reuse_frames, Vpop_up_frame_function)
19982 (Vdisplay_buffer_function, Veven_window_heights)
19983 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19984 (Vspecial_display_function, Vsame_window_buffer_names)
19985 (Vsame_window_regexps, split_height_threshold)
19986 (Vsplit_window_preferred_function): Move those vars to window.el.
19987 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19988 (Fdisplay_buffer): Move those functions to window.el.
19989 (syms_of_window): Remove corresponding declarations.
19990 (display_buffer): New function.
19991 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19992 * dispnew.c (Flast_nonminibuf_frame): New function.
19993 * buffer.c (Fpop_to_buffer): Move to window.el.
19994
199952008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19996
19997 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19998
199992008-06-05 Kenichi Handa <handa@m17n.org>
20000
20001 * coding.c (detect_coding): Fix previous change.
20002 (detect_coding_system): Likewise.
20003
200042008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20005
20006 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20007
20008 * keymap.c (Vminibuffer_local_filename_must_match_map):
20009 Rename from Vminibuffer_local_must_match_filename_map.
20010 (syms_of_keymap):
20011 * minibuf.c (Fcompleting_read): Adjust accordingly.
20012 * commands.h: Rename declaration as well.
20013
200142008-06-05 Kenichi Handa <handa@m17n.org>
20015
20016 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20017 family name.
20018 (Ffont_put): Likewise.
20019
20020 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20021 current font-spec.
20022
20023 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20024 is unspecified.
20025
20026 * xfaces.c (realize_x_face): If the font-related face attributes
20027 are the same as those of default face, realize a new fontset from
20028 default->fontset.
20029 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20030
200312008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20032
20033 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20034 (move_it_in_display_line): New wrapper.
20035
20036 * window.c (window_scroll_pixel_based_preserve_x)
20037 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20038 (window_scroll_pixel_based, window_scroll_line_based):
20039 Use them to preserve column positions.
20040 (syms_of_window): Initialize them.
20041
20042 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20043 (HPOS . VPOS) pair.
20044
20045 * dispextern.h (move_it_in_display_line): Declare.
20046
200472008-06-05 Juanma Barranquero <lekktu@gmail.com>
20048
20049 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20050 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20051 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20052
200532008-06-04 Juanma Barranquero <lekktu@gmail.com>
20054
20055 * window.c (Fset_window_parameter): Doc fix.
20056 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20057
200582008-06-04 Joakim Verona <joakim@verona.se>
20059
20060 * window.h (struct window): Add new member window_parameters.
20061
20062 * window.c (Fwindow_parameters, Fwindow_parameter)
20063 (Fset_window_parameter): New defuns.
20064 (syms_of_window): Defsubr the new defuns.
20065 (make_window): Initialize window_parameters to nil.
20066
200672008-06-04 John Paul Wallington <jpw@pobox.com>
20068
20069 * eval.c (Fdefmacro): Doc fix.
20070
200712008-06-04 Kenichi Handa <handa@m17n.org>
20072
20073 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20074 Be sure to call setup_coding_system when we find a proper coding system.
20075 (detect_coding_system): Fix handling of coding->head_ascii.
20076
200772008-06-03 Andreas Schwab <schwab@suse.de>
20078
20079 * font.c (font_prop_validate_spacing): Fix last change.
20080
200812008-06-03 Kenichi Handa <handa@m17n.org>
20082
20083 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20084 (font_parse_fcname): Fix handling of unknown key.
20085
20086 * xfont.c (xfont_list): Try an alias.
20087
20088 * charset.c (char_charset): Return NULL if the arg charset_list is
20089 specified and C doesn't belong to any of them.
20090
200912008-06-02 Chip Coldwell <coldwell@redhat.com>
20092
20093 * font.c (font_pixel_size): Don't take cdr of an integer.
20094
200952008-06-02 Jim Meyering <meyering@redhat.com>
20096
20097 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20098 * alloc.c (xfree): Return right away for a NULL arg.
20099 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20100 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20101 * mac.c (create_apple_event_from_event_ref): Likewise.
20102 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20103 Likewise.
20104 * doprnt.c (doprnt1): Likewise.
20105 * frame.c (frame): Likewise.
20106 * keyboard.c (wipe_kboard): Likewise.
20107 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20108 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20109 * term.c (tty_default_color_capabilities, maybe_fatal)
20110 (delete_tty): Likewise.
20111 * w16select.c (string): Likewise.
20112 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20113 * w32bdf.c (w32_free_bdf_font): Likewise.
20114 * w32fns.c (w32_unload_font): Likewise.
20115 * w32font.c (w32font_close): Likewise.
20116 * window.c (size_window): Likewise.
20117 * xselect.c (receive_incremental_selection): Likewise.
20118 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20119 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20120 * w32.c (stat): Likewise.
20121
20122 Remove useless if-before-free tests.
20123 * editfns.c (Fset_time_zone_rule): Likewise.
20124 * lread.c (nosuffix): Likewise.
20125 * ralloc.c (get_bloc): Likewise.
20126 * regex.c (reg_free): Likewise.
20127 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20128 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20129 * xsmfns.c (smc_save_yourself_CB): Likewise.
20130
201312008-06-02 Kenichi Handa <handa@m17n.org>
20132
20133 * font.c (font_find_for_lface): Handle float font size.
20134 (font_open_for_lface): Likewise.
20135
20136 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20137 comparing the properties.
20138
201392008-06-01 Jason Rumney <jasonr@gnu.org>
20140
20141 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20142 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20143 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20144 Don't add empty script list.
20145 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20146
201472008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20148
20149 * Makefile.in (dot, dotdot): Remove, update users.
20150 ".." has been used elsewhere in the file for a long time.
20151 (LIBXT_STATIC): Remove conditional based on unused variable.
20152
201532008-06-01 Miles Bader <miles@gnu.org>
20154
20155 * xfaces.c (Vface_remapping_alist): New variable.
20156 (syms_of_xfaces): Initialize it.
20157 (enum named_merge_point_kind): New type.
20158 (struct named_merge_point): Add `named_merge_point_kind' field.
20159 (push_named_merge_point): Make cycle detection respect different
20160 named-merge-point kinds.
20161 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20162 Remove face-name alias resolution.
20163 (lface_from_face_name): New definition using
20164 `lface_from_face_name_no_resolve'.
20165 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20166 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20167 (get_lface_attributes): New definition that layers face-remapping on
20168 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20169 (lookup_basic_face): New function.
20170 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20171 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20172 `get_lface_attributes'.
20173 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20174 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20175 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20176
20177 * xdisp.c (init_iterator): Pass base_face_id through
20178 `lookup_basic_face' when we actually use it as a face-id.
20179 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20180 DEFAULT_FACE_ID.
20181
20182 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20183 lookup the initial face-id.
20184
20185 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20186
201872008-06-01 Juanma Barranquero <lekktu@gmail.com>
20188
20189 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20190 (Fremove_text_properties): Fix typos in docstrings.
20191
201922008-05-31 Kenichi Handa <handa@m17n.org>
20193
20194 * font.c (font_list_entities): Fix the car part of data to be
20195 stored in the cache.
20196
20197 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20198
201992008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20200
20201 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20202 Add a `test' argument so another predicate than `equal' can be used.
20203 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20204 (map_char_table): Remove unused vars `c' and `i'.
20205 * lisp.h (Foptimize_char_table): Adjust declaration.
20206 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20207
202082008-05-30 Kenichi Handa <handa@m17n.org>
20209
20210 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20211 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20212 defined.
20213
202142008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20215
20216 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20217 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20218 frame-local settings for the same variable.
20219
202202008-05-30 Kenichi Handa <handa@m17n.org>
20221
20222 * fontset.c (Ffont_info): Move to font.c.
20223 (syms_of_fontset): Delete defsubr of Sfont_info.
20224
20225 * font.c (font_style_to_value, font_score): Delete casting of the
20226 args to xstcasecmp.
20227 (register_font_driver): Increment num_font_drivers only when
20228 registering the driver globally.
20229 (Ffont_info): Move from fontset.c. Handle a font object too.
20230 (syms_of_font): Defsubr Sfont_info.
20231
202322008-05-29 Kenichi Handa <handa@m17n.org>
20233
20234 * coding.h (enum define_coding_utf8_arg_index): New enum.
20235 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20236 coding_attr_utf_bom.
20237 (enum utf_bom_type): Rename from utf_16_bom_type.
20238 (struct utf_16_spec): Adjust for the above change.
20239 (struct coding_system): Add utf_8_bom in `spec' union.
20240
20241 * coding.c (CODING_UTF_8_BOM): New macro.
20242 (enum coding_category): Delete coding_category_utf_8, add
20243 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20244 coding_category_utf_8_sig.
20245 (CATEGORY_MASK_UTF_8): Delete it.
20246 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20247 (CATEGORY_MASK_UTF_8_SIG): New macros.
20248 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20249 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20250 CATEGORY_MASK_UTF_8_SIG.
20251 (CATEGORY_MASK_UTF_8): New macro.
20252 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20253 (detect_coding_utf_8): Check BOM.
20254 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20255 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20256 (encode_coding_utf_16): Likewise.
20257 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20258 (detect_coding, detect_coding_system): Handle utf-8-auto.
20259 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20260 (syms_of_coding): Fix setting up of Vcoding_category_table.
20261
202622008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20263
20264 * process.c (Faccept_process_output): If `millisec' is non-nil,
20265 `seconds' default to 0.
20266 (wait_reading_process_output): Also return non-nil if we read output
20267 from a non-running process.
20268
202692008-05-29 Jason Rumney <jasonr@gnu.org>
20270
20271 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20272 `raster' specified.
20273 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20274 in the uniscribe backend, but disallow any font that has no
20275 unicode subrange support.
20276
202772008-05-29 Juanma Barranquero <lekktu@gmail.com>
20278
20279 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20280 Fix typos in docstrings.
20281
202822008-05-29 Kenichi Handa <handa@m17n.org>
20283
20284 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20285 (Fx_family_fonts): Set frame correctly.
20286
202872008-05-28 Jason Rumney <jasonr@gnu.org>
20288
20289 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20290
202912008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20292
20293 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20294 calling build_annotations.
20295
202962008-05-28 Juanma Barranquero <lekktu@gmail.com>
20297
20298 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20299 (Fencode_coding_string):
20300 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20301 <latin-extra-code-table>: Fix typos in docstrings.
20302 (syms_of_coding) <coding-system-alist>: Doc fix.
20303 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20304
203052008-05-28 Kenichi Handa <handa@m17n.org>
20306
20307 * fontset.c (Ffont_info): Don't call font_close_object.
20308
20309 * font.c (font_parse_family_registry): Use Ffont_put to validate
20310 foundry and family.
20311 (font_delete_unmatched): Don't check spacing.
20312 (font_list_entities): Add spacing to the spec to list fonts.
20313
20314 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20315 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20316
20317 * coding.c (encode_coding_raw_text): Fix previous change.
20318 (encode_coding_object): When the dst_object is a buffer and is
20319 different from src_object, move gap to PT.
20320
203212008-05-27 Chong Yidong <cyd@stupidchicken.com>
20322
20323 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20324
203252008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20326
20327 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20328 all branches. Compute it differently.
20329
20330 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20331
203322008-05-27 Juanma Barranquero <lekktu@gmail.com>
20333
20334 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20335 into "else if () ... else ...".
20336
203372008-05-27 Jason Rumney <jasonr@gnu.org>
20338
20339 * w32font.c (w32font_open_internal): Determine if glyph indices
20340 are likely to work here.
20341
203422008-05-27 Chong Yidong <cyd@stupidchicken.com>
20343
20344 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20345 draw overlap glyphs with appropriate highlighting.
20346
203472008-05-27 Kenichi Handa <handa@m17n.org>
20348
20349 * xfont.c (xfont_open): Fix calculation of font->average_width.
20350
203512008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20352
20353 * casefiddle.c (casify_object): Try to guess better whether the
20354 argument is a byte or a char.
20355
203562008-05-26 Andreas Schwab <schwab@suse.de>
20357
20358 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20359 Always send multiples of format size.
20360
20361 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20362
203632008-05-26 Jason Rumney <jasonr@gnu.org>
20364
20365 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20366 (compute_metrics): Don't set failure if we just cleared the cache.
20367 (w32_weight_table): Remove unused variable.
20368 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20369 backwards compatibility.
20370
203712008-05-25 Kenichi Handa <handa@m17n.org>
20372
20373 * w32term.c (x_draw_glyph_string):
20374 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20375
20376 * xfaces.c: Delete unused function prototypes.
20377 (xstrlwr, font_frame): Delete them.
20378 (clear_face_cache): Delete unused variable.
20379
20380 * xftfont.c (xftfont_open): Delete unused variable.
20381 If underline_thickness is not 1, adjust underline_position.
20382
20383 * ftxfont.c (ftxfont_open): Delete unused variable.
20384
20385 * fontset.c (face_for_char): Optimize for the case of no charset
20386 property.
20387
20388 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20389 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20390 (otf_open, font_otf_capability, generate_otf_features)
20391 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20392 Comment out by surrounding "#if 0" and "#endif" for the moment.
20393 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20394 (syms_of_font): Codes for accessing above commented out.
20395
203962008-05-24 Eli Zaretskii <eliz@gnu.org>
20397
20398 * w32proc.c: Include dispextern.h.
20399
20400 * w32.c: Include dispextern.h.
20401
204022008-05-23 Juanma Barranquero <lekktu@gmail.com>
20403
20404 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20405 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20406 Fix typos in docstrings.
20407
204082008-05-23 Jason Rumney <jasonr@gnu.org>
20409
20410 * xsmfns.c: Remove includes that are already included by config.h.
20411
204122008-05-23 Kenichi Handa <handa@m17n.org>
20413
20414 * charset.c (Qemacs, charset_emacs): New variables.
20415 (char_charset): Fix for non-Unicode characters.
20416 (syms_of_charset): Define charset_emacs.
20417
20418 * w32term.c (x_draw_glyph_string): Be sure to update
20419 s->underline_thickness and s->underline_position. Be sure to draw
20420 underline within the current line area.
20421
20422 * xterm.c (x_draw_glyph_string): Be sure to update
20423 s->underline_thickness and s->underline_position. Be sure to draw
20424 underline within the current line area.
20425
20426 * fontset.c: Delete unused variables and add casting for char *
20427 throughout the file.
20428 (fontset_font): Try the fallback fonts of the current fontset
20429 before consulting the default fontset.
20430
20431 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20432
20433 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20434
204352008-05-22 Jason Rumney <jasonr@gnu.org>
20436
20437 * font.c: Don't include strings.h.
20438
20439 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20440
20441 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20442 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20443 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20444 to call xstrcasecmp.
20445
20446 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20447
20448 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20449
20450 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20451
20452 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20453
204542008-05-22 Kenichi Handa <handa@m17n.org>
20455
20456 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20457
20458 * font.c (font_prop_validate_style): Adjust for the format
20459 change of font_style_table.
20460
20461 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20462 two args.
20463
20464 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20465 two args.
20466
204672008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20468
20469 * minibuf.c (keys_of_minibuf): Delete.
20470 * lisp.h (keys_of_minibuf): Delete.
20471 * emacs.c (main): Don't call keys_of_minibuf.
20472
204732008-05-22 Kenichi Handa <handa@m17n.org>
20474
20475 * ftfont.c (ftfont_resolve_generic_family): Rename from
20476 ftfont_list_generic_family. Return a single family for each
20477 generic family.
20478 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20479 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20480 Call font_add_log.
20481 (ftfont_match): Call font_add_log.
20482
20483 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20484 (FONT_DEBUG): Define it.
20485 (font_add_log): Extern it.
20486 (font_assert): Rename from xassert.
20487
20488 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20489 (xfont_list_family): Call font_add_log.
20490 (xfont_match): Likewise.
20491 (memq_no_quit): Delete.
20492
20493 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20494 call of Ffont_xlfd_name.
20495
20496 * xfaces.c (struct table_entry, slant_table, weight_table)
20497 (swidth_table): Move to font.c.
20498
20499 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20500 xassert are changed to font_assert. Delete many unused variables.
20501 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20502 New variables.
20503 (struct table_entry): Move from xfaces.c and modified.
20504 (weight_table, slant_table, width_table): Move from xfaces.c and
20505 contents adjusted for the change of struct table_entry.
20506 (font_style_to_value, font_style_symbolic): Adjust for the
20507 format change of font_style_table.
20508 (font_parse_family_registry): Don't overwrite existing foundry and
20509 family of font_spec.
20510 (font_score): Fix calculation of diff for sizes.
20511 (font_sort_entites): Call font_add_log.
20512 (font_delete_unmatched): Return a newly created list.
20513 (font_list_entities): Fix previous change. Call font_add_log.
20514 (font_matching_entity, font_open_entity, font_close_entity):
20515 Call font_add_log.
20516 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20517 (Finternal_set_font_style_table): Delete.
20518 (BUILD_STYLE_TABLE): New macro.
20519 (build_style_table): New function.
20520 (Vfont_log, font_log_env_checked): New variables.
20521 (font_add_log): New function.
20522 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20523 Declare Lisp variables "font-weight-table", "font-slant-table",
20524 "font-width-table", and "font-log". Initialize font_style_table.
20525
205262008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20527
20528 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20529
205302008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 20531 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
20532
20533 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20534 (Vframe_alpha_lower_limit): New variable.
20535 (x_set_alpha): New function.
20536
20537 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20538
20539 * xfns.c (x-create-frame, Qalpha):
20540 Initialize the frame parameter `alpha'.
20541 * xterm.c (OPAQUE, OPACITY): New.
20542 (x_set_frame_alpha): New function.
20543 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20544
20545 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20546 * w32fns.c (w32_frame_parm_handlers): Likewise.
20547
205482008-05-20 Jason Rumney <jasonr@gnu.org>
20549
20550 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20551 truetype fonts to opentype list.
20552
205532008-05-20 Juanma Barranquero <lekktu@gmail.com>
20554
20555 * fontset.c (Ffontset_info): Doc fix.
20556 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20557 <ignore-relative-composition>: Fix typos in docstrings.
20558
20559 * font.c (syms-of-font) <font-encoding-alist>:
20560 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20561 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20562 (Ffont_otf_alternates): Doc fixes.
20563
205642008-05-20 Kenichi Handa <handa@m17n.org>
20565
20566 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20567 font.h through out the file.
20568 (FONT_DRIVERS): Rename from FONTOBJ.
20569 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20570 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20571
20572 * emacs.c (main): Call syms_of_font unconditionally.
20573
20574 * font.h (find_font_encoding): Extern it.
20575
20576 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20577 fontset.c.
194d44e7 20578 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
20579 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20580 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20581 only when HAVE_WINDOW_SYSTEM is defined.
20582 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20583 when HAVE_WINDOW_SYSTEM is defined.
20584
20585 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20586 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20587
20588 * xfaces.c: Include font.h unconditionally.
20589 (merge_face_ref, merge_face_vectors)
20590 (Finternal_set_lisp_face_attribute): Cancel the previous change.
20591
205922008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
20593
20594 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
20595 indirect_variable.
20596 * eval.c (lisp_indirect_variable): New fun.
20597 (Fuser_variable_p): Use it.
20598
205992008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20600
20601 * lisp.h (indirect_variable):
20602 * data.c (indirect_variable, let_shadows_buffer_binding_p):
20603 Use Lisp_Symbol pointers rather than Lisp_Object.
20604 Adjust callers.
20605 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
20606 To this end, change calling-convention.
20607
20608 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
20609 if some non-hidden buffers are selected by string&pred.
20610
206112008-05-19 Chong Yidong <cyd@stupidchicken.com>
20612
20613 * process.c (wait_reading_process_output): Always check status
20614 when in batch mode.
20615
206162008-05-19 Kenichi Handa <handa@m17n.org>
20617
20618 * font.c (font_list_entities): Fix handling of cache.
20619 (font_matching_entity): Likewise.
20620
20621 * ftfont.c (cs_iso8859_1): Delete.
20622 (ft_face_cache): New variable.
20623 (struct ftfont_info): New member fc_charset_idx.
20624 (ftfont_build_basic_charsets): Delete.
20625 (fc_charset_table): New variable.
20626 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
20627 . FC_CHARSET_IDX) as :font-entity property in the font entity.
20628 Callers changed.
20629 (ftfont_lookup_cache, ftfont_get_charset): New functions.
20630 (ftfont_spec_pattern): New argument fc_charset_idx.
20631 Check registry more rigidly. Change callers.
20632 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
20633 change of :font-entity property of the font.
20634
20635 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
20636 property of the font.
20637
206382008-05-18 Juanma Barranquero <lekktu@gmail.com>
20639
20640 * coding.c (Fcoding_system_p): Rename argument to match docstring.
20641 (Funencodable_char_position, Fcheck_coding_systems_region)
20642 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
20643 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
20644 (Ffind_operation_coding_system, Fset_coding_system_priority)
20645 (Fcoding_system_eol_type): Doc fixes.
20646
206472008-05-17 Glenn Morris <rgm@gnu.org>
20648
20649 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
20650
206512008-05-16 Eli Zaretskii <eliz@gnu.org>
20652
20653 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
20654 and st_gid.
20655
20656 * frame.c (Fdelete_frame): Don't call font_update_drivers if
20657 HAVE_WINDOW_SYSTEM is not defined.
20658
20659 * xfaces.c (merge_face_ref, merge_face_vectors)
20660 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
20661 HAVE_WINDOW_SYSTEM is defined.
20662 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
20663
206642008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
20665
20666 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
20667
206682008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20669
20670 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
20671
206722008-05-15 Kenichi Handa <handa@m17n.org>
20673
20674 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
20675 preference.
20676
206772008-05-15 Glenn Morris <rgm@gnu.org>
20678
20679 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
20680
206812008-05-15 Chong Yidong <cyd@stupidchicken.com>
20682
20683 * fns.c (init_fns): Don't initialize weak_hash_tables here.
20684 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
20685
20686 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
20687
206882008-05-15 Kenichi Handa <handa@m17n.org>
20689
20690 * ftfont.c (ftfont_list): Downcase family name to check generic
20691 families.
20692
20693 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
20694 font-spec for QCfont value.
20695
20696 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
20697 buffer. Check the return value of it.
20698
206992008-05-14 Jason Rumney <jasonr@gnu.org>
20700
20701 * w32term.c (w32_get_glyph_overhangs): Remove.
20702 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
20703
207042008-05-14 Kenichi Handa <handa@m17n.org>
20705
20706 * font.c (font_prop_validate): Make nil a valid value.
20707 (font_clear_cache): Check if the cached vector of entities is nil
20708 or not.
20709
207102008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20711
20712 * emacs.c (main_thread): Conditionalize on
20713 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20714 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
20715
20716 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
20717 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
20718 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20719
207202008-05-14 Kenichi Handa <handa@m17n.org>
20721
20722 * coding.c (detect_coding_iso_2022): Ignore a coding category that
20723 has no corresponding coding system.
20724
207252008-05-14 Jason Rumney <jasonr@gnu.org>
20726
20727 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
20728
20729 * w32font.h (w32font_open_internal): Update declaration.
20730
20731 * w32font.c (w32font_open_internal): Change last argument from
20732 w32font_info struct to font object. Fill in font object from
20733 font_entity. Get Outline metrics if possible. Use them to
20734 calculate underline position and thickness. Use xlfd name as name
20735 property. Don't set codepage.
20736 (w32font_open): Pass font_object to w32font_open_internal. Don't
20737 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
20738 (w32font_draw): Use s->font.
20739 (clear_cached_metrics): Don't clear non-existent blocks.
20740
20741 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
20742 font was not found.
20743 (x_draw_glyph_string): Use underline position and thickness from font.
20744
20745 * w32uniscribe.c (uniscribe_open): Pass font_object to
20746 w32font_open_internal.
20747
207482008-05-14 Kenichi Handa <handa@m17n.org>
20749
20750 These changes are to delete all legacy font-handling codes, and
20751 make Emacs use only font-backends.
20752
20753 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
20754 (frame.o, image.o, print.o): Depend on $(FONTSRC).
20755
20756 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
20757
20758 * charset.h (Vcharset_non_preferred_head)
20759 (Vcurrent_iso639_language): Extern them.
20760
20761 * charset.c (Vcharset_non_preferred_head): New variable.
20762 (Vcurrent_iso639_language): New variable.
20763 (syms_of_charset): Declare it as a Lisp variable.
20764 (char_charset): Don't check non preferred charsets. As a last
20765 resort, return charset_unicode.
20766 (Fset_charset_priority): Update Vcharset_non_preferred_head.
20767
20768 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
20769 conditionals. Don't check enable_font_backend. Delete all codes
20770 used only when USE_FONT_BACKEND is not defined.
20771
20772 * dispextern.h (struct glyph_string): Change type of `font' to
20773 `struct font *'.
20774 (struct glyph_string): New member underline_position and
20775 underline_thickness.
20776 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
20777 (struct face): Change type of `font' to `struct font *'.
20778 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
20779 (per_char_metric, encode_char): Delete externs.
20780 (calc_pixel_width_or_height): Adjust the prototype.
20781
20782 * emacs.c (enable_font_backend): Delete extern.
20783 (main): Don't set enable_font_backend. Don't check the command
20784 line argument "-disable-font-backend".
20785
20786 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
20787 (enum font_property_index): New members FONT_DPI_INDEX,
20788 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
20789 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
20790 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
20791 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
20792 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20793 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20794 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20795 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20796 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 20797 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
20798 (struct font): Many members from old "struct font_info" moved to
20799 here. Members font and entity deleted.
20800 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20801 the new font-related objects.
20802 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20803 (CHECK_FONT_GET_OBJECT): Likewise.
20804 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 20805 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
20806 (struct font_driver): New members case_sensitive anc check.
20807 Type of the member list and open changed.
aac0c6e3
MR
20808 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20809 (font_symbolic_width, font_find_object, font_get_spec)
20810 (font_set_lface_from_name): Delete extern.
20811 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20812
20813 * font.c: Include <strings.h>.
20814 (enable_font_backend): Delete it.
20815 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20816 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 20817 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
20818 (null_string): Delete it.
20819 (null_vector): Make it static.
20820 (font_family_alist): Delete it.
20821 (Qnormal): Extern it.
20822 (QCextra, QClanguage): Delete it.
20823 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20824 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 20825 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 20826 the string. Callers changed.
bba3e508 20827 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
20828 objects.
20829 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
20830 (font_style_to_value, font_style_symbolic): New function.
20831 (build_font_family_alist): Delete it.
20832 (font_registry_charsets): Use Fassoc_string instead of
20833 assq_no_quit.
20834 (font_prop_validate_symbol): Don't return null_string.
bba3e508 20835 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
20836 style-related values in a font vector.
20837 (font_property_table): Delete entries for QClanguage and
20838 QCantialias, add entries for QCavgwidth.
20839 (get_font_prop_index): Delete the 2nd argument FROM.
20840 (font_prop_validate): Arguments changed.
bba3e508 20841 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
20842 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
20843 (font_parse_fcname, font_unparse_fcname)
20844 (font_prepare_composition): Likewise.
ef1b0ba7 20845 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 20846 (otf_open): Delete the 1st arg entity.
bba3e508 20847 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
20848 (font_score): New arg alternate_families. Adjusted for the change
20849 of font-related objects.
20850 (font_sort_entites): New arg best_only.
20851 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
20852 Delete them.
20853 (font_match_p): Check alternate families.
20854 (font_find_object): Delete it.
20855 (font_check_object): New function.
bba3e508 20856 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
20857 (font_delete_unmatched): New arg.
20858 (font_list_entities): Call font_driver->list with a spec that
20859 doesn't specify style-related properties.
20860 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 20861 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
20862 (font_close_object, font_has_char, font_encode_char)
20863 (font_get_name, font_get_spec): Likewise.
20864 (font_spec_from_name, font_clear_prop, font_update_lface):
20865 New functions.
20866 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
20867 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 20868 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
20869 (font_range): New function.
20870 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 20871 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 20872 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 20873 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
20874 (Finternal_set_font_style_table): Arguments changed.
20875 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 20876 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
20877 change of font-related objects.
20878 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
20879
20880 * fontset.h (struct font_info): Delete it. Most members go to
20881 struct font.
ef1b0ba7 20882 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
20883 (enum FONT_SPEC_INDEX): Delete it.
20884 (font_info, list_fonts_func, load_font_func, query_font_func)
20885 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
20886 (get_font_repertory_func, new_fontset_from_font_name):
20887 Delete externs.
aac0c6e3
MR
20888 (fontset_from_font_name): Extern it.
20889 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
20890 (FONT_INFO_FROM_FACE): Deleted.
20891 (face_for_font): Adjust prototype.
20892
20893 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
20894 conditionals. Don't check enable_font_backend. Delete all codes
20895 used only when USE_FONT_BACKEND is not defined.
20896 (get_font_info_func, list_font_func, load_font_func)
20897 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
20898 (get_font_repertory_func): Delete them.
20899 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
20900 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
20901 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
20902 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
20903 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
20904 (fontset_compare_rfontdef): New function.
20905 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
20906 rfont-defs by qsort. Adjusted for the change of font-group vector.
20907 (load_font_get_repertory): Deleted.
20908 (fontset_find_font): Use new macros to ref/set elements of
20909 font-def and rfont-def.
20910 (fontset_font): Fix the timing of remembering that no font for C.
20911 (free_face_fontset): Do nothing if the face has no fontset.
20912 (face_suitable_for_char_p): Use new macros to ref/set elements of
20913 rfont-def.
20914 (face_for_char): Likewise. Call face_for_char with font_object.
20915 (fs_load_font): Delete. Delete #pragma surrounding it.
20916 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 20917 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
20918 font-spec.
20919 (Fset_fontset_font): Likewise. Use new macros to set elements of
20920 font-def.
20921 (Fnew_fontset): Use font_unparse_xlfd to generate
20922 FONTSET_ASCII (fontset).
20923 (new_fontset_from_font_name): Deleted.
ef1b0ba7 20924 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
20925 a fontset is already created for the font. FIx updating of
20926 Vfontset_alias_alist.
20927 (fontset_ascii_font): Deleted.
bba3e508 20928 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
20929 (Finternal_char_font): Likewise.
20930 (Ffontset_info): Likewise.
20931 (syms_of_fontset): Don't check load_font_func.
20932
20933 * fns.c (internal_equal): Handle PREV_FONT.
20934
20935 * frame.h: Delete USE_FONT_BACKEND conditional.
20936
20937 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
20938 conditionals. Don't check enable_font_backend. Delete all codes
20939 used only when USE_FONT_BACKEND is not defined.
20940 (x_set_font): Call x_new_font, not x_new_fontset2.
20941 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20942 already set for the frame.
20943
bba3e508
SM
20944 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20945 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
20946 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20947 font property. If a font is scalable, set avgwidth property to 0.
20948 Set font-entity property by font_put_extra.
20949 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 20950 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20951 (ftfont_spec_pattern): New function.
20952 (ftfont_list): Return a list, not vector.
20953 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20954 (ftfont_list_family): Don't downcase names.
20955 (ftfont_free_entity): Deleted.
20956 (ftfont_open): Return a font-object. Adjusted for the change of
20957 struct font. Get underline_thickness and underline_position from
20958 font property. Don't update dpyinfo->smallest_font_height and
20959 dpyinfo->smallest_char_width.
20960 (ftfont_close): Don't free `struct font'.
bba3e508 20961 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
20962 (ftfont_encode_char, ftfont_text_extents): Likewise.
20963
20964 * ftxfont.c (ftxfont_list): Return a list, not vector.
20965 (ftxfont_open): Return a font-object. Adjusted for the change of
20966 struct font. Get underline_thickness and underline_position from
20967 font property. Don't update dpyinfo->smallest_font_height and
20968 dpyinfo->smallest_char_width.
20969 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 20970 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 20971
bba3e508
SM
20972 * image.c (image_ascent): Don't include "charset.h".
20973 Include "character.h" and "font.h".
aac0c6e3
MR
20974
20975 * lisp.h (enum pvec_type): New member PREV_FONT.
20976 (Fassoc_string): EXFUN it.
20977
20978 * print.c: Include font.h.
20979 (print_object): Handle font-related objects.
20980
20981 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20982 conditionals. Don't check enable_font_backend. Delete all codes
20983 used only when USE_FONT_BACKEND is not defined.
20984 (handle_auto_composed_prop): Do nothing if it->f is not on a
20985 window system. Check how many following characters can be
20986 displayed by the same font.
20987 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20988 'struct font *'.
20989 (get_char_face_and_encoding): Assign the whole encoding task to
20990 the `encode-char' method of a font driver.
bba3e508 20991 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
20992 face' and `struct glyph_string'.
20993 (fill_glyph_string): Likewise.
20994 (get_per_char_metric): Arguments changed.
bba3e508 20995 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
20996 and `struct glyph_string'.
20997 (produce_stretch_glyph, calc_line_height_property)
20998 (x_produce_glyphs): Likewise.
20999
21000 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21001 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
21002 used only when USE_FONT_BACKEND is not defined.
21003 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
21004 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21005 (Qp): Extern them.
21006 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21007 Deleted.
21008 (struct font_name): Deleted.
21009 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
21010 (compare_fonts_by_sort_order): New function.
21011 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21012 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21013 Deleted.
21014 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21015 compare_fonts_by_sort_order.
21016 (Fx_font_family_list): Call Ffont_family_list.
21017 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21018 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21019 (face_symbolic_slant, face_symbolic_swidth)
21020 (split_font_name_into_vector, build_font_name_from_vector)
21021 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21022 (font_rescale_ratio, split_font_name, build_font_name)
21023 (free_font_names, sort_fonts, x_face_list_fonts)
21024 (face_font_available_p, sorted_font_list, cmp_font_names)
21025 (font_list_1, concat_font_list, font_list, remove_duplicates):
21026 Deleted.
21027 (Fx_list_fonts): Use Ffont_list.
21028 (LFACE_AVGWIDTH): Deleted.
21029 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21030 by FONTP.
21031 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21032 (set_lface_from_font_name): Delete it.
ef1b0ba7 21033 (set_lface_from_font): Rename from
aac0c6e3
MR
21034 set_lface_from_font_and_fontset. Caller changed. Don't set
21035 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21036 for face.
21037 (merge_face_vectors): Copy font-spec if necessary.
21038 Clear properties of the font-spec if necessary.
21039 (merge_face_ref): Clear properties of the font-spec if necessary.
21040 (Finternal_set_lisp_face_attribute): Likewise.
21041 (set_font_frame_param): Use font_load_for_lface to load a
21042 font-object, and call Fmodify_frame_parameters with it.
21043 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21044 font name by Ffont_xlfd_name.
21045 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21046 QCslant, and QCwidth.
21047 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21048 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21049 Compare fonts by EQ.
21050 (lookup_non_ascii_face): Deleted.
21051 (face_for_font): The 2nd argument changed.
21052 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21053 Check atomic font properties by case insensitive.
21054 (realize_non_ascii_face): Set face->overstrike correctly.
21055 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21056 (dump_realized_face): Get font name from
21057 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21058
21059 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21060 conditionals. Don't check enable_font_backend. Delete all codes
21061 used only when USE_FONT_BACKEND is not defined.
21062 (xic_create_xfontset): Original code deleted and renamed from
21063 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21064 (x_make_gc): Don't set GCFont in GCs.
21065 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21066 opened by "fixed".
21067 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21068 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21069 get_font_repertory_func.
21070
21071 * xfont.c: Include <stdlib.h> and "ccl.h".
21072 (struct xfont_info): New structure.
21073 (xfont_query_font): Deleted.
ef1b0ba7 21074 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 21075 moved from xterm.c.
bba3e508 21076 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 21077 (compare_font_names): New function.
ef1b0ba7
SM
21078 (xfont_list_pattern): Sort font names case insensitively.
21079 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
21080 (xfont_list): Return a list, not vector.
21081 (xfont_match): If the font doesn't have QCname property, generate
21082 a name from the other font properties.
21083 (xfont_open): Return a font-object. Adjusted for the change of
21084 struct font. Get underline_thickness and underline_position from
21085 font property. Don't update dpyinfo->smallest_font_height and
21086 dpyinfo->smallest_char_width.
21087 (xfont_close): Don't free struct font.
bba3e508 21088 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 21089 (xfont_done_face): Deleted.
bba3e508 21090 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
21091 (xfont_encode_char, xfont_draw): Likewise.
21092 (xfont_check): New function.
21093
bba3e508 21094 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 21095 callback function.
bba3e508
SM
21096 (xftfont_match): Adjust for the format change of font-entity.
21097 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
21098 font-object. Adjusted for the change of struct font. Return a
21099 font-object. Don't update dpyinfo->smallest_font_height and
21100 dpyinfo->smallest_char_width.
21101 (xftfont_close): Block input while calling XftFontClose.
21102 (xftfont_prepare_face): Don't block input while calling
21103 xftfont_get_colors. Adjusted for the change of struct font.
21104 (xftfont_shape): Return value of error case fixed.
21105
21106 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21107
21108 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21109 conditionals.
21110 (FONT_WIDTH): Return (f)->max_width.
21111 (struct x_display_info): Delete member `font'.
21112 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21113 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21114 (struct x_output): Change type of `font' to `struct font *'.
21115
21116 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21117 conditionals. Don't check enable_font_backend. Delete all codes
21118 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21119 (x_per_char_metric, x_encode_char): Deleted.
21120 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 21121 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
21122 `struct face'.
21123 (x_draw_glyph_string_foreground)
21124 (x_draw_composite_glyph_string_foreground): Likewise.
21125 (x_draw_glyph_string): Likewise. Use font->underline_position and
21126 font->underline_thickness.
ef1b0ba7 21127 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
21128 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21129 (x_check_font): Call `check' method of a font driver.
21130 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21131 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 21132 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 21133 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
21134 redisplay_interface'.
21135
21136 * w32fns.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 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21141
21142 * w32font.h (struct w32font_info): New member.
21143 (FONT_COMPAT): New macro.
21144 (w32font_open_internal): Prototype adjusted.
21145
21146 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21147 OLD_FONT" and "endif".
21148
21149 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21150 conditionals. Don't check enable_font_backend. Delete all codes
21151 used only when USE_FONT_BACKEND is not defined.
21152 (w32font_open): Return a font-object. Make a font-object by
21153 font_make_object. Adjusted for the change of struct w32font_info.
21154 (w32font_close): Don't free struct font. Adjusted for the change
21155 of struct w32font_info.
21156 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 21157 Adjust for the change of struct w32font_info.
aac0c6e3
MR
21158 (w32font_draw): Likewise.
21159 (w32font_list_internal): Return a list, not vector.
21160 (w32font_open_internal): Change the 4th arg to font-object.
21161 Adjusted for the change of struct w32font_info and font-object format.
21162 (add_font_name_to_list): Don't downcase names.
21163 (w32_enumfont_pattern_entity): Make a font-entity by
21164 font_make_entity. Adjusted for the format change of font-entity.
21165 Use FONT_SET_STYLE to set a style-related font property. If a
21166 font is scalable, set avgwidth property to 0. Set font-entity
21167 property by font_put_extra.
bba3e508 21168 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
21169 (w32_weight_table, w32_decode_weight): New variables.
21170 (w32_encode_weight): New function.
bba3e508 21171 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
21172 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21173 weight value.
bba3e508 21174 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21175
21176 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21177 conditionals. Don't check enable_font_backend. Surround non-used
21178 code by "#ifdef OLD_FONT" and "endif".
21179 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 21180 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
21181
21182 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21183 conditionals. Don't check enable_font_backend. Delete all codes
21184 used only when USE_FONT_BACKEND is not defined. Surround non-used
21185 code by "#ifdef OLD_FONT" and "endif".
21186
21187 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21188 (uniscribe_open): Return value changed to font-object.
21189 Adjusted for the format change of font-object.
bba3e508 21190 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 21191 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 21192 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
21193 font_driver.
21194
211952008-05-13 Chong Yidong <cyd@stupidchicken.com>
21196
21197 * dispnew.c (update_frame_1): Check if tty output is still valid
21198 before flushing it.
21199
212002008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21201
21202 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21203 to Gtk+ menus.
21204
212052008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21206
21207 * dired.c (file_name_completion): Tweak the code so as to always do it
21208 in a single pass. Tighten the scope of some variables.
21209
21210 * dired.c (Qdefault_directory): New var.
21211 (file_name_completion): Use it instead of Fexpand_file_name.
21212 (syms_of_dired): Initialize it.
21213
212142008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21215
21216 * fileio.c (double_dollars): Remove dead code.
21217
212182008-05-10 Eli Zaretskii <eliz@gnu.org>
21219
21220 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21221 Mention w32-get-true-file-attributes in doc string.
21222
21223 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21224
212252008-05-09 Glenn Morris <rgm@gnu.org>
21226
21227 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21228 2008-04-23.
21229
212302008-05-09 Eli Zaretskii <eliz@gnu.org>
21231
21232 Support for reporting owner and group of each file on MS-Windows:
21233 * dired.c (stat_uname, stat_gname): New functions, with special
21234 implementation for w32.
21235 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21236
21237 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21238 (dflt_group_name): New static variable.
21239 (dflt_group): Rename from the_group.
21240 (init_user_info): Init dflt_group fields. Get user's group name
21241 from LookupAccountSid.
21242 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21243 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21244 New initialization states.
21245 (globals_of_w32): Initialize them to zero. Initialize the default
21246 group name to "None".
21247 (GetFileSecurity_Name): New global var, the name of the function
21248 to call for GetFileSecurity.
21249 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21250 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21251 (get_file_security, get_security_descriptor_owner)
21252 (get_security_descriptor_group, is_valid_sid)
21253 (get_file_security_desc, get_rid, get_name_and_id)
21254 (get_file_owner_and_group): New functions.
21255 (stat): Use get_file_security_desc and get_file_owner_and_group to
21256 report the owner and primary group of each file. Don't ignore the
21257 high 32 bits of file's size, now that st_size is 64-bit wide.
21258 Fix test when to get true file attributes.
21259 (init_user_info): Use get_rid instead of equivalent inline code.
21260 (fstat): Don't ignore the high 32 bits of file's size.
21261
212622008-05-09 Chong Yidong <cyd@stupidchicken.com>
21263
21264 * image.c (png_load): Use correct bit-depth for setting background
21265 color.
21266
212672008-05-08 Eli Zaretskii <eliz@gnu.org>
21268
21269 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21270 epa-hook.elc.
21271
212722008-05-08 Juanma Barranquero <lekktu@gmail.com>
21273
21274 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21275
212762008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21277
21278 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21279 because the original parameters are in pure storage now.
21280 (mac_window): Remove unused params. Update callers.
21281
212822008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21283
21284 * lread.c (substitute_object_recurse): Use lower-level primitives.
21285 Don't signal errors when traversing sub-char-tables.
21286 Don't loop over all the possible characters when traversing char-tables.
21287
21288 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21289 just like we do in print.c.
21290
212912008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21292
21293 * minibuf.c (Ftry_completion): Remove code left over from when we used
21294 scmp instead of Fcompare_strings.
21295
212962008-05-04 Juanma Barranquero <lekktu@gmail.com>
21297
21298 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21299
213002008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21301
21302 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21303 Create bitmap context in native byte order.
21304
21305 * macterm.c (XDrawLine)
21306 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21307 context in native byte order.
21308
213092008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21310
21311 * config.in: Regenerate.
21312
21313 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21314 New definitions for Image I/O support.
21315 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21316 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21317 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21318 (mac_data_provider_release_data, image_load_image_io)
21319 [USE_MAC_IMAGE_IO]: New functions.
21320 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21321 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21322 (init_image_func_pointer) [MAC_OSX]: Remove function.
21323 (image_load_quartz2d) [MAC_OSX]: Check availability of
21324 CGImageCreateWithPNGDataProvider at compile time.
21325 Use lowercase `false' for boolean constant.
21326 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21327 Use image_load_image_io.
21328 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21329 Don't check MyCGImageCreateWithPNGDataProvider.
21330 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21331 Don't call init_image_func_pointer.
21332
21333 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21334
21335 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21336 Make variable non-static.
21337 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21338 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21339
21340 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21341 (RED_FROM_ULONG): Mask off higher bits.
21342 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21343
21344 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21345 Include AvailabilityMacros.h.
21346 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21347 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21348
213492008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21350
21351 * chartab.c (Fset_char_table_range): If range is t, really set all
21352 chars to that value.
21353
213542008-05-03 Eli Zaretskii <eliz@gnu.org>
21355
21356 * dired.c (Ffile_attributes): Don't allow the device number become
21357 negative.
21358
213592008-05-02 Daiki Ueno <ueno@unixuser.org>
21360
21361 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21362
213632008-05-02 Juri Linkov <juri@jurta.org>
21364
21365 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21366 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21367 DEFAULT argument as a list of default values in docstrings.
21368
213692008-05-01 Chong Yidong <cyd@stupidchicken.com>
21370
21371 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21372
213732008-05-01 Martin Rudalics <rudalics@gmx.at>
21374
21375 * dispnew.c (change_frame_size_1): Preserve small windows when
21376 shrinking frames by calling set_window_height|width with third
21377 arg 2.
21378
21379 * window.h (struct window): Replace field too_small_ok by field
21380 resize_proportionally.
21381
21382 * window.c (make_window): Initialize resize_proportionally.
21383 (enlarge_window): Temporarily set resize_proportionally to make
21384 sure that shrink_windows does scale the window proportionally.
21385 (shrink_windows): When window has resize_proportionally set try
21386 to shrink it proportionally by stealing from other windows.
21387 (struct saved_window, Fset_window_configuration)
21388 (compare_window_configurations): Handle resize_proportionally.
21389 (WINDOW_TOTAL_SIZE): New macro.
21390 (window_min_size, shrink_windows, size_window): Use it.
21391 (check_min_window_sizes): Remove. Invalid values of
21392 window-min-height|width are handled by window_min_size_2 now.
21393 (size_window, Fsplit_window, enlarge_window)
21394 (adjust_window_trailing_edge, grow_mini_window): Don't call
21395 check_min_window_sizes.
21396 (window_min_size_2, window_min_size_1, window_min_size):
21397 New argument safe_p for retrieving "safe" minimum sizes.
21398 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21399 (adjust_window_trailing_edge, grow_mini_window):
21400 Adjust arguments of window_min_size... functions.
21401 (shrink_windows): Argument min_size removed. New argument
21402 safe_p allows shrinking windows to their safe minimum sizes.
21403 Calculate minimum size and decide whether a window shall be
21404 deleted for each window individually.
21405 (size_window): When nodelete_p equals 2, tell shrink_windows to
21406 delete windows only if their new minimum size is no more safe.
21407 (shrink_window_lowest_first): Call window_min_size_1 to make
21408 sure to preserve modeline of bottom-most window when resizing
21409 the minibuffer.
21410 (Fset_window_configuration, Fcurrent_window_configuration)
21411 (compare_window_configurations): Do not handle
21412 window-min-height|width any more.
21413 (syms_of_window): Clarify window-min-height|width doc-strings.
21414
214152008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21416
21417 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21418 some more. Copy some of the code from Ftry_completions.
21419 Remove special case code that dates back to initial revision when the
21420 slash was only added when necessary and that can't trigger nowadays.
21421
214222008-04-27 Kenichi Handa <handa@m17n.org>
21423
21424 * font.c (font_prop_validate): Signal `error' instead of `font'.
21425
214262008-04-29 Jason Rumney <jasonr@gnu.org>
21427
21428 * w32fns.c (Fw32_battery_status): New defun.
21429 (syms_of_w32fns): Defsubr it.
21430
214312008-04-28 Andreas Schwab <schwab@suse.de>
21432
21433 * dired.c (file_name_completion): Fix another mixing of encoded
21434 and decoded names.
21435
214362008-04-28 Juanma Barranquero <lekktu@gmail.com>
21437
21438 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21439
214402008-04-27 Juanma Barranquero <lekktu@gmail.com>
21441
21442 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21443
214442008-04-27 Andreas Schwab <schwab@suse.de>
21445
21446 * dired.c (file_name_completion): Fix inappropriate mixing of
21447 encoded and decoded names.
21448
21449 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21450
21451 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21452
214532008-04-26 Eli Zaretskii <eliz@gnu.org>
21454
21455 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21456 2008-03-31, it's not needed anymore with `struct stat' definition
21457 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21458 for the same reasons.
21459
214602008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21461
21462 * m/sparc.h: Additional redefinitions for GNU/Linux.
21463
214642008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21465
21466 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21467 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21468 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21469 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21470 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21471 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21472 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21473 Likewise.
21474
21475 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21476 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21477 (mac_ax_number_of_characters): Add externs.
21478 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21479 [USE_MAC_TSM]: Likewise.
21480 (mac_handle_text_input_event) [MAC_OSX]:
21481 Handle kEventTextInputOffsetToPos for no active input area case.
21482 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21483 (mac_handle_document_access_event)
21484 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21485 (install_application_handler) [MAC_OSX]: Register handlers for
21486 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21487 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21488 Register mac_handle_document_access_event.
21489
21490 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21491 Make functions non-static.
21492
214932008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21494
21495 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21496 (read_file_name_completion_ignore_case, insert_default_directory)
21497 (Qdefault_directory): Move to minibuffer.el.
21498 (Fread_file_name): Call the new `read-file-name' instead.
21499
215002008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21501
21502 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21503 Make function non-static.
21504 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21505 Remove function.
21506 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21507 Move to mactoolbox.c.
21508 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21509
21510 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21511 (mac_rect_make): New macro.
21512
21513 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21514 instead of float.
21515 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21516 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21517 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21518 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21519 CGRectMake.
21520 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21521 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21522 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21523 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21524 instead of WindowRef in argument type.
21525 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21526 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21527 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21528 instead of DISPLAY. All uses changed.
21529 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21530 (x_calc_absolute_position): Simplify so as not to use
21531 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21532
21533 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21534 instead of WindowRef in argument type.
21535 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21536 [TARGET_API_MAC_CARBON]: Remove externs.
21537 (create_apple_event, mac_event_parameters_to_lisp)
21538 [TARGET_API_MAC_CARBON]: Add externs.
21539
21540 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21541 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21542 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21543 is clicked.
21544 (x_activate_menubar): Remove extern for saved_menu_event_location.
21545 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21546 Move from mac.c.
21547
215482008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21549
21550 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21551 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21552
215532008-04-23 Jason Rumney <jasonr@gnu.org>
21554
21555 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21556 attributes only for local files.
21557
21558 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21559 default to Qlocal.
21560
215612008-04-22 Juri Linkov <juri@jurta.org>
21562
21563 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21564 read-buffer-to-switch instead of using the letter "B".
21565
215662008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21567
21568 * fileio.c (Qdefault_directory): New variable.
21569 (Fread_file_name): Use it to pass `dir' to the completion functions.
21570
215712008-04-20 Chong Yidong <cyd@stupidchicken.com>
21572
21573 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21574
215752008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21576
21577 * keyboard.c (Vpre_help_message): Remove.
21578 (show_help_echo): Remove default C code.
21579
21580 * dired.c (directory_files_internal, file_name_completion):
21581 Only call ENCODE_FILE if the string is indeed decoded.
21582
215832008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21584
21585 * Makefile.in (TOOLKIT_DEFINES): Remove.
21586 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21587
215882008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21589
21590 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
21591 (mactoolbox.o): New target.
21592
21593 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
21594 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
21595
21596 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
21597 Use mac_set_frame_window_background instead of XSetWindowBackground.
21598 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
21599 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
21600 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
21601 instead of SetWindowTitleWithCFString.
21602 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
21603 Move function to mactoolbox.c.
21604 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
21605 Use mac_set_window_modified instead of SetWindowModified.
21606 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
21607 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21608 (Fx_focus_frame): Use mac_front_non_floating_window instead of
21609 FrontNonFloatingWindow. Use mac_activate_window instead of
21610 ActivateWindow. Use mac_active_non_floating_window instead of
21611 ActiveNonFloatingWindow.
21612 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
21613 Use mac_show_hourglass and mac_hide_hourglass.
21614 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
21615 instead of GetGlobalMouse.
21616 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
21617 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
21618 Use mac_bring_window_to_front instead of BringToFront.
21619 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
21620 mactoolbox.c.
21621 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
21622 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
21623 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
21624 mactoolbox.c.
21625
21626 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
21627 (XtPointer): Move typedef from macmenu.c.
21628 (enum button_type): Move enum from macmenu.c.
21629 (widget_value): Move typedef from macmenu.c.
21630 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
21631 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21632 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21633 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21634 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21635 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21636 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21637 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
21638 (Selection): Move typedef from macselect.c.
21639 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
21640 macterm.c.
21641 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
21642 (mac_is_window_collapsed, mac_bring_window_to_front)
21643 (mac_send_window_behind, mac_hide_window, mac_show_window)
21644 (mac_collapse_window, mac_front_non_floating_window)
21645 (mac_active_non_floating_window, mac_activate_window)
21646 (mac_move_window_structure, mac_move_window, mac_size_window)
21647 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
21648
21649 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
21650 (enum mac_menu_kind): Move enum to mactoolbox.c.
21651 (min_menu_id): Move variable to mactoolbox.c.
21652 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
21653 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
21654 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21655 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21656 [TARGET_API_MAC_CARBON]: Likewise.
21657 (XtPointer): Move typedef to macgui.h.
21658 (enum button_type): Move enum to macgui.h.
21659 (widget_value): Move typedef to macgui.h.
21660 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21661 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21662 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21663 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21664 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21665 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21666 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
21667 (popup_activated_flag): Make variable non-static.
21668 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
21669 (add_menu_item, fill_menu, dispose_menus):
21670 Move functions to mactoolbox.c.
21671 (restore_show_help_function, menu_target_item_handler)
21672 (install_menu_target_item_handler, mac_handle_dialog_event)
21673 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
21674 [TARGET_API_MAC_CARBON]: Likewise.
21675 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
21676 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21677 (find_and_call_menu_selection, name_is_separator): Make function
21678 non-static.
21679 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
21680 to mactoolbox.c.
21681 (set_frame_menubar): Don't call install_menu_quit_handler.
21682 (menu_item_selection): New variable.
21683 (mac_menu_show): Use create_and_show_popup_menu.
21684 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
21685 selection but set variable menu_item_selection. All uses changed.
21686 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
21687 Call install_menu_quit_handler. Move to mactoolbox.c.
21688
21689 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
21690 (Selection): Move typedef to macgui.h.
21691 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
21692 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
21693 Make variables non-static.
21694 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21695 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
21696 Make functions non-static.
21697 (Vmac_service_selection) [MAC_OSX]: Likewise.
21698 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
21699 (mac_valid_selection_target_p, mac_clear_selection)
21700 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21701 (mac_put_selection_value, mac_selection_has_target_p)
21702 (mac_get_selection_value, mac_get_selection_target_list)
21703 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
21704 Move functions to mactoolbox.c.
21705 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
21706 Likewise.
21707 (copy_scrap_flavor_data, mac_handle_service_event)
21708 (install_service_handler) [MAC_OSX]: Likewise.
21709 (syms_of_macselect) <Vmac_dnd_known_types>:
21710 Use mac_dnd_default_known_types.
21711
21712 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
21713 Move to mactoolbox.c.
21714 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
21715 (Fx_selection_owner_p): Add EXFUN.
21716 (install_window_handler, remove_window_handler, XSetWindowBackground):
21717 Remove externs.
21718 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
21719 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
21720 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
21721 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
21722 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
21723 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
21724 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
21725 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
21726 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
21727 (create_and_show_popup_menu, mac_get_selection_from_symbol)
21728 (mac_valid_selection_target_p, mac_clear_selection)
21729 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21730 (mac_put_selection_value, mac_selection_has_target_p)
21731 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
21732 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
21733 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
21734 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21735 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
21736 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21737 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
21738 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21739 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21740
21741 * mactoolbox.c: New file.
21742
217432008-04-18 Jason Rumney <jasonr@gnu.org>
21744
21745 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
21746
217472008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21748
21749 * character.c (Fmultibyte_char_to_unibyte):
21750 Return latin1 chars unchanged.
21751
21752 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
21753 relocated if it points to `name'.
21754
217552008-04-17 Kenichi Handa <handa@m17n.org>
21756
21757 * data.c (Faset): Allow setting a multibyte character in an
21758 ASCII-only unibyte string.
21759
21760 * lisp.h (STRING_SET_MULTIBYTE): New macro.
21761
217622008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
21763
21764 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
21765 done in config.h.
21766
217672008-04-16 Juanma Barranquero <lekktu@gmail.com>
21768
21769 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
21770 (Fchar_direction): Add usage in the docstring.
21771
217722008-04-15 Chong Yidong <cyd@stupidchicken.com>
21773
21774 * keyboard.c (read_key_sequence): Remove always-true checks.
21775
217762008-04-14 Jason Rumney <jasonr@gnu.org>
21777
21778 * w32font.c (w32font_open_internal): Set max_bounds.descent in
21779 compatibility struct, for better underline positioning.
21780
217812008-04-13 David Hansen <david.hansen@gmx.net>
21782
21783 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
21784 string.
21785
217862008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21787
21788 * m/hp800.h (XUINT, XSET): Remove.
21789
217902008-04-12 Juanma Barranquero <lekktu@gmail.com>
21791
21792 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21793 previous change.
21794
217952008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21796
21797 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21798 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21799
218002008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21801
21802 * keymap.h (map_keymap_canonical): Declare.
21803 * xmenu.c (single_keymap_panes): Use it.
21804
218052008-04-11 Glenn Morris <rgm@gnu.org>
21806
21807 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21808 set the target's value to that of the alias.
21809
218102008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21811
21812 * term.c (set_tty_color_mode): Left over typo.
21813
218142008-04-10 Michael Albinus <michael.albinus@gmx.de>
21815
21816 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21817 only after check for file name handler functions. Signal, when
21818 native functionality is not supported.
21819 (syms_of_fileio): Declare it unconditionally.
21820
218212008-04-10 Jason Rumney <jasonr@gnu.org>
21822
21823 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21824 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21825
21826 * w32.c (logon_network_drive): Also logon to remote drives that
21827 are mapped to drive letters.
21828
218292008-04-10 Glenn Morris <rgm@gnu.org>
21830
21831 * xdisp.c (truncate-partial-width-windows): Doc fix.
21832
218332008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
21834
21835 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
21836 Move functions to minibuffer.el.
21837 (syms_of_fileio): Don't declare them.
21838
218392008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21840
21841 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
21842 (syms_of_minibuf): Remove its initialization.
21843
21844 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
21845
218462008-04-09 Juanma Barranquero <lekktu@gmail.com>
21847
21848 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
21849
218502008-04-09 Jason Rumney <jasonr@gnu.org>
21851
21852 * makefile.w32-in (distclean): Delete makefile too.
21853 (maintainer-clean): New target.
21854
21855 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
21856
21857 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
21858 for new font backend and composite cases.
21859
218602008-04-09 Jan Djärv <jan.h.d@swipnet.se>
21861
21862 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
21863 Most of the code moved to run_timers.
21864 (do_pending_atimers): Call run_timers.
21865 (run_timers): New function.
21866
21867 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
21868 run atimers.
21869
21870 * process.c (wait_reading_process_output): The same as above.
21871
218722008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21873
21874 * minibuf.c (last_exact_completion): Remove variable.
21875 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
21876 (complete_and_exit_1, complete_and_exit_2)
21877 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
21878 (Fdisplay_completion_list, display_completion_list_1)
21879 (Fminibuffer_completion_help, Fself_insert_and_exit)
21880 (Fexit_minibuffer, Fminibuffer_message): Move functions to
21881 minibuffer.el.
21882 (syms_of_minibuf): Remove corresponding initializations.
21883
21884 * keyboard.c (Qdeactivate_mark): New var.
21885 (command_loop_1): Use it to call `deactivate-mark'.
21886 (syms_of_keyboard): Initialize it.
21887
21888 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
21889 to another frame.
21890 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
21891 Don't call set_tty_color_mode.
21892 (store_frame_param): Reset previous_frame rather than call
21893 set_tty_color_mode.
21894 * term.c (set_tty_color_mode): Rewrite.
21895 * dispextern.h (set_tty_color_mode): New type.
21896 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
21897
218982008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
21899
21900 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
21901 for generic chars, which do not exist any more in emacs-unicode.
21902
219032008-04-08 Michael Albinus <michael.albinus@gmx.de>
21904
21905 * coding.c (detect_coding_emacs_mule)
21906 (Ffind_operation_coding_system): Fix typo.
21907
219082008-04-08 Jason Rumney <jasonr@gnu.org>
21909
21910 * w32uniscribe.c (SNAME): Extract only symbol name.
21911
21912 * w32font.h (struct w32_metric_cache): New struct.
21913 (w32font_info): Use it.
21914 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
21915 (CACHE_BLOCKSIZE): New constants.
21916
21917 * w32font.c (Qja, Qko, Qzh): New symbols.
21918 (syms_of_w32font): Initialise them.
21919 (font_matches_spec): Use them to filter by language.
21920 (recompute_cached_metrics): Remove function.
21921 (compute_metrics, clear_cached_metrics): New functions.
21922 (w32font_encode_char): Use them to manage metric cache.
21923 (w32font_text_extents): Cache metrics for all glyphs on demand.
21924 Delay converting glyph indices to WORD until needed.
21925 (w32font_open_internal): Initialize metric cache to empty.
21926 (registry_to_w32_charset): Charset should always be a symbol.
21927 (fill_in_logfont, list_all_matching_fonts): Family should
21928 always be a symbol.
21929
219302008-04-06 Jason Rumney <jasonr@gnu.org>
21931
21932 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21933 Give up if glyph indices not supported. Use uniscribe obtained
21934 ABC widths for individual metrics. Map glyph clusters back to
21935 characters using fClusterStart flag. Return number of glyphs
21936 produced, not chars processed.
21937 (uniscribe_shape): Map char at FROM to current glyph.
21938
219392008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21940
21941 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21942 Use SetMenuItemHierarchicalMenu.
21943
219442008-04-05 Jason Rumney <jasonr@gnu.org>
21945
21946 * image.c (pbm_load): Allow color values up to 65535.
21947 Throw an error if max_color_idx is outside the supported range.
21948 Report an error when image size is invalid.
21949 Read two bytes at a time when raw images have max_color_idx above 255.
21950
aac0c6e3
MR
219512008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21952
21953 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21954 append "CCL: Quitted" when the CCL program is quitted.
21955 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21956
21957 * ccl.h (struct ccl_program): New member quit_silently.
21958
219592008-04-05 Chong Yidong <cyd@stupidchicken.com>
21960
21961 * search.c (compile_pattern_1): Treat non-nil and non-string of
21962 search-spaces-regexp as nil.
21963
21964 * minibuf.c (Fassoc_string): Tweak docstring.
21965
219662008-04-05 Eli Zaretskii <eliz@gnu.org>
21967
21968 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21969 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21970 2008-03-14 to force inode be positive.
21971
21972 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21973 _S_* ones, since we now use our own sys/stat.h.
21974 (stat, fstat): Don't mangle the inode number.
21975 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21976
219772008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21978
21979 * frame.h (struct frame): Give one more bit to `visible' since we use
21980 values larger than 1 to indicate obscured frames on ttys.
21981
21982 * keymap.c (Qkeymap_canonicalize): New var.
21983 (Fmap_keymap_internal): New fun.
21984 (describe_map): Use keymap-canonicalize.
21985
21986 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21987 (Fundo_boundary): Set them.
21988 (syms_of_undo): Initialize them.
21989 (record_point): Use them instead of last_point_position*.
21990 (last_undo_buffer): Change type.
21991
219922008-04-04 Jason Rumney <jasonr@gnu.org>
21993
21994 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21995 (recompute_cached_metrics): Don't set ascent and descent per char.
21996
21997 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21998 (uniscribe_check_otf): Add GC protection before consing.
21999 Rearrange loop for counting features.
22000
220012008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22002
22003 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22004 buffer with byte-size of source buffer.
22005
220062008-04-03 Chong Yidong <cyd@stupidchicken.com>
22007
22008 * callint.c (Fcall_interactively): Handle temporary region even
22009 when shift-select-mode is off.
22010
220112008-04-03 Jason Rumney <jasonr@gnu.org>
22012
22013 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22014
220152008-04-03 Kenichi Handa <handa@m17n.org>
22016
22017 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22018 (CATEGORY_MASK_UTF_16): Likewise.
22019 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22020 binary file.
22021 (detect_coding): Add null-byte detection for a binary file.
22022 (detect_coding_system): Likewise.
22023
220242008-04-03 Jason Rumney <jasonr@gnu.org>
22025
22026 * w32uniscribe.c: New file.
22027
22028 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22029
22030 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22031
22032 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22033 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22034 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22035 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22036 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22037 (Qphonetic): New symbols.
22038 (syms_of_w32font): Initialize them.
22039 (font_supported_scripts): Use them.
22040 (w32font_list_family): List all charsets.
22041 (w32font_text_extents, recompute_cached_metrics): Fix metric
22042 calculations.
22043 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22044 Give opentype fonts their own format.
22045 (font_matches_spec): New arguments backend and logfont.
22046 Handle :otf spec for uniscribe backend.
22047 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22048 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22049
22050 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22051 font backend.
22052 (globals_of_w32fns): Initialize uniscribe font backend.
22053
22054 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22055 dependencies.
22056 (w32uniscribe.$(O)): New file to build.
22057 (FONT_OBJ): Include w32uniscribe.$(O).
22058 (LIBS): Add uniscribe libraries.
22059
22060 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22061
220622008-04-02 Chong Yidong <cyd@stupidchicken.com>
22063
22064 * callint.c (Vshift_select_mode): New var.
22065 (Finteractive): Document new ^ spec.
22066 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22067 is present.
22068
22069 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22070 (command_loop_1): Avoid running the direct display versions of
22071 forward-char and backward-char if shift-selection may occur.
22072 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22073 shift-translation takes place.
22074
22075 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22076 avoid clobbering by define-minor-mode.
22077
22078 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22079 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22080
22081 * syntax.c (Fforward_word): Add ^ interactive spec.
22082
22083 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22084 (Fscroll_right): Add ^ interactive spec.
22085
220862008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22087
22088 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22089
22090 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22091
22092 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22093
220942008-03-31 Juri Linkov <juri@jurta.org>
22095
22096 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22097
220982008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22099
22100 * gtkutil.c (xg_set_geometry): Fix indentation.
22101 (xg_resize_outer_widget): Remove.
22102 (x_wm_size_hint_off): Fix indentation.
22103 (xg_frame_set_char_size): Call flush_and_sync after
22104 gtk_window_resize.
22105 (x_wm_set_size_hint): Pass NULL as geometry window to
22106 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22107 Add menu bar and tool bar height to base height.
22108 (xg_update_frame_menubar, free_frame_menubar)
22109 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22110 (update_frame_tool_bar, free_frame_tool_bar):
22111 Change xg_resize_outer_widget to xg_frame_set_char_size.
22112
221132008-03-30 Michael Albinus <michael.albinus@gmx.de>
22114
22115 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22116 (Fdbus_call_method): New parameter TIMEOUT.
22117 (dbus-send-signal): Optimize UNGCPRO call.
22118
221192008-03-29 Juri Linkov <juri@jurta.org>
22120
22121 * window.c (Fdisplay_buffer): Move call to
22122 Vsplit_window_preferred_function out of conditions that check
22123 if window is eligible for vertical splitting.
22124 When Vsplit_window_preferred_function is non-nil, call it and use
22125 its non-nil return value as window. Otherwise, continue doing
22126 vertical splitting using Fsplit_window with arg horflag=nil.
22127 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22128 default value from `split-window' to nil.
22129
221302008-03-29 Juri Linkov <juri@jurta.org>
22131
22132 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22133 for interactive code letters 'b' and 'B'.
22134
221352008-03-29 Eli Zaretskii <eliz@gnu.org>
22136
22137 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22138 multibyte string.
22139
221402008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22141
22142 * keyboard.c (pending_funcalls): New var.
22143 (timer_check): Run it.
22144 (syms_of_keyboard): Initialize it.
22145 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22146 (Vdelete_terminal_functions): New vars.
22147 (syms_of_terminal): Initialize them.
22148 (Fdelete_terminal): Run delete-terminal-functions.
22149 * xdisp.c (safe_eval): Rewrite.
22150 (safe_call2): New fun.
22151 * frame.c (Qdelete_frame_functions): New var.
22152 (syms_of_frame): Initialize it.
22153 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22154 * lisp.h (safe_call2, pending_funcalls): Declare.
22155
221562008-03-28 Andreas Schwab <schwab@suse.de>
22157
22158 * indent.c (Fmove_to_column): Move declaration before statements.
22159
221602008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22161
22162 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22163 (struct frame): Use bit fields for boolean vars.
22164
22165 * process.c (server_accept_connection): Simplify naming.
22166 (emacs_get_tty_pgrp): Use SDATA.
22167
22168 * coding.c (decode_coding_object): Fix last change.
22169
221702008-03-27 Jason Rumney <jasonr@gnu.org>
22171
22172 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22173
221742008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22175
22176 * charset.c (Fdefine_charset_internal): Change the way of
22177 registering charsets in Vcharset_order_list.
22178 (syms_of_charset): Make the charset `eight-bit' supplementary.
22179
221802008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22181
22182 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22183 operations, to avoid having the difference between pointers
22184 overflow.
22185
221862008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22187
22188 * indent.c (check_display_width): New fun.
22189 (scan_for_column): Use it.
22190
22191 * data.c (syms_of_data): Mark most-positive-fixnum and
22192 most-negative-fixnum as constants.
22193
22194 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22195
22196 * indent.c (scan_for_column): Extract from current_column_1.
22197 Merge with the same code from Fmove_to_column.
22198 (current_column_1, Fmove_to_column): Use it.
22199
222002008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22201
22202 * keymap.c (map_keymap_internal): New fun.
22203 (map_keymap): Use it.
22204 (Fmap_keymap_internal): New fun.
22205 (Fmap_keymap): Remove left-out test from before make_save_value.
22206
22207 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22208
22209 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22210 Use XCAR/XCDR.
22211
22212 * process.h (struct Lisp_Process): Remove filter_multibyte.
22213 * process.c (QCfilter_multibyte): Remove.
22214 (setup_process_coding_systems): Don't use filter_multibyte.
22215 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22216 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22217 (Fset_process_filter_multibyte): Change the coding-system to
22218 approximate the previous behavior.
22219 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22220 coding-system.
22221
22222 * coding.c (decode_coding_object): When not decoding into a buffer,
22223 obey the coding system's preference of (uni|multi)byte.
22224
222252008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22226
22227 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22228 every char is changed and has a different byte-length.
22229 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22230 Fix int -> EMACS_INT.
22231
222322008-03-23 David Hansen <david.hansen@gmx.net>
22233
22234 * dbusbind.c (xd_read_message): Remove extra copying of message
22235 strings. Check for NULL `interface' or `member'.
22236
222372008-03-22 Eli Zaretskii <eliz@gnu.org>
22238
22239 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22240 cFileName a file name that includes `?' characters, use the 8+3
22241 alias in cAlternateFileName instead.
22242
222432008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22244
22245 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22246
222472008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22248
22249 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22250 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22251 work on current_buffer only instead (that was already the case
22252 for some of the code anyway).
22253 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22254 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22255 (SET_PT, SET_PT_BOTH): Adjust.
22256 * intervals.h (set_point, temp_set_point, set_point_both)
22257 (temp_set_point_both): Remove redundant declarations.
22258
222592008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22260
22261 * fileio.c (Finsert_file_contents):
22262 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22263 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22264 when buffer != current_buffer anyway.
22265
222662008-03-20 Andreas Schwab <schwab@suse.de>
22267
22268 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22269 as default.
22270
222712008-03-19 Jason Rumney <jasonr@gnu.org>
22272
22273 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22274 (syms_of_w32fns): Initialize them.
22275 (HOURGLASS_ID): New constant.
22276 (x_window_to_frame): Don't check hourglass_window.
22277 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22278 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22279 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22280 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22281 Only change the cursor if hourglass is not active.
22282 (Fx_create_frame): Initialize frame's current_cursor.
22283 (hourglass_atimer): Remove.
22284 (hourglass_started): New function.
22285 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22286 (show_hourglass): Adapt to w32, changing argument to frame.
22287
22288 * w32term.h (struct w32_output): Remove hourglass_window.
22289 Add current_cursor.
22290
22291 * eval.c (call_debugger, Fsignal):
22292 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22293 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22294 (Fexecute_extended_command, cancel_hourglass_unwind):
22295 * minibuf.c (read_minibuf):
22296 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22297
222982008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22299
22300 * window.c (run_funs): New fun.
22301 (run_window_configuration_change_hook): Use it to run the buffer-local
22302 and the global part of the hook.
22303
22304 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22305 (unwind_format_mode_line): Restore selected window.
22306 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22307
223082008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22309
22310 * editfns.c (Fchar_equal): Check they are valid characters.
22311
22312 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22313
223142008-03-17 Andreas Schwab <schwab@suse.de>
22315
22316 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22317 against a charset.
22318
22319 * lisp.h (Fbuffer_list): Declare.
22320
223212008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 22322
aac0c6e3
MR
22323 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22324 handlebox_widget is != 0.
22325
223262008-03-16 Juri Linkov <juri@jurta.org>
22327
22328 * callint.c (Fcall_interactively): For interactive code letters
22329 'b' and 'B' put the buffer list into the list of default "future"
22330 values of the minibuffer.
22331
223322008-03-16 Andreas Schwab <schwab@suse.de>
22333
22334 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22335 modifiers.
22336
22337 * regex.c (re_match_2_internal): Correct matching of a charset
22338 against latin-1 characters.
22339
223402008-03-16 Kenichi Handa <handa@m17n.org>
22341
22342 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22343 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22344 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22345 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22346 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22347 CHAR_STRING_ADVANCE.
22348 (produce_chars): Fix for the case that the source and the
22349 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22350 instead of CHAR_STRING_ADVANCE.
22351 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22352 STRING_CHAR_ADVANCE.
22353
223542008-03-15 Andreas Schwab <schwab@suse.de>
22355
22356 * regex.c (re_match_2_internal): Correct matching of eight bit
22357 characters in unibyte strings.
22358
223592008-03-15 Martin Rudalics <rudalics@gmx.at>
22360
22361 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22362 at end of range when it coincides with the end of the buffer.
22363
223642008-03-14 Eli Zaretskii <eliz@gnu.org>
22365
22366 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22367
22368 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22369
223702008-03-14 Jason Rumney <jasonr@gnu.org>
22371
22372 * editfns.c (initial_tz): New variable.
22373 (syms_of_editfns): Initialize it.
22374 (Fset_time_zone_rule): Set it when first called.
22375 Use it when TZSTRING is nil.
22376
22377 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22378 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22379 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22380 (globals_of_w32fns): Initialize them.
22381 (compute_tip_xy): Use them to position tooltips.
22382
223832008-03-14 Glenn Morris <rgm@gnu.org>
22384
22385 * emacs.c (main): Revert previous change.
22386 (standard_args): Revert -internal-script back to -scriptload,
22387 and remove the long-option form.
22388
223892008-03-13 Glenn Morris <rgm@gnu.org>
22390
22391 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22392 Remove option -enable-font-backend.
22393
223942008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22395
22396 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22397
223982008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22399
22400 * xterm.c (x_connection_closed): For GTK: If this is the last
22401 terminal just exit without closing the display.
22402
224032008-03-11 Jason Rumney <jasonr@gnu.org>
22404
22405 * w32font.c (w32font_full_name): Use floor to round.
22406
f0131492 224072008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
22408
22409 * sound.c (alsa_configure): Declare vol at beginning of block.
22410
22411 * fontset.c (Ffontset_info): Remove extra semicolon.
22412
224132008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22414
22415 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22416 size of resulting string.
22417
224182008-03-10 Jason Rumney <jasonr@gnu.org>
22419
22420 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22421
224222008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22423
22424 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22425 Don't pretend as if characters with display property haven't been
22426 consumed for string-replacing-string case.
22427
224282008-03-08 Kim F. Storm <storm@cua.dk>
22429
22430 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22431 (get_next_display_element, next_element_from_string)
22432 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22433
224342008-03-08 Andreas Schwab <schwab@suse.de>
22435
22436 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22437
224382008-03-06 Jason Rumney <jasonr@gnu.org>
22439
22440 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22441 when charset not specified. Only translate ANSI to unicode when
22442 font_type is truetype.
22443 (w32font_coverage_ok): New function.
22444 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22445
224462008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22447
22448 * lread.c (Fread_char): Resolve modifiers.
22449 (Fread_char_exclusive): Likewise.
22450
22451 * character.c (char_resolve_modifier_mask): New function.
22452 (char_string): Use char_resolve_modifier_mask.
22453 (Fchar_resolve_modifiers): New function.
22454 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22455 function.
22456
224572008-03-04 Jason Rumney <jasonr@gnu.org>
22458
22459 * makefile.w32-in: Always include w32font.c in the build.
22460 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22461
224622008-03-04 Andreas Schwab <schwab@suse.de>
22463
22464 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22465 (versionclean): Likewise.
22466
224672008-03-04 Juanma Barranquero <lekktu@gmail.com>
22468
22469 * .cvsignore: Add oo.
22470
224712008-03-03 Andreas Schwab <schwab@suse.de>
22472
22473 * coding.c (decode_coding_object): Inhibit gap shrinking while
22474 decoding in place.
22475
224762008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22477
22478 * w32term.c: Remove unused include "gnu.h".
22479 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22480
22481 * gnu.h: Rename to ...
22482 * emacs-icon.h: ... this.
22483 * xterm.c: Use emacs-icon.h instead of gnu.h.
22484 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22485
224862008-03-03 Juanma Barranquero <lekktu@gmail.com>
22487
22488 * w32font.c: Include math.h.
22489
224902008-03-03 Jason Rumney <jasonr@gnu.org>
22491
22492 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22493 Compute options separately.
22494 (w32font_open_internal): Set glyph_idx before caching metrics.
22495
22496 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22497 Define if system headers don't.
22498 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22499 (w32font_encode_char): Don't declare here.
22500
22501 * w32font.c (Quniscribe, QCformat): New symbols.
22502 (syms_of_w32font): Define them.
22503 (w32font_has_char): Indicate uncertainty.
22504 (w32font_encode_char): Encode as glyph point. Make static.
22505 (recompute_cached_metrics): New function.
22506 (w32font_open_internal): Use it. Set font to use glyph points
22507 initially. Set format based on type of font.
22508 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22509 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22510 on it. Set format based on information available here.
22511 (add_font_entity_to_list): Identify backend based on opentype_only.
22512
225132008-03-02 Andreas Schwab <schwab@suse.de>
22514
22515 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22516
22517 * coding.c (decode_coding_big5, produce_chars):
22518 Fix typos in last change.
22519
225202008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22521
22522 * gnu.h: New icon.
22523
225242008-03-02 Kenichi Handa <handa@m17n.org>
22525
22526 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22527 `dos', don't decode '\r' if that is the last in the source.
22528 (decode_coding_utf_16, decode_coding_emacs_mule)
22529 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22530 (decode_coding_raw_text, decode_coding_charset): Likewise.
22531 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22532
225332008-03-01 Jason Rumney <jasonr@gnu.org>
22534
22535 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22536
225372008-03-01 Kim F. Storm <storm@cua.dk>
22538
22539 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22540
225412008-03-01 Jason Rumney <jasonr@gnu.org>
22542
22543 * w32font.c (w32font_full_name): New function.
22544 (w32font_open_internal): Use it.
22545
225462008-03-01 Kim F. Storm <storm@cua.dk>
22547
22548 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22549
225502008-03-01 Jason Rumney <jasonr@gnu.org>
22551
22552 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22553
225542008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22555
22556 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22557 xg_frame_resized when the event is for the edit widget.
22558
ef1b0ba7 22559 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
22560
22561 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22562 set_char_size.
ef1b0ba7 22563 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
22564 operations on widgets here. Just set frame size if needed.
22565 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22566 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22567 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22568 the whole frame.
22569 (xg_create_tool_bar): Move attachment of the tool bar to
22570 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22571 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22572
225732008-03-01 Jason Rumney <jasonr@gnu.org>
22574
22575 * w32fns.c (w32_msg_pump): Disable debug code.
22576
225772008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22578
22579 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22580
225812008-02-29 Chong Yidong <cyd@stupidchicken.com>
22582
22583 * xdisp.c (next_overlay_string): Don't set
22584 overlay_strings_at_end_processed_p if we're currently reading from
22585 a display string.
22586
225872008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22588
22589 * xdisp.c (get_overlay_strings_1): Fix typo.
22590
225912008-02-29 Chong Yidong <cyd@stupidchicken.com>
22592
22593 * xdisp.c (get_overlay_strings_1): Add missing argument type.
22594
225952008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
22596
22597 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
22598
22599 * xdisp.c (display_mode_element): Cancel the previous change.
22600 (decode_mode_spec): Likewise.
22601 (handle_auto_composed_prop): Don't make composition if it->string
22602 is a string.
22603
226042008-02-27 Kim F. Storm <storm@cua.dk>
22605
22606 * lisp.h (GLYPH): Change type from int to struct with separate char
22607 and face_id members.
22608 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
22609 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
22610 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
22611 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
22612 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
22613 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
22614 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
22615 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
22616 handle new Lisp glyph code encoding, either an integer or a cons.
22617
22618 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
22619 (GLYPH_ALIAS): Delete.
22620 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
22621 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
22622 (GLYPH_FROM_CHAR): Replace macro by ...
22623 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
22624
22625 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
22626 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
22627 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
22628 (GLYPH_INVALID_P): New macro.
22629 (spec_glyph_lookup_face): Update prototype.
22630
22631 * dispnew.c (line_draw_cost): Adapt to new glyph type.
22632 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
22633 new glyph code encoding.
22634 (spec_glyph_lookup_face): No return value; update passed glyph instead.
22635 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
22636
22637 * xdisp.c (get_next_display_element, next_element_from_display_vector):
22638 Adapt to new glyph type and new glyph code encoding.
22639
22640 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
22641
22642 * indent.c (current_column, current_column_1, Fmove_to_column)
22643 (compute_motion): Adapt to new glyph code encoding.
22644
22645 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
22646
226472008-02-27 Chong Yidong <cyd@stupidchicken.com>
22648
22649 * process.c (wait_reading_process_output): Check for window
22650 changes caused by timers.
22651 Suggested by Johan Bockgård.
22652
226532008-02-27 Glenn Morris <rgm@gnu.org>
22654
22655 * emacs.c (USAGE1): Add `--disable-font-backend'.
22656
226572008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
22658
22659 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
22660 is made to the buffer.
22661
226622008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
22663
22664 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
22665 (face_at_string_position):
22666 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
22667 (face_at_string_position):
22668 * xdisp.c (display_string, next_overlay_change):
22669 * buffer.h (overlays_at):
22670 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
22671 Update callers.
22672
226732008-02-26 Chong Yidong <cyd@stupidchicken.com>
22674
22675 * editfns.c (Fformat): Doc fix.
22676
226772008-02-26 Juanma Barranquero <lekktu@gmail.com>
22678
22679 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
22680 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
22681 (Ffont_otf_alternates, Fquery_font): Doc fixes.
22682
226832008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22684
22685 * buffer.c (Fbuffer_swap_text): New function.
22686 (syms_of_buffer): Defsubr it.
22687
226882008-02-25 Chong Yidong <cyd@stupidchicken.com>
22689
22690 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
22691
226922008-02-25 Jason Rumney <jasonr@gnu.org>
22693
22694 * w32font.c (w32font_draw): Draw one character at a time when padding.
22695
226962008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22697
22698 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
22699 Handle a nil arg. Use run_window_configuration_change_hook.
22700 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
22701 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
22702 Use run_window_configuration_change_hook.
22703
227042008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22705
22706 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
22707 1-pixel width.
22708
227092008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22710
22711 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
22712 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
22713 if the glyph in the font is zero pixel with.
22714
22715 * dispextern.h (struct glyph_string): New member padding_p.
22716
22717 * w32font.c (w32font_draw): Pay attention to s->padding_p.
22718
22719 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
22720
22721 * xfont.c (xfont_draw): Pay attention to s->padding_p.
22722
22723 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
22724
22725 * font.c: If the font driver doesn't have `shape' function, return Qnil.
22726
227272008-02-25 Jason Rumney <jasonr@gnu.org>
22728
22729 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
22730
227312008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
22732
22733 Allow fine-grained image-cache flushing.
22734 * dispextern.h (struct image): Add `dependencies' field.
22735 (clear_image_caches): Change arg to Lisp_Object.
22736 * image.c (make_image): Initialize `dependencies' field.
22737 (clear_image_cache): Change arg to allow fine-grained flushing.
22738 Perform the flush even if image-cache-eviction-delay is nil.
22739 (clear_image_caches): Change arg to Lisp_Object.
22740 (Fclear_image_cache): Expand meaning of the argument.
22741 (mark_image): Mark `dependencies' field.
22742 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
22743 (lface_hash): Use XHASH rather than XFASTINT.
22744 (face_at_buffer_position): Fix int -> EMACS_INT position.
22745 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
22746 (select_frame_for_redisplay): Remove code duplication.
22747 (redisplay_internal): Adapt arg to call to clear_image_caches.
22748
227492008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
22750
22751 * s/vms4-0.h:
22752 * s/vms4-2.h:
22753 * s/vms4-4.h:
22754 * s/vms5-5.h: Remove, unused.
22755
22756 * s/irix5-2.h:
22757 * s/irix6-0.h:
22758 * s/riscos5.h:
22759 * s/mach-bsd4-3.h:
22760 * m/mips4.h: Remove files for obsolete systems.
22761
22762 * Makefile.in:
22763 * filelock.c:
22764 * unexmips.c:
22765 * m/hp9000s300.h:
22766 * m/iris4d.h:
22767 * s/aix3-1.h:
22768 * s/hpux.h:
22769 * s/msdos.h:
22770 * s/usg5-0.h:
22771 * s/usg5-2-2.h:
22772 * s/usg5-2.h:
22773 * s/usg5-3.h: Remove references to obsolete variables.
22774
22775 * s/irix5-0.h: Remove, move all the contents ...
22776 * s/irix6-5.h: ... here. Simplify.
22777 * config.in: Regenerate.
22778
227792008-02-24 Jason Rumney <jasonr@gnu.org>
22780
22781 * w32term.c (x_draw_glyph_string_background): Clear the background
22782 manually when cleartype is in use.
22783 (x_draw_glyph_string_foreground): Draw text transparently when
22784 cleartype is in use.
22785
22786 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
22787 a font into it unless we have to.
22788
227892008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22790
22791 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
22792 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 22793
aac0c6e3
MR
227942008-02-18 Jason Rumney <jasonr@gnu.org>
22795
22796 * w32fns.c (Fw32_shell_execute): Encode parameters.
22797
227982008-02-09 Eli Zaretskii <eliz@gnu.org>
22799
22800 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22801
228022008-02-05 Juanma Barranquero <lekktu@gmail.com>
22803
22804 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22805
228062008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22807
22808 * xterm.c (x_set_offset): Don't change the gravity if
22809 CHANGE_GRAVITY is -1.
22810
228112008-02-23 Chong Yidong <cyd@stupidchicken.com>
22812
22813 * fileio.c (auto_save_error_occurred): New var.
22814 (auto_save_error): Set it.
22815 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22816 error occurred.
22817
228182008-02-23 Eli Zaretskii <eliz@gnu.org>
22819
22820 * w32.c (globals_of_w32): Add initializations for
22821 g_b_init_get_sid_sub_authority and
22822 g_b_init_get_sid_sub_authority_count.
22823
228242008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22825
22826 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
22827 (font_parse_xlfd): Use them for sanity check.
22828 (Finternal_set_font_style_table): Make sure the table is bijective.
22829
22830 Consolidate the image_cache to the terminal struct.
22831 * termhooks.h (P_): Remove redundant def.
22832 (struct terminal): New field `image_cache'.
22833 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
22834 of FRAME_X_IMAGE_CACHE.
22835 * xterm.h (struct x_display_info): Remove image_cache field.
22836 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22837 * w32term.h (struct w32_display_info): Remove image_cache field.
22838 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22839 * macterm.h (struct mac_display_info): Remove image_cache field.
22840 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22841 * xterm.c (x_term_init):
22842 * w32term.c (w32_term_init):
22843 * macterm.c (mac_term_init): Set the image_cache in the terminal.
22844 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
22845 Remove declarations.
22846 (clear_image_caches, mark_image_cache): New declarations.
22847 * xfaces.c (clear_face_cache):
22848 * xdisp.c (redisplay_internal): Use clear_image_caches.
22849 * image.c (clear_image_cache): Don't check that a frame is on
22850 a window-system before checking if it shares the same cache.
22851 (clear_image_caches): New function.
22852 (Fclear_image_cache): Use it.
22853 (mark_image): Move from allo.c.
22854 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
22855 * alloc.c (mark_image, mark_image_cache): Move to image.c.
22856 (mark_object): Don't call mark_image_cache for frames.
22857 (mark_terminals): Call mark_image_cache.
22858
22859 * lisp.h (Fdelete_terminal): Declare.
22860
22861 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
22862 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
22863 wrong_type_argument.
22864
228652008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
22866
22867 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
22868 malayalam.el, and tamil.el. Add sinhala.el.
22869
228702008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
22871
22872 * xterm.c (x_connection_closed): Consolidate identical tests.
22873 (x_delete_terminal): Don't crash if called via x_connection_closed.
22874
228752008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
22876
22877 * xdisp.c (decode_mode_spec): New arg string.
22878 (display_mode_element): Adjust for the above change.
22879
228802008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22881
22882 * callint.c (Fcall_interactively): Use AREF.
22883
228842008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
22885
22886 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
22887
228882008-02-18 Jan Djärv <jan.h.d@swipnet.se>
22889
22890 * xfns.c (Fx_show_tip): Set string to " " if empty.
22891
228922008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
22893
22894 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
22895 with Qt.
22896
228972008-02-17 Kenichi Handa <handa@m17n.org>
22898
22899 * ftfont.c (ftfont_shape): Return Lispy number.
22900
22901 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
22902 for GCs.
22903 (Finternal_set_font_selection_order): Call font_update_sort_order
22904 only when enable_font_backend is set.
22905 (realize_x_face): Set face->font_info to that of default face only
22906 when enable_font_backend is set.
22907
22908 * xdisp.c (handle_composition_prop): Set it->c to the fist
22909 character of the composed region.
22910 (fill_composite_glyph_string): Set base_face->font_info to
22911 s->font_info. Get a face for ascii from base_face->ascii_face.
22912 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
22913 with a face already decided.
22914 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
22915 non-negative.
22916 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
22917 call font_prepare_composition unconditionally.
22918
22919 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
22920
22921 * xterm.h (struct x_display_info): New member font.
22922
22923 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
22924 (x_set_mouse_face_gc, x_new_font): Likewise.
22925 (x_term_init): Setup display_info->font.
22926 (x_delete_terminal): Free display_info->font.
22927
22928 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22929
22930 * ftxfont.c (ftxfont_default_fid): Delete it.
22931 (ftxfont_open): Set xfont->fid to 0.
22932 (ftxfont_end_for_frame): Clear data specific to the frame and the
22933 font-driver.
22934
22935 * xftfont.c (xftfont_default_fid): Delete it.
22936 (xftfont_open): Set xfont->fid to 0.
22937
22938 * fontset.c (FONTSET_OBJLIST): New macro.
22939 (fontset_find_font): Update font-object list of the fontset.
22940 (free_realized_fontset): New function.
22941 (free_face_fontset): Call free_realized_fontset.
22942 (Ffont_info): Call font_close_object only when enable_font_backend
22943 is set.
22944
22945 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22946 [HAVE_NTGUI]: Include w32term.h.
22947 [MAC_OS]: Include macterm.ch.
22948 (font_otf_ValueRecord): Use make_number.
22949 (font_finish_cache): Fix handling of reference count.
22950 (font_clear_cache): Update num_fonts.
22951 (font_open_entity): Update smallest_char_width and
22952 smallest_font_height of the frame.
22953 (font_close_object): Update num_fonts.
22954 (Fclear_font_cache): Fix finding the target cache data.
22955
229562008-02-16 Glenn Morris <rgm@gnu.org>
22957
22958 * fontset.c (Finternal_char_font): Fix compilation warning.
22959
229602008-02-16 Eli Zaretskii <eliz@gnu.org>
22961
22962 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22963 instead of char arrays. Enlarge the size of array passed to
22964 get_token_information.
22965
22966 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22967 warnings.
22968
229692008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22970
22971 * .gdbinit: Don't set `args', it breaks gdb --args.
22972
229732008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22974
22975 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22976 within a narrowed buffer.
22977
229782008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22979
22980 * coding.c (decode_coding_object, encode_coding_object):
22981 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22982
229832008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22984
22985 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22986 hardcoding 1.
22987 (detect_coding_system):
22988 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22989 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22990 * insdel.c (insert_from_gap):
22991 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22992 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22993 (string_to_multibyte):
22994 * character.c (chars_in_text, multibyte_chars_in_text):
22995 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22996
22997 * character.h (FETCH_STRING_CHAR_ADVANCE)
22998 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22999 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23000 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23001
23002 * casefiddle.c (casify_region): Only call after-change and composition
23003 functions on the part of the region that was changed.
23004
23005 * keyboard.c (read_avail_input):
23006 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23007
230082008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23009
23010 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23011 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23012
230132008-02-11 Juanma Barranquero <lekktu@gmail.com>
23014
23015 * w32menu.c (push_submenu_start, push_submenu_end)
23016 (push_left_right_boundary, push_menu_pane, push_menu_item):
23017 * keyboard.c (read_key_sequence): Don't pass args with side effects
23018 to AREF, it fails when compiling with -DENABLE_CHECKING.
23019
230202008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23021
23022 * Makefile.in (${lispsource}international/charprop.el):
23023 Delete this target.
23024
23025 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23026 emacs-unicode-2.
23027
230282008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23029
23030 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23031
230322008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23033
23034 * frame.c (Qnoelisp): New symbol.
23035 (syms_of_frame): Initialize it.
23036 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23037 harmless Elisp code, from a strong `force' from x_connection_closed.
23038 * frame.h (Qnoelisp): Declare.
23039 * xterm.c (x_connection_closed): Pass `noelisp'.
23040
23041 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23042 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23043 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23044 rather than `int' for the type of `type'.
23045
230462008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23047
23048 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23049
23050 * Makefile.in (GNUC): Remove support for gcc-1.x.
23051
230522008-02-10 Richard Stallman <rms@gnu.org>
23053
23054 * lisp.h (ASET): Use AREF, not ASLOT.
23055
230562008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23057
23058 * lisp.h (ASET): Check bounds.
23059
230602008-02-10 Glenn Morris <rgm@gnu.org>
23061
23062 * buffer.c (mode-name): Doc fix.
23063
230642008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23065
23066 * Makefile.in:
23067 * emacs.c:
23068 * gmalloc.c:
23069 * keyboard.c:
23070 * lisp.h:
23071 * m/ibm370aix.h:
23072 * process.c:
23073 * regex.c:
23074 * s/hpux.h:
23075 * sysdep.c:
23076 * sysselect.h:
23077 * systty.h:
23078 * unexec.c:
23079 * w32term.c:
23080 * xsmfns.c:
23081 * xterm.c: Remove code that deals with obsolete variables.
23082
23083 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23084
23085 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23086 nothing else needs it anymore.
23087
230882008-02-09 Eli Zaretskii <eliz@gnu.org>
23089
23090 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23091 instead of unibyte_char_to_multibyte.
23092
230932008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23094
23095 * s/gnu-linux.h: Remove commented out code.
23096
23097 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23098
23099 * Makefile.in: Update what RMS says about using autoconf.
23100 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23101 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23102 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23103 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23104
231052008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23106
23107 * keymap.c (Fkey_description): Move side effect outside of macro call.
23108
23109 * xfaces.c (Finternal_make_lisp_face):
23110 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23111
23112 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23113 (syms_of_fontset): Use ASET.
23114
23115 * fns.c (concat): Move side effect outside of macro call.
23116 (hash_clear): Use ASET.
23117
231182008-02-08 Richard Stallman <rms@gnu.org>
23119
23120 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23121 If FORCE, and frame has a surrogate minibuffer for another frame,
23122 delete the other frame first.
23123
231242008-02-07 Timo Savola <timo.savola@iki.fi>
23125
23126 * xterm.c (x_detect_focus_change): Handle embed client message.
23127 (handle_one_xevent): Ditto.
23128 (handle_one_xevent): If embedded and we get a button press/release,
23129 request focus.
23130 (xembed_set_info, xembed_send_message): New functions.
23131 (x_make_frame_visible): Call xembed_set_info if embedded.
23132 (x_make_frame_invisible): Call xembed_set_info if embedded.
23133 (x_term_init): Initialize Xatom_XEMBED.
23134 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23135 (x_iconify_frame): Ditto.
23136
23137 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23138 (enum xembed_info, enum xembed_message, enum xembed_focus)
23139 (enum xembed_modifier, enum xembed_accelerator): New.
23140 (xembed_set_info, xembed_send_message): Declare.
23141 (FRAME_X_EMBEDDED_P): New.
23142
23143 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23144 gtk_plug_new.
23145
23146 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23147 window ID of a frame.
23148 (x_window): Reparent frame if embedded.
23149 (Fx_create_frame): Don't set border width if embedded.
23150
23151 * emacs.c (USAGE3): Add --parent-id.
23152 (standard_args): Ditto.
23153
231542008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23155
23156 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23157
231582008-02-07 Jim Meyering <meyering@redhat.com>
23159
23160 Use "do...while (0)", not "if (1)...else" in macro definitions.
23161 The latter provokes a warning from gcc about the empty else, when
23162 followed by ";". Also, without that trailing semicolon, it would
23163 silently swallow up any following statement.
23164 * syntax.h (SETUP_SYNTAX_TABLE)
23165 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23166 * buffer.h (DECODE_POSITION): Likewise.
23167 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23168 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23169 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23170 (FETCH_CHAR_ADVANCE): Likewise.
23171 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23172
231732008-02-07 Jim Meyering <meyering@redhat.com>
23174
23175 * lread.c [lint]: Don't include <sys/inode.h>.
23176
231772008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23178
23179 * xselect.c (x_handle_dnd_message):
23180 * xmenu.c (digest_single_submenu, xmenu_show):
23181 * xdisp.c (with_echo_area_buffer_unwind_data)
23182 (format_mode_line_unwind_data, unwind_format_mode_line)
23183 (display_menu_bar):
23184 * eval.c (Ffetch_bytecode):
23185 * doc.c (store_function_docstring):
23186 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23187 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23188 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23189
231902008-02-07 Kenichi Handa <handa@m17n.org>
23191
23192 * ftxfont.c (ftxfont_open): Don't set
23193 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23194
23195 * ftfont.c (ftfont_open): Fix previous change.
23196
231972008-02-06 Jason Rumney <jasonr@gnu.org>
23198
23199 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23200 Use cached metrics for ASCII characters.
23201 (w32font_open_internal): Don't set font's owning_frame.
23202 Cache metrics for ASCII characters.
23203
23204 * w32font.h (struct w32font_info): Add ascii_metrics.
23205 Remove owning_frame.
23206
232072008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23208
23209 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23210 to negative value.
23211
23212 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23213
23214 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23215
23216 * charset.c (syms_of_charset): Set QCtest and Qeq.
23217
232182008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23219
23220 * process.c (Fstart_process):
23221 * callproc.c (Fcall_process): Handle the case where
23222 Funhandled_file_name_directory returns nil.
23223
23224 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23225 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23226 * font.c (check_gstring): Use them and AREF to access the vector before
23227 we know it's really a gstring.
23228 (Ffont_shape_text): Fix typo.
46e722a9 23229 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
23230
23231 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23232 Declare.
23233
23234 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23235
232362008-02-05 Jason Rumney <jasonr@gnu.org>
23237
23238 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23239 Set smallest_font_height and smallest_char_width in display info.
23240
232412008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23242
23243 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23244
232452008-02-05 Miles Bader <miles@gnu.org>
23246
23247 * xfaces.c (get_lface_attributes, merge_named_face)
23248 (lookup_named_face, lookup_derived_face, realize_named_face):
23249 Revert 2008-02-01 change by cyd@stupidchicken.com.
23250
232512008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23252
23253 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23254 fallback fonts.
23255 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23256
232572008-02-04 Jason Rumney <jasonr@gnu.org>
23258
23259 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23260 set full_name.
23261 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23262
232632008-02-03 Jason Rumney <jasonr@gnu.org>
23264
23265 * makefile.w32-in (OBJ1): Include font.o here.
23266 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23267
232682008-02-02 Jason Rumney <jasonr@gnu.org>
23269
23270 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23271
232722008-02-01 Jason Rumney <jasonr@gnu.org>
23273
23274 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23275
23276 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23277
232782008-02-01 Andreas Schwab <schwab@suse.de>
23279
23280 * Makefile.in (shortlisp, lisp): Update for rename of
23281 ../lisp/language/myanmar.el.
23282
232832008-02-01 Chong Yidong <cyd@stupidchicken.com>
23284
23285 * xfaces.c (get_lface_attributes): Delete function.
23286 (merge_named_face, lookup_named_face, lookup_derived_face)
23287 (realize_named_face): Call lface_from_face_name directly, and use
23288 the fact that merge_face_vectors does not alter its FROM argument.
23289
232902008-02-01 Jason Rumney <jasonr@gnu.org>
23291
23292 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23293 input in the default locale. Handle non-Unicode multibyte input.
23294
232952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23296
23297 * fontset.c (reorder_font_vector): Exclude nil elements from the
23298 font group. Don't try multiple fonts.
23299 (fontset_font): Adjust for the above change.
23300 (Finternal_char_font): Return nil if the found font doesn't
23301 contain the character ch.
23302
23303 * Makefile.in (lisp, shortlisp): Add cham.el.
23304
233052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23306
23307 * font.h (FONTP): Make it return 1 also for a font-object.
23308
23309 * .gdbinit (xfontset): New function.
23310
23311 * font.c (font_find_for_lface): Check if the character C is
23312 supported or not only for the first font.
23313
23314 * fontset.c (reorder_font_vector): Fix typo.
23315 (fontset_find_font): Don't add a font-spec specifying a script.
23316 Use 0 (not Qt) for the indication of empty font-group. Change the
23317 format of RFONT-DEF. Return Qt if no font in the font-group
23318 support the character.
23319 (fontset_font): Adjust for the above change. If no font was
23320 found the character, remember that.
23321 (face_for_char): Adjust for the change of RFONT-DEF.
23322 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23323 no font for the target.
23324 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23325
233262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23327
23328 * font.c (font_load_for_face): Handle the case that the font in
23329 face->lface is a string.
23330
233312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23332
23333 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23334
233352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23336
23337 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23338 Fix previous change. If the frame is not on a window system,
23339 signal an error.
23340
233412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23342
bba3e508
SM
23343 * coding.c (decode_coding_object, encode_coding_object):
23344 Adjust marker positions after conversion.
aac0c6e3
MR
23345
23346 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23347
233482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23349
23350 * font.c (font_find_for_lface): Fix the handling of the return
23351 value of font_has_char.
23352 (Ffont_shape_text): Fix previous change.
23353
23354 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23355 (fontset_ref_and_range): Delete it.
23356 (fontset_find_font): Call char_table_ref_and_range instead of
23357 FONTSET_REF_AND_RANGE.
23358 (make_fontset): Don't setup font groups of Latin here.
23359 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23360 (new_fontset_from_font): Make the specified font the default for
23361 all Latin characters.
23362
233632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23364
23365 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23366 is on a window system before accessing the fontset of the frame.
23367
233682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23369
23370 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23371
23372 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23373 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23374
23375 * font.c (Ffont_shape_text): If the font driver doesn't have a
23376 shaper function, make zero-width glyphs to have at least one-pixel
23377 width. Fix setting of `to' field of glyphs.
23378
233792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23380
23381 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23382 glyphs.
23383
23384 * font.h (struct font_driver): Improve docstring of member `shape'.
23385
233862008-02-01 Kenichi Handa <handa@m17n.org>
23387
23388 * composite.c (syms_of_composite): Fix docstring of
23389 auto-composition-function.
23390
23391 * font.h (LGLYPH_SIZE): New macro.
23392
23393 * font.c (Ffont_fill_gstring): Stop filling when a character not
23394 supported by the font is found.
23395 (Ffont_shape_text): When a shape callback function returns nil,
23396 try at most two more times with larger gstring.
23397 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23398
23399 * xdisp.c (handle_auto_composed_prop): Change the argument to
23400 auto-composition-function.
23401
23402 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23403 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23404 Lispy glyph and store it in the lgstring.
23405
23406 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23407
23408 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23409
234102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23411
23412 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23413
23414 * fontset.c (Vfont_encoding_charset_alist): New variable.
23415 (syms_of_fontset): DEFVAR it.
23416 (reorder_font_vector, fontset_find_font): Optimize for the case of
23417 no need of reordering.
23418 (face_for_char): Map the charset property by
23419 Vfont_encoding_charset_alist.
23420
234212008-02-01 Jason Rumney <jasonr@gnu.org>
23422
23423 * w32font.c (logfonts_match): Don't check adstyle here.
23424 (font_matches_spec): Check here against physical font instead.
23425 (add_font_entity_to_list): Avoid some substitutions.
23426
23427 * font.c (font_parse_fcname): Default weight and slant to normal.
23428 (font_score): Prefer normal fonts if weight or slant unspecified.
23429 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23430 match freetype scores.
23431
234322008-02-01 Jason Rumney <jasonr@gnu.org>
23433
23434 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23435 font, as it may have been deleted.
23436 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23437 most common hyphenless variation.
23438 (logfonts_match): Check generic family.
23439 (font_matches_spec): Don't check generic family here.
23440 (fill_in_logfont): Set generic family based on adstyle.
23441
23442 * w32font.h (w32font_get_cache): Update declaration.
23443
234442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23445
23446 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23447
23448 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23449 If none of the new drivers are available, call font_update_drivers
23450 with the old drivers.
23451
23452 * w32font.c (w32font_get_cache): Adjust the argument type.
23453
23454 * xfont.c (xfont_get_cache): Adjust the argument type.
23455
23456 * font.h (struct font_driver): Change argument type of get_cache.
23457
23458 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23459
23460 * font.c (Ffont_get): Fix arguments to Fassoc.
23461 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23462 (font_clear_cache): New function.
23463 (font_list_entities, font_matching_entity): Use font_get_cache.
23464 (font_update_drivers): Call font_clear_cache when finishing a driver.
23465
23466 * fontset.c (fontset_find_font): Fix previous change.
23467
234682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23469
23470 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23471 dpyinfo->font_table.
23472 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23473 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23474
23475 * font.c (font_at): Handle the case that the arg C is negative.
23476 Handle the unibyte case.
23477 (Ffont_at): Call font_at with the arg C -1.
23478
23479 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23480 the position here, and call font_at with the arg C -1.
23481 Don't check the range of the existing composition at the point.
23482
234832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23484
23485 * fontset.c (fontset_add): New args charset_id and family.
23486 Change caller.
23487 (load_font_get_repertory, fontset_find_font): Assume that
23488 font_spec is always a font-spec object.
23489 (Fset_fontset_font): Always store a font-spec object in a fontset.
23490
23491 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23492 instead of get_property_and_range.
23493
234942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23495
23496 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23497 (xftfont_open): Don't keep locking face.
23498 (xftfont_close): Don't unlock face.
23499 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23500
23501 * fontset.c (fontset_find_font): Don't prefer a font of
23502 supplementary charset.
23503
235042008-02-01 Kenichi Handa <handa@m17n.org>
23505
23506 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23507 script, langsys_tag to langsys, new member script.
23508 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 23509 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
23510 listing to the script specified in that property. Fix arg to
23511 OTF_check_features.
23512
235132008-02-01 Jason Rumney <jasonr@gnu.org>
23514
23515 * w32font.h: New file.
23516
23517 * w32font.c: Include it.
23518 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23519 (w32font_open): Set owning_frame.
23520 (w32font_text_extents): Use owning_frame.
23521 (struct font_callback_data): Add opentype_only field.
23522 (add_font_entity_to_list): Use it to filter fonts.
23523 Don't check against full name.
23524 (w32font_list_internal): New function.
23525 (w32font_list): Use it.
23526 (w32font_match_internal): New function.
23527 (w32font_match): Use it.
23528 (w32font_open_internal): New function.
23529 (w32font_open): Use it.
23530 (w32font_get_cache, w32font_close, w32font_has_char)
23531 (w32font_encode_char, w32font_text_extents, w32font_draw):
23532 Make non-static.
23533
23534 * makefile.w32-in (w32font.o): Depend on w32font.h.
23535
235362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23537
23538 * charset.c (Fdefine_charset_internal): Record a supplementary
23539 charset at the tail of Vcharset_order_list.
23540
23541 * font.c (Ffont_shape_text): Fix the return value.
23542
23543 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23544
23545 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23546
235472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23548
23549 * ftfont.c (struct OpenTypeSpec): New struct.
23550 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23551 (ftfont_get_open_type_spec): New function.
23552 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23553
23554 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23555
235562008-02-01 Jason Rumney <jasonr@gnu.org>
23557
23558 * w32font.c (add_font_entity_to_list): Compare only the beginning
23559 of full name.
23560
235612008-02-01 Kenichi Handa <handa@m17n.org>
23562
23563 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23564 Never return HANDLED_RECOMPUTE_PROPS.
23565
235662008-02-01 Kenichi Handa <handa@m17n.org>
23567
23568 * font.c (font_gstring_produce): Delete it.
23569
23570 * composite.h (COMPOSITION_METHOD):
23571 Handle COMPOSITION_WITH_GLYPH_STRING.
23572
235732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23574
23575 * xfont.c (Qx): Delete.
23576 (syms_of_xfont): Don't initialize Qx.
23577
23578 * composite.h (enum composition_method):
23579 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23580
235812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23582
23583 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23584 (choose_face_font): Accept new form of font-spec.
23585
23586 * frame.h (font_driver_list): Declare it unconditionally.
23587 (struct frame): Define members font_driver_list and font_data_list
23588 unconditionally.
23589
23590 * fontset.c: Include "font.h" unconditionally.
23591 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
23592 (Fset_fontset_font): Accept a font-spec object.
23593
23594 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
23595 PIXEL_SIZE part a wild card.
23596
23597 * dispextern.h (struct glyph_string): Define members clip and
23598 num_clips unconditionally.
23599 (struct face): Define members font_info and extra unconditionally.
23600
23601 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
23602 ftfont_info only when HAVE_LIBOTF is defined.
23603
236042008-02-01 Andreas Schwab <schwab@suse.de>
23605
23606 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
23607 and end.
23608
236092008-02-01 Jason Rumney <jasonr@gnu.org>
23610
23611 * w32font.c (w32font_driver): Add new fields.
23612
236132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23614
23615 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
23616 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
23617 (LIBES): Add @M17N_FLT_CFLAGS@.
23618
23619 * composite.c (compose_text): Don't treat the new style
23620 composition specially.
23621
23622 * emacs.c (main): Call syms_of_font unconditionally.
23623
23624 * font.h (FONT_ENTITY_NOT_LOADABLE)
23625 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
23626 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
23627 (struct font_driver): New member shape.
23628 (font_registry_charsets): Extern it.
23629 (font_find_for_lface, font_prepare_composition): Adjust prototype.
23630 (font_otf_capability, font_drive_otf): Delete their externs.
23631
23632 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
23633 (font_charset_alist, font_registry_charsets): Move from xfont.c
23634 and rename.
23635 (font_prop_validate_otf): New function.
23636 (font_property_table): Register it for QCotf.
23637 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
23638 (font_drive_otf): Delete.
23639 (font_prepare_composition): New arg F. Adjust for the change of
23640 lispy gstring.
23641 (font_find_for_lface): New arg C.
23642 (font_load_for_face): Adjust for the change of font_find_for_lface.
23643 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
23644 lispy gstring.
23645 (Ffont_shape_text): New function.
23646 (Fopen_font): If the font size is not given, use 12-pixel.
23647 (Ffont_at): New arg STRING.
40b1a3a9 23648 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
23649 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
23650 conditionally.
23651
23652 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
23653 fonts of the same font-spec. Change the format of RFONT-DEF.
23654 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
23655 Adjust for the change of RFONT-DEF.
23656 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
23657
23658 * ftfont.h: New file.
23659
23660 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
23661 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23662 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23663 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
23664 font_otf_capability and font_drive_otf, set ftfont_shape.
23665 (ftfont_list): Adjust for the change of :otf property value.
23666 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
23667 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
23668 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
23669 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23670 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
23671 (otf_gstring, gstring, m17n_flt_initialized): New variables.
23672
23673 * w32term.c (x_draw_composite_glyph_string_foreground):
23674 Adjust for the change of lispy gstring.
23675
23676 * xdisp.c (handle_composition_prop): Adjust for the change of
23677 lispy gstring. Call a function for auto-composition with the
23678 third arg it->window.
23679 (fill_composite_glyph_string): Adjust for the change of lispy string.
23680 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
23681
23682 * xfaces.c (set_font_frame_param): Adjust for the change of
23683 font_find_for_lface.
23684
23685 * xfont.c (x_font_charset_alist): Move to font.c and rename.
23686 (xfont_registry_charsets): Likewise. Change caller.
23687 (syms_of_xfont): Don't handle x_font_charset_alist.
23688
23689 * xftfont.c: Include "ftfont.h".
23690 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23691 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23692 (xftfont_close) [HAVE_LIBOTF]: Close otf.
23693 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23694 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
23695 Set xftfont_driver.shape to xftfont_shape.
23696
23697 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23698 the change of lispy gstring.
23699
237002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23701
23702 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
23703
237042008-02-01 Jason Rumney <jasonr@gnu.org>
23705
23706 * w32font.c (w32font_draw): Fill background manually.
23707
237082008-02-01 Jason Rumney <jasonr@gnu.org>
23709
23710 * font.c (Qfontp): Remove unused symbol.
23711 (QCantialias): New symbol.
23712 (syms_of_font): Define it.
23713 (font_property_table): Set a validator for QCantialias.
23714
23715 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
23716 Define if not already.
23717 (QCfamily): Share with xfaces.c.
23718 (Qstandard, Qsubpixel, Qnatural): New symbols.
23719 (syms_of_w32font): Define them. Don't define QCfamily here.
23720 (w32_antialias_type, lispy_antialias_type): New functions.
23721 (w32_enumfont_pattern_entity): New arg requested_font.
23722 Set antialias parameter if non-default was requested.
23723 (fill_in_logfont): Fill in lfQuality if :antialias specified.
23724
237252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23726
23727 * lread.c (read1): Undo the previous change.
23728
237292008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
23730
23731 * frame.c (Fdelete_frame): Call font_update_drivers only when
23732 USE_FONT_BACKEND is defined.
23733
237342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23735
23736 * font.h (struct font_bitmap): New member bits_per_pixel.
23737 (struct font_driver): New members start_for_frame and end_for_frame.
23738 (struct font_data_list): New struct.
23739 (font_put_frame_data, font_get_frame_data): Extern them.
23740
23741 * frame.h (struct frame): New member font_data_list.
23742
23743 * font.c (font_update_drivers): Call driver->start_for_frame and
23744 driver->end_for_frame at proper timings.
23745 (font_put_frame_data, font_get_frame_data): New functions.
23746 (Ffont_spec): Add usage in the docstring.
23747
23748 * frame.c (make_frame): Initialize f->font_data_list to NULL.
23749 (Fdelete_frame): Call font_update_drivers.
23750
23751 * xftfont.c (struct xftface_info): Delete the member xft_draw.
23752 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
23753 (xftfont_get_xft_draw): New function.
23754 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
23755 (xftfont_end_for_frame): New function.
23756 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
23757
23758 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
23759 Change argument. Cache GCs in the per-frame data.
23760 (struct ftxfont_frame_data): New struct.
23761 (ftxfont_draw_bitmap): New arg gc_fore and flush.
23762 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
23763 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
23764 (ftxfont_end_for_frame): New function.
23765 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
23766
23767 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
23768
237692008-02-01 Kenichi Handa <handa@m17n.org>
23770
23771 * xselect.c (Vselection_coding_system)
23772 (Vnext_selection_coding_system): Delete them.
23773 (syms_of_xselect): Don't declare selection-coding-system and
23774 next-selection-coding-system. They are declared in select.el.
23775
237762008-02-01 Jason Rumney <jasonr@gnu.org>
23777
23778 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
23779
23780 * w32fns.c: Include imm.h.
23781 (get_composition_string_fn, get_ime_context_fn): New optional
23782 system functions.
23783 (globals_of_w32fns): Load them from imm32.dll.
23784 (ignore_ime_char): New flag.
23785 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
23786 WM_IME_ENDCOMPOSITION messages.
23787
23788 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
23789 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
23790
237912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23792
23793 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23794 (READCHAR_REPORT_MULTIBYTE): New macro.
23795 (readchar): New 2nd arg MULTIBYTE.
23796 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23797 Make symbol's name multibyte according to the multibyteness of the
23798 source.
23799
238002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23801
23802 * xfaces.c (face_for_overlay_string): Call lookup_face with
23803 correct arguments (fix of synching with the trunk).
23804
238052008-02-01 Kenichi Handa <handa@m17n.org>
23806
23807 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23808 (font_prop_validate_non_neg, font_prop_validate_spacing):
23809 Delete argument prop_index.
23810 (font_property_table): Change arguments to validater. Change Callers.
23811 (font_lispy_object): Delete.
23812 (font_at): Use font_find_object instead fo font_lispy_object.
23813
238142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23815
23816 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23817 and file names.
23818
238192008-02-01 Jason Rumney <jasonr@gnu.org>
23820
23821 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23822 (font_matches_spec): Remove debug output.
23823 (add_font_entity_to_list): Avoid using substituted fonts.
23824
238252008-02-01 Jason Rumney <jasonr@gnu.org>
23826
23827 * doc.c (Fsnarf_documentation):
23828 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
23829
238302008-02-01 Miles Bader <miles@gnu.org>
23831
23832 * dispextern.h (struct glyph_row): Only define "clip" field if
23833 HAVE_WINDOW_SYSTEM is defined.
23834
238352008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23836
23837 Fix up multi-tty merge.
23838
23839 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
23840 and indentation.
23841
23842 * xfaces.c (free_realized_face, clear_face_gcs):
23843 Include font_done_for_face in the input_blocked section, just in case.
23844
23845 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
23846 (get_char_face_and_encoding): Undo last change and remove the *other*
23847 duplicate definition (i.e. keep the one that's better scoped and that
23848 includes code for the font-backend).
23849
23850 * terminal.c (create_terminal): Default keyboard_coding to
23851 `no-conversion' and terminal_coding to `undecided'.
23852
23853 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
23854
23855 * fontset.c (free_realized_fontsets): Check that the table entry does
23856 contain a fontset before trying to compare it to `base'.
23857
23858 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
23859 syms_of_charset, and syms_of_coding earlier because init_window_once
23860 now needs Vcoding_system_hash_table to be setup.
23861
23862 * coding.h (default_buffer_file_coding): Remove.
23863
23864 * coding.c (default_buffer_file_coding): Remove.
23865 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
23866 than ->symbol, and use the terminal-local coding system.
23867 (syms_of_coding): Don't setup the coding-systems that are not
23868 terminal-local.
23869 (Fdefine_coding_system_internal): Use XCAR/XCDR.
23870
23871 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
23872 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
23873
23874 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
23875 in chartab.c and were re-added here by mistake.
23876 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
23877
23878 * doc.c (Fsnarf_documentation):
23879 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
23880 src to etc.
23881
23882 * ChangeLog.10: Add mistakenly removed entry.
23883
238842008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
23885
23886 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
23887
238882008-02-01 Miles Bader <miles@gnu.org>
23889
23890 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
23891 Add extra args to FACE_FOR_CHAR.
23892
238932008-02-01 Kenichi Handa <handa@m17n.org>
23894
23895 * keymap.c (where_is_internal_1): If key is a cons, store the copy
23896 in sequence.
23897
23898 * chartab.c (map_sub_char_table, map_char_table): If the range
23899 contains just one character, call the function with that character
23900 even if the depth is not 3.
23901
239022008-02-01 Jason Rumney <jasonr@gnu.org>
23903
23904 * w32font.c (w32font_text_extents): Calculate metrics for the
23905 whole string.
23906
239072008-02-01 Jason Rumney <jasonr@gnu.org>
23908
23909 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
23910
239112008-02-01 Jason Rumney <jasonr@gnu.org>
23912
bba3e508
SM
23913 * w32term.c (x_set_glyph_string_clipping):
23914 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23915 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23916 Adjust for the change of struct glyph_string.
23917
23918 * w32font.c (w32font_draw): Do clipping here.
23919
239202008-02-01 Kenichi Handa <handa@m17n.org>
23921
23922 * xftfont.c (xftfont_draw): Adjust for the change of struct
23923 glyph_string.
23924
bba3e508
SM
23925 * xterm.c (x_set_glyph_string_clipping):
23926 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23927 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23928 Adjust for the change of struct glyph_string.
23929
23930 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23931 the resulting clip(s}.
23932 (expose_overlaps): Add arg r. Change callers. Set it to
23933 row->clip temporarily.
23934 (expose_window): Redraw rows overlapping the exposed area.
23935
23936 * dispextern.h (struct glyph_row): New member clip.
23937 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23938 clip_height, new member clip, and num_clips.
23939
239402008-02-01 Kenichi Handa <handa@m17n.org>
23941
23942 * data.c (Fchar_or_string_p): Fix docstring.
23943
239442008-02-01 Kenichi Handa <handa@m17n.org>
23945
23946 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23947 create a temporary XftDraw object.
23948
239492008-02-01 Kenichi Handa <handa@m17n.org>
23950
23951 * font.c (Ffontp): Fix docstring.
23952
23953 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23954 strong evidence of ISO-2022.
23955
239562008-02-01 Kenichi Handa <handa@m17n.org>
23957
23958 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23959 SYNTAX_ENTRY_FOLLOW_PARENT.
23960
239612008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23962
23963 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23964 its type.
23965 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23966 Update to the new type of weak_hash_tables and next_weak.
23967
23968 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23969 a plain C pointer to Lisp_Hash_Table.
23970
23971 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23972 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23973 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23974 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23975 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23976 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23977 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23978 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23979 (GC_EQ): Remove since they've been identical to their non-GC_
23980 alter-egos ever since the markbit was eradicated.
23981
23982 * alloc.c:
23983 * buffer.c:
23984 * buffer.h:
23985 * data.c:
23986 * fileio.c:
23987 * filelock.c:
23988 * fns.c:
23989 * frame.h:
23990 * lisp.h:
23991 * macterm.c:
23992 * print.c:
23993 * process.c:
23994 * w32fns.c:
23995 * w32menu.c:
23996 * w32term.c:
23997 * xfns.c:
23998 * xmenu.c:
23999 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24000
240012008-02-01 Kenichi Handa <handa@m17n.org>
24002
24003 * chartab.c (map_sub_char_table): Make it work for the top-level
24004 char-table. Fix handling of parent char-table.
24005 (map_char_table): Adjust for the above change.
24006
240072008-02-01 Jason Rumney <jasonr@gnu.org>
24008
24009 * w32font.c (Qgdi): Rename from Qw32.
24010
240112008-02-01 Jason Rumney <jasonr@gnu.org>
24012
24013 * w32bdf.c (get_quoted_string): Make function static.
24014
240152008-02-01 Kenichi Handa <handa@m17n.org>
24016
24017 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24018 bigger ascent and descent than those of the font, use them as
24019 font's ascent and descent.
24020
240212008-02-01 Kenichi Handa <handa@m17n.org>
24022
24023 * Makefile.in (${lispsource}international/charprop.el): Move this
24024 target within "#ifdef HAVE_UNIDATA" and "#endif".
24025
240262008-02-01 Kenichi Handa <handa@m17n.org>
24027
24028 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24029 (shortlisp): Add ../lisp/language/tai-viet.el.
24030
240312008-02-01 Ulrich Mueller <ulm@gentoo.org>
24032
24033 * Makefile.in (${lispsource}international/charprop.el): Depend on
24034 temacs${EXEEXT}.
24035
240362008-02-01 Jason Rumney <jasonr@gnu.org>
24037
24038 * w32font.c (w32font_close): Delete the GDI font object.
24039
24040 * w32menu.c: Include character.h.
24041
24042 * w32proc.c: Likewise.
24043
24044 * w32select.c: Likewise.
24045
24046 * makefile.w32-in (w32proc.o): Depend on character.h.
24047
240482008-02-01 Jason Rumney <jasonr@gnu.org>
24049
24050 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24051
24052 * w32menu.c (syms_of_w32menu): Likewise.
24053
24054 * w32proc.c (syms_of_ntproc): Likewise.
24055
24056 * w32select.c (syms_of_w32select): Likewise.
24057
24058 * w32term.c (syms_of_w32term): Likewise.
24059
240602008-02-01 Jason Rumney <jasonr@gnu.org>
24061
24062 * w32font.c (w32font_draw): Delete brush after using it.
24063
240642008-02-01 Jason Rumney <jasonr@gnu.org>
24065
24066 * w32font.c (w32font_open): Don't set font_idx.
24067 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24068 to font settings.
24069 (w32font_draw): Fill background explicitly.
24070
240712008-02-01 Jason Rumney <jasonr@gnu.org>
24072
24073 * w32term.c (w32_initialize): Don't call w32font_initialize.
24074
24075 * w32font.c (w32font_info): Remove subranges.
24076 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24077 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24078 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24079 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24080 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24081 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24082 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24083 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24084 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24085 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24086 New symbols.
24087 (font_callback_data): New struct.
24088 (w32font_list, w32font_match): Use it.
24089 (w32font_open): Don't populate subranges.
24090 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24091 (w32font_encode_char): Always return unicode code-point as-is.
24092 (w32font_text_extents): Supply a transformation matrix to
24093 GetGlyphOutline. Never look up by glyph index. Avoid looping
24094 twice. Use unicode version of GetTexExtentPoint32 instead of
24095 glyph index version.
24096 (set_fonts_frame): Remove.
24097 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24098 set frame parameter. Use backward compatible fake foundries.
24099 Save generic family in extra slot under QCfamily. Make width slot
24100 constant. Save QCspacing value. Save list of scripts instead of
24101 binary subranges.
24102 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
24103 (add_font_entity_to_list): Use font_callback_data struct.
24104 Filter unwanted fonts.
aac0c6e3
MR
24105 (add_one_font_entity_to_list): Use font_callback_data struct.
24106 (w32_registry): Default to iso10646_1.
24107 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24108 string font registries. Don't fill in font name if it is a generic
24109 family name, fill family instead. Use spacing, family and script
24110 extra info to fill pitch, family and charset fields.
24111 (list_all_matching_fonts): Use font_callback_data struct.
24112 (unicode_range_for_char): Remove.
24113 (font_supported_scripts): New function.
24114 (w32font_initialize): Remove.
24115 (syms_of_w32font): Update which symbols are defined.
24116
241172008-02-01 Jason Rumney <jasonr@gnu.org>
24118
24119 * font.c (font_pixel_size): Reverse assq_no_quit args.
24120
24121 * w32term.h (FONT_WIDTH): Report max width, not average.
24122 (FONT_MAX_WIDTH): Remove.
24123 (FONT_AVG_WIDTH): New macro.
24124
24125 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24126 redefinition of FONT_WIDTH.
24127
24128 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24129 (w32_cache_char_metrics): Use FONT_WIDTH.
24130
24131 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24132
241332008-02-01 Jason Rumney <jasonr@gnu.org>
24134
24135 * w32font.c (w32font_open): Make lfHeight negative.
24136
24137 * w32fns.c (x_default_font_parameter): Use new style font name.
24138 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24139
241402008-02-01 Jason Rumney <jasonr@gnu.org>
24141
24142 * w32font.c (QCsubranges): New symbol.
24143 (w32font_open, w32font_has_char): Get subranges from subproperty
24144 of extra.
24145 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24146 (syms_of_w32font): Define :subranges symbol.
24147
24148 * font.c (font_put_extra): Expose externally.
24149
24150 * font.h (font_put_extra): Move declaration from font.c.
24151
24152 * font.c (Ffont_get): Use font driver to determine otf capability.
24153 (adjust_anchor): Check if driver defines anchor_point before using.
24154
24155 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24156 (w32font_draw): Use options.
24157 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24158 Fix detection of truetype fonts.
24159 (registry_to_w32_charset): Handle charsets other than iso8859-1
24160 expressed as lisp symbols.
24161 (w32_registry): Express charset as lisp symbol.
24162 (fill_in_logfont): Reverse pixel and point height logic.
24163 Don't set width here. Set quality to default.
24164
24165 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24166 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24167
24168 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24169 Remove redundant loop and allocation.
24170
24171 * makefile.w32-in (font.o, w32font.o): New objects.
24172 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24173 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24174
24175 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24176 STORE_XCHARB a valid l-value.
24177
24178 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24179 calculations for non-Truetype fonts.
24180 (x_draw_glyph_string): Sync with xterm.c.
24181 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24182 Remove redundant code.
24183 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24184
24185 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24186 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24187
24188 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24189 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24190
24191 * w32font.c: New file for w32 font backend.
24192
241932008-02-01 Kenichi Handa <handa@m17n.org>
24194
24195 * term.c: Don't include "buffer.h" twice.
24196
241972008-02-01 Kenichi Handa <handa@m17n.org>
24198
24199 * character.c (Funibyte_string): New function.
24200 (syms_of_character): Defsubr it.
24201
242022008-02-01 Jason Rumney <jasonr@gnu.org>
24203
24204 * w32term.c [USE_FONT_BACKEND]:
24205 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24206 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24207 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24208 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24209 (x_free_frame_resources): Sync with xterm.c.
24210
242112008-02-01 Andreas Schwab <schwab@suse.de>
24212
24213 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24214 char-table size.
24215
242162008-02-01 Kenichi Handa <handa@m17n.org>
24217
24218 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24219
242202008-02-01 Kenichi Handa <handa@m17n.org>
24221
24222 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24223 font_otf_gpos, add font_drive_otf.
24224
24225 * fontset.c (fontset_find_font): Pay attention to font size
24226 specified for a font.
24227 (reorder_font_vector): Check contents of font_def.
24228
24229 * font.c (struct otf_list): Delete it.
24230 (otf_list): Make it a lisp variable.
24231 (otf_open): Use lispy otf_list.
24232 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24233 (check_otf_features): New function.
24234 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24235 New functions.
24236 (font_drive_otf): New function merging font_otf_gsub and
24237 font_otf_gpos.
24238 (font_open_for_lface): New arg spec. Change argument order.
24239 (font_load_for_face): Adjust for the change of font_open_for_lface.
24240 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24241 Ffont_otf_gpos.
24242 (syms_of_font): Staticpro otf_list. Delete defsubr of
24243 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24244
24245 * xfaces.c (set_font_frame_param): Adjust for the change of
24246 font_open_for_lface.
24247
24248 * font.h (font_open_for_lface): Adjust prototype.
24249 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24250 member otf_drive.
24251 (font_otf_gsub, font_otf_gpos): Delete externs.
24252 (font_drive_otf): Extern it.
24253
242542008-02-01 Kenichi Handa <handa@m17n.org>
24255
24256 * font.c (font_at): If the window W is not on a window system,
24257 return Qnil.
24258
24259 * coding.c (produce_chars, encode_coding): Don't call
24260 insert_from_gap if no characters to produce.
24261
242622008-02-01 Kenichi Handa <handa@m17n.org>
24263
24264 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24265 Fclear_face_cache.
24266
24267 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24268
242692008-02-01 Miles Bader <miles@gnu.org>
24270
24271 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24272 Parse "--disable-font-backend" option.
24273 (standard_args): Add "--disable-font-backend" option.
24274
242752008-02-01 Kenichi Handa <handa@m17n.org>
24276
24277 * fontset.c (fontset_find_font): New function.
24278 (fontset_font): Use fontset_find_font.
24279 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24280 Register the specified font for all Latin characters.
24281 (new_fontset_from_font): Register the specified font for all Latin
24282 characters.
24283 (dump_fontset): For a realized fontset, include the base fontset
24284 name in the returned vector.
24285
242862008-02-01 Kenichi Handa <handa@m17n.org>
24287
24288 * character.h (CHAR_STRING): Cast C to unsigned on calling
24289 char_string.
24290
24291 * character.c (char_string): Type of arg C changed to unsigned.
24292 Signal an error if C is an invalid character code.
24293
24294 * editfns.c (general_insert_function, Fchar_to_string):
24295 Use CHARACTERP, not INTEGERP.
24296
242972008-02-01 Kenichi Handa <handa@m17n.org>
24298
24299 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24300 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24301
24302 * regex.c (analyse_first): Fix for multibyte characters in "case
24303 charset:" and "case categoryspec:".
24304
243052008-02-01 Andreas Schwab <schwab@suse.de>
24306
24307 * Makefile.in (LIBES): Move standard libraries to the end.
24308
243092008-02-01 Kenichi Handa <handa@m17n.org>
24310
24311 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24312 nonzero, don't shrink the buffer nextb.
24313
24314 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24315
24316 * coding.c (coding_alloc_by_making_gap): New arg offset.
24317 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24318 offset.
24319 (decode_coding_iso_2022): Update coding->safe_charsets.
24320 (decode_coding_gap): Temporarily set
24321 current_buffer->text->inhibit_shrinking to 1.
24322
243232008-02-01 Kenichi Handa <handa@m17n.org>
24324
bba3e508
SM
24325 * xterm.c (x_draw_composite_glyph_string_foreground):
24326 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
24327
243282008-02-01 Juanma Barranquero <lekktu@gmail.com>
24329
24330 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24331
243322008-02-01 Kenichi Handa <handa@m17n.org>
24333
24334 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24335 target_multibyte instead of multibyte.
24336 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24337 (bcmp_translate): Change the argument name from multibyte to
24338 target_multibyte.
24339
243402008-02-01 Kenichi Handa <handa@m17n.org>
24341
24342 These changes are to compile a regexp into a pattern that can be
24343 used both for multibyte and unibyte targets.
24344
24345 * Makefile.in (search.o): Depend on charset.h.
24346
24347 * character.c (multibyte_char_to_unibyte_safe): New function.
24348
24349 * search.c: Include "charset.h".
24350 (compile_pattern_1): Delete argument multibyte. Don't set
24351 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24352 (compile_pattern): Don't compare cp->buf.target_multibyte.
24353 Compare cp->buf.charset_unibyte.
24354 (compile_pattern): Set cp->buf.target_multibyte.
24355
24356 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24357
24358 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24359
24360 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24361 multibyte. Change callers.
24362 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24363 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24364 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24365 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24366 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24367 (regex_compile): Make the compiled pattern usable both for
24368 multibyte and unibyte targets.
24369 (analyse_first): Make the fastmap usable both for multibyte and
24370 unibyte targets.
24371 (TRANSLATE_VIA_MULTIBYTE): Delete.
24372 (re_match_2_internal): Pay attention to the case that the
24373 multibyteness of bufp and target may be different.
24374
243752008-02-01 Kenichi Handa <handa@m17n.org>
24376
24377 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24378 empty box occupy at least one column width.
24379
243802008-02-01 Miles Bader <miles@gnu.org>
24381
24382 * Makefile.in: Remove redundant HAVE_XFT clause.
24383
243842008-02-01 Kenichi Handa <handa@m17n.org>
24385
24386 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24387
243882008-02-01 Kenichi Handa <handa@m17n.org>
24389
24390 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24391 being nil.
24392
243932008-02-01 Kenichi Handa <handa@m17n.org>
24394
24395 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24396
243972008-02-01 Kenichi Handa <handa@m17n.org>
24398
24399 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24400
244012008-02-01 Kenichi Handa <handa@m17n.org>
24402
24403 * search.c (simple_search): Fix previous change.
24404
244052008-02-01 Kenichi Handa <handa@m17n.org>
24406
24407 * xftfont.c (ftfont_font_format): Extern declaration.
24408
24409 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24410
24411 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24412 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24413
24414 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24415 (ftfont_font_format): Fix previous change.
24416
24417 * font.h (Ffont_xlfd_name): EXFUN it.
24418
24419 * font.c (font_parse_xlfd): Fix the array size of `f'.
24420 (register_font_driver): Use EQ to compare driver->type.
24421
24422 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24423 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24424 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24425
244262008-02-01 Kenichi Handa <handa@m17n.org>
24427
24428 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24429 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24430
244312008-02-01 Kenichi Handa <handa@m17n.org>
24432
24433 * xfont.c (xfont_open): Set font->format.
24434
24435 * xftfont.c (xftfont_open): Set font->format.
24436
24437 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24438 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24439 (ftfont_open): Set font->format.
24440 (ftfont_font_format): New function.
24441
24442 * font.h (struct font): New member format.
24443
24444 * font.c (Qopentype): New variable.
24445 (syms_of_font): Defsym it.
24446 (Fquery_font): Change the format of the last element of the return
24447 value.
24448
244492008-02-01 Kenichi Handa <handa@m17n.org>
24450
24451 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24452 last resort.
24453
244542008-02-01 Kenichi Handa <handa@m17n.org>
24455
24456 * coding.c (detect_coding_charset): Fix detection of multi-byte
24457 charset.
24458
244592008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24460
24461 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24462
244632008-02-01 Kenichi Handa <handa@m17n.org>
24464
24465 * xdisp.c (get_next_display_element): Set it->face_id for the
24466 first component of a composition.
24467 (x_produce_glyphs): Check if the font is changed or not for composition.
24468
244692008-02-01 Kenichi Handa <handa@m17n.org>
24470
24471 * fontset.c (Qlatin): New variable.
24472 (syms_of_fontset): Define it as a lisp symbol.
24473 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24474
244752008-02-01 Kenichi Handa <handa@m17n.org>
24476
24477 * font.c (font_unparse_fcname): Pay attention to the case that
24478 some of font property is a null string.
24479
244802008-02-01 Kenichi Handa <handa@m17n.org>
24481
24482 * term.c: Include "composite.h".
24483 (encode_terminal_code): Output all components of composition.
24484 Check the size of encode_terminal_src.
24485 (produce_glyphs): For composition, call produce_composite_glyph.
24486 (append_composite_glyph, produce_composite_glyph): New functions.
24487
24488 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24489 is not found, get font_info from the current ascii face.
24490
244912008-02-01 Kenichi Handa <handa@m17n.org>
24492
24493 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24494 buffer-file-name to Qnil before calling insert_from_buffer.
24495
24496 * font.c (font_unparse_fcname): Pay attention to the case that
24497 foundry is a null string.
24498
244992008-02-01 Kenichi Handa <handa@m17n.org>
24500
24501 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24502
24503 * font.c (Qunicode_sip): New variable.
24504 (syms_of_font): Declare it as a Lisp symbol.
24505
24506 * font.h (Qunicode_sip): Extern it.
24507
245082008-02-01 Kenichi Handa <handa@m17n.org>
24509
24510 * composite.c (get_composition_id): Pay attention to TAB component.
24511
24512 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24513 TAB. Adjust for the change of s->char2b which always points to
24514 the first element of allocated memory.
24515
24516 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24517
24518 * xdisp.c (handle_composition_prop): Set it->c to the first
24519 non-TAB component.
24520 (fill_composite_glyph_string): Change argument.
24521 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24522 (x_produce_glyphs): Fix handling of left/right padding.
24523
245242008-02-01 Kenichi Handa <handa@m17n.org>
24525
24526 * coding.c (detect_coding_system): Fix for handling off
24527 inhibit_iso_escape_detection. Fix for the case that no coding
24528 system is defined for a specific coding category.
24529
245302008-02-01 Kenichi Handa <handa@m17n.org>
24531
24532 * font.c (font_matching_entity): Delete unused local var.
24533
24534 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24535 opening a font.
24536
24537 * fileio.c (Finsert_file_contents): On recovering a file, assume
24538 Unix-like eol.
24539 (choose_write_coding_system): On auto-saving a file, force
24540 Unix-like eol.
24541
24542 * coding.c (setup_coding_system): Fix setting of
24543 coding->common_flags based on eol_type.
24544 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24545 inherit from it.
24546
245472008-02-01 Kenichi Handa <handa@m17n.org>
24548
24549 * alloc.c (NSTATICS): Increas to 0x600.
24550
245512008-02-01 Kenichi Handa <handa@m17n.org>
24552
24553 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24554 (ftfont_list): Don't check :name property.
24555 (ftfont_match): New function.
24556 (ftfont_pattern_entity): If the pattern doesn't contain
24557 FC_SPACING, don't assume FC_MONO.
24558
24559 * font.h (struct font_driver): New member `match'.
24560 (font_update_drivers): Adjust prototype.
24561
24562 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24563 property of FONT.
bba3e508
SM
24564 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24565 Define them unconditionally.
aac0c6e3
MR
24566 (font_matching_entity): New function.
24567 (font_open_by_name): Try font_matching_entity if exact match is
24568 not found.
24569 (font_update_drivers): Delete the arg FONT. Return a list of
24570 actually used backends. Don't free faces, font caches here.
24571 Don't store data in frame parameters. Don't call x_set_font.
24572 (Ffont_spec): Store :name property as is.
24573 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24574 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24575 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24576 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24577 Call font->driver->otf_gsub instead of font_otf_gsub.
24578
24579 * frame.c (x_set_font_backend): Do more works that were done in
24580 font_update_drivers before.
24581
24582 * xfont.c (xfont_match): New function.
24583 (xfont_driver): Set xfont_driver.match to xfont_match.
24584 (xfont_draw): Set font in GC if necessary.
24585
24586 * ftxfont.c (ftxfont_match): New function.
24587 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24588
24589 * xftfont.c (xftfont_match): New function.
24590 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
24591
245922008-02-01 Kenichi Handa <handa@m17n.org>
24593
24594 * font.h (struct font): New member scalable.
24595 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
24596 (font_otf_gsub): Adjust prototype.
24597
24598 * font.c (font_otf_capability): Fix handling of the default langsys.
24599 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
24600 Check the contents of SPEC.
24601 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
24602 (check_gstring): New function.
24603 (REPLACEMENT_CHARACTER): New macro.
24604 (font_otf_gsub): New arg alternate_subst. Be sure to set all
24605 glyph codes of GSTRING.
24606 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
24607 (font_prepare_composition): Set cmp->glyph_len.
24608 (font_open_entity): Set font->scalable.
24609 (Ffont_get): Handle :otf property.
bba3e508
SM
24610 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
24611 New functions.
aac0c6e3
MR
24612 (Fquery_font): Use font->font.full_name.
24613 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
24614 Sfont_otf_alternates.
24615
24616 * ftfont.c (ftfont_open): Set font->font.full_name and
24617 font->font.name properly. Fix calculation of font->font.height
24618 and font->min_width.
24619
24620 * ftxfont.c (ftxfont_create_gcs): New function.
24621 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
24622 (ftxfont_draw_backgrond): Fix filling region.
24623 (ftxfont_default_fid): New function.
24624 (ftxfont_open): Set xfont->fid to the return value of
24625 ftxfont_default_fid.
24626 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
24627 (ftxfont_done_face): Free only GCs that are created by
24628 ftxfont_create_gcs.
24629 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
24630
24631 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
24632 Clip to src->width, etc (not src->clip_XXX).
24633
24634 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
24635 FontBackend frame parameter.
24636
246372008-02-01 Kenichi Handa <handa@m17n.org>
24638
24639 * font.h (struct font_driver_list): New member `on'.
24640 (Fclear_font_cache): EXFUN it.
24641 (font_update_drivers): Extern it.
24642
24643 * font.c (font_unparse_fcname): Fix typo (swidth->width).
24644 (font_list_entities): Check driver_list->on.
40b1a3a9 24645 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
24646 (font_update_drivers): New function.
24647 (Fclear_font_cache): Check driver_list->on.
24648
24649 * frame.h (Qfont_backend): Extern it.
24650 (x_set_font_backend): Extern it.
24651
24652 * frame.c (Qfont_backend): New variable.
24653 (frame_parms): New element for font-backend.
24654 (x_set_font_backend): New function.
24655
24656 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
24657 FontBackend frame parameter.
24658 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
24659 x_set_font_backend.
24660
24661 * xfont.c (xfont_list): Don't try listing by :name property if the
24662 name is not for XLFD.
24663
246642008-02-01 Kenichi Handa <handa@m17n.org>
24665
24666 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
24667 (LGLYPH_SET_TO): New macros.
24668 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
24669 element of G is vector or not.
24670 (font_at): Extern it.
24671
24672 * font.c: Include window.h.
24673 (font_lispy_object): New function.
24674 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
24675 end of valid glyph.
24676 (font_close_object): Fix getting (struct font *).
24677 (font_at): New function.
24678 (Ffont_get): If FONT is a font-object, get entity from it.
24679 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
24680 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
24681 Fix range check.
aac0c6e3
MR
24682 (Ffont_at): New function.
24683 (syms_of_font): Defsubr Sfont_at.
24684
24685 * xdisp.c (it_props): Move the entry for Qauto_composed to just
24686 before the entry for Qcomposition.
24687 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
24688 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
24689 the font in gstring.
24690 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
24691 LGLYPH_FORM (g) to detect the end of valid glyph.
24692 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
24693 we are composing with gstring.
24694
24695 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
24696 Check if adjustment is vector or not.
24697
24698 * Makefile.in (font.o): Make it depends on window.h.
24699
247002008-02-01 Kenichi Handa <handa@m17n.org>
24701
24702 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
24703 adjustment is vector or not.
24704
247052008-02-01 Miles Bader <miles@gnu.org>
24706
24707 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
24708
247092008-02-01 Kenichi Handa <handa@m17n.org>
24710
24711 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 24712 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
24713 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
24714
24715 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
24716 (DEVICE_DELTA): Fix typo.
24717 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
24718 LGLYPH format.
24719
24720 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24721 the change of LGLYPH format.
24722
247232008-02-01 Kenichi Handa <handa@m17n.org>
24724
24725 * ftfont.c (ftfont_list): Fix typo.
24726 (ftfont_build_basic_charsets): Don't include letters with diacritics.
24727
247282008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24729
24730 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
24731
24732 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
24733 xftface_info is non-NULL.
24734
247352008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24736
24737 * ftfont.c (ftfont_list): Move misplaced #endif.
24738
247392008-02-01 Kenichi Handa <handa@m17n.org>
24740
24741 * ftfont.c (ftfont_list): Pay attention to the case that
24742 FC_CAPABILITY is not defined.
24743
247442008-02-01 Kenichi Handa <handa@m17n.org>
24745
24746 * xftfont.c (xftfont_open): Set charset related members to -1.
24747
24748 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
24749 QCname.
24750 (ftfont_open): Set charset related members to -1.
24751
24752 * fontset.c (Votf_script_alist): New variable.
24753 (syms_of_fontset): Initialize it.
24754 (fontset_font): Delete unused variable.
24755
24756 * fontset.h (Votf_script_alist): Extern it.
24757
24758 * font.c (font_find_for_lface): Optimize code.
24759
24760 * font.h (font_close_object, font_merge_old_spec): Extern them.
24761
247622008-02-01 Kenichi Handa <handa@m17n.org>
24763
24764 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
24765 (syms_of_font): Initialize them.
24766 (font_pixel_size): Allow float value in dpi.
24767 (font_prop_validate_type): Delete.
24768 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
24769 Change caller.
24770 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
24771 (font_prop_validate_extra): Delete.
24772 (font_prop_validate_spacing): New function.
24773 (font_property_table): Add elements for all known properties.
bba3e508
SM
24774 (get_font_prop_index): Rename from check_font_prop_name.
24775 New argument FROM. Change caller.
aac0c6e3
MR
24776 (font_prop_validate): Validate all known properties.
24777 (font_put_extra): Delete argument force. Change caller.
24778 (font_expand_wildcards): Make it static. Fix the way of shrinking
24779 the possible range.
24780 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
24781 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
24782 Change caller.
24783 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
24784 (font_parse_fcname): Delete argument merge. Fix parsing of point
24785 size. Don't validate properties values here. Change caller.
24786 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
24787 (font_open_by_name): Delete unused variable.
24788 (Ffont_spec): Likewise. Validate property values.
24789 (Ffont_match_p): New function.
24790
24791 * font.h (QCscalable): Extern it.
24792 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24793
24794 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24795
24796 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24797 (xfont_list_pattern): New function.
24798 (xfont_list): Use xfont_list_pattern.
24799
248002008-02-01 Kenichi Handa <handa@m17n.org>
24801
24802 * font.h (Flist_fonts): EXFUN it.
24803
248042008-02-01 Jason Rumney <jasonr@gnu.org>
24805
24806 * w32term.c (w32_initialize): Add back smoothing_type and
24807 smoothing_enabled definitions.
24808
248092008-02-01 Kenichi Handa <handa@m17n.org>
24810
24811 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24812 s->face->font on determining underline position.
24813
248142008-02-01 Kenichi Handa <handa@m17n.org>
24815
24816 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24817 (font_has_char): Accept font-object too.
24818 (font_find_for_lface): Try at first with a size specified in face.
24819
248202008-02-01 Kenichi Handa <handa@m17n.org>
24821
24822 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24823 font_open_by_name.
24824
248252008-02-01 Kenichi Handa <handa@m17n.org>
24826
24827 * font.h (QCspacing, QCdpi): Extern them.
24828 (enum font_spacing): New enum.
24829 (FONT_PIXEL_SIZE_QUANTUM): New macro.
24830
24831 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
24832 (QCspacing, QCdpi): New variables.
24833 (syms_of_font): Initialize them.
24834 (font_pixel_size): New function.
24835 (font_put_extra): New function.
24836 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
24837 in FONT_EXTRA.
24838 (font_parse_fcname): Handle enumerated values (e.g. bold).
24839 Fix handling font size. Add QCname property that contains only
24840 unknown properties.
24841 (font_score): Change argument. Change caller. Pay attention to
24842 FONT_PIXEL_SIZE_QUANTUM.
24843 (font_sort_entites, font_list_entities, font_find_for_lface)
24844 (font_open_for_lface, font_open_by_name): Fix handling of font size.
24845 (Ffont_spec): Add QCname property that contains only unknown properties.
24846
bba3e508
SM
24847 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
24848 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
24849 listed font. Don't include scalable in pattern. Pay attention to
24850 FONT_PIXEL_SIZE_QUANTUM.
24851
248522008-02-01 Kenichi Handa <handa@m17n.org>
24853
24854 * font.c (font_parse_fcname): Fix parsing of point-size.
24855 (font_unparse_fcname): Produce symbolic names for style properties.
24856 (font_list_entities): Handle float size correctly.
24857 (font_open_by_name): Prefer `normal' property values if the name
24858 doesn't specify them.
24859
24860 * fontset.c (Finternal_char_font): Use font_get_name, not
24861 Ffont_xlfd_name.
24862
24863 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
24864 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
24865 pattern. Don't force scalable.
24866
24867 * xftfont.c (xftfont_open): For generating a name, start from
24868 96-byte buffer.
24869
248702008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24871
24872 * frame.h (x_new_fontset2): Fix prototype.
24873
248742008-02-01 Kenichi Handa <handa@m17n.org>
24875
24876 * font.h (struct font_driver): Delete member parse_name.
24877 (font_match_p, font_get_spec, font_parse_fcname)
24878 (font_unparse_fcname): Extern them.
24879 (font_get_name): Adjust prototype.
24880
24881 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
24882 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
24883 (font_expand_wildcards): Fix handling ENCODING field.
24884 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
24885 (font_parse_fcname): New function.
24886 (font_unparse_fcname): New function.
24887 (font_parse_name): New function.
24888 (font_match_p): New function.
24889 (font_get_name): Change return value to Lisp string.
24890 (font_get_spec): New function.
24891 (Qunspecified, Qignore_defface): Don't extern them.
24892 (font_find_for_lface): Assume that LFACE is fully specified.
24893 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
24894 object, use it for FACE.
24895 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
24896 driver->parse_name.
24897 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
24898
24899 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
24900 prototype.
24901
24902 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
24903 argument F. Don't call Fnew_fontset. Instead, directly call
24904 make_fontset.
24905
24906 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
24907
24908 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
24909 of x_new_fontset2.
24910
24911 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
24912 (Qsans__serif): New variables.
24913 (ftfont_generic_family_list): New variable.
24914 (syms_of_ftfont): Initialize the above variables.
24915 (ftfont_pattern_entity): Delete argument NAME.
24916 (ftfont_list_generic_family): New function.
24917 (ftfont_parse_name): Delete this function.
24918 (ftfont_list): Try generic family only when FcFontList found no font.
24919 (ftfont_list_family): Fix args to FcObjectSetBuild.
24920
24921 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
24922 object in attrs[LFACE_FONT_INDEX].
24923 (set_lface_from_font_name): Cancel all changes for font-backend.
24924 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24925 function.
24926 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24927 font object in QCfont attribute.
24928 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24929 (realize_default_face) [USE_FONT_BACKEND]: Call
24930 set_lface_from_font_and_fontset.
24931
24932 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24933 "fixed", and signal error here if no suitable font was found.
24934
24935 * xfont.c (xfont_parse_name): Delete this function.
24936
24937 * xftfont.c (xftfont_open): Change coding style of error
24938 handling. Generate fontconfig's fontname pattern.
24939
24940 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24941 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24942
24943 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24944 Both args FONTSET and FONT_OBJECT must be existing ones.
24945
249462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24947
24948 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24949
249502008-02-01 Kenichi Handa <handa@m17n.org>
24951
24952 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24953
24954 * font.h (struct font): Fix typo.
24955
24956 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24957 XLFD_XXX_INDEX.
24958 (enum xlfd_field_mask): New enum.
ef1b0ba7 24959 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
24960 are followed by non-digits, return a symbol.
24961 (font_expand_wildcards): New function.
24962 (font_parse_xlfd): Fix wildcard handling.
24963 (Ffont_spec): If :name is specified, reflect the info in the other
24964 properties.
24965
24966 * ftfont.c (ftfont_pattern_entity): Fix typo.
24967 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24968 locale.
24969
249702008-02-01 Kenichi Handa <handa@m17n.org>
24971
24972 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24973
24974 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24975 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24976 registry doesn't specify encoding part.
24977 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24978 (font_open_by_name): At first try parsing the name.
24979 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24980 as Lisp symbols.
24981
24982 * fontset.c (reorder_font_vector): Pay attention to the case that
24983 the 3rd element of font_def is nil.
24984 (fontset_font): For the default fontset, append one more fontset
24985 elements for a script-based font specification. Don't add script
24986 attribute on finding a font.
24987 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24988 font name.
24989 (fontset_ascii_font): If a font can't be opened, return nil.
24990
24991 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24992 (ftfont_pattern_entity): New function.
24993 (ftfont_get_cache): Assume that freetype_font_cache is already
24994 initialized.
24995 (ftfont_list): Handle the case that a file is specified in font
24996 name. Use ftfont_pattern_entity to generate entities.
24997 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24998 (syms_of_ftfont): Initialize freetype_font_cache.
24999
25000 * xftfont.c (xftfont_open): Make the font name fontconfig's
25001 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25002 (xftfont_close): Free font->font.name if not NULL.
25003
25004 * xfont.c (xfont_list): If script is specified for a font, return
25005 null_vector.
25006 (xfont_list_family): Declare argument type.
25007
25008 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25009 name, set LFACE_FONT (lface) to nil.
25010
25011 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25012 return Qnil.
25013
250142008-02-01 Kenichi Handa <handa@m17n.org>
25015
25016 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25017 (standard_args): Add "-enable-font-backend".
25018
250192008-02-01 Kenichi Handa <handa@m17n.org>
25020
25021 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25022 (struct xftdraw_list, xftdraw_list): Delete them.
25023 (register_xftdraw, check_xftdraw): Delete them.
25024 (xftfont_prepare_face): Don't call register_xftdraw.
25025 (xftfont_done_face): Don't call check_xftdraw.
25026 (xftfont_draw): Get background color only when with_background is
25027 nonzero.
25028
25029 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25030
250312008-02-01 Kenichi Handa <handa@m17n.org>
25032
25033 These changes are for the new font handling codes.
25034
25035 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25036 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25037 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25038 (FONTSRC, FONTOBJ): New variables.
25039 (obj): Add $(FONTOBJ).
25040 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25041 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25042 @LIBOTF_LIBS@.
25043 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25044 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25045
25046 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25047
25048 * character.h (Vscript_representative_chars): Extern it.
25049
25050 * character.c (Vscript_representative_chars): New variable.
25051 (syms_of_character): Declare it as a Lisp variable.
25052
25053 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25054 enable_font_backend is nonzero, accept the composition method
25055 COMPOSITION_WITH_GLYPH_STRING.
25056
25057 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25058 enumeration COMPOSITION_WITH_GLYPH_STRING.
25059
25060 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25061 members clip_x, clip_y, clip_width, and clip_height.
25062 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25063
25064 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25065 --enable-font-backend. Call syms_of_font.
25066
25067 * fns.c (assoc_no_quit): New function.
25068
25069 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25070 (face_for_font, new_fontset_from_font)
25071 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25072
25073 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25074 (fontset_font, fontset_ascii, face_for_char)
25075 (make_fontset_for_ascii_face, Ffont_info)
25076 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25077 is nonzero, use font-backend mechanism.
25078 (find_font_encoding): Make it non-static.
25079 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25080 New functions.
25081
25082 * frame.h (struct frame): New members resx and resy.
25083 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25084 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25085
25086 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25087 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25088
25089 * lisp.h (assoc_no_quit): Extern it.
25090
25091 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25092 Through out the file, use FONT_INFO_FROM_FACE instead of
25093 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25094 rif->per_char_metric.
25095 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25096 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25097 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25098 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25099 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25100 nonzero, use font-backend mechanism.
25101 (get_per_char_metric): New function.
25102
25103 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25104 (set_lface_from_font_name)
25105 (set_font_frame_param, free_realized_face)
25106 (prepare_face_for_display, clear_face_gcs)
25107 (Finternal_set_font_selection_order, realize_x_face)
25108 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25109 font-backend mechanism.
25110 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25111 (load_face_font) [USE_FONT_BACKEND]: Abort.
25112 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25113 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25114
25115 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25116 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25117 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
25118 nonzero, register all available font drivers.
25119 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
25120 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25121
25122 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25123 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25124 (x_set_glyph_string_clipping_exactly)
25125 (x_compute_glyph_string_overhangs)
25126 (x_draw_glyph_string_foreground)
25127 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25128 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25129 enable_font_backend is nonzero, use font-backend mechanism.
25130 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25131
251322008-02-01 Kenichi Handa <handa@m17n.org>
25133
25134 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25135 system_eol_type.
25136 (syms_of_coding): Initialize system_eol_type.
25137
25138 * process.c (Fset_process_coding_system): Inherit system's eol
25139 format if necessary.
25140
251412008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25142
25143 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25144
251452008-02-01 Kenichi Handa <handa@m17n.org>
25146
25147 * coding.c (decode_eol): Pay attention to buffer relocation in
25148 del_range_2.
25149 (decode_coding): Call decode_eol before restoring undo_list.
25150
251512008-02-01 Kenichi Handa <handa@m17n.org>
25152
25153 * charset.c (Fdefine_charset_internal): Fix setting of
25154 emacs_mule_bytes.
25155
251562008-02-01 Kenichi Handa <handa@m17n.org>
25157
25158 * keyboard.c (read_char): Check if C is a character or not before
25159 looking up Vkeyboard_translate_table.
25160
251612008-02-01 Kenichi Handa <handa@m17n.org>
25162
bba3e508
SM
25163 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25164 Fix condition to terminate the loop.
aac0c6e3
MR
25165
251662008-02-01 Kenichi Handa <handa@m17n.org>
25167
25168 * coding.c (produce_composition): Compare charbuf[i] instead of
25169 args[i] against 0.
25170 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25171
251722008-02-01 Kenichi Handa <handa@m17n.org>
25173
25174 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25175 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25176 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25177 detect_coding.
25178 (emacs_mule_char): Handle old style (Emacs 20) component character
25179 of a composition.
25180 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25181 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25182 composition rule.
25183 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25184
251852008-02-01 Kenichi Handa <handa@m17n.org>
25186
25187 * coding.c (encode_coding_ccl): Allocate destination dynamically
25188 when necessary.
25189
251902008-02-01 Kenichi Handa <handa@m17n.org>
25191
25192 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25193 the loop. When quitted, show a proper error message.
25194
251952008-02-01 Kenichi Handa <handa@m17n.org>
25196
bba3e508
SM
25197 * xterm.c (x_set_glyph_string_clipping_exactly):
25198 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
25199
25200 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25201 character sequence.
25202 (Fccl_execute_on_string): Use ASET, not XSET.
25203
252042008-02-01 Kenichi Handa <handa@m17n.org>
25205
25206 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25207
252082008-02-01 Kenichi Handa <handa@m17n.org>
25209
25210 * coding.c (decode_coding): Fix the condition of terminating the
25211 decoding loop.
25212
252132008-02-01 Kenichi Handa <handa@m17n.org>
25214
25215 * data.c (Faset): On setting a character bigger than 255 in a
25216 unibyte string, signal an error instead of make the string multibyte.
25217
252182008-02-01 Kenichi Handa <handa@m17n.org>
25219
25220 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25221 made by a mapping table.
25222
252232008-02-01 Kenichi Handa <handa@m17n.org>
25224
25225 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25226 not.
25227 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25228 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25229
bba3e508
SM
25230 * xterm.c (x_draw_composite_glyph_string_foreground):
25231 Check s->face is NULL or not.
aac0c6e3
MR
25232
252332008-02-01 Kenichi Handa <handa@m17n.org>
25234
25235 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25236 (x_draw_glyph_string): Fix drawing of right_overhang and
25237 left_overhang around/on cursor.
25238
25239 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25240
252412008-02-01 Kenichi Handa <handa@m17n.org>
25242
25243 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25244
252452008-02-01 Kenichi Handa <handa@m17n.org>
25246
25247 * coding.c (Fdefine_coding_system_internal)
25248 (Fdefine_coding_system_alias): Avoid a duplicated element in
25249 Vcoding_system_alist.
25250
252512008-02-01 Kenichi Handa <handa@m17n.org>
25252
25253 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25254
25255 * coding.c (Qcoding_system_define_form): New variable.
25256 (syms_of_coding): Intern and staticpro it.
25257 (Fcoding_system_p): Check Qcoding_system_define_form.
25258 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25259
25260 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25261 Fcoding_system_p.
25262 (CHECK_CODING_SYSTEM): If ID is not available, call
25263 Fcheck_coding_system.
25264 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25265 Try also Fcheck_coding_system.
25266
252672008-02-01 Kenichi Handa <handa@m17n.org>
25268
25269 * coding.c (code_conversion_restore): GCPRO arg.
25270
252712008-02-01 Kenichi Handa <handa@m17n.org>
25272
25273 * character.c (lisp_string_width): Check multibyteness of STRING.
25274
252752008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25276
25277 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25278 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25279 (decode_mac_font_name): Use decode_coding_c_string instead of
25280 decode_coding.
bba3e508
SM
25281 (x_load_font): Initialize fontp->fontset to -1.
25282 Set fontp->encoding_type.
aac0c6e3
MR
25283
252842008-02-01 Kenichi Handa <handa@m17n.org>
25285
25286 * search.c (search_buffer): Give up BM search on case-fold-search
25287 if one of a target character has a case-equivalence of different
3b59c351 25288 byte length even if that target character is an ASCII.
aac0c6e3
MR
25289 (simple_search): Fix calculation of byte length of matched text.
25290 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25291
252922008-02-01 Kenichi Handa <handa@m17n.org>
25293
25294 * coding.c (decode_coding): Fix handling of invalid bytes.
25295
252962008-02-01 Kenichi Handa <handa@m17n.org>
25297
25298 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25299 Unicode characters.
25300
253012008-02-01 Kenichi Handa <handa@m17n.org>
25302
25303 * coding.c (encode_coding_object): If a pre-write-conversion
25304 function makes a new buffer, kill it.
25305
253062008-02-01 Kenichi Handa <handa@m17n.org>
25307
25308 * coding.c (QCascii_compatible_p): New variable.
25309 (syms_of_coding): Initialize it.
25310 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25311 calling string_char.
25312 (record_conversion_result): Add `default:' case.
25313 (coding_charset_list): Delete unused variable `coding_type'.
25314 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25315 property in the plist of the coding system.
25316 (Fcoding_system_put): Check QCascii_compatible_p.
25317
253182008-02-01 Miles Bader <miles@gnu.org>
25319
25320 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25321 removed calculation of frame `f', as it's now used.
25322
253232008-02-01 Kenichi Handa <handa@m17n.org>
25324
25325 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25326 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25327 (UNIDATA): New variable.
25328 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
25329 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25330 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
25331
253322008-02-01 Kenichi Handa <handa@m17n.org>
25333
25334 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25335 (admindir): New variable.
25336 ($(lispsource)international/charprop.el): New target.
25337
253382008-02-01 Miles Bader <miles@gnu.org>
25339
25340 * character.c (chars-in-region): Remove obsolete function.
25341 (syms_of_character): Remove its initialization.
25342
253432008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25344
25345 * w32select.c (validate_coding_system)
25346 (setup_windows_coding_system): New functions.
bba3e508
SM
25347 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25348 Use setup_windows_coding_system.
25349 (setup_config, Fw32_get_clipboard_data):
25350 Use validate_coding_system.
aac0c6e3
MR
25351 (Fx_selection_exists): Move call to setup_config to a place
25352 where signals are allowed.
25353
25354 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25355 (Fcheck_coding_system): Add declarations.
25356
253572008-02-01 Kenichi Handa <handa@m17n.org>
25358
25359 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25360
253612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25362
25363 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25364 string as the second argument for x_new_fontset.
25365
253662008-02-01 Kenichi Handa <handa@m17n.org>
25367
25368 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25369 (encode_coding_object): Use safe_call instead of call2.
25370
253712008-02-01 Kenichi Handa <handa@m17n.org>
25372
25373 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25374
25375 * Makefile.in (lisp): Include charprop.el.
25376
253772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25378
25379 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25380 Not sure if it's unnecessary.
25381
253822008-02-01 Steven Tamm <steventamm@mac.com>
25383
25384 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25385 some possibly unnecessary fontset checking code that crashed
25386 when creating a new frame.
25387
253882008-02-01 Kenichi Handa <handa@m17n.org>
25389
25390 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25391 lookup_face.
25392
25393 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25394
25395 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25396
253972008-02-01 Kenichi Handa <handa@m17n.org>
25398
25399 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25400 (coding_charset_list): New function.
25401
25402 * coding.h (coding_charset_list): Extern it.
25403
254042008-02-01 Kenichi Handa <handa@m17n.org>
25405
25406 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25407 concatenation of family and registry.
25408
254092008-02-01 Kenichi Handa <handa@m17n.org>
25410
25411 * character.h (BYTE8_STRING): Fix typo.
25412
25413 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25414 string to multibyte (sync to HEAD).
25415
25416 * casefiddle.c (casify_region): Handle changes in byte-length
25417 using replace_range_2 (sync to HEAD).
25418
254192008-02-01 Andreas Schwab <schwab@suse.de>
25420
25421 * chartab.c (map_char_table): GCPRO table and arg.
25422
254232008-02-01 Kenichi Handa <handa@m17n.org>
25424
25425 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25426 already at limit.
25427
254282008-02-01 Kenichi Handa <handa@m17n.org>
25429
25430 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25431 instead of fast_c_string_match_ignore_case.
bba3e508
SM
25432 (find_font_encoding): Change argument to Lisp_Object.
25433 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
25434 fast_c_string_match_ignore_case. Change caller.
25435
254362008-02-01 Kenichi Handa <handa@m17n.org>
25437
25438 * xdisp.c (get_next_display_element): In unibyte case, decide to
25439 display in octal form by checking a character by
25440 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25441
25442 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25443
25444 * character.c (unibyte_has_multibyte_table): New variable.
25445
25446 * character.h (unibyte_has_multibyte_table): Extern it.
25447 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25448
254492008-02-01 Kenichi Handa <handa@m17n.org>
25450
25451 * coding.c (encode_coding_iso_2022): Fix handling of charset
25452 annotation.
25453
254542008-02-01 Kenichi Handa <handa@m17n.org>
25455
25456 * coding.c (setup_coding_system): If coding_system is nil, use
25457 Qundecided.
25458 (Fterminal_coding_system): Return nil if terminal coding system is
25459 `undecided'.
bba3e508
SM
25460 (syms_of_coding): Define coding-system `undecided' here.
25461 Setup terminal_coding as `undecided'.
aac0c6e3
MR
25462
254632008-02-01 Kenichi Handa <handa@m17n.org>
25464
bba3e508
SM
25465 * xdisp.c (message_dolog, set_message_1):
25466 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
25467
25468 * lread.c (read1): Fix reading of a char-table.
25469
25470 * print.c (print_object): Include sub char-table in circularities
25471 detection.
25472
254732008-02-01 Kenichi Handa <handa@m17n.org>
25474
25475 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25476 Append the found sequences in car of ARGS instead of prepending.
25477
254782008-02-01 Kenichi Handa <handa@m17n.org>
25479
25480 * fileio.c (report_file_error): Make a unibyte string from
25481 strerror (errorno).
25482 (Fsubstitute_in_file_name): Fix the arg to
25483 unibyte_char_to_multibyte. It is evaluated twice.
25484
254852008-02-01 Kenichi Handa <handa@m17n.org>
25486
25487 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25488
254892008-02-01 Kenichi Handa <handa@m17n.org>
25490
25491 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25492 BOM is not found.
25493 (detect_coding, detect_coding_system): Optimization for ISO-2022
25494 when no 8-bit data is found.
25495
254962008-02-01 Jason Rumney <jasonr@gnu.org>
25497
25498 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25499
255002008-02-01 Kenichi Handa <handa@m17n.org>
25501
25502 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25503 CHARS.
25504
255052008-02-01 Steven Tamm <steventamm@mac.com>
25506
25507 * macterm.c (mac_encode_char): Add charset argument and update
25508 to use encoding_type.
25509 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25510 switch to pure fontset.
25511 (decode_mac_font_name): Temporarily remove decoding.
25512 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25513 (x_load_font): Temporarily remove encoding.
25514
255152008-02-01 Kenichi Handa <handa@m17n.org>
25516
25517 * xfaces.c (Fface_font): If frame is not on a window system,
25518 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25519 refer to face->font.
25520 (split_font_name_into_vector, build_font_name_from_vector)
25521 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25522 when HAVE_WINDOW_SYSTEM is defined.
25523
255242008-02-01 Kenichi Handa <handa@m17n.org>
25525
25526 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25527 (x_produce_glyphs): Fix setting of members of cmp in case
25528 cmp->glyph_len is zero.
25529
25530 * fontset.c (Fset_fontset_font): Fix docstring.
25531 (Ffontset_info): Make it backward compatible. New arg ALL.
25532
255332008-02-01 Kim F. Storm <storm@cua.dk>
25534
25535 * process.c (read_process_output): Grow decoding_buf when needed;
25536 this could cause a crash in allocate_string and compact_small_strings.
25537
255382008-02-01 Kenichi Handa <handa@m17n.org>
25539
25540 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25541
255422008-02-01 Kenichi Handa <handa@m17n.org>
25543
25544 * coding.c (setup_coding_system): Set coding->common_flags
25545 correctly for raw-text.
25546 (consume_chars): On encoding unibyte text by raw-text, don't check
25547 multibyte form.
25548 (encode_coding): On encoding by raw-text, never use translation tables.
25549
25550 * fileio.c (e_write): Short cut for the case of no encoding.
25551
255522008-02-01 Kenichi Handa <handa@m17n.org>
25553
25554 * coding.c (detect_coding, detect_coding_system): Delete unused
25555 variables.
25556
255572008-02-01 Kenichi Handa <handa@m17n.org>
25558
25559 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25560 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25561
255622008-02-01 Kenichi Handa <handa@m17n.org>
25563
bba3e508
SM
25564 * coding.c (Ffind_coding_systems_region_internal):
25565 Include raw-text and no-conversion in the result.
aac0c6e3
MR
25566
255672008-02-01 Kenichi Handa <handa@m17n.org>
25568
25569 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25570 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25571 FONT_DEF.
25572 (font_def_arg, add_arg, from_arg, to_arg): New args.
25573 (set_fontset_font): Change argument.
25574 (Fset_fontset_font): Fix for the case that TARGET is a script
25575 name and charset name.
25576 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25577
255782008-02-01 Kenichi Handa <handa@m17n.org>
25579
25580 * fontset.c (fontset_font): Rename from fontset_face. Change return
25581 value.
25582 (face_suitable_for_char_p, face_for_char): Adjust for the change
25583 of fontset_font.
25584 (make_fontset_for_ascii_face): Fix setting of the fontset element
25585 for ASCII.
25586 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25587 to get a font name.
25588 (Ffontset_info): Adjust for the change of fontset_font.
25589
25590 * coding.c (emacs_mule_char): Check invalid code more rigidly.
25591
25592 * character.h (LEADING_CODE_LATIN_1_MIN)
25593 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
25594
255952008-02-01 Kenichi Handa <handa@m17n.org>
25596
25597 * editfns.c (check_translation): New function.
25598 (Ftranslate_region_internal): Handle M:N mapping.
25599
256002008-02-01 Kenichi Handa <handa@m17n.org>
25601
25602 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
25603
256042008-02-01 Kenichi Handa <handa@m17n.org>
25605
25606 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
25607 goto invalid_code.
25608 (decode_coding_iso_2022): Fix handling of invalid designation.
25609
25610 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
25611 after calling code_conversion_save.
25612
256132008-02-01 Kenichi Handa <handa@m17n.org>
25614
25615 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
25616
25617 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
25618
25619 * fontset.c: Include "intervals.h".
25620 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
25621 (free_face_fontset, new_fontset_from_font_name):
25622 Fix Lisp_Object/int mixup.
aac0c6e3
MR
25623
25624 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
25625
25626 * coding.c: Add many prototypes for static functions.
25627 (get_translation_table): Allow max_lookup to be NULL.
25628 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
25629 (Funencodable_char_position, Fcheck_coding_systems_region):
25630 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
25631
256322008-02-01 Kenichi Handa <handa@m17n.org>
25633
25634 * coding.c (get_translation_table): Declare it as Lisp_Object.
25635 (LOOKUP_TRANSLATION_TABLE): New macro.
25636 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
25637 instead of CHAR_TABLE_REF.
25638
256392008-02-01 Kenichi Handa <handa@m17n.org>
25640
25641 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
25642 annotation data format.
25643 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
25644 Change arguments FROM and TO to single argument NCHARS. Change caller.
25645 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
25646 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25647 (decode_coding_ccl, decode_coding_charset): Pay attention to
25648 coding->charbuf_used.
25649 (get_translation): New function.
25650 (produce_chars): New arguments translation_table and last_block.
25651 Translate characters here. Return number of carryover chars.
25652 Change caller.
25653 (produce_composition): New argument pos. Change caller.
25654 Adjust for the change of annotation data format.
25655 (produce_charset, produce_annotation): Likewise.
25656 (decode_coding, encode_coding): Don't call translate_chars.
25657 (consume_chars): New arg translation_table. Change caller.
25658 (translate_chars): Delete.
25659 (syms_of_coding): Make translation-table's number of extra slots 2.
25660
256612008-02-01 Kenichi Handa <handa@m17n.org>
25662
25663 * search.c (simple_search): Fix setting this_pos_byte in backward
25664 search.
25665
25666 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
25667 byte sequence.
25668 (detect_coding_ccl): Fix setting of the variable valids.
25669
256702008-02-01 Kenichi Handa <handa@m17n.org>
25671
25672 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
25673
25674 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
25675
25676 * editfns.c (Ftranslate_region_internal): Rename from
25677 Ftranslate_region. Accept a char-table in TABLE.
25678 (syms_of_editfns): Defsubr Stranslate_region_internal.
25679
25680 * xfaces.c (set_lface_from_font_name): If a font is specified for
25681 a frame, generate a fontset from the font.
25682 (build_scalable_font_name): If the scalable font is requested for
25683 a specific size, don't change that size.
25684 (try_font_list): Try a scalable font also in the case that a
25685 pattern string is specified.
25686
256872008-02-01 Kenichi Handa <handa@m17n.org>
25688
25689 * xfaces.c (Fface_font): New optional arg CHARACTER.
25690
256912008-02-01 Kenichi Handa <handa@m17n.org>
25692
25693 * charset.h (CHARSET_OFFSET): New macro.
25694
256952008-02-01 Kenichi Handa <handa@m17n.org>
25696
25697 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
25698
25699 * fontset.c (fontset_face): Handle the case that repertory is a
25700 char-table.
25701 (find_font_encoding): Return nil for unknown encoding.
25702 (Fset_fontset_font): Ignore a font of unknown encoding.
25703
257042008-02-01 Kenichi Handa <handa@m17n.org>
25705
25706 * keymap.c (describe_vector): Handle default value of a char table.
25707
25708 * fontset.c (fontset_face): Handle fallback fonts correctly.
25709 (Ffontset_info): Return infomation about fallback fonts.
25710
257112008-02-01 Kenichi Handa <handa@m17n.org>
25712
25713 * fontset.c (FONTSET_DEFAULT): New macro.
25714 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
25715 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
25716 the case that it is nil.
25717 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
25718 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
25719
25720 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
25721 subset or superset.
25722
257232008-02-01 Kenichi Handa <handa@m17n.org>
25724
25725 * emacs.c (main): Call init_charset after syms_of_XXX.
25726
25727 * charset.c (Vcharset_map_directory): Delete.
25728 (Vcharset_map_path): New variable.
25729 (load_charset_map_from_file): Use Vcharset_map_path instead.
25730 (init_charset): Initialize Vcharset_map_path.
25731 (syms_of_charset): Delete declaration of "charset-map-directory",
25732 add declaration of "charset-map-path".
25733
257342008-02-01 Kenichi Handa <handa@m17n.org>
25735
25736 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
25737 ASCII only string.
25738
25739 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
25740
25741 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
25742 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
25743
257442008-02-01 Kenichi Handa <handa@m17n.org>
25745
25746 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
25747
25748 * coding.c (QCmnemonic, QCdefalut_char)
25749 (QCdecode_translation_table, QCencode_translation_table)
25750 (QCpost_read_conversion, QCpre_write_conversion): New variables.
25751 (get_translation_table): Return a list of translation tables if
25752 necessary.
25753 (decode_coding): Call get_translation_table with ENCODEP 0.
25754 (char_encodable_p): If translation_table is non-nil, always call
25755 translate_char.
25756 (Fdefine_coding_system_internal): Accept list of translation
25757 tables as :encode-translation-table and :decode-translation-table.
25758 (Fcoding_system_put): New function.
bba3e508
SM
25759 (syms_of_coding): Declare new symbols.
25760 Defsubr Scoding_system_put.
aac0c6e3
MR
25761 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
25762 typically JISX0212.
25763
25764 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
25765 when the charset is superset type.
25766
25767 * character.c (translate_char): Accept list of translation tables.
25768
257692008-02-01 Kenichi Handa <handa@m17n.org>
25770
25771 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
25772 (CODING_ATTR_TRANS_TBL): New macro.
25773
25774 * coding.c (get_translation_table): New function.
25775 (translate_chars): Fix the bug of skipping annotation data.
25776 (decode_coding, encode_coding): Utilize get_translation_table.
25777 (char_encodable_p, Funencodable_char_position): Translate char if
25778 necessary.
25779 (Ffind_coding_systems_region_internal)
25780 (Fcheck_coding_systems_region): Setup translation table for encode
25781 in a coding system attribute vector in advance.
25782 (Fdefine_coding_system_internal): Allow a symbol as translation
25783 table. For shift-jis type coding system, allow 4th charset.
25784
257852008-02-01 Kenichi Handa <handa@m17n.org>
25786
25787 * coding.c (decode_coding_sjis): Check the first byte rigidly.
25788
25789 * xdisp.c (get_next_display_element): Pass -1 as POS to
25790 FACE_FOR_CHAR if displaying a C-string.
25791
257922008-02-01 Kenichi Handa <handa@m17n.org>
25793
25794 * composite.c (get_composition_id): Handle xoff and yoff in a
25795 composition rule.
25796
25797 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25798 (struct composition): New member lbearing and rbearing.
25799
25800 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25801 (x_get_glyph_overhangs): Handle a composition glyph.
25802 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25803
25804 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25805 composition glyph.
25806
258072008-02-01 Kenichi Handa <handa@m17n.org>
25808
25809 * print.c: Include charset.h.
25810 (Vprint_charset_text_property): New variable.
25811 (Qdefault): Extern it.
25812 (PRINT_STRING_NON_CHARSET_FOUND)
25813 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25814 (print_check_string_result): New variable.
25815 (print_check_string_charset_prop): New function.
25816 (print_prune_charset_plist): New variable.
25817 (print_prune_string_charset): New function.
25818 (print_object): Call print_prune_string_charset if
25819 Vprint_charset_text_property is not t.
25820 (print_interval): Print nothing if interval->plist is nil.
25821 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25822 variable. Init and staticpro print_prune_charset_plist.
25823
258242008-02-01 Kenichi Handa <handa@m17n.org>
25825
25826 * fontset.c (new_fontset_from_font_name): Use the specified font
25827 for all characters in the new fontset.
25828
25829 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25830 OBJECT args.
25831
25832 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
25833 OBJECT args for composition too.
25834
25835 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25836 OBJECT args.
25837
258382008-02-01 Kenichi Handa <handa@m17n.org>
25839
25840 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
25841
25842 * fontset.c (reorder_font_vector): Adjust for the change of
25843 FONT_DEF format.
25844 (fontset_face): New arg id. Change caller.
25845 (face_for_char): New args pos and object.
25846 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
25847 (fs_query_fontset): Check NAME by Fassoc too.
25848 (Fset_fontset_font): Allow non-XLFD font name.
25849 (Ffontset_info): Adjust for the change of FONT_DEF format.
25850
25851 * fontset.h (face_for_char): Adjust prototype.
25852
25853 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
25854 (append_space, extend_face_to_end_of_line)
25855 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25856 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
25857
25858 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
25859 POS and OBJECT args.
25860
25861 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
25862 POS and OBJECT args.
25863
258642008-02-01 Jason Rumney <jasonr@gnu.org>
25865
25866 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
25867 of GlobalAlloc'ed memory.
25868
258692008-02-01 Kenichi Handa <handa@m17n.org>
25870
25871 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
25872
25873 * charset.h (charset_table_used): Delete extern.
25874
25875 * charset.c (charset_table_used): Make it static.
25876 (map_charset_chars): Fix args to c_function with.
25877
25878 * chartab.c (map_sub_char_table_for_charset): Fix args to
25879 c_function with.
25880
bba3e508
SM
25881 * coding.h (enum coding_result_code):
25882 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
25883
25884 * coding.c (Qinsufficient_source, Qinconsistent_eol)
25885 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
25886 (Vlast_code_conversion_error): New variables.
25887 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
25888 (ONE_MORE_BYTE): Record error if any instead of signaling an
25889 error. If non-ASCII multibyte char is found, return the negative
25890 value of the code. All callers changed to check it.
25891 (ONE_MORE_BYTE_NO_CHECK): Likewise.
25892 (record_conversion_result): New function. Change all codes setting
25893 coding->result to call this function.
25894 (detect_coding_utf_8, decode_coding_utf_8)
25895 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
25896 Don't use the local variable incomplete.
25897 (emacs_mule_char): Change the second arg to `const'.
25898 (decode_coding): Fix of flushing out unprocessed data.
25899 (make_conversion_work_buffer): Fix making of a work buffer.
25900 (decode_coding_object): Return coding->dst_object.
25901
25902 * fontset.c (set_fontset_font): Fix args.
25903
25904 * lisp.h (CHARACTERBITS): Define as 22.
25905
25906 * process.c (send_process): Be sure to set coding->src_multibyte.
25907
25908 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
25909
259102008-02-01 Kenichi Handa <handa@m17n.org>
25911
25912 * xdisp.c (handle_auto_composed_prop): Give limit to
25913 Fnext_single_char_property_change.
25914
259152008-02-01 Kenichi Handa <handa@m17n.org>
25916
25917 * composite.c (syms_of_composite): Don't make the composition hash
25918 table weak.
25919
25920 * fontset.c (Fset_fontset_font): Fix docstring.
25921
25922 * lisp.h (detect_coding_system): Adjust prototype.
25923
25924 * fileio.c (kill_workbuf_unwind): Delete this function.
25925 (Finsert_file_contents): Adjust the call of detect_coding_system.
25926 Get conversion_buffer by code_conversion_save. Use the macro
25927 CODING_MAY_REQUIRE_DECODING. After decoding, update
25928 coding_system.
25929
25930 * coding.h (make_conversion_work_buffer): Delete extern.
25931 (code_conversion_save): Extern it.
25932
25933 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25934 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25935 (decode_coding_utf_8): Don't do eol converion.
25936 (detect_coding_utf_16): Check coding->src_chars, not
25937 coding->src_bytes. Add heuristics for those that have no signature.
25938 (decode_coding_emacs_mule, decode_coding_iso_2022)
25939 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25940 Don't do eol converion.
25941 (adjust_coding_eol_type): Return a new coding system.
25942 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25943 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25944 each change.
25945 (decode_coding): Pay attention to undo_list. Do eol conversion for
25946 all types of coding-systems (if necessary).
25947 (Vcode_conversion_work_buf_list): Delete it.
25948 (Vcode_conversion_reused_workbuf): Rename from
25949 Vcode_conversion_reused_work_buf.
25950 (Vcode_conversion_workbuf_name): New variable.
25951 (reused_workbuf_in_use): New variable.
25952 (make_conversion_work_buffer): Delete the arg DEPTH.
25953 (code_conversion_restore): Change argument to cons.
25954 (code_conversion_save): Delete the argument BUFFER. Change callers.
25955 (detect_coding_system): New argument src_chars. Change callers.
25956 Fix for utf-16 detection.
25957 (init_coding_once): Don't use ISO_carriage_return.
25958 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25959 reused_workbuf_in_use.
25960
259612008-02-01 Kenichi Handa <handa@m17n.org>
25962
25963 * keymap.c (store_in_keymap): Pay attention to the case that idx
25964 is a cons specifying a character range.
25965
259662008-02-01 Kenichi Handa <handa@m17n.org>
25967
25968 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25969 HANDLED_RECOMPUTE_PROPS.
25970
25971 * coding.c (Fdefine_coding_system_internal): Fix checking of
25972 ascii compatibility.
25973
259742008-02-01 Kenichi Handa <handa@m17n.org>
25975
25976 * charset.c (find_charsets_in_text): Delete unused locale variable.
25977 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25978
25979 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25980 Resync charset_list to Vemacs_mule_charset_list.
25981
25982 * keymap.c (store_in_keymap): Pay attention to the case that idx
25983 is a cons specifying a character range.
25984
259852008-02-01 Kenichi Handa <handa@m17n.org>
25986
25987 * composite.c (update_compositions): Bind inhibit-read-only, etc
25988 to t before calling remove-list-of-text-properties.
25989
25990 * print.c (print_object): Always print ASCII chars as is.
25991
259922008-02-01 Kenichi Handa <handa@m17n.org>
25993
25994 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25995
25996 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25997 is a char table.
25998
259992008-02-01 Kenichi Handa <handa@m17n.org>
26000
26001 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26002
260032008-02-01 Kenichi Handa <handa@m17n.org>
26004
26005 * xfaces.c (set_lface_from_font_name): Fix for the case that
26006 FONTNAME is not fontset name.
26007
260082008-02-01 Kenichi Handa <handa@m17n.org>
26009
26010 * fns.c (base64_encode_1): Fix previous change.
26011
260122008-02-01 Kenichi Handa <handa@m17n.org>
26013
26014 * fontset.c (set_fontset_font): New function.
26015 (Fset_fontset_font): If a font is specified for a charset, use
26016 map_charset_chars to store the font spec in a fontset.
26017
260182008-02-01 Kenichi Handa <handa@m17n.org>
26019
26020 * fontset.c (fontset_face): Create a fallback fontset on demand.
26021 (make_fontset): Don't create a fallback fontset here.
26022 (free_face_fontset): Free a fallback fontset (if any) too.
26023 (n_auto_fontsets): Delete this variable.
26024 (auto_fontset_alist): New variable.
26025 (new_fontset_from_font_name): Check auto_fontset_alist.
26026 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26027 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26028 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26029 Defsubr Sfontset_list_all.
26030
260312008-02-01 Kenichi Handa <handa@m17n.org>
26032
26033 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26034
260352008-02-01 Kenichi Handa <handa@m17n.org>
26036
26037 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26038
260392008-02-01 Kenichi Handa <handa@m17n.org>
26040
26041 * editfns.c (Fgoto_char): Fix docstring.
26042
260432008-02-01 Kenichi Handa <handa@m17n.org>
26044
26045 * insdel.c (insert_from_gap): Adjust intervals correctly.
26046
260472008-02-01 Jason Rumney <jasonr@gnu.org>
26048
26049 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26050 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26051 (w32_initialize): Try to load it.
26052 (x_get_font_repertory): Use it if available.
26053 (w32_encode_char): Add shortcut for unicode output.
26054
26055 * w32fns.c (w32_load_system_font): Default charset to -1.
26056 (x_to_w32_charset): Match all fonts for unicode.
26057 (w32_to_x_charset): New parameter matching. Don't return partial
26058 or wildcard charsets.
26059 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26060 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26061 (w32_to_x_font): Match charset to real charset.
26062 (enum_font_cb2): Always list unicode versions.
26063
26064 * makefile.w32-in (temacs): Increase EMHEAP.
26065
260662008-02-01 Jason Rumney <jasonr@gnu.org>
26067
26068 * w32term.c (w32_encode_char): New charset parameter.
26069 font_info.encoding becomes encoding_type.
26070 (x_get_font_repertory): New function. Warning: stub only!
26071 (x_new_font): Return quickly if font already set.
26072 (x_new_fontset): fontsetname parameter is Lisp_Object.
26073 Use new fs_query_fontset. Try new_fontset_from_font_name.
26074 Use fontset_name for return value.
26075
26076 * w32term.h: Declare x_get_font_repertory.
26077
26078 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26079 place of find_charset_in_text. Use encode_coding_object in place
26080 of encode_coding.
26081 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26082 decode_coding.
26083
26084 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26085 of x_new_fontset.
26086 (w32_load_system_font): Initialize charset as unicode.
26087 font_info.encoding becomes encoding_type.
26088 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26089 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26090 (syms_of_w32fns): Set get_font_repertory_func.
26091
26092 * w32console.c: Include character.h. Use terminal_encode_buffer
26093 from term.c.
bba3e508
SM
26094 (write_glyphs): Use new version of encode_terminal_code.
26095 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
26096
26097 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26098 encoding becomes encoding_type.
26099
26100 * term.c (terminal_encode_buffer): Make externally visible.
26101
26102 * makefile.w32-in: Add character.h dependancies.
26103 (character.o, chartab.o): New targets.
26104
261052008-02-01 Kenichi Handa <handa@m17n.org>
26106
26107 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26108 CODING_ID_EOL_TYPE.
26109
261102008-02-01 Andreas Schwab <schwab@suse.de>
26111
26112 * coding.c (produce_chars): Revert last change.
26113
261142008-02-01 Kenichi Handa <handa@m17n.org>
26115
26116 * charset.h (charset_unicode): Extern it.
26117
26118 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
26119 (find_charsets_in_text): Change format of the arc CHARSETS.
26120 New arg MULTIBYTE.
aac0c6e3
MR
26121 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26122 change of find_charsets_in_text.
26123 (Fsplit_char): Fix doc. Never return unknown.
26124
26125 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26126
bba3e508
SM
26127 * coding.c (Fdefine_coding_system_alias):
26128 Update Vcoding_system_list.
aac0c6e3
MR
26129
26130 * fontset.c (load_font_get_repertory): Pay attention to the case
26131 that ENCODING of a font is specified by a char-table.
26132
26133 * xterm.c (x_get_font_repertory): Handle the case that the
26134 encoding of font is other than Unicode.
26135
261362008-02-01 Kenichi Handa <handa@m17n.org>
26137
bba3e508
SM
26138 * term.c (encode_terminal_code): Don't handle glyph-table.
26139 Check if a character is encodable by the terminal coding system.
26140 If not, produces proper number of `?'s. Update
aac0c6e3
MR
26141 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26142 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26143
261442008-02-01 Kenichi Handa <handa@m17n.org>
26145
bba3e508
SM
26146 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26147 New variables.
aac0c6e3
MR
26148 (encode_terminal_code): Change argument. Encode multiple
26149 characters at once. Store the result of encoding in
26150 terminal_encode_buffer.
26151 (write_glyphs, insert_glyphs): Adjust for the change of
26152 encode_terminal_code.
26153 (term_init): Initialize terminal_encode_buffer and
26154 terminal_encode_buf_size.
26155
26156 * coding.c (consume_chars): If coding->src_object is nil, don't
26157 check annotation.
26158
261592008-02-01 Kenichi Handa <handa@m17n.org>
26160
26161 * character.c (char_string): Use ASCII_CHAR_P instead of
26162 SINGLE_BYTE_CHAR_P.
26163
261642008-02-01 Kenichi Handa <handa@m17n.org>
26165
26166 * xdisp.c (handle_auto_composed_prop): Check if the last
26167 characters of auto-composed region is newly composed with the
26168 following characters.
26169 (handle_composition_prop): Fix checking of point being inside
26170 composition.
26171
261722008-02-01 Kenichi Handa <handa@m17n.org>
26173
26174 * fns.c (concat): Don't change multibyteness of the result by
26175 concatenating an 8-bit character.
26176
26177 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26178 multibyteness of the result when newelt is an 8-bit character.
26179
261802008-02-01 Dave Love <fx@gnu.org>
26181
26182 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26183 EMACS_INT.
26184
26185 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26186
26187 * xfaces.c (face_numeric_value): Declare dim size_t.
26188 (Finternal_lisp_face_equal_p): Remove unused f.
26189
26190 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26191 (MATRIX_ROW): Remove unused vars.
26192 (draw_glyphs, x_insert_glyphs, fast_find_position)
26193 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26194 byte/char counts.
26195
26196 * regex.c (regex_compile): Remove unused var.
26197
26198 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26199
26200 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26201 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26202
26203 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26204
26205 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26206
26207 * fileio.c (Fwrite_region): Remove unused var.
26208
26209 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26210 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26211
26212 * composite.c (Fremove_list_of_text_properties): Declare.
26213
26214 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26215 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26216 (coding_inherit_eol_type): Remove unused attrs.
26217 (detect_coding): Cast arg of detect_eol.
26218
26219 * charset.c (syms_of_charset): Remove unused var p.
26220 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26221 byte/char counts.
26222
26223 * casetab.c (set_case_table): Remove unused var.
26224
bba3e508
SM
26225 * window.c (Fdisplay_buffer, Fframe_selected_window):
26226 Remove unused vars.
aac0c6e3
MR
26227
262282008-02-01 Dave Love <fx@gnu.org>
26229
26230 * xterm.c (x_bitmap_mask): Declare.
26231
262322008-02-01 Dave Love <fx@gnu.org>
26233
26234 * xterm.c (x_term_init): Fix type error.
26235
26236 * lisp.h: Add Funibyte_char_to_multibyte.
26237
26238 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26239 (Fset_coding_system_priority): Doc fix.
26240
26241 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26242
26243 * indent.c (check_composition): Make start and end EMACS_INT.
26244
26245 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26246
26247 * xdisp.c (handle_composition_prop, check_point_in_composition):
26248 Make buffer positions EMACS_INT.
26249
26250 * composite.c (find_composition, run_composition_function)
26251 (update_compositions, Ffind_composition_internal): Make buffer
26252 positions EMACS_INT.
26253
bba3e508
SM
26254 * composite.h (find_composition, update_compositions):
26255 Make position args EMACS_INT.
aac0c6e3
MR
26256
26257 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26258
26259 * intervals.c (get_property_and_range):
26260 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26261
26262 * unexalpha.c: Don't include varargs.h.
26263
262642008-02-01 Dave Love <fx@gnu.org>
26265
26266 * coding.h (ENCODE_UTF_8): New.
26267
26268 * Makefile.in (gtkutil.o): Depend on coding.h.
26269
26270 * coding.c (Fset_coding_system_priority): Doc fix.
26271
262722008-02-01 Kenichi Handa <handa@m17n.org>
26273
26274 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26275 the case of auto saving.
26276
262772008-02-01 Andreas Schwab <schwab@suse.de>
26278
bba3e508
SM
26279 * chartab.c (map_char_table, map_char_table_for_charset):
26280 Protect `range' from GC.
aac0c6e3
MR
26281
262822008-02-01 Kenichi Handa <handa@m17n.org>
26283
26284 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26285
262862008-02-01 Kenichi Handa <handa@m17n.org>
26287
26288 * fileio.c (choose_write_coding_system): Return a decided coding system.
26289 (Fwrite_region): Set Vlast_coding_system_used to the return value
26290 of choose_write_coding_system.
26291
262922008-02-01 Kenichi Handa <handa@m17n.org>
26293
26294 * charset.c (Fset_charset_priority): Pay attention to duplicated
26295 arguments.
26296
26297 * coding.c (QCcategory): New variable.
26298 (syms_of_coding): Defsym it. Set all elements of
26299 Vcoding_category_table and their symbol values.
26300 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26301 coding-category-XXX, and coding-category-list.
26302 (Fdefine_coding_system_internal): Add category in the plist.
26303
263042008-02-01 Kenichi Handa <handa@m17n.org>
26305
26306 * callproc.c (Fcall_process): Handle carryover correctly.
26307
26308 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26309 (raw_text_coding_system): Check NILP (coding_system).
26310 (coding_inherit_eol_type): Check NILP (coding_system) and
26311 NILP (parent).
26312 (consume_chars): Fix for the case of raw-text.
26313
26314 * process.c (read_process_output): Handle carryover correctly.
26315
263162008-02-01 Dave Love <fx@gnu.org>
26317
26318 * regex.c (re_search_2): Fix last change.
26319
263202008-02-01 Kenichi Handa <handa@m17n.org>
26321
26322 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26323 target_multibyte. Even in a unibyte case, return a converted
26324 multibyte char.
26325 (GET_CHAR_AFTER): New macro.
26326 (PATFETCH): Translate via multibyte char.
26327 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26328 (SETUP_MULTIBYTE_RANGE): New macro.
26329 (regex_compile): Setup compiled code so that its multibyteness
26330 matches that of a target. Fix the handling of "[X-YZ]" using
26331 SETUP_MULTIBYTE_RANGE.
26332 (analyse_first) <charset>: For filling fastmap for all multibyte
26333 characters, don't check by BASE_LEADING_CODE_P.
26334 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26335 the same as RE_MULTIBYTE_P (bufp) now.
26336 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26337 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26338 (TRANSLATE_VIA_MULTIBYTE): New macro.
26339 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26340 It is the same as RE_MULTIBYTE_P (bufp) now.
26341 <exactn>: Translate via multibyte.
bba3e508
SM
26342 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26343 Don't translate it.
aac0c6e3
MR
26344 <charset, charset_not>: Fetch a character by
26345 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26346 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26347 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26348 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26349 by GET_CHAR_AFTER.
26350 (bcmp_translate): Likewise.
26351
26352 * search.c (compile_pattern): Check the member target_multibyte,
26353 not the member multibyte of buf.
26354
26355 * lread.c (read1): While reading a string, set force_singlebyte
26356 and force_multibyte correctly.
26357
26358 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26359 up of unibyte_to_multibyte_table.
26360
263612008-02-01 Kenichi Handa <handa@m17n.org>
26362
26363 * coding.c (setup_coding_system): If coding has
26364 post-read-conversion or pre-write-conversion, set
26365 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26366 respectively.
26367 (decode_coding_gap): Run post-read-conversion if any.
26368
26369 * fileio.c (Finsert_file_contents): Even if we read into a
26370 unibyte buffer, check if we must decode the result or not.
26371
263722008-02-01 Kenichi Handa <handa@m17n.org>
26373
26374 * coding.c (make_conversion_work_buffer): Change the work buffer
26375 name to the same one as that of Emacs 21.
26376
263772008-02-01 Kenichi Handa <handa@m17n.org>
26378
26379 * coding.h (make_conversion_work_buffer): Adjust prototype.
26380 (code_conversion_restore): Don't extern it.
26381
26382 * coding.c (detected_mask): Delete unused variable.
26383 (decode_coding_iso_2022): Pay attention to the byte sequence of
26384 CTEXT extended segment, and retain those bytes as is.
26385 (decode_coding_ccl): Delete unused variable `valids'.
26386 (setup_coding_system): Delete unused variable `category'.
26387 (consume_chars): Delete unused variable `category'. Make it work
26388 for non-multibyte case.
26389 (make_conversion_work_buffer): Change argument.
26390 (saved_coding): Delete unused variable.
26391 (code_conversion_restore): Don't check saved_coding->destination.
26392 (code_conversion_save): New function.
26393 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26394 instead of record_unwind_protect.
26395 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26396 (detect_coding_system): Delete unused variable `mask'.
26397 (Fdefine_coding_system_internal): Delete unused variable id.
26398
26399 * fileio.c (kill_workbuf_unwind): New function.
26400 (Finsert_file_contents): On replacing, call
26401 make_conversion_work_buffer with correct args, and call
26402 record_unwind_protect with the first arg kill_workbuf_unwind.
26403
26404 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26405
264062008-02-01 Kenichi Handa <handa@m17n.org>
26407
26408 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26409 (fontset_add): Fix for the case that TO is less than TO1.
26410 (Ffontset_info): Don't use fallback fontset on checking the
26411 default fontset.
26412 (dump_fontset): New function for debugging.
26413
26414 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26415 coding_type is Qcharset.
26416
264172008-02-01 Kenichi Handa <handa@m17n.org>
26418
26419 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26420 (map_char_table): Don't inherit the value from the parent on
26421 initializing VAL. Adjust for the above change.
26422
264232008-02-01 Kenichi Handa <handa@m17n.org>
26424
26425 * coding.c (Qsignature, Qendian): Delete these variables.
26426 (syms_of_coding): Don't initialize them.
26427 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26428 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26429 detect_info->found.
26430 (decode_coding_utf_16): Don't detect BOM here.
26431 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26432 is NOT utf_16_without_bom.
26433 (setup_coding_system): For a coding system of type utf-16, check
26434 if the attribute :endian is Qbig or not (not nil or not), and set
26435 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26436 (detect_coding): If coding type is utf-16 and BOM detection is
26437 required, detect it.
26438 (Fdefine_coding_system_internal): For a coding system of type
26439 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26440
264412008-02-01 Kenichi Handa <handa@m17n.org>
26442
26443 * coding.c (coding_set_source): Fix for the case that the current
26444 buffer is different from coding->src_object.
26445 (decode_coding_object): Don't use the conversion work buffer if
26446 DST_OBJECT is a buffer.
26447
264482008-02-01 Dave Love <fx@gnu.org>
26449
26450 * lread.c (read_emacs_mule_char) [len==2]: Index
26451 emacs_mule_charset correctly.
26452
264532008-02-01 Dave Love <fx@gnu.org>
26454
26455 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26456 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26457 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26458 treated specially.)
26459 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26460 (detected_mask): Remove Big5 bits.
26461
264622008-02-01 Kenichi Handa <handa@m17n.org>
26463
26464 The following changes are to make the font rescaling facility
26465 compatible with Emacs 21.
26466
26467 * xfaces.c (Vface_font_rescale_alist): Rename from
26468 Vface_resizing_fonts.
26469 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26470 (font_rescale_ratio): Rename from font_resizing_ratio.
26471 (split_font_name): Set font->rescale_ratio.
26472 (better_font_p): Pay attention to font->rescale_ratio.
26473 (build_scalable_font_name): Likewise. Change RESX, and RESY
26474 fields.
26475 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26476
264772008-02-01 Kenichi Handa <handa@m17n.org>
26478
26479 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26480 (Qutf_16_le): Remove these variables.
26481 (syms_of_coding): Don't DEFSYM them.
26482 (decode_coding_utf_16): Fix handling of BOM.
26483 (encode_coding_utf_16): Fix handling of BOM.
26484
264852008-02-01 Kenichi Handa <handa@m17n.org>
26486
26487 * fileio.c (Finsert_file_contents): On replacing, before decoding
26488 the file into the work buffer, set point of the work buffer to the end.
26489
264902008-02-01 Dave Love <fx@gnu.org>
26491
26492 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26493
264942008-02-01 Dave Love <fx@gnu.org>
26495
26496 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26497 and fix C types.
26498
264992008-02-01 Kenichi Handa <handa@m17n.org>
26500
26501 * xdisp.c (SKIP_GLYPHS): New macro.
26502 (set_cursor_from_row): Pay attention to string display properties.
26503
26504 * category.c (copy_category_entry): Fix for the case that RANGE
26505 is an integer.
26506
26507 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26508
26509 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26510
265112008-02-01 Kenichi Handa <handa@m17n.org>
26512
26513 * charset.c (Fcharset_id_internal): New function.
26514 (syms_of_charset): Defsubr it.
26515
26516 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26517 with the last arg charset_list acquired from coding.
26518 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26519 the attribute coding_attr_ccl_valids.
26520
26521 * coding.h (enum define_coding_ccl_arg_index): Set the first
26522 member coding_arg_ccl_decoder to coding_arg_max.
26523
26524 * ccl.h (ccl_driver): Adjust prototype.
26525
26526 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26527 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 26528 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
26529 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26530 last arg Qnil.
26531
265322008-02-01 Kenichi Handa <handa@m17n.org>
26533
26534 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26535 call encode_char.
26536
26537 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26538
265392008-02-01 Dave Love <fx@gnu.org>
26540
26541 * composite.c (syms_of_composite): Make composition_hash_table weak.
26542
265432008-02-01 Kenichi Handa <handa@m17n.org>
26544
26545 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26546 (font_name_registry): Don't extern them.
26547 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26548
26549 * fontset.h (Qfontset): Don't extern it.
26550 (new_fontset_from_font_name): Extern it.
26551
26552 * fontset.c: Give 8 extra slots to fontset objects.
26553 (Qfontset_info): New variable.
26554 (syms_of_fontset): Defsym it.
26555 (FONTSET_FALLBACK): New macro.
26556 (fontset_face): Try also the default fontset.
26557 (make_fontset): Realize a fallback fontset from the default fontset.
26558 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26559 using split_font_name_into_vector and build_font_name_from_vector.
26560 (Fset_fontset_font): Access the elements of font_spec by enum
26561 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26562 name by using split_font_name_into_vector.
26563 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
26564 generate a proper font name from the fontset name.
26565 Update Vfontset_alias_alist.
aac0c6e3
MR
26566 (n_auto_fontsets): New variable.
26567 (new_fontset_from_font_name): New function.
26568 (Ffont_info): Store the information about fonts generated from the
26569 default fontset in the first extra slot of the returned char-table.
26570
26571 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26572 (font_name_registry): Delete function.
26573 (split_font_name_into_vector): New function.
26574 (build_font_name_from_vector): New function.
26575 (font_list): The argument REGISTRY is now a list of registry names.
26576 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26577 specifies an explicit font name, return the name as is. Make a
26578 list of registy names.
26579
26580 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26581 of x_new_fontset.
26582 (Fx_create_frame): Don't call x_new_fontset here. Just use
26583 x_list_fonts to check the existence of fonts.
26584
26585 * xterm.h (x_new_fontset): Adjust prototype.
26586
26587 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26588 string. Use new_fontset_from_font_name to create a fontset from a
26589 font name.
26590
265912008-02-01 Kenichi Handa <handa@m17n.org>
26592
26593 * syntax.c (Vfind_word_boundary_function_table): New name for
26594 Vnext_word_boundary_function_table.
26595 (find-word-boundary-function-table): New name for
26596 next-word-boundary-function-table.
26597
265982008-02-01 Dave Love <fx@gnu.org>
26599
26600 * Makefile.in: Fix some dependencies.
26601
26602 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
26603 set it to nil before returning.
26604
26605 * composite.c (update_compositions): Fix type error.
26606
26607 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
26608
266092008-02-01 Kenichi Handa <handa@m17n.org>
26610
26611 * xterm.c (x_new_font): Optimize for the case that the font is
26612 already set for the frame.
26613
266142008-02-01 Kenichi Handa <handa@m17n.org>
26615
26616 * chartab.c (char_table_ascii): Check if the char table contents
26617 is sub-char-table or not.
26618 (char_table_set, char_table_set_range): Fix argument to
26619 char_table_ascii.
26620
26621 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
26622 (detect_coding_utf_8, detect_coding_utf_16)
26623 (detect_coding_emacs_mule, detect_coding_iso_2022)
26624 (detect_coding_sjis, detect_coding_big5)
26625 (detect_coding_ccl, detect_coding_charset): Change argument MASK
26626 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
26627 sequence is valid in this coding system. Change callers.
26628 (MAX_ANNOTATION_LENGTH): New macro.
26629 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
26630 (ADD_COMPOSITION_DATA): Change argument. Change callers.
26631 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
26632 (ADD_CHARSET_DATA): New macro.
26633 (emacs_mule_char): New argument ID. Change callers.
26634 (decode_coding_emacs_mule, decode_coding_iso_2022)
26635 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26636 Produce charset annotation data in coding->charbuf.
26637 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
26638 to charset annotation data in coding->charbuf.
26639 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
26640 coding->common_flags if the coding system is iso-2022 based and
26641 uses designation.
26642 (produce_composition): Adjust for the new annotation data format.
26643 (produce_charset): New function.
26644 (produce_annotation): Handle charset annotation.
bba3e508
SM
26645 (handle_composition_annotation, handle_charset_annotation):
26646 New functions.
aac0c6e3
MR
26647 (consume_chars): Handle charset annotation. Utilize the above two
26648 functions.
26649 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
26650 buffer, get the deleted text as a string and set
26651 coding->src_object to that string.
26652 (detect_coding, detect_coding_system): Use the new struct
26653 coding_detection_info.
26654
26655 * coding.h (struct coding_detection_info): New structure.
26656 (struct coding_system): Adjust prototype of the member `detector'.
26657 (CODING_ANNOTATE_CHARSET_MASK): New macro.
26658
266592008-02-01 Kenichi Handa <handa@m17n.org>
26660
26661 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
26662
266632008-02-01 Dave Love <fx@gnu.org>
26664
26665 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
26666 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
26667 to new local and nullify apropos_accumulate before returning.
26668 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
26669
266702008-02-01 Kenichi Handa <handa@m17n.org>
26671
26672 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
26673 correctly.
e3eea1fc 26674
aac0c6e3
MR
266752008-02-01 Dave Love <fx@gnu.org>
26676
26677 * fns.c (Flanginfo): Call synchronize_system_time_locale.
26678
266792008-02-01 Kenichi Handa <handa@m17n.org>
26680
26681 The following changes are to make character composition happen
26682 automatically on displaying.
26683
26684 * Makefile.in (lisp, shortlisp): Add composite.elc.
26685
26686 * composite.h (Qauto_composed, Vauto_composition_function)
26687 (Qauto_composition_function): Extern them.
26688
26689 * composite.c (Vcomposition_function_table)
26690 (Qcomposition_function_table): Delete variables.
26691 (Qauto_composed, Vauto_composition_function)
26692 (Qauto_composition_function): New variables.
26693 (run_composition_function): Don't call
26694 compose-chars-after-function.
26695 (update_compositions): Clear `auto-composed' text property.
26696 (compose_chars_in_text): Delete this function.
26697 (syms_of_composite): Staticpro Qauto_composed and
26698 Qauto_composition_function. Declare Vauto_composition_function as
26699 a Lisp variable.
26700
26701 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
26702
26703 * xdisp.c (it_props): Add an entry for Qauto_composed.
26704 (handle_auto_composed_prop): New function.
26705
26706 * xselect.c (selection_data_to_lisp_data): Don't call
26707 compose_chars_in_text.
26708
267092008-02-01 Dave Love <fx@gnu.org>
26710
26711 * keyboard.c (read_char): Modify checking around use of
26712 Vkeyboard_translate_table.
26713
26714 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26715 and fix C types.
26716
267172008-02-01 Kenichi Handa <handa@m17n.org>
26718
26719 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
26720 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26721 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
26722 the case that the last byte is '\r' correctly.
26723 (decode_coding): Flush out the unprocessed data correctly.
26724 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
26725
267262008-02-01 Dave Love <fx@gnu.org>
26727
26728 * xterm.c (XTread_socket): Fix changes for defined keysyms.
26729 Add XK_ISO... case.
26730 (xaw_scroll_callback): Revert last change.
26731
267322008-02-01 Kenichi Handa <handa@m17n.org>
26733
26734 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
26735
267362008-02-01 Kenichi Handa <handa@m17n.org>
26737
26738 * xfaces.c (Vface_resizing_fonts): New variable.
26739 (struct font_name): New member `resizing_ratio'.
26740 (font_resizing_ratio): New function.
26741 (split_font_name): Set font->resizing_ratio.
26742 (better_font_p): Pay attention to font->resizing_ratio.
26743 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
26744 RESX, and RESY fields.
26745 (try_alternative_families): Try scalable fonts if
26746 Vscalable_fonts_allowed is not Qt.
26747 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
26748
267492008-02-01 Dave Love <fx@gnu.org>
26750
26751 * xterm.c (xaw_scroll_callback): Cast correctly.
26752
267532008-02-01 Dave Love <fx@gnu.org>
26754
26755 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
26756 (lispy_kana_keys): Comment out.
26757 (make_lispy_event) [XK_kana_A]: Comment out.
26758
26759 * xterm.c (xaw_scroll_callback): Cast call_data.
26760 (XTread_socket): Deal with ASCII keysyms.
26761 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
26762
267632008-02-01 Dave Love <fx@gnu.org>
26764
26765 * xterm.c (Vx_keysym_table): New.
26766 (syms_of_xterm): Initialize it.
26767 (XTread_socket): Use it.
26768 From head: Eliminate incorrect optimization that tried to avoid
26769 decoding the output of X*LookupString.
26770 (x_get_font_repertory): Delete charset declaration.
26771
267722008-02-01 Kenichi Handa <handa@m17n.org>
26773
26774 * coding.c (detect_coding_charset): If only ASCII bytes are found,
26775 return 0.
bba3e508
SM
26776 (Fdefine_coding_system_internal):
26777 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
26778
267792008-02-01 Dave Love <fx@gnu.org>
26780
26781 * coding.c (Fcheck_coding_system): Doc fix.
26782
26783 * editfns.c (Finsert_byte): Return a proper value.
26784
267852008-02-01 Kenichi Handa <handa@m17n.org>
26786
bba3e508
SM
26787 * coding.c (decode_coding): Fix args to translate_chars.
26788 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
26789 (encode_coding): Fix args to translate_chars. Pay attention to
26790 Vstandard_translation_table_for_encode.
26791
26792 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26793 SINGLE_BYTE_CHAR_P.
26794
26795 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26796 not by SINGLE_BYTE_CHAR_P.
26797
26798 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26799 SINGLE_BYTE_CHAR_P.
26800
26801 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26802 SINGLE_BYTE_CHAR_P.
26803
26804 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26805 by SINGLE_BYTE_CHAR_P.
26806
26807 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26808 SINGLE_BYTE_CHAR_P.
26809
268102008-02-01 Dave Love <fx@gnu.org>
26811
26812 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26813
268142008-02-01 Dave Love <fx@gnu.org>
26815
26816 * fns.c (Flanginfo): Fix typo.
26817
26818 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26819
268202008-02-01 Kenichi Handa <handa@m17n.org>
26821
26822 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26823 (detect_coding_emacs_mule, detect_coding_iso_2022)
26824 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26825 incomplete byte sequence. Don't update *mask when correctly detected.
26826 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
26827 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
26828 (detect_coding, detect_coding_system): Adjust for the changes above.
26829
268302008-02-01 Kenichi Handa <handa@m17n.org>
26831
26832 * character.c (char_string): Rename from
26833 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
26834 (string_char): Rename from string_char.
26835
26836 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
26837 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
26838 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
26839 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
26840
268412008-02-01 Dave Love <fx@gnu.org>
26842
26843 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
26844
268452008-02-01 Kenichi Handa <handa@m17n.org>
26846
26847 * keymap.c (push_key_description): Pay attention to force_multibyte.
26848
26849 * regex.c (re_search_2): Fix for the case of unibyte buffer.
26850
268512008-02-01 Dave Love <fx@gnu.org>
26852
26853 * charset.c (define_charset_internal): Rename `supprementary'.
26854
26855 * Makefile.in (lisp, shortlisp): Remove latin-N.
26856
268572008-02-01 Dave Love <fx@gnu.org>
26858
26859 * xfns.c (x_window, x_window): Use use_xim.
26860
26861 * xterm.c (use_xim): Initialize.
26862 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
26863 (x_term_init): Maybe set use_xim.
26864
26865 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
26866
268672008-02-01 Kenichi Handa <handa@m17n.org>
26868
26869 * search.c (search_buffer): Fix case-fold-search of multibyte
26870 characters.
26871 (boyer_moore): Rename the last argument to char_high_bits.
26872
268732008-02-01 Kenichi Handa <handa@m17n.org>
26874
26875 * xdisp.c (display_string): Fix for the case of zero width glyph.
26876
26877 * xfns.c (x_set_font): Change the error message of the case that
26878 x_new_fontset returns Qt.
26879
26880 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
26881 (Finternal_set_lisp_face_attribute): Use signal_error for the
26882 error of invalid fontset.
26883
26884 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
26885 fontset, return Qt.
26886
268872008-02-01 Dave Love <fx@gnu.org>
26888
26889 * unexelf.c (unexec): Make .got handling not SGI-specific.
26890
26891 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
26892
26893 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
26894
26895 * keyboard.c (read_key_sequence): Fix type error.
26896
bba3e508
SM
26897 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
26898 Fix type error.
aac0c6e3
MR
26899
26900 * fontset.c (fontset_add): Return Lisp_Object.
26901
269022008-02-01 Dave Love <fx@gnu.org>
26903
26904 * charset.h (charset_ordered_list_tick): Declare extern.
26905
269062008-02-01 Kenichi Handa <handa@m17n.org>
26907
26908 The following changes (and some of 2008-02-01 changes of mine) are
26909 for handling syntax, category, and case conversion for unibyte
26910 characters by converting them to multibyte on the fly. With these
26911 changes, we don't have to setup syntax and case tables for unibyte
26912 characters in each language environment.
26913
26914 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
26915 multibyte if necessary.
26916
26917 * bytecode.c (Fbyte_code): Likewise.
26918
26919 * character.h (LEADING_CODE_LATIN_1_MIN)
26920 (LEADING_CODE_LATIN_1_MAX): New macros.
26921 (unibyte_to_multibyte_table): Extern it.
26922 (unibyte_char_to_multibyte): New macro.
26923 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
26924 (CHAR_LEADING_CODE): New macro.
26925 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26926
26927 * character.c (unibyte_to_multibyte_table): New variable.
26928 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26929 (multibyte_char_to_unibyte): If C is an eight-bit character,
26930 convert it to the corresponding byte value.
26931
26932 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26933 not 1, signals an error. Update the elements of
26934 unibyte_to_multibyte_table.
26935 (init_charset_once): Initialize unibyte_to_multibyte_table.
26936 (syms_of_charset): Define the charset `iso-8859-1'.
26937
26938 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26939 as is without converting it to unibyte. In a unibyte buffer,
26940 convert C to multibyte before checking the syntax.
26941
26942 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26943
26944 * minibuf.c (Fminibuffer_complete_word): Use the macro
26945 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26946
26947 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26948
26949 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
26950 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26951 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
26952 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26953 non-emacs case.
26954 (PATFETCH): Convert an eight-bit char to multibyte.
26955 (HANDLE_UNIBYTE_RANGE): New macro.
26956 (regex_compile): Setup the compiled pattern for multibyte chars
26957 even if the given regex string is unibyte. Use PATFETCH_RAW
26958 instead of PATFETCH in many places. To handle `charset'
26959 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26960 only for ASCII chars.
26961 (analyse_first) <exactn>: Simplify because the compiled pattern
26962 is multibyte.
26963 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26964 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26965 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26966 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26967 multibyte always 1.
26968 (re_search_2): In emacs, set the locale variable multibyte to 1,
26969 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
26970 to decide the multibyteness of STR1 and STR2.
26971 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
26972 before translating and checking fastmap.
26973 (TARGET_CHAR_AND_LENGTH): New macro.
26974 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
26975 to 1, otherwise to 0. New local variable target_multibyte.
26976 Check it to decide the multibyteness of STR1 and STR2.
26977 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
26978 <charset, charset_not>: If multibyte is nonzero, check fastmap
26979 only for ASCII chars. Call bcmp_translate with
26980 target_multibyte, not with multibyte.
26981 <begline>: Declare the local variable C as `unsigned'.
26982 (bcmp_translate): Change the last arg name to target_multibyte.
26983
26984 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26985 the regexp pattern and the matching target. Set cp->buf.multibyte
26986 to the multibyteness of the regexp pattern. Set
26987 cp->but.target_multibyte to the multibyteness of the matching target.
26988 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26989 FETCH_STRING_CHAR_ADVANCE.
26990 (Freplace_match): Convert unibyte chars to multibyte.
26991
26992 * syntax.c (char_quoted, back_comment, scan_words)
26993 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26994 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26995 unibyte chars to multibyte.
26996 (skip_chars): Delete the arg syntaxp, and move the code for
26997 handling syntaxes to skip_syntaxes. Change callers.
26998 Fix the case that the multibyteness of STRING and the current
26999 buffer doesn't match.
27000 (skip_syntaxes): New function.
27001 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27002 SINGLE_BYTE_CHAR_P.
27003
270042008-02-01 Kenichi Handa <handa@m17n.org>
27005
27006 * xfaces.c (QCfontset): New variable.
27007 (LFACE_FONTSET): New macro.
27008 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27009 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27010 (Finternal_set_lisp_face_attribute)
27011 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27012 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27013 check also LFACE_FONTSET_INDEX.
27014 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27015 attrs[LFACE_FONT_INDEX].
27016 (syms_of_xfaces): Intern and staticpro QCfontset.
27017
27018 * dispextern.h (enum lface_attribute_index): New member
27019 LFACE_FONTSET_INDEX.
27020
27021 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27022
270232008-02-01 Kenichi Handa <handa@m17n.org>
27024
27025 * coding.c (coding_set_destination): Fix coding->destination for
27026 the case converting a region.
27027 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27028 (encode_coding_object): Fix coding->dst_pos and
27029 coding->dst_pos_byte for the case converting a region.
27030
27031 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27032
27033 * character.h (BYTE8_STRING): New macro.
27034
27035 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27036
270372008-02-01 Kenichi Handa <handa@m17n.org>
27038
27039 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27040 characters by octal form.
27041
27042 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27043
27044 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27045 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27046 _fetch_multibyte_char_len.
27047 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27048
27049 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27050
27051 * casefiddle.c (casify_object): Simplify. Handle the case that
27052 the case conversion change the byte length.
27053 (casify_region): Likewise.
27054
27055 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27056
27057 * character.c (_fetch_multibyte_char_len): Delete this variable.
27058 (syms_of_character): Setup Vprintable_chars.
27059
27060 * editfns.c (Fchar_equal): Fix for the unibyte case.
27061 (Finsert_byte): New function.
27062 (syms_of_editfns): Defsubr it.
27063
27064 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27065 of direct code 0x3ffff.
27066
27067 * search.c (Freplace_match): Fix for the unibyte case.
27068
270692008-02-01 Kenichi Handa <handa@m17n.org>
27070
27071 * lread.c (safe_to_load_p): Fix the logic.
27072
27073 * syntax.c (scan_words): Don't treat characters belonging to
27074 different scripts as constituting a word.
27075
27076 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27077
27078 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27079
27080 * emacs.c (main): In the case of --unibyte, instead of aborting on
27081 finding non-empty buffer, make it unibyte.
27082
270832008-02-01 Kenichi Handa <handa@m17n.org>
27084
27085 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27086 to create a fontset.
27087
270882008-02-01 Dave Love <fx@gnu.org>
27089
27090 * character.c (Funibyte_char_to_multibyte): Doc fix.
27091
27092 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27093
270942008-02-01 Kenichi Handa <handa@m17n.org>
27095
27096 * fontset.c (fontset_add): Make the type `int'.
27097 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27098
27099 * character.c (unibyte_char_to_multibyte)
27100 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27101 charset_unibyte, not charset_primary.
27102
27103 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27104
27105 * charset.c (charset_unibyte): Rename from charset_primary.
27106 (Funibyte_charset): Rename from Fprimary_charset.
27107 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27108 (syms_of_charset): Adjust for the above changes.
27109
27110 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27111 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27112 it->multibyte_p is zero.
27113
27114 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27115 Delete extern.
27116
271172008-02-01 Kenichi Handa <handa@m17n.org>
27118
27119 * coding.c (Fdefine_coding_system_internal): Fix category setting
27120 for a coding system of type iso-2022.
27121
271222008-02-01 Kenichi Handa <handa@m17n.org>
27123
27124 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27125
271262008-02-01 Kenichi Handa <handa@m17n.org>
27127
27128 * syntax.c (Vnext_word_boundary_function_table): New variable.
27129 (next-word-boundary-function-table): Declare it as a Lisp variable
27130 in syms_of_syntax.
27131 (scan_words): Call functions in Vnext_word_boundary_function_table
27132 if any.
27133
27134 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27135
27136 * fontset.c (fs_load_font): If fontp->charset is not negative,
27137 return fontp without setting its members.
27138
271392008-02-01 Dave Love <fx@gnu.org>
27140
27141 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27142
27143 * m/sparc.h (HAVE_ALLOCA): Delete.
27144
27145 * s/irix6-5.h: Don't include strings.h.
27146 (bcopy, bzero, bcmp): Don't undef.
27147
27148 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27149
27150 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27151 (TIOCSIGSEND): Don't test IRIX6.
27152 (bcopy, bzero, bcmp): Define conditionally.
27153
271542008-02-01 Kenichi Handa <handa@m17n.org>
27155
27156 * buffer.c (Qas, Qmake, Qto): New variables.
27157 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27158 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27159
27160 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27161 we are inserting a process output into a multibyte buffer.
27162
27163 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27164 multibyte_char_to_unibyte.
27165
27166 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27167 by the primary charset, make it eight-bit char.
27168 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27169
27170 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27171 (charset_8_bit__control, charset_8_bit_graphic)
27172 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27173 (define_charset_internal): New function.
27174 (syms_of_charset): Call define_charset_internal for pre-defined
27175 charsets.
27176
27177 * charset.h (charset_8_bit): Extern it.
27178
27179 * coding.c (make_conversion_work_buffer): Adjust for the change
27180 of Fset_buffer_multibyte.
27181 (encode_coding_raw_text): Increment p0 in the loop.
27182
27183 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27184
bba3e508
SM
27185 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27186 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
27187
27188 * fns.c (Fstring_to_multibyte): New function.
27189 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27190
271912008-02-01 Dave Love <fx@gnu.org>
27192
27193 * xfns.c (x_put_x_image): Declare args.
27194
27195 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27196 (try_font_list): Declare an arg.
27197
27198 * xdisp.c (message2_nolog, set_message): Declare an arg.
27199
27200 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27201
27202 * syntax.c (scan_sexps_forward): Declare an arg.
27203
27204 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27205 Declare an arg.
27206
27207 * lisp.h (Fnew_fontset): Declare.
27208
27209 * keymap.c (push_key_description): Call CHARACTERP correctly.
27210
27211 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27212 (face_for_char): Delete unused vars.
27213 (Fset_fontset_font): Doc fix. Delete unused vars.
27214
27215 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27216
27217 * composite.c (update_compositions): Declare arg.
27218
27219 * cm.c (calccost, cmgoto): Declare args.
27220
27221 * charset.c: Remove `emacs' conditional. Doc fixes.
27222 (map_char_table_for_charset): Declare.
27223
27224 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27225
27226 * ccl.c: Remove `emacs' conditional.
27227
272282008-02-01 Kenichi Handa <handa@m17n.org>
27229
27230 The following changes are to allow specifying multiple font
27231 patterns for a character range (specified by script or charset).
27232
27233 * Makefile.in (abbrev.o): Depend on syntax.h.
27234 (xfaces.o): Depend on charset.h.
27235
27236 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27237 SINGLE_BYTE_CHAR_P.
27238
27239 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27240
27241 * character.h (Vchar_script_table): Extern it.
27242
27243 * character.c (Vscript_alist): Delete.
27244 (Vchar_script_table, Qchar_script_table): New variable.
27245 (syms_of_character): Declare Vchar_script_table as a lisp variable
27246 and initialize it.
27247
27248 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27249 have property char-table-extra-slots, make no extra slot.
27250
27251 * dispextern.h (struct face): Delete member `charset'.
27252 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27253 SINGLE_BYTE_CHAR_P.
27254 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27255 Add prototypes.
27256 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27257 (generate_ascii_font_name): Rename from generate_ascii_font.
27258
27259 * fontset.h (get_font_repertory_func): New prototype.
27260 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27261 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27262
27263 * fontset.c (Qprepend, Qappend): New variables.
27264 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27265 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27266 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27267 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27268 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27269 (load_font_get_repertory): New functions.
27270 (fontset_set): Delete.
27271 (fontset_face): New arg FACE. Return face ID, not face.
27272 Complete re-write to handle new fontset structure. Change caller.
27273 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27274 (face_for_char): Don't call lookup_face.
27275 (make_fontset_for_ascii_face): New arg FACE.
27276 (fs_load_font): New arg CHARSET_ID. Don't check
27277 Vfont_encoding_alist here.
27278 (find_font_encoding): New function.
27279 (list_fontsets): Use STRINGP, not ! NILP.
27280 (accumulate_script_ranges): New function.
bba3e508
SM
27281 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27282 Completely re-written to handle new fontset structure.
aac0c6e3 27283 (Ffontset_font): Return a copy of element.
bba3e508
SM
27284 (syms_of_fontset): Define symbols Qprepend and Qappend.
27285 Fix docstring of font-encoding-alist.
aac0c6e3
MR
27286
27287 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27288 (Fset_fotset_font): Fix arguments to 5.
27289
27290 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27291
27292 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27293 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27294 (highlight_trailing_whitespace): Adjust for the change of
27295 lookup_named_face.
27296
27297 * xfaces.c: Include charset.h.
27298 (load_face_font): Delete argument C. Change caller.
27299 (generate_ascii_font_name): Rename from generate_ascii_font.
27300 (font_name_registry): New function.
27301 (cache_face): Store ascii faces before non-ascii faces in buckets.
27302 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27303 Lookup only ascii faces.
27304 (lookup_non_ascii_face): New function.
27305 (lookup_named_face): Delete argument C. Change caller.
27306 (lookup_derived_face): Delete argument C. Change caller.
27307 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27308 a string, just call font_list with it.
27309 (choose_face_font): Delete arguments FACE and C. New arg
27310 FONT_SPEC. Change caller.
27311 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27312 Change caller.
27313 (realize_non_ascii_face): New function.
27314 (realize_x_face): Call load_face_font here.
27315 (realize_tty_face): Delete argument C. Change caller.
27316 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27317 get a face ID.
27318 (dump_realized_face): Don't print charset of FACE.
27319
27320 * xfns.c (x_set_font): Always call x_new_fontset and
27321 store_frame_parameter.
27322 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27323 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27324
27325 * xterm.h (x_get_font_repertory): Extern it.
27326
27327 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27328 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27329 it->multibyte_p is zero.
27330 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27331 (x_new_fontset): If FONTSETNAME doesn't match any existing
27332 fontsets, create a new one.
27333 (x_get_font_repertory): New function.
27334
273352008-02-01 Kenichi Handa <handa@m17n.org>
27336
27337 * coding.c (Ffind_coding_systems_region_internal): Detect an
27338 ASCII only string correctly.
27339
27340 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27341 version is 0.
27342
273432008-02-01 Kenichi Handa <handa@m17n.org>
27344
27345 * lread.c: Include "coding.h".
27346 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27347 (load_each_byte, unread_char): New variables.
27348 (readchar_backlog): Delete.
27349 (readchar): Return a character unless load_each_byte is nonzero.
27350 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27351 cons. If unread_char is not -1, simply return it.
27352 (unreadchar): Handle the case that readcharfun is
27353 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27354 (read_multibyte): Delete.
27355 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27356 (read_emacs_mule_char): New functions.
27357 (Fload): Even if the file doesn't have the extension ".elc", if
27358 safe_to_load_p returns a positive version number, assume that the
27359 file contains bytecompiled code. If the version is less than 22,
27360 load the file while decoding multibyte sequences by emacs-mule.
27361 (readevalloop): Don't use readchar_backlog.
27362 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27363 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27364 (read_escape): Delete the arg BYTEREP.
27365 (read1): Set load_each_byte to 1 temporarily while handling
27366 #@NUMBER. Don't call read_multibyte.
27367 (read_vector): Call Fread with a cons. If readcharfun is
27368 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27369 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27370 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27371 and Qload_force_doc_strings.
27372
273732008-02-01 Kenichi Handa <handa@m17n.org>
27374
bba3e508
SM
27375 * xdisp.c (face_before_or_after_it_pos):
27376 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
27377
273782008-02-01 Kenichi Handa <handa@m17n.org>
27379
27380 * character.h (TRAILING_CODE_P): New macro.
27381 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27382 (string_char_with_unification): Fix prototype.
27383 (Vscript_alist): Extern it.
27384
27385 * character.c (Vscript_alist): New variable.
27386 (string_char_with_unification, str_as_unibyte)
27387 (string_escape_byte8): Add `const' to local variables.
27388 (syms_of_character): Declare script-alist as a Lisp variable.
27389
27390 * charset.h (Vcharset_ordered_list): Extern it.
27391 (charset_ordered_list_tick): Extern it.
27392 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27393 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27394 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27395 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27396 (Funify_charset): Adjust for the change of Funify_charset.
27397
27398 * charset.c (charset_ordered_list_tick): New variable.
27399 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27400 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 27401 deunify instead of unify a charset.
aac0c6e3
MR
27402 (string_xstring_p): Add `const' to local variables.
27403 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
27404 (encode_char): Adjust for the change of Funify_charset.
27405 Fix detecting of invalid code.
aac0c6e3
MR
27406 (Fset_charset_priority): Increment charset_ordered_list_tick.
27407 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27408 and TO_CODE.
27409
27410 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27411 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27412 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27413 (decode_coding_ccl, consume_chars)
27414 (Ffind_coding_systems_region_internal)
27415 (Fcheck_coding_systems_region): Add `const' to local variables.
27416
27417 * print.c (print_object): Use octal form for printing the
27418 contents of a bool vector.
27419
274202008-02-01 Dave Love <fx@gnu.org>
27421
27422 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27423 <version == 20>: Refuse to load.
27424
274252008-02-01 Dave Love <fx@gnu.org>
27426
27427 * fns.c: Move coding.h.
27428 (Qcodeset, Qdays, Qmonths): New.
27429 (concat): Use CHARACTERP instead of INTEGERP.
27430 (Flocale_codeset): Delete.
27431 (Flanginfo): New function.
27432 (syms_of_fns): Change accordingly.
27433
27434 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27435
274362008-02-01 Dave Love <fx@gnu.org>
27437
bba3e508
SM
27438 * casetab.c (init_casetab_once, init_casetab_once):
27439 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
27440
27441 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27442
27443 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27444
27445 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27446 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27447 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27448
27449 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27450
27451 * coding.c (ENCODE_DESIGNATION, decode_eol)
27452 (make_conversion_work_buffer, code_conversion_restore)
27453 (Fdefine_coding_system_internal): Convert Lisp types.
27454 (code_conversion_restore): Use EQ, not ==.
27455 (Fencode_coding_string): Fix code_convert_string call.
27456
27457 * coding.h (code_convert_region): Fix prototype.
27458
27459 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27460
27461 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27462 (Ffontset_info): Convert Lisp types.
27463
27464 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27465
27466 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27467
27468 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27469
27470 * chartab.c: Include "...h", not <...h> in some cases.
27471
27472 * callproc.c (Fcall_process): Remove unused variables.
27473
274742008-02-01 Dave Love <fx@gnu.org>
27475
27476 * coding.c (Fset_coding_system_priority): Allow null arg list.
27477
274782008-02-01 Dave Love <fx@gnu.org>
27479
27480 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27481 (Fself_insert_and_exit): Use CHARACTERP.
27482
27483 * callproc.c (Fcall_process): Remove unused vars.
27484
27485 * xterm.c (XTread_socket): Add extra dead keysyms.
27486
27487 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27488
27489 * dispextern.h: Remove prototypes for redraw_frame,
27490 redraw_garbaged_frames.
27491
27492 * cmds.c (Fself_insert_command): Use CHARACTERP.
27493
27494 * chartab.c (make_sub_char_table): Remove unused var.
27495 (Fset_char_table_default, Fmap_char_table): Doc fix.
27496
27497 * keymap.c (access_keymap): Remove generic char code.
27498 (push_key_description): Use CHARACTERP.
27499
275002008-02-01 Dave Love <fx@gnu.org>
27501
27502 * charset.c: Doc fixes.
27503 (Funify_charset): Extra checking.
27504
275052008-02-01 Dave Love <fx@gnu.org>
27506
27507 * lread.c: Remove some unused variables.
27508 (safe_to_load_p): If safe, return the magic number version byte.
27509 (Fload): Maybe use load-with-code-conversion.
27510
275112008-02-01 Kenichi Handa <handa@m17n.org>
27512
27513 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
27514 of category_set for characters out of the range.
27515 Avoid unnecessary modification.
aac0c6e3
MR
27516
27517 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27518 Vchar_unify_table. The default value of the table is now nil.
27519
27520 * character.c (syms_of_character): Setup Vchar_width_table for
27521 eight-bit-control and raw-byte chars.
27522
bba3e508
SM
27523 * charset.h (enum define_charset_arg_index):
27524 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
27525 charset_arg_superset.
27526 (enum charset_attr_index): Delete charset_parents and add
27527 charset_subset and charset_superset.
27528 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27529 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27530 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27531 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27532 (CHARSET_SUPERSET): New macros.
27533 (charset_work): Extern it.
27534 (ENCODE_CHAR): Use charset_work.
27535 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27536 (map_charset_chars): Extern it.
27537
27538 * charset.c (load_charset_map): Set the default value of encoder
27539 and deunifier char-tables to nil.
bba3e508
SM
27540 (map_charset_chars): Change argument. Change callers.
27541 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
27542 (Fmap_charset_chars): New optional args from_code and to_code.
27543 (Fdefine_charset_internal): Adjust for the change of
27544 `define-charset' (:parents -> :subset or :superset).
27545 (charset_work): New variable.
27546 (encode_char, syms_of_charset): Adjust for the change of
27547 Fdefine_charset_internal.
27548 (Ffind_charset_string): Setup the vector `charsets' correctly.
27549
bba3e508
SM
27550 * chartab.c (sub_char_table_ref_and_range): New arg default.
27551 Fix the previous change.
aac0c6e3
MR
27552 (char_table_ref_and_range): Adjust for the above change.
27553 (map_sub_char_table_for_charset): New function.
27554 (map_char_table_for_charset): New function.
27555
27556 * keymap.c (describe_vector): Handle a char-table directly here.
27557 (describe_char_table): Delete.
27558
27559 * lisp.h (map_charset_chars): Delete.
27560
275612008-02-01 Dave Love <fx@gnu.org>
27562
27563 * fns.c (count_combining): Comment out (unused).
27564 (Flocale_codeset): New.
27565 (syms_of_fns): Defsubr it.
27566
27567 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27568 (size_t): Remove.
27569
275702008-02-01 Dave Love <fx@gnu.org>
27571
27572 * Makefile.in (chartab.o): Depend on charset.h.
27573
275742008-02-01 Kenichi Handa <handa@m17n.org>
27575
27576 * character.c (syms_of_character): Set the default value of
27577 Vprintable_chars to Qnil.
27578
275792008-02-01 Dave Love <fx@gnu.org>
27580
27581 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27582
275832008-02-01 Kenichi Handa <handa@m17n.org>
27584
27585 * charset.c (load_charset_map): Handle the case that from < to
27586 correctly.
27587
27588 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27589 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27590 Pay attention to raw-8-bit chars.
27591
275922008-02-01 Kenichi Handa <handa@m17n.org>
27593
27594 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
27595 It is not bytecompiled now.
27596
27597 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
27598 (charset_jisx0208): New variables.
27599 (Fdefine_charset_internal): Setup them if appropriate.
27600 (init_charset_once): Initialize them to -1.
27601
27602 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
27603 (charset_jisx0208): Extern them.
27604
27605 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
27606 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
27607 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
27608 (setup_iso_safe_charsets): Fix arguments to Fassq.
27609 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
27610 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
27611 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
27612 (encode_coding_iso_2022): Change the 1st arg to
27613 ENCODE_ISO_CHARACTER to a variable.
27614
276152008-02-01 Kenichi Handa <handa@m17n.org>
27616
27617 * charset.h (enum define_charset_arg_index): New enums
27618 charset_arg_min_code and charset_arg_max_code.
27619 (struct charset): New member char_index_offset.
27620
27621 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
27622 Take charset->char_index_offset into account.
27623 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
27624 args[charset_arg_max_code]. Setup charset.char_index_offset.
27625 (syms_of_charset): Fix args to Fdefine_charset_internal.
27626
276272008-02-01 Dave Love <fx@gnu.org>
27628
27629 * coding.c (decode_coding_utf_8): Reject overlong sequences.
27630
276312008-02-01 Dave Love <fx@gnu.org>
27632
27633 * coding.c: Doc fixes.
27634 (Fcoding_system_aliases): Fix return value.
27635 (Qmac): Remove (duplicated) definition.
27636
276372008-02-01 Dave Love <fx@gnu.org>
27638
362654a6
JB
27639 * charset.c (Fcharset_priority_list, Fset_charset_priority):
27640 New functions.
aac0c6e3
MR
27641
27642 * character.c (Fstring): Doc fix.
27643
27644 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
27645
362654a6 27646 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
27647 (font-encoding-alist): Doc fix.
27648
276492008-02-01 Dave Love <fx@gnu.org>
27650
27651 * term.c (costs_set): Declare static, non-initialized for pcc.
27652 (encode_terminal_code): Remove unused var.
27653
27654 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
27655 for K&R.
27656
27657 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
27658
27659 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
27660 (suffixes): Move out of make_subsidiaries for K&R.
27661
27662 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
27663
27664 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
27665
276662008-02-01 Dave Love <fx@gnu.org>
27667
27668 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
27669
27670 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
27671
276722008-02-01 Yong Lu <lyongu@asia-infonet.com>
27673
27674 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
27675
27676 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
27677
276782008-02-01 Kenichi Handa <handa@m17n.org>
27679
27680 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
27681 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
27682
276832008-02-01 Kenichi Handa <handa@m17n.org>
27684
27685 * coding.c (decode_coding_charset): Adjust for the change of
27686 Fdefine_coding_system_internal.
27687 (Fdefine_coding_system_internal): For a coding system of
27688 `charset' type, store a list of charset IDs in
27689 `charset_attr_charset_valids' element of coding attributes.
27690
276912008-02-01 Kenichi Handa <handa@m17n.org>
27692
27693 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
27694 (emacs_mule_char): New arg src. Delete arg `composition'.
27695 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
27696 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
27697 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
27698 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
27699 (DECODE_EMACS_MULE_21_COMPOSITION):
27700 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
27701 sequence.
27702 (decode_coding_emacs_mule): Handle composition correctly. Rewind
27703 `src' and `consumed_chars' correctly before calling emacs_mule_char.
27704 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
27705 and alt&rule composition.
27706 (decode_coding_iso_2022): Handle composition correctly.
27707 (init_coding_once): Setup emacs_mule_bytes for private charsets.
27708
27709 * charset.c (Fdefine_charset_internal): Fix bug for the case of
27710 re-defining a charset. If the charset has :emacs-mule-id, setup
27711 emacs_mule_bytes.
27712 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
27713
277142008-02-01 Kenichi Handa <handa@m17n.org>
27715
27716 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
27717 (encode_coding_big5, encode_coding_charset): If coding requires safe
27718 encoding, produce a character specified by
27719 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
27720
277212008-02-01 Dave Love <fx@gnu.org>
27722
27723 * xterm.c (XSetIMValues): Declare.
27724
27725 * process.c: Conditionally include sys/wait.h, pty.h.
27726
27727 * print.c (print_object): Fix print format for 64-bit systems.
27728
27729 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
27730
27731 * buffer.c (emacs_strerror): Declare.
27732
27733 * fontset.c (Fclear_face_cache): Declare.
27734 (accumulate_font_info): Comment-out (unused).
27735 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
27736 variables.
27737
27738 * character.h (string_escape_byte8): Declare.
27739
bba3e508
SM
27740 * charset.c (load_charset_map, load_charset_map_from_file):
27741 Remove unused vars.
aac0c6e3
MR
27742 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
27743 (Fmap_charset_chars): Doc fix.
27744
27745 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
27746 (Fset_coding_system_priority, Fset_coding_system_priority)
27747 (Fdefine_coding_system_internal): Doc fix.
27748
277492008-02-01 Dave Love <fx@gnu.org>
27750
27751 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
27752
277532008-02-01 Kenichi Handa <handa@m17n.org>
27754
27755 * character.c (string_escape_byte8): Make multibyte string with
27756 correct size.
27757
27758 * charset.c (Fmake_char): Delete unnecessary code.
27759
277602008-02-01 Kenichi Handa <handa@m17n.org>
27761
27762 * xfns.c (x_encode_text): Allocate coding.destination here, and
27763 call encode_coding_object with dst_object Qnil.
27764
27765 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
27766 multibyte form correctly.
27767
27768 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
27769 against Vfont_encoding_alist.
27770
27771 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
27772 handling of charset list.
27773 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
27774 (decode_coding_object): Move point to coding->dst_pos before
27775 calling post-read-conversion function.
27776 (encode_coding_object): Give correct arguments to
27777 pre-write-conversion. Ignore the return value of
27778 pre-write-conversion function. Pay attention to the case that
27779 pre-write-conversion changes the current buffer. If dst_object is
27780 Qt, even if coding->src_bytes is zero, allocate at least one byte
27781 to coding->destination.
27782
27783 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
27784
27785 * charset.c (Fmake_char): Make it more backward compatible.
27786 (Fmap_charset_chars): Fix docstring.
27787
277882008-02-01 Dave Love <fx@gnu.org>
27789
27790 * coding.c: Doc fixes.
27791 (Fdefine_coding_system_alias): Use names, not symbols, in
27792 coding-system-alist.
27793
277942008-02-01 Kenichi Handa <handa@m17n.org>
27795
27796 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27797 of calling free_realized_face.
27798
277992008-02-01 Yong Lu <lyongu@asia-infonet.com>
27800
27801 * charset.c (read_hex): Don't treat SPC as a comment starter.
27802 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27803 (Fdecode_char): Fix typo.
27804
278052008-02-01 Kenichi Handa <handa@m17n.org>
27806
27807 * charset.h (struct charset): New member `code_space_mask'.
27808
27809 * coding.c (coding_set_source): Delete the local variable beg_byte.
27810 (encode_coding_charset, Fdefine_coding_system_internal):
27811 Delete the local variable charset.
bba3e508
SM
27812 (Fdefine_coding_system_internal):
27813 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
27814
27815 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27816 member to check if CODE is valid or not.
27817 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27818 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27819 is within the range of charset->min_code and carset->max_code.
27820
278212008-02-01 Dave Love <fx@gnu.org>
27822
27823 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27824
27825 * dispextern.h (generate_ascii_font): Fix return type.
27826
27827 * xfaces.c (generate_ascii_font): Fix arg declaration.
27828
27829 * coding.c (coding_inherit_eol_type)
27830 (Fset_terminal_coding_system_internal)
27831 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
27832
278332008-02-01 Kenichi Handa <handa@m17n.org>
27834
bba3e508
SM
27835 * coding.c (decode_coding_charset, encode_coding_charset):
27836 Handle multiple charsets correctly.
aac0c6e3
MR
27837
278382008-02-01 Kenichi Handa <handa@m17n.org>
27839
27840 * search.c (boyer_moore): Fix handling of multibyte character
27841 translation.
27842
27843 * xdisp.c (display_mode_element): When the variable `elt' is
27844 changed, update `this' and `lisp_string'.
27845
278462008-02-01 Kenichi Handa <handa@m17n.org>
27847
27848 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
27849
27850 * callproc.c (Fcall_process): Be sure to give the current buffer
27851 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
27852
27853 * charset.c (struct charset_map_entries): New struct.
27854 (load_charset_map): Rename from parse_charset_map. New args
27855 entries and n_entries. Change caller.
27856 (load_charset_map_from_file): Rename from load_charset_map.
27857 Change caller. New arg control_flag. Call load_charset_map at
27858 the tail.
27859 (load_charset_map_from_vector): New function.
27860 (Fdefine_charset_internal): Setup charset.compact_codes_p.
27861 (encode_char): If the charset is compact, change a character index
27862 to a code point.
27863
27864 * coding.c (coding_alloc_by_making_gap): Check the case that the
27865 source and destination are the same correctly.
27866 (decode_coding_raw_text): Set coding->consumed_char and
27867 coding->consumed to 0.
27868 (produce_chars): If coding->chars_at_source is nonzero, update
27869 coding->consumed_char and coding->consumed before calling
27870 alloc_destination.
27871 (Fdefine_coding_system_alias): Register ALIAS in
27872 Vcoding_system_alist.
27873 (syms_of_coding): Define `no-conversion' coding system at the tail.
27874
27875 * fileio.c (Finsert_file_contents): Set coding_system instead of
27876 val. If the current buffer is multibyte, always call
27877 decode_coding_gap.
27878
27879 * xfaces.c (try_font_list): Give higher priority to fontset's
27880 family than face's family.
27881
278822008-02-01 Kenichi Handa <handa@m17n.org>
27883
27884 * callproc.c (Fcall_process): Be sure to give the current buffer
27885 to decode_coding_c_string.
27886
27887 * xfaces.c (try_font_list): Give a family specified in a fontset
27888 higher priority than a family specified in a face.
27889
278902008-02-01 Kenichi Handa <handa@m17n.org>
27891
27892 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
27893 Fix arguments to insert_from_buffer.
27894
27895 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
27896
278972008-02-01 Kenichi Handa <handa@m17n.org>
27898
27899 * coding.c (produce_chars): Set the variable `multibytep' correctly.
27900 (decode_coding_gap): Set coding->dst_multibyte correctly.
27901
279022008-02-01 Kenichi Handa <handa@m17n.org>
27903
27904 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
27905 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
27906 (encode_coding_utf_16): Substitute coding->default_char for
27907 non-Unicode characters.
27908 (decode_coding): Don't call record_insert here.
27909 (setup_coding_system): Initialize `surrogate' of
27910 coding->spec.utf_16 to 0.
27911 (EMIT_ONE_BYTE): Fix for multibyte case.
27912
27913 * insdel.c (insert_from_gap): Call record_insert.
27914
279152008-02-01 Kenichi Handa <handa@m17n.org>
27916
27917 * casefiddle.c (casify_region): Fix multibyte case.
27918
27919 * character.c (c_string_width): Add return type `int'.
27920 (char_string_with_unification): Delete arg ADVANCED.
27921
27922 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
27923 (CHAR_STRING): Adjust for the change of char_string_with_unification.
27924 (CHAR_STRING_ADVANCE): Make it do-while statement.
27925
27926 * chartab.c (sub_char_table_set_range): Optimize for the case
27927 DEPTH == 3. Add workaround code for a GCC optimization bug.
27928
27929 * charset.c (parse_charset_map): Remove an unused variable.
27930
27931 * coding.c: Delete unused variables.
27932
27933 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27934 earlier. If inserted is zero and the coding system doesn't
27935 require flushing, don't call decode_coding_gap.
27936
27937 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27938
279392008-02-01 Kenichi Handa <handa@m17n.org>
27940
27941 The following changes are for using Unicode as an internal
27942 character model, and use UTF-8 format for buffer/string
27943 representation.
27944
27945 * .gdbinit (xchartable): Adjust for the change of char table structure.
27946 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27947
27948 * Makefile.in (obj): Add character.o and chartab.o.
27949 (lisp, shortlisp): Remove utf-8.elc.
27950 (*.o): For many files, change dependency on charset.h to
27951 character.h, and add dependency on character.h.
27952 (character.o, chartab.o): New targets.
27953
27954 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27955 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27956 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27957 of "charset.h".
27958
27959 * dired.c, filelock.c: Include "character.h".
27960
27961 * alloc.c: Include "character.h" instead of "charset.h".
27962 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27963 (syms_of_alloc): Remove defsubr for Smake_char_table.
27964
27965 * buffer.c: Include "character.h" instead of "charset.h", don't
27966 include "coding.h".
27967 (Fset_buffer_multibyte): Adjust for UTF-8.
27968
27969 * buffer.h: EXFUN Fbuffer_live_p.
27970
27971 * callproc.c: Include "character.h" instead of "charset.h".
27972 (Fcall_process): Big change for the new code-conversion APIs.
27973
27974 * casetab.c: Include "character.h" instead of "charset.h".
27975 (set_canon, set_identity, shuffle): Adjust for the new
27976 map_char_table spec.
27977 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27978 accessing the char table structure.
27979
27980 * chartab.c: New file that implements char table.
27981
27982 * category.c: Include "character.h".
27983 (copy_category_entry): New function.
27984 (copy_category_table): Call map_char_table and copy_category_entry.
27985 (Fmake_category_table): Initialize all top-level slots.
27986 (char_category_set): New function.
27987 (modify_lower_category_set): Delete.
27988 (Fmodify_category_entry): Call char_table_ref_and_range.
27989
27990 * category.h (CATEGORY_SET): Just call char_category_set.
27991
27992 * ccl.c: Include "character.h".
27993 (Qccl, Qcclp): New variables.
27994 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27995 it's less than 256.
27996 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27997 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27998 and DST type.
27999 (ccl_driver): Change types of argument, adjust code accordingly.
28000 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28001 ccl_driver.
28002 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28003
28004 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28005 New members src_multibyte, dst_multibyte, consumed, and produced.
28006 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28007 (CODING_SPEC_CCL_PROGRAM): New macro.
28008 (ccl_driver): Update prototype.
28009 (Qccl, Qcclp, Fccl_program_p): Extern them.
28010 (CHECK_CCL_PROGRAM): New macro.
28011
28012 * character.c, character.h, chartab.c: New files.
28013
28014 * charset.c: Mostly re-written. Move character and multibyte sequence
28015 handling codes to character.c.
28016
28017 * charset.h: Mostly re-written. Move character and multibyte sequence
28018 handling codes to character.h.
28019
28020 * coding.c, coding.h: Mostly re-written.
28021
28022 * composite.c: Include "character.h" instead of "charset.h".
28023 (CHAR_WIDTH): Move to character.h.
28024 (HASH_KEY, HASH_VALUE): Delete.
28025
28026 * composite.h (enum composition_method): Change order of enumeration
28027 symbols.
28028
28029 * data.c: Include "character.h" instead of "charset.h".
28030 (Faref): Call CHAR_TABLE_REF for a char table.
28031 (Faset): Call CHAR_TABLE_SET for a char table.
28032
28033 * dispextern.h (free_realized_face, check_face_attribytes)
28034 (generate_ascii_font): Extern them.
28035 (free_realized_multibyte_face): Delete extern.
28036
28037 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28038 table structure.
28039
28040 * editfns.c: Include "character.h" instead of "charset.h".
28041 (Fchar_to_string): Always call CHAR_STRING.
28042
28043 * emacs.c (main): Call init_charset_once, init_charset,
28044 syms_of_chartab, and syms_of_character.
28045
28046 * fileio.c: Include "character.h" instead of "charset.h".
28047 (Finsert_file_contents): Big change for the new code-conversion API.
28048 (choose_write_coding_system, Fwrite_region): Likewise.
28049 (build_annotations_2): Delete.
28050 (e_write): Big change for the new code-conversion API.
28051
28052 * fns.c: Include "character.h" instead of "charset.h".
28053 (copy_sub_char_table): Move to chartab.c.
28054 (Fcopy_sequence): Call copy_char_table for a char table.
28055 (concat): Delete codes calling count_multibyte.
28056 (string_char_to_byte, string_byte_to_char): Adjust for the new
28057 multibyte form.
28058 (internal_equal): Adjust for the change of char table structure.
28059 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28060 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28061 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28062 (char_table_translate, optimize_sub_char_table)
28063 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28064 chartab.c.
28065 (char_table_ref_and_index): Delete.
28066 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28067 (Fmd5): Call preferred_coding_system instead of accessing
28068 Vcoding_category_list. Adjust for the new code-conversion API.
28069 (syms_of_fns): Move defsubr for char table related functions to
28070 chartab.c.
28071
28072 * fontset.c: Mostly re-written.
28073
28074 * fontset.h (struct font_info): Change type of the member encoding_type.
28075 (enum FONT_SPEC_INDEX): New enum.
28076 (fontset_font_pattern, fs_load_font): Update prototype.
28077 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28078
28079 * indent.c: Include "character.h" instead of "charset.h".
28080 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28081
28082 * insdel.c: Include "character.h" instead of "charset.h".
28083 (copy_text): Don't refer to Vnonascii_translation_table.
28084 (insert_from_gap): New function.
28085
28086 * keyboard.c: Include "character.h" instead of "charset.h".
28087 (command_loop_1): Never call direct_output_forward_char before
28088 a non-ASCII character.
28089 (read_char): If Vkeyboard_translate_table is a char table, always
28090 translate a character.
28091
28092 * keymap.c: Include "character.h".
28093 (store_in_keymap): Handle the case that IDX is a cons.
28094 (Fdefine_key): Handle the case that KEY is a cons and the car part
28095 is also a cons (range).
28096 (push_key_description): Adjust for the new character code.
28097 (describe_vector): Call describe_char_table for a char table.
28098 (describe_char_table): New function.
28099
28100 * keymap.h (describe_char_table): Extern it.
28101
28102 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28103 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28104 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28105 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28106 Delete.
28107 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28108 structure.
28109 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28110 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28111 (CHARTAB_SIZE_BITS_3): New macros.
28112 (chartab_size): Extern it.
28113 (struct Lisp_Char_Table): Re-design.
28114 (struct Lisp_Sub_Char_Table): New structure.
28115 (HASH_KEY, HASH_VALUE): Move from fns.c.
28116 (CHARACTERBITS): Define as 22.
28117 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28118 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28119 (GC_SUB_CHAR_TABLE_P): New macro.
28120 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 28121 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
28122 (init_character_once, syms_of_character, init_charset)
28123 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28124
28125 * lread.c: Include "character.h".
28126 (read_multibyte): New arg NBYTES.
28127 (read_escape): Change the meaning of returned *BYTEREP.
28128 (to_multibyte): Delete.
28129 (read1): Adjust the handling of char table and string.
28130
28131 * print.c: Include "character.h" instead of "charset.h".
28132 (print_string): Convert 8-bit raw bytes to octal form by
28133 string_escape_byte8.
28134 (print_object): Adjust for the new multibyte form. Print 8-bit
28135 raw bytes always in octal form. Handle sub char table correctly.
28136
28137 * process.c: Include "character.h" instead of "charset.h".
28138 (read_process_output, send_process): Adjust for the new
28139 code-conversion API.
28140
28141 * puresize.h (BASE_PURESIZE): Increase.
28142
28143 * regex.c: Include "character.h" instead of "charset.h".
28144 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28145 (regex_compile): Accept a range whose starting and ending
28146 character have different leading bytes.
28147 (analyse_first): Adjust for the above change.
28148
28149 * search.c: Include "character.h" instead of "charset.h".
28150 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28151 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28152
28153 * syntax.c: Include "character.h" instead of "charset.h".
28154 (syntax_parent_lookup): Delete.
28155 (Fmodify_syntax_entry): Accept a cons as CHAR.
28156 (skip_chars): Adjust for the new multibyte form.
28157 (init_syntax_once): Call char_table_set_range instead of directly
28158 accessing the structure of a char table.
28159
28160 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28161 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28162 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28163 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28164
28165 * term.c: Include "buffer.h" and "character.h".
28166 (encode_terminal_code, write_glyphs): Adjust for the new
28167 code-conversion API.
28168 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28169
28170 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28171
28172 * xdisp.c: Include "character.h".
28173 (get_next_display_element): Adjust for the new multibyte form.
28174 (disp_char_vector): Adjust for the new char table structure.
28175 (decode_mode_spec_coding): Adjust for the new structure of
28176 coding system.
28177 (decode_mode_spec): Adjust for the new code-conversion API.
28178
28179 * xfaces.c: Include "character.h" instead of "charset.h".
28180 (load_face_font): Adjust for the change of choose_face_font and
28181 FS_LOAD_FONT.
28182 (generate_ascii_font): New function.
28183 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28184 (set_font_frame_param): Adjust for the change of choose_face_font.
28185 (free_realized_face): Make it public.
28186 (free_realized_faces_for_fontset): Rename from
28187 free_realized_multibyte_face. Free also faces realized for ASCII.
28188 (choose_face_font): Change arguments. Adjust for the change of
28189 fontset_font_pattern and FS_LOAD_FONT.
28190
28191 * xfns.c: Include "character.h".
28192 (x_encode_text): Adjust for the new code-conversion API.
28193
28194 * xselect.c: Don't include "charset.h".
28195 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28196
28197 * xterm.c: Include "character.h".
28198 (x_encode_char): New argument CHARSET. Change caller.
28199 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28200 Call ENCODE_CHAR instead of SPLIT_CHAR.
28201 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28202 CHAR_WIDTH instead of CHARSET_WIDTH.
28203 (XTread_socket): Adjust for the new code-conversion API.
28204 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28205 (x_load_font): Adjust for the change of struct font.
28206
282072008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28208
28209 * xfaces.c (face_at_buffer_position): Remove unused vars.
28210
282112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28212
28213 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28214 Fix overflow checking.
28215
282162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28217
28218 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28219 Cancel previous change.
28220
282212008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28222
28223 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28224 ccl->eight_bit_control. Fix check for buffer overflow.
28225 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28226 (ccl_driver): Initialize extra_bytes to 0.
28227
282282008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28229
28230 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28231 return it ORed with ctrl_modifier.
28232
282332008-01-29 Miles Bader <miles@gnu.org>
28234
28235 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28236
282372008-01-28 Jason Rumney <jasonr@gnu.org>
28238
28239 * w32.c (stat): Don't double check for networked drive.
28240
282412008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28242
28243 * window.c (run_window_configuration_change_hook): New function.
28244 Code extracted from set_window_buffer. Set the selected frame.
28245 (set_window_buffer): Use it.
28246 * window.h (run_window_configuration_change_hook): Declare.
28247 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28248
28249 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28250
282512008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28252
28253 * Makefile.in: Remove references to unused macros.
28254
282552008-01-26 Eli Zaretskii <eliz@gnu.org>
28256
28257 * w32.c (g_b_init_get_sid_sub_authority)
28258 (g_b_init_get_sid_sub_authority_count): New static variables.
28259 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28260 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28261 (init_user_info): Use them to retrieve uid and gid.
28262 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28263 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28264 st_uid and st_gid of the file.
28265
282662008-01-26 Jason Rumney <jasonr@gnu.org>
28267
28268 * w32.c (logon_network_drive): New function.
28269 (stat): Use it.
28270
282712008-01-26 Chong Yidong <cyd@stupidchicken.com>
28272
28273 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28274 invisible text covered with an ellipsis.
28275
282762008-01-25 Richard Stallman <rms@gnu.org>
28277
28278 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28279 jump back to beginning. Move some other initializations after that.
28280 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28281 New variables.
28282 (syms_of_xdisp): Init them.
28283
28284 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28285
28286 * buffer.c (reset_buffer_local_variables):
28287 Implement `permanent-local-hook'.
28288 (Qpermanent_local_hook): New variable.
28289 (syms_of_buffer): Init and staticpro it.
28290
282912008-01-25 Michael Albinus <michael.albinus@gmx.de>
28292
28293 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28294
282952008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28296
28297 * fns.c (Fclrhash): Return TABLE.
28298
282992008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28300
28301 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28302 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28303 is set even without positional changes.
28304 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28305
28306 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28307
283082008-01-23 Jason Rumney <jasonr@gnu.org>
28309
28310 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28311
28312 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28313 the unicode range available in MULE by locale-coding-system.
28314 Improve dbcs lead byte detection. Set event timestamp and modifiers
28315 earlier.
28316
283172008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28318
28319 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28320 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28321 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28322 when used on child processes.
28323
283242008-01-21 Michael Albinus <michael.albinus@gmx.de>
28325
28326 * dbusbind.c (Fdbus_method_return_internal): Rename from
28327 Fdbus_method_return.
28328 (Fdbus_unregister_object): Move to dbus.el.
28329 (Fdbus_call_method, Fdbus_method_return_internal)
28330 (Fdbus_send_signal): Improve debug messages.
28331
283322008-01-20 Martin Rudalics <rudalics@gmx.at>
28333
28334 * undo.c (undo_inhibit_record_point): New variable.
28335 (syms_of_undo): Initialize it.
28336 (record_point): Don't record point when undo_inhibit_record_point
28337 is set.
28338
283392008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28340
28341 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28342
28343 * xdisp.c (Qauto_hscroll_mode): New var.
28344 (syms_of_xdisp): Initialize it.
28345 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28346 window's buffer.
28347 (hscroll_windows): Don't check automatic_hscrolling_p here.
28348
28349 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28350 vscroll if we're setting window-buffer to the value it already has.
28351
283522008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28353
28354 * m/intel386.h: Remove references to XENIX.
28355
283562008-01-17 Andreas Schwab <schwab@suse.de>
28357
28358 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28359 instead of HAVE_X86_64_LIB64_DIR.
28360 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28361
283622008-01-17 Glenn Morris <rgm@gnu.org>
28363
28364 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28365 to HAVE_X86_64_LIB64_DIR.
28366
283672008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28368
28369 * s/irix3-3.h:
28370 * s/irix4-0.h:
28371 * s/386-ix.h:
28372 * s/domain.h:
28373 * s/hpux9-x11r4.h:
28374 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28375
28376 * sysdep.c: Remove code containing references to symbols defined
28377 by unsupported systems.
28378
283792008-01-16 Glenn Morris <rgm@gnu.org>
28380
28381 * coding.c (select-safe-coding-system-function): Doc fix.
28382
283832008-01-15 Glenn Morris <rgm@gnu.org>
28384
28385 * config.in: Revert 2008-01-13 change: this is a generated file.
28386
283872008-01-13 Tom Tromey <tromey@redhat.com>
28388
28389 * lisp.h: Fix typo.
28390
283912008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28392
28393 * m/sequent-ptx.h:
28394 * m/sequent.h:
28395 * s/ptx.h:
28396 * s/ptx4-2.h:
28397 * s/ptx4.h: Remove files for systems no longer supported.
28398
28399 * callproc.c (Fcall_process): Fix previous change.
28400
284012008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28402
28403 * unexsunos4.c: Remove file, system not supported anymore.
28404
28405 * m/mips.h:
28406 * m/intel386.h:
28407 * callproc.c:
28408 * config.in:
28409 * ecrt0.c:
28410 * emacs.c:
28411 * fileio.c:
28412 * frame.c:
28413 * getpagesize.h:
28414 * keyboard.c:
28415 * lread.c:
28416 * process.c:
28417 * puresize.h:
28418 * sysdep.c:
28419 * systty.h:
28420 * syswait.h:
28421 * unexec.c:
28422 * xdisp.c:
28423 * alloc.c: Remove code containing references to symbols defined by
28424 unsupported systems.
28425
284262008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28427
28428 * coding.c (detect_coding_mask): Fix previous change.
28429
284302008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28431
28432 * coding.c (detect_coding_iso2022): New arg
28433 latin_extra_code_state. Allow Latin extra codes only
28434 when *latin_extra_code_state is nonzero.
28435 (detect_coding_mask): If there is a NULL byte, detect the encoding
28436 as UTF-16 or binary. If Latin extra codes exist, detect the
28437 encoding as ISO-2022 only when there's no other proper encoding is
28438 found.
28439
284402008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28441
28442 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28443 #ifdef MAC_OS.
28444
284452008-01-08 Richard Stallman <rms@gnu.org>
28446
28447 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28448
284492008-01-06 Nick Roberts <nickrob@snap.net.nz>
28450
28451 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28452 menu bar in parentheses.
28453
284542008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28455
28456 * m/7300.h:
28457 * m/acorn.h:
28458 * m/alliant-2800.h:
28459 * m/alliant.h:
28460 * m/alliant1.h:
28461 * m/alliant4.h:
28462 * m/altos.h:
28463 * m/amdahl.h:
28464 * m/apollo.h:
28465 * m/att3b.h:
28466 * m/aviion-intel.h:
28467 * m/aviion.h:
28468 * m/celerity.h:
28469 * m/clipper.h:
28470 * m/cnvrgnt.h:
28471 * m/convex.h:
28472 * m/cydra5.h:
28473 * m/delta88k.h:
28474 * m/dpx2.h:
28475 * m/dual.h:
28476 * m/elxsi.h:
28477 * m/f301.h:
28478 * m/gould-np1.h:
28479 * m/gould.h:
28480 * m/i860.h:
28481 * m/ibmps2-aix.h:
28482 * m/ibmrt-aix.h:
28483 * m/ibmrt.h:
28484 * m/irist.h:
28485 * m/is386.h:
28486 * m/isi-ov.h:
28487 * m/mega68.h:
28488 * m/mg1.h:
28489 * m/news-r6.h:
28490 * m/news-risc.h:
28491 * m/news.h:
28492 * m/nh3000.h:
28493 * m/nh4000.h:
28494 * m/ns16000.h:
28495 * m/ns32000.h:
28496 * m/nu.h:
28497 * m/orion.h:
28498 * m/orion105.h:
28499 * m/paragon.h:
28500 * m/pfa50.h:
28501 * m/plexus.h:
28502 * m/pyramid.h:
28503 * m/pyrmips.h:
28504 * m/sh3el.h:
28505 * m/sps7.h:
28506 * m/sr2k.h:
28507 * m/stride.h:
28508 * m/sun1.h:
28509 * m/sun2.h:
28510 * m/sun3-68881.h:
28511 * m/sun3-fpa.h:
28512 * m/sun3-soft.h:
28513 * m/sun3.h:
28514 * m/sun386.h:
28515 * m/symmetry.h:
28516 * m/tad68k.h:
28517 * m/tahoe.h:
28518 * m/targon31.h:
28519 * m/tek4300.h:
28520 * m/tekxd88.h:
28521 * m/tower32.h:
28522 * m/tower32v3.h:
28523 * m/ustation.h:
28524 * m/wicat.h:
28525 * m/xps100.h:
28526 * s/cxux.h:
28527 * s/cxux7.h:
28528 * s/dgux.h:
28529 * s/dgux4.h:
28530 * s/dgux5-4-3.h:
28531 * s/dgux5-4r2.h:
28532 * s/esix.h:
28533 * s/esix5r4.h:
28534 * s/hiuxmpp.h:
28535 * s/hiuxwe2.h:
28536 * s/iris3-5.h:
28537 * s/iris3-6.h:
28538 * s/isc2-2.h:
28539 * s/isc3-0.h:
28540 * s/isc4-0.h:
28541 * s/isc4-1.h:
28542 * s/newsos5.h:
28543 * s/newsos6.h:
28544 * s/osf1.h:
28545 * s/osf5-0.h:
28546 * s/riscix1-1.h:
28547 * s/riscix12.h:
28548 * s/sco4.h:
28549 * s/sco5.h:
28550 * s/sunos4-0.h:
28551 * s/sunos4-1.h:
28552 * s/sunos413.h:
28553 * s/sunos4shr.h:
28554 * s/umax.h:
28555 * s/unipl5-2.h:
28556 * s/xenix.h:
28557 * cxux-crt0.s:
28558 * unexapollo.c:
28559 * unexconvex.c:
28560 * unexenix.c:
28561 * unexsni.c: Remove files for systems no longer supported.
28562
28563 * m/intel386.h: Remove references to unsupported systems.
28564
28565 * w32.c (get_emacs_configuration): Remove reference to i860.
28566
28567 * sysdep.c: Remove dead code.
28568
285692008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28570
28571 * s/rtu.h:
28572 * m/masscomp.h: Remove files. Platform is obsolete.
28573
285742008-01-04 Michael Albinus <michael.albinus@gmx.de>
28575
28576 * dbusbind.c (Fdbus_method_return): New function.
28577 (xd_read_message): Add the serial number to the event.
28578 (Fdbus_register_method): Activate the function.
28579
285802008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28581
28582 * keyboard.c (read_key_sequence): Fix typo.
28583
285842008-01-03 Michael Albinus <michael.albinus@gmx.de>
28585
28586 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28587 (xd_signature, xd_append_arg): Handle element type detection for
28588 empty arrays.
28589 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28590 SDATA () calls; this must be solved more general.
28591 (Fdbus_register_signal): Use SBYTES instead of strlen.
28592
285932008-01-03 Magnus Henoch <magnus@zemdatav>
28594
28595 * dbusbind.c (xd_append_arg): Use unsigned char instead of
28596 unsigned int for byte values (necessary for big-endian platform).
28597 (Fdbus_call_method): Handle the case of no returned arguments.
28598
285992007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
28600
28601 * dbusbind.c (xd_read_message): Use non-static input_event struct.
28602
286032007-12-31 Magnus Henoch <mange@freemail.hu>
28604
28605 * dbusbind.c (xd_signature): Signature of variant is just "v".
28606
286072007-12-30 Michael Albinus <michael.albinus@gmx.de>
28608
28609 * dbusbind.c: Fix several errors and compiler warnings.
28610 Reported by Tom Tromey <tromey@redhat.com>.
28611 (XD_ERROR, XD_DEBUG_MESSAGE)
28612 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
28613 (xd_append_arg): Part for basic D-Bus types rewritten.
28614 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
28615 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
28616 appropriate.
28617 (xd_read_message): Return Qnil. Don't signal an error; it is not
28618 useful during event reading.
28619 (Fdbus_register_signal): Signal an error if the check for
28620 FUNCTIONP fails.
28621 (Fdbus_register_method): New function. The implementation is not
28622 complete, the call of the function signals an error therefore.
28623 (Fdbus_unregister_object): New function, renamed from
28624 Fdbus_unregister_signal. The initial check signals an error, if
28625 the object is not well formed.
28626
286272007-12-30 Richard Stallman <rms@gnu.org>
28628
28629 * textprop.c (get_char_property_and_overlay):
28630 Signal error if POSITION is out of range in a buffer.
28631
286322007-12-29 Martin Rudalics <rudalics@gmx.at>
28633
28634 * w32fns.c (Fx_create_frame): Make copy of frame parameters
28635 because the original parameters are in pure storage now.
28636
286372007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28638
28639 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
28640
286412007-12-22 Eli Zaretskii <eliz@gnu.org>
28642
28643 * callint.c (syms_of_callint) <command-history>: Add reference to
28644 history-length in the doc string.
28645
286462007-12-17 Jason Rumney <jasonr@gnu.org>
28647
28648 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
28649 before passing as wParam.
28650
286512007-12-22 Michael Albinus <michael.albinus@gmx.de>
28652
28653 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
28654 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
28655 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
28656 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
28657 as number.
28658 (Fdbus_call_method): Fix docstring.
28659
286602007-12-21 Michael Albinus <michael.albinus@gmx.de>
28661
28662 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
28663 New macros.
28664 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
28665 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
28666 Simplify.
28667 (xd_signature): New function.
28668 (xd_append_arg): Compute also signatures. Major rewrite.
28669 (xd_retrieve_arg): Make debug messages friendly.
28670 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
28671 Check for signatures of arguments.
28672
286732007-12-19 Michael Albinus <michael.albinus@gmx.de>
28674
28675 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
28676 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
28677 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
28678 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
28679 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
28680 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
28681 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
28682 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
28683 (xd_retrieve_value): Remove. Functionality included in ...
28684 (xd_append_arg): New function.
28685 (Fdbus_call_method, Fdbus_send_signal): Apply it.
28686
286872007-12-16 Michael Albinus <michael.albinus@gmx.de>
28688
28689 * dbusbind.c (top): Include <stdio.h>.
28690 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
28691 dbus_message_new_method_call and dbus_message_new_signal.
28692 (Fdbus_register_signal): Rename unique_name to uname.
28693 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
28694 non-existing unique name. Fix typos in matching rule. Return an
28695 object which is useful in Fdbus_unregister_signal.
28696 (Fdbus_unregister_signal): Reimplementation, in order to remove
28697 only the corresponding entry.
28698 (Vdbus_registered_functions_table): Change the order of entries.
28699 Apply these changes in xd_read_message and Fdbus_register_signal.
28700
287012007-12-16 Andreas Schwab <schwab@suse.de>
28702
28703 * fileio.c (Finsert_file_contents): Fix overflow check to not
28704 depend on undefined integer overflow.
28705
287062007-12-14 Jason Rumney <jasonr@gnu.org>
28707
28708 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
28709 for characters above 127.
28710
287112007-12-13 Jason Rumney <jasonr@gnu.org>
28712
28713 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
28714 before dereferencing array.
28715 (lookup_vk_code): Remove zero comparison.
28716
287172007-12-14 Michael Albinus <michael.albinus@gmx.de>
28718
28719 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
28720 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
28721 Use `unsigned int' instead of `uint'.
28722 (xd_read_message, Fdbus_register_signal): Split expressions into
28723 multiple lines before operators "&&" and "||", according to the
28724 GNU Coding Standards.
28725
287262007-12-14 Eli Zaretskii <eliz@gnu.org>
28727
28728 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
28729
287302007-12-12 Juri Linkov <juri@jurta.org>
28731
28732 * buffer.c (Frename_buffer): In interactive spec replace
28733 `read-buffer' with `read-string' that uses `buffer-name-history'
28734 as history, and the current buffer's name as default.
28735
287362007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
28737
28738 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
28739 manipulating the backtrace manually.
28740 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
28741 (struct backtrace, backtrace_list): Remove.
28742 (command_loop_1): Remove dead var `no_direct'.
28743
28744 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
28745 preserve non-built-in buffer-local variables.
28746 (Fkill_all_local_variables): Don't re-create&re-set permanent
28747 buffer-local variables.
28748
287492007-12-09 Juri Linkov <juri@jurta.org>
28750
28751 * buffer.c (Frename_buffer): Change interactive spec from "s" to
28752 Lisp code that uses `read-buffer' with current buffer as default.
28753
287542007-12-08 Michael Albinus <michael.albinus@gmx.de>
28755
28756 * dbusbind.c (xd_read_message): Generate an event for every
28757 registered handler. There might be several handlers registered
28758 for the same signal.
28759 (Fdbus_register_signal): Don't overwrite a registration for the
28760 same signal. Add a new registration if handlers are different.
28761 (Vdbus_registered_functions_table): Rework doc string.
28762
287632007-12-07 Michael Albinus <michael.albinus@gmx.de>
28764
28765 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
28766 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
28767 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
28768 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
28769 Unify argument lists.
28770 (xd_read_message, Fdbus_register_signal): Reorder and extend event
28771 arguments and hash table keys. Use unique name for service.
28772 (Fdbus_unregister_signal): Remove checks.
28773 (Vdbus_registered_functions_table): Fix doc string.
28774
287752007-12-05 Magnus Henoch <mange@freemail.hu>
28776
28777 * process.c (make_process): Initialize pty_flag to 0.
28778
287792007-12-05 Jason Rumney <jasonr@gnu.org>
28780
28781 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
28782 specified XBMs.
28783
287842007-12-05 Richard Stallman <rms@gnu.org>
28785
28786 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
28787
287882007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28789
28790 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
28791 New variable.
28792 (mac_try_close_socket) [MAC_OSX]: New function.
28793 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28794 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28795
28796 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28797 Use mac_try_close_socket.
28798
287992007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28800
28801 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28802 reloc_base.
28803 (copy_dysymtab): Compute relocation base here.
28804 (rebase_reloc_address) [__ppc64__]: New function.
28805 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28806 changed.
28807
288082007-12-05 Jason Rumney <jasonr@gnu.org>
28809
28810 * w32proc.c (sys_spawnve): Quote args with wildcards.
28811
288122007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28813
28814 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28815 __objc_* sections.
28816 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28817
288182007-12-05 Michael Albinus <michael.albinus@gmx.de>
28819
28820 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28821 Move check for Vdbus_registered_functions_table to
28822 xd_read_queued_messages.
28823 (xd_read_queued_messages): Protect xd_read_message calls by
28824 internal_condition_case_1.
28825
288262007-12-04 Michael Albinus <michael.albinus@gmx.de>
28827
28828 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
28829 Qdbus_system_bus and Qdbus_session_bus, respectively.
28830 (Vdbus_intern_symbols): Remove.
28831 (Vdbus_registered_functions_table): New hash table.
28832 (XD_SYMBOL_INTERN_SYMBOL): Remove.
28833 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
28834 Rewrite in order to manage registered functions by hash table
28835 Vdbus_registered_functions_table.
28836
288372007-12-03 Jan Djärv <jan.h.d@swipnet.se>
28838
28839 * xterm.c: Update URL to Window Manager Specification in comment.
28840
288412007-12-02 Michael Albinus <michael.albinus@gmx.de>
28842
28843 * config.in (HAVE_DBUS): Add.
28844
28845 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
28846 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
28847 (obj): Add $(DBUS_OBJ).
28848 (LIBES): Add $(DBUS_LIBS).
28849 (dbusbind.o): New target.
28850
28851 * dbusbind.c: New file.
28852
28853 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
28854
28855 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
28856 (Qdbus_event): New Lisp symbol.
28857 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
28858 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 28859 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
28860
28861 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
28862
288632007-12-01 Richard Stallman <rms@gnu.org>
28864
28865 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
28866
288672007-11-30 Jason Rumney <jasonr@gnu.org>
28868
28869 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
28870 (w32con_reset_terminal_modes): Clear screen buffer.
28871 (w32_face_attributes): Don't use color indexes that are out of range.
28872 Only reverse the default colors.
28873
28874 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
28875 WINDOWSNT.
28876
28877 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
28878
288792007-11-29 Jason Rumney <jasonr@gnu.org>
28880
28881 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
28882 (w32_face_attributes): Use Vtty_defined_color_alist to determine
28883 if the terminal colors are initialized.
28884 (unspecified_fg, unspecified_bg): Remove unused declarations.
28885
288862007-11-29 Andreas Schwab <schwab@suse.de>
28887
28888 * keyboard.c (apply_modifiers): Fix typo.
28889
288902007-11-29 Richard Stallman <rms@gnu.org>
28891
28892 * keymap.c (Fcurrent_local_map): Doc fix.
28893
288942007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
28895
28896 * s/gnu-kfreebsd.h: New file.
28897
288982007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
28899
28900 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
28901 Don't cast redundantly.
28902
28903 * keyboard.c (KEY_TO_CHAR): New macro.
28904 (parse_modifiers, apply_modifiers): Accept integer arguments.
28905 (read_key_sequence): Use them to unify the "shift->unshift" mapping
28906 for chars and symbol keys.
28907 After doing such remapping, apply function-key-map again.
28908
289092007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
28910
28911 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
28912 compiled anymore.
28913
289142007-11-26 Andreas Schwab <schwab@suse.de>
28915
28916 * process.c (list_processes_1): Fix indentation level of the
28917 command column.
28918
289192007-11-23 Andreas Schwab <schwab@suse.de>
28920
28921 * editfns.c (Fformat): Handle %c specially since it requires the
28922 argument to be of type int.
28923
289242007-11-23 Markus Triska <markus.triska@gmx.at>
28925
28926 * emacs.c (main): Call init_editfns before init_process, since
28927 init_process sets Vprocess_connection_type depending on OS release.
28928
289292007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28930
28931 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28932 (find_symbol_value): Use do_symval_forwarding.
28933
28934 * data.c (set_internal): Set the value in the `cons-cell' (for
28935 Buffer_Local_values) not only for frame-local variables.
28936
289372007-11-22 Andreas Schwab <schwab@suse.de>
28938
28939 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28940 values to sprintf.
28941 * keymap.c (Fsingle_key_description): Likewise.
28942 * print.c (print_object): Likewise.
28943
289442007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28945
28946 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28947 file for image is nil.
28948
289492007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28950
28951 * term.c: Include stdarg.h.
28952 (fatal): Implement using varargs.
28953 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28954
289552007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28956
28957 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28958 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28959 Update call to buffer_slot_type_mismatch.
28960 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28961 (buffer_slot_type_mismatch): Update.
28962 * buffer.c (buffer_local_types): Remove.
28963 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28964 (defvar_per_buffer): Set the type in the buffer_objfwd.
28965
289662007-11-21 Jason Rumney <jasonr@gnu.org>
28967
28968 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28969 CreateFileMapping returns NULL on failure.
28970
289712007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28972
28973 * search.c (Fset_match_data): Remove the `evaporate' feature.
28974 (unwind_set_match_data): Don't use the `evaporate' feature.
28975
289762007-11-21 Jason Rumney <jasonr@gnu.org>
28977
28978 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28979
28980 * w32console.c (w32con_write_glyphs): Remove unused variables.
28981
289822007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28983
28984 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28985
28986 * s/darwin.h (MULTI_KBOARD): Remove.
28987
28988 * macfns.c (x_create_tip_frame, Fx_create_frame)
28989 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28990
289912007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28992
28993 * buffer.c (Fbuffer_local_value): Remove redundant test.
28994 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28995 than in `current-buffer' to match the comment.
28996 Do the swap using swap_in_global_binding.
28997
28998 * data.c (store_symval_forwarding, set_internal):
28999 * eval.c (specbind): Remove dead code.
29000
29001 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29002 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29003 Since we do not want to see internal Lisp_*fwd objects here.
29004
290052007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29006
29007 * sysdep.c (init_system_name): Use getaddrinfo if available.
29008
29009 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29010 (x_scroll_bar_note_movement): start, end, with, height in struct
29011 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29012
290132007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29014
29015 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29016
290172007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29018
29019 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29020 This undoes Richard's change of 14-Oct-2002.
29021
29022 * alloc.c (allocate_other_vector):
29023 * lisp.h (allocate_other_vector): Remove.
29024
29025 * window.c (struct save_window_data): Move non-lisp data to the end
29026 and make it `int' rather than Lisp_Object.
29027 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29028 Done wrap/unwrap integer values.
29029 (Fset_window_configuration, compare_window_configurations):
29030 Update use of fields to their new types.
29031
29032 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29033 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29034 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29035 (SET_SCROLL_BAR_X_WINDOW): Remove.
29036 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29037 Access the new x_window field directly.
29038 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29039 Don't wrap/unwrap integers into Lisp_Objects.
29040 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29041 (x_scroll_bar_report_motion):
29042 Don't wrap/unwrap integers into Lisp_Objects.
29043 (x_term_init): Use SDATA.
29044 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29045 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29046 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29047 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29048 * xfns.c (x_set_background_color):
29049 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29050 Access the new x_window field directly.
29051
29052 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29053 (allocate_pseudovector): Make non-static.
29054
29055 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29056 (allocate_pseudovector): Declare.
29057 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29058
290592007-11-15 Andreas Schwab <schwab@suse.de>
29060
29061 * editfns.c (Fformat): Correctly format EMACS_INT values.
29062 Also take precision into account when formatting an integer.
29063
29064 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29065
290662007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29067
29068 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29069 (syms_of_keyboard): Defsubr it.
29070
29071 * data.c (swap_in_global_binding): Fix longstanding bug where
29072 store_symval_forwarding was not called with the right second argument,
29073 thus causing objfwd-ing from being dropped.
29074
290752007-11-14 Juanma Barranquero <lekktu@gmail.com>
29076
29077 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29078 (Fx_display_pixel_height, Fx_display_planes)
29079 (Fx_display_color_cells, Fx_server_max_request_size)
29080 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29081 (Fx_display_visual_class, Fx_display_save_under):
29082 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29083 (Fx_display_pixel_height, Fx_display_planes)
29084 (Fx_display_color_cells, Fx_server_max_request_size)
29085 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29086 (Fx_display_mm_height, Fx_display_mm_width)
29087 (Fx_display_backing_store, Fx_display_visual_class)
29088 (Fw32_select_font, Fx_display_save_under):
29089 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29090 (Fx_display_pixel_height, Fx_display_planes)
29091 (Fx_display_color_cells, Fx_server_max_request_size)
29092 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29093 (Fx_display_save_under): Fix typos in docstrings.
29094
290952007-11-14 Juanma Barranquero <lekktu@gmail.com>
29096
29097 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29098 corresponding to deleted entries; they are an implementation detail.
29099 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29100 Remove variables.
29101 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29102 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29103 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29104 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29105 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29106 (Fw32_define_rgb_color, Fw32_load_color_file)
29107 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29108 Fix typos in docstrings.
29109 (Fx_server_version): Reflow docstring.
29110 (Fw32_shell_execute): Doc fixes.
29111
291122007-11-13 Juanma Barranquero <lekktu@gmail.com>
29113
29114 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29115 if w32_parse_hot_key returned nil.
29116
291172007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29118
29119 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29120
291212007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 29122
aac0c6e3
MR
29123 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29124
29125 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29126
29127 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29128 Remove W32_SCROLL_BAR_CLICK_EVENT.
29129
29130 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29131 Add MULTIMEDIA_KEY_EVENT.
29132
29133 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29134 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29135 (make_lispy_event) [WINDOWSNT]: Use it to translate
29136 MULTIMEDIA_KEY_EVENT.
29137
29138 * w32term.h (WM_APPCOMMAND): Define if not already.
29139 (GET_APPCOMMAND_LPARAM): Likewise.
29140
29141 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29142 WM_APPCOMMAND.
29143
29144 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29145 (syms_of_w32fns): Export and initialize it.
29146 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29147
291482007-11-09 Chong Yidong <cyd@stupidchicken.com>
29149
29150 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29151 twice.
29152
29153 * xdisp.c (handle_face_prop): Fix last change.
29154
291552007-11-09 Richard Stallman <rms@gnu.org>
29156
29157 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29158 not just for after-strings and before-strings.
29159 Call face_for_overlay_string and pass the overlay to it.
29160 (handle_display_prop): Determine whether property came from an overlay.
29161 Pass OVERLAY arg to handle_single_display_spec.
29162 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29163 (load_overlay_strings): Fill in it->string_overlays.
29164 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29165
29166 * xfaces.c (face_for_overlay_string): Function renamed from
29167 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29168
29169 * dispextern.h (struct it): New elt string_overlays.
29170 New elt from_overlay, also in stack.
29171 Rearrange a few elements.
29172 (face_for_overlay_string): Decl renamed from
29173 face_at_buffer_position_no_overlays, and add argument.
29174
291752007-11-09 Richard Stallman <rms@gnu.org>
29176
29177 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29178 to get the base face for an overlay string.
29179
29180 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29181
29182 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29183
29184 * xdisp.c (handle_stop): Move some code out of loop.
29185
291862007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29187
29188 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29189 Fix conversion from Lisp object to ATSUFontID.
29190
291912007-11-09 Jason Rumney <jasonr@gnu.org>
29192
29193 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29194
291952007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29196
29197 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29198 Don't assume regions are aligned to page boundary.
29199 (print_load_command_name): Add LC_UUID if defined.
29200
292012007-11-09 Richard Stallman <rms@gnu.org>
29202
29203 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29204
292052007-11-07 Jason Rumney <jasonr@gnu.org>
29206
29207 * s/windows95.h: Remove.
29208
292092007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29210
29211 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29212 abort with a message on unhandled store_type values.
29213
292142007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29215
29216 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29217 Remove HAVE_X11R5 and HAVE_X11R4.
29218
292192007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29220
29221 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29222
292232007-11-01 Johan Bockgård <bojohan@gnu.org>
29224
29225 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29226 Don't set s->stippled_p here, since it has already been set by
29227 x_set_glyph_string_gc from x_draw_glyph_string.
29228
292292007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29230
29231 * sunfns.c: Remove file.
29232
29233 * m/sun386.h:
29234 * m/sun2.h:
29235 * m/sparc.h: Remove Sun windows code.
29236
292372007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29238
29239 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29240 (init_keyboard): Set current_kboard's window-system to nil.
29241 (tty_read_avail_input): Typo.
29242 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29243
292442007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29245
29246 * s/usg5-4.h:
29247 * s/usg5-3.h:
29248 * s/ptx.h:
29249 * m/is386.h:
29250 * m/ibmps2-aix.h:
29251 * Makefile.in: Remove all mentions of X10.
29252
29253 * dispnew.c (syms_of_display): Don't mention version 10.
29254
292552007-10-28 Juanma Barranquero <lekktu@gmail.com>
29256
29257 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29258 ($(BLD)/abbrev.$(O)): Remove.
29259
292602007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29261
29262 Rewrite abbrev.c in Elisp.
29263 * image.c (Qcount): Don't declare as extern.
29264 (syms_of_image): Initialize and staticpro `Qcount'.
29265 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29266 * emacs.c (main): Don't call syms_of_abbrev.
29267 * Makefile.in (obj): Remove abbrev.o.
29268 (abbrev.o): Remove.
29269 * abbrev.c: Remove.
29270
292712007-10-26 Martin Rudalics <rudalics@gmx.at>
29272
29273 * window.c (window_min_size_2): Don't count header-line.
29274
292752007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29276
29277 * frame.h (struct frame): Move all bit fields after the first bit
29278 field to take advantage of the available space. Group all the
29279 chars together to reduce wasted space due to padding.
29280
292812007-10-26 Juanma Barranquero <lekktu@gmail.com>
29282
29283 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29284
29285 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29286 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29287 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29288 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29289 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29290 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29291 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29292 (last_marked, mark_object_loop_halt): Make static.
29293
29294 * frame.c (syms_of_frame) <delete-frame-functions>:
29295 Fix typo in docstring.
29296
292972007-10-25 Juanma Barranquero <lekktu@gmail.com>
29298
29299 * w32.c (init_environment): Fix tiny memory leak.
29300 (w32_get_resource): Remove unused variable `ok'.
29301
293022007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29303
29304 Make `window-system' into a keyboard-local variable (rather than
29305 frame-local as done originally by multi-tty).
29306
29307 * keyboard.h (struct kboard): Add Vwindow_system.
29308 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29309 (mark_kboards): Mark Vwindow_system.
29310
29311 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29312 (init_display): Don't set the obsolete `window-system' frame-param.
29313
29314 * xterm.c (x_term_init):
29315 * w32term.c (w32_create_terminal):
29316 * term.c (init_tty): Set Vwindow_system.
29317 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29318 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29319
29320 * xfns.c (Fx_create_frame, x_create_tip_frame):
29321 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29322 * macfns.c (Fx_create_frame):
29323 Don't set the obsolete `window-system' frame-param.
29324
29325 * frame.h (Qwindow_system): Remove.
29326 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29327 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29328
293292007-10-24 Richard Stallman <rms@gnu.org>
29330
29331 * frame.c (x_figure_window_size): For fullscreen case,
29332 set USPosition | PPosition without clobbering rest of window_prompting.
29333
29334 * keyboard.c (Fcurrent_idle_time): Doc fix.
29335
29336 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29337
293382007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29339
29340 * process.c (unwind_request_sigio): Only define if __ultrix__.
29341
29342 * callproc.c (child_setup): Remove spurious *.
29343
29344 * lisp.h (Fget_text_property): Declare.
29345 (have_menus_p): Declare it here rather than in sys-dep header files.
29346 * macterm.h (have_menus_p):
29347 * msdos.h (have_menus_p):
29348 * xterm.h (have_menus_p): Remove.
29349
29350 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29351 (Fmake_variable_frame_local): Just check the variable's const-ness
29352 rather than checking nil or t.
29353
293542007-10-22 Jason Rumney <jasonr@gnu.org>
29355
29356 * w32fns.c: Include math.h.
29357 (w32_abort): Declaration moved to nt/config.nt.
29358
29359 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29360 (abort): Redefinition moved to nt/config.nt.
29361
29362 * m/windowsnt.h: Remove.
29363
293642007-10-22 Juanma Barranquero <lekktu@gmail.com>
29365
29366 * emacs.c (Fdump_emacs): Fix typo in message.
29367 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29368 <installation-directory>: Reflow docstring.
29369
293702007-10-22 Juri Linkov <juri@jurta.org>
29371
29372 * minibuf.c: Allow minibuffer default to be a list of default values.
29373 With empty input use the first element of this list as returned default.
29374 (string_to_object)
29375 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29376 (read_minibuf): If defalt is cons, set histstring to its car.
29377 (Fread_string): If default_value is cons, set val to its car.
29378 (Fread_buffer): If def is cons, use its car.
29379 (Fcompleting_read): If defalt is cons, set val to its car.
29380
293812007-10-21 Michael Albinus <michael.albinus@gmx.de>
29382
29383 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29384
293852007-10-20 Juanma Barranquero <lekktu@gmail.com>
29386
29387 * doc.c (Fdocumentation): Check for advice in all cases.
29388
293892007-10-19 Chong Yidong <cyd@stupidchicken.com>
29390
29391 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29392
293932007-10-19 Richard Stallman <rms@gnu.org>
29394
29395 * doc.c (Fdocumentation): Check for and handle an advised function.
29396
293972007-10-19 Juanma Barranquero <lekktu@gmail.com>
29398
29399 * process.c (Fset_process_filter): Doc fix.
29400
294012007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29402
29403 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29404 which caused key-translation-map to applied repeatedly (thus breaking
29405 double-mode).
29406
294072007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29408
29409 * xselect.c (x_own_selection, x_handle_selection_clear)
29410 (x_clear_frame_selections):
29411 * w32menu.c (list_of_panes, list_of_items):
29412 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29413 * textprop.c (validate_plist, interval_has_all_properties)
29414 (interval_has_some_properties, interval_has_some_properties_list)
29415 (add_properties, text_property_list):
29416 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29417 * minibuf.c (Fassoc_string):
29418 * macselect.c (x_own_selection, x_clear_frame_selections)
29419 (Fx_disown_selection_internal):
29420 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29421 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29422
294232007-10-17 Chong Yidong <cyd@stupidchicken.com>
29424
29425 * process.c: Link to libs for calling res_init() if available.
29426 (Fmake_network_process): Call res_init() before getaddrinfo or
29427 gethostbyname, if possible.
29428
294292007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29430
29431 * lread.c (read1): Set pvectype for char_tables.
29432
29433 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29434 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29435 Add type checks.
29436 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29437
29438 * alloc.c (free_misc): Use XMISCTYPE.
29439 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29440
294412007-10-17 Glenn Morris <rgm@gnu.org>
29442
29443 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29444 (syms_of_minibuf): Add Qcompletion_ignore_case.
29445 * dired.c (Qcompletion_ignore_case): Change to external.
29446 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29447 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29448 (Fread_file_name): Use it rather than intern'ing.
29449
29450 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29451 (Fread_coding_system): Ignore case of user input.
29452
294532007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29454
29455 * xdisp.c (handle_display_prop): Ignore display specs after
29456 replacing one when string text is being replaced.
29457 (handle_single_display_spec): Pretend as if characters with display
29458 property haven't been consumed only when buffer text is being replaced.
29459
294602007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29461
29462 * xfns.c (Fx_create_frame, Fx_display_list):
29463 * window.c (window_fixed_size_p, enlarge_window)
29464 (shrink_window_lowest_first):
29465 * macterm.c (init_font_name_table):
29466 * macfns.c (Fx_create_frame, Fx_display_list):
29467 * lread.c (close_load_descs):
29468 * keyboard.c (read_char_x_menu_prompt):
29469 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29470 * coding.c (code_convert_region_unwind): Test the type of an object
29471 rather than just !NILP before extracting data from it.
29472
29473 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29474
29475 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29476 (XMISCANY): New macro.
29477 (XMISCTYPE): Use it.
29478 (struct Lisp_Misc_Any): New type.
29479 (union Lisp_Misc): Use it.
29480 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29481 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29482 (find_symbol_value, set_internal, default_value, Fset_default)
29483 (Fmake_variable_buffer_local, Fmake_local_variable)
29484 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29485 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29486 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29487 * alloc.c (allocate_buffer): Set the size and tag.
29488 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29489 Use XMISCANY.
29490 (die): Follow the GNU convention for error messages.
29491 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29492 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29493 tag any more.
29494 (set_buffer_internal_1):
29495 * frame.c (store_frame_param):
29496 * eval.c (specbind):
29497 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29498
29499 * doc.c (Fsnarf_documentation): Simplify.
29500
295012007-10-14 Juanma Barranquero <lekktu@gmail.com>
29502
29503 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29504 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29505
295062007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29507
29508 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29509
295102007-10-14 Juanma Barranquero <lekktu@gmail.com>
29511
29512 * eval.c (do_autoload): Don't save autoloads.
29513
29514 * data.c (Ffset): Save autoload of the function being set.
29515
295162007-10-07 John Paul Wallington <jpw@pobox.com>
29517
29518 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29519 parameter before setting up faces.
29520
295212007-10-13 Eli Zaretskii <eliz@gnu.org>
29522
29523 * ccl.c (Fregister_code_conversion_map):
29524 * keyboard.c (append_tool_bar_item): Reformat last change.
29525
29526 * lisp.h (eabs): Rename from `abs'. All callers changed.
29527
295282007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29529
29530 * buffer.c (add_overlay_mod_hooklist):
29531 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29532 * fontset.c (make_fontset):
29533 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29534 (append_tool_bar_item):
29535 * macmenu.c (grow_menu_items):
29536 * w32menu.c (grow_menu_items):
29537 * xmenu.c (grow_menu_items): Use larger_vector.
29538
295392007-10-13 Eli Zaretskii <eliz@gnu.org>
29540
29541 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29542 selected frame'' on MSDOS).
29543
295442007-10-12 Martin Rudalics <rudalics@gmx.at>
29545
29546 * frame.c (Qexplicit_name): New variable.
29547 (x_report_frame_params): Report it in parameter alist.
29548 (syms_of_frame): Intern and staticpro it.
29549
295502007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29551
29552 * macfns.c (x_create_tip_frame): Set terminal for frame.
29553
295542007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29555
29556 * frame.c (Qenvironment): Remove.
29557 (syms_of_frame) <Qenvironment>: Don't initialize.
29558 (Fdelete_frame): Don't treat the `environment' param specially.
29559 * frame.h (Qenvironment): Don't declare.
29560 * callproc.c (set_initial_environment): Don't set unused frame param.
29561
29562 * frame.c (Fframe_with_environment): Remove.
29563 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29564
29565 * lisp.h (Fframe_with_environment): Don't declare.
29566
295672007-10-10 Juanma Barranquero <lekktu@gmail.com>
29568
29569 * indent.c (indent_tabs_mode, last_known_column)
29570 (last_known_column_modified): Make static.
29571 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29572
295732007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29574
29575 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29576
295772007-10-09 Jason Rumney <jasonr@gnu.org>
29578
29579 * w32term.c (x_set_window_size): Disable code that attempts to tell
29580 Lisp code about a size change before it actually happens.
29581
295822007-10-09 Richard Stallman <rms@gnu.org>
29583
29584 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29585 return HANDLED_RETURN.
29586
295872007-10-08 Martin Rudalics <rudalics@gmx.at>
29588
29589 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29590 when there's an unread command event.
29591
29592 * frame.c (focus_follows_mouse): Move here from frame.el to allow
29593 window autoselection act appropriately when leaving selected frame.
29594 (syms_of_frame): Initialize focus_follows_mouse.
29595 * frame.h (focus_follows_mouse): Extern it.
29596 * macterm.c (XTread_socket): When focus_follows_mouse is nil
29597 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
29598 * msdos.c (dos_rawgetc): Likewise.
29599 * w32term.c (w32_read_socket): Likewise.
29600 * xterm.c (handle_one_xevent): Likewise.
29601 * xdisp.c (syms_of_xdisp): In doc-string of
29602 mouse-autoselect-window mention focus-follows-mouse.
29603
296042007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29605
29606 * macterm.c (mac_load_query_font): Fix missing return value.
29607 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
29608 Add BLOCK_INPUT.
29609
296102007-10-08 Richard Stallman <rms@gnu.org>
29611
29612 * xdisp.c (get_window_cursor_type): Implement documented behavior
29613 for cursor-in-non-selected-windows = t.
29614
296152007-10-08 Jason Rumney <jasonr@gnu.org>
29616
29617 * w32.c (w32_get_resource): Always close registry keys.
29618
296192007-10-08 Jason Rumney <jasonr@gnu.org>
29620
29621 * makefile.w32-in (LIBS): Add COMCTL32.
29622
29623 * w32fns.c (globals_of_w32fns): Init common controls.
29624
296252007-10-08 Richard Stallman <rms@gnu.org>
29626
29627 * image.c (our_memory_buffer): Rename from omfib_buffer.
29628
296292007-10-08 Richard Stallman <rms@gnu.org>
29630
29631 * buffer.c (Foverlays_at): Doc fix.
29632
296332007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
29634
29635 * fns.c (Fplist_put): Preserve uneven tail data.
29636
296372007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
29638
29639 * termhooks.h (enum event_kind): Remove trailing comma.
29640
29641 * frame.h (enum): Remove trailing comma.
29642
296432007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
29644
29645 * w32proc.c (delete_child): Don't terminate threads of zombies.
29646
296472007-10-08 Martin Rudalics <rudalics@gmx.at>
29648
29649 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
29650
29651 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
29652 last-repeatable-command.
29653 (init_kboard): Initialize Vlast_repeatable_command.
29654 (command_loop_1): Set it to real_this_command unless that was
29655 bound to an input event.
29656 (mark_kboards): Mark it.
29657
296582007-10-08 Richard Stallman <rms@gnu.org>
29659
29660 * eval.c (condition-case): Doc fix.
29661
296622007-10-08 Masatake YAMATO <jet@gyve.org>
29663
29664 * xfaces.c (tty_supports_face_attributes_p): Fix code
29665 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
29666 was copied and not edited.
29667
296682007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
29669
29670 Add new `input-decode-map' keymap and use it for terminal
29671 escape sequences.
29672 * keyboard.h (struct kboard): Add Vinput_decode_map.
29673 Remove Vlocal_key_translation_map.
29674 * keyboard.c (read_key_sequence): Add support for input-decode-map.
29675 (init_kboard): Init input-decode-map.
29676 Replace local-key-translation-map back with key-translation-map.
29677 (syms_of_keyboard): Declare input-decode-map.
29678 Remove local-key-translation-map. Update docstrings.
29679 (mark_kboards): Mark Vinput_decode_map.
29680 Don't mark Vlocal_key_translation_map.
29681 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
29682 Replace local-key-translation-map back with key-translation-map.
29683 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
29684 Bind in input-decode-map rather than function-key-map.
29685
29686 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
29687 This was made redundant by the previous introduction of XSETPVECTYPE.
29688
296892007-10-09 Richard Stallman <rms@gnu.org>
29690
29691 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
29692
296932007-09-29 Richard Stallman <rms@gnu.org>
29694
29695 * eval.c (internal_condition_case_2, internal_condition_case_1)
29696 (internal_condition_case): Reenable abort if x_catching_errors ()
29697 to see if that really happens and why.
29698
296992007-10-06 Andreas Schwab <schwab@suse.de>
29700
29701 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
29702
297032007-10-04 Juanma Barranquero <lekktu@gmail.com>
29704
29705 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
29706
297072007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
29708
29709 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
29710
297112007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
29712
29713 * window.h (struct window):
29714 * window.c (struct save_window_data, struct saved_window):
29715 * termhooks.h (struct terminal):
29716 * process.h (struct Lisp_Process):
29717 * frame.h (struct frame):
29718 * buffer.h (struct buffer):
29719 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
29720 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
29721 The size field of (pseudo)vectors is now unsigned.
29722 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
29723
29724 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
29725 Turn `count' into an integer.
29726
29727 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
29728 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
29729 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
29730 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
29731 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
29732
29733 * alloc.c (allocate_pseudovector): New fun.
29734 (ALLOCATE_PSEUDOVECTOR): New macro.
29735 (allocate_window, allocate_terminal, allocate_frame)
29736 (allocate_process): Use it.
29737 (mark_vectorlike): New function.
29738 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
29739 (mark_terminals): Use it.
29740 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
29741 (Fmake_byte_code): Use XSETPVECTYPE.
29742
29743 * frame.c (Fframe_parameters): Minor simplification.
29744
29745 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
29746
29747 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
29748
29749 * buffer.c (Fget_buffer_create, init_buffer_once):
29750 * lread.c (defsubr):
29751 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
29752
29753 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
29754 defined differently in the m/*.h files.
29755 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
29756 (XSETPVECTYPE): New macro.
29757 (XSETPSEUDOVECTOR): Use it.
29758
29759 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
29760 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
29761
29762 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
29763 * lread.c (defvar_per_buffer):
29764 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
29765
29766 * window.c (candidate_window_p): Only consider as visible frames that
29767 are on the same terminal.
29768
29769 * m/ibms390x.h (MARKBIT): Remove unused macro.
29770
297712007-10-01 Juanma Barranquero <lekktu@gmail.com>
29772
29773 * lread.c (Fload): Fix typo in docstring.
29774
297752007-10-01 Michaël Cadilhac <michael@cadilhac.name>
29776
29777 * floatfns.c (Fexpt): Manually check for overflows, so that a power
29778 of a non-zero value can't yield zero.
29779
297802007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
29781
29782 * term.c (term_clear_mouse_face, term_mouse_highlight)
29783 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
29784
29785 * print.c (safe_debug_print): Use XHASH.
29786
29787 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
29788 Lisp elements such as tags.
29789 (XHASH): New macro.
29790 (EQ): Use it.
29791 (SREF, SSET, STRING_COPYIN): Use SDATA.
29792 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29793
29794 * alloc.c (mark_terminal): Remove left-over declaration.
29795 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29796 (allocate_vectorlike): Remove type argument. Adjust callers.
29797 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29798 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29799
29800 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29801 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29802 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29803 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29804 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29805 Use them.
29806
29807 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29808 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29809 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29810
298112007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29812
29813 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29814 loaded by default.
29815
298162007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29817
29818 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29819 on this tty.
29820 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29821
29822 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29823 Update all users.
29824 (handle_one_term_event): Use Gpm_DrawPointer.
29825 (Fgpm_mouse_start): Rename from Fterm_open_connection.
29826 Signal errors instead of returning nil. Always return nil.
29827 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
29828 Make it a noop if gpm-mouse was not activated.
29829 (syms_of_term): Update names.
29830
298312007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
29832
29833 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
29834 (init_sys_modes): Check that gpm_tty is the current tty.
29835
29836 * alloc.c (allocate_terminal): Set the vector size to only count the
29837 lisp fields. Initialize those to nil.
29838 (mark_object): Don't treat terminals specially.
29839 (mark_terminal): Remove.
29840 (mark_terminals): Use mark_object instead.
29841
29842 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
29843 the GC to the beginning.
29844
29845 * indent.h:
29846 * indent.c: Use EMACS_INT for ints coming from Elisp data.
29847
29848 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
29849
298502007-09-25 Jason Rumney <jasonr@gnu.org>
29851
29852 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
29853
29854 * w32console.c (create_w32cons_output): Remove.
29855
29856 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
29857
29858 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
29859 (reset_sys_modes): Use reset_terminal_modes_hook.
29860
298612007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
29862
29863 * eval.c (do_autoload): Don't output any message.
29864
298652007-09-24 Juri Linkov <juri@jurta.org>
29866
29867 * emacs.c (standard_args): Change priority of "--no-splash"
29868 from 40 to 3. Add "--no-desktop" with the same priority.
29869
298702007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
29871
29872 * alloc.c (gc_sweep): Check cons cell mark bits word by word
29873 and optimize the case where they are all 1.
29874
298752007-09-23 Johannes Weiner <hannes@saeurebad.de>
29876
29877 * lisp.h (abs): Define if not defined.
29878 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
29879 Don't define `abs', since it's defined in lisp.h.
29880
298812007-09-22 Eli Zaretskii <eliz@gnu.org>
29882
29883 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
29884 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
29885 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
29886 (init_tty): Use DEV_TTY instead of "/dev/tty".
29887 [WINDOWSNT]: No need to protect from NAME arg being null.
29888
298892007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
29890
29891 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
29892 up the tty state.
29893
298942007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29895
29896 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
29897 (gpm_tty): Change its type.
29898 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
29899 (gpm_tty): Change its type and initialize it.
29900 (Fterm_open_connection): Check the frame is indeed a tty.
29901 Use the new gpm_tty.
29902 (Fterm_close_connection): Use the new gpm_tty.
29903 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
29904 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
29905
299062007-09-21 Juanma Barranquero <lekktu@gmail.com>
29907
29908 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
29909 underline_color, to draw strike-through.
29910
299112007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29912
29913 * lisp.h (allocate_terminal): Declare.
29914
29915 * window.c (candidate_window_p): Consider frames that are being placed
29916 by the user as somewhere between visible and iconified.
29917 (window_loop): Prefer windows on the current frame.
29918 (Fselect_window): Move the use of select-frame to the beginning so we
29919 can just delegate all the work (it'll call us back anyway).
29920
29921 * frame.c (Qdisplay_environment_variable):
29922 * frame.h (Qdisplay_environment_variable): Delete.
29923
29924 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29925 of the first arg, since that value may be a union.
29926
29927 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29928 parameter rather than Qdisplay_environment_variable. If all else
29929 fails, look for DISPLAY in initial-environment.
29930
299312007-09-21 Glenn Morris <rgm@gnu.org>
29932
29933 * Makefile.in (emacstool): Remove target.
29934 (lisp, shortlisp): Remove termdev.elc.
29935
299362007-09-21 Markus Triska <markus.triska@gmx.at>
29937
29938 * xterm.c (x_delete_display): Compile session management conditionally.
29939
299402007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29941
29942 * callproc.c (getenv_internal_1): New function.
29943 (getenv_internal): Use it.
29944 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29945
29946 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29947 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29948 (Fset_terminal_parameter): Work with dead terminals as well.
29949 (Fmodify_terminal_parameters): Remove.
29950
29951 * terminal.c (get_terminal): Handle terminals.
29952 Make sure the terminal returned is live.
29953 (create_terminal): Use allocate_terminal.
29954 (mark_terminals): Move to alloc.c.
29955 (delete_terminal): Use terminal->name as liveness status.
29956 NULL out fields after freeing their contents.
29957 Don't deallocate the object.
29958 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29959 rather than an int.
29960 (Fterminal_live_p): Accept non-integer arguments.
29961 (Fterminal_list): Return terminal objects rather than an ints.
29962
29963 * alloc.c (enum mem_type): New member for `terminal' objects.
29964 (allocate_terminal): New function.
29965 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29966 Handle terminals.
29967 (mark_terminal): New fun.
29968 (mark_terminals): Move from terminal.c.
29969
29970 * term.c (get_tty_terminal): Don't treat output_initial specially.
29971 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29972 (delete_tty): Use terminal->name as liveness status.
29973
29974 * termhooks.h (struct terminal): Make it into a pseudovector.
29975 Remove `deleted' replaced by checking `name's nullness.
29976
29977 * print.c (print_object): Handle terminals.
29978
29979 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29980 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29981
29982 * frame.c (make_terminal_frame):
29983 * keyboard.c (tty_read_avail_input):
29984 * w32term.c (x_delete_terminal):
29985 * xfns.c (Fx_create_frame, x_create_tip_frame):
29986 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29987
299882007-09-20 Glenn Morris <rgm@gnu.org>
29989
29990 * process.c (Fmake_network_process): Doc fix.
29991
299922007-09-19 Jason Rumney <jasonr@gnu.org>
29993
29994 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29995
299962007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29997
29998 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29999 Fix a C warning regarding variable constness.
30000
30001 * xterm.c (handle_one_xevent): Fix a C warning.
30002
300032007-09-18 Jason Rumney <jasonr@gnu.org>
30004
30005 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30006
300072007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30008
30009 * gtkutil.c (gdpy_def): New variable.
30010 (xg_initialize): Initialize gdpy_def.
30011 (xg_display_close): If no other display exists, set gdpy_def to a
30012 new connection.
30013
300142007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30015
30016 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30017 when we have no file name for the icon.
30018 (xg_tool_bar_expose_callback): Remove.
30019 (xg_create_tool_bar): Don't connect expose signal to
30020 xg_tool_bar_expose_callback.
30021 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30022
300232007-09-16 Andreas Schwab <schwab@suse.de>
30024
30025 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30026 values instead of zapping them.
30027
300282007-09-14 Glenn Morris <rgm@gnu.org>
30029
30030 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30031 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30032 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30033 scope and rename to omfib_buffer for clarity.
30034 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30035
300362007-09-14 Kenichi Handa <handa@m17n.org>
30037
30038 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30039
300402007-09-13 Jason Rumney <jasonr@gnu.org>
30041
30042 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30043
30044 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30045
30046 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30047 (mac_term_init): Call here instead, passing rif.
30048
300492007-09-13 Glenn Morris <rgm@gnu.org>
30050
30051 * s/hpux.h: No longer define `static' as nothing.
30052
300532007-09-13 Johan Bockgård <bojohan@gnu.org>
30054
30055 * callint.c (Fcall_interactively): Remove unused var `fun'.
30056
300572007-09-12 Romain Francoise <romain@orebokech.com>
30058
30059 * window.c (prefer_window_split_horizontally, display_buffer):
30060 Revert 2007-09-08 change.
30061
300622007-09-12 Glenn Morris <rgm@gnu.org>
30063
30064 * alloca.c: Remove file.
30065 * Makefile.in (alloca): Do not undef.
30066 (allocaobj, alloca.o): Remove.
30067 (otherobj): Remove allocaobj.
30068 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30069 * regex.c (C_ALLOCA): Remove all references and code that was only
30070 used when this was defined.
30071 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30072 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30073 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30074
30075 * Makefile.in (SOURCES, unlock, relock): Delete.
30076
30077 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30078 (menu_grab_callback): All uses changed.
30079
30080 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30081 (x_reply_selection_request): All uses changed.
30082
300832007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30084
30085 * lread.c (load_warn_old_style_backquotes): Change message to look
30086 better when it appears in the middle of byte-compiler messages.
30087
300882007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30089
30090 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30091
30092 * xterm.c (x_create_terminal): Add comment.
30093
30094 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30095
300962007-09-10 Richard Stallman <rms@gnu.org>
30097
30098 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30099
301002007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30101
30102 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30103 (DEFUN): Document `intspec', use it instead of `prompt'.
30104
30105 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30106
30107 * data.c (Finteractive_form): If the interactive specification starts
30108 with a `(', use it as a Lisp form.
30109
30110 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30111 name and file modes.
30112
30113 * callint.c (Fcall_interactively): Comment fixes.
30114
301152007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30116
30117 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30118 and compiled functions.
30119
301202007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30121
30122 * window.c (prefer_window_split_horizontally): New variable.
30123 (display_buffer): Consider splitting window horizontally depending
30124 on prefer_window_split_horizontally.
30125
301262007-09-08 Eli Zaretskii <eliz@gnu.org>
30127
30128 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30129
301302007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30131
30132 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30133
30134 * frame.c (x_set_frame_parameters): Check number is positive before
30135 using XFASTINT.
30136
30137 * window.c (freeze_window_start): Don't presume selected_window holds
30138 a window object.
30139 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30140
301412007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30142
30143 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30144
301452007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30146
30147 * window.c (Vsplit_window_preferred_function): New var.
30148 (Fdisplay_buffer): Use it.
30149 (syms_of_window): Export, and initialize it.
30150
301512007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30152
30153 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30154
301552007-09-06 Glenn Morris <rgm@gnu.org>
30156
30157 * gtkutil.c (menu_grab_callback) <cnt>:
30158 * xselect.c (x_reply_selection_request) <cnt>: Move static
30159 variable to file scope.
30160
301612007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30162
30163 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30164 consistent values of selected_frame and selected_window.
30165
301662007-09-04 Jason Rumney <jasonr@gnu.org>
30167
30168 * w32console.c (initialize_w32_display): Zero unused hooks.
30169
301702007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30171
30172 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30173 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30174
301752007-09-04 Jason Rumney <jasonr@gnu.org>
30176
30177 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30178 in w32console.c. Set up input. Remove XXX comments that have been
30179 confirmed as correct.
30180
30181 * s/ms-w32.h (MULTI_KBOARD): Define.
30182
30183 * w32console.c (one_and_only_w32cons): Remove.
30184 (initialize_w32_display): Take terminal argument.
30185
30186 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30187 initialize_w32_display.
30188 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30189
30190 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30191
30192 * keyboard.c (discard_mouse_events): Discard it.
30193 (make_lispy_event): Translate it to a lisp event.
30194 (lispy_wheel_names): Add wheel-left and right events.
30195 (syms_of_keyboard): Enlarge wheel_syms.
30196
30197 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30198 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30199
30200 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30201
30202 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30203 from WM_MOUSEHWHEEL.
30204 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30205
30206 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30207 terminal.
30208
30209 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30210 keyboard for the terminal.
30211
302122007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30213
30214 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30215 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30216 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30217 and resume-tty-function to resume-tty-hook.
30218 (Fsuspend_tty, Fresume_tty): Use new names.
30219
302202007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30221
30222 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30223 if it starts with "n:".
30224
302252007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30226
30227 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30228
302292007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30230
30231 * frame.h:
30232 * frame.c (Qterm_environment_variable): Remove.
30233 (syms_of_frame): Don't init and staticpro it.
30234
30235 * callproc.c (getenv_internal): Remove special case for $TERM.
30236
30237 * callproc.c (Vinitial_environment): New variable.
30238 (set_initial_environment): Initialize it.
30239 (syms_of_callproc): Declare it.
30240 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30241 TERM under which a process runs is never related to the TERM in which
30242 Emacs is running.
30243
302442007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30245
30246 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30247 * s/darwin.h: ... do it here.
30248
302492007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30250
30251 * lisp.h (set_initial_environment): Rename from set_global_environment.
30252
30253 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30254 removed by mistake on the multi-tty branch.
30255
30256 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30257 (Fmodify_frame_parameters): Return a value.
30258
30259 * image.c (png_load): Comment-out var only used in commented-out code.
30260
30261 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30262 before passing it to mark_object.
30263
30264 * xfaces.c (internal_resolve_face_name): Return a value.
30265 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30266
30267 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30268 (x_icon): Comment-out var only used in commented-out code.
30269
302702007-08-29 Romain Francoise <romain@orebokech.com>
30271
30272 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30273 QUIT hasn't been provided.
30274
302752007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30276
30277 * callproc.c (child_setup, getenv_internal): Use the
30278 display-environment-variable and term-environment-variable frame params.
30279 (set_initial_environment): Initialise Vprocess_environment.
30280
30281 * config.in: Disable multi-keyboard support on a mac.
30282
30283 * frame.c (Qterm_environment_variable)
30284 (Qdisplay_environment_variable): New variables.
30285 (syms_of_frame): Intern and staticpro them.
30286 (Fmake_terminal_frame): Disable output method test.
30287
30288 * frame.h: Declare them here.
30289
30290 * macfns.c (x_set_mouse_color): Get rif from the frame.
30291 (x_set_tool_bar_lines): Don't use updating_frame.
30292 (mac_window): Add 2 new parameters for consistency with other systems.
30293 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30294 frame parameters following what is done in X11 and w32. Don't use
30295 FRAME_MAC_DISPLAY_INFO.
30296 (Fx_open_connection, start_hourglass): Remove window-system check.
30297 (x_create_tip_frame): Get the keyboard from the terminal.
30298
30299 * macmenu.c: Reorder includes.
30300 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30301
30302 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30303 terminal parameter.
30304 (x_clear_frame): Add a frame parameter.
30305 (note_mouse_movement): Get rif from the frame.
30306 (mac_term_init): Initialize the terminal.
30307 (mac_initialize): Make static and move terminal initialization ...
30308 (mac_create_terminal): ... to this new function.
30309
30310 * macterm.h (struct mac_display_info): Add terminal.
30311 (mac_initialize): Delete declaration.
30312
30313 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30314
30315 * sysdep.c: Comment out text after #endif.
30316
30317 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30318 is defined. Better initialize ttys in windows. Use terminal
30319 specific mouse_position_hook.
30320
30321 * termhooks.h (union display_info): Add mac_display_info.
30322
30323 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30324 Set the default minibuffer frame, window_system and the rest of the
30325 frame parameters following what is done in X11.
30326
30327 * w32term.c (w32_initialize): Make static.
30328
30329 * xselect.c (x_handle_selection_clear): Only access
30330 terminal->kboard when MULTI_KBOARD is defined.
30331
30332 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30333 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30334
303352007-08-29 Jason Rumney <jasonr@gnu.org>
30336
30337 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30338 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30339
30340 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30341 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30342
30343 * keyboard.c (restore_kboard_configuration): Only define when
30344 MULTI_KBOARD defined.
30345
30346 * makefile.w32-in: Update dependancies from Makefile.in.
30347 (OBJ1): Add terminal.$(O)
30348
30349 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30350 Don't define function body.
30351 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30352
30353 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30354
30355 * w32.c (request_sigio, unrequest_sigio): Remove.
30356
30357 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30358 (w32con_clear_frame, w32con_clear_end_of_line)
30359 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30360 (w32con_delete_glyphs, w32con_set_terminal_window)
30361 (scroll_line, w32_sys_ring_bell): Add frame arg.
30362 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30363 Add terminal arg.
30364 (PICK_FRAME): Remove.
30365 (w32con_write_glyphs): Use frame specific terminal coding.
30366 (one_and_only_w32cons): New global variable.
30367 (initialize_w32_display): Use it for storing hooks.
30368 (create_w32cons_output): New function.
30369
30370 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30371 arg a frame.
30372
30373 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30374 Set window_system.
30375 (x_set_tool_bar_lines): Don't use updating_frame.
30376 (Fx_create_frame): Set terminal and ref count.
30377 (Fx_open_connection): Remove window-system check.
30378
30379 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30380
30381 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30382 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30383 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30384 Add frame arg.
30385 (x_delete_terminal, w32_create_terminal): New functions.
30386 (w32_term_init): Create a terminal.
30387 (w32_initialize): Move terminal specific initialization to
30388 w32_create_terminal.
30389
30390 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30391 (w32_clear_rect, w32_clear_area): Use background from frame.
30392 (w32_display_info): Add terminal.
30393 (w32_sys_ring_bell, x_delete_display): Declare here.
30394
30395 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30396
30397 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30398
303992007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30400
30401 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30402 Fix get_named_tty calls for the controlling tty.
30403
304042007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30405
194d44e7 30406 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
30407
304082007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30409
30410 * term.c (tty_insert_glyphs): Add missing first parameter.
30411
304122007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30413
30414 * buffer.c (Fbuffer_list, Fbury_buffer):
30415 Take frame->buried_buffer_list into account.
30416
30417 * cm.c (current_tty): New variable, for cmputc().
30418 (cmputc): Use it.
30419 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30420 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30421 (cmgoto): Add tty parameter. Pass it on to calccost().
30422 Use emacs_tputs() instead of tputs().
30423
30424 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30425 tputs().
30426 (current_tty): New variable, for cmputc().
30427 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30428
30429 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30430 (internal_condition_case, internal_condition_case_1)
30431 (internal_condition_case_2): Don't abort when x_catching_errors.
30432
30433 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30434 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30435 prevent crashes caused by bogus longjmps in read_char.
30436
30437 * keymap.h (Fset_keymap_parent): Add EXFUN.
30438
30439 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30440 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30441 Remove redundant definition.
30442
30443 * macfns.c (x_set_mouse_color, x_make_gc):
30444 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30445
30446 * w32term.c (x_free_frame_resources):
30447 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30448 (w32_initialize): Use the accessor macros for terminal characteristics.
30449
30450 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30451 Use the accessor macros for terminal characteristics.
30452 * msdos.c (internal_terminal_init): Use the accessor macros for
30453 terminal characteristics.
30454 (ScreenVisualBell, internal_terminal_init):
30455 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30456
30457 * termopts.h (no_redraw_on_reenter): Declare.
30458
30459 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30460 (mark_terminals, mark_ttys): Declare.
30461 (Fgarbage_collect): Call them.
30462 (mark_object): Mark buried_buffer_list.
30463
30464 * prefix-args.c: Include stdlib.h for exit.
30465
30466 * syssignal.h: Add comment.
30467
30468 * indent.c: Include stdio.h.
30469
30470 * window.h (Vinitial_window_system): Declare.
30471 (Vwindow_system): Delete declaration.
30472
30473 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30474
30475 * image.c (lookup_image): Don't initialize `c' until the xasserts
30476 have been run.
30477
30478 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30479 FRAME_FOREGROUND_PIXEL.
30480
30481 * print.c (print_preprocess): Don't lose print_depth levels while
30482 iterating.
30483
30484 * widget.c (update_from_various_frame_slots):
30485 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30486
30487 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30488 frames.
30489 (window_internal_height): Remove bogus make_number call.
30490 (init_window_once): Call make_terminal_frame with two zero parameters.
30491
30492 * fileio.c (Fread_file_name): Update comment.
30493
30494 * callint.c (Fcall_interactively):
30495 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30496 Make sure it is correctly unwound.
30497
30498 * xsmfns.c (x_session_close): New function.
30499
30500 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30501 Delete declarations.
30502
30503 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30504 (x_output): Remove background_pixel and foreground_pixel fields.
30505 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30506 (x_delete_device, x_session_close): Declare.
30507
30508 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30509 (read_filtered_event): Call `read_char' with a local
30510 `wrong_kboard_jmpbuf'.
30511
30512 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30513 Don't call single_kboard_state. Use FRAME_RIF.
30514
30515 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30516 systems.
30517
30518 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30519 (Fframe_with_environment, Fset_input_meta_mode)
30520 (Fset_quit_char): EXFUN.
30521 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30522 (init_sys_modes, reset_sys_modes): Update prototypes.
30523 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30524
30525 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30526 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30527 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30528 Delete declarations.
30529 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30530 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30531 New declarations.
30532
30533 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30534 already does that during init_display(). Call syms_of_keymap
30535 before syms_of_keyboard. Call `syms_of_terminal'.
30536 Call set_initial_environment, not set_process_environment.
30537 (shut_down_emacs): Call reset_all_sys_modes() instead of
30538 reset_sys_modes().
30539
30540 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30541 (internal_resolve_face_name, resolve_face_name_error): New functions.
30542 (resolve_face_name): Protect against loops and errors thrown by Fget.
30543 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30544 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30545
30546 * scroll.c: Replace CURTTY() with local variables throughout the
30547 file (where applicable).
30548 (calculate_scrolling, calculate_direct_scrolling)
30549 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30550 characteristics.
30551
30552 * keymap.c (Vfunction_key_map): Remove.
30553 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30554 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30555 (Vkey_translation_map): Remove.
30556 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30557 (Fdescribe_buffer_bindings)
30558 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30559 Update for terminal-local key-translation-map.
30560
30561 * Makefile.in (callproc.o): Update dependencies.
30562 (lisp, shortlisp): Add termdev.elc.
30563 (obj): Add terminal.o.
30564 (terminal.o): Add dependencies.
30565 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30566 (data.o, fns.o): Add termhooks.h dependency.
30567 (SOME_MACHINE_LISP): Add dnd.elc.
30568 (minibuf.o): Fix typo.
30569 Update dependencies.
30570
30571 * data.c (do_symval_forwarding, store_symval_forwarding)
30572 (find_symbol_value): Use the selected frame's keyboard, not
30573 current_kboard.
30574
30575 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30576 Vwindow_system.
30577
30578 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30579 Fmenu_bar_open.
30580 (syms_of_xmenu): Update defsubr.
30581 (mouse_position_for_popup, Fx_popup_menu)
30582 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30583 (set_frame_menubar, free_frame_menubar)
b97439ce 30584 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
30585 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30586 an X frame.
30587
30588 * xselect.c (x_own_selection): Abort if not an X frame.
30589 (some_frame_on_display): Check if it is an X frame.
30590 (x_handle_selection_clear): Deal with MULTI_KBOARD.
30591
30592 * coding.c: Include frame.h and termhooks.h.
30593 (terminal_coding, keyboard_coding): Delete.
30594 (Fset_terminal_coding_system_internal)
30595 (Fset_keyboard_coding_system_internal)
30596 (Fkeyboard_coding_system)
30597 (Fterminal_coding_system): Add a terminal parameter.
30598 Get terminal_coding from the terminal.
30599 (init_coding_once): Don't call setup_coding_system here.
30600
30601 * dispextern.h (set_scroll_region, turn_off_insert)
30602 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
30603 (tty_clear_end_of_line, tty_setup_colors)
30604 (delete_tty, updating_frame)
30605 (produce_special_glyphs, produce_glyphs, write_glyphs)
30606 (insert_glyphs): Remove.
30607 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
30608 (tty_turn_off_highlight, get_tty_size): Add declaration.
30609 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
30610
30611 * frame.h (enum output_method): Add output_initial.
30612 (struct x_output): Delete.
30613 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30614 Access foreground_pixel and background_pixel directly from the frame.
30615 (tty_display): Delete.
30616 (struct frame): Add buried_buffer_list, foreground_pixel,
30617 background_pixel and terminal. Delete kboard.
30618 (union output_data): Add tty.
30619 (FRAME_KBOARD): Get the kboard from the terminal.
30620 (FRAME_INITIAL_P): New macro.
30621 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
30622 (Qterm_environment_variable, Qdisplay_environment_variable)
30623 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
30624 New declarations.
30625
30626 * termchar.h (tty_output, tty_display_info): New structures.
30627 (tty_list): Declare.
30628 (FRAME_TTY, CURTTY): New macros.
30629 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
30630 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
30631 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
30632 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
30633
30634 * callproc.c: Include frame.h and termhooks.h, for terminal
30635 parameters.
30636 (add_env): New function.
30637 (child_setup): Use it.
30638 (child_setup, getenv_internal): Handle the new Vprocess_environment.
30639 (getenv_internal): Fix get_terminal_param call.
30640 (Fgetenv_internal, egetenv): Update doc.
30641 (syms_of_callproc): Initialize Vprocess_environment to nil.
30642 Register and initialize them. Remove obsolete defvars. Update doc
30643 strings.
30644 (child_setup): Handle Vlocal_environment_variables.
30645 (getenv_internal): Add terminal parameter.
30646 Handle Vlocal_environment_variables.
30647 (Fgetenv_internal): Add terminal parameter.
30648 (child_setup, getenv_internal, Fgetenv_internal): Store the local
30649 environment in a frame (not terminal) parameter. Update doc strings.
30650 (set_initial_environment): Rename from set_global_environment.
30651 Store Emacs environment in initial frame parameter.
30652
30653 * xdisp.c (redisplay_internal): Update references to
30654 `previous_terminal_frame'.
30655 (display_mode_line, Fformat_mode_line): Replace calls to
30656 `push_frame_kboard' with `push_kboard'.
30657 (get_glyph_string_clip_rects): Add extra parentheses and
30658 braces to prevent compiler warnings.
30659 (calc_pixel_width_or_height): Add xassert to check that the
30660 frame is alive. Don't call `lookup_image' on a termcap frame.
30661 (message2_nolog, message3_nolog, redisplay_internal)
30662 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
30663 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
30664 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
30665 (Fx_display_pixel_width, Fx_display_pixel_height)
30666 (Fx_display_planes, Fx_display_color_cells)
30667 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
30668 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
30669 (Fx_display_backing_store, Fx_display_visual_class)
30670 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
30671 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
30672
30673 * xfns.c (x_set_foreground_color x_set_background_color)
30674 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
30675 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30676 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
30677 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
30678 terminal that is being deleted.
30679 (Fx_create_frame): Use `store_frame_param' to set `window-system'
30680 frame parameter, and make sure it overrides any user-supplied setting.
30681 (Fx_close_connection, Fx_synchronize): Unify argument names with
30682 the rest of the DEFUNs.
30683
30684 * dispnew.c (Fsend_string_to_terminal): Update call to
30685 `get_tty_terminal'.
30686 (Fredraw_frame, Fsend_string_to_terminal)
30687 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
30688 FRAME_TERMCAP_P and FRAME_TTY.
30689 (window_change_signal): Don't believe width/height values that are
30690 impossibly small.
30691 (Vinitial_window_system): Rename from Vwindow_system.
30692 (termscript, Wcm, rif): Delete.
30693
30694 * termhooks.h (struct terminal): New struct containing the
30695 previously global text display hooks and new members NAME,
30696 DELETED and PARAM_ALIST.
30697 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
30698 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
30699 (FRAME_RIF): New macros.
30700 (get_terminal_param, get_device): New declarations.
30701 (termscript): Delete declaration.
30702
30703 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
30704 (XTflash, x_free_frame_resources, x_scroll_bar_create)
30705 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
30706 FRAME_FOREGROUND_PIXEL.
30707 (x_fully_uncatch_errors): Disable definition.
30708 (x_scroll_bar_expose): Fix reference to foreground pixel.
30709 (XTread_socket): Disable loop on all X displays.
30710 (x_delete_terminal): Don't set terminal->deleted and let
30711 delete_terminal delete the frames on the terminal.
30712 (x_delete_display): Doc update to reflect changes in
30713 delete_terminal.
30714 (x_display_info) <terminal>: Move member earlier in the struct.
30715 (deleting_tty): Remove old variable.
30716 (Fsuspend_tty): Call clear_tty_hooks.
30717 (Fresume_tty, init_tty): Call set_tty_hooks.
30718 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
30719 errors on X frames.
30720 (x_catch_errors_unwind): Abort if x_error_message is NULL.
30721 (handle_one_xevent): Initialize `f' to NULL.
30722 (x_delete_terminal, x_create_terminal): New functions.
30723 (XTset_terminal_modes, XTreset_terminal_modes)
30724 (XTread_socket, x_connection_closed, x_term_init)
30725 (x_term_init, x_delete_display): Add terminal parameter.
30726 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
30727 X connections.
30728
30729 * frame.c: Include termchar.h.
30730 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
30731 (Qwindow_system, Qenvironment, Qterm_environment_variable)
30732 (Qdisplay_environment_variable): New vars.
30733 (Fframep): Deal with output_initial.
30734 (Fframe-live-p): Doc fix.
30735 (Fwindow-system): New function.
30736 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
30737 (make_terminal_frame): Don't create frames on a terminal that is
30738 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30739 (store_frame_param): Check for found_for_frame before calling XFRAME.
30740 (Fmake_terminal_frame): Handle NULL tty names correctly.
30741 (syms_of_frame): Enhance doc string of `default-frame-alist'.
30742 (Fdelete_frame): Remove unused variable `count'. Don't allow other
30743 frames to refer to a deleted frame in their 'environment parameter.
30744 (Fframe_with_environment): New function.
30745 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
30746 (get_future_frame_param): New function.
30747 (Fmake_terminal_frame): Use it.
30748 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
30749
30750 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
30751 * sysdep.c (reset_sys_modes): Update for renames.
30752
30753 * keyboard.c (tty_read_avail_input): New function.
30754 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
30755 (syms_of_keyboard): Defsubr them.
30756 (Fset_input_meta_mode, Fset_quit_char): New functions.
30757 (Fset_input_mode): Split to above functions.
30758 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
30759 parameter. Use it in call to `read_char'.
30760 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
30761 Set wrong_kboard_jmpbuf correctly in recursive calls.
30762 Use current_kboard to access Vkeyboard_translate_table.
30763 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
30764 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
30765 Update longjmp invocations. Remember the original current_kboard,
30766 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
30767 changes it. Comment out unnecessary calls to
30768 `record_single_kboard_state' and `any_kboard_state'.
30769 Update recursive calls.
30770 (wrong_kboard_jmpbuf): Remove global variable.
30771 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
30772 Handle deleted interrupted_kboards correctly; that is a legal
30773 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
30774 and read_char calls. Abort if interrupted_kboard died in read_char.
30775 (any_kboard_state, single_kboard_state)
30776 (push_frame_kboard): Remove function.
30777 (pop_kboard): Switch out of single_kboard mode if the kboard has
30778 been deleted. Remove unused variable. Help debugging by not
30779 changing current_kboard unnecessarily. Set current_kboard to the
30780 kboard of the selected frame when the stored kboard object has
30781 been deleted before pop_kboard.
30782 (temporarily_switch_to_single_kboard): Change first parameter to a
30783 frame pointer. Throw an error when caller wants to change kboards
30784 while in single_kboard mode. Don't push_kboard if we weren't in
30785 single kboard state. Don't pop_kboard if we popped into any
30786 kboard state.
30787 (restore_kboard_configuration): Abort if pop_kboard changed the
30788 kboard in single_kboard mode. Call pop_kboard only after setting
30789 up single_kboard mode.
30790 (Frecursive_edit): Switch to single_kboard mode only in nested
30791 command loops.
30792 (cmd_error, command_loop, command_loop_1, timer_check):
30793 Comment out unnecessary call to `any_kboard_state' and
30794 `record_single_kboard_state'.
30795 (delete_kboard): Exit single_kboard mode if we have just deleted
30796 that kboard. Use FRAME_KBOARD.
30797 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30798 `fatal_error_signal'.
30799 (record_single_kboard_state): Don't push_kboard if we weren't in
30800 single kboard state. Don't pop_kboard if we popped into any
30801 kboard state.
30802 (push_frame_kboard): Rename to push_kboard.
30803 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30804 (read_avail_input): Read input from all terminals.
30805 (mark_kboards): Also mark Vkeyboard_translate_table.
30806 (kbd_buffer_store_event_hold): Simplify condition.
30807 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30808 (Vkeyboard_translate_table): Move to struct kboard.
30809 (init_kboard): Initialize Vkeyboard_translate_table.
30810 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30811 Vkeyboard_translate_table. Update doc strings. Update docs of
30812 local-function-key-map and function-key-map.
30813
30814 * terminal.c: New file.
30815
30816 * term.c: Include errno.h.
30817 (Vring_bell_function, device_list, initial_device)
30818 (next_device_id, ring_bell, update_begin, update_end)
30819 (set_terminal_window, cursor_to, raw_cursor_to)
30820 (clear_to_end, clear_frame, clear_end_of_line)
30821 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30822 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30823 (syms_of_term): Move their initialization to terminal.c.
30824 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30825 (Ftty_display_color_cells)
30826 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
30827 (clear_tty_hooks, set_tty_hooks)
30828 (init_tty, maybe_fatal): New functions.
30829 (Ftty_type): Return nil if terminal is not on a tty instead of
30830 throwing an error. Doc update.
30831 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
30832 Doc update. Initialize new subrs and variables.
30833 (delete_tty): Use terminal->deleted.
30834 (tty_set_terminal_modes): Rename from set_terminal_modes.
30835 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
30836 (set_scroll_region): Rename to `tty_set_scroll_region'.
30837 (turn_on_insert): Rename to `tty_turn_on_insert'.
30838 (turn_off_insert): Rename to `tty_turn_off_insert'.
30839 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
30840 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
30841 (toggle_highligh): Rename to `tty_toggle_highlight'.
30842 (background_highlight): Rename to `tty_background_highlight'.
30843 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
30844 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
30845 (tty_set_scroll_region, tty_background_highlight)
30846 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
30847 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
30848 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
30849 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
30850 Add static modifier.
30851 (tty_reset_terminal_modes, tty_set_terminal_window)
30852 (tty_set_scroll_region, tty_background_highlight)
30853 (tty_highlight_if_desired, tty_cursor_to)
30854 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
30855 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
30856 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
30857 renames.
30858
308592007-08-28 Jan Djärv <jan.h.d@swipnet.se>
30860
30861 * keyboard.c: Qrtl is new.
30862 (parse_tool_bar_item): Handle :rtl keyword.
30863 (syms_of_keyboard): Intern :rtl keyword.
30864
30865 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
30866
30867 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
30868 so no Lisp code is executed.
30869 (file_for_image, find_rtl_image): New functions.
30870 (xg_get_image_for_pixmap): Use file_for_image.
30871 (update_frame_tool_bar): If direction is RTL, use RTL image if
30872 defined. Use Gtk stock images if defined.
30873
308742007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30875
30876 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
30877 for nonexistent or zero-width glyph in composition glyph.
30878
308792007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
30880
30881 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
30882
30883 * xdisp.c (Finvisible_p): New function.
30884 (syms_of_xdisp): defsubr it.
30885
308862007-08-24 Juanma Barranquero <lekktu@gmail.com>
30887
30888 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
30889 Doc fixes.
30890
308912007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30892
30893 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
30894
308952007-08-24 Martin Rudalics <rudalics@gmx.at>
30896
30897 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
30898 whether decoding has modified buffer contents.
30899
309002007-08-24 Jason Rumney <jasonr@gnu.org>
30901
30902 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
30903 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
30904 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
30905 (init_svg_functions) [HAVE_NTGUI]: New function.
30906 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
30907 (svg_load_image): Use them.
30908 (svg_load_image) [HAVE_NTGUI]: Implement background.
30909
309102007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30911
30912 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
30913 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
30914 (LIBX): Remove @RSVG_LIBS@.
30915 (LIBES): Add $(RSVG_LIBS).
30916
30917 * image.c (svg_load_image): Blend with specified background if exists.
30918 Use IMAGE_BACKGROUND. Add Mac OS Support.
30919
30920 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
30921 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
30922 Remove macros.
30923 [MAC_OSX] (socket_callback): Do nothing.
30924 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30925 ReceiveNextEvent.
30926 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30927 socket_callback.
30928 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30929
309302007-08-22 Glenn Morris <rgm@gnu.org>
30931
30932 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30933
309342007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30935
30936 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30937
30938 * image.c: Add support for SVG images. Some additional comments
30939 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30940 (svg_image_p): New function to test for SVG image.
30941 (svg_load): New function to load SVG image.
30942 (svg_load_image): New function, helper for svg_load.
30943 (Qsvg): New Lisp_object.
30944 (svg_keyword_index): New enum.
30945 (svg_format): New static `image_keyword' struct.
30946 (svg_type): New static `image_type' struct.
30947 (librsvg/rsvg.h): Include it.
30948
309492007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30950
30951 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30952
309532007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30954
30955 * lread.c (Qold_style_backquotes): New var.
30956 (syms_of_lread): Init and staticpro it.
30957 (load_warn_old_style_backquotes): New fun.
30958 (Fload): Use them to warn about old style backquotes.
30959 (end_of_file_error, Fload): Remove unused vars.
30960
30961 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30962
30963 * lread.c (Vold_style_backquotes): New var.
30964 (syms_of_lread): Init and export it to Elisp.
30965 (read1): Set it when we find an old-style (back)quote.
30966
309672007-08-22 Jason Rumney <jasonr@gnu.org>
30968
30969 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30970
309712007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30972
30973 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30974
309752007-08-19 Richard Stallman <rms@gnu.org>
30976
30977 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30978
309792007-08-19 Andreas Schwab <schwab@suse.de>
30980
30981 * alloc.c (pure): Round PURESIZE up.
30982
309832007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30984
30985 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30986 active frame.
30987
309882007-08-16 Richard Stallman <rms@gnu.org>
30989
30990 * eval.c (Fcommandp): Add parens to clarify.
30991
30992 * minibuf.c (Fall_completions): Use enum for type of table.
30993
30994 * emacs.c (USAGE2): Improve text.
30995
309962007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30997
30998 * term.c (tty_default_color_capabilities): Declare static
30999 variables in file scope, to avoid HPUX compiler problem.
31000
310012007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31002
31003 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31004 to gtk_toolbar_insert.
31005
310062007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31007
31008 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31009
31010 * insdel.c (reset_var_on_error): New fun.
31011 (signal_before_change, signal_after_change):
31012 Use it to reset (after|before)-change-functions to nil in case of error.
31013 Bind inhibit-modification-hooks to t.
31014 Don't bind (after|before)-change-functions to nil while they run.
31015
310162007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31017
31018 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31019 filling pixmap with stippled background.
31020
310212007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31022
31023 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31024 Don't use invisible frame as parent window for repositioning.
31025
310262007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31027
31028 * print.c (new_backquote_output): Rename from old_backquote_output.
31029 (print): Inverse its logic (according to its name) so as to match the
31030 behavior of new_backquote_flag in lread.c.
31031
310322007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31033
31034 * gmalloc.c (posix_memalign): New function.
31035
31036 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31037 ActivateControl/DeactivateControl here.
31038 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31039 frame-notice-user-settings is non-nil.
31040 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31041 for kEventParamFMFontStyle.
31042 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31043 mac_pass_command_to_system and mac_pass_control_to_system here.
31044 (XTread_socket): Call ActivateControl/DeactivateControl here.
31045 (XTread_socket) [TARGET_API_MAC_CARBON]:
31046 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31047 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31048 for window repositioning.
31049
310502007-08-08 Glenn Morris <rgm@gnu.org>
31051
31052 * Replace `iff' in doc-strings and comments.
31053
310542007-08-07 Chong Yidong <cyd@stupidchicken.com>
31055
31056 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31057
310582007-08-07 Martin Rudalics <rudalics@gmx.at>
31059
31060 * fileio.c (Finsert_file_contents): Run format-decode and
31061 after_insert_file_functions on entire buffer when REPLACE is
31062 non-nil and inhibit modification_hooks and point_motion_hooks.
31063 For consistency, run after_insert_file_functions iff something
31064 got inserted. Move signal_after_change and update_compositions
31065 after code running after_insert_file_functions. Make sure that
31066 undo_list doesn't record intermediate steps of the decoding process.
31067
310682007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31069
31070 * emacs.c (main)
31071 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31072 Call malloc_enable_thread on interactive startup.
31073
31074 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31075 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31076 [USE_PTHREAD]: Conditionalize with it.
31077 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31078 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31079 New functions.
31080
310812007-08-06 Chong Yidong <cyd@stupidchicken.com>
31082
31083 * xdisp.c (redisplay_window): When restoring original buffer
31084 position, make sure it is still valid.
31085
31086 * image.c (png_load): Ignore png-supplied background color.
31087
310882007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31089
31090 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31091 Use kCFAbsoluteTimeIntervalSince1970.
31092
31093 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31094 New variable.
31095 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31096 event loop should be quit.
31097 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31098 Quit dialog event loop if quit_dialog_event_loop is set.
31099
31100 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31101 (Selection): New typedef. Use instead of ScrapRef.
31102 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31103 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31104 (mac_clear_selection): Rename from clear_scrap.
31105 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31106 scrap_has_target_type. All uses changed.
31107 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31108 (mac_selection_has_target_p): New functions.
31109 (mac_put_selection_value): Rename from put_scrap_string.
31110 (mac_get_selection_value): Rename from get_scrap_string.
31111 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31112 (put_scrap_private_timestamp, scrap_has_target_type)
31113 (get_scrap_private_timestamp): Remove functions.
31114 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31115 (x_own_selection, x_get_local_selection):
31116 Use mac_valid_selection_value_p.
31117 (x_own_selection): Don't use put_scrap_private_timestamp.
31118 Record OWNERSHIP-INFO into Vselection_alist instead.
31119 (x_get_local_selection): Don't check type if request is local.
31120 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31121 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31122
311232007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31124
31125 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31126 add comment explaining why.
31127
311282007-08-03 Richard Stallman <rms@gnu.org>
31129
31130 * fileio.c (Fvisited_file_modtime): Use make_time.
31131
311322007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31133
31134 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31135 build.
31136
311372007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31138
31139 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31140
311412007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31142
31143 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31144
311452007-07-30 Richard Stallman <rms@gnu.org>
31146
31147 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31148
311492007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31150
31151 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31152
311532007-07-28 Nick Roberts <nickrob@snap.net.nz>
31154
31155 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31156 remote default-directory.
31157
31158 * buffer.c (mode-line-format): Update doc string.
31159
311602007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31161
31162 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31163 scroll bar gap.
31164 (x_scroll_bar_create): Set bar->fringe_extended_p.
31165 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31166 on frame edge. Check fringe background extension. Don't clear
31167 extended fringe background area.
31168
31169 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31170 (w32_fill_area): Enclose multiple statements with do ... while (0).
31171
31172 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31173 Extend fringe background to scroll bar gap.
31174 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31175 Set bar->fringe_extended_p.
31176 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31177 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31178 background extension. Don't clear extended fringe background area.
31179
31180 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31181 New member fringe_extended_p.
31182
311832007-07-25 Glenn Morris <rgm@gnu.org>
31184
31185 * Relicense all FSF files to GPLv3 or later.
31186
31187 * COPYING: Switch to GPLv3.
31188
311892007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31190
31191 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31192
31193 * data.c (Finteractive_form): Check for the presence of an
31194 `interactive-form' symbol property more thoroughly.
31195
31196 * data.c (Finteractive_form): Use an `interactive-form' property if
31197 present, analogous to the function-documentation property.
31198
311992007-07-24 Jason Rumney <jasonr@gnu.org>
31200
31201 * w32fns.c (x_real_positions): Get real position from OS instead of
31202 calculating it.
31203
312042007-07-23 Jason Rumney <jasonr@gnu.org>
31205
31206 * filelock.c (current_lock_owner): Allow for @ sign in username.
31207
312082007-07-22 Nick Roberts <nickrob@snap.net.nz>
31209
31210 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31211 remote default-directory.
31212
31213 * buffer.c (mode-line-format): Describe above case in doc string.
31214
312152007-07-20 Eli Zaretskii <eliz@gnu.org>
31216
31217 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31218 Define if not defined.
31219
312202007-07-18 Jason Rumney <jasonr@gnu.org>
31221
31222 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31223
312242007-07-18 Richard Stallman <rms@gnu.org>
31225
31226 * data.c (Fsetq_default): Doc fix.
31227
31228 * eval.c (Fsetq): Doc fix.
31229
312302007-07-18 Juanma Barranquero <lekktu@gmail.com>
31231
31232 * coding.c (Ffind_operation_coding_system):
31233 * eval.c (For, Fand): Doc fixes.
31234 Reported by Johan Bockgård.
31235
312362007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31237
31238 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31239
31240 * xterm.h: Declare x_ewmh_activate_frame.
31241
31242 * xterm.c (x_ewmh_activate_frame): New function.
31243 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31244
312452007-07-17 Martin Rudalics <rudalics@gmx.at>
31246
31247 * window.c (Fdisplay_buffer): If largest or LRU window is the
31248 only window, split it even if it is not eligible for splitting.
31249 This restores the original behavior broken by the 2007-07-15
31250 change.
31251
312522007-07-17 Glenn Morris <rgm@gnu.org>
31253
31254 * abbrev.c (abbrev_check_chars): New function.
31255 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31256 Call abbrev_check_chars to check abbrev characters are word
31257 constituents. Doc fix.
31258
312592007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31260
31261 * process.c (Fstart_process, Fmake_network_process)
31262 (read_process_output): Fix up last changes.
31263
312642007-07-16 Eli Zaretskii <eliz@gnu.org>
31265
31266 * makefile.w32-in (clean): Don't delete *~.
31267
312682007-07-16 Andreas Schwab <schwab@suse.de>
31269
31270 * window.c (Fdisplay_buffer): Use NILP.
31271 (Fset_window_scroll_bars): Likewise.
31272
312732007-07-15 Martin Rudalics <rudalics@gmx.at>
31274
31275 * window.c (window_min_size_2): New function.
31276 (window_min_size_1, size_window, Fdisplay_buffer)
31277 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31278 windows without mode- or header-lines when window-min-height is
31279 too small.
31280 (size_window): Reset nodelete_p after testing it, following an
31281 earlier note by Kim F. Storm.
31282 (display_buffer): Do not set split_height_threshold to twice the
31283 value of window_min_height to avoid changing the value of a
31284 customizable variable. Rather explicitly check whether the
31285 height of the window that shall be splitted is at least as large
31286 as split_height_threshold.
31287 (Fwindow_full_width_p): New defun.
31288 (syms_of_window): Defsubr it.
31289
31290 * window.h: Add EXFUN for Fwindow_full_width_p.
31291
312922007-07-14 Jason Rumney <jasonr@gnu.org>
31293
31294 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31295
312962007-07-14 Richard Stallman <rms@gnu.org>
31297
31298 * eval.c (maybe_call_debugger): New function.
31299 (find_handler_clause): Use maybe_call_debugger.
31300 Call it when the handler says `debug'.
31301 Eliminate DEBUGGER_VALUE_PTR.
31302 (Fsignal): Eliminate debugger_value.
31303 (Qdebug): New variable.
31304 (syms_of_eval): Initialize it.
31305
313062007-07-14 Juanma Barranquero <lekktu@gmail.com>
31307
31308 * eval.c (Fprogn):
31309 * keyboard.c (Ftrack_mouse):
31310 * print.c (Fwith_output_to_temp_buffer):
31311 * window.c (Fsave_window_excursion): Doc fix.
31312
313132007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31314
31315 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31316
313172007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31318
31319 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31320 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31321 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31322 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31323 Remove unused encoding_carryover.
31324 * process.c: Adjust all functions accordingly.
31325
313262007-07-12 Richard Stallman <rms@gnu.org>
31327
31328 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31329
313302007-07-11 Jason Rumney <jasonr@gnu.org>
31331
31332 * makefile.w32-in (LIBS): Include OLE32.
31333
31334 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31335 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31336
313372007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31338
31339 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31340 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31341 from a Lisp_Object into a bare pointer.
31342 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31343 Adjust the code correspondingly.
31344
31345 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31346
31347 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31348 (term_show_mouse_face): Remove unused var `j'.
31349 (handle_one_term_event): Remove unused vars `i' and `j'.
31350 Don't cast return value of ttyname since it's not necessary.
31351
313522007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31353
31354 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31355 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31356
31357 * fns.c (map_char_table): Use an array of int for `indices' rather than
31358 an array of Lisp_Objects (which are only ever integers anyway).
31359 (Fmap_char_table): Update caller.
31360 * lisp.h: Update prototype.
31361 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31362 * fontset.c (Ffontset_info):
31363 * casetab.c (set_case_table): Update callers.
31364
31365 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31366
31367 * keymap.c (struct accessible_keymaps_data)
31368 (struct where_is_internal_data): New structures.
31369 (accessible_keymaps_1, where_is_internal_1): Use them to change
31370 interface to adhere to the one used by map_keymap.
31371 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31372 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31373
31374 * keymap.h (map_keymap_function_t): More informative prototype.
31375
313762007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31377
31378 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31379 (looking_at_1): Don't change search_regs and last_thing_searched
31380 if `inhibit-changing-match-data' is non-nil.
31381 (string_match_1, search_buffer, set_search_regs): Likewise.
31382 (syms_of_search): Add Lisp level definition for
31383 `inhibit-changing-match-data' and set it to nil.
31384 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31385 start and end of the match, instead of using values in search_regs.
31386
313872007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31388
31389 * minibuf.c (Fcompleting_read): New value `confirm-only'
31390 for `require-match'.
31391
313922007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31393
31394 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31395 part of the 2007-06-27 change to syms_of_fileio.
31396
313972007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31398
31399 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31400 Check WINDOWP before using XWINDOW. Consolidate return statements.
31401
314022007-06-27 Richard Stallman <rms@gnu.org>
31403
31404 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31405
314062007-06-27 Juanma Barranquero <lekktu@gmail.com>
31407
31408 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31409
314102007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31411
31412 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31413 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31414 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31415 (_free_internal, memalign): Use them.
31416 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31417 Initialize to PTHREAD_MUTEX_INITIALIZER.
31418 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31419 (morecore_nolock): Rename from morecore. All uses changed.
31420 Use only nolock versions of internal allocation functions.
31421 (_malloc_internal_nolock, _realloc_internal_nolock)
31422 (_free_internal_nolock): New functions created from
31423 _malloc_internal, _realloc_internal, and _free_internal.
31424 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31425 Copy hook value to automatic variable before its use.
31426 (memalign): Copy hook value to automatic variable before its use.
31427
314282007-06-26 Kenichi Handa <handa@m17n.org>
31429
31430 * coding.c (Ffind_operation_coding_system): Docstring improved.
31431 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31432
314332007-06-25 David Kastrup <dak@gnu.org>
31434
31435 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31436 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31437 cater for additional parameter.
31438
31439 * keymap.h: Adjust number of parameters to `current-active-maps'.
31440
31441 * doc.c (Fsubstitute_command_keys): Adjust call of
31442 `current-active-maps'.
31443
314442007-06-25 David Kastrup <dak@gnu.org>
31445
31446 * callint.c (Fcall_interactively): Make the parsing of interactive
31447 specs somewhat more readable.
31448
314492007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31450
31451 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31452 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31453 if extended background has already been filled.
31454
314552007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31456
31457 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31458 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31459
31460 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31461 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31462 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31463 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31464 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31465 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31466 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31467 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31468 Run timers during dialog popup.
31469 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31470
314712007-06-21 Jason Rumney <jasonr@gnu.org>
31472
31473 * image.c (convert_mono_to_color_image): Swap fore and background.
31474
314752007-06-20 Jason Rumney <jasonr@gnu.org>
31476
31477 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31478 (w32_free_bdf_font): Unmap memory not handle.
31479
314802007-06-20 Sam Steingold <sds@gnu.org>
31481
31482 * gmalloc.c (__morecore): Fix the declaration to comply with the
31483 definition.
31484
314852007-06-20 Juanma Barranquero <lekktu@gmail.com>
31486
31487 * w32term.c (w32_delete_display): Remove leftover declaration.
31488 (w32_define_cursor, w32_initialize): Make static.
31489
31490 * w32.c (_wsa_errlist): Fix typo in error message.
31491 (init_environment): Ignore any environment variable from the
31492 registry having a null value.
31493
314942007-06-20 Glenn Morris <rgm@gnu.org>
31495
31496 * Makefile.in (LIBGIF): Default to -lgif.
31497
314982007-06-17 Jason Rumney <jasonr@gnu.org>
31499
31500 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31501 unicode strings.
31502
315032007-06-16 Juanma Barranquero <lekktu@gmail.com>
31504
31505 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31506 Fix typo in docstring.
31507
315082007-06-16 Eli Zaretskii <eliz@gnu.org>
31509
31510 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31511 and their keybindings.
31512
315132007-06-15 Chong Yidong <cyd@stupidchicken.com>
31514
31515 * composite.c (update_compositions): Fix last fix.
31516
315172007-06-14 Jason Rumney <jasonr@gnu.org>
31518
31519 * w32.c (get_process_times_fn): New function pointer.
31520 (globals_of_w32): Intialize it if present in kernel32.dll.
31521 (w32_get_internal_run_time): New function.
31522
31523 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31524
315252007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31526
31527 * composite.c (update_compositions): Check the validness of
31528 compositions.
31529
315302007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31531
31532 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31533 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31534
31535 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31536 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31537
31538 * macgui.h (USE_MAC_TOOLBAR): New define.
31539
31540 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31541 Return immediately unless popup is activated.
31542
31543 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31544 background to scroll bar gap.
31545 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31546 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31547 scroll bars on frame edge. Check fringe background extension.
31548 Don't clear extended fringe background area.
31549 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31550 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31551 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31552 [USE_MAC_TOOLBAR]: New macros.
31553 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31554 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31555 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31556 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31557 [USE_MAC_TOOLBAR]: New functions.
31558 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31559 manually if previous repositioning has failed.
31560 (mac_handle_keyboard_event): Use precomputed event kind.
31561 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31562 as tool bar item click. Handle mouse movement over tool bar items.
31563
31564 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31565 toolbar_win_gravity.
31566 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31567 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31568 Add externs.
31569
31570 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31571 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31572
315732007-06-14 Chong Yidong <cyd@stupidchicken.com>
31574
31575 * image.c (search_image_cache): Remove unused variable.
31576
315772007-06-13 Chong Yidong <cyd@stupidchicken.com>
31578
31579 * xfns.c, xmenu.c: Link to xaw3d if available.
31580
315812007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31582
31583 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31584 frame_foreground and frame_background.
31585
31586 * image.c (lookup_image): Save frame foreground and background colors.
31587 (search_image_cache): Check if saved and current frame colors match.
31588
315892007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31590
31591 * regex.c (regex_compile): Remove the `regnum' counter.
31592 Use bufp->re_nsub instead. Add support for \(?N:RE\).
31593
315942007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
31595
31596 * term.c: Include intervals.h to declare Fget_text_property.
31597
315982007-06-10 Jason Rumney <jasonr@gnu.org>
31599
31600 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
31601
316022007-06-08 Juanma Barranquero <lekktu@gmail.com>
31603
31604 * callint.c (Fcall_interactively):
31605 * editfns.c (Fdelete_and_extract_region):
31606 * fileio.c (Fread_file_name):
31607 * fns.c (Fmapconcat):
31608 * keyboard.c (cmd_error_internal):
31609 * keymap.c (Fkey_description):
31610 * lread.c (openp):
31611 * minibuf.c (read_minibuf):
31612 * search.c (wordify):
31613 * sunfns.c (sel_read):
31614 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
31615 * xfns.c (x_default_scroll_bar_color_parameter):
31616 * xmenu.c (menu_help_callback):
31617 * xselect.c (Fx_get_atom_name):
31618 * xterm.c (x_term_init): Use empty_unibyte_string.
31619
316202007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
31621
31622 * alloc.c (init_strings): Initialize canonical empty strings.
31623 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
31624 canonical empty string when the requested size is 0.
31625
31626 * emacs.c (empty_unibyte_string): Rename from empty_string.
31627 (empty_multibyte_string): New canonical empty string.
31628 (syms_of_emacs): Don't initialize empty_string.
31629
31630 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
31631 string, if appropriate.
31632 (empty_unibyte_string, empty_multibyte_string): New externs.
31633 (empty_string): Remove extern.
31634
31635 * lread.c (syms_of_lread): Use empty_unibyte_string.
31636
316372007-06-07 Jason Rumney <jasonr@gnu.org>
31638
31639 * s/ms-w32.h: Don't define HAVE_TZNAME.
31640
31641 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
31642
316432007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31644
31645 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
31646
31647 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
31648 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
31649
31650 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31651 Don't call next handler.
31652 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
31653 Remove argument. Install handler to application.
31654 (set_frame_menubar): Don't change deep_p.
31655 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
31656 FRAME_OUTER_TO_INNER_DIFF_Y.
31657 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
31658 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
31659 [HAVE_DIALOGS]: New macros.
31660 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
31661 Use them.
31662 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
31663
31664 * macselect.c [MAC_OSX] (install_service_handler): Rename from
31665 init_service_handler. All callers changed. Return OSStatus value.
31666
31667 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
31668 All callers changed so as not to call SetPortWindowPort.
31669 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
31670 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
31671 mac_draw_string_common.
31672 (mac_draw_image_string_qd): Likewise.
31673 (mac_draw_string_common): Use them. Add INLINE.
31674 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
31675 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
31676 GetGlobalMouse.
31677 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
31678 and FRAME_OUTER_TO_INNER_DIFF_Y.
31679 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
31680 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
31681 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
31682 repositioning window to mac_handle_window_event.
31683 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
31684 saving window location to mac_handle_window_event
31685 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
31686 (install_menu_target_item_handler): Remove argument in extern.
31687 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
31688 Also accept command events.
31689 (do_keystroke): New function created from XTread_socket.
31690 (init_command_handler): Remove functions.
31691 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
31692 and save window location by kEventWindowShowing and kEventWindowHiding
31693 handlers here. Don't call next handler for window state change and
31694 focus events.
31695 (mac_handle_application_event, mac_handle_keyboard_event)
31696 [TARGET_API_MAC_CARBON]: New functions.
31697 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
31698 kEventWindowShowing and kEventWindowHiding events. Move installation
31699 of mouse, font, text input and menu target item handlers to
31700 install_application_handler.
31701 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
31702 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31703 New function.
31704 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31705 Register it.
31706 (XTread_socket) [TARGET_API_MAC_CARBON]:
31707 Consolidate SendEventToEventTarget calls.
31708 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
31709 Move application activation handler to mac_handle_application_event.
31710 Move keyboard handler to mac_handle_keyboard_event.
31711 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
31712 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
31713 init_command_handler. Call install_application_handler.
31714
31715 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
31716 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
31717
317182007-06-07 Glenn Morris <rgm@gnu.org>
31719
31720 * emacs.c (main): Use `emacs-copyright' in --version output.
31721
317222007-06-06 Chong Yidong <cyd@stupidchicken.com>
31723
31724 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
31725
317262007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31727
31728 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
31729
31730 * macgui.h: Replace WindowPtr with WindowRef.
31731
31732 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31733 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31734 Replace ControlHandle with ControlRef.
31735 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
31736
31737 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31738 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31739 Replace ControlHandle with ControlRef.
31740 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
31741 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
31742
31743 * macterm.h (struct scroll_bar): Rename member control_handle_low
31744 and control_handle_high to control_ref_low and control_ref_high.
31745 All uses changed.
31746 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
31747 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
31748 respectively. All uses changed.
31749 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
31750 (install_window_handler, remove_window_handler): Replace WindowPtr
31751 with WindowRef in externs.
31752
317532007-06-05 Juanma Barranquero <lekktu@gmail.com>
31754
31755 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
31756
317572007-06-03 Nick Roberts <nickrob@snap.net.nz>
31758
31759 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
31760
31761 * frame.c (Fmouse_position, Fmouse_pixel_position):
31762 Condition on HAVE_GPM too.
31763
31764 * term.c (term_mouse_highlight): Remove unused variables.
31765 (Fterm_open_connection): Set gpm_zerobased to 1.
31766 (term_mouse_movement, term_mouse_click, handle_one_term_event):
31767 Use zero based co-ordinates.
31768 (handle_one_term_event): Report a drag as mouse movement too.
31769
31770 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
31771
317722007-06-03 Chong Yidong <cyd@stupidchicken.com>
31773
31774 * image.c (search_image_cache): New function. Require background
31775 color match if background color is unspecified in the image spec.
31776 (uncache_image, lookup_image): Use it.
31777
317782007-06-01 Juanma Barranquero <lekktu@gmail.com>
31779
31780 * window.c (Fshrink_window): Reflow docstring.
31781
317822007-06-02 Chong Yidong <cyd@stupidchicken.com>
31783
31784 * Version 22.1 released.
31785
317862007-06-01 Richard Stallman <rms@gnu.org>
31787
31788 * xfns.c (x_encode_text): Add GCPRO.
31789
317902007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31791
31792 * xfns.c (x_set_name_internal): Save encoded name before
31793 x_encode_text in case string data is relocated.
31794
317952007-05-31 Richard Stallman <rms@gnu.org>
31796
31797 * buffer.c (syms_of_buffer): Doc fix.
31798
317992007-05-30 Nick Roberts <nickrob@snap.net.nz>
31800
31801 * sysdep.c (init_sys_modes): Add rather than replace with
31802 O_NONBLOCK.
31803
31804 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31805 term_mouse_moveto.
31806
31807 * termhooks.h (term_mouse_moveto): New extern.
31808
31809 * term.c (mouse_face_window): Rename...
31810 (Qmouse_face_window): ...to this.
31811 (term_show_mouse_face, term_clear_mouse_face)
31812 (term_mouse_highlight): Use Qmouse_face_window.
31813 (term_mouse_moveto): New function.
31814 (term_mouse_position): Make it work.
31815 (syms_of_term): Uncomment assignment to mouse_position_hook.
31816 Staticpro Qmouse_face_window.
31817
318182007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31819
31820 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31821 around current_column call.
31822
318232007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31824
31825 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
31826 * xdisp.c (next_element_from_buffer):
31827 * window.c (delete_window):
31828 * term.c (term_mouse_highlight):
31829 * msdos.c (getdefdir):
31830 * macterm.c (mac_create_bitmap_from_bitmap_data)
31831 (init_font_name_table):
31832 * fns.c (Fsxhash):
31833 * data.c (Fmake_local_variable):
31834 * ccl.c (ccl_driver): Likewise.
31835
318362007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31837
31838 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
31839 Call mac_wakeup_from_rne on window size change.
31840
318412007-05-25 Chong Yidong <cyd@stupidchicken.com>
31842
31843 * image.c (uncache_image): Fix typo.
31844
318452007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
31846
31847 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
31848
318492007-05-22 Richard Stallman <rms@gnu.org>
31850
31851 * xterm.c (x_connection_closed): Remove NO_RETURN.
31852
318532007-05-22 Martin Rudalics <rudalics@gmx.at>
31854
31855 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
31856
318572007-05-21 Chong Yidong <cyd@stupidchicken.com>
31858
31859 * image.c (uncache_image): New function.
31860 (Fimage_refresh): New function.
31861
318622007-05-20 Jan Djärv <jan.h.d@swipnet.se>
31863
31864 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
31865
318662007-05-20 Nick Roberts <nickrob@snap.net.nz>
31867
31868 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
31869 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
31870
318712007-05-20 Nick Roberts <nickrob@snap.net.nz>
31872
31873 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
31874 conditional on [HAVE_GPM_H].
31875
318762007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
31877
31878 * syntax.c (skip_chars): Update syntax-table only after we checked that
31879 the new location is valid.
31880
318812007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31882
31883 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
31884 mac_get_window_bounds.
31885
318862007-05-20 Nick Roberts <nickrob@snap.net.nz>
31887
31888 * Makefile.in (LIBGPM): Allow it to be set from configure.
31889 If set then link Emacs with it.
31890
31891 * config.in: Regenerate.
31892
31893 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
31894 New externs.
31895
31896 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
31897 Include gpm.h.
31898 (handle_one_term_event, term_gpm): New externs.
31899
31900 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
31901 and allow it to be interrupted by SIGIO.
31902
31903 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
31904 (wait_reading_process_output): Wait on gpm_fd too.
31905 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
31906 (add_gpm_wait_descriptor_called_flag): New variable.
31907 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
31908
31909 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
31910 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
31911 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
31912 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
31913 (make_lispy_event): Add case GPM_CLICK_EVENT.
31914 (read_avail_input): Handle mouse input.
31915
31916 * term.c (write_glyphs_with_face): New function.
31917 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
31918 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
31919 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
31920 (mouse_face_face_id, term_gpm, pos_x, pos_y)
31921 (last_mouse_x, last_mouse_y): New variables.
31922 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
31923 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
31924 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31925 (Fterm_close_connection): New functions.
31926 (term_init): Initialise mouse_face_window.
31927
319282007-05-19 Chong Yidong <cyd@stupidchicken.com>
31929
31930 * xdisp.c (redisplay_window): If first window line is a
31931 continuation line, recompute the new window start instead of
31932 recentering.
31933
319342007-05-18 Glenn Morris <rgm@gnu.org>
31935
31936 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31937 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31938
319392007-05-17 Glenn Morris <rgm@gnu.org>
31940
31941 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31942
319432007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31944
31945 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31946 dead key repeat and up events.
31947
319482007-05-14 Chong Yidong <cyd@stupidchicken.com>
31949
31950 * image.c (pbm_load): Check image size for monochrome pbm.
31951
319522007-05-13 Chong Yidong <cyd@stupidchicken.com>
31953
31954 * xterm.c (XTread_socket): Revert last change.
31955
319562007-05-12 Chong Yidong <cyd@stupidchicken.com>
31957
31958 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31959
31960 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31961
319622007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31963
31964 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31965 mixup (YAILOM).
31966
319672007-05-07 Andreas Schwab <schwab@suse.de>
31968
31969 * keymap.c (Flookup_key): Fix typo in last change.
31970
319712007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31972
31973 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31974 mapping for unibyte strings.
31975
319762007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31977
31978 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31979 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31980
319812007-04-29 Richard Stallman <rms@gnu.org>
31982
31983 * insdel.c (replace_range): For undo, record insertion first.
31984
319852007-04-29 Andreas Schwab <schwab@suse.de>
31986
31987 * lisp.h (VECSIZE): Use OFFSETOF.
31988
319892007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31990
31991 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31992 disabled lines.
31993
319942007-04-28 Richard Stallman <rms@gnu.org>
31995
31996 * lread.c (read_escape): In a string, \s is always space.
31997
319982007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31999
32000 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32001
32002 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32003 submenu for menu bar items.
32004
32005See ChangeLog.10 for earlier changes.
32006
32007;; Local Variables:
32008;; coding: utf-8
aac0c6e3
MR
32009;; End:
32010
73b0cd50 32011 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
32012
32013 This file is part of GNU Emacs.
32014
32015 GNU Emacs is free software: you can redistribute it and/or modify
32016 it under the terms of the GNU General Public License as published by
32017 the Free Software Foundation, either version 3 of the License, or
32018 (at your option) any later version.
32019
32020 GNU Emacs is distributed in the hope that it will be useful,
32021 but WITHOUT ANY WARRANTY; without even the implied warranty of
32022 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32023 GNU General Public License for more details.
32024
32025 You should have received a copy of the GNU General Public License
32026 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.