* composite.c (composition_update_it): Mark var as initialized.
[bpt/emacs.git] / src / ChangeLog
1 2011-03-19 Paul Eggert <eggert@cs.ucla.edu>
2
3 * composite.c (composition_compute_stop_pos): Rename local to
4 avoid shadowing.
5 (composition_reseat_it): Remove unused locals.
6 (find_automatic_composition, composition_adjust_point): Likewise.
7 (composition_update_it): Mark var as initialized.
8
9 2011-03-18 Paul Eggert <eggert@cs.ucla.edu>
10
11 character.h: Rename locals to avoid shadowing.
12 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
13 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
14 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
15 (BUF_DEC_POS): Be more systematic about renaming local temporaries
16 to avoid shadowing.
17
18 * textprop.c (property_change_between_p): Remove; unused.
19
20 * intervals.c (interval_start_pos): Now static.
21
22 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
23
24 * atimer.c (start_atimer, append_atimer_lists, set_alarm): Rename
25 locals to avoid shadowing.
26
27 * sound.c (wav_play, au_play, Fplay_sound_internal):
28 Fix pointer signedness.
29 (alsa_choose_format): Remove unused local var.
30 (wav_play): Initialize a variable to 0, to prevent undefined
31 behavior (Bug#8278).
32
33 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
34
35 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
36
37 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering.
38 * sysdep.c (sys_subshell): Likewise.
39 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
40
41 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
42 This should get cleaned up, so that child_setup has the
43 same signature on all platforms.
44
45 * callproc.c (call_process_cleanup): Now static.
46 (relocate_fd): Rename locals to avoid shadowing.
47
48 2011-03-17 Eli Zaretskii <eliz@gnu.org>
49
50 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
51
52 2011-03-17 Paul Eggert <eggert@cs.ucla.edu>
53
54 Fix more problems found by GCC 4.5.2's static checks.
55
56 * process.c (make_serial_process_unwind, send_process_trap):
57 (sigchld_handler): Now static.
58
59 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
60 That way, the code declares only the vars that it needs.
61 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
62 * s/cygwin.h (PTY_ITERATION): Likewise.
63 * s/darwin.h (PTY_ITERATION): Likewise.
64 * s/gnu-linux.h (PTY_ITERATION): Likewise.
65
66 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
67 * process.c (allocate_pty): Don't declare stb unless it's needed.
68
69 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
70 (CONSTANTLIM): Remove; unused.
71 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
72 Define only if needed.
73
74 * unexelf.c (unexec): Name an expression,
75 to avoid gcc -Wbad-function-cast warning.
76 Use a different way to cause a compilation error if anyone uses
77 n rather than nn, a way that does not involve shadowing.
78 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
79
80 * deps.mk (unexalpha.o): Remove; unused.
81
82 New file unexec.h, the (simple) interface for unexec (Bug#8267).
83 * unexec.h: New file.
84 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
85 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
86 Depend on unexec.h.
87 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
88 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
89 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
90 Change as necessary to match prototype in unexec.h.
91
92 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
93 shadowing.
94 (back_comment, skip_chars): Mark vars as initialized.
95
96 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
97 Rename locals to avoid shadowing.
98
99 * lread.c (read1): Rewrite so as not to use empty "else".
100 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
101
102 * print.c (Fredirect_debugging_output): Fix pointer signedess.
103
104 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
105 warning when compiling print.c.
106
107 * font.c (font_unparse_fcname): Abort in an "impossible" situation
108 instead of using an uninitialized var.
109 (font_sort_entities): Mark var as initialized.
110
111 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
112
113 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
114 pointers to constants.
115 (font_parse_fcname): Remove unused vars.
116 (font_delete_unmatched): Now static.
117 (font_get_spec): Remove; unused.
118 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
119 (font_update_drivers, Ffont_get_glyphs, font_add_log):
120 Rename or move locals to avoid shadowing.
121
122 * fns.c (require_nesting_list, require_unwind): Now static.
123 (Ffillarray): Rename locals to avoid shadowing.
124
125 * floatfns.c (domain_error2): Define only if needed.
126 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
127
128 * alloc.c (mark_backtrace): Move decl from here ...
129 * lisp.h: ... to here, so that it can be checked.
130
131 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
132 (Fdefvar): Rewrite so as not to use empty "else".
133 (lisp_indirect_variable): Name an expression,
134 to avoid gcc -Wbad-function-cast warning.
135 (Fdefvar): Rename locals to avoid shadowing.
136
137 * callint.c (quotify_arg, quotify_args): Now static.
138 (Fcall_interactively): Rename locals to avoid shadowing.
139 Use const pointer when appropriate.
140
141 * lisp.h (get_system_name, get_operating_system_release):
142 Move decls here, to check interfaces.
143 * process.c (get_operating_system_release): Move decl to lisp.h.
144 * xrdb.c (get_system_name): Likewise.
145 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
146 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
147 some of which prompt warnings from gcc -Wbad-function-cast.
148 (Fformat_time_string, Fencode_time, Finsert_char):
149 (Ftranslate_region_internal, Fformat):
150 Rename or remove local vars to avoid shadowing.
151 (Ftranslate_region_internal): Mark var as initialized.
152
153 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
154 avoid shadowing.
155
156 * lisp.h (eassert): Check that the argument compiles, even if
157 ENABLE_CHECKING is not defined.
158
159 * data.c (Findirect_variable): Name an expression, to avoid
160 gcc -Wbad-function-cast warning.
161 (default_value, arithcompare, arith_driver, arith_error): Now static.
162 (store_symval_forwarding): Rename local to avoid shadowing.
163 (Fmake_variable_buffer_local, Fmake_local_variable): Mark
164 variables as initialized.
165 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
166
167 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
168 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
169 Rename locals to avoid shadowing.
170 (mark_stack): Move local variables into the #ifdef region where
171 they're used.
172 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
173 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
174 needed otherwise.
175 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
176 (GC_STRING_CHARS): Remove; not used.
177 (Fmemory_limit): Cast sbrk's returned value to char *.
178
179 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
180 avoids undefined behavior in theory.
181
182 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
183
184 Use functions, not macros, for up- and down-casing (Bug#8254).
185 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
186 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
187 to use the following functions instead of these macros.
188 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
189 EMACS_INT, since callers assume the returned value fits in int.
190 (upcase1): Likewise, for UPCASE_TABLE.
191 (uppercasep, lowercasep, upcase): New static inline functions.
192 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
193 the race-condition problem in the old DOWNCASE.
194
195 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
196 Rename locals to avoid shadowing.
197 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
198 (regex_compile, re_search_2, re_match_2_internal):
199 Remove unused local vars.
200 (FREE_VAR): Rewrite so as not to use empty "else",
201 which gcc can warn about.
202 (regex_compile, re_match_2_internal): Mark locals as initialized.
203 (RETALLOC_IF): Define only if needed.
204 (WORDCHAR_P): Likewise. This one is never needed, but is used
205 only in a comment talking about a compiler bug, so put inside
206 the #if 0 of that comment.
207 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
208 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
209 Remove; unused.
210
211 * search.c (boyer_moore): Rename locals to avoid shadowing.
212 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
213 (PREV_CHAR_BOUNDARY): Likewise.
214
215 * search.c (simple_search): Remove unused var.
216
217 * dired.c (compile_pattern): Move decl from here ...
218 * lisp.h: ... to here, so that it can be checked.
219 (struct re_registers): New forward decl.
220
221 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
222
223 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
224 All uses changed.
225 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
226 Rename locals to avoid shadowing.
227 (Fvertical_motion): Mark locals as initialized.
228
229 * casefiddle.c (casify_object, casify_region): Now static.
230 (casify_region): Mark local as initialized.
231
232 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
233
234 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
235 New macros, so that the caller can use some names other than
236 gcpro1, gcpro2, etc.
237 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
238 of the new macros.
239 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
240 argument, for consistency with GCPRO2_VAR, etc: it is now the
241 prefix of the variable, not the variable itself. All uses
242 changed.
243 * dired.c (directory_files_internal, file_name_completion):
244 Rename locals to avoid shadowing.
245
246 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
247 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
248 dired.c's scmp function, had undefined behavior.
249 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
250 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
251 * buffer.h: ... to here, because these macros use current_buffer,
252 and the new implementation with inline functions needs to have
253 current_buffer in scope now, rather than later when the macros
254 are used.
255 (downcase, upcase1): New static inline functions.
256 (DOWNCASE, UPCASE1): Reimplement using these functions.
257 This avoids undefined behavior in expressions like
258 DOWNCASE (x) == DOWNCASE (y), which previously suffered
259 from race conditions in accessing the global variables
260 case_temp1 and case_temp2.
261 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
262 * lisp.h (case_temp1, case_temp2): Remove their decls.
263 * character.h (ASCII_CHAR_P): Move from here ...
264 * lisp.h: ... to here, so that the inline functions mentioned
265 above can use them.
266
267 * dired.c (directory_files_internal_unwind): Now static.
268
269 * fileio.c (file_name_as_directory, directory_file_name):
270 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
271 Now static.
272 (file_name_as_directory): Use const pointers when appropriate.
273 (Fexpand_file_name): Likewise. In particular, newdir might
274 point at constant storage, so make it a const pointer.
275 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
276 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
277 signedness issues.
278 (Fset_file_times, Finsert_file_contents, auto_save_error):
279 Rename locals to avoid shadowing.
280
281 * minibuf.c (choose_minibuf_frame_1): Now static.
282 (Ftry_completion, Fall_completions): Rename or remove locals
283 to avoid shadowing.
284
285 * marker.c (bytepos_to_charpos): Remove; unused.
286
287 * lisp.h (verify_bytepos, count_markers): New decls,
288 so that gcc does not warn that these functions aren't declared.
289
290 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
291 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
292 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
293 (copy_text): Remove unused local var.
294
295 * filelock.c (within_one_second): Now static.
296 (lock_file_1): Rename local to avoid shadowing.
297
298 * buffer.c (fix_overlays_before): Mark locals as initialized.
299 (fix_start_end_in_overlays): Likewise. This function should be
300 simplified by using pointers-to-pointers, but that's a different
301 matter.
302 (switch_to_buffer_1): Now static.
303 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
304 (report_overlay_modification): Rename locals to avoid shadowing.
305
306 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
307 Fix pointer signedness issue.
308 (sys_subshell): Mark local as volatile if checking for lint,
309 to suppress a gcc -Wclobbered warning that does not seem to be right.
310 (MAXPATHLEN): Define only if needed.
311
312 * process.c (serial_open, serial_configure): Move decls from here ...
313 * systty.h: ... to here, so that they can be checked.
314
315 * fns.c (get_random, seed_random): Move extern decls from here ...
316 * lisp.h: ... to here, so that they can be checked.
317
318 * sysdep.c (reset_io): Now static.
319 (wait_for_termination_signal): Remove; unused.
320
321 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
322 (copy_keymap_item, append_key, push_text_char_description):
323 Now static.
324 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
325 (DENSE_TABLE_SIZE): Remove; unused.
326 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
327 (describe_map_tree):
328 Rename locals to avoid shadowing.
329
330 * keyboard.c: Declare functions static if they are not used elsewhere.
331 (echo_char, echo_dash, cmd_error, top_level_2):
332 (poll_for_input, handle_async_input): Now static.
333 (read_char, kbd_buffer_get_event, make_lispy_position):
334 (make_lispy_event, make_lispy_movement, apply_modifiers):
335 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
336 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
337 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
338 (read_key_sequence, read_char): Mark locals as initialized.
339 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
340
341 * keyboard.h (make_ctrl_char): New decl.
342 (mark_kboards): Move decl here ...
343 * alloc.c (mark_kboards): ... from here.
344
345 * lisp.h (force_auto_save_soon): New decl.
346
347 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
348 (DEFINE_DUMMY_FUNCTION): New macro.
349 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
350 Use it.
351 (main): Add casts to avoid warnings
352 if GCC considers string literals to be constants.
353
354 * lisp.h (fatal_error_signal): Add decl, since it's exported.
355
356 * dbusbind.c: Pointer signedness fixes.
357 (xd_signature, xd_append_arg, xd_initialize):
358 (Fdbus_call_method, Fdbus_call_method_asynchronously):
359 (Fdbus_method_return_internal, Fdbus_method_error_internal):
360 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
361 (Fdbus_register_signal): Use SSDATA when the context wants char *.
362
363 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
364 if GCC considers string literals to be constants.
365 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
366
367 2011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
368
369 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
370 (print_preprocess, print_object): New macro to fix last change.
371
372 * print.c (print_preprocess): Don't forget font objects.
373
374 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
375
376 * emacs.c (USAGE3): Doc fixes.
377
378 2011-03-15 Andreas Schwab <schwab@linux-m68k.org>
379
380 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
381 structure.
382
383 2011-03-14 Juanma Barranquero <lekktu@gmail.com>
384
385 * lisp.h (VWindow_system, Qfile_name_history):
386 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
387 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
388 (w32_system_caret_x, w32_system_caret_y): Declare extern.
389
390 * w32select.c: Don't #include "keyboard.h".
391 (run_protected): Add extern declaration for waiting_for_input.
392
393 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
394 * w32console.c (detect_input_pending, read_input_pending)
395 (encode_terminal_code):
396 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
397 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
398 (w32_system_caret_y, Qfile_name_history):
399 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
400 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
401 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
402 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
403 * w32proc.c (Qlocal, report_file_error):
404 * w32term.c (Vwindow_system, updating_frame):
405 * w32uniscribe.c (initialized, uniscribe_font_driver):
406 Remove unneeded extern declarations.
407
408 2011-03-14 Chong Yidong <cyd@stupidchicken.com>
409
410 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
411
412 2011-03-13 Chong Yidong <cyd@stupidchicken.com>
413
414 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
415 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
416 These macros can no longer be used for assignment.
417
418 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
419 struct members directly, instead of using BUF_BEGV etc.
420 (record_buffer_markers, fetch_buffer_markers): New functions for
421 recording and fetching special buffer markers.
422 (set_buffer_internal_1, set_buffer_temp): Use them.
423
424 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
425
426 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
427
428 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
429 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
430
431 * xdisp.c (hscroll_window_tree):
432 (reconsider_clip_changes): Use PT instead of BUF_PT.
433
434 2011-03-13 Eli Zaretskii <eliz@gnu.org>
435
436 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
437 $(EMACS_ROOT)/lib/intprops.h.
438
439 2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
440
441 Fix more problems found by GCC 4.5.2's static checks.
442
443 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
444 to unsigned char * to avoid compiler diagnostic.
445 (xg_free_frame_widgets): Make it clear that a local variable is
446 needed only if USE_GTK_TOOLTIP.
447 (gdk_window_get_screen): Make it clear that this macro is needed
448 only if USE_GTK_TOOLTIP.
449 (int_gtk_range_get_value): New function, which avoids a diagnostic
450 from gcc -Wbad-function-cast.
451 (xg_set_toolkit_scroll_bar_thumb): Use it.
452 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
453 diagnostic from gcc -Wbad-function-cast.
454 (get_utf8_string, xg_get_file_with_chooser):
455 Rename locals to avoid shadowing.
456 (create_dialog): Move locals to avoid shadowing.
457
458 * xgselect.c (xg_select): Remove unused var.
459
460 * image.c (four_corners_best): Mark locals as initialized.
461 (gif_load): Initialize transparent_p to zero (Bug#8238).
462 Mark another local as initialized.
463 (my_png_error, my_error_exit): Mark with NO_RETURN.
464
465 * image.c (clear_image_cache): Now static.
466 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
467 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
468 (x_edge_detection): Remove unnecessary cast that
469 gcc -Wbad-function-cast diagnoses.
470 (gif_load): Fix pointer signedness.
471 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
472 (jpeg_load, gif_load): Rename locals to avoid shadowing.
473
474 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
475
476 Improve quality of tests for time stamp overflow.
477 For example, without this patch (encode-time 0 0 0 1 1
478 1152921504606846976) returns the obviously-bogus value (-948597
479 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
480 reports time overflow. See
481 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
482 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
483 * editfns.c: Include limits.h and intprops.h.
484 (TIME_T_MIN, TIME_T_MAX): New macros.
485 (time_overflow): Move earlier, to before first use.
486 (hi_time, lo_time): New functions, for an accurate test for
487 out-of-range times.
488 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
489 (Fget_internal_run_time): Don't assume time_t fits in int.
490 (make_time): Use list2 instead of Fcons twice.
491 (Fdecode_time): More accurate test for out-of-range times.
492 (check_tm_member): New function.
493 (Fencode_time): Use it, to test for out-of-range times.
494 (lisp_time_argument): Don't rely on undefined left-shift and
495 right-shift behavior when checking for time stamp overflow.
496
497 * editfns.c (time_overflow): New function, refactoring common code.
498 (Fformat_time_string, Fdecode_time, Fencode_time):
499 (Fcurrent_time_string): Use it.
500
501 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
502 * dired.c (make_time): Move to ...
503 * editfns.c (make_time): ... here.
504 * systime.h: Note the move.
505
506 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
507
508 * fringe.c (update_window_fringes): Remove unused variables.
509
510 * unexmacosx.c (copy_data_segment): Also copy __got section.
511 (Bug#8223)
512
513 2011-03-12 Eli Zaretskii <eliz@gnu.org>
514
515 * termcap.c [MSDOS]: Include "msdos.h".
516 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
517 Constify `char *' arguments and their references according to
518 prototypes in tparam.h.
519
520 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
521
522 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
523 Adapt all references accordingly.
524
525 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
526
527 2011-03-11 Tom Tromey <tromey@redhat.com>
528
529 * buffer.c (syms_of_buffer): Remove obsolete comment.
530
531 2011-03-11 Eli Zaretskii <eliz@gnu.org>
532
533 * termhooks.h (encode_terminal_code): Declare prototype.
534
535 * msdos.c (encode_terminal_code): Don't declare prototype.
536
537 * term.c (encode_terminal_code): Now external again, used by
538 w32console.c and msdos.c.
539
540 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
541 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
542
543 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
544
545 Fix some minor problems found by GCC 4.5.2's static checks.
546
547 * fringe.c (update_window_fringes): Mark locals as initialized
548 (Bug#8227).
549 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
550
551 * alloc.c (mark_fringe_data): Move decl from here ...
552 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
553 to check its interface.
554 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
555
556 * fontset.c (free_realized_fontset): Now static.
557 (Fset_fontset_font): Rename local to avoid shadowing.
558 (fontset_font): Mark local as initialized.
559 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
560
561 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
562
563 * xselect.c (x_disown_buffer_selections): Remove; not used.
564 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
565 (x_own_selection, Fx_disown_selection_internal): Rename locals
566 to avoid shadowing.
567 (x_handle_dnd_message): Remove local to avoid shadowing.
568
569 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
570 so that the caller can use some name other than gcpro1.
571 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
572 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
573 (Fx_backspace_delete_keys_p):
574 Use them to avoid shadowing, and rename vars to avoid shadowing.
575 (x_decode_color, x_set_name, x_window): Now static.
576 (Fx_create_frame): Add braces to silence GCC warning.
577 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
578 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
579 Remove unused locals.
580 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
581 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
582 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
583 macros.
584
585 * xterm.h (x_mouse_leave): New decl.
586
587 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
588 Remove unused functions.
589 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
590 (x_calc_absolute_position): Now static.
591 (XTread_socket): Don't define label "out" unless it's used.
592 Don't declare local "event" unless it's used.
593 (x_iconify_frame, x_free_frame_resources): Don't declare locals
594 unless they are used.
595 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
596 (x_fatal_error_signal): Remove; not used.
597 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
598 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
599 (x_error_catcher, x_connection_closed, x_error_handler):
600 (x_error_quitter, xembed_send_message, x_iconify_frame):
601 (my_log_handler): Rename locals to avoid shadowing.
602 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
603 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
604
605 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
606 or move locals to avoid shadowing.
607 (tty_defined_color, merge_face_heights): Now static.
608 (free_realized_faces_for_fontset): Remove; not used.
609 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
610 does not deduce is never used uninitialized.
611 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
612 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
613
614 * terminal.c (store_terminal_param): Now static.
615
616 * xmenu.c (menu_highlight_callback): Now static.
617 (set_frame_menubar): Remove unused local.
618 (xmenu_show): Rename parameter to avoid shadowing.
619 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
620 since they might point to immutable storage.
621 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
622 since it's unused otherwise.
623
624 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
625 Add a FIXME, since the code still doesn't look right. (Bug#8215)
626 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
627 avoids a gcc -Wuninitialized diagnostic.
628 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
629 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
630 does not deduce are never used uninitialized.
631
632 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
633
634 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
635 * window.c (window_loop, size_window):
636 (run_window_configuration_change_hook, enlarge_window): Likewise.
637
638 * window.c (display_buffer): Now static.
639 (size_window): Mark variables that gcc -Wuninitialized
640 does not deduce are never used uninitialized.
641 * window.h (check_all_windows): New decl, to forestall
642 gcc -Wmissing-prototypes diagnostic.
643 * dispextern.h (bidi_dump_cached_states): Likewise.
644
645 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
646 shadowing.
647 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
648 Include <limits.h>.
649 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
650 and to avoid gcc -Wuninitialized warning.
651 (load_charset_map): Mark variables that gcc -Wuninitialized
652 does not deduce are never used uninitialized.
653 (load_charset): Abort instead of using uninitialized var (Bug#8229).
654
655 * coding.c (coding_set_source, coding_set_destination):
656 Use "else { /* comment */ }" rather than "else /* comment */;"
657 for clarity, and to avoid gcc -Wempty-body warning.
658 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
659 a block, when the outer 'i' will do.
660 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
661 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
662 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
663 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
664 (Fdecode_sjis_char, Fdefine_coding_system_internal):
665 Rename locals to avoid shadowing.
666 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
667 * coding.c (emacs_mule_char, encode_invocation_designation):
668 Now static, since they're not used elsewhere.
669 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
670 (decode_coding_object, encode_coding_object, detect_coding_system):
671 (decode_coding_emacs_mule): Mark variables that gcc
672 -Wuninitialized does not deduce are never used uninitialized.
673 (detect_coding_iso_2022): Initialize a local variable that might
674 be used uninitialized. Leave a FIXME because it's not clear that
675 this initialization is needed. (Bug#8211)
676 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
677 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
678 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
679 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
680 Remove unused macros.
681
682 * category.c (hash_get_category_set): Remove unused local var.
683 (copy_category_table): Now static, since it's not used elsewhere.
684 * character.c (string_count_byte8): Likewise.
685
686 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
687 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
688
689 * chartab.c (copy_sub_char_table): Now static, since it's not used
690 elsewhere.
691 (sub_char_table_ref_and_range, char_table_ref_and_range):
692 Rename locals to avoid shadowing.
693 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
694
695 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
696 (BIDI_BOB): Remove unused macro.
697
698 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
699 deduce are never used uninitialized.
700 * term.c (encode_terminal_code): Likewise.
701
702 * term.c (encode_terminal_code): Now static. Remove unused local.
703
704 * tparam.h: New file.
705 * term.c, tparam.h: Include it.
706 * deps.mk (term.o, tparam.o): Depend on tparam.h.
707 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
708 Move these decls to tparam.h, and make them agree with what
709 is actually in tparam.c. The previous trick of using incompatible
710 decls in different modules does not conform to the C standard.
711 All callers of tparam changed to use tparam's actual API.
712 * tparam.c (tparam1, tparam, tgoto):
713 Use const pointers where appropriate.
714
715 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
716 * cm.h (struct cm): Likewise.
717 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
718 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
719 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
720 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
721 (turn_on_face, init_tty): Likewise.
722 * termchar.h (struct tty_display_info): Likewise.
723
724 * term.c (term_mouse_position): Rename local to avoid shadowing.
725
726 * alloc.c (mark_ttys): Move decl from here ...
727 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
728
729 2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
730
731 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
732
733 2011-03-09 Juanma Barranquero <lekktu@gmail.com>
734
735 * search.c (compile_pattern_1): Remove argument regp, unused since
736 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
737 (compile_pattern): Don't pass it.
738
739 2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
740
741 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
742 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
743 for ! HAVE_GTK3.
744 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
745
746 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
747
748 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
749 gdk_window_get_screen, gdk_window_get_geometry,
750 gdk_x11_window_lookup_for_display and GDK_KEY_g.
751 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
752 (xg_get_pixbuf_from_pixmap): New function.
753 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
754 to Pixmap, take frame as parameter, remove GdkColormap parameter.
755 Call xg_get_pixbuf_from_pixmap instead of
756 gdk_pixbuf_get_from_drawable.
757 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
758 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
759 (xg_check_special_colors): Use GtkStyleContext and its functions
760 for HAVE_GTK3.
761 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
762 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
763 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
764 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
765 gtk_widget_get_preferred_size.
766 (xg_frame_resized): gdk_window_get_geometry only takes 5
767 parameters.
768 (xg_win_to_widget, xg_event_is_for_menubar): Call
769 gdk_x11_window_lookup_for_display.
770 (xg_set_widget_bg): New function.
771 (delete_cb): New function.
772 (xg_create_frame_widgets): connect delete-event to delete_cb.
773 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
774 (xg_set_background_color): Call xg_set_widget_bg.
775 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
776 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
777 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
778 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
779 if ! HAVE_GTK3.
780 (update_frame_tool_bar): Call gtk_widget_hide.
781 (xg_initialize): Use GDK_KEY_g.
782
783 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
784 if ! HAVE_GTK3
785 (x_session_initialize): Call gdk_x11_set_sm_client_id.
786
787 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
788 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
789 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
790
791 2011-03-08 Juanma Barranquero <lekktu@gmail.com>
792
793 * w32xfns.c (select_palette): Check success of RealizePalette against
794 GDI_ERROR, not zero.
795
796 2011-03-07 Ben Key <bkey76@gmail.com>
797
798 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
799 (file_dialog_callback): Fix locating the window handle of the File Name
800 text field. After disabling it, set focus on the list control.
801 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
802 Name text field to "Current Directory" if it does not already have
803 another value. (Bug#8181)
804
805 2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
806
807 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
808 parameter for hbar cursors. Based on a patch by Ben Key
809 <bkey76@gmail.com>.
810
811 2011-03-06 Chong Yidong <cyd@stupidchicken.com>
812
813 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
814 change.
815
816 2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
817
818 current_column: Now returns EMACS_INT, fixing some iftc
819 that was introduced in the 2002-06-02 change "temporarily"; see
820 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
821 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
822 * cmds.c (internal_self_insert): Likewise.
823 * indent.c (Fcurrent_column): Likewise.
824 * keymap.c (describe_command): Likewise.
825 * minibuf.c (read_minibuf): Likewise.
826 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
827 to int.
828 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
829 Likewise.
830 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
831 not int or double, if they might contain a column number.
832 * indent.c (current_column, Findent_to, indented_beyond_p):
833 (compute_motion, vmotion): Likewise.
834 * keymap.c (describe_command): Likewise.
835 * xdisp.c (pint2str): Likewise.
836 * indent.c (last_known_column): Now EMACS_INT, not int.
837 * minibuf.c (minibuf_prompt_width): Likewise.
838 * indent.c (current_column, current_column_1, position_indentation):
839 Return EMACS_INT, not double.
840 * lisp.h (current_column): Likewise.
841 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
842 All callers changed.
843 * lisp.h (indented_beyond_p): Likewise.
844
845 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
846 from xdisp.c, and make static, since these are used only here.
847 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
848 Remove decls.
849
850 * cmds.c (internal_self_insert): Reindent to match Emacs style.
851 * xdisp.c (redisplay_window): Likewise.
852
853 * xdisp.c: Rename or move local decls to avoid shadowing.
854 (init_iterator, handle_fontified_prop, handle_single_display_spec):
855 (message_dolog, message_with_string, redisplay_internal):
856 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
857 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
858 (display_line, display_string, rows_from_pos_range):
859 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
860 Rename or move local decls.
861 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
862 (produce_glyphless_glyph): Make a pointer "const"
863 since it might point to immutable storage.
864 (update_window_cursor): Now static, since it's not used elsewhere.
865 (SKIP_GLYPHS): Removed unused macro.
866
867 2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
868
869 * window.c (Fnext_window): Doc fix. (Bug#5567)
870
871 2011-03-05 Chong Yidong <cyd@stupidchicken.com>
872
873 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
874
875 2011-03-02 Ken Brown <kbrown@cornell.edu>
876
877 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
878
879 2011-03-02 Paul Eggert <eggert@cs.ucla.edu>
880
881 Work around some portability problems with symlinks.
882
883 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
884 generate a special message for it. Suggested by Eli Zaretskii in
885 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
886 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
887 Simplify the code by assuming that the readlink and symlink calls
888 exist, even if they always fail on this host.
889 (Ffile_readable_p): Likewise, for fifos.
890 * config.in: Regenerate.
891
892 2011-02-27 Chong Yidong <cyd@stupidchicken.com>
893
894 * frame.c (store_frame_param): Don't store value directly in
895 buffer_list and buried_buffer_list; copy the list and remove dead
896 buffers (Bug#7898).
897
898 2011-02-27 Eli Zaretskii <eliz@gnu.org>
899
900 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
901
902 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
903
904 * w32.c (symlink, readlink): New stub functions.
905
906 2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
907
908 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
909 This avoids a gcc warning in some configurations.
910
911 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
912
913 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
914 (set_menu_bar_lines, x_get_resource_string): New decls.
915 * msdos.c (set_menu_bar_lines): Omit decl.
916
917 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
918 It's always given int values and used as an int. This suppresses
919 a gcc "comparison of unsigned expression >= 0" warning in some
920 configurations.
921
922 * dispnew.c: Rename locals to avoid shadowing.
923 (update_text_area, scrolling_window, update_frame_1): Rename locals.
924
925 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
926
927 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
928 (copy_glyph_row_contents): Remove; not used.
929 (frame_row_to_window, check_current_matrix_flags):
930 (window_change_signal): Now static, since they're not used elsewhere.
931 (check_current_matrix_flags): Surround with "#if 0", since its
932 only use is in a comment. Maybe both the comment and the "#if 0"
933 stuff should be removed?
934
935 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
936 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
937 contexts that actually need it.
938
939 2011-02-26 Eli Zaretskii <eliz@gnu.org>
940
941 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
942 (lstat): Define for DJGPP < 2.04.
943
944 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
945
946 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
947 as per recent filemodestring API change. Reported by Jonas Öster in
948 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
949
950 2011-02-23 Ben Key <bkey76@gmail.com>
951
952 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
953 directly, for bar cursors.
954
955 2011-02-23 Chong Yidong <cyd@stupidchicken.com>
956
957 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
958 into the frame's cursor_width.
959
960 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
961
962 * print.c (print_object): Never print old-style backquotes.
963 Obey escapeflag for hash tables as well.
964
965 2011-02-23 Kenichi Handa <handa@m17n.org>
966
967 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
968 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
969
970 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
971
972 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
973
974 2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
975
976 * lread.c (openp): Correct Boolean typo in last commit.
977
978 2011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
979
980 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
981 key to Emacs, treat as unmodified (go to input manager processing).
982
983 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
984
985 Assume S_ISLNK etc. work, since gnulib supports this.
986 * config.in: Regenerate.
987 * dired.c (lstat): Remove.
988 (file_name_completion): Assume S_ISDIR works.
989 (file_name_completion_stat): Assume S_ISLNK works.
990 Do not bother calling stat unless lstat says it's a symlink.
991 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
992 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
993 (check_writable, Ffile_writable_p, Fset_file_times):
994 Assume S_ISDIR works.
995 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
996 fifos exist.
997 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
998 * filelock.c (S_ISLNK): Remove.
999 * lread.c (openp): Assume S_ISDIR works.
1000 * xrdb.c (S_ISDIR): Remove.
1001
1002 2011-02-21 Eli Zaretskii <eliz@gnu.org>
1003
1004 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
1005 lib/makefile.w32-in.
1006 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1007 (GLOBAL_SOURCES): Remove filemode.c.
1008 (OBJ1): Remove $(BLD)/filemode.$(O).
1009
1010 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1011
1012 Import filemode module from gnulib.
1013 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1014 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1015 (filemode.o): Remove; this is now in ../lib.
1016 * dired.c: Include <filemode.h>.
1017 (filemodestring): Remove now-redundant decl.
1018 * config.in: Regenerate.
1019
1020 2011-02-20 Eli Zaretskii <eliz@gnu.org>
1021
1022 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1023 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1024
1025 2011-02-20 Christoph Scholtes <cschol2112@gmail.com>
1026
1027 * makefile.w32-in: Remove md5.$(O).
1028 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1029 lib/makefile.w32-in.
1030
1031 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
1032
1033 Import crypto/md5 and stdint modules from gnulib.
1034 * Makefile.in (base_obj): Remove md5.o, since this file
1035 is in lib now.
1036 * config.in: Regenerate.
1037 * md5.h, md5.h: Move to ../lib.
1038 * deps.mk (md5.o): Remove.
1039 (fns.o): Depend on ../lib/md5.h, not md5.h.
1040
1041 2011-02-19 Eli Zaretskii <eliz@gnu.org>
1042
1043 * termcap.c (tputs): Don't declare baud_rate.
1044
1045 * s/msdos.h (strtold): Define to _strtold.
1046
1047 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1048
1049 * process.c (Fstart_process, Fmake_serial_process)
1050 (Fmake_network_process, server_accept_connection):
1051 Use empty_unibyte_string.
1052
1053 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1054
1055 * lread.c (Qdir_ok): New constant.
1056 (syms_of_lread): Initialize it.
1057 (openp): Don't ignore directories if the predicate returns dir-ok.
1058
1059 2011-02-18 Eli Zaretskii <eliz@gnu.org>
1060
1061 * xdisp.c (display_line): Fix the change made for bug#7939.
1062
1063 * terminal.c (create_terminal): Use default-keyboard-coding-system
1064 and default-terminal-coding-system to initialize coding systems of
1065 the new terminal. (Bug#7840)
1066
1067 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1068
1069 * lisp.h (BYTE_MARK_STACK): New macro.
1070 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1071
1072 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1073 (struct byte_stack): Only define `top' and `bottom' if used.
1074 (mark_byte_stack): Only define if used.
1075 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1076 is not set.
1077 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1078
1079 * term.c (OUTPUT_IF): Use OUTPUT.
1080
1081 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1082 redundantly scan byte-code stacks, catchlist, and handlerlist.
1083
1084 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1085
1086 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1087 (Fns_read_file_name): Replace B_ with BVAR.
1088
1089 * nsterm.m (ns_term_init): Use KVAR.
1090
1091 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1092
1093 * msdos.c (internal_terminal_init): Use KVAR.
1094
1095 * w32fns.c (Fx_create_frame): Use KVAR.
1096
1097 * w32term.c (w32_create_terminal): Use KVAR.
1098
1099 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
1100 (getloadavg): Declare prototype which was removed from lisp.h.
1101
1102 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1103
1104 * fileio.c (Finsert_file_contents, Fwrite_region):
1105 Remove references to buffer_file_type.
1106 (syms_of_fileio): Don't intern and staticpro
1107 find-buffer-file-type.
1108
1109 * callproc.c (syms_of_callproc): Remove references to
1110 buffer_file_type.
1111
1112 * buffer.c (reset_buffer_local_variables): Don't set
1113 buffer_file_type.
1114 (init_buffer_once): Likewise.
1115 (syms_of_buffer): Don't define buffer-file-type.
1116
1117 * buffer.h (struct buffer): Remove buffer_file_type.
1118
1119 2011-02-16 Tom Tromey <tromey@parfait>
1120
1121 * callint.c (Fcall_interactively): Update for change to field names.
1122 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1123 * cmds.c (Fself_insert_command): Update for change to field names.
1124 * keymap.c (Fcurrent_active_maps, Fkey_binding)
1125 (Fdescribe_buffer_bindings): Update for change to field names.
1126 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1127 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
1128 Update for change to field names.
1129 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1130 (echo_length, echo_truncate, cmd_error, command_loop_1)
1131 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1132 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1133 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1134 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
1135 Update for change to field names.
1136 * xfns.c (Fx_create_frame): Update for change to field names.
1137 * xterm.c (x_connection_closed, x_term_init): Update for change to
1138 field names.
1139 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
1140 Update for change to field names.
1141 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1142 Update for change to field names.
1143 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
1144 (delete_frame): Update for change to field names.
1145 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1146 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1147 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1148
1149 2011-02-16 Tom Tromey <tromey@redhat.com>
1150
1151 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1152
1153 2011-02-16 Tom Tromey <tromey@parfait>
1154
1155 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1156 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1157 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1158 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1159 (with_echo_area_buffer, setup_echo_area_for_printing)
1160 (set_message_1, update_menu_bar, update_tool_bar)
1161 (text_outside_line_unchanged_p, redisplay_internal)
1162 (try_scrolling, try_cursor_movement, redisplay_window)
1163 (try_window_reusing_current_matrix, row_containing_pos)
1164 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1165 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1166 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1167 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1168 BVAR.
1169 * window.c (window_display_table, unshow_buffer, window_loop)
1170 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1171 (select_window, Fforce_window_update, temp_output_buffer_show)
1172 (Fset_window_configuration, save_window_save): Replace B_ with
1173 BVAR.
1174 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1175 Replace B_ with BVAR.
1176 * undo.c (record_point, record_insert, record_delete)
1177 (record_marker_adjustment, record_first_change)
1178 (record_property_change, Fundo_boundary, truncate_undo_list)
1179 (Fprimitive_undo): Replace B_ with BVAR.
1180 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1181 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1182 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1183 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1184 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1185 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1186 (string_match_1, fast_looking_at, newline_cache_on_off)
1187 (search_command, search_buffer, simple_search, boyer_moore)
1188 (Freplace_match): Replace B_ with BVAR.
1189 * process.c (get_process, list_processes_1, Fstart_process)
1190 (Fmake_serial_process, Fmake_network_process)
1191 (read_process_output, send_process, exec_sentinel)
1192 (status_notify, setup_process_coding_systems): Replace B_ with
1193 BVAR.
1194 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1195 (strout, print_string, temp_output_buffer_setup, print_object):
1196 Replace B_ with BVAR.
1197 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
1198 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1199 Replace B_ with BVAR.
1200 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1201 (set_marker_both, set_marker_restricted_both, unchain_marker):
1202 Replace B_ with BVAR.
1203 * lread.c (readchar, unreadchar, openp, readevalloop)
1204 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1205 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1206 * keymap.c (Flocal_key_binding, Fuse_local_map)
1207 (Fcurrent_local_map, push_key_description)
1208 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1209 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1210 (read_key_sequence): Replace B_ with BVAR.
1211 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1212 * intervals.c (set_point_both, get_local_map): Replace B_ with
1213 BVAR.
1214 * insdel.c (check_markers, insert_char, insert_1_both)
1215 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1216 (adjust_after_replace, replace_range, del_range_2)
1217 (modify_region, prepare_to_modify_buffer)
1218 (Fcombine_after_change_execute): Replace B_ with BVAR.
1219 * indent.c (buffer_display_table, recompute_width_table)
1220 (width_run_cache_on_off, current_column, scan_for_column)
1221 (Findent_to, position_indentation, compute_motion, vmotion):
1222 Replace B_ with BVAR.
1223 * fringe.c (get_logical_cursor_bitmap)
1224 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1225 with BVAR.
1226 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1227 * font.c (font_at): Replace B_ with BVAR.
1228 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1229 Replace B_ with BVAR.
1230 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1231 (unlock_buffer): Replace B_ with BVAR.
1232 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1233 (Ffile_regular_p, Ffile_selinux_context)
1234 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1235 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1236 (Finsert_file_contents, choose_write_coding_system)
1237 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1238 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1239 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1240 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1241 (save_excursion_restore, Fprevious_char, Fchar_before)
1242 (general_insert_function, Finsert_char, Finsert_byte)
1243 (make_buffer_string_both, Finsert_buffer_substring)
1244 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1245 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1246 (Ftranslate_region_internal, save_restriction_restore)
1247 (Fchar_equal): Replace B_ with BVAR.
1248 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1249 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1250 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1251 * dired.c (directory_files_internal): Replace B_ with BVAR.
1252 * data.c (swap_in_symval_forwarding, set_internal)
1253 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1254 Replace B_ with BVAR.
1255 * composite.c (fill_gstring_header)
1256 (composition_compute_stop_pos, composition_adjust_point)
1257 (Ffind_composition_internal): Replace B_ with BVAR.
1258 * coding.c (decode_coding, encode_coding)
1259 (make_conversion_work_buffer, decode_coding_gap)
1260 (decode_coding_object, encode_coding_object)
1261 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1262 (Funencodable_char_position, Fcheck_coding_systems_region):
1263 Replace B_ with BVAR.
1264 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1265 with BVAR.
1266 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1267 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1268 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1269 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1270 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1271 * category.c (check_category_table, Fcategory_table)
1272 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1273 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1274 BVAR.
1275 * casefiddle.c (casify_object, casify_region): Replace B_ with
1276 BVAR.
1277 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1278 with BVAR.
1279 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1280 BVAR.
1281 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1282 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1283 with BVAR.
1284 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1285 (get_truename_buffer, Fget_buffer_create)
1286 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1287 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1288 (Fbuffer_local_value, buffer_lisp_local_variables)
1289 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1290 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1291 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1292 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1293 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1294 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1295 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1296 (record_overlay_string, overlay_strings, init_buffer_once)
1297 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1298
1299 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1300
1301 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1302 window is changed inside calls to do_pending_window_change.
1303 (Bug#8020)
1304
1305 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1306
1307 Remove no-longer needed getloadavg symbols.
1308 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1309 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1310 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1311 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1312 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1313 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1314 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1315 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1316 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1317 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1318 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1319 (LDAV_SYMBOL): Remove.
1320 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1321 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1322
1323 Import getloadavg module from gnulib.
1324 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1325 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1326 now does this.
1327 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1328 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1329 * config.in: Regenerate.
1330
1331 2011-02-15 Eli Zaretskii <eliz@gnu.org>
1332
1333 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1334
1335 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1336
1337 * print.c (float_to_string): Ensure that a decimal point is
1338 printed if using dtoastr (Bug#8033).
1339
1340 2011-02-14 Eli Zaretskii <eliz@gnu.org>
1341
1342 * msdos.c (IT_frame_up_to_date):
1343 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1344
1345 * dired.c (directory_files_internal):
1346 * fileio.c (Finsert_file_contents):
1347 * insdel.c (prepare_to_modify_buffer):
1348 * xdisp.c (pos_visible_p):
1349 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1350 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1351 Use B_ for the MS-Windows build.
1352
1353 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1354
1355 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1356 resource that specifies helvetica for menus and dialogs.
1357
1358 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1359 (apply_systemfont_to_menu): Set resources *menubar*font and
1360 *popup*font. Remove defflt.
1361 (set_frame_menubar, create_and_show_popup_menu):
1362 Call apply_systemfont_to_menu before lw_create_widget.
1363
1364 2011-02-14 Tom Tromey <tromey@redhat.com>
1365
1366 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1367
1368 * keyboard.h: Remove obsolete comment.
1369
1370 2011-02-14 Tom Tromey <tromey@parfait>
1371
1372 * composite.c (fill_gstring_header)
1373 (composition_compute_stop_pos, composition_adjust_point)
1374 (Ffind_composition_internal): Use B_.
1375 * intervals.c (set_point_both, get_local_map): Use B_.
1376 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1377 * process.c (get_process, list_processes_1, Fstart_process)
1378 (Fmake_serial_process, Fmake_network_process)
1379 (read_process_output, send_process, exec_sentinel)
1380 (status_notify, setup_process_coding_systems): Use B_.
1381 * bytecode.c (Fbyte_code): Use B_.
1382 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1383 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1384 (skip_syntaxes, scan_lists): Use B_.
1385 * lread.c (readchar, unreadchar, openp, readevalloop)
1386 (Feval_buffer, Feval_region): Use B_.
1387 * print.c (printchar, strout, print_string, PRINTDECLARE)
1388 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1389 (print_object): Use B_.
1390 * font.c (font_at): Use B_.
1391 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1392 Use B_.
1393 * callint.c (check_mark, Fcall_interactively): Use B_.
1394 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1395 (save_excursion_restore, Fprevious_char, Fchar_before)
1396 (general_insert_function, Finsert_char, Finsert_byte)
1397 (make_buffer_string_both, Finsert_buffer_substring)
1398 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1399 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1400 (Ftranslate_region_internal, save_restriction_restore)
1401 (Fchar_equal): Use B_.
1402 * data.c (swap_in_symval_forwarding, set_internal)
1403 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1404 Use B_.
1405 * undo.c (record_point, record_insert, record_delete)
1406 (record_marker_adjustment, record_first_change)
1407 (record_property_change, Fundo_boundary, truncate_undo_list)
1408 (Fprimitive_undo): Use B_.
1409 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1410 (string_match_1, fast_looking_at, newline_cache_on_off)
1411 (search_command, search_buffer, simple_search, boyer_moore)
1412 (Freplace_match): Use B_.
1413 * indent.c (buffer_display_table, recompute_width_table)
1414 (width_run_cache_on_off, current_column, scan_for_column)
1415 (Findent_to, position_indentation, compute_motion, vmotion):
1416 Use B_.
1417 * casefiddle.c (casify_object, casify_region): Use B_.
1418 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1419 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1420 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1421 (Ffile_regular_p, Ffile_selinux_context)
1422 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1423 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1424 (Finsert_file_contents, choose_write_coding_system)
1425 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1426 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1427 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1428 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1429 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1430 (set_marker_both, set_marker_restricted_both, unchain_marker):
1431 Use B_.
1432 * insdel.c (check_markers, insert_char, insert_1_both)
1433 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1434 (adjust_after_replace, replace_range, del_range_2)
1435 (modify_region, prepare_to_modify_buffer)
1436 (Fcombine_after_change_execute): Use B_.
1437 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1438 (unlock_buffer): Use B_.
1439 * keymap.c (Flocal_key_binding, Fuse_local_map)
1440 (Fcurrent_local_map, push_key_description)
1441 (Fdescribe_buffer_bindings): Use B_.
1442 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1443 (read_key_sequence): Use B_.
1444 * fringe.c (get_logical_cursor_bitmap)
1445 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1446 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1447 * xfaces.c (compute_char_face): Use B_.
1448 * character.c (chars_in_text, Fget_byte): Use B_.
1449 * category.c (check_category_table, Fcategory_table)
1450 (Fset_category_table, char_category_set): Use B_.
1451 * coding.c (decode_coding, encode_coding)
1452 (make_conversion_work_buffer, decode_coding_gap)
1453 (decode_coding_object, encode_coding_object)
1454 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1455 (Funencodable_char_position, Fcheck_coding_systems_region):
1456 Use B_.
1457 * charset.c (Ffind_charset_region): Use B_.
1458 * window.c (window_display_table, unshow_buffer, window_loop)
1459 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1460 (select_window, Fforce_window_update, temp_output_buffer_show)
1461 (Fset_window_configuration, save_window_save): Use B_.
1462 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1463 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1464 (with_echo_area_buffer, setup_echo_area_for_printing)
1465 (set_message_1, update_menu_bar, update_tool_bar)
1466 (text_outside_line_unchanged_p, redisplay_internal)
1467 (try_scrolling, try_cursor_movement, redisplay_window)
1468 (try_window_reusing_current_matrix, row_containing_pos)
1469 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1470 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1471 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1472 (get_window_cursor_type, note_mouse_highlight): Use B_.
1473 * frame.c (make_frame_visible_1): Use B_.
1474 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1475 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1476 (WINDOW_WANTS_MODELINE_P): Use B_.
1477 * syntax.h (Vstandard_syntax_table): Update.
1478 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1479 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1480 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1481 * character.h (FETCH_CHAR_ADVANCE): Update.
1482 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1483 * category.h (Vstandard_category_table): Update.
1484 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1485 names.
1486 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1487 * buffer.c (swapfield_): New macro.
1488 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1489 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1490 (Fget_buffer_create, clone_per_buffer_values)
1491 (Fmake_indirect_buffer, reset_buffer)
1492 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1493 (Fbuffer_local_value, buffer_lisp_local_variables)
1494 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1495 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1496 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1497 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1498 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1499 (Fbuffer_swap_text, Fset_buffer_multibyte)
1500 (swap_out_buffer_local_variables, record_overlay_string)
1501 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1502 Use B_.
1503 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1504 (BUFFER_INTERNAL_FIELD, B_): New macro.
1505 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1506
1507 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1508
1509 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1510 is null.
1511
1512 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1513
1514 * callproc.c (Fcall_process):
1515 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1516 comment.
1517
1518 2011-02-12 Martin Rudalics <rudalics@gmx.at>
1519
1520 * window.c (select_window): Check inhibit_point_swap argument when
1521 deciding whether to return immediately.
1522
1523 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
1524
1525 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1526 zero (Bug#7348).
1527
1528 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
1529
1530 * config.in (TERMINFO): New definition.
1531
1532 * s/netbsd.h: Use it to choose between terminfo and termcap
1533 (Bug#7642).
1534
1535 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1536
1537 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1538 The difference doesn't matter here, in practice, and sizeof is
1539 more portable to non-GCC compilers. Also, this makes the code
1540 match the already-existing comment.
1541
1542 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1543
1544 * process.c (create_process): Reset SIGPIPE handler in the child.
1545 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1546
1547 2011-02-12 Eli Zaretskii <eliz@gnu.org>
1548
1549 * xdisp.c <this_line_min_pos>: New variable.
1550 (move_it_in_display_line_to): Record in this_line_min_pos the
1551 smallest position iterated across.
1552 (display_line): Use this_line_min_pos to record the smallest
1553 position in the line even if it is not displayed due to
1554 hscrolling. (Bug#7939)
1555
1556 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1557
1558 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1559 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1560 (struct md5_ctx): Use it.
1561
1562 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1563 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1564 defined.
1565 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1566 FC_HINT_STYLE is supported.
1567
1568 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1569
1570 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1571 Make sure we don't do x_catch_errors twice.
1572
1573 2011-02-10 Glenn Morris <rgm@gnu.org>
1574
1575 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1576
1577 2011-02-09 Eli Zaretskii <eliz@gnu.org>
1578
1579 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1580 New macros.
1581 (globals.h, gl-stamp): New targets.
1582 (clean): Clean gl-stamp and globals.h.
1583
1584 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1585
1586 * Makefile.in (gl-stamp): Create globals.h here.
1587 (globals.h): Don't do it here.
1588 (mostlyclean): Clean globals.h and gl-stamp.
1589
1590 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1591
1592 * Makefile.in ($(otherobj)): Depend on globals.h.
1593 Otherwise 'make -j10' failed on my host, because the build lacked
1594 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1595
1596 2011-02-08 Tom Tromey <tromey@redhat.com>
1597
1598 * Makefile.in (NS_OBJC_OBJ): New variable.
1599 (base_obj): Rename from 'obj'.
1600 (obj): New variable.
1601 (globals.h, gl-stamp, $(obj)): New targets.
1602 (GLOBAL_SOURCES): New variable.
1603 * globals.h: Remove.
1604 * nsselect.m (Vselection_alist): Define. Reverts part of
1605 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1606 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1607 variable.
1608 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1609
1610 2011-02-08 Kenichi Handa <handa@m17n.org>
1611
1612 * font.c (Ffont_get): Do not cache :otf value.
1613
1614 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1615
1616 conform to C89 pointer rules
1617
1618 * dired.c (scmp, file_name_completion):
1619 Change types between char * and unsigned char *, to satisfy C89
1620 rules about pointer type compatibility.
1621 * casefiddle.c (casify_object, casify_region): Likewise.
1622 * search.c (Freplace_match, Fregexp_quote): Likewise.
1623 * alloc.c (make_string, make_specified_string, make_pure_string):
1624 Likewise.
1625 * data.c (Fstring_to_number): Likewise.
1626 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1627 (print_object): Likewise.
1628 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1629 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1630 (Fformat): Likewise.
1631 * callint.c (Fcall_interactively): Likewise.
1632 * fns.c (string_make_multibyte, string_to_multibyte):
1633 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1634 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1635 Likewise.
1636 * lread.c (read1, hash_string): Likewise.
1637 * process.c (read_process_output, send_process, Fprocess_send_region):
1638 Likewise.
1639 * callproc.c (Fcall_process): Likewise.
1640 * doprnt.c (doprnt): Likewise.
1641 * indent.c (compute_motion): Likewise.
1642 * xfont.c (xfont_decode_coding_xlfd): Likewise.
1643 * ralloc.c (resize_bloc): Likewise.
1644 * image.c (tiff_load): Likewise.
1645 * xml.c (make_dom, parse_region): Likewise.
1646 * character.c (strwidth): Make its argument const char *, not const
1647 unsigned char *, since more callers prefer it that way. All callers
1648 changed.
1649
1650 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1651
1652 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1653 Emacs assumes two's complement elsewhere, but the assumption is
1654 easy to remove here, and this suppresses a warning with Sun C 5.8.
1655
1656 conform to C89 pointer rules
1657
1658 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1659 (same_x_server, x_term_init):
1660 Change types between char * and unsigned char *, to satisfy C89
1661 rules about pointer type compatibility.
1662 * doc.c (get_doc_string, Fsnarf_documentation):
1663 (Fsubstitute_command_keys): Likewise.
1664 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1665 * bitmaps/gray.xbm (gray_bits): Likewise.
1666 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
1667 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1668 Likewise.
1669 * keymap.c (Ftext_char_description): Likewise.
1670 * minibuf.c (Fread_buffer): Likewise.
1671 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1672 (DRIVE_LETTER) [defined DOS_NT]:
1673 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1674 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1675 (search_embedded_absfilename, Fsubstitute_in_file_name):
1676 (barf_or_query_if_file_exists, Fmake_directory_internal):
1677 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1678 (Finsert_file_contents, Fwrite_region):
1679 Likewise.
1680 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1681 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1682 Likewise. This changes these functions' signatures, which is
1683 more convenient since most callers use char *. All remaining
1684 callers changed.
1685 * editfns.c (general_insert_function): Change signature to
1686 match changes to insert functions' signatures.
1687 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1688 Use explicit cast when converting between void * and function pointer
1689 types, as C89 requires this.
1690
1691 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1692
1693 don't ignore chdir failure
1694 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1695 failure and exit.
1696 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1697 remaining unchecked chdir calls in this function; some DOS/NT
1698 expert needs to fix them.
1699 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1700 in this function; some NextStep expert needs to fix them.
1701
1702 2011-02-05 Glenn Morris <rgm@gnu.org>
1703
1704 * xfaces.c (Finternal_set_lisp_face_attribute):
1705 Try to clarify some error messages. (Bug#2659)
1706
1707 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
1708
1709 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1710 current_column cache (bug#7946).
1711
1712 2011-02-05 Kenichi Handa <handa@m17n.org>
1713
1714 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1715
1716 * xftfont.c (xftfont_open): Likewise.
1717
1718 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
1719
1720 * window.c (Fselect_window): Add missing return value.
1721
1722 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1723
1724 xstrcasecmp: conform to C89 pointer rules
1725 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1726 to const char *, since they're usually low-level C strings, and
1727 this stays compatible with C89 pointer rules. All callers changed.
1728
1729 * charset.c: Conform to C89 pointer rules.
1730 (define_charset_internal): Switch between char * and unsigned char *.
1731
1732 * xmenu.c: Conform to C89 const rules.
1733 (xmenu_show, xdialog_show): Declare local var as char *, not
1734 const char *, to stay compatible with C89 const rules.
1735
1736 * xdisp.c: Conform to C89 pointer rules.
1737 (store_mode_line_noprop, display_string, reseat_to_string):
1738 (c_string_pos, number_of_chars, message_dolog):
1739 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1740 (display_mode_element, display_string):
1741 Switch between char * and unsigned char * to stay compatible wth
1742 C89 pointer rules.
1743
1744 * regex.c: Conform to C89 pointer rules.
1745 (re_wctype): Add cast, as C89 does not allow assigning between
1746 char * and unsigned char *.
1747 (regex_compile): Likewise.
1748
1749 sync from gnulib to remove HAVE_STDBOOL_H
1750 * config.in: Regenerate.
1751
1752 2011-02-04 Eli Zaretskii <eliz@gnu.org>
1753
1754 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1755 Replace all uses of lisp.h with $(LISP_H), and all uses of
1756 process.h with $(PROCESS_H).
1757 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
1758 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
1759
1760 * deps.mk: Update for recent changes: gnutls support, gnulib
1761 imports, addition of globals.h.
1762
1763 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
1764 ../lib/ignore-value.h.
1765
1766 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
1767
1768 allow C code to suppress warnings about ignored return values
1769
1770 We need to go through the code and for each such warning, either
1771 fix the code to pay attention to the returned value, or tell GCC
1772 that we really do want to ignore the returned value. Here is one
1773 example of how to do the latter.
1774 * sysdep.c: Include <ignore-value.h>.
1775 (sys_subshell): Suppress an undesirable warning about not checking
1776 the returned value of 'write', as there's nothing useful one can
1777 do with that returned value.
1778
1779 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
1780
1781 * xterm.c (x_connection_closed): Remove all calls that calls
1782 XSync (Bug#7949).
1783
1784 2011-02-01 Eli Zaretskii <eliz@gnu.org>
1785
1786 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
1787 TIFFClientOpen.
1788
1789 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
1790
1791 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
1792 (x_session_check_input): Change args and return type so it can be used
1793 as argument to add_read_fd. Make static. Remove call to select.
1794 Call kbd_buffer_store_event for emacs_event.
1795 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
1796 (ice_conn_watch_CB): Call add_read_fd.
1797
1798 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
1799 x_session_check_input.
1800 (x_session_initialized): Remove definition.
1801 (x_initialize): Remove setting of x_session_initialized.
1802
1803 * xterm.h (x_session_check_input): Remove declaration.
1804
1805 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
1806
1807 format-time-string now supports subsecond time stamp resolution
1808 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
1809 for consistency with its new argument and with gnulib nstrftime.
1810 All callers changed. New argument NS.
1811 (Fformat_time_string): Check that the time argument's microseconds
1812 component, if any, is in range; this avoids integer overflow and
1813 also nstrftime needs this. Document %N.
1814
1815 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
1816
1817 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
1818 of int. All uses adjusted.
1819 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
1820 (svg_load_image): Remove casts.
1821
1822 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
1823
1824 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
1825 function definitions for compiling with libpng-1.5.
1826 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
1827 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
1828 (Bug#7908).
1829
1830 2011-01-31 Eli Zaretskii <eliz@gnu.org>
1831
1832 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
1833
1834 * makefile.w32-in (OBJ2): Remove strftime.$(O).
1835 ($(BLD)/strftime.$(O)): Remove prerequisites.
1836
1837 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1838
1839 src/emacs.c now gets version number from configure.in
1840 * emacs.c (emacs_version): Set to VERSION so that it
1841 is determined automatically from ../configure.in.
1842
1843 2011-01-31 Jim Meyering <meyering@redhat.com>
1844
1845 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
1846 Use xmalloc rather than malloc.
1847
1848 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
1849
1850 strftime: import from gnulib
1851 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
1852 * deps.mk (strftime.o): Remove.
1853 * editfns.c: Include <strftime.h>, supplied by gnulib.
1854 (emacs_strftimeu): Remove decl.
1855 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
1856 emacs_strftimeu.
1857 * config.in: Regenerate.
1858 * strftime.c: Remove; we now use strftime from gnulib.
1859
1860 Use SSDATA when the context wants char *.
1861 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
1862 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
1863 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
1864 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
1865 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
1866 Use SSDATA (not SDATA) when the context of the expression wants
1867 char * (not unsigned char *).
1868
1869 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
1870
1871 * .gdbinit: Read global lisp variables as globals.f_V*.
1872
1873 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
1874
1875 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
1876 All uses changed.
1877 (PROP_SAVE): Likewise.
1878
1879 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
1880
1881 * keyboard.c (make_lispy_position): Fix typo in last change
1882 (Bug#7935).
1883
1884 2011-01-29 Eli Zaretskii <eliz@gnu.org>
1885
1886 * s/ms-w32.h (HAVE_MKTIME): Remove.
1887
1888 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1889 (GNULIB): New variable.
1890 (LIBS): Add $(GNULIB).
1891 $(TEMACS): Depend on $(GNULIB).
1892 <top-level>: Fix font-lock disrupted by a lone `"'.
1893
1894 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
1895
1896 * nsselect.m (ns_string_from_pasteboard): Get length of string
1897 and use make_string instead of build_string (Bug#7934).
1898 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
1899 instead of stringWithUTF8String (Bug#7934).
1900
1901 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
1902
1903 * nsfont.m (nsfont_open): Ensure that fonts with inexact
1904 descenders would not become one pixel too tall (Bug#7887).
1905
1906 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
1907
1908 * keyboard.c (make_lispy_position): For clicks on right fringe or
1909 margin, compute text position using the X coordinate relative to
1910 the left of the text area (Bug#7839).
1911
1912 2011-01-28 Kenichi Handa <handa@m17n.org>
1913
1914 * ftfont.c (ftfont_spec_pattern): Check each extra property
1915 value.
1916
1917 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1918
1919 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
1920
1921 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
1922
1923 * font.c (font_parse_fcname): Undefine a temporary macro.
1924
1925 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
1926
1927 Let the debugger continue to the normal handler (bug#7825).
1928 * eval.c (maybe_call_debugger): Declare before new use.
1929 (find_handler_clause): Don't call debugger any more.
1930 Ignore Vstack_trace_on_error.
1931 Use XCAR/XCDR.
1932 (syms_of_eval): Remove Vstack_trace_on_error.
1933 (Fsignal): Only modify handlerlist when we know we need to do it.
1934 Call the debugger when necessary.
1935 * globals.h (Vstack_trace_on_error): Remove.
1936
1937 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
1938
1939 * font.c (font_parse_fcname): Rewrite GTK font name parser.
1940
1941 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
1942
1943 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
1944 the buffer's point-max (bug#7876).
1945
1946 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
1947
1948 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
1949 Remove unused case (Bug#6811).
1950
1951 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
1952
1953 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
1954 setFrameTopLeftPoint is constrained.
1955
1956 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1957
1958 Check return values of some library calls.
1959 * emacs.c (main): Check dup result.
1960 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1961 (frame_name_fnn_p): Check strtol result.
1962
1963 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
1964 when calling XpmCreatePixmapFromData.
1965
1966 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1967 * lisp.h (SSDATA): New macro.
1968 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1969 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1970 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1971 * xsmfns.c (SSDATA): Likewise.
1972
1973 2011-01-22 Martin Rudalics <rudalics@gmx.at>
1974
1975 * window.c (select_window): New function.
1976 (Fselect_window): Call it.
1977 (inhibit_point_swap): Variable deleted.
1978 (Fset_window_configuration): Call select_window directly.
1979
1980 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1981
1982 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1983
1984 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1985
1986 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1987 screen, not the window screen.
1988 (x_set_window_size): Remove constraints.
1989 Calculate origin.y only if zooming is 0 and without referring to a
1990 screen.
1991 (windowWillResize): Don't modify frameSize.
1992 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
1993 (initFrameFromEmacs): Initialize ns_userRect.
1994 (windowShouldZoom): Set zooming to one. Remove all other code.
1995 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
1996 Zero it after restore.
1997 (constrainFrameRect): New method for EmacsWindow.
1998 (mouseDragged): Always post NSWindowDidResizeNotification after call to
1999 windowWillResize.
2000
2001 * nsterm.h (ns_output): Add dont_constrain and zooming.
2002 (EmacsView): Add ns_userRect.
2003
2004 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2005 if ns_alternate_modifier is none.
2006
2007 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2008
2009 * unexmacosx.c: Add comment about include order.
2010
2011 2011-01-20 Glenn Morris <rgm@gnu.org>
2012
2013 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2014 Give it a doc string.
2015 * globals.h: Add Vread_expression_history.
2016
2017 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2018 Give it a doc string.
2019 * globals.h: Add Vkbd_macro_termination_hook.
2020
2021 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
2022
2023 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2024
2025 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2026
2027 Fix X11 compilation failure.
2028 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2029 * xselect.c (Vselection_alist): Remove declaration, moving its
2030 documentation to globals.h. This fixes a compilation failure
2031 induced by the earlier change to globals.h today.
2032
2033 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2034
2035 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2036
2037 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2038 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2039 (ns_input_spi_name, ns_input_spi_arg)
2040 (ns_alternate_modifier, ns_right_alternate_modifier)
2041 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2042 (ns_right_control_modifier, ns_function_modifier)
2043 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2044 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2045 (x_underline_at_descent_line): Remove declaration.
2046 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2047
2048 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
2049 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2050 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2051
2052 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2053 Remove declaration.
2054
2055 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2056 globals.h.
2057 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2058
2059 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2060 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2061 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2062
2063 * globals.h (struct emacs_globals): Add f_ns_input_file,
2064 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2065 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2066 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2067 f_ns_right_alternate_modifier, f_ns_command_modifier,
2068 f_ns_right_command_modifier, f_ns_control_modifier,
2069 f_ns_right_control_modifier, f_ns_function_modifier,
2070 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2071 f_Vns_version_string, f_Vns_sent_selection_hooks,
2072 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2073 and corresponding defines.
2074
2075 2011-01-19 Sam Steingold <sds@gnu.org>
2076
2077 * w32.c (check_windows_init_file): Remove declarations of
2078 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
2079 * w32fns.c: Fix an error introduced by the previous patch.
2080
2081 2011-01-19 Tom Tromey <tromey@redhat.com>
2082
2083 * window.c: Fix error introduced by previous patch.
2084
2085 2011-01-18 Tom Tromey <tromey@parfait>
2086
2087 * globals.h: New file.
2088 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2089 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2090 (Vwindow_system_version): Remove declaration.
2091 * w32term.h (Vw32_enable_palette)
2092 (Vx_pixel_size_width_font_regexp): Remove declaration.
2093 * w32menu.c (Voverriding_local_map)
2094 (Voverriding_local_map_menu_flag): Remove declaration.
2095 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2096 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2097 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2098 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2099 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2100 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2101 (w32_use_full_screen_buffer): Remove declaration.
2102 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2103 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2104 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2105 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2106 (no_redraw_on_reenter, visible_bell): Remove declaration.
2107 * sysdep.c (Vsystem_name): Remove declaration.
2108 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2109 * menu.h (Vmenu_updating_frame): Remove declaration.
2110 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2111 Remove declaration.
2112 * lisp.h (Vafter_init_time, Vafter_load_alist)
2113 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2114 (Vcompletion_regexp_list, Vcurrent_load_list)
2115 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2116 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2117 (Vexec_directory, Vexec_path, Vexec_suffixes)
2118 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2119 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2120 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2121 (Vinstallation_directory, Vinvocation_directory)
2122 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2123 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2124 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2125 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2126 (Vscalable_fonts_allowed, Vselect_active_regions)
2127 (Vshell_file_name, Vstandard_input, Vstandard_output)
2128 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2129 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2130 (Vuser_login_name, Vwindow_scroll_functions)
2131 (Vwindow_system_version, Vx_no_window_manager)
2132 (Vx_resource_class, Vx_resource_name, baud_rate)
2133 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2134 (history_delete_duplicates, inhibit_x_resources)
2135 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2136 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
2137 (use_dialog_box, use_file_dialog): Remove declaration.
2138 Include globals.h.
2139 * keymap.h (Voverriding_local_map)
2140 (Voverriding_local_map_menu_flag, meta_prefix_char):
2141 Remove declaration.
2142 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2143 (Vinput_method_function, Vkey_translation_map)
2144 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2145 (do_mouse_tracking, extra_keyboard_modifiers)
2146 (num_nonmacro_input_events): Remove declaration.
2147 * intervals.h (Vchar_property_alias_alist)
2148 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2149 (Vtext_property_default_nonsticky): Remove declaration.
2150 * gtkutil.h (x_gtk_file_dialog_help_text)
2151 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2152 (x_gtk_whole_detached_tool_bar): Remove declaration.
2153 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2154 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2155 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2156 (focus_follows_mouse): Remove declaration.
2157 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2158 (Vignore_relative_composition, Votf_script_alist)
2159 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2160 Remove declaration.
2161 * font.h (Vfont_log): Remove declaration.
2162 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2163 (Vdos_windows_version, dos_codepage, dos_country_code)
2164 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
2165 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2166 Remove declaration.
2167 * disptab.h (Vglyph_table, Vstandard_display_table):
2168 Remove declaration.
2169 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2170 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2171 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2172 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2173 (inverse_video, mode_line_in_non_selected_windows)
2174 (tool_bar_button_relief, tool_bar_max_label_size)
2175 (underline_minimum_offset)
2176 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2177 Remove declaration.
2178 * composite.h (Vauto_composition_function)
2179 (Vcomposition_function_table): Remove declaration.
2180 * commands.h (Vexecuting_kbd_macro)
2181 (Vminibuffer_local_completion_map)
2182 (Vminibuffer_local_filename_completion_map)
2183 (Vminibuffer_local_filename_must_match_map)
2184 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2185 (Vminibuffer_local_ns_map, Vthis_command)
2186 (Vunread_command_events, cursor_in_echo_area)
2187 (last_command_event, last_nonmenu_event, unread_command_char):
2188 Remove declaration.
2189 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2190 (Vdefault_file_name_coding_system)
2191 (Vdefault_process_coding_system, Vfile_name_coding_system)
2192 (Vlast_coding_system_used, Vlocale_coding_system)
2193 (Vselect_safe_coding_system_function)
2194 (Vtranslation_table_for_input, coding_system_require_warning)
2195 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2196 (eol_mnemonic_unix, inherit_process_coding_system):
2197 Remove declaration.
2198 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2199 Remove declaration.
2200 * character.h (Vauto_fill_chars, Vchar_direction_table)
2201 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2202 (Vscript_representative_chars, Vtranslation_table_vector)
2203 (Vunicode_category_table): Remove declaration.
2204 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2205 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2206 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2207 (inhibit_modification_hooks): Remove declaration.
2208 * xterm.c (syms_of_xterm): Update.
2209 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2210 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2211 (x_mouse_click_focus_ignore_position)
2212 (x_underline_at_descent_line)
2213 (x_use_underline_position_properties): Remove.
2214 * xsmfns.c (syms_of_xsmfns): Update.
2215 (Vx_session_id, Vx_session_previous_id): Remove.
2216 * xsettings.c (syms_of_xsettings): Update.
2217 (Vxft_settings, use_system_font): Remove.
2218 * xselect.c (syms_of_xselect): Update.
2219 (Vselection_converter_alist, Vx_lost_selection_functions)
2220 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2221 * xfns.c (syms_of_xfns): Update.
2222 (Vgtk_version_string, Vmotif_version_string)
2223 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2224 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2225 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2226 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2227 (Vx_sensitive_text_pointer_shape)
2228 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2229 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2230 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2231 Remove.
2232 * xfaces.c (syms_of_xfaces): Update.
2233 (Vface_default_stipple, Vface_font_rescale_alist)
2234 (Vface_ignored_fonts, Vface_new_frame_defaults)
2235 (Vface_remapping_alist, Vfont_list_limit)
2236 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2237 * xdisp.c (syms_of_xdisp): Update.
2238 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2239 (Vdisplay_pixels_per_inch, Vfontification_functions)
2240 (Vframe_title_format, Vglobal_mode_string)
2241 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2242 (Vicon_title_format, Vinhibit_redisplay)
2243 (Vline_number_display_limit, Vline_prefix)
2244 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2245 (Vmenu_updating_frame, Vmessage_log_max)
2246 (Vmouse_autoselect_window, Vnobreak_char_display)
2247 (Voverlay_arrow_position, Voverlay_arrow_string)
2248 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2249 (Vresize_mini_windows, Vshow_trailing_whitespace)
2250 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2251 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2252 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2253 (Vwindow_text_change_functions, Vwrap_prefix)
2254 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2255 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2256 (highlight_nonselected_windows, hscroll_margin)
2257 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2258 (inhibit_menubar_update, inhibit_try_cursor_movement)
2259 (inhibit_try_window_id, inhibit_try_window_reusing)
2260 (line_number_display_limit_width)
2261 (make_cursor_line_fully_visible_p, message_truncate_lines)
2262 (mode_line_inverse_video, multiple_frames, overline_margin)
2263 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2264 (tool_bar_max_label_size, underline_minimum_offset)
2265 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2266 Remove.
2267 * window.c (syms_of_window): Update.
2268 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2269 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2270 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2271 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2272 (mode_line_in_non_selected_windows, next_screen_context_lines)
2273 (window_min_height, window_min_width): Remove.
2274 (scroll_margin): Remove declaration.
2275 * w32term.c (syms_of_w32term): Update.
2276 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2277 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2278 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2279 (w32_use_visible_system_caret, x_underline_at_descent_line)
2280 (x_use_underline_position_properties): Remove.
2281 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2282 Remove declaration.
2283 * w32select.c (syms_of_w32select): Update.
2284 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2285 * w32proc.c (syms_of_ntproc): Update.
2286 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2287 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2288 (Vw32_start_process_inherit_error_mode)
2289 (Vw32_start_process_share_console)
2290 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2291 (Vsystem_name): Remove declaration.
2292 * w32font.c (syms_of_w32font): Update.
2293 (Vw32_charset_info_alist): Remove.
2294 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2295 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2296 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2297 (Vw32_enable_palette, Vw32_lwindow_modifier)
2298 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2299 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2300 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2301 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2302 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2303 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2304 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2305 (Vx_sensitive_text_pointer_shape)
2306 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2307 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2308 (w32_mouse_move_interval)
2309 (w32_pass_extra_mouse_buttons_to_system)
2310 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2311 (w32_strict_fontnames, w32_strict_painting): Remove.
2312 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2313 (Vw32_recognize_altgr, Vwindow_system_version)
2314 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2315 Remove declaration.
2316 * w32console.c (syms_of_ntterm): Update.
2317 (w32_use_full_screen_buffer): Remove.
2318 (Vtty_defined_color_alist): Remove declaration.
2319 * w16select.c (syms_of_win16select): Update.
2320 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2321 * undo.c (syms_of_undo): Update.
2322 (Vundo_outer_limit, Vundo_outer_limit_function)
2323 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2324 Remove.
2325 * textprop.c (syms_of_textprop): Update.
2326 (Vchar_property_alias_alist, Vdefault_text_properties)
2327 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2328 Remove.
2329 * terminal.c (syms_of_terminal): Update.
2330 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2331 * term.c (syms_of_term): Update.
2332 (Vresume_tty_functions, Vsuspend_tty_functions)
2333 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2334 Remove.
2335 * syntax.c (syms_of_syntax): Update.
2336 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2337 (open_paren_in_column_0_is_defun_start)
2338 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2339 (words_include_escapes): Remove.
2340 * search.c (syms_of_search): Update.
2341 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2342 * process.c (syms_of_process): Update.
2343 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2344 (delete_exited_processes): Remove.
2345 * print.c (syms_of_print): Update.
2346 (Vfloat_output_format, Vprint_charset_text_property)
2347 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2348 (Vprint_length, Vprint_level, Vprint_number_table)
2349 (Vstandard_output, print_escape_multibyte)
2350 (print_escape_newlines, print_escape_nonascii, print_quoted):
2351 Remove.
2352 * msdos.c (syms_of_msdos): Update.
2353 (Vdos_unsupported_char_glyph): Remove.
2354 (unibyte_display_via_language_environment): Remove declaration.
2355 * minibuf.c (syms_of_minibuf): Update.
2356 (Vcompletion_regexp_list, Vhistory_add_new_input)
2357 (Vhistory_length, Vminibuffer_completing_file_name)
2358 (Vminibuffer_completion_confirm)
2359 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2360 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2361 (Vminibuffer_history_position, Vminibuffer_history_variable)
2362 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2363 (Vread_buffer_function, Vread_expression_map)
2364 (completion_ignore_case, enable_recursive_minibuffers)
2365 (history_delete_duplicates, minibuffer_allow_text_properties)
2366 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2367 Remove.
2368 * marker.c (syms_of_marker): Update.
2369 (byte_debug_flag): Remove.
2370 * macros.c (syms_of_macros): Update.
2371 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2372 * lread.c (syms_of_lread): Update.
2373 (Vafter_load_alist, Vbyte_boolean_vars)
2374 (Vbytecomp_version_regexp, Vcurrent_load_list)
2375 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2376 (Vload_history, Vload_path, Vload_read_function)
2377 (Vload_source_file_function, Vload_suffixes, Vobarray)
2378 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2379 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2380 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2381 (force_load_messages, load_convert_to_unibyte)
2382 (load_dangerous_libraries, load_force_doc_strings)
2383 (load_in_progress): Remove.
2384 * keymap.c (syms_of_keymap): Update.
2385 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2386 (Vminibuffer_local_completion_map)
2387 (Vminibuffer_local_filename_completion_map)
2388 (Vminibuffer_local_filename_must_match_map)
2389 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2390 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2391 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2392 Remove.
2393 * keyboard.c (syms_of_keyboard): Update.
2394 (Vauto_save_timeout, Vcommand_error_function)
2395 (Vcommand_hook_internal, Vdeactivate_mark)
2396 (Vdeferred_action_function, Vdeferred_action_list)
2397 (Vdisable_point_adjustment, Vdouble_click_time)
2398 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2399 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2400 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2401 (Vinput_method_function, Vinput_method_previous_message)
2402 (Vkey_translation_map, Vlast_event_frame)
2403 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2404 (Vminibuffer_message_timeout, Voverriding_local_map)
2405 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2406 (Vpre_command_hook, Vprefix_help_command)
2407 (Vsaved_region_selection, Vselect_active_regions)
2408 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2409 (Vthis_command, Vthis_command_keys_shift_translated)
2410 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2411 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2412 (Vtty_erase_char, Vunread_command_events)
2413 (Vunread_input_method_events, Vunread_post_input_method_events)
2414 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2415 (double_click_fuzz, extra_keyboard_modifiers)
2416 (inhibit_local_menu_bar_menus, last_command_event)
2417 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2418 (menu_prompting, meta_prefix_char, num_input_keys)
2419 (num_nonmacro_input_events, polling_period, unread_command_char):
2420 Remove.
2421 * insdel.c (syms_of_insdel): Update.
2422 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2423 * indent.c (syms_of_indent): Update.
2424 (indent_tabs_mode): Remove.
2425 * image.c (syms_of_image): Update.
2426 (Vimage_cache_eviction_delay, Vimage_types)
2427 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2428 (cross_disabled_images): Remove.
2429 * fringe.c (syms_of_fringe): Update.
2430 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2431 * frame.c (syms_of_frame): Update.
2432 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2433 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2434 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2435 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2436 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2437 Remove.
2438 * fontset.c (syms_of_fontset): Update.
2439 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2440 (Vfontset_alias_alist, Vignore_relative_composition)
2441 (Votf_script_alist, Vuse_default_ascent)
2442 (Vvertical_centering_font_regexp): Remove.
2443 * font.c (syms_of_font): Update.
2444 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2445 (Vfont_weight_table, Vfont_width_table): Remove.
2446 * fns.c (syms_of_fns): Update.
2447 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2448 * filelock.c (syms_of_filelock): Update.
2449 (Vtemporary_file_directory): Remove.
2450 * fileio.c (syms_of_fileio): Update.
2451 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2452 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2453 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2454 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2455 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2456 (Vwrite_region_annotate_functions)
2457 (Vwrite_region_annotations_so_far)
2458 (Vwrite_region_post_annotation_function)
2459 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2460 (Vw32_get_true_file_attributes): Remove declaration.
2461 * eval.c (syms_of_eval): Update.
2462 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2463 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2464 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2465 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2466 (max_lisp_eval_depth, max_specpdl_size): Remove.
2467 * emacs.c (syms_of_emacs): Update.
2468 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2469 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2470 (Vinstallation_directory, Vinvocation_directory)
2471 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2472 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2473 (Vsystem_configuration, Vsystem_configuration_options)
2474 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2475 (inhibit_x_resources, noninteractive1): Remove.
2476 * editfns.c (syms_of_editfns): Update.
2477 (Vbuffer_access_fontified_property)
2478 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2479 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2480 (Vuser_login_name, Vuser_real_login_name): Remove.
2481 * dosfns.c (syms_of_dosfns): Update.
2482 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2483 (dos_codepage, dos_country_code, dos_decimal_point)
2484 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2485 (dos_super_key, dos_timezone_offset): Remove.
2486 * doc.c (syms_of_doc): Update.
2487 (Vbuild_files, Vdoc_file_name): Remove.
2488 * dispnew.c (syms_of_display): Update.
2489 (Vglyph_table, Vinitial_window_system)
2490 (Vredisplay_preemption_period, Vstandard_display_table)
2491 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2492 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2493 * dired.c (syms_of_dired): Update.
2494 (Vcompletion_ignored_extensions): Remove.
2495 (Vw32_get_true_file_attributes): Remove declaration.
2496 * dbusbind.c (syms_of_dbusbind): Update.
2497 (Vdbus_debug, Vdbus_registered_buses)
2498 (Vdbus_registered_objects_table): Remove.
2499 * data.c (syms_of_data): Update.
2500 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2501 * composite.c (syms_of_composite): Update.
2502 (Vauto_composition_function, Vauto_composition_mode)
2503 (Vcompose_chars_after_function, Vcomposition_function_table):
2504 Remove.
2505 * coding.c (syms_of_coding): Update.
2506 (Vcharset_revision_table, Vcoding_category_list)
2507 (Vcoding_system_alist, Vcoding_system_for_read)
2508 (Vcoding_system_for_write, Vcoding_system_list)
2509 (Vdefault_process_coding_system, Venable_character_translation)
2510 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2511 (Vlast_coding_system_used, Vlatin_extra_code_table)
2512 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2513 (Vprocess_coding_system_alist)
2514 (Vselect_safe_coding_system_function)
2515 (Vstandard_translation_table_for_decode)
2516 (Vstandard_translation_table_for_encode)
2517 (Vtranslation_table_for_input, coding_system_require_warning)
2518 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2519 (eol_mnemonic_unix, inherit_process_coding_system)
2520 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2521 (inhibit_null_byte_detection): Remove.
2522 * cmds.c (syms_of_cmds): Update.
2523 (Vpost_self_insert_hook): Remove.
2524 * charset.c (syms_of_charset): Update.
2525 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2526 (inhibit_load_charset_map): Remove.
2527 * character.c (syms_of_character): Update.
2528 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2529 (Vchar_width_table, Vprintable_chars)
2530 (Vscript_representative_chars, Vtranslation_table_vector)
2531 (Vunicode_category_table): Remove.
2532 * ccl.c (syms_of_ccl): Update.
2533 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2534 (Vtranslation_hash_table_vector): Remove.
2535 * category.c (syms_of_category): Update.
2536 (Vword_combining_categories, Vword_separating_categories): Remove.
2537 * callproc.c (syms_of_callproc): Update.
2538 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2539 (Vexec_directory, Vexec_path, Vexec_suffixes)
2540 (Vinitial_environment, Vprocess_environment)
2541 (Vshared_game_score_directory, Vshell_file_name): Remove.
2542 * callint.c (syms_of_callint): Update.
2543 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2544 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2545 * bytecode.c (syms_of_bytecode): Update.
2546 (Vbyte_code_meter, byte_metering_on): Remove.
2547 * buffer.c (syms_of_buffer): Update.
2548 (Vafter_change_functions, Vbefore_change_functions)
2549 (Vchange_major_mode_hook, Vfirst_change_hook)
2550 (Vinhibit_read_only, Vkill_buffer_query_functions)
2551 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2552 * alloc.c (syms_of_alloc): Update.
2553 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2554 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2555 (cons_cells_consed, floats_consed, garbage_collection_messages)
2556 (gc_cons_threshold, gcs_done, intervals_consed)
2557 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2558 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2559
2560 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2561 (DEFVAR_INT): Assume global is in `globals'.
2562 * alloc.c (globals): Define.
2563
2564 2011-01-18 Tom Tromey <tromey@redhat.com>
2565
2566 * image.c (Vimagemagick_render_type): Remove redundant
2567 definition.
2568
2569 2011-01-18 Tom Tromey <tromey@redhat.com>
2570
2571 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2572 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2573 (redisplay_window): Update.
2574 (syms_of_xdisp): Update.
2575
2576 2011-01-18 Tom Tromey <tromey@redhat.com>
2577
2578 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2579 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2580 Declare.
2581 * gtkutil.c (xg_uses_old_file_dialog):
2582 (xg_get_file_with_chooser):
2583 (xg_tool_bar_detach_callback): Don't redeclare globals.
2584
2585 2011-01-18 Tom Tromey <tromey@redhat.com>
2586
2587 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2588 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2589
2590 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2591
2592 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2593 defined __GNUC__. ../configure now checks for this GCC feature,
2594 which is now also supported by IBM and Oracle compilers.
2595 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2596 since Solaris malloc returns mult-of-8.
2597
2598 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
2599
2600 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2601
2602 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
2603
2604 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2605 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2606 * data.c (Fnumber_to_string): Use it.
2607 * print.c (float_to_string, print_object): Likewise.
2608
2609 Include <unistd.h> unilaterally.
2610 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2611 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2612 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2613 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2614 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2615 * xterm.c:
2616 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2617 unistd.h is always present now, possibly supplied by gnulib.
2618
2619 * mktime.c: Remove; moving to ../lib.
2620
2621 Use gnulib's mktime module.
2622 * deps.mk (mktime.o): Remove rule.
2623
2624 Use gnulib's ftoastr module.
2625 * print.c: Include ftoastr.h.
2626 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2627 Remove; no longer needed.
2628 (float_to_string): Use dtoastr rather than rolling our own code,
2629 which had an off-by-one bug on non-IEEE hosts.
2630
2631 Automate syncing from gnulib.
2632 * Makefile.in (lib): New macro.
2633 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2634 ($(lib)/libgnu.a): New rule.
2635 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2636
2637 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2638 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2639 so change the type of 'ign' to unsigned int from int.
2640
2641 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2642
2643 * xterm.h (struct x_display_info): Remove stray semicolon.
2644 The extra semicolon didn't conform to the C standard.
2645 Problem reported by Sun cc.
2646
2647 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2648 These changes make compilation easier to follow with Sun cc.
2649 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2650 EMACS_INT values without provoking overflow diagnostics.
2651 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2652 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2653 diagnostic with signed left shift.
2654
2655 * fileio.c (make_temp_name): Remove unreachable code.
2656
2657 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2658 Previously it was marked by preceding it with "return;", but
2659 Sun cc complains about this.
2660
2661 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2662 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2663 which fixed Bug#2370. Caught by Sun cc.
2664
2665 2011-01-15 Martin Rudalics <rudalics@gmx.at>
2666
2667 * window.c (inhibit_point_swap): New variable.
2668 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2669 point this time.
2670 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2671 of setting selected_window to nil (Bug#7728).
2672
2673 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2674
2675 * image.c (imagemagick_load_image, Finit_image_library):
2676 Free intermediate image after creating a MagickWand from it.
2677 Terminate MagickWand environment after image loading.
2678
2679 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
2680
2681 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2682 unexpected return values.
2683 (Fdbus_register_method): Remove connection initialization.
2684
2685 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
2686
2687 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2688 used by Fdbus_register_service.
2689 (QCdbus_request_name_replace_existing): Likewise.
2690 (QCdbus_request_name_do_not_queue): Likewise.
2691 (QCdbus_request_name_reply_primary_owner): Likewise.
2692 (QCdbus_request_name_reply_in_queue): Likewise.
2693 (QCdbus_request_name_reply_exists): Likewise.
2694 (QCdbus_request_name_reply_already_owner): Likewise.
2695 (Fdbus_register_service): New function.
2696 (Fdbus_register_method): Use Fdbus_register_service to do the name
2697 registration.
2698 (syms_of_dbusbind): Add symbols dbus-register-service,
2699 :allow-replacement, :replace-existing, :do-not-queue,
2700 :primary-owner, :existing, :in-queue and :already-owner.
2701
2702 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
2703
2704 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2705 when removing extra buttons.
2706
2707 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
2708
2709 * fns.c (Fyes_or_no_p): Doc fix.
2710
2711 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2712
2713 * fns.c (Fyes_or_no_p): Add usage.
2714
2715 2011-01-08 Glenn Morris <rgm@gnu.org>
2716
2717 * makefile.w32-in ($(EMACS)):
2718 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2719
2720 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2721 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2722
2723 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2724
2725 * image.c (imagemagick_load_image): Fix some resource leaks and
2726 error handling.
2727
2728 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
2729
2730 * fns.c (Fyes_or_no_p): Accept format string args.
2731
2732 2011-01-07 Glenn Morris <rgm@gnu.org>
2733
2734 * emacs.c (no_site_lisp): New int.
2735 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2736 (main): Set no_site_lisp.
2737 (standard_args): Add --no-site-lisp.
2738 * lisp.h (no_site_lisp): New int.
2739 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2740 directories to Vload_path.
2741
2742 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2743
2744 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2745
2746 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2747
2748 * dbusbind.c (Fdbus_register_method): Add optional parameter
2749 dont_register_service. Updated docstring accordingly.
2750
2751 2011-01-04 Glenn Morris <rgm@gnu.org>
2752
2753 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2754
2755 2011-01-03 Eli Zaretskii <eliz@gnu.org>
2756
2757 * image.c (png_jmpbuf): Remove definition.
2758 (my_png_error, png_load): Don't use png_jmpbuf.
2759
2760 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2761
2762 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
2763
2764 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2765
2766 * image.c <Qlibpng_version>: New variable.
2767 (syms_of_image): Intern and staticpro it. Set its value to the
2768 version of PNG library we were compiled with.
2769 (my_png_error, png_load): Avoid GCC warnings about direct access
2770 to png_ptr->jmpbuf. (Bug#7716)
2771 (png_jmpbuf): New macro.
2772 (my_png_error, png_load): Use it instead of #ifdef'ing according
2773 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
2774
2775 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
2776
2777 * .gdbinit (xgetptr): Fix the union+lsb case.
2778 (xbacktrace): Fix the union case.
2779
2780 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
2781
2782 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
2783 different from selected-window's.
2784
2785 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2786
2787 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
2788 equivalent of a menu item when the key sequence is given by the
2789 `:keys' attribute. (Bug#7662)
2790
2791 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
2792 the basic faces are supported.
2793
2794 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
2795
2796 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
2797
2798 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2799
2800 * xdisp.c (Fformat_mode_line): Fix last change.
2801
2802 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
2803
2804 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
2805 faces (Bug#7587).
2806
2807 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2808
2809 * fileio.c (Fexpand_file_name): One more doc fix.
2810
2811 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
2812
2813 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
2814 image or label in the container.
2815 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
2816 (xg_show_toolbar_item): Function deleted.
2817 (xg_tool_item_stale_p): New function.
2818 (update_frame_tool_bar): Calculate tool-bar style once per call.
2819 Instead of hiding text labels, omit them. Don't use
2820 xg_show_toolbar_item; create new GtkToolItems from scratch if
2821 necessary, instead of trying to re-use them. This avoids an
2822 annoying animation when changing tool-bars.
2823
2824 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
2825
2826 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
2827 title and buffer filename only for RepresentedFilename.
2828 Handle bad UTF-8 in buffer name (Bug#7517).
2829
2830 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
2831
2832 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
2833
2834 * nsfns.m (ns_set_name_iconic): Remove.
2835 (ns_set_name_internal): New function (Bug#7517).
2836 (Vicon_title_format): Extern declare.
2837 (ns_set_name): Call ns_set_name_internal.
2838 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
2839 (x_implicitly_set_name): Ditto.
2840 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
2841 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
2842
2843 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
2844
2845 * window.c (syms_of_window): Add missing defsubr for
2846 window-use-time.
2847
2848 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
2849
2850 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
2851 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
2852
2853 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
2854
2855 * buffer.c: Remove unused declarations.
2856 * buffer.h: Likewise.
2857 * charset.h: Likewise.
2858 * composite.h: Likewise.
2859 * dispextern.h: Likewise.
2860 * dispnew.c: Likewise.
2861 * font.h: Likewise.
2862 * fontset.c: Likewise.
2863 * fontset.h: Likewise.
2864 * intervals.h: Likewise.
2865 * keymap.h: Likewise.
2866 * lisp.h: Likewise.
2867 * syntax.c: Likewise.
2868 * syntax.h: Likewise.
2869 * termhooks.h: Likewise.
2870 * window.h: Likewise.
2871 * xsettings.h: Likewise.
2872 * xterm.c: Likewise.
2873 * xterm.h: Likewise.
2874
2875 * chartab.c (sub_char_table_ref): Make static.
2876 * dispnew.c (line_hash_code, required_matrix_height)
2877 (required_matrix_width): Likewise.
2878 * eval.c (interactive_p, apply_lambda): Likewise.
2879 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
2880 Likewise.
2881 * font.c (QCadstyle, QCregistry, font_make_spec)
2882 (font_parse_fcname, font_encode_char, font_at): Likewise.
2883 * frame.c (x_frame_get_arg): Likewise.
2884 * keymap.c (get_keyelt): Likewise.
2885 * lread.c (read_filtered_event): Likewise.
2886 * print.c (write_string_1): Likewise.
2887 * window.c (delete_window, window_height, window_width)
2888 (foreach_window): Likewise.
2889 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
2890 * xterm.c (x_scroll_bar_clear, xembed_set_info)
2891 (xembed_send_message): Likewise.
2892
2893 * eval.c (run_hook_list_with_args): Delete.
2894 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
2895 * terminal.c (get_terminal_param): Likewise.
2896 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
2897
2898 * scroll.c: Fix comment.
2899
2900 * dispnew.c (add_window_display_history)
2901 (add_frame_display_history, glyph_row_slice_p)
2902 (find_glyph_row_slice, flush_stdout)
2903 (check_matrix_pointer_lossage, matrix_row)
2904 (check_matrix_invariants, check_window_matrix_pointers)
2905 (check_matrix_pointers, window_to_frame_vpos)
2906 (window_to_frame_hpos): Prototize.
2907 * textprop.c (erase_properties): Likewise.
2908
2909 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2910
2911 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
2912 (print_preprocess): Fix handling of uninterned symbols in last change.
2913
2914 * print.c (print, print_preprocess, print_object): Use a hash table
2915 rather than a linear table for Vprint_number_table.
2916
2917 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
2918
2919 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
2920
2921 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
2922
2923 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
2924 (parse_tool_bar_item): Use it to obtain image separators for
2925 displays not using native tool-bar separators.
2926
2927 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
2928 specially, since this is now done in parse_tool_bar_item.
2929
2930 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2931
2932 Minor clean up to silence some gcc warnings.
2933 * window.c (Fset_window_buffer):
2934 * xterm.c (x_set_frame_alpha): Restructure code to silence
2935 compiler warning.
2936 (handle_one_xevent): Remove unused var `p'.
2937 (do_ewmh_fullscreen): Remove unused var `lval'.
2938 (xembed_set_info): Remove unused var `atom'.
2939 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
2940 compiler warning.
2941 * fontset.c (fontset_id_valid_p, dump_fontset):
2942 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
2943 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
2944 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
2945 label only when it's used.
2946 * image.c (x_create_bitmap_from_xpm_data):
2947 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
2948 its callers.
2949 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
2950 `consumed_chars'.
2951 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
2952 (decode_coding_emacs_mule): Remove unused label `retry'.
2953 (detect_eol): Add parens to silence compiler warning.
2954 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
2955 it's used to silence the compiler.
2956 (make_number): Modernize k&r declaration.
2957 (mark_char_table): Add parens to silence compiler warning.
2958
2959 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
2960
2961 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2962 tool-bar maps.
2963 (menu_separator_name_p): New function, from gtkutil.c.
2964 (separator_names): Move from gtkutil.c.
2965
2966 * keyboard.h (menu_separator_name_p): Add prototype.
2967
2968 * gtkutil.c (XG_BIN_CHILD): New macro.
2969 (xg_get_menu_item_label, xg_update_menubar)
2970 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2971 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2972 (separator_names, xg_separator_p): Move to keyboard.c.
2973 (create_menus, xg_update_submenu, update_frame_tool_bar):
2974 Use menu_separator_name_p.
2975
2976 * nsmenu.m (name_is_separator): Function deleted.
2977 (addItemWithWidgetValue): Use menu_separator_name_p.
2978
2979 * w32menu.c (name_is_separator): Function deleted.
2980 (add_menu_item): Use menu_separator_name_p.
2981
2982 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2983
2984 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2985 same as the background, use the face forground as cursor.
2986
2987 2010-12-13 Eli Zaretskii <eliz@gnu.org>
2988
2989 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2990
2991 2010-12-13 Eli Zaretskii <eliz@gnu.org>
2992
2993 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
2994 (face_before_or_after_it_pos, next_element_from_string)
2995 (next_element_from_c_string, produce_stretch_glyph): Remove unused
2996 calculations of maximum string length before calling
2997 string_char_and_length and STRING_CHAR_AND_LENGTH.
2998 (string_char_and_length): Update commentary: MAXLEN is no longer
2999 needed.
3000
3001 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3002
3003 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3004 as (Qsave_session arg).
3005
3006 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3007 (smc_die_CB): Make an event with arg Qt.
3008 (Fhandle_save_session): If event has Qt as argument,
3009 call Fkill_emacs (Bug#7552).
3010
3011 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3012
3013 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3014
3015 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3016
3017 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3018
3019 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3020
3021 * dispextern.h (struct it): New member overlay_strings_charpos.
3022
3023 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3024 charpos where we computed n_overlay_strings.
3025 (next_overlay_string): Load overlay strings at recorded position,
3026 which may not be the same as the iterator's charpos (Bug#7016).
3027
3028 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3029
3030 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3031 obscured due to a vscroll (Bug#7537).
3032
3033 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
3034
3035 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3036
3037 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3038 Use FRAME_TOOLBAR_HEIGHT.
3039 (x_set_offset): Handle XNegative and YNegative in
3040 f->size_hint_flags (Bug#7510).
3041
3042 2010-12-11 Eli Zaretskii <eliz@gnu.org>
3043
3044 * w32fns.c (Fx_show_tip): Call try_window with last argument
3045 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3046 solved. Round up the tip height to an integral multiple of the
3047 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3048 (Bug#7398)
3049
3050 2010-12-08 Glenn Morris <rgm@gnu.org>
3051
3052 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3053
3054 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3055
3056 * xml.c (parse_region): Ignore blank HTML nodes.
3057 (make_dom): Return CDATA sections (like <style>foo</style>) as
3058 text nodes.
3059
3060 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3061
3062 * lread.c (read1): Allow newstyle unquote outside of backquote.
3063 Disallow old-style backquotes inside new-style backquotes.
3064 Don't count unquotes to figure out when we're "syntactically inside
3065 but semantically outside of a backquote" any more.
3066 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3067 to all contexts.
3068
3069 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
3070
3071 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3072
3073 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3074
3075 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3076 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3077 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3078
3079 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3080
3081 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3082 bit-field.
3083 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3084 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3085 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3086 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3087 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3088 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3089 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3090 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3091 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3092 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3093 * m/hp800.h: Remove file.
3094 * m/mips.h: Remove file.
3095
3096 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3097
3098 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3099 with cursor color and draw a rectangle around the image (Bug#7412).
3100
3101 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3102
3103 * frame.c (x_set_font): Remove unused variable.
3104
3105 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3106
3107 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3108
3109 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3110 drawing text under filled box cursor (Bug#7479).
3111
3112 2010-11-27 Kenichi Handa <handa@m17n.org>
3113
3114 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3115 i.e. integer.
3116 (Fdefine_charset_internal): Adjust for the above change.
3117 (init_charset_once): Likewise.
3118
3119 * charset.h (emacs_mule_charset): Adjust the prototype.
3120 Delete duplicated extern.
3121
3122 * coding.c (emacs_mule_char): Adjust for the change of
3123 emacs_mule_charset.
3124
3125 * lread.c (read_emacs_mule_char): Adjust for the change of
3126 emacs_mule_charset.
3127
3128 2010-11-27 Eli Zaretskii <eliz@gnu.org>
3129
3130 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3131 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3132
3133 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3134
3135 * alloc.c (mark_terminals): Ensure that the image cache is marked
3136 even if the terminal object was marked earlier (Bug#6301).
3137
3138 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
3139
3140 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3141
3142 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
3143
3144 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3145 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
3146 Use 23 as menubar height if 0. (Bug#7425).
3147
3148 2010-11-26 Eli Zaretskii <eliz@gnu.org>
3149
3150 * xdisp.c (set_message_1): Force paragraph direction in echo area
3151 be left-to-right.
3152
3153 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3154 when the click is on the header or mode line.
3155
3156 2010-11-25 Eli Zaretskii <eliz@gnu.org>
3157
3158 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3159 `cursor' property of the first character in overlay strings.
3160 (Bug#7474) (Bug#7481)
3161
3162 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3163
3164 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3165 (NSLeftAlternateKeyMask): New defines.
3166 (keyDown): Parse left and right keys separately (Bug#7458).
3167 Compare Left key masks exactly (Bug#7458).
3168
3169 2010-11-23 Eli Zaretskii <eliz@gnu.org>
3170
3171 * intervals.c (temp_set_point_both): Define before calling, to
3172 avoid GCC warnings.
3173
3174 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3175
3176 * nsmenu.m: Use #include <config.h> instead of "config.h".
3177
3178 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
3179 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3180 Move declarations ...
3181 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
3182 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3183 ... here.
3184
3185 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3186 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3187 (gdb_pvec_type):
3188 * print.c (print_output_debug_flag):
3189 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3190 (safe_debug_print): New declaration.
3191
3192 * xterm.c:
3193 * systty.h:
3194 * sound.c: Include <sys/ioctl.h> unconditionally.
3195
3196 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3197
3198 * alloc.c (mark_maybe_object): Return early if given a Lisp
3199 integer (Bug#6301).
3200
3201 2010-11-21 Ken Brown <kbrown@cornell.edu>
3202
3203 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3204
3205 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3206
3207 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3208 Define (Bug#7458).
3209 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3210 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3211 NSRightControlKeyMask also (Bug#7458).
3212 (keyDown): Ditto (Bug#7458).
3213 (syms_of_nsterm): Defvar ns-right-command-modifier and
3214 ns-right-control-modifier (Bug#7458).
3215
3216 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3217
3218 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3219 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3220
3221 * intervals.h (temp_set_point, temp_set_point_both):
3222 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3223
3224 2010-11-20 Ken Brown <kbrown@cornell.edu>
3225
3226 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3227
3228 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3229
3230 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3231 \xNNNNNN for hex-code display of glyphless characters.
3232
3233 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3234
3235 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3236 Set important to ! vert_only.
3237 (xg_show_toolbar_item): Don't show label horizontally if
3238 tool item isn't important.
3239 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3240 xg_make_tool_item, or update important on existing tool item.
3241
3242 * keyboard.c (QCvert_only): New variable.
3243 (parse_tool_bar_item): Check for QCvert_only.
3244 (syms_of_keyboard): Initialize QCvert_only.
3245
3246 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3247
3248 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3249
3250 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3251 same in-line.
3252
3253 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3254
3255 * xfaces.c (lookup_face): Make static.
3256 * dispnew.c (copy_row_except_pointers): Likewise.
3257 * syntax.c (dec_bytepos): Likewise.
3258 (inc_bytepos): Remove.
3259 * dispextern.h (lookup_face): Remove declaration.
3260
3261 2010-11-19 Eli Zaretskii <eliz@gnu.org>
3262
3263 * xdisp.c (set_cursor_from_row): Display cursor after all the
3264 glyphs that come from an overlay. Don't overstep the last glyph
3265 when skipping glyphs from an overlay. (Bug#6687)
3266
3267 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3268
3269 * alloc.c (refill_memory_reserve): Move declaration ...
3270 * lisp.h (refill_memory_reserve): ... here.
3271
3272 * strftime.c (_strftime_copytm): Add declaration.
3273
3274 * callproc.c (syms_of_callproc): Use intern_c_string.
3275
3276 Move declarations from .c files to .h files.
3277 * process.c (timers_run):
3278 * minibuf.c (quit_char):
3279 * lread.c (read_emacs_mule_char):
3280 * keyboard.c (minibuf_level, message_enable_multibyte)
3281 (pending_malloc_warning):
3282 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3283 (Qonly): Remove declarations.
3284 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3285 (Vselect_active_regions):
3286 * keyboard.h (timers_run): Add declarations.
3287
3288 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3289 (tm_diff): Convert definitions to standard C.
3290 (extra_args_spec_iso): Remove, unused.
3291
3292 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
3293
3294 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3295
3296 * config.in (HAVE_G_TYPE_INIT): New symbol.
3297
3298 2010-11-18 Eli Zaretskii <eliz@gnu.org>
3299
3300 * lread.c (Fload): Mention `load-in-progress' and
3301 `load-file-name'. (Bug#7346)
3302
3303 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3304 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3305 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3306 subprocesses. Use buffer_free only ifdef subprocesses.
3307
3308 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3309 the subprocesses version, not in the non-subprocesses one.
3310
3311 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3312
3313 2010-11-17 Eli Zaretskii <eliz@gnu.org>
3314
3315 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3316 lines on text-mode terminals. (bug#7417)
3317
3318 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3319
3320 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3321 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3322
3323 2010-11-17 Kenichi Handa <handa@m17n.org>
3324
3325 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3326 change (set charset-ID list instead of charset-symbol list).
3327
3328 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
3329
3330 * keyboard.c (make_lispy_position): For text area clicks, record Y
3331 pixel position relative to the text area, excluding header line.
3332 Also change X and Y to Lisp_Objects, not pointers; don't return
3333 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3334 buffer_posn_from_coords counting from the start of the text area.
3335 (Fposn_at_x_y, make_lispy_event): Callers changed.
3336
3337 * window.c (coordinates_in_window): Change X and Y to ints rather
3338 than pointers; don't return coordinates via pointers.
3339 (struct check_window_data): Change X and Y from pointers to ints.
3340 (window_from_coordinates): Remove args WX and WY; don't return
3341 coordinates via pointers.
3342 (Fcoordinates_in_window_p, window_from_coordinates):
3343 (check_window_containing, Fwindow_at): Callers changed.
3344 (window_relative_x_coord): New function.
3345
3346 * window.h (window_from_coordinates, window_relative_x_coord):
3347 Update prototypes.
3348
3349 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3350 the start of the text area.
3351
3352 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3353 call. Use window_relative_x_coord.
3354 (note_mouse_highlight): Change window_from_coordinates call.
3355
3356 * w32term.c (w32_read_socket):
3357 * msdos.c (dos_rawgetc):
3358 * xterm.c (handle_one_xevent): Likewise.
3359
3360 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3361
3362 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3363 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3364 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3365 Convert definitions to standard C.
3366 * regex.c: Do not include <stdlib.h>, config.h does it.
3367 Include unistd.h.
3368 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3369 (regerror, regfree): Convert definitions to standard C.
3370 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3371 (__mktime_internal): Convert definitions to standard C.
3372
3373 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3374
3375 * w32proc.c:
3376 * w32inevt.c:
3377 * w32heap.c:
3378 * w32.c: Remove config.h include guards.
3379
3380 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3381 No code changes.
3382
3383 * process.c: Include <sys/ioctl.h> unconditionally,
3384 keyboard.c already does it.
3385
3386 * keyboard.c (pending_malloc_warning): Add const to match
3387 definition in alloc.c.
3388 (Fset_input_interrupt_mode): Simplify #ifdefs.
3389
3390 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3391
3392 Clean up systty.h macros.
3393 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3394 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3395 definition in all uses.
3396 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3397 * sysdep.c (discard_tty_input, child_setup_tty)
3398 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3399 * emacs.c (shut_down_emacs):
3400 * callproc.c (child_setup):
3401 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3402
3403 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3404
3405 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3406
3407 * w32fns.c (Fx_create_frame):
3408 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3409 resource here; it's now done at startup.
3410
3411 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3412
3413 * xterm.c (set_wm_state): Add Qnil to final cons.
3414
3415 * xselect.c (x_send_client_event): Remove unused variables cons and
3416 size.
3417
3418 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3419
3420 * keyboard.c (modify_event_symbol): Add const to array elements of
3421 arg NAME_TABLE.
3422 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3423 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3424 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3425 Add const to array elements.
3426 (scroll_bar_parts): Make static. Fix position of const.
3427
3428 * w32fns.c (lispy_function_keys): Add const to extern.
3429
3430 * w32inevt.c (lispy_function_keys): Likewise.
3431
3432 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3433
3434 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3435 resource here; it's now done at startup.
3436
3437 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3438
3439 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
3440
3441 Fix compilation on Solaris.
3442 * sysdep.c: Do not #include <term.h>.
3443 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3444
3445 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3446
3447 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3448
3449 * xterm.c (set_wm_state): Don't put Atom in cons, call
3450 make_fixnum_or_float on them first.
3451 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3452 Xatom_net_supported correctly.
3453
3454 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3455 (Fx_send_client_event): to here.
3456
3457 2010-11-13 Martin Rudalics <rudalics@gmx.at>
3458
3459 * window.c (Fwindow_use_time): New function.
3460
3461 2010-11-13 Eli Zaretskii <eliz@gnu.org>
3462
3463 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3464 zero-width characters.
3465
3466 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3467
3468 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3469 box before drawing the glyphs inside it.
3470
3471 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3472
3473 * dispextern.h (enum glyphless_display_method):
3474 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3475 All users changed.
3476
3477 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3478 Fix comments.
3479 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3480 whitespace in "[]", to simulate a box. Don't use uninitialized
3481 variable `width'.
3482
3483 2010-11-11 Julien Danjou <julien@danjou.info>
3484
3485 * xsettings.c (init_xsettings): Use already fetch atoms.
3486
3487 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3488 from dpyinfo.
3489
3490 * xselect.c (Fx_send_client_event): Split and create
3491 x_send_client_event.
3492
3493 * lisp.h: Do not EXFUN Fx_send_client_event.
3494
3495 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3496 from dpyinfo.
3497 (wm_supports): Use atoms from dpyinfo.
3498 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3499 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3500 (xembed_set_info): Use atoms from dpyinfo.
3501 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3502 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3503 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3504 Get all atoms in one round-trip.
3505 (set_wm_state): Use x_send_client_event rather than
3506 Fx_send_client_event, using Atom directly.
3507 (x_ewmh_activate_frame): Ditto.
3508 (x_set_sticky): Pass atoms to set_wm_state.
3509 (do_ewmh_fullscreen): Ditto.
3510
3511 * xterm.h (x_display_info): Add Xatom_net_supported,
3512 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3513 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3514
3515 * xfns.c (Fx_show_tip): Fix typo in docstring.
3516
3517 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3518
3519 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3520 it's not negative.
3521
3522 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3523
3524 * font.c (font_filter_properties): Add const to array elements of
3525 properties args.
3526
3527 * font.h (font_filter_properties): Likewise.
3528
3529 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3530 elements.
3531
3532 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3533
3534 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
3535
3536 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3537 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3538 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3539 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3540 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3541
3542 2010-11-10 Glenn Morris <rgm@gnu.org>
3543
3544 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3545
3546 2010-11-09 Eli Zaretskii <eliz@gnu.org>
3547
3548 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
3549
3550 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
3551
3552 * image.c (free_image): Don't garbage the frame here, since this
3553 function can be called while redisplaying (Bug#7210).
3554 (uncache_image): Garbage the frame here (Bug#6426).
3555
3556 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
3557
3558 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3559 parent is the root window. Check this after traversing window tree.
3560
3561 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
3562
3563 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
3564
3565 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3566 before traversing window tree (Bug#5721).
3567
3568 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3569
3570 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3571
3572 * xdisp.c (note_mode_line_or_margin_highlight):
3573 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
3574
3575 2010-11-06 Eli Zaretskii <eliz@gnu.org>
3576
3577 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3578 adjust width of tool-tip frame to the width of text, excluding the
3579 stretch glyph at the beginning of R2L glyph rows.
3580
3581 * w32fns.c (Fx_show_tip): Likewise.
3582
3583 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3584
3585 * nsfont.m: Include termchar for new mouse-highlight.
3586 (nsfont_draw): Use MOUSE_HL_INFO.
3587
3588 2010-11-05 Eli Zaretskii <eliz@gnu.org>
3589
3590 Unify mouse-highlight code for all GUI and TTY sessions.
3591
3592 * term.c: Remove static mouse_face_* variables. All users
3593 changed.
3594 (term_show_mouse_face, term_clear_mouse_face)
3595 (fast_find_position, term_mouse_highlight): Functions deleted.
3596 (tty_draw_row_with_mouse_face): New function.
3597 (term_mouse_movement): Call note_mouse_highlight instead of
3598 term_mouse_highlight.
3599
3600 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3601 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3602 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3603 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3604 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3605 Replace Display_Info with Mouse_HLInfo everywhere where
3606 mouse_face_* members were accessed for mouse highlight purposes.
3607
3608 * xterm.c (x_update_window_begin, x_update_window_end)
3609 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
3610 (handle_one_xevent, x_free_frame_resources, x_term_init):
3611 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
3612 members were accessed for mouse highlight purposes.
3613
3614 * w32term.c (x_update_window_begin, x_update_window_end)
3615 (x_update_end, w32_read_socket, x_free_frame_resources)
3616 (w32_initialize_display_info): Replace Display_Info with
3617 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3618 for mouse highlight purposes.
3619
3620 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3621 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3622 unless the frame is on a window-system.
3623 (get_tool_bar_item, handle_tool_bar_click)
3624 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3625 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3626 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3627 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3628 Replace Display_Info with Mouse_HLInfo everywhere where
3629 mouse_face_* members were accessed for mouse highlight purposes.
3630 (coords_in_mouse_face_p): Move prototype out of the
3631 HAVE_WINDOW_SYSTEM conditional.
3632 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3633 HAVE_WINDOW_SYSTEM block.
3634 (try_window_id) [HAVE_GPM || MSDOS]:
3635 Call x_clear_window_mouse_face.
3636 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
3637 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3638 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3639 calling draw_glyphs directly.
3640 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3641 (cursor_in_mouse_face_p, rows_from_pos_range)
3642 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3643 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3644 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3645 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3646 fragments.
3647 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3648 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3649 integer.
3650 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
3651 (x_consider_frame_title, tool_bar_lines_needed):
3652 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
3653 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3654 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3655 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3656 part.
3657
3658 * dispnew.c (mirror_make_current): Set Y coordinate of the
3659 mode-line and header-line rows.
3660 (init_display): Setup initial frame's output_data for text
3661 terminal frames.
3662
3663 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3664 its own definition on msdos.c.
3665
3666 * msdos.c (show_mouse_face, clear_mouse_face)
3667 (fast_find_position, IT_note_mode_line_highlight)
3668 (IT_note_mouse_highlight): Functions deleted.
3669 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3670 instead of IT_note_mouse_highlight.
3671 (draw_row_with_mouse_face, popup_activated): New functions.
3672 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3673 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3674 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3675 where mouse_face_* members were accessed for mouse highlight
3676 purposes.
3677
3678 * msdos.h (initialize_msdos_display): Add prototype.
3679
3680 * frame.h (MOUSE_HL_INFO): New macro.
3681
3682 * lisp.h (Mouse_HLInfo): New data type.
3683
3684 * xterm.h (struct x_display_info):
3685 * w32term.h (struct w32_display_info):
3686 * nsterm.h (struct ns_display_info):
3687 * termchar.h (struct tty_display_info): Use it instead of
3688 mouse_face_* members.
3689
3690 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3691 1st argument.
3692 (frame_to_window_pixel_xy, note_mouse_highlight)
3693 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3694 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3695 HAVE_WINDOW_SYSTEM conditional.
3696 (draw_row_with_mouse_face): Declare prototype.
3697 (tty_draw_row_with_mouse_face): Declare prototype.
3698
3699 2010-11-05 Eli Zaretskii <eliz@gnu.org>
3700
3701 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3702 Remove unused variables.
3703
3704 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3705
3706 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3707 logic pointed out by Eli Zaretskii.
3708
3709 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3710
3711 * coding.c (coding-category-list): Refer to set-coding-system-priority
3712 instead of the obsolete set-coding-priority in the doc string.
3713
3714 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3715
3716 * nsfont.m (nsfont_draw): Correct previous patch to return
3717 correct value.
3718 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3719 don't change the method signature, change the return.
3720
3721 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3722
3723 * nsfont.m (nsfont_draw)
3724 * nsimage.m (EmacsImage-setXBMColor:)
3725 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3726
3727 2010-11-03 Julien Danjou <julien@danjou.info>
3728
3729 * image.c (gif_load): Add support for transparency and specified
3730 :background.
3731
3732 2010-11-01 Kenichi Handa <handa@m17n.org>
3733
3734 * dispextern.h (lookup_glyphless_char_display): Extern it.
3735
3736 * termhooks.h (struct terminal): New member charset_list.
3737
3738 * coding.c (Fset_terminal_coding_system_internal): Set the
3739 `charset_list' member of struct terminal.
3740
3741 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
3742 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3743
3744 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3745 (lookup_glyphless_char_display): Set it->what at the end.
3746 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3747 (last_glyphless_glyph_merged_face_id): Make them non-static.
3748
3749 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3750 Fix the arg with_background for font->driver->draw.
3751
3752 2010-11-01 Kenichi Handa <handa@m17n.org>
3753
3754 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3755 Surround chp by parentheses.
3756
3757 2010-11-01 Kenichi Handa <handa@m17n.org>
3758
3759 Implement various display methods for glyphless characters.
3760
3761 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
3762 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
3763 (Qzero_width): New variables.
3764 (THIN_SPACE_WIDTH): New macro.
3765 (lookup_glyphless_char_display): New function.
3766 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3767 (last_glyphless_glyph_merged_face_id): New variables.
3768 (get_next_display_element): Check glyphless characters.
3769 (redisplay_internal): Initialize last_glyphless_glyph_frame and
3770 last_glyphless_glyph_face_id.
3771 (fill_glyphless_glyph_string): New function.
3772 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
3773 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
3774 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3775 (x_produce_glyphs): If a suitable font is not found, produce a
3776 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
3777 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
3778 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
3779 Qzero_width.
3780 (Vglyphless_char_display): Declare it as a Lisp variable.
3781
3782 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
3783 (struct glyph): Change the size of the member "type" to 3.
3784 Add glyphless to the union slice and u.
3785 (enum display_element_type): Add IT_GLYPHLESS.
3786 (enum glyphless_display_method): New enum.
3787 (struct it): New member glyphless_method.
3788 (Vglyphless_char_display): Extern it.
3789
3790 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
3791 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3792
3793 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
3794 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3795
3796 * nsterm.m (ns_draw_glyph_string): Handle the case
3797 GLYPHLESS_GLYPH (the detail is not yet implemented).
3798
3799 2010-10-31 Glenn Morris <rgm@gnu.org>
3800
3801 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
3802
3803 * frame.c (syms_of_frame) <tool-bar-mode>:
3804 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
3805
3806 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
3807
3808 * xterm.c (x_connection_closed): Print informative error message
3809 when aborting on GTK. This requires using shut_down_emacs
3810 directly instead of Fkill_emacs.
3811
3812 2010-10-29 Eli Zaretskii <eliz@gnu.org>
3813
3814 * emacs.c (main): Call syms_of_filelock unconditionally.
3815
3816 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
3817 clause, but keep part of it conditioned on CLASH_DETECTION.
3818
3819 2010-10-29 Glenn Morris <rgm@gnu.org>
3820
3821 * nsfns.m (Fx-display-save-under, Fx-open-connection)
3822 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
3823 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
3824 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
3825 Sync docs between X, W32, NS.
3826
3827 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
3828 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
3829
3830 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
3831
3832 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
3833 otherwise, bootstrapping on Windows fails to compile macroexp.el.
3834
3835 2010-10-26 Eli Zaretskii <eliz@gnu.org>
3836
3837 * cmds.c (internal_self_insert): Don't insert if argument N is
3838 zero or negative. (Bug#7281)
3839
3840 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
3841
3842 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
3843
3844 2010-10-25 Glenn Morris <rgm@gnu.org>
3845
3846 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
3847
3848 2010-10-24 Glenn Morris <rgm@gnu.org>
3849
3850 * w32fns.c (Fx_synchronize, Fx_change_window_property)
3851 (Fx_window_property, Fx_file_dialog):
3852 * xfns.c (Fx_synchronize, Fx_change_window_property)
3853 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
3854
3855 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
3856
3857 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
3858
3859 2010-10-24 Eli Zaretskii <eliz@gnu.org>
3860
3861 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
3862
3863 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
3864 Deprecate use as a boolean flag.
3865
3866 2010-10-24 Jim Meyering <jim@meyering.net>
3867
3868 * emacs.c (argmatch): Don't treat "--" as "--chdir".
3869
3870 2010-10-24 Glenn Morris <rgm@gnu.org>
3871
3872 * w16select.c (syms_of_win16select) <selection-coding-system>:
3873 <next-selection-coding-system>:
3874 * w32select.c (syms_of_w32select) <selection-coding-system>:
3875 <next-selection-coding-system>:
3876 Sync docs with select.el.
3877
3878 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
3879 Lisp version.
3880
3881 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3882 Sync doc with the xterm.c version.
3883
3884 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
3885 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
3886
3887 2010-10-23 Glenn Morris <rgm@gnu.org>
3888
3889 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
3890 * frame.c (syms_of_frame) <menu-bar-mode>:
3891 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
3892 <hourglass-delay>: Sync docs with Lisp.
3893
3894 2010-10-23 Eli Zaretskii <eliz@gnu.org>
3895
3896 Implement mouse highlight for bidi-reordered lines.
3897
3898 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
3899 (mouse_face_from_string_pos): New function, replaces
3900 fast_find_string_pos.
3901 (note_mouse_highlight): Call it instead of fast_find_string_pos.
3902 (note_mode_line_or_margin_highlight): Support bidi-reordered
3903 strings and R2L glyph rows. Fix comments.
3904 (note_mouse_highlight): When bidi reordering is turned on in a
3905 buffer, call next-single-property-change and
3906 previous-single-property-change with last argument nil.
3907 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
3908 glyph that stands for no text beyond the line end.
3909 (row_containing_pos): Don't return too early when CHARPOS is in a
3910 bidi-reordered continued line. Return immediately when the first
3911 hit is found in a line that is not continued, or when an exact
3912 match for CHARPOS is found.
3913 (rows_from_pos_range): New function.
3914 (mouse_face_from_buffer_pos): Use it instead of calling
3915 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
3916 function to support mouse highlight in bidi-reordered lines and
3917 not to assume that START_CHARPOS is always in mouse_face_beg_row.
3918 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
3919 that the former is always above the latter or identical to it.
3920 (show_mouse_face): Support drawing highlighted R2L lines.
3921 (coords_in_mouse_face_p): New function, bidi-aware.
3922 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
3923 Call it instead of comparing with mouse-face members of dpyinfo.
3924 (note_mode_line_or_margin_highlight): Fix confusingly swapped
3925 usage of hpos and vpos.
3926
3927 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
3928
3929 * xrdb.c: Include keyboard.h for MOTIF.
3930
3931 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
3932 MOTIF (Bug#7263).
3933
3934 * xfns.c: Include Xm/TextF and Xm/List.
3935 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
3936 Make ANSI prototypes.
3937
3938 2010-10-22 Glenn Morris <rgm@gnu.org>
3939
3940 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
3941 Remove ccl and duplicate mouse.
3942
3943 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
3944
3945 * insdel.c (prepare_to_modify_buffer): Don't set
3946 saved-region-selection if modification hooks are disabled.
3947
3948 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
3949
3950 * cmds.c (Fdelete_char): Doc fix.
3951
3952 2010-10-19 Ken Brown <kbrown@cornell.edu>
3953
3954 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
3955
3956 2010-10-19 Kenichi Handa <handa@m17n.org>
3957
3958 Fix incorrect font metrics when the same font is opened with
3959 different pixelsizes.
3960
3961 * xftfont.c: Include composite.h.
3962 (xftfont_shape): New function.
3963 (syms_of_xftfont): Set xftfont_driver.shape.
3964
3965 2010-10-18 Julien Danjou <julien@danjou.info>
3966
3967 * frame.c (Fframe_pointer_visible_p):
3968 Add `frame-pointer-visible-p' to get the pointer visibility.
3969
3970 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3971
3972 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3973 non-"EAGAIN"-like error to signal to Emacs that the socket should
3974 be closed.
3975
3976 2010-10-15 Eli Zaretskii <eliz@gnu.org>
3977
3978 * unexcoff.c (make_hdr): Fix prototype according to changes in
3979 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3980
3981 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3982
3983 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3984
3985 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3986 made building the X menu fail.
3987 (really-oldXMenu): Fix my previous fix.
3988
3989 2010-10-14 Damyan Pepper <damyanp@gmail.com>
3990
3991 Fix handling of font properties on Windows (bug#6303).
3992 * font.c (font_filter_properties): New function, refactored from
3993 ftfont_filter_properties.
3994 * font.h (font_filter_properties): Declare.
3995 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
3996 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
3997 (w32font_filter_properties): New function.
3998 (w32font_driver): Add w32font_filter_properties.
3999
4000 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4001
4002 * font.c (Ffont_variation_glyphs):
4003 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4004
4005 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4006
4007 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4008 * w32font.c (w32_generic_family):
4009 * w32inevt.c (key_event):
4010 * w32menu.c (fill_in_menu):
4011 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4012 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4013 * w32term.c (w32_read_socket): Make static.
4014
4015 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4016
4017 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4018 prototypes; all callers changed.
4019
4020 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4021
4022 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4023 (OBJ2): New macro.
4024 (WIN32OBJ, FONTOBJ): Remove.
4025 (OBJ1): Redistribute object files with OBJ2.
4026 (LIBS, $(TEMACS)): Use TLIB2.
4027 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4028 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4029
4030 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4031
4032 * emacs.c (Vdynamic_library_alist)
4033 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4034 Doc fix.
4035
4036 * lisp.h (Vdynamic_library_alist): Declare extern.
4037
4038 * image.c (Vimage_library_alist)
4039 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4040 (lookup_image_type): Use Vdynamic_library_alist.
4041 (Finit_image_library): Doc fix.
4042
4043 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4044
4045 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4046 (lispdir): Remove trailing /, update all uses.
4047
4048 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
4049
4050 * nsterm.m (Qleft): Declare.
4051 (ns_right_alternate_modifier): New variable.
4052 (NSRightAlternateKeyMask): New define.
4053 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4054 ns_right_alternate_modifier isn't Qleft.
4055 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4056 as emacs modifier for NSRightAlternateKeyMask.
4057 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4058
4059 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4060
4061 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4062 gnutls is ready, return EAGAIN as the errno.
4063
4064 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4065
4066 * vm-limit.c:
4067 * unexhp9k800.c:
4068 * unexelf.c:
4069 * unexaix.c:
4070 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4071
4072 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4073 (PROFILING_LDFLAGS): Remove, not needed anymore.
4074
4075 * Makefile.in: Use $(...) everywhere instead of ${...}.
4076 (CRT_DIR): Move near potential user.
4077 (START_FILE): Move near CRT_DIR, it might use it.
4078
4079 * sysdep.c (LPASS8): Remove, unused.
4080 (emacs_ospeed): Change from being a global to a local in the only
4081 user: init_baud_rate.
4082
4083 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4084
4085 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
4086 (emacs_gnutls_write): Remove the debuggin fsync call.
4087 (emacs_gnutls_read): Return -1 if we got an error from
4088 gnutls_read. This allows us to actually read lots of data from
4089 the GnuTLS stream.
4090 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4091 According to the documentation, this is correct, and it seems to
4092 make things work.
4093
4094 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
4095
4096 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4097
4098 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4099
4100 * keyboard.c: Revert last change; it was not intended to be
4101 synchronized with the trunk.
4102
4103 2010-10-08 Kenichi Handa <handa@m17n.org>
4104
4105 * coding.c (complement_process_encoding_system): Fix previous change.
4106
4107 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4108
4109 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4110 (Fdbus_init_bus): ... here. (Bug#7113)
4111
4112 2010-10-08 Glenn Morris <rgm@gnu.org>
4113
4114 * buffer.c (before-change-functions, after-change-functions):
4115 Three-year overdue doc fix following 2007-08-13 change.
4116
4117 2010-10-08 Kenichi Handa <handa@m17n.org>
4118
4119 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4120 eol-format, inherit from the system's default.
4121 (complement_process_encoding_system): Make a new coding system
4122 inherit the original eol-format.
4123
4124 2010-10-08 Kenichi Handa <handa@m17n.org>
4125
4126 * coding.c (complement_process_encoding_system): New function.
4127
4128 * coding.h (complement_process_encoding_system): Extern it.
4129
4130 * callproc.c (Fcall_process): Complement the coding system for
4131 encoding arguments.
4132 (Fcall_process_region): Complement the coding system for encoding
4133 the input to the process.
4134
4135 * process.c (Fstart_process): Complement the coding system for
4136 encoding arguments.
4137 (send_process): Complement the coding system for encoding what
4138 sent to the process.
4139
4140 2010-10-08 Kenichi Handa <handa@m17n.org>
4141
4142 * xfont.c (xfont_open): Fix setting of font->average_width from
4143 :avgwidth property (Bug#7123).
4144
4145 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4146
4147 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4148 is more portable.
4149
4150 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
4151 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
4152 has not defined SIGIO.
4153
4154 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
4155
4156 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4157 draw the outermost line using the black relief, for legibility.
4158 Omit drawing the four corner pixels.
4159
4160 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
4161
4162 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4163 (read_key_sequence): Inline echo_prompt.
4164 (echo_dash): Add a dash only if key is continued (Bug#7137).
4165
4166 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4167
4168 Remove O_RDONLY, O_WRONLY definitions, not needed.
4169 * unexcoff.c:
4170 * lread.c:
4171 * fileio.c:
4172 * doc.c:
4173 * callproc.c:
4174 * alloc.c:
4175 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4176
4177 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4178
4179 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4180
4181 * gnutls.c: Add property list symbol holders.
4182 (emacs_gnutls_handshake): Clarify how sockets are passed to
4183 GnuTLS.
4184 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4185 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4186 and keyfiles to be a list of file names. Default to "NORMAL" for
4187 the priority string. Improve logging.
4188
4189 2010-10-03 Glenn Morris <rgm@gnu.org>
4190
4191 * fileio.c (Vdirectory_sep_char): Remove.
4192
4193 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4194
4195 * termhooks.h: Remove #ifdef CONSP.
4196
4197 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4198
4199 Include <fcntl.h> unconditionally.
4200 * termcap.c:
4201 * sysdep.c:
4202 * lread.c:
4203 * keyboard.c:
4204 * filelock.c:
4205 * fileio.c:
4206 * doc.c:
4207 * callproc.c:
4208 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4209 does it.
4210
4211 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4212
4213 * sysdep.c (flush_pending_output): Remove code, does not do
4214 anything on any platform.
4215
4216 Remove unused code.
4217 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4218 Remove select emulation, all systems support select.
4219 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4220 * process.c (create_process): Remove #if 0 code.
4221
4222 Remove unused arguments for unexec.
4223 The third one is never used, and the last two are always passed as zero.
4224 * emacs.c (unexec): Add declaration.
4225 (Fdump_emacs): Only pass the first two arguments to unexec.
4226 Simplify #ifdef.
4227 * unexw32.c (unexec):
4228 * unexsol.c (unexec):
4229 * unexhp9k800.c (unexec):
4230 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4231 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4232 (find_section): Use const.
4233 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4234 (unexec_error): Declare it NO_RETURN.
4235 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4236 it as an argument, remove data_start and entry_address arguments, unused.
4237 (unexec): Remove bss_start, data_start and
4238 entry_address arguments.
4239 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4240 it as an argument, remove data_start and entry_address arguments, unused.
4241 (unexec): Remove bss_start, data_start and
4242 entry_address arguments.
4243
4244 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
4245
4246 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4247
4248 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4249 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4250 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4251 Fix typos in docstrings.
4252 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4253 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4254
4255 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
4256
4257 * keyboard.c (command_loop_1): Make sure the mark is really alive
4258 before using it (Bug#7044).
4259
4260 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
4261
4262 * makefile.w32-in (tags): Rename target to full-tags.
4263
4264 2010-10-02 Eli Zaretskii <eliz@gnu.org>
4265
4266 * emacs.c (main): Remove !WINDOWSNT conditional.
4267 (Fkill_emacs): Don't mention exemption on MS-Windows.
4268
4269 2010-10-02 Glenn Morris <rgm@gnu.org>
4270
4271 * character.c (Fchar_bytes): Remove obsolete function.
4272 (syms_of_character): Remove Schar_bytes.
4273
4274 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4275 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4276 in batch-mode.
4277 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4278 (kill-emacs-hook): Doc fix.
4279
4280 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4281
4282 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4283 (parse_region): Rework to take regions instead of strings, and
4284 renamed to reflect that these are the libxml functions.
4285
4286 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4287
4288 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4289 screen dimensions in tty->Wcm.
4290
4291 * xdisp.c (set_cursor_from_row): When the row is truncated and
4292 point is outside the range of displayed characters, position the
4293 cursor inside the scroll margin. (Bug#6349)
4294
4295 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4296
4297 Do not include stdlib.h and string.h, config.h does it.
4298 * xfont.c:
4299 * w32term.c:
4300 * w32reg.c:
4301 * w32inevt.c:
4302 * w32heap.c:
4303 * w32console.c:
4304 * w16select.c:
4305 * unexsol.c:
4306 * term.c:
4307 * sound.c:
4308 * scroll.c (m):
4309 * gtkutil.c:
4310 * font.c:
4311 * filelock.c:
4312 * fileio.c:
4313 * dosfns.c:
4314 * dbusbind.c:
4315 * bidi.c:
4316 * callproc.c:
4317 * process.c:
4318 * msdos.c:
4319 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4320
4321 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4322 defines it.
4323
4324 * process.c: Move #include <pty.h> earlier.
4325 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4326 (pty_name): Move definition later.
4327
4328 * nsselect.m (syms_of_nsselect):
4329 * nsmenu.m (syms_of_nsmenu):
4330 * nsfns.m (syms_of_nsfns):
4331 * msdos.c (syms_of_msdos):
4332
4333 * image.c (syms_of_image):
4334 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4335
4336 * point.h: Remove, unused.
4337
4338 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4339
4340 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4341 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4342 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4343
4344 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4345
4346 * xml.c (parse_string): Use const.
4347
4348 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4349
4350 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4351 Also only override Vprint_level if it isn't already bound, and increase
4352 the level to 8 to produce more useful backtraces for bug reports.
4353
4354 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4355
4356 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4357
4358 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
4359
4360 * w32console.c (vga_stdcolor_name): Remove unused function;
4361 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4362
4363 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4364
4365 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4366 (Fgnutls_boot): Start the handshake.
4367 (emacs_gnutls_read): Perform the handshake from the reader loop.
4368 (Fgnutls_boot): Remove some debugging messages.
4369 Change indentation throughout to use the Emacs style.
4370 (emacs_gnutls_handshake): Cast the fds to something that's
4371 possibly the expected length.
4372 (emacs_gnutls_write): Return -1 if we try to write before handshake.
4373
4374 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4375
4376 * process.c (make_process): Set the gnutls_p field to zero by
4377 default.
4378 (read_process_output): Always call the gnutls_read function if the
4379 stream is a gnutls stream.
4380 (send_process): Ditto for writes.
4381
4382 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4383 or write anything until the state is GNUTLS_STAGE_READY.
4384 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4385
4386 2010-09-29 Eli Zaretskii <eliz@gnu.org>
4387
4388 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4389 NEUTRAL_DIR.
4390 (handle_invisible_prop, iterate_out_of_display_property)
4391 (next_element_from_buffer): If bidi_it.first_elt is set, call
4392 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4393 (Bug#7128)
4394
4395 * print.c (print_object): Fix format string and argument types for
4396 printing a Lisp_Misc_Marker.
4397
4398 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4399 (load_overlay_strings, get_overlay_strings_1)
4400 (get_overlay_strings, forward_to_next_line_start)
4401 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4402 (get_next_display_element, next_element_from_string)
4403 (next_element_from_c_string, next_element_from_buffer)
4404 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4405 (message_dolog, message_log_check_duplicate, message2_nolog)
4406 (message3, message3_nolog, vmessage, set_message, set_message_1)
4407 (hscroll_window_tree, text_outside_line_unchanged_p)
4408 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4409 (find_last_unchanged_at_beg_row)
4410 (find_first_unchanged_at_end_row, row_containing_pos)
4411 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
4412 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4413 Use EMACS_INT for buffer and string positions.
4414
4415 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4416 (row_containing_pos): Adjust prototype.
4417
4418 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4419 (message2_nolog, set_message): Adjust prototypes.
4420
4421 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4422
4423 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4424 (Fgnutls_boot): Use SDATA.
4425 (Fgnutls_handshake): Remove unused var `max_log_level'.
4426
4427 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4428
4429 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
4430 (Bug#7113)
4431
4432 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4433
4434 * xgselect.c (xg_select): Clear file descriptors not set from
4435 rfds and wfds.
4436
4437 * process.c (wait_reading_process_output): Add missing FD_CLR
4438 for write_mask (must mirror connect_wait_mask).
4439
4440 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4441
4442 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4443 prefix.
4444 (Fgnutls_boot): Use changed process members. Use log level with a
4445 function parameter to set it. Bring back Emacs-level debugging
4446 messages at log level 1 and 2.
4447
4448 * process.c (make_process): Initialize gnutls_log_level.
4449
4450 * process.h: Add gnutls_log_level and rename x509_cred and
4451 anon_cred to have the gnutls_ prefix for consistency.
4452
4453 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4454
4455 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
4456
4457 * w32.c (g_b_init_get_sid_identifier_authority)
4458 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4459 Remove, not used.
4460 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4461 (init_winsock): Remove useless assignment.
4462 (open_process_token, get_token_information, lookup_account_sid)
4463 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4464 (get_security_descriptor_owner, get_security_descriptor_group)
4465 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4466 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4467 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4468 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4469 (unc_volume_file_attributes, convert_from_time_t)
4470 (create_toolhelp32_snapshot, process32_first, process32_next)
4471 (open_thread_token, impersonate_self, revert_to_self)
4472 (get_process_memory_info, get_process_working_set_size)
4473 (global_memory_status, global_memory_status_ex, socket_to_fd)
4474 (shutdown_handler): Make static.
4475
4476 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4477
4478 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4479 (xd_pending_messages): Functions removed.
4480 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4481 order to be compatible with add_read_fd. Determine bus from data,
4482 and call xd_read_message just for this bus.
4483 (xd_add_watch): Use xd_read_queued_messages as callback function.
4484 Add data.
4485
4486 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4487
4488 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4489
4490 * gnutls.c (gnutls_log_function): Add more debugging.
4491 (emacs_gnutls_read): Don't infloop while reading.
4492
4493 2010-09-27 Kenichi Handa <handa@m17n.org>
4494
4495 These changes are to remove restriction on the number of glyphs in
4496 one composition.
4497
4498 * dispextern.h (struct glyph): Change the member "slice" to union.
4499 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
4500 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4501
4502 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4503 instead of glyph->slice.
4504 (marginal_area_string): Likewise.
4505
4506 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4507 glyph->u.cmp.
4508 (append_composite_glyph): Likewise.
4509
4510 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4511 glyph->u.cmp.
4512 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4513 (append_composite_glyph): Likewise.
4514 (fill_image_glyph_string): Use glyph->slice.img instead of
4515 glyph->slice.
4516 (append_glyph, produce_image_glyph, append_stretch_glyph)
4517 (note_mouse_highlight): Likewise.
4518
4519 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4520
4521 * process.c (add_keyboard_wait_descriptor)
4522 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
4523 (wait_reading_process_output): Don't pass write_mask to select
4524 if SELECT_CANT_DO_WRITE_MASK is defined.
4525 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
4526
4527 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4528 (delete_write_fd): Declare.
4529
4530 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4531 (write_mask): New variable.
4532 (max_input_desc): Rename from max_keyboard_desc.
4533 (fd_callback_info): New variable.
4534 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4535 New functions.
4536 (Fmake_network_process): FD_SET write_mask.
4537 (deactivate_process): FD_CLR write_mask.
4538 (wait_reading_process_output): Connecting renamed to Writeok.
4539 check_connect removed. check_write is new. Remove references to gpm.
4540 Use Writeok/check_write unconditionally (i.e. no #ifdef
4541 NON_BLOCKING_CONNECT) instead of Connecting.
4542 Loop over file descriptors and call callbacks in fd_callback_info
4543 if file descriptor is ready for I/O.
4544 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4545 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4546 (keyboard_bit_set): Use max_input_desc.
4547 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4548 Remove #ifdef subprocesses. Use max_input_desc.
4549 (init_process): Initialize write_mask and fd_callback_info.
4550
4551 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4552
4553 * dbusbind.c: Include process.h.
4554 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4555 (xd_read_message_1): New functions.
4556 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4557 Handle watch for both read and write.
4558 (Fdbus_init_bus): Also register xd_toggle_watch.
4559 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4560 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4561 to dbus_connection_flush.
4562 (xd_read_message): Move most of the code to xd_read_message_1.
4563 Call xd_read_message_1 until status is COMPLETE.
4564
4565 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4566
4567 * term.c: Do not include sys/ioctl.h, not needed.
4568 (init_tty): Reorder code to reduce the number of #ifdefs.
4569 No code changes.
4570
4571 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4572
4573 * process.h: Set up GnuTLS support.
4574
4575 * process.c (make_process, Fstart_process)
4576 (read_process_output, send_process): Set up GnuTLS support for
4577 process input/output file descriptors.
4578
4579 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4580
4581 * gnutls.c: The source code for GnuTLS support in Emacs.
4582
4583 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4584
4585 * config.in: Set up GnuTLS support.
4586
4587 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4588 (obj, LIBES): Set up GnuTLS support.
4589
4590 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
4591
4592 * w32.c (get_emacs_configuration_options): Fix previous change.
4593
4594 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
4595
4596 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4597 alive before using it (Bug#6977).
4598
4599 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4600
4601 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4602
4603 * dispextern.h: EMACS_INT/int fixup.
4604
4605 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4606 fixup.
4607
4608 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4609
4610 2010-09-25 Eli Zaretskii <eliz@gnu.org>
4611
4612 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4613 (Fselect_window, window_scroll_pixel_based)
4614 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4615 Use EMACS_INT for buffer positions.
4616
4617 * textprop.c (validate_interval_range, interval_of)
4618 (property_change_between_p, Fadd_text_properties)
4619 (set_text_properties_1, Fremove_text_properties)
4620 (Fremove_list_of_text_properties, Ftext_property_any)
4621 (Ftext_property_not_all, copy_text_properties)
4622 (text_property_list, extend_property_ranges)
4623 (verify_interval_modification): Use EMACS_INT for buffer
4624 positions.
4625
4626 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4627 for buffer positions.
4628
4629 * process.c (read_process_output, send_process)
4630 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4631 and string positions and size.
4632
4633 * print.c (print_object, print_string, strout): Use EMACS_INT for
4634 string indices.
4635
4636 * minibuf.c (string_to_object): Use EMACS_INT for string position
4637 and size.
4638
4639 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4640
4641 * lread.c <read_from_string_index, read_from_string_index_byte>
4642 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4643 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4644 buffer positions and string length.
4645
4646 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4647 EMACS_INT.
4648 (echo_truncate, adjust_point_for_property, read_char)
4649 (gen_help_event, make_lispy_event, modify_event_symbol)
4650 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4651 for buffer positions and string length.
4652
4653 * keyboard.h (gen_help_event): Adjust prototype.
4654
4655 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4656
4657 * commands.h <last_point_position>: Declare EMACS_INT.
4658
4659 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4660 (truncate_echo_area): Accept EMACS_INT argument.
4661
4662 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4663
4664 * lisp.h (truncate_echo_area): Adjust prototype.
4665
4666 * composite.c (composition_adjust_point): Return EMACS_INT.
4667
4668 * composite.h (composition_adjust_point): Adjust prototype.
4669
4670 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
4671
4672 * process.c (Fmake_network_process): When arg :host is 'local,
4673 use address 127.0.0.1, not name "localhost". (Bug#6781)
4674
4675 2010-09-24 Eli Zaretskii <eliz@gnu.org>
4676
4677 * indent.c (Fcurrent_indentation, indented_beyond_p)
4678 (compute_motion): Use EMACS_INT for buffer position variables.
4679
4680 * lisp.h (indented_beyond_p): Adjust prototype.
4681
4682 * buffer.c (overlay_strings): Return EMACS_INT.
4683
4684 * buffer.h (overlay_strings): Adjust prototype.
4685
4686 * region-cache.c (pp_cache): Adjust format to arguments.
4687
4688 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4689 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4690 (verror): Use EMACS_INT for size of allocated buffer.
4691
4692 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4693 positions.
4694
4695 * xdisp.c (redisplay_internal, try_window_id)
4696 (set_cursor_from_row, find_first_unchanged_at_end_row):
4697 Use EMACS_INT for buffer positions.
4698
4699 * dispextern.h (set_cursor_from_row): Adjust prototype.
4700
4701 * dispnew.c (increment_matrix_positions)
4702 (increment_row_positions, copy_glyph_row_contents)
4703 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4704 positions.
4705
4706 * dispextern.h (mode_line_string, marginal_area_string)
4707 (increment_matrix_positions, increment_row_positions):
4708 Adjust prototypes.
4709
4710 * data.c (Faref, Faset): Use EMACS_INT for string length and
4711 positions.
4712
4713 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4714 characters to insert.
4715
4716 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4717 position and size.
4718
4719 * syntax.c (scan_words, update_syntax_table)
4720 (prev_char_comend_first, back_comment, skip_chars)
4721 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4722 Use EMACS_INT for buffer and string positions.
4723
4724 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4725
4726 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4727 positions.
4728
4729 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4730
4731 * scroll.c (calculate_scrolling, line_ins_del)
4732 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4733 conversion.
4734
4735 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4736 (region_cache_backward, region_cache_forward)
4737 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4738 conversion.
4739
4740 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4741
4742 * eval.c (verror): Fix EMACS_INT/int conversion.
4743
4744 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
4745 (print_preprocess, print_check_string_charset_prop)
4746 (print_object): Fix EMACS_INT/int conversion.
4747
4748 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4749
4750 2010-09-24 Eli Zaretskii <eliz@gnu.org>
4751
4752 * callproc.c (Fcall_process): Use EMACS_INT for count of
4753 characters read from the subprocess.
4754
4755 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4756 positions.
4757 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
4758 positions.
4759
4760 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4761 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
4762 length.
4763 (advance_to_char_boundary, Fset_buffer_multibyte)
4764 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
4765 (overlay_touches_p, record_overlay_string, overlay_strings)
4766 (recenter_overlay_lists, fix_start_end_in_overlays)
4767 (modify_overlay, Fmove_overlay, report_overlay_modification)
4768 (evaporate_overlays): Use EMACS_INT for buffer positions.
4769
4770 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
4771 Adjust prototypes.
4772
4773 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
4774 positions.
4775
4776 * fns.c (Fcompare_strings, Fstring_lessp, concat)
4777 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
4778 (Fsubstring_no_properties, substring_both, Ffillarray)
4779 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
4780 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
4781 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
4782 (Fmd5): Use EMACS_INT for buffer and string positions and length
4783 variables and arguments.
4784
4785 * lisp.h (substring_both): Adjust prototype.
4786
4787 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
4788
4789 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
4790 * w32fns.c (clipboard_sequence_fn): Don't declare.
4791 (globals_of_w32fns): Don't initialize it.
4792
4793 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
4794
4795 * syntax.c (back_comment): Detect the case where a 1-char comment
4796 starter is also the 2nd char of a 2-char comment ender.
4797
4798 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
4799
4800 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
4801
4802 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4803
4804 * eval.c (verror): EMACS_INT/int cleanup.
4805
4806 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
4807 unwind_protect more than 2GB worth of functions.
4808
4809 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
4810
4811 * lisp.h: Have oblookup take EMACS_INT to allow interning big
4812 string and avoid compiler warnings.
4813 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
4814 all users.
4815
4816 * lread.c (oblookup): EMACS_INT/int cleanup.
4817
4818 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
4819
4820 2010-09-23 Eli Zaretskii <eliz@gnu.org>
4821
4822 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
4823
4824 * lisp.h (clip_to_bounds): Adjust prototype.
4825
4826 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
4827
4828 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4829
4830 * lisp.h: doprnt.c EMACS_INT/int cleanup.
4831
4832 * doprnt.c (doprnt): EMACS_INT/int cleanup.
4833
4834 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
4835 cleanup.
4836
4837 * lisp.h: Change the definition of all marker.c functions that
4838 take and return buffer stuff to be EMACS_INT instead of int.
4839
4840 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
4841 (buf_charpos_to_bytepos, bytepos_to_charpos)
4842 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
4843 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
4844 for all buffer positions.
4845
4846 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
4847
4848 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4849 (split_interval_right, find_interval, next_interval)
4850 (delete_node, delete_interval, interval_deletion_adjustment)
4851 (adjust_intervals_for_deletion, merge_interval_right)
4852 (merge_interval_left, graft_intervals_into_buffer)
4853 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
4854
4855 * intervals.h (traverse_intervals): Update prototype.
4856
4857 2010-09-23 Eli Zaretskii <eliz@gnu.org>
4858
4859 * indent.c (compute_motion): Use EMACS_INT for arguments to
4860 region_cache_forward.
4861
4862 * region-cache.c (struct boundary, struct region_cache):
4863 Use EMACS_INT for positions.
4864 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
4865 (delete_cache_boundaries, set_cache_region)
4866 (invalidate_region_cache, know_region_cache)
4867 (region_cache_forward, region_cache_backward, pp_cache):
4868 Use EMACS_INT for buffer positions.
4869
4870 * region-cache.h (know_region_cache, invalidate_region_cache)
4871 (region_cache_forward, region_cache_backward): Adjust prototypes.
4872
4873 * search.c (string_match_1, fast_c_string_match_ignore_case)
4874 (looking_at_1, scan_buffer, scan_newline)
4875 (find_next_newline_no_quit, find_before_next_newline)
4876 (search_command, trivial_regexp_p, search_buffer, simple_search)
4877 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
4878 and string positions and length.
4879
4880 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
4881 (find_before_next_newline): Adjust prototypes.
4882
4883 * editfns.c (transpose_markers, update_buffer_properties)
4884 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
4885 (get_pos_property, Fconstrain_to_field)
4886 (Fline_beginning_position, Fline_end_position, Fprevious_char)
4887 (Fchar_after, Fchar_before, Finsert_char)
4888 (Finsert_buffer_substring, Fcompare_buffer_substrings)
4889 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
4890 Use EMACS_INT for buffer and string position variables.
4891 (Finsert_char): Protect against too large insertions.
4892
4893 * lisp.h (clip_to_bounds): Adjust prototype.
4894
4895 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4896 (balance_an_interval, split_interval_right, split_interval_left)
4897 (find_interval, next_interval, update_interval)
4898 (adjust_intervals_for_insertion, delete_node, delete_interval)
4899 (interval_deletion_adjustment, adjust_intervals_for_deletion)
4900 (offset_intervals, merge_interval_right, merge_interval_left)
4901 (graft_intervals_into_buffer, adjust_for_invis_intang)
4902 (move_if_not_intangible, get_local_map, copy_intervals)
4903 (copy_intervals_to_string, compare_string_intervals)
4904 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
4905 and for interval tree size.
4906
4907 * intervals.h (traverse_intervals, split_interval_right)
4908 (split_interval_left, find_interval, offset_intervals)
4909 (graft_intervals_into_buffer, copy_intervals)
4910 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
4911 (update_interval): Adjust prototypes.
4912
4913 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
4914 Use EMACS_INT for buffer position variables and arguments.
4915
4916 * composite.c (get_composition_id, find_composition)
4917 (run_composition_function, compose_text)
4918 (composition_gstring_width, autocmp_chars)
4919 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
4920 for buffer positions and string length variables and arguments.
4921
4922 * composite.h (get_composition_id, find_composition, compose_text)
4923 (composition_gstring_width): Adjust prototypes.
4924
4925 * editfns.c (Fformat): Use EMACS_INT for string size variables.
4926
4927 * xdisp.c (store_mode_line_noprop, display_mode_element):
4928 Use EMACS_INT for string positions.
4929
4930 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
4931 position arguments.
4932
4933 * intervals.h (get_property_and_range): Adjust prototype.
4934
4935 * character.c (parse_str_as_multibyte, str_as_multibyte)
4936 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
4937 (string_count_byte8, string_escape_byte8, c_string_width)
4938 (strwidth, lisp_string_width, multibyte_chars_in_text):
4939 Use EMACS_INT for string length variables and arguments.
4940
4941 * character.h (parse_str_as_multibyte, str_as_multibyte)
4942 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
4943 (c_string_width, strwidth, lisp_string_width):
4944 Adjust prototypes.
4945
4946 * font.c (font_intern_prop): Use EMACS_INT for string length
4947 variables.
4948
4949 * font.c (font_intern_prop): Use EMACS_INT for string length
4950 variables.
4951
4952 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
4953 variables.
4954
4955 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
4956 (Fmake_string): Protect against too large strings.
4957 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4958 (live_misc_p): Use ptrdiff_t instead of int for pointer
4959 differences.
4960 (string_bytes, check_sblock, check_string_free_list)
4961 (allocate_string_data, compact_small_strings, Fmake_string)
4962 (Fmake_bool_vector, make_string, make_unibyte_string)
4963 (make_multibyte_string, make_string_from_bytes)
4964 (make_specified_string_string, Fmake_list, Fmake_vector):
4965 Use EMACS_INT for string length variables and arguments.
4966 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4967 (Fpurecopy): Use EMACS_INT for string size.
4968 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4969 for vector size.
4970
4971 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4972 (make_string_from_bytes, make_specified_string_string)
4973 (make_pure_string, string_bytes, check_point_in_composition):
4974 Adjust prototypes.
4975
4976 2010-09-22 Eli Zaretskii <eliz@gnu.org>
4977
4978 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4979 (check_translation): Use EMACS_INT for buffer positions and
4980 length.
4981
4982 * undo.c (record_marker_adjustment, record_delete)
4983 (record_change, record_point, record_insert)
4984 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4985 buffer positions.
4986
4987 * lisp.h (record_marker_adjustment, record_delete)
4988 (record_change, record_point, record_insert)
4989 (record_property_change, Fprimitive_undo): Adjust prototypes.
4990
4991 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
4992 Eli Zaretskii <eliz@gnu.org>
4993
4994 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
4995
4996 2010-09-22 Eli Zaretskii <eliz@gnu.org>
4997
4998 * minibuf.c (Fminibuffer_contents)
4999 (Fminibuffer_contents_no_properties)
5000 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5001 positions.
5002
5003 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5004 mark.
5005
5006 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5007 (allocate_string_data): Accept EMACS_INT for string length.
5008
5009 * editfns.c (Ffield_string, Ffield_string_no_properties)
5010 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5011 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5012 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5013 (Ffield_end): Use EMACS_INT for buffer positions.
5014
5015 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5016 point with mark.
5017
5018 * lisp.h (allocate_string_data, make_uninit_string)
5019 (make_uninit_multibyte_string, make_buffer_string)
5020 (make_buffer_string_both): Adjust prototypes.
5021
5022 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
5023
5024 * xml.c: Switch to GNU indentation.
5025 (make_dom): Change parse tree format to match xml.el.
5026 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5027 (Fxml_parse_string_internal): Rename from xml-parse-string.
5028
5029 2010-09-22 Kenichi Handa <handa@m17n.org>
5030
5031 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5032 only if we are not at a composition.
5033 (set_iterator_to_next): Give it->end_charpos to
5034 composition_compute_stop_pos.
5035 (set_iterator_to_next, next_element_from_buffer): Likewise.
5036
5037 * dispnew.c (buffer_posn_from_coords): Fix position when the
5038 current display element is a grapheme cluster in bidi-reordered
5039 region.
5040
5041 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5042
5043 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5044 the regions may overlap.
5045
5046 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
5047
5048 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5049
5050 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5051
5052 * emacs.c: Do not include sys/ioctl.h, not needed.
5053
5054 * doprnt.c: Do not include stdlib.h, config.h does it.
5055 Move #include before macro definition.
5056
5057 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5058
5059 * Makefile.in (temacs): Link using $(CC) not $(LD).
5060 (LD_FIRSTFLAG): Define using autoconf.
5061 (LD): Remove.
5062
5063 Remove HAVE_TERMIOS definitions.
5064 * s/usg5-4-common.h (HAVE_TERMIOS):
5065 * s/template.h (HAVE_TERMIOS):
5066 * s/gnu-linux.h (HAVE_TERMIOS):
5067 * s/darwin.h (HAVE_TERMIOS):
5068 * s/cygwin.h (HAVE_TERMIOS):
5069 * s/bsd-common.h (HAVE_TERMIOS):
5070 * s/aix4-2.h (HAVE_TERMIOS):
5071 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5072 defined on all non-MS platforms.
5073 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5074
5075 * xterm.c (xt_action_hook): Use const.
5076
5077 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
5078
5079 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5080 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5081 (gethostname) [!HAVE_SOCKETS]: Remove.
5082 (SOCK_REPLACE_HANDLE): Remove macro.
5083 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5084 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5085 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5086 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5087
5088 2010-09-18 Eli Zaretskii <eliz@gnu.org>
5089
5090 * deps.mk (xml.o): Add dependencies.
5091
5092 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5093 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
5094
5095 * bidi.c (bidi_paragraph_init): Accept an additional argument
5096 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5097 search back until a paragraph with a strong directional character
5098 is found, and use that to determine paragraph's base direction.
5099
5100 * dispextern.h (bidi_paragraph_init): Update prototype.
5101
5102 2010-09-17 Eli Zaretskii <eliz@gnu.org>
5103
5104 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5105 of w32api >= 3.15. (Bug#6989)
5106
5107 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5108
5109 * process.c (wait_reading_process_output): Don't message about
5110 accept-process-output unless the time limit really is zero.
5111
5112 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5113
5114 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5115 int/Lisp_Object mixup).
5116
5117 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5118
5119 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5120 not HELP.
5121
5122 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
5123
5124 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5125 bar's pixel width to Lisp (Bug#7048).
5126
5127 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5128
5129 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5130
5131 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5132
5133 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5134 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5135
5136 2010-09-17 Kenichi Handa <handa@m17n.org>
5137
5138 * ftfont.c (ftfont_check_otf): Fix previous change.
5139
5140 2010-09-14 Kenichi Handa <handa@m17n.org>
5141
5142 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5143 existence of GSUB or GPOS.
5144
5145 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5146
5147 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5148
5149 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5150
5151 * xml.c (parse_buffer): Rename to parse_string(), since that's
5152 what it does.
5153 (parse_string): Return nil when the document can't be parsed.
5154
5155 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5156
5157 * xterm.c (get_current_vm_state): New function.
5158 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5159 want_fullscreen so set_wm_state calls are few (Bug#7013).
5160 (x_handle_net_wm_state): Move code to get_current_vm_state and
5161 call that function.
5162
5163 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
5164
5165 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5166
5167 2010-09-14 Kenichi Handa <handa@m17n.org>
5168
5169 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5170 we may use designation or locking-shift.
5171
5172 2010-09-14 Kenichi Handa <handa@m17n.org>
5173
5174 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5175 sequence when the source is multibyte.
5176
5177 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5178
5179 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5180 Don't make first argument optional. Doc fix.
5181
5182 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5183
5184 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5185 parameters for the doc string.
5186
5187 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5188
5189 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5190
5191 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5192
5193 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5194 (syms_of_fns): Don't defsubr Sy_or_n_p.
5195 * lisp.h: Don't declare Fy_or_n_p.
5196 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5197
5198 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5199
5200 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5201
5202 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5203
5204 * xml.c: New file.
5205 (Fhtml_parse_buffer): New function to interface to the libxml2
5206 html parsing function.
5207
5208 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
5209
5210 * biditype.h: Regenerate.
5211
5212 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5213
5214 * nsimage.m (ns_load_image): Check argument types.
5215
5216 * image.c: Remove all uses of gcpro.
5217 (xpm_load): Check all lisp types.
5218 (pbm_load): Likewise.
5219 (png_load): Likewise.
5220 (jpeg_load): Likewise.
5221 (tiff_load): Likewise.
5222 (gif_load): Likewise.
5223 (imagemagick_load_image): Likewise.
5224 (imagemagick_load): Likewise.
5225 (svg_load): Likewise.
5226 (gs_load): Likewise.
5227
5228 2010-09-04 Eli Zaretskii <eliz@gnu.org>
5229
5230 * w32uniscribe.c (uniscribe_shape): Update commentary.
5231 Don't try to reorder grapheme clusters, since LGSTRING should always
5232 hold them in the logical order.
5233 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5234 return glyph codes in the logical order.
5235
5236 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5237
5238 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5239 (imagemagick_load_image): Fix type mismatch.
5240 (Fimagemagick_types): Likewise. Doc fix.
5241
5242 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5243
5244 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5245
5246 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5247
5248 * xselect.c: Remove declaration of cut-buffer objects and functions.
5249 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5250 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5251 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5252 (Fx_rotate_cut_buffers_internal): Remove.
5253 (syms_of_xselect): Remove defsubr of above.
5254 Remove intern of QCUT_BUFFERn.
5255
5256 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5257
5258 * cmds.c (Vblink_paren_function): Remove.
5259 (internal_self_insert): Make it insert N chars at a time.
5260 Don't call blink-paren-function.
5261 (Fself_insert_command): Adjust accordingly.
5262 (syms_of_cmds): Don't declare blink-paren-function.
5263
5264 2010-08-31 Kenichi Handa <handa@m17n.org>
5265
5266 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5267 characters.
5268
5269 * term.c (encode_terminal_code): Fix the previous change.
5270 (produce_glyphs): Don't set it->char_to_display here.
5271 Don't handle unibyte-display-via-language-environment here.
5272 (produce_special_glyphs): Set temp_it.char_to_display before
5273 calling produce_glyphs.
5274
5275 * xdisp.c (get_next_display_element): Set it->char_to_display
5276 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5277 characters.
5278 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5279 calling PRODUCE_GLYPHS.
5280 (append_space_for_newline): Save and store it->char_to_display.
5281 Set it->char_to_display before calling PRODUCE_GLYPHS.
5282 (extend_face_to_end_of_line): Set it->char_to_display before
5283 calling PRODUCE_GLYPHS.
5284 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5285 character to its byte value.
5286 (get_char_glyph_code): New function.
5287 (produce_stretch_glyph): Set it2.char_to_display too before
5288 calling x_produce_glyphs.
5289 (x_produce_glyphs): Simplify by using the same code for ASCII and
5290 non-ASCII characters. Don't set it->char_to_display here.
5291 Don't handle unibyte-display-via-language-environment here. For a
5292 character of no glyph, use font->space_width instead of FONT_WIDTH.
5293
5294 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5295
5296 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5297
5298 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
5299
5300 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5301
5302 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5303
5304 * marker.c (Fcopy_marker): Make the first arg optional.
5305
5306 2010-08-30 Kenichi Handa <handa@m17n.org>
5307
5308 * composite.c (composition_update_it): Fix computing of
5309 cmp_it->width.
5310
5311 2010-08-29 Kenichi Handa <handa@m17n.org>
5312
5313 * term.c (encode_terminal_code): Encode byte chars to the
5314 corresponding bytes.
5315
5316 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5317
5318 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5319
5320 2010-08-26 Kenichi Handa <handa@m17n.org>
5321
5322 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5323 on calling composition_compute_stop_pos.
5324
5325 2010-08-25 Kenichi Handa <handa@m17n.org>
5326
5327 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5328 :otf.
5329
5330 * composite.c (composition_compute_stop_pos): Don't break
5331 composition at PT.
5332 (composition_reseat_it): Likewise. Fix calculation of character
5333 position starting a composition.
5334 (Fcomposition_get_gstring): Don't limit the number of components
5335 for automatic composition.
5336
5337 2010-08-25 Kenichi Handa <handa@m17n.org>
5338
5339 * composite.c (composition_compute_stop_pos): In forward search,
5340 pay attention to the possibility that some character after ENDPOS
5341 will be composed with charactrs before ENDPOS.
5342
5343 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
5344
5345 * keyboard.c (command_loop_1): Don't clobber primary selection
5346 during handle-switch-frame (Bug#6872).
5347
5348 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
5349
5350 * dbusbind.c: Accept UNIX domain sockets as bus address.
5351 (Fdbus_close_bus): New function.
5352 (Vdbus_registered_buses): New variable.
5353 (xd_initialize): Implement string as bus address.
5354 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5355 (Fdbus_get_unique_name, Fdbus_call_method)
5356 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5357 (Fdbus_method_error_internal, Fdbus_send_signal)
5358 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5359 check. This is done in xd_initialize_bus. Adapt doc string, if
5360 necessary.
5361 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5362 Vdbus_registered_buses.
5363 (Vdbus_registered_objects_table): Create hash.
5364
5365 2010-08-22 Juri Linkov <juri@jurta.org>
5366
5367 * keyboard.c (Fexecute_extended_command): Move reading a command name
5368 with `completing-read' to a new Elisp function `read-extended-command'.
5369 Call it to read a command to `function' (bug#5364, bug#5214).
5370
5371 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5372
5373 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5374
5375 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
5376
5377 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5378 instead of SAFE_ALLOCA.
5379
5380 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5381
5382 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5383 (Bug#6214).
5384
5385 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5386
5387 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5388
5389 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5390
5391 * doc.c (Fsnarf_documentation): Initialize skip_file before
5392 build-files test.
5393
5394 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
5395
5396 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5397 New definitions.
5398 (HAVE_TERMIO): Remove.
5399
5400 2010-08-22 Eli Zaretskii <eliz@gnu.org>
5401
5402 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5403
5404 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5405 for w32.
5406
5407 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5408 it's done in nt/config.nt.
5409
5410 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5411
5412 * unexcoff.c (report_error, make_hdr, write_segment)
5413 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5414 Convert argument lists and prototypes to ANSI C.
5415 (make_hdr, write_segment): Remove unused variables.
5416 (unexec): Remove commented-out line. Initialize `new' to shut up
5417 compiler warnings.
5418
5419 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5420
5421 Simplify termio code.
5422 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5423 HAVE_TERMIO code is obsolete.
5424 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5425 * systty.h: Do not define HAVE_TCATTR.
5426 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5427 Do not define EMACS_HAVE_TTY_PGRP. Only define
5428 EMACS_GET_TTY_PGRP for !DOS_NT.
5429 * sysdep.c: Include sysselect.h unconditionally. Do not include
5430 sys/ioctl.h and termios.h, systty.h does it.
5431 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
5432 (init_baud_rate): Remove HAVE_TERMIO code.
5433 (child_setup_tty): Remove HAVE_TERMIO code.
5434 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5435 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5436 (new_ltchars, new_tchars): Remove, unused.
5437 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
5438 code. Remove special casing for __mips__, it was a no-op.
5439 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
5440 (init_sys_modes): Remove HPUX special case.
5441 * process.c: Include stdlib.h unconditionally. Do not include
5442 fcntl.h, systty.h does it. Remove conditional code for
5443 HAVE_SERIAL, it is always true.
5444 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5445 always true when SIGNALS_VIA_CHARACTERS is true.
5446 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5447 !WINDOWSNT means HAVE_TERMIOS.
5448 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5449 conditional, which is true for all HAVE_TERMIOS systems.
5450 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5451 instead of HAVE_TERMIOS.
5452 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5453 EMACS_HAVE_TTY_PGRP.
5454 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5455 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5456 anyway.
5457
5458 2010-08-21 Eli Zaretskii <eliz@gnu.org>
5459
5460 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5461 mirroring pixel positions.
5462
5463 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5464
5465 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5466 write only.
5467 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5468 malloc_sbrk_used, nothing uses them.
5469
5470 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5471 defined, unconditionally defined in lisp.h.
5472
5473 * term.c: Do not include <termios.h>, systty.h does it.
5474
5475 * s/unixware.h (HAVE_TCATTR):
5476 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5477 systty.h defines it when HAVE_TERMIOS is defined.
5478
5479 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5480
5481 * dispnew.c (buffer_posn_from_coords): Fix last change for text
5482 terminals: add one-character offset for R2L lines.
5483
5484 * emacs.c <emacs_version>: Add a comment regarding
5485 msdos/mainmake.v2's dependency on the syntax of this declaration.
5486
5487 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5488
5489 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5490 position for R2L lines by mirroring the pixel position wrt the
5491 text are box. Improve commentary.
5492
5493 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5494
5495 * image.c (imagemagick_clear_image): Remove debugging output.
5496
5497 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5498
5499 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5500 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5501 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5502 self-insert-face.
5503 (syms_of_cmds): Initialize the new vars.
5504
5505 2010-08-19 Jason Rumney <jasonr@gnu.org>
5506
5507 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5508
5509 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5510
5511 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5512
5513 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5514
5515 2010-08-18 Eli Zaretskii <eliz@gnu.org>
5516
5517 * xterm.c (x_draw_bar_cursor):
5518 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5519 R2L, draw the bar cursor on its right rather than on its left.
5520
5521 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5522
5523 * eval.c (Fdefmacro): Only obey one declaration.
5524
5525 * casefiddle.c (casify_region): Setup gl_state.
5526
5527 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5528
5529 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5530
5531 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5532
5533 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
5534
5535 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
5536
5537 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5538 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5539 QPRIMARY => NXPrimaryPboard.
5540 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5541 NXPrimaryPboard => QPRIMARY.
5542 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5543 NXSecondaryPboard = SecondarySelection.
5544 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5545
5546 2010-08-18 Joakim Verona <joakim@verona.se>
5547
5548 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5549 defined:
5550 (imagemagick_image_p): New function to test for ImageMagic image.
5551 (imagemagick_load): New function to load ImageMagick image.
5552 (imagemagick_load_image): New function, helper for imagemagick_load.
5553 (imagemagick-types): New function.
5554 (Qimagemagick): New Lisp_object.
5555 (imagemagick-render-type): New variable, decides which renderer to use.
5556
5557 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5558
5559 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5560 is a string.
5561
5562 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5563
5564 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5565 x_set_tool_bar_position handler.
5566
5567 2010-08-17 Eli Zaretskii <eliz@gnu.org>
5568
5569 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5570 x_set_tool_bar_position handler, needed to support changes from
5571 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5572
5573 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5574
5575 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
5576 declaration (Bug#6863).
5577 (syms_of_nsselect): Don't intern QPRIMARY.
5578
5579 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5580
5581 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5582
5583 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
5584
5585 * keyboard.c (command_loop_1): Avoid setting selection twice,
5586 since it's done in deactivate-mark as well.
5587 (Vselect_active_regions): Change default to t. Replace `lazy'
5588 with non-default value `only', meaning only set PRIMARY for
5589 temporarily active regions.
5590
5591 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5592 select-active-regions.
5593
5594 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5595
5596 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5597 isn't a string.
5598
5599 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5600
5601 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5602
5603 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5604
5605 * keyboard.c (parse_tool_bar_item): malloc buf.
5606 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5607 new_lbl (Bug#6855).
5608
5609 2010-08-14 Eli Zaretskii <eliz@gnu.org>
5610
5611 * xterm.c (x_draw_stretch_glyph_string):
5612 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5613 the cursor on the right edge of the stretch glyph.
5614
5615 * xdisp.c (window_box_right_offset, window_box_right):
5616 Fix commentary.
5617
5618 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5619 direction when point is inside a run of whitespace characters.
5620
5621 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5622
5623 2010-08-14 Jason Rumney <jasonr@gnu.org>
5624
5625 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5626
5627 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
5628
5629 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5630
5631 2010-08-13 Jason Rumney <jasonr@gnu.org>
5632
5633 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5634 (MessageBoxW_Proc): New function typedef.
5635 (unicode-message-box): New function pointer.
5636 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
5637
5638 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5639
5640 * frame.h (Qtool_bar_position): Declare.
5641
5642 * xfns.c (Fx_create_frame): Call x_default_parameter for
5643 Qtool_bar_position.
5644
5645 2010-08-13 Eli Zaretskii <eliz@gnu.org>
5646
5647 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5648 (report_error, report_error_1): Ditto.
5649 (write_segment): Remove "#if 0" unused code.
5650 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5651 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5652 (start_of_text): Remove unused function (was used only if NO_REMAP
5653 was NOT defined).
5654
5655 * msdos.c (IT_set_face): Fix format string to match argument
5656 types.
5657 (IT_write_glyphs, IT_note_mode_line_highlight)
5658 (IT_set_frame_parameters): Remove unused variables.
5659 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5660 (IT_set_terminal_modes): Disambiguate expression in if clause.
5661 (Fmsdos_remember_default_colors): Return Qnil.
5662 (IT_set_frame_parameters): Add parens to disambiguate boolean
5663 expression for logging the cursor type to termscript.
5664 (keyboard_layout_list, keypad_translate_map)
5665 (grey_key_translate_map): Add braces in inner initializers.
5666 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5667 (dos_rawgetc): Remove unused label.
5668 (XMenuActivate): Add braces to remove ambiguous `else'.
5669 (dos_ttraw): Always return a value.
5670 (spawnve): Declare.
5671 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5672
5673 * dosfns.h (x_set_title): Declare.
5674
5675 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5676 Remove unused variables.
5677
5678 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5679 variables.
5680 (init_dosfns): Declare get_lim_data.
5681 (system_process_attributes): Declare Fget_internal_run_time.
5682
5683 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5684 list to be consistent with menu.h.
5685
5686 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5687 warnings due to mixing of "char *" and "const char *".
5688
5689 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5690
5691 Introduce a new comment style "c" flag.
5692 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5693 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5694 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5695 (syntax_prefix_flag_p): New function.
5696 (Fstring_to_syntax): Understand new "c" flag.
5697 (Finternal_describe_syntax_value): Recognize new flag; use the
5698 SYNTAX_FLAGS_* macros.
5699 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5700 comment style to accomodate the new styles.
5701 (back_comment, forw_comment, Fforward_comment, scan_lists)
5702 (scan_sexps_forward): Update code to obey the new comment style flag.
5703
5704 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5705
5706 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5707
5708 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5709
5710 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5711 first.
5712 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
5713
5714 * gtkutil.h (xg_check_special_colors): Declare.
5715
5716 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5717 (xg_create_frame_widgets): Connect theme name changes to
5718 style_changed_cb.
5719
5720 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5721 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5722 (x_term_init): Use char[] display_opt and name_opt instead of
5723 string literal. file is const char*.
5724
5725 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5726 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5727 props. Free them at the end.
5728
5729 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5730
5731 * xrdb.c (get_system_app): Make path const and use char *p for
5732 non-const char.
5733
5734 * xmenu.c (Fx_popup_dialog): error_name is const char*.
5735 (xmenu_show): error parameter is const char **. pane_string is const
5736 char *.
5737 (button_names): Is const char *.
5738 (xdialog_show): error_name and pane_string is const.
5739
5740 * process.h (synch_process_death): Is const char*.
5741
5742 * w32menu.c (w32_menu_show):
5743 * nsmenu.m (ns_menu_show): error parameter is const char **.
5744
5745 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5746 is const char **.
5747
5748 * menu.c (Fx_popup_menu): error_name is const.
5749
5750 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5751 with unsigned char and XtPointer with void *.
5752
5753 * gtkutil.h: Replace widget_value with struct _widget_value.
5754 (enum button_type, struct _widget_value): Remove and use the one from
5755 keyboard.h.
5756
5757 * gtkutil.c (get_utf8_string): Always return an allocated string.
5758 Parameter is const.
5759 (create_dialog, xg_create_one_menuitem, create_menus)
5760 (xg_item_label_same_p, xg_update_menu_item): Free result from
5761 get_utf8_string.
5762 (xg_separator_p, xg_item_label_same_p): label is const.
5763
5764 * font.h (font_open_by_name): Make name const.
5765
5766 * font.c (font_open_by_name): Make name const.
5767
5768 * floatfns.c (matherr): Use a const char* variable for x->name.
5769
5770 * emacs.c (main): Pass char[] to putenv instead of literal.
5771
5772 * callproc.c (synch_process_death): Make const.
5773 (Fcall_process): Make signame const.
5774
5775 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
5776 (addDisplayItemWithImage): Use const char*.
5777
5778 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
5779 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
5780
5781 * nsfont.m (ns_descriptor_to_entity): Use const char*.
5782
5783 * keyboard.h (_widget_value): name, value and key are const char*.
5784
5785 * unexmacosx.c (unexec_error): Use const char *.
5786
5787 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5788
5789 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
5790 (font_parse_name, font_open_by_name):
5791 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
5792 (font_parse_name, font_open_by_name): Remove const.
5793
5794 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
5795
5796 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
5797 definition.
5798
5799 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
5800 * m/amdx86-64.h: Likewise.
5801 * m/arm.h: Likewise.
5802 * m/hp800.h: Likewise.
5803 * m/ia64.h: Likewise.
5804 * m/ibmrs6000.h: Likewise.
5805 * m/ibms390.h: Likewise.
5806 * m/intel386.h: Likewise.
5807 * m/iris4d.h: Likewise.
5808 * m/m68k.h: Likewise.
5809 * m/macppc.h: Likewise.
5810 * m/mips.h: Likewise.
5811 * m/sh3.h: Likewise.
5812 * m/sparc.h: Likewise.
5813 * m/template.h: Likewise.
5814 * m/vax.h: Likewise.
5815 * m/xtensa.h: Likewise.
5816 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
5817 WORDS_BIG_ENDIAN.
5818 * lisp.h: Likewise.
5819 * md5.c: Likewise.
5820 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
5821
5822 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5823
5824 Use const char* instead of char*.
5825 Reduce the number of warnings with -Wwrite-strings.
5826 * xrdb.c (get_environ_db, get_system_name):
5827 * unexelf.c (find_section):
5828 * term.c (string_cost, string_cost_one_line, per_line_cost)
5829 (get_named_tty, init_tty):
5830 * sysdep.c (sys_subshell):
5831 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
5832 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
5833 * search.c (Freplace_match):
5834 * process.c (Fmake_network_process, send_process, init_process):
5835 * lread.c (Fload, init_lread):
5836 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
5837 * keyboard.c (parse_tool_bar_item, struct event_head):
5838 * gtkutil.h (xg_get_font_name):
5839 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
5840 (make_widget_for_menu_item, make_menu_item, create_menus)
5841 (xg_make_tool_item):
5842 * font.c (parse_matrix, font_parse_name):
5843 * floatfns.c (rounding_driver, float_error_fn_name):
5844 * filelock.c (get_boot_time_1, lock_file_1):
5845 * fileio.c (barf_or_query_if_file_exists, check_writable):
5846 * editfns.c (get_system_name, get_operating_system_release)
5847 (Fencode_time, Fset_time_zone_rule):
5848 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
5849 * buffer.c (defvar_per_buffer): Use const.
5850
5851 2010-08-08 Kenichi Handa <handa@m17n.org>
5852
5853 * charset.c: Include <stdlib.h>.
5854 (struct charset_sort_data): New struct.
5855 (charset_compare): New function.
5856 (Fsort_charsets): New function.
5857 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
5858
5859 * coding.c (decode_coding_iso_2022): Fix checking of dimension
5860 number in CTEXT extended segment.
5861
5862 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
5863
5864 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
5865 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
5866
5867 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
5868
5869 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
5870 (Fhash_table_size): Fix typos in docstrings.
5871 (Fmake_hash_table): Doc fix.
5872
5873 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
5874
5875 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
5876 Doc fix (bug#5625).
5877
5878 2010-08-08 Ken Brown <kbrown@cornell.edu>
5879
5880 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
5881 the MSDOS definition.
5882
5883 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
5884
5885 Use const char* instead of char*.
5886 * xterm.c (x_create_toolkit_scroll_bar):
5887 * xfont.c (xfont_list_pattern):
5888 * xfns.c (x_default_scroll_bar_color_parameter)
5889 (xic_create_fontsetname, x_default_font_parameter)
5890 (x_screen_planes):
5891 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
5892 (store_mode_line_string, decode_mode_spec, display_string):
5893 * menu.c (digest_single_submenu):
5894 * keymap.h (initial_define_key, initial_define_lispy_key):
5895 * keymap.c (initial_define_key, initial_define_lispy_key):
5896 * image.c (image_error, image_keyword):
5897 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
5898 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
5899 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
5900 (ftfont_list, ftfont_match):
5901 * frame.c (frame_parm_table):
5902 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5903 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5904 (font_add_log, font_deferred_log):
5905 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5906 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5907 (font_add_log, font_deferred_log):
5908 * emacs.c (argmatch):
5909 * dispextern.h (struct it):
5910 * coding.c (ENCODE_DESIGNATION):
5911 * charset.c (define_charset_internal): Use const.
5912
5913 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
5914
5915 * xrdb.c: Remove include guard.
5916 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
5917 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
5918 realloc->xrealloc instead of using #defines.
5919
5920 2010-08-08 Eli Zaretskii <eliz@gnu.org>
5921
5922 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
5923 * editfns.c (Fline_beginning_position, Fline_end_position):
5924 State in the doc strings that start and end of line are in the
5925 logical order.
5926
5927 * xdisp.c (display_line): Move the handling of overlay arrow after
5928 the call to find_row_edges. (Bug#6699)
5929
5930 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
5931
5932 * keyboard.c (command_loop_1):
5933 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
5934
5935 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
5936
5937 * insdel.c (prepare_to_modify_buffer): Save active region text to
5938 Vsaved_region_selection.
5939
5940 * xselect.c (QPRIMARY): Move to keyboard.c.
5941
5942 * keyboard.c (Vselect_active_regions): Move from simple.el.
5943 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
5944 (command_loop_1): Set window selection prior to deactivating the mark.
5945
5946 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
5947
5948 * alloc.c (lisp_malloc):
5949 * buffer.c (set_buffer_internal, set_buffer_internal_1):
5950 * charset.h (emacs_mule_charset):
5951 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
5952 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
5953 (bitch_at_user):
5954 * lisp.h (Fcheck_coding_system, Fget_text_property)
5955 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
5956 Remove duplicate declarations.
5957
5958 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5959
5960 * process.c: Simplify include logic.
5961
5962 * keyboard.h (quit_char): Add declaration.
5963 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
5964 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5965 Add declarations.
5966 * sysdep.c:
5967 * w32.c: Remove the above declarations.
5968
5969 Remove extern declarations in .c files, .h files have them.
5970 * xterm.c:
5971 * xdisp.c:
5972 * msdos.c:
5973 * image.c:
5974 * gtkutil.c:
5975 * fileio.c:
5976 * eval.c: Remove declarations.
5977
5978 * frame.c (frame_params): Make const.
5979
5980 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5981
5982 * emacs.c (emacs_copyright, emacs_version): Make static.
5983 (Vinitial_window_system, Vauto_save_list_file_name)
5984 (Vinhibit_redisplay): Remove declarations.
5985 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5986 for AIX.
5987
5988 Use const for some arrays and functions.
5989 * xterm.h (xg_set_icon_from_xpm_data):
5990 * xfns.c (xg_set_icon_from_xpm_data):
5991 * term.c (fkeys):
5992 * keyboard.c (lispy_accent_keys, lispy_function_keys)
5993 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
5994 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
5995 (frame.c frame_parms):
5996 * emacs-icon.h (gnu_xpm_bits):
5997 * callint.c (callint_argfuns): Use const.
5998
5999 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6000
6001 * sysdep.c: Move include term.h last of includes (Bug#6812).
6002
6003 2010-08-06 Eli Zaretskii <eliz@gnu.org>
6004
6005 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6006
6007 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6008
6009 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6010
6011 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6012
6013 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6014
6015 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6016
6017 * xterm.h (x_get_focus_frame): Declare.
6018
6019 * keyboard.h (poll_for_input_1): Unconditionally declare.
6020
6021 * nsterm.h (x_set_menu_bar_lines): Declare.
6022
6023 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6024
6025 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6026
6027 * window.c: Include menu.h.
6028
6029 * unexmacosx.c (print_region_list, print_regions)
6030 (build_region_list, find_emacs_zone_regions)
6031 (unexec_regions_merge, read_load_commands, dump_it)
6032 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6033
6034 * term.c: Check HAVE_SYS_IOCTL_H.
6035
6036 * sysdep.c: Check HAVE_TERM_H.
6037
6038 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
6039
6040 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6041 (ns_ring_bell, ns_defined_color, hide_hourglass)
6042 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6043 Convert to ANSI C prototypes.
6044 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6045 before code.
6046
6047 * nsterm.h : Include sysselect.h.
6048 (x_sync, x_get_focus_frame, x_set_mouse_position)
6049 (x_set_mouse_pixel_position, x_make_frame_visible)
6050 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6051 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6052 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6053 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
6054 Declare.
6055
6056 * nsmenu.m (popup_activated, name_is_separator)
6057 (syms_of_nsmenu): Convert to ANSI C prototypes.
6058 (runMenuAt): Prototypes and move declarations before code.
6059
6060 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6061
6062 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6063 prototypes.
6064
6065 * nsfns.m (have_menus_p, ns_display_info_for_name)
6066 (x_set_cursor_type, ns_appkit_version_str)
6067 (ns_appkit_version_int, ns_do_applescript)
6068 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6069 (syms_of_nsfns): Convert to ANSI C prototypes.
6070
6071 * menu.h (x_set_menu_bar_line): Declare.
6072 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6073
6074 * lisp.h (fmod_float): Declare.
6075
6076 * image.c (xpm_scan, xpm_make_color_table_v)
6077 (xpm_put_color_table_v, xpm_get_color_table_v)
6078 (xpm_make_color_table_h, xpm_put_color_table_h)
6079 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6080 (xpm_load): Convert to ANSI C prototypes.
6081
6082 * emacs.c: Include nsterm.h if HAVE_NS.
6083
6084 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6085
6086 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6087
6088 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6089 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6090 (socket_options): Use const char* for name.
6091
6092 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6093
6094 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6095
6096 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6097 Don't declare xmalloc_widget_value and digest_single_submenu.
6098
6099 * w32font.c (Qlatin): Remove declaration.
6100
6101 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6102
6103 * dired.c (compile_pattern): Restore declaration.
6104
6105 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6106
6107 Remove extern declarations in .c files, .h files have them.
6108 * data.c:
6109 * dired.c:
6110 * editfns.c:
6111 * filelock.c:
6112 * fns.c:
6113 * font.c:
6114 * fontset.c:
6115 * frame.c:
6116 * fringe.c:
6117 * ftfont.c:
6118 * gtkutil.c:
6119 * indent.c:
6120 * keyboard.c:
6121 * keymap.c:
6122 * lread.c:
6123 * menu.c:
6124 * print.c:
6125 * search.c:
6126 * sound.c:
6127 * window.c:
6128 * xdisp.c:
6129 * xfaces.c:
6130 * xfns.c:
6131 * xfont.c:
6132 * xftfont.c:
6133 * xmenu.c:
6134 * xterm.c: Remove declarations.
6135
6136 Cleanup syssignal.h.
6137 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6138 (main_thread): Move down to remove #ifdef.
6139 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6140 Remove conditional definition following unconditional ones.
6141
6142 * lisp.h: Remove HAVE_SHM code, unused.
6143 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6144 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6145 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6146 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6147 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6148 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6149 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6150 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6151 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6152 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6153 (Qwindow_scroll_functions, Vafter_load_alist)
6154 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6155 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6156 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6157 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6158 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6159 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6160 (initial_argv, last_nonmenu_event, load_in_progress)
6161 (noninteractive_need_newline, scroll_margin): Add declarations.
6162
6163 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6164 Remove declarations, menu.h has them.
6165 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6166 (Vinput_method_function, Qinput_method_function)
6167 (Qevent_symbol_element_mask, last_event_timestamp):
6168 * dispextern.h (Voverflow_newline_into_fringe):
6169 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6170 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6171 (syms_of_w32font, syms_of_nsfont):
6172 * fontset.h (find_font_encoding, Qlatin):
6173 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6174 (Vtool_bar_mode, set_frame_menubar):
6175 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6176 * xterm.h (Qx_gtk_map_stock):
6177 * keymap.h (meta_prefix_char): Add declarations.
6178
6179 * term.c: Remove dead code.
6180
6181 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6182 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6183 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6184 which is what was there before BSD_PGRPS was removed.
6185
6186 2010-08-05 Eli Zaretskii <eliz@gnu.org>
6187
6188 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6189
6190 * unexcoff.c: Renamed from unexec.c.
6191
6192 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6193
6194 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6195
6196 2010-08-03 Johan Bockgård <bojohan@gnu.org>
6197
6198 * data.c (Flocal_variable_p): Handle variable aliases correctly.
6199 (Bug#6744)
6200
6201 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6202
6203 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6204 to TRUE if depth of screen is < 16.
6205
6206 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6207 USE_GTK_TOOLTIP.
6208 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6209 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
6210 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
6211 USE_GTK_TOOLTIP.
6212 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6213
6214 * xterm.h (USE_GTK_TOOLTIP): New define.
6215 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6216
6217 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6218 to Control-D (Bug#6771).
6219
6220 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
6221
6222 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6223 Wording by Drew Adams <drew.adams@oracle.com>.
6224
6225 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6226
6227 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6228 ttip_lbl.
6229
6230 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6231 calling gtk_widget_queue_draw.
6232 (x_free_frame_resources): Call xg_free_frame_widgets.
6233
6234 * xfns.c (x_gtk_use_system_tooltips): New variable.
6235 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6236 new gtkutil tooltip functions to show the tooltip.
6237 (Fx_hide_tip): Call xg_hide_tooltip.
6238 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6239
6240 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6241 (xg_show_tooltip, xg_hide_tooltip): Declare.
6242
6243 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6244 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6245 New functions.
6246 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6247 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6248 Remove code that is commented out.
6249
6250 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6251
6252 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6253
6254 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
6255
6256 * xselect.c (x_own_selection): Use list4.
6257
6258 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6259
6260 * buffer.c (Qwindow): Do not define, already defined in data.c.
6261 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6262
6263 2010-07-29 Chad Brown <yandros@mit.edu>
6264
6265 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6266 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6267 * config.in: Undef HAVE_DIRENT_H.
6268 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6269 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6270
6271 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6272
6273 Rename s/usg5-4.h -> s/usg5-4-common.h.
6274 * s/usg5-4.h: Rename file to ...
6275 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6276 * s/unixware.h:
6277 * s/sol2-6.h:
6278 * s/irix6-5.h: Update includes accordingly.
6279
6280 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6281
6282 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6283
6284 * xterm.h (struct x_output): Add toolbar_top_height,
6285 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6286 Remove toolbar_height.
6287 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6288 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6289 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6290 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6291
6292 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6293
6294 * xfns.c (x_set_tool_bar_position): New function.
6295 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6296 (x_frame_parm_handlers): Add x_set_tool_bar_position.
6297 (syms_of_xfns): If USE_GTK, provide move-toolbar.
6298
6299 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6300 and FRAME_TOOLBAR_LEFT_WIDTH.
6301
6302 * gtkutil.h (xg_change_toolbar_position): Declare.
6303
6304 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6305 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6306 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6307 (xg_create_frame_widgets): Create a hobox for placing widgets
6308 vertically. Use gtk_box_pack_start.
6309 (xg_height_or_width_changed): Rename from xg_height_changed.
6310 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6311 (xg_update_frame_menubar, free_frame_menubar): Change to
6312 xg_height_or_width_changed.
6313 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6314 size correctly. Remove hardcoded 4, instead use handlebox size -
6315 toolbar size.
6316 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
6317 size correctly. Use handlebox size + toolbar size as additional size.
6318 (xg_pack_tool_bar): POS is a new parameter.
6319 Set orientation of tool bar based on pos.
6320 Only make handlebox_widget if NULL.
6321 Check if tool bar goes to vbox or hbox depending on pos.
6322 (xg_update_tool_bar_sizes): New function.
6323 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
6324 height, call xg_update_tool_bar_sizes instead.
6325 (free_frame_tool_bar): Remove from hbox or vbox depending on
6326 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6327 (xg_change_toolbar_position): New function.
6328
6329 * frame.h (struct frame): Add tool_bar_position.
6330 (Qbottom): Declare.
6331
6332 * frame.c (Qtool_bar_position): New variable.
6333 (make_frame): Set tool_bar_position to Qtop.
6334 (frame_parms): Add tool-bar-position.
6335 (x_report_frame_params): Store tool_bar_position.
6336 (x_set_fringe_width): Reset wm size hint after fringe changes.
6337
6338 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6339
6340 Make lisp_time_argument declaration work on all systems.
6341 * lisp.h (lisp_time_argument): Move declaration ...
6342 * systime.h (lisp_time_argument): ... here
6343 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6344
6345 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6346
6347 * vm-limit.c (POINTER): Add typedef for it.
6348 (start_of_data): Change return type from POINTER to char *.
6349
6350 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6351 HAVE_WINDOW_SYSTEM.
6352
6353 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6354
6355 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6356 Remove reference to __osf__, unused.
6357
6358 * mem-limits.h: Remove duplicated includes.
6359 (NULL): Remove definition, unused.
6360 (POINTER): Remove definition.
6361 (start_of_data): Use char* in prototype, as the function
6362 definition does.
6363
6364 Remove extern declarations from .c files, and them to .h files.
6365 * keyboard.h (Qhelp_echo, waiting_for_input)
6366 (input_available_clear_time, ignore_mouse_drag_p)
6367 (Vdouble_click_time, real_this_command, Vthis_original_command):
6368 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6369 (Voverriding_local_map_menu_flag):
6370 * lisp.h (Qinteractive_form, use_file_dialog)
6371 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6372 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6373 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6374 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6375 (Qfunction, debug_on_next_call, Qfield)
6376 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6377 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6378 (Qfile_directory_p, Qinsert_file_contents)
6379 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6380 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6381 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6382 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6383 (Qminibuffer_prompt)
6384 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6385 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6386 (gray_bitmap_bits, xic_create_fontsetname):
6387 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6388
6389 * xsmfns.c (Vuser_login_name):
6390 * xrdb.c (Vdouble_click_time):
6391 * xfaces.c (xic_create_fontsetname):
6392 * w32select.c (waiting_for_input):
6393 * print.c (minibuffer_auto_raise):
6394 * msdos.c (Qhelp_echo):
6395 * macros.c (real_this_command):
6396 * keymap.c (Voverriding_local_map):
6397 * xterm.c (poll_for_input_1, gray_bitmap_width)
6398 (gray_bitmap_height, gray_bitmap_bits;
6399 * xmenu.c ( Voverriding_local_map)
6400 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6401 (use_file_dialog, Xt_app_con):
6402 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6403 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6404 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6405 (Qtool_bar_lines, ignore_mouse_drag_p):
6406 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6407 (Qrear_nonsticky, nconc2):
6408 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6409 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6410 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6411 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6412 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6413 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6414 (gc_in_progress):
6415 * doc.c (Voverriding_local_map, Qremap):
6416 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6417 (Vcompletion_regexp_list):
6418 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6419 (Qcompletion_ignore_case):
6420 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6421 (Vhistory_length, Vthis_original_command, real_this_command)
6422 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6423 * image.c (Qrisky_local_variable):
6424 * fontset.c (QCname):
6425 * fns.c (minibuffer_auto_raise, QCname):
6426 * dispnew.c (char_ins_del_cost):
6427 * composite.c (font_fill_lglyph_metrics):
6428 * cmds.c (Qface, Vtranslation_table_for_input):
6429 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6430 * ccl.c (charset_unicode):
6431 * callproc.c (Vtemporary_file_directory):
6432 * buffer.c (emacs_strerror): Remove extern declarations.
6433
6434 * data.c (Qwindow): Make non-static, used from other files too.
6435 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6436
6437 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6438 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6439 * s/usg5-4.h (COFF):
6440 * s/template.h:
6441 * s/msdos.h (COFF, NO_REMAP):
6442 * s/ms-w32.h (NO_REMAP):
6443 * s/hpux10-20.h (NO_REMAP):
6444 * m/sparc.h (SEGMENT_MASK):
6445 * m/m68k.h (NO_REMAP):
6446 * m/intel386.h (SEGMENT_MASK):
6447 * m/arm.h (NO_REMAP):
6448 * m/alpha.h (COFF):
6449 * m/template.h: Remove references to unused defines.
6450
6451 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6452
6453 * xsettings.c (Ftool_bar_get_system_style): Also check for
6454 Qtext_image_horiz.
6455
6456 * xdisp.c (Qtext_image_horiz): Define.
6457 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
6458 to documentation of tool-bar-style.
6459
6460 * lisp.h (Qtext_image_horiz): Declare.
6461
6462 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6463 style text_image_horiz.
6464
6465 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6466
6467 * emacs.c (Fkill_emacs): Remove return statement.
6468
6469 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6470 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
6471 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6472 Remove local extern declarations.
6473
6474 * xmenu.c: Do not included lwlib.h, not needed.
6475
6476 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6477
6478 * process.c: Move definitions earlier to minimize #ifdefs.
6479
6480 * xterm.h (x_get_customization_string, x_load_resources)
6481 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6482 (x_check_errors, x_property_data_to_lisp, defined_color)
6483 (xic_set_xfontset, x_defined_color): Use const.
6484
6485 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6486 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6487
6488 * xselect.c (selection_data_to_lisp_data)
6489 (x_property_data_to_lisp):
6490 * xrdb.c (x_get_string_resource, file_p)
6491 (x_get_customization_string, magic_file_p, search_magic_path)
6492 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6493 (x_get_string_resource): Use const.
6494
6495 * xfns.c: Include xlwmenu.h when USE_LUCID.
6496 (x_defined_color, xic_set_xfontset): Use const.
6497 (Fx_hide_tip): Remove local extern declaration.
6498
6499 * xfaces.c (Qmouse_face): Remove declaration.
6500 (face_color_gray_p, tty_defined_color, defined_color)
6501 (face_color_gray_p, face_color_supported_p): Add const.
6502
6503 * xdisp.c (do_mouse_tracking): Remove declaration.
6504 (add_to_log): Use const.
6505
6506 * minibuf.c (Qmouse_face): Remove declaration.
6507
6508 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6509
6510 * keyboard.h (do_mouse_tracking): Add declaration.
6511
6512 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6513 (QCdata, QCtype, Qcenter): Remove declarations.
6514
6515 * frame.c (x_get_resource_string, x_get_string_resource)
6516 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6517 (x_default_parameter): Use const.
6518
6519 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6520 (QCheight, QCsize, QCname): Remove declarations.
6521
6522 * emacs.c (main): Remove local extern declaration.
6523
6524 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6525 declarations.
6526
6527 * dispnew.c: Remove duplicate #include <unistd.h>.
6528 (update_window, update_frame_1, init_display): Remove local extern
6529 declarations.
6530
6531 * dispextern.h (add_to_log): Remove declaration.
6532 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6533 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6534
6535 * dired.c (scmp): Add const.
6536 (directory_files_internal): Remove local extern declaration.
6537
6538 * data.c (Finteractive_form): Use const.
6539
6540 * composite.c (syms_of_composite): Remove local extern declarations.
6541
6542 * charset.c (add_to_log): Remove declaration.
6543
6544 * character.c (strwidth, parse_str_to_multibyte): Add const.
6545
6546 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6547
6548 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6549
6550 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
6551 (Lisp_Subr): Make doc and intspec constant.
6552 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6553 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6554 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6555 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6556 (display_arg): Add declarations.
6557
6558 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
6559
6560 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6561
6562 * window.c (Fwindow_height): Doc fix (bug#6518).
6563
6564 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
6565
6566 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6567
6568 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6569
6570 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6571 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6572 functions.
6573
6574 * frame.h (Qtty_color_mode): Add declaration.
6575
6576 * lisp.h (Ftop_level, Fexit_recursive_edit)
6577 (Fabort_recursive_edit): Mark as NO_RETURN.
6578
6579 2010-07-26 Kenichi Handa <handa@m17n.org>
6580
6581 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
6582 number of glyphs gets smaller than the original length. (Bug#6621)
6583
6584 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
6585
6586 * lread.c (unreadpure, mapatoms_1): Make static.
6587
6588 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
6589
6590 * terminfo.c (tparam): Fix prototype of tparm.
6591
6592 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6593
6594 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6595 find start of text segment.
6596 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6597 is defined.
6598
6599 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6600
6601 2010-07-25 Ken Brown <kbrown@cornell.edu>
6602
6603 * vm-limit.c (check_memory_limits): Fix previous change;
6604 accidentally reverted an earlier change.
6605
6606 2010-07-25 Ken Brown <kbrown@cornell.edu>
6607
6608 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6609 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6610
6611 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
6612
6613 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6614 * dired.c (opendir, readdir): Fix prototypes.
6615 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6616 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6617 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6618 (telldir): Remove declaration.
6619 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6620 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6621 * syssignal.h (strsignal): Fix prototype.
6622 * term.c (tparam): Fix prototype.
6623 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6624 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6625 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6626 and __morecore.
6627 * w32gui.h (XParseGeometry): Fix prototype.
6628 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6629 * w32term.c (my_set_focus): Declare inside #if 0.
6630 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6631 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6632 (drain_message_queue, get_next_msg, post_msg, parse_button)
6633 (ClipboardSequence_Proc): Fix prototypes.
6634 (wait_for_sync): Remove declaration.
6635
6636 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
6637
6638 * w32fns.c (w32_to_x_color): Remove, unused.
6639
6640 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6641
6642 * lisp.h: Remove leftover P_.
6643
6644 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6645
6646 * ecrt0.c, unexalpha.c: Remove files, unused.
6647
6648 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6649
6650 * cmds.c (internal_self_insert): Make static.
6651 * lisp.h (internal_self_insert): Remove declaration.
6652
6653 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
6654
6655 * alloc.c (free_float):
6656 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6657 * frame.c (delete_frame_handler):
6658 * ralloc.c (reorder_bloc):
6659 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6660 Remove unused static functions.
6661
6662 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6663 it is called only from NS code.
6664
6665 * w32term.c (my_set_focus): #ifdef away; it is called only from
6666 "#ifdef 0" code.
6667
6668 * w32fns.c (x_edge_detection):
6669 * xfaces.c (may_use_scalable_font_p):
6670 Remove obsolete static declarations.
6671
6672 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
6673
6674 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6675 (emacs_blocked_realloc, uninterrupt_malloc):
6676 * fringe.c (w32_reset_fringes):
6677 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6678 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6679 * sound.c (be2hs, do_play_sound):
6680 * vm-limit.c (get_lim_data, ret_lim_data):
6681 * w32term.c (x_free_frame_resources):
6682 * xfaces.c (x_create_gc, x_free_gc):
6683 Convert definitions to standard C.
6684
6685 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6686
6687 * eval.c (Feval, Ffuncall): Use the new names.
6688
6689 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6690 (DEFUN): Add braces around the union initialisation and use ## to
6691 specify the right union alternative and avoid a cast.
6692
6693 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
6694
6695 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6696
6697 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
6698
6699 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6700
6701 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6702
6703 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6704 is related to the menu bar (Bug#6499).
6705 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
6706
6707 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6708
6709 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6710
6711 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6712
6713 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6714 i.e. don't put back ButtonRelease (Bug#6608).
6715
6716 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6717 instead of Window. Call xg_event_is_for_menubar when
6718 USE_GTK (Bug#6499).
6719
6720 * gtkutil.h (xg_event_is_for_menubar): Declare.
6721
6722 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6723
6724 2010-07-16 Eli Zaretskii <eliz@gnu.org>
6725
6726 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6727 when it's the same as the old foreground. (Bug#6609)
6728
6729 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6730
6731 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6732 widget is non-null (Bug#6645).
6733
6734 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6735
6736 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6737 Convert old-style definition.
6738
6739 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6740 timestamp argument.
6741
6742 2010-07-15 Eli Zaretskii <eliz@gnu.org>
6743
6744 * fringe.c (update_window_fringes): Restore mistakenly reverted
6745 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6746
6747 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6748
6749 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6750 (SET_SAVED_KEY_EVENT): Remove (not used).
6751 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6752 remove size parameter.
6753 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6754 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6755 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6756 ButtonRelease.
6757 (x_set_window_size_1): scroll_bar_actual_width is always
6758 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
6759
6760 * xdisp.c (pending_menu_activation): Remove extern declaration.
6761 (prepare_menu_bars): Remove setting of pending_menu_activation.
6762
6763 * xmenu.c (pending_menu_activation): Remove.
6764 (x_activate_menubar): Set popup_activated_flag for Xt also.
6765 Remove setting of pending_menu_activation.
6766 (set_frame_menubar): Remove check of pending_menu_activation.
6767 Declare menubar_size before code. Correct spelling in comment.
6768
6769 2010-07-14 Kenichi Handa <handa@m17n.org>
6770
6771 * font.c (font_open_entity): Cancel previous change.
6772 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
6773
6774 2010-07-13 Eli Zaretskii <eliz@gnu.org>
6775
6776 Remove subprocesses #ifdefs.
6777 * process.c <inhibit_sentinels>: Move to the common part.
6778 (Fwaiting_for_user_input_p): Move to the common part; return nil
6779 if async subprocesses aren't supported.
6780 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
6781 MS-DOS. Remove "#ifdef subprocesses".
6782 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
6783 (gettimeofday): Remove "#ifdef subprocesses".
6784 (wait_without_blocking): Remove function.
6785 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
6786 Remove "#ifdef subprocesses".
6787 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
6788 compiled on MS-DOS.
6789 * callproc.c (Fcall_process) [!MSDOS]: Don't call
6790 wait_for_termination on MS-DOS.
6791 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
6792 initialization of inhibit_sentinels.
6793 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
6794 subprocesses" conditional.
6795 * callproc.c (Fcall_process) [!subprocesses]: Don't call
6796 wait_for_termination, since `buffer' cannot be an integer when
6797 async subprocesses are not supported
6798 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
6799 for ifdefing away the call to Fprocess_status.
6800
6801 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
6802 away the entire body of the function.
6803
6804 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6805
6806 Remove subprocesses #ifdefs from term.c.
6807 * process.c (add_keyboard_wait_descriptor)
6808 (delete_keyboard_wait_descriptor): Move to common section, do
6809 nothing when subprocesses is not defined.
6810 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
6811 Remove subprocesses #ifdefs.
6812
6813 Convert maybe_fatal to standard C.
6814 * lisp.h (verror): Declare.
6815 * eval.c (verror): New function containing the code from ...
6816 (error): ... this. Call verror.
6817 * term.c (vfatal): New function containing the code from ...
6818 (fatal): ... this. Call vfatal.
6819 (maybe_fatal): Convert to standard C, use variable number of
6820 arguments. Declare as non-return.
6821 (init_tty): Fix maybe_fatal call.
6822
6823 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6824
6825 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
6826 (_scroll_bar_note_movement): Convert definitions to standard C.
6827 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
6828 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
6829
6830 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6831
6832 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
6833 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
6834 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
6835 (xaw_jump_callback, xaw_scroll_callback)
6836 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
6837 (x_wm_set_size_hint, x_activate_timeout_atimer):
6838 Convert definitions to standard C.
6839 * xmenu.c (menubar_id_to_frame, popup_get_selection)
6840 (popup_activate_callback, popup_deactivate_callback)
6841 (menu_highlight_callback, menubar_selection_callback)
6842 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
6843 (free_frame_menubar, popup_selection_callback, as)
6844 (create_and_show_popup_menu, dialog_selection_callback)
6845 (create_and_show_dialog):
6846 * xfns.c (hack_wm_protocols, x_window):
6847 * xfaces.c (x_update_menu_appearance):
6848 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
6849 (char_to_pixel_size, round_size_to_char, get_wm_shell)
6850 (set_frame_size, update_wm_hints, setup_frame_gcs)
6851 (update_various_frame_slots, update_from_various_frame_slots)
6852 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
6853 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
6854 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
6855
6856 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6857
6858 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
6859
6860 2010-07-12 Eli Zaretskii <eliz@gnu.org>
6861
6862 * process.c (setup_process_coding_systems): Move to the part
6863 shared by non-subprocesses systems, and make its body empty when
6864 subprocesses is not defined.
6865 (close_process_descs): Move to the part shared by non-subprocesses
6866 systems.
6867 (wait_reading_process_output) [!subprocesses]: Convert arg list to
6868 ANSI C.
6869
6870 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6871
6872 * editfns.c (transpose_markers): Convert old-style definition.
6873 * emacs.c (abort, shut_down_emacs, fixup_locale)
6874 (synchronize_system_time_locale)
6875 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
6876 * floatfns.c (extract_float, matherr, init_floatfns)
6877 (syms_of_floatfns): Likewise.
6878 * fns.c (make_hash_table): Likewise.
6879 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
6880 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
6881 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
6882 (ftfont_variation_glyphs): Likewise.
6883 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
6884 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
6885 * lread.c (read_filtered_event): Likewise.
6886 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
6887 * process.c (wait_reading_process_output): Likewise.
6888 * scroll.c (do_line_insertion_deletion_costs): Likewise.
6889 * search.c (search_buffer, boyer_moore): Likewise.
6890 * syntax.c (scan_sexps_forward): Likewise.
6891 * xdisp.c (try_scrolling): Likewise.
6892 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6893 (face_at_string_position): Likewise.
6894 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
6895 * xselect.c (x_get_window_property, receive_incremental_selection)
6896 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
6897 Likewise.
6898 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
6899
6900 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6901
6902 * callproc.c (child_setup): Remove subprocesses conditional.
6903 Remove code dealing with SET_EMACS_PRIORITY, unused.
6904
6905 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
6906 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
6907
6908 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
6909 (__do_global_dtors, __main): Use void in definition.
6910 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
6911 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
6912 the only users from ...
6913 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
6914 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
6915 (HAVE_VOLATILE): Remove, unused.
6916
6917 Convert more function definitions to standard C.
6918 * xdisp.c (window_box_edges, handle_single_display_spec)
6919 (display_string): Convert definition to standard C.
6920 * scroll.c (do_direct_scrolling, scrolling_1):
6921 * dispnew.c (allocate_matrices_for_frame_redisplay)
6922 (mirrored_line_dance):
6923 * coding.c (code_convert_string):
6924 * charset.c (map_charset_chars):
6925 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
6926 (Fregister_ccl_program, Fregister_code_conversion_map):
6927 * keyboard.c (kbd_buffer_nr_stored): Likewise.
6928 (head_table): Make static and const.
6929
6930 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6931
6932 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
6933 (PROFILING_LDFLAGS): Set from substitution.
6934 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
6935 CFLAGS last.
6936
6937 2010-07-12 Kenichi Handa <handa@m17n.org>
6938
6939 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
6940 (shortlisp): Likewise.
6941
6942 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
6943
6944 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
6945 of FONT_ENTITY_INDEX.
6946 (Ffont_get): If KEY is :otf and the font-object doesn't have the
6947 property, get the property value dynamically.
6948 (Ffont_put): Accept font-entity and font-object too.
6949 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
6950 return value changed.
6951 (syms_of_font): Adjust for the above change.
6952
6953 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6954
6955 * blockinput.h: Remove obsolete comment.
6956
6957 * lisp.h: Include <stddef.h>.
6958 (OFFSETOF): Don't define.
6959 (VECSIZE): Use offsetof instead of OFFSETOF.
6960 (PSEUDOVECSIZE): Likewise.
6961 * process.c (conv_sockaddr_to_lisp): Likewise.
6962 * alloc.c: Don't include <stddef.h>.
6963 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6964
6965 * process.c: Remove obsolete comment.
6966
6967 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
6968
6969 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6970
6971 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6972
6973 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6974 index, rindex.
6975 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6976 * editfns.c (Fuser_full_name, Fformat): Likewise.
6977 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6978 * fileio.c (Ffile_symlink_p): Likewise.
6979 * filelock.c (current_lock_owner): Likewise.
6980 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6981 * fontset.c (fontset_pattern_regexp): Likewise.
6982 * lread.c (read1): Likewise.
6983 * sysdep.c (init_system_name): Likewise.
6984 * xfns.c (select_visual): Likewise.
6985 * s/hpux10-20.h (index, rindex): Don't define.
6986 * s/ms-w32.h (index): Likewise.
6987 * s/usg5-4.h: Likewise.
6988
6989 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6990
6991 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
6992 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
6993 (egetenv): Likewise.
6994 * doprnt.c (doprnt): Likewise.
6995 * editfns.c (set_time_zone_rule, format2): Likewise.
6996 * emacs.c (decode_env_path): Likewise.
6997 * eval.c (signal_error, error): Likewise.
6998 * insdel.c (replace_range_2): Likewise.
6999 * keyboard.c (cmd_error_internal): Likewise.
7000 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7001 * print.c (write_string, write_string_1, print_error_message):
7002 Likewise.
7003 * vm-limit.c (warn_function, memory_warnings): Likewise.
7004 * xdisp.c (message1, message1_nolog, message_with_string)
7005 (vmessage, message, message_nolog): Likewise.
7006 * emacs.c: Remove duplicate declaration.
7007 * keyboard.h: Likewise.
7008 * lisp.h: Update prototypes.
7009
7010 * eval.c: Fix indentation problem.
7011
7012 * keyboard.c: Include "process.h".
7013
7014 * eval.c: Remove obsolete noinline declaration.
7015 * fns.c: Likewise.
7016
7017 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
7018
7019 * doprnt.c (doprnt): Take a va_list argument instead of count and
7020 pointer.
7021 * eval.c (error): Change to a standard-C variadic function.
7022 * xdisp.c (vmessage): Rename from message, made static, and
7023 changed to take a va_list argument.
7024 (message): New variadic wrapper.
7025 (message_nolog): Now a variadic function, calling vmessage.
7026 * lisp.h: Include stdarg.h for va_list.
7027 (doprnt, error, message, message_nolog): Decls updated.
7028
7029 2010-07-11 Eli Zaretskii <eliz@gnu.org>
7030
7031 * process.c (syms_of_process) <delete-exited-processes>: Define
7032 even if !subprocesses.
7033 (delete_exited_processes): Ditto.
7034
7035 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7036 (delete_exited_processes): Don't define.
7037
7038 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7039
7040 * frame.c (make_frame): Initialize menu_bar_lines and
7041 tool_bar_lines members.
7042 (make_initial_frame, make_terminal_frame):
7043 Initialize menu_bar_lines using value of menu-bar-mode.
7044
7045 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7046
7047 2010-07-10 Eli Zaretskii <eliz@gnu.org>
7048
7049 * process.c: Reshuffle #include's. Condition some of the global
7050 and static variables on `subprocesses'.
7051 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7052 Leave only one implementation.
7053 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7054 (kill_buffer_processes, Flist_system_processes)
7055 (Fprocess_attributes, init_process, syms_of_process): Unify the
7056 implementations for with subprocesses and without them.
7057
7058 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7059
7060 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7061 correct size for Motif.
7062 (free_frame_menubar): Call x_set_window_size to update frame size.
7063
7064 * xfns.c (x_window): Set borderWidth to 0 for pane and
7065 EmacsFrame. Frame size calculation is wrong otherwise.
7066
7067 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
7068
7069 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7070 allows to suppress errors when polling in Emacs' main loop.
7071 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7072 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7073 (Fdbus_method_error_internal, Fdbus_send_signal)
7074 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7075 (Fdbus_register_method): Use it. (Bug#6579)
7076
7077 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7078
7079 * alloc.c: Convert DEFUNs to standard C.
7080 * buffer.c:
7081 * bytecode.c:
7082 * callint.c:
7083 * callproc.c:
7084 * casefiddle.c:
7085 * casetab.c:
7086 * category.c:
7087 * character.c:
7088 * charset.c:
7089 * chartab.c:
7090 * cmds.c:
7091 * coding.c:
7092 * composite.c:
7093 * data.c:
7094 * dbusbind.c:
7095 * dired.c:
7096 * dispnew.c:
7097 * doc.c:
7098 * dosfns.c:
7099 * editfns.c:
7100 * emacs.c:
7101 * eval.c:
7102 * fileio.c:
7103 * filelock.c:
7104 * floatfns.c:
7105 * fns.c:
7106 * font.c:
7107 * fontset.c:
7108 * frame.c:
7109 * fringe.c:
7110 * image.c:
7111 * indent.c:
7112 * insdel.c:
7113 * keyboard.c:
7114 * keymap.c:
7115 * lread.c:
7116 * macros.c:
7117 * marker.c:
7118 * menu.c:
7119 * minibuf.c:
7120 * msdos.c:
7121 * nsfns.m:
7122 * nsmenu.m:
7123 * nsselect.m:
7124 * print.c:
7125 * process.c:
7126 * search.c:
7127 * sound.c:
7128 * syntax.c:
7129 * term.c:
7130 * terminal.c:
7131 * textprop.c:
7132 * undo.c:
7133 * w16select.c:
7134 * w32console.c:
7135 * w32fns.c:
7136 * w32font.c:
7137 * w32menu.c:
7138 * w32proc.c:
7139 * w32select.c:
7140 * window.c:
7141 * xdisp.c:
7142 * xfaces.c:
7143 * xfns.c:
7144 * xmenu.c:
7145 * xselect.c:
7146 * xsettings.c:
7147 * xsmfns.c: Likewise.
7148
7149 2010-07-08 Eli Zaretskii <eliz@gnu.org>
7150
7151 * process.c (kbd_is_on_hold, hold_keyboard_input)
7152 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7153
7154 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7155
7156 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7157 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7158 unless USE_LUCID.
7159
7160 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7161
7162 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7163 declaration.
7164
7165 Clean up include guards.
7166 * tparam.c: Remove include guards for config.h, string.h and code
7167 that assumes #ifndef emacs.
7168 * termcap.c:
7169 * unexalpha.c:
7170 * sysdep.c:
7171 * filemode.c:
7172 * filelock.c:
7173 * bidi.c: Likewise.
7174
7175 Remove prefix-args.c
7176 * prefix-args.c: Remove file.
7177 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7178 * Makefile.in (temacs${EXEEXT}): Remove references to
7179 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7180 (mostlyclean): Remove reference to prefix-args.
7181 (prefix-args): Remove.
7182
7183 Simplify cstart_of_data, start_of_code and related code.
7184 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7185 (start_of_data): Merge into start_of_data function.
7186 * sysdep.c (start_of_text): Remove. Move simplified versions of
7187 it in the only users: unexaix.c and unexec.c.
7188 (read_input_waiting): Remove local declaration of quit_char.
7189 (start, etext): Remove declarations.
7190 (start_of_data): Merge with the version in mem-limits.h and move
7191 to vm-limits.c.
7192 * vm-limit.c (start_of_data): Merged and simplified version of the
7193 code formerly in mem-limits.h and sysdep.c.
7194 * unexec.c (start): New declaration, moved from sysdep.c.
7195 (start_of_text): Simplified version of the code formerly in sysdep.c.
7196 * unexaix.c (start_of_text): Simplified version of the code
7197 formerly in sysdep.c.
7198 * m/alpha.h (HAVE_TEXT_START): Remove.
7199 (TEXT_START): Move ...
7200 * unexalpha.c (TEXT_START): ... here.
7201 * s/hpux10-20.h (TEXT_START): Remove.
7202 * s/darwin.h (TEXT_START):
7203 * m/mips.h (TEXT_START):
7204 * m/macppc.h (HAVE_TEXT_START):
7205 * m/m68k.h (TEXT_START):
7206 * m/iris4d.h (TEXT_START):
7207 * m/intel386.h (TEXT_START):
7208 * m/ibmrs6000.h (TEXT_START):
7209 * m/ia64.h (HAVE_TEXT_START):
7210 * s/msdos.h (TEXT_START): Likewise.
7211
7212 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7213
7214 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7215 (overrun_check_free, xstrdup, allocate_string)
7216 (allocate_string_data, compact_small_strings, Fmake_string)
7217 (make_unibyte_string, make_multibyte_string)
7218 (make_string_from_bytes, make_specified_string, make_float)
7219 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7220 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7221 memcpy, memmove, memset, memcmp.
7222 * atimer.c (start_atimer, set_alarm): Likewise.
7223 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7224 (mmap_realloc, init_buffer_once): Likewise.
7225 * callint.c (Fcall_interactively): Likewise.
7226 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7227 (getenv_internal_1): Likewise.
7228 * casefiddle.c (casify_object): Likewise.
7229 * ccl.c (ccl_driver): Likewise.
7230 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7231 * charset.c (load_charset_map_from_file)
7232 (load_charset_map_from_file, load_charset_map_from_vector)
7233 (Fdefine_charset_internal): Likewise.
7234 * cm.c (Wcm_clear): Likewise.
7235 * coding.c (decode_eol, decode_coding_object)
7236 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7237 * data.c (Faset): Likewise.
7238 * dired.c (directory_files_internal, file_name_completion_stat):
7239 Likewise.
7240 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7241 (clear_glyph_row, copy_row_except_pointers)
7242 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7243 (save_current_matrix, restore_current_matrix)
7244 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7245 (mirror_line_dance, scrolling_window): Likewise.
7246 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7247 Likewise.
7248 * doprnt.c (doprnt): Likewise.
7249 * editfns.c (Fuser_full_name, make_buffer_string_both)
7250 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7251 * emacs.c (sort_args): Likewise.
7252 * eval.c (Fapply, Ffuncall): Likewise.
7253 * fileio.c (Ffile_name_directory, make_temp_name)
7254 (Fexpand_file_name, search_embedded_absfilename)
7255 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7256 (auto_save_error): Likewise.
7257 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7258 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7259 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7260 (Fmake_hash_table): Likewise.
7261 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7262 * ftfont.c (ftfont_text_extents): Likewise.
7263 * getloadavg.c (getloadavg): Likewise.
7264 * image.c (define_image_type, make_image, make_image_cache)
7265 (x_create_x_image_and_pixmap, xbm_image_p)
7266 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7267 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7268 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7269 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7270 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7271 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7272 Likewise.
7273 * indent.c (scan_for_column, compute_motion): Likewise.
7274 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7275 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7276 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7277 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7278 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7279 (store_user_signal_events, menu_bar_items, tool_bar_items)
7280 (process_tool_bar_item, append_tool_bar_item)
7281 (read_char_minibuf_menu_prompt, read_key_sequence)
7282 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7283 Likewise.
7284 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7285 Likewise.
7286 * lisp.h (STRING_COPYIN): Likewise.
7287 * lread.c (Fload, read1, oblookup): Likewise.
7288 * msdos.c (Frecent_doskeys): Likewise.
7289 * nsfns.m (Fx_create_frame): Likewise.
7290 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7291 Likewise.
7292 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7293 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7294 Likewise.
7295 * nsmenu.m (ns_update_menubar): Likewise.
7296 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7297 * print.c (print_unwind, printchar, strout, print_string)
7298 (print_error_message): Likewise.
7299 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7300 (Fmake_network_process, Fnetwork_interface_list)
7301 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7302 (init_process): Likewise.
7303 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7304 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7305 Likewise.
7306 * scroll.c (do_scrolling, do_direct_scrolling)
7307 (scrolling_max_lines_saved): Likewise.
7308 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7309 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7310 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7311 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7312 (emacs_set_tty): Likewise.
7313 * term.c (encode_terminal_code, calculate_costs)
7314 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7315 Likewise.
7316 * termcap.c (tgetst1, gobble_line): Likewise.
7317 * termhooks.h (EVENT_INIT): Likewise.
7318 * tparam.c (tparam1): Likewise.
7319 * unexalpha.c (unexec): Likewise.
7320 * unexec.c (write_segment): Likewise.
7321 * unexmacosx.c (unexec_write_zero): Likewise.
7322 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7323 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7324 * w32font.c (w32font_list_family, w32font_text_extents)
7325 (w32font_list_internal, w32font_match_internal)
7326 (w32font_open_internal, compute_metrics, Fx_select_font):
7327 Likewise.
7328 * w32menu.c (set_frame_menubar, add_menu_item)
7329 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7330 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7331 * w32uniscribe.c (uniscribe_list_family): Likewise.
7332 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7333 * window.c (make_window, replace_window, set_window_buffer)
7334 (Fsplit_window): Likewise.
7335 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7336 (add_to_log, message3, x_consider_frame_title)
7337 (append_space_for_newline, extend_face_to_end_of_line)
7338 (decode_mode_spec_coding, init_glyph_string): Likewise.
7339 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7340 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7341 (face_attr_equal_p, make_realized_face, make_face_cache)
7342 (free_realized_faces, lookup_named_face, smaller_face)
7343 (face_with_height, lookup_derived_face)
7344 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7345 (Finternal_set_font_selection_order, realize_default_face)
7346 (compute_char_face, face_at_buffer_position)
7347 (face_for_overlay_string, face_at_string_position, merge_faces):
7348 Likewise.
7349 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7350 (Fx_window_property, x_create_tip_frame)
7351 (Fx_backspace_delete_keys_p): Likewise.
7352 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7353 (xfont_text_extents): Likewise.
7354 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7355 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7356 * xselect.c (x_queue_event, x_get_window_property)
7357 (receive_incremental_selection): Likewise.
7358 * xsmfns.c (x_session_check_input): Likewise.
7359 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7360 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7361 Likewise.
7362 * character.h (BCOPY_SHORT): Removed.
7363 * config.in: Regenerate.
7364 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7365 * emacs.c (main) [PROFILING]: Don't declare
7366 dump_opcode_frequencies.
7367 * lisp.h (safe_bcopy): Remove declaration.
7368 (memset) [!HAVE_MEMSET]: Declare.
7369 (memcpy) [!HAVE_MEMCPY]: Likewise.
7370 (memmove) [!HAVE_MEMMOVE]: Likewise.
7371 (memcmp) [!HAVE_MEMCMP]: Likewise.
7372 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7373 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7374 Don't define.
7375 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7376 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7377 (BCOPY_DOWNWARD_SAFE): Don't define.
7378 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7379 (memcpy) [!HAVE_MEMCPY]: Define.
7380 (memmove) [!HAVE_MEMMOVE]: Define.
7381 (memcmp) [!HAVE_MEMCMP]: Define.
7382
7383 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7384
7385 * process.c (kbd_is_on_hold): New variable.
7386 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7387 New functions.
7388 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7389 select on empty input mask.
7390 (init_process): Initialize kbd_is_on_hold to 0.
7391
7392 * process.h (hold_keyboard_input, unhold_keyboard_input)
7393 (kbd_on_hold_p): Declare.
7394
7395 * keyboard.c (input_available_signal): Declare.
7396 (kbd_buffer_nr_stored): New function.
7397 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7398 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7399 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7400 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7401 (tty_read_avail_input): If input is on hold, return.
7402 Don't read more that free slots in kbd_buffer (Bug#6571).
7403
7404 2010-07-07 Eli Zaretskii <eliz@gnu.org>
7405
7406 * msdos.h:
7407 * msdos.c:
7408 * dosfns.c:
7409 * w16select.c: Convert function definitions to ANSI C.
7410
7411 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7412 Remove unused prototypes.
7413
7414 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7415
7416 * coding.c, sysdep.c: Convert some more functions to standard C.
7417
7418 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7419
7420 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7421 (encode_coding_object): Use SPECPDL_INDEX.
7422 (syms_of_coding): Use DOS_NT.
7423
7424 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7425
7426 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7427
7428 Make the function member of Lisp_Subr use standard C prototypes.
7429 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7430 (DECL_ALIGN): Add a cast for the function.
7431 * eval.c (Feval, Ffuncall): Use the proper type for each type
7432 function call.
7433
7434 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
7435
7436 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7437 fringe face id, so face-remapping-alist works (Bug#6091).
7438
7439 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
7440
7441 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7442 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7443 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7444
7445 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7446
7447 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7448 * lisp.h: Declare x_get_keysym_name.
7449 * keyboard.c (modify_event_symbol): Don't declare
7450 x_get_keysym_name here.
7451
7452 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7453
7454 * ecrt0.c: Revert conversion to standard C.
7455
7456 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7457
7458 * vm-limit.c (memory_warnings):
7459 * keyboard.c (modify_event_symbol):
7460 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7461 (round2, emacs_rint):
7462 * process.c (send_process, old_sigpipe): Convert function
7463 definitions and declarations to standard C.
7464
7465 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
7466
7467 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7468 * xdisp.c: Convert function definitions to standard C.
7469
7470 * cm.c (cmputc): Arg C is now int, not char.
7471 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7472
7473 2010-07-05 James Cloos <cloos@jhcloos.com>
7474
7475 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7476
7477 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7478 _NET_WM_ICON_NAME atoms.
7479
7480 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7481 and _NET_WM_ICON_NAME properties, too, matching what is
7482 done in the Gtk+ case.
7483
7484 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7485
7486 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7487
7488 * xsmfns.c (SSDATA): New macro.
7489 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7490 passed to strlen/strcpy/strcat.
7491 (create_client_leader_window): Surround with #ifndef USE_GTK.
7492 Cast 7:th arg to XChangeProperty to (unsigned char *).
7493
7494 * xsettings.c (something_changedCB, parse_settings)
7495 (apply_xft_settings): Reformat prototype.
7496 (something_changedCB, init_gconf): Remove unused variable i.
7497 (read_settings): Remove unused variable long_len.
7498
7499 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7500 (xg_get_image_for_pixmap, create_dialog)
7501 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7502 (menuitem_highlight_callback, make_menu_item)
7503 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7504 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7505 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7506 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7507 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7508 (xg_tool_bar_item_expose_callback): Reformat prototype.
7509 (xg_update_menubar): GList *group => GSList *group.
7510 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7511 before use.
7512 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7513 to GTK_IMAGE (wimage).
7514
7515 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7516
7517 * atimer.c: Use "" instead of <> for local includes for
7518 consistency with the rest of the code.
7519
7520 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7521 * xrdb.c (get_system_name):
7522 * window.c (shrink_windows):
7523 * syntax.c (forw_comment):
7524 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7525 (ins_del_costs):
7526 * mem-limits.h (start_of_data):
7527 * lread.c (readevalloop):
7528 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7529 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7530 * frame.c (x_get_focus_frame):
7531 * floatfns.c (fmod_float):
7532 * fileio.c (choose_write_coding_system):
7533 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7534 (malloc_initialize_hook, sort_args, synchronize_locale):
7535 * doprnt.c (doprnt):
7536 * dired.c (compile_pattern):
7537 * data.c (fmod_float):
7538 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7539 (map_char_table_for_charset):
7540 * charset.c (define_charset_internal):
7541 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7542 to standard C.
7543
7544 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
7545 Stefan Monnier <monnier@iro.umontreal.ca>
7546
7547 * lread.c (read1): Fix up last change to not mess up `c'.
7548
7549 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7550
7551 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7552
7553 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7554
7555 Fix prototypes.
7556
7557 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
7558 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
7559 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7560 arg, as required by internal_condition_case_1.
7561 * print.c (strout): Use const char* for arg PTR.
7562 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7563 (analyse_first): Fix "const const".
7564 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
7565 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
7566 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
7567
7568 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7569
7570 * alloc.c: Convert function definitions to standard C.
7571 * atimer.c:
7572 * bidi.c:
7573 * bytecode.c:
7574 * callint.c:
7575 * callproc.c:
7576 * casefiddle.c:
7577 * casetab.c:
7578 * category.c:
7579 * ccl.c:
7580 * character.c:
7581 * charset.c:
7582 * chartab.c:
7583 * cmds.c:
7584 * coding.c:
7585 * composite.c:
7586 * data.c:
7587 * dbusbind.c:
7588 * dired.c:
7589 * dispnew.c:
7590 * doc.c:
7591 * doprnt.c:
7592 * ecrt0.c:
7593 * editfns.c:
7594 * fileio.c:
7595 * filelock.c:
7596 * filemode.c:
7597 * fns.c:
7598 * font.c:
7599 * fontset.c:
7600 * frame.c:
7601 * fringe.c:
7602 * ftfont.c:
7603 * ftxfont.c:
7604 * gtkutil.c:
7605 * indent.c:
7606 * insdel.c:
7607 * intervals.c:
7608 * keymap.c:
7609 * lread.c:
7610 * macros.c:
7611 * marker.c:
7612 * md5.c:
7613 * menu.c:
7614 * minibuf.c:
7615 * prefix-args.c:
7616 * print.c:
7617 * ralloc.c:
7618 * regex.c:
7619 * region-cache.c:
7620 * scroll.c:
7621 * search.c:
7622 * sound.c:
7623 * strftime.c:
7624 * syntax.c:
7625 * sysdep.c:
7626 * termcap.c:
7627 * terminal.c:
7628 * terminfo.c:
7629 * textprop.c:
7630 * tparam.c:
7631 * undo.c:
7632 * unexelf.c:
7633 * window.c:
7634 * xfaces.c:
7635 * xfns.c:
7636 * xfont.c:
7637 * xftfont.c:
7638 * xgselect.c:
7639 * xmenu.c:
7640 * xrdb.c:
7641 * xselect.c:
7642 * xsettings.c:
7643 * xsmfns.c:
7644 * xterm.c: Likewise.
7645
7646 2010-07-03 Eli Zaretskii <eliz@gnu.org>
7647
7648 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7649 frames other than the initial one. Fix reversal of colors when
7650 `reverse' is specified in the frame parameters.
7651 Call update_face_from_frame_parameter instead of
7652 internal-set-lisp-face-attribute. Initialize screen colors from
7653 initial_screen_colors[] when f->default_face_done_p is zero,
7654 instead of depending on being called with default-frame-alist as
7655 the alist argument.
7656
7657 * xfaces.c (update_face_from_frame_parameter): Move out of
7658 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7659 with HAVE_WINDOW_SYSTEM.
7660
7661 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7662 to menu-bar-mode, if not set in the frame parameters or in
7663 default-frame-alist.
7664
7665 * w32console.c (sys_tputs): Adjust argument list to prototype in
7666 term.c.
7667
7668 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
7669
7670 * lisp.h (memory_warnings): Fix prototype.
7671
7672 * cm.h (evalcost): Fix prototype.
7673
7674 * cm.c (evalcost): Fix arg type.
7675
7676 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7677
7678 * term.c (term_clear_mouse_face, Fidentity):
7679 * syssignal.h (signal_handler_t):
7680 * lisp.h (memory_warnings):
7681 * coding.h (preferred_coding_system):
7682 * cm.h (evalcost):
7683 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7684
7685 2010-07-02 Eli Zaretskii <eliz@gnu.org>
7686
7687 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7688 from prototypes.
7689
7690 * msdos.h (load_pixmap): Don't define away.
7691
7692 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7693
7694 * lisp.h:
7695 * atimer.h: Remove define for P_.
7696
7697 * alloc.c: Remove __P and P_ from .c and .m files.
7698 * atimer.c:
7699 * buffer.c:
7700 * callint.c:
7701 * category.c:
7702 * charset.c:
7703 * chartab.c:
7704 * cm.c:
7705 * coding.c:
7706 * composite.c:
7707 * data.c:
7708 * dired.c:
7709 * dispnew.c:
7710 * doc.c:
7711 * editfns.c:
7712 * emacs.c:
7713 * eval.c:
7714 * fileio.c:
7715 * filelock.c:
7716 * fns.c:
7717 * font.c:
7718 * fontset.c:
7719 * frame.c:
7720 * ftfont.c:
7721 * ftxfont.c:
7722 * gmalloc.c:
7723 * gtkutil.c:
7724 * image.c:
7725 * indent.c:
7726 * intervals.c:
7727 * keyboard.c:
7728 * keymap.c:
7729 * lread.c:
7730 * marker.c:
7731 * menu.c:
7732 * minibuf.c:
7733 * print.c:
7734 * process.c:
7735 * scroll.c:
7736 * search.c:
7737 * sound.c:
7738 * strftime.c:
7739 * syntax.c:
7740 * sysdep.c:
7741 * term.c:
7742 * terminal.c:
7743 * textprop.c:
7744 * unexalpha.c:
7745 * w32console.c:
7746 * w32fns.c:
7747 * w32font.c:
7748 * w32menu.c:
7749 * w32term.c:
7750 * w32uniscribe.c:
7751 * window.c:
7752 * xdisp.c:
7753 * xfaces.c:
7754 * xfns.c:
7755 * xfont.c:
7756 * xftfont.c:
7757 * xmenu.c:
7758 * xselect.c:
7759 * xterm.c: Likewise.
7760
7761 Remove P_ and __P macros.
7762 * atimer.h: Remove P_ and __P macros.
7763 * buffer.h:
7764 * category.h:
7765 * ccl.h:
7766 * character.h:
7767 * charset.h:
7768 * cm.h:
7769 * coding.h:
7770 * composite.h:
7771 * dispextern.h:
7772 * disptab.h:
7773 * dosfns.h:
7774 * font.h:
7775 * fontset.h:
7776 * frame.h:
7777 * gtkutil.h:
7778 * indent.h:
7779 * intervals.h:
7780 * keyboard.h:
7781 * keymap.h:
7782 * lisp.h:
7783 * macros.h:
7784 * md5.h:
7785 * menu.h:
7786 * msdos.h:
7787 * nsterm.h:
7788 * puresize.h:
7789 * region-cache.h:
7790 * syntax.h:
7791 * syssignal.h:
7792 * systime.h:
7793 * termhooks.h:
7794 * w32font.h:
7795 * w32term.h:
7796 * widget.h:
7797 * window.h:
7798 * xgselect.h:
7799 * xsettings.h:
7800 * xterm.h: Likewise.
7801
7802 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7803
7804 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
7805
7806 Cleanup old code.
7807 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7808 * syssignal.h: Remove code for Lynx, not supported anymore.
7809 * vm-limit.c: Remove unused code the depends on emacs not being
7810 defined and NO_LIM_DATA being defined.
7811 * mem-limits.h: Remove dead code.
7812
7813 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
7814
7815 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
7816
7817 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
7818 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
7819
7820 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
7821 parameters, they are already absolute.
7822
7823 * nsterm.m (x_set_window_size, initFrameFromEmacs):
7824 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
7825
7826 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
7827
7828 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
7829 Update FRAME_TOOLBAR_HEIGHT.
7830
7831 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
7832 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
7833
7834 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
7835
7836 * frame.c (get_future_frame_param, Fmake_terminal_frame):
7837 Don't check default-frame-alist.
7838
7839 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
7840
7841 * process.c (create_process): Avoid using invalid file descriptors.
7842
7843 * callproc.c (child_setup): Avoid closing a file descriptor twice.
7844
7845 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
7846
7847 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
7848 Improve documentation. Return font regardless of use_system_font.
7849 (syms_of_xsettings): Improve documentation for font-use-system-font.
7850
7851 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7852
7853 * xfaces.c (realize_face): Garbage the frame if a face is removed
7854 (Bug#6593).
7855
7856 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
7857
7858 * keyboard.c: Remove duplicate <setjmp.h>.
7859 (read_key_sequence): Remove volatile qualifiers.
7860
7861 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7862
7863 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
7864 (struct glyph_row): New members left_fringe_offset and
7865 right_fringe_offset.
7866
7867 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
7868 specially.
7869 * w32term.c (w32_draw_fringe_bitmap): Likewise.
7870 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
7871
7872 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
7873 Take account of bitmap offset.
7874 (draw_window_fringes): Take account of window vscroll.
7875 (update_window_fringes): Likewise. Extend top-aligned top indicator
7876 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
7877 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
7878 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
7879
7880 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7881
7882 * w32fns.c (Qtooltip): Declare.
7883 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
7884
7885 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
7886
7887 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
7888 grab on just Press (Bug#6499).
7889
7890 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
7891
7892 * frame.c (Qtooltip): New var.
7893 (delete_frame): Use it. Fix faulty if statement. Don't update
7894 mode line for tooltip frames. Suggested by Martin Rudalics.
7895
7896 * xfns.c (x_create_tip_frame):
7897 * w32fns.c (x_create_tip_frame): Use it.
7898
7899 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
7900
7901 * xftfont.c (xftfont_open): Check font width one by one also when
7902 spacing is dual.
7903
7904 * ftfont.c (ftfont_open): Ditto.
7905
7906 2010-06-30 Glenn Morris <rgm@gnu.org>
7907
7908 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
7909
7910 * Makefile.in (CANNOT_DUMP): Update for configure name change.
7911
7912 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
7913 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7914 * s/darwin.h (SYSTEM_MALLOC):
7915 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
7916
7917 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
7918
7919 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
7920 (ns_get_screen): Don't assign integer to f.
7921 (Fx_display_color_cells): Declarations before statements.
7922
7923 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
7924
7925 * xfns.c (x_default_font_parameter): Remove got_from_system
7926 (Bug#6526).
7927
7928 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
7929 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
7930 New defines based on what configure finds.
7931
7932 * xterm.c (XTflash): Use gtk_widget_get_window.
7933 (xg_scroll_callback): Use gtk_adjustment_get_upper and
7934 gtk_adjustment_get_page_size.
7935 (handle_one_xevent): Use gtk_widget_get_mapped.
7936 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
7937 messages.
7938
7939 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
7940
7941 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
7942 HAVE_GTK_FILE_SELECTION_NEW.
7943
7944 * gtkutil.c (xg_display_open, xg_display_close):
7945 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
7946 (xg_display_open): Return type is void.
7947 (gtk_widget_set_has_window)
7948 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
7949 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
7950 (gtk_adjustment_set_page_increment)
7951 (gtk_adjustment_get_step_increment): #define these if not found
7952 by configure.
7953 (remove_submenu): New define based on Gtk+ version.
7954 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
7955 Use gtk_widget_get_window.
7956 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
7957 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
7958 (create_dialog): Use gtk_dialog_get_action_area and
7959 gtk_dialog_get_content_area.
7960 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7961 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7962 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
7963 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7964 Use g_object_ref and g_object_unref.
7965 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7966 Use gtk_widget_get_sensitive.
7967 (xg_update_submenu): Use remove_submenu.
7968 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7969 properties instead to get old x and y position.
7970 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7971 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
7972 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
7973 (xg_get_tool_bar_widgets): New function.
7974 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7975 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7976 (toolbar_set_orientation): New #define based on if configure
7977 finds gtk_orientable_set_orientation.
7978 (xg_create_tool_bar): Call toolbar_set_orientation.
7979 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7980 instead of gtk_box_pack_start_defaults.
7981
7982 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
7983
7984 * cmds.c (Fdelete_backward_char): Move into Lisp.
7985
7986 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7987
7988 * s/freebsd.h (BSD4_2): Remove redundant definition.
7989 bsd-common.h defines it already.
7990
7991 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
7992
7993 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
7994 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
7995 tool-bar-mode, which are now set using these X resources at
7996 startup, to determine the defaults (Bug#2249).
7997
7998 * w32fns.c (Fx_create_frame):
7999 * nsfns.m (Fx_create_frame): Likewise.
8000
8001 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8002
8003 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
8004
8005 * gtkutil.c (xg_update_scrollbar_pos):
8006 Avoid C99 mid-block variable declaration.
8007
8008 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8009
8010 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8011
8012 * gtkutil.h (xg_show_scroll_bar): Remove.
8013
8014 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8015 if height is less than scroll bar min size.
8016 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8017
8018 * xfns.c (x_default_font_parameter): Try to open font from system
8019 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8020
8021 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
8022
8023 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8024
8025 2010-06-20 Eli Zaretskii <eliz@gnu.org>
8026
8027 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8028 most-positive-fixnum, be extra accurate when scrolling window
8029 start, to avoid missing the cursor line.
8030
8031 2010-06-19 Eli Zaretskii <eliz@gnu.org>
8032
8033 * xdisp.c (try_scrolling): Compute the limit for searching point
8034 in forward scroll from scroll_max, instead of an arbitrary limit
8035 of 10 screen lines.
8036 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
8037 and
8038 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8039 for details.
8040
8041 2010-06-16 Glenn Morris <rgm@gnu.org>
8042
8043 * editfns.c (Fbyte_to_string): Pacify compiler.
8044
8045 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8046
8047 * lread.c (read1): Phase out old-style backquotes a bit more.
8048
8049 2010-06-12 Eli Zaretskii <eliz@gnu.org>
8050
8051 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8052 bidimirror.h.
8053
8054 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8055
8056 * bidi.c (bidi_initialize): Remove explicit initialization of
8057 bidi_type_table; include biditype.h instead. Don't support
8058 entries whose second codepoint is zero. Initialize bidi_mirror_table.
8059 (bidi_mirror_char): Use bidi_mirror_table.
8060
8061 * biditype.h: New file.
8062
8063 * bidimirror.h: New file.
8064
8065 * window.c (syms_of_window): Doc fix (bug#6409).
8066
8067 2010-06-12 Romain Francoise <romain@orebokech.com>
8068
8069 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8070 ediff-hook.
8071
8072 2010-06-10 Glenn Morris <rgm@gnu.org>
8073
8074 * editfns.c (Fbyte_to_string): Pacify compiler.
8075
8076 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8077
8078 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8079
8080 * alloc.c (Fmake_byte_code): Don't access undefined argument
8081 (Bug#6517).
8082
8083 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
8084
8085 * xdisp.c (next_element_from_image): Ensure that after-strings are
8086 read the next time we hit handle_stop (Bug#1336).
8087
8088 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8089
8090 * lread.c (read1): Signal error if #s is not followed by paren.
8091
8092 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
8093
8094 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8095
8096 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8097
8098 2010-06-15 Glenn Morris <rgm@gnu.org>
8099
8100 * editfns.c (Fbyte_to_string): Pacify compiler.
8101
8102 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8103
8104 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8105 Check `object's type before accessing its guts.
8106
8107 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8108
8109 * s/usg5-4.h: Fix previous change.
8110 Suggested by Lawrence Mitchell <wence@gmx.li>
8111
8112 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8113
8114 * minibuf.c (Fall_completions): Add more checks.
8115
8116 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
8117
8118 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8119
8120 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8121
8122 * lread.c (X_OK): Remove, unused.
8123
8124 * dispnew.c: Remove obsolete comment.
8125
8126 Remove INCLUDED_FCNTL.
8127 * xterm.c (INCLUDED_FCNTL):
8128 * callproc.c (INCLUDED_FCNTL):
8129 * alloc.c (INCLUDED_FCNTL):
8130 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8131 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8132
8133 2010-06-07 Martin Rudalics <rudalics@gmx.at>
8134
8135 * window.c (Fselect_window): Move `record_buffer' up to the
8136 beginning of this function, so the buffer gets recorded
8137 even if the selected window does not change.
8138 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8139
8140 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
8141
8142 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8143 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8144
8145 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8146
8147 Remove BSTRING related code, all platforms define it.
8148 * s/usg5-4.h (BSTRING): Remove definition.
8149 * s/template.h (BSTRING):
8150 * s/msdos.h (BSTRING):
8151 * s/ms-w32.h (BSTRING):
8152 * s/hpux10-20.h (BSTRING):
8153 * s/gnu-linux.h (BSTRING):
8154 * s/darwin.h (BSTRING):
8155 * s/cygwin.h (BSTRING):
8156 * s/bsd-common.h (BSTRING):
8157 * s/aix4-2.h (BSTRING): Likewise.
8158 * sysdep.c: Remove code depending on BSTRING not being defined.
8159
8160 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
8161
8162 Remove obsolete macro BASE_LEADING_CODE_P.
8163 * character.h (BASE_LEADING_CODE_P): Remove.
8164 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8165 * buffer.c (Fset_buffer_multibyte):
8166 * indent.c (scan_for_column, compute_motion):
8167 * insdel.c (count_combining_before, count_combining_after):
8168 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8169
8170 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
8171
8172 Turn `directory-sep-char' into a noop.
8173
8174 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8175 (DIRECTORY_SEP): Define unconditionally.
8176
8177 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8178
8179 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8180 call dostounix_filename directly.
8181
8182 * fileio.c (CORRECT_DIR_SEPS): Remove.
8183 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8184 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8185 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8186 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8187
8188 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8189 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8190
8191 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8192
8193 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8194 (Bug#6346)
8195
8196 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8197
8198 * ccl.c (Fccl_program_p): Fix typo in docstring.
8199
8200 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8201
8202 Move UNEXEC definition to autoconf.
8203 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8204 * s/sol2-10.h (UNEXEC):
8205 * s/irix6-5.h (UNEXEC):
8206 * s/hpux10-20.h (UNEXEC):
8207 * s/gnu-linux.h (UNEXEC):
8208 * s/darwin.h (UNEXEC):
8209 * s/cygwin.h (UNEXEC):
8210 * s/bsd-common.h (UNEXEC):
8211 * s/aix4-2.h (UNEXEC):
8212 * m/alpha.h (UNEXEC): Likewise.
8213 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8214
8215 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8216
8217 Remove obsolete pre-unicode2 macros.
8218 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8219 * composite.c (composition_reseat_it):
8220 * data.c (Faset):
8221 * fns.c (Ffillarray):
8222 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8223 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8224
8225 2010-06-03 Juri Linkov <juri@jurta.org>
8226
8227 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8228 (Fswitch_to_buffer): Remove unused variable `err'.
8229
8230 2010-06-03 Glenn Morris <rgm@gnu.org>
8231
8232 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8233
8234 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8235 now that AH_BOTTOM does it.
8236
8237 * m/hp800.h (HAVE_ALLOCA):
8238 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8239
8240 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8241 Remove NOT_C_CODE tests, it is always true now.
8242
8243 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8244
8245 Fix config.h includes.
8246 * xsettings.c:
8247 * xgselect.c:
8248 * nsterm.m:
8249 * nsselect.m:
8250 * nsimage.m:
8251 * nsfont.m:
8252 * nsfns.m:
8253 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8254 other files do.
8255
8256 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8257
8258 * s/sol2-6.h: Remove obsolete comments.
8259
8260 Remove unnecessary alloca.h includes.
8261 * keymap.c: Do not include alloca.h, config.h does that.
8262 * sysdep.c: Likewise. Do not define fwrite, not used.
8263
8264 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8265
8266 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8267 the HAVE_TERMIO where it belongs (bug#6149).
8268
8269 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8270
8271 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8272 of bug#6305).
8273
8274 2010-05-30 Eli Zaretskii <eliz@gnu.org>
8275
8276 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8277 state is always cached (bug#6306).
8278
8279 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8280
8281 Fix cursor motion in bidi-reordered continued lines.
8282 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8283 only after finding point's row. Fix the logic. Rewrite the loop
8284 over continuation lines in bidi-reordered buffers.
8285 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8286 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8287
8288 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
8289
8290 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8291
8292 2010-05-28 Kenichi Handa <handa@m17n.org>
8293
8294 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8295 Don't sheck SPEC if it is nil.
8296 (font_list_entities): Call font_delete_unmatched if
8297 Vface_ignored_fonts is non-nil. (Bug#6287)
8298
8299 2010-05-28 Glenn Morris <rgm@gnu.org>
8300
8301 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8302
8303 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8304
8305 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8306 whether to trash.
8307 (internal_delete_file, Frename_file): Callers changed.
8308 (delete_by_moving_to_trash): Doc fix.
8309 (Fdelete_directory_internal): Don't move to trash.
8310
8311 * callproc.c (delete_temp_file):
8312 * buffer.c (Fkill_buffer): Callers changed.
8313
8314 * lisp.h: Update prototype.
8315
8316 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8317
8318 * xdisp.c (redisplay_window): After redisplay, check if point is
8319 still valid before setting it (Bug#6177).
8320
8321 2010-05-27 Glenn Morris <rgm@gnu.org>
8322
8323 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8324 Convert comments to Makefile format.
8325
8326 * Makefile.in (bootstrap-clean): No more Makefile.c.
8327
8328 2010-05-26 Glenn Morris <rgm@gnu.org>
8329
8330 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8331 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8332
8333 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8334 Remove.
8335 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8336
8337 2010-05-26 Kenichi Handa <handa@m17n.org>
8338
8339 * composite.c (composition_compute_stop_pos): Fix condition for
8340 backward scanning.
8341
8342 2010-05-25 Glenn Morris <rgm@gnu.org>
8343
8344 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8345 Move before TEMACS_LDFLAGS.
8346 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8347 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8348
8349 * Makefile.in (NOT_C_CODE): No longer define.
8350 (config.h): No longer include.
8351
8352 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8353 variables it may reference.
8354
8355 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8356 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8357
8358 2010-05-25 Kenichi Handa <handa@m17n.org>
8359
8360 * dispextern.h (struct composition_it): New members rule_idx and
8361 charpos.
8362
8363 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8364 that the character positions of IT point the last character of the
8365 current grapheme cluster.
8366 (next_element_from_composition): Don't change character positions
8367 of IT.
8368 (append_composite_glyph): Set glyph->charpos to
8369 it->cmp_it.charpos.
8370
8371 * composite.c (autocmp_chars): Change the first argument to RULE,
8372 and try composition with RULE only.
8373 (composition_compute_stop_pos): Record the index number of the
8374 composition rule in CMP_IT->rule_idx.
8375 (composition_reseat_it): Call autocmp_chars repeatedly until the
8376 correct rule of the composition is found.
8377 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8378 is at the last character of the current grapheme cluster when
8379 CMP_IT->reversed_p is nonzero.
8380
8381 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8382
8383 * editfns.c (Fbyte_to_string): New function.
8384
8385 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8386
8387 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8388 Suggested by Masatake YAMATO <yamato@redhat.com>.
8389
8390 2010-05-23 Eli Zaretskii <eliz@gnu.org>
8391
8392 * dispextern.h (init_iterator): Sync prototype with changed definition.
8393
8394 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8395
8396 * s/netbsd.h: If terminfo is found, use it in preference to
8397 termcap. (Bug#6190) [Backport from trunk]
8398
8399 2010-05-19 Eli Zaretskii <eliz@gnu.org>
8400
8401 Redesign and reimplement bidi-aware edge positions of glyph rows.
8402
8403 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8404 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8405 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8406 and maxpos members instead of start.pos and end.pos, respectively.
8407
8408 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8409 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8410 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
8411 (try_window_reusing_current_matrix, try_window_id):
8412 Use ROW->minpos rather than ROW->start.pos.
8413 (init_from_display_pos, init_iterator): Use EMACS_INT for
8414 character and byte positions.
8415 (find_row_edges): Rename from find_row_end. Accept additional
8416 arguments for minimum and maximum buffer positions seen by
8417 display_line for this row. Don't use iterator to find the
8418 position following the maximum one; instead, increment the
8419 position found by display_line directly. Fix logic; eol_pos
8420 should be tested before the rest. Handle the case of characters
8421 delivered from display vector (bug#6036). Fix tests related to
8422 it->method. Handle the truncated_on_right_p rows.
8423 (RECORD_MAX_MIN_POS): New macro.
8424 (display_line): Use it to record the minimum and maximum buffer
8425 positions for glyphs in the row being assembled. Record the
8426 position of the newline that terminates the line. If word wrap is
8427 in effect, restore minimum and maximum positions seen up to the
8428 wrap point, when iterator returns to it.
8429 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8430 row and cursor not already at point. Restore original pre-bidi
8431 code for unidirectional buffers.
8432
8433 * dispnew.c (increment_row_positions, check_matrix_invariants):
8434 Increment and check row->start.pos and row->end.pos, in addition
8435 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8436
8437 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8438 Display truncated_on_left_p and truncated_on_right_p flags.
8439 Formatting fixes.
8440 (pmtxrows): Display the ordinal number of each row. Don't display
8441 rows beyond the last one.
8442
8443 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8444 it is not copied by bidi_copy_it.
8445
8446 2010-05-22 Eli Zaretskii <eliz@gnu.org>
8447
8448 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8449 (Bug#6237)
8450
8451 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
8452
8453 * image.c (Fimage_flush): Rename from image-refresh.
8454
8455 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
8456
8457 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8458 just one window.
8459
8460 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8461 (clear_image_cache): If the number of cached images is unusually
8462 large, decrease the cache eviction delay (Bug#6230).
8463
8464 2010-05-21 Glenn Morris <rgm@gnu.org>
8465
8466 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8467 Move these rules to ns.mk.
8468 * ns.mk: New file.
8469
8470 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8471
8472 * Makefile.in (CANNOT_DUMP): New, set by configure.
8473 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8474
8475 2010-05-20 Juri Linkov <juri@jurta.org>
8476
8477 * fileio.c (Fdelete_file): Change interative spec to use
8478 `read-file-name' like in `find-file-read-args' where the default
8479 value is `default-directory' instead of `buffer-file-name'.
8480 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8481
8482 2010-05-20 Kevin Ryde <user42@zip.com.au>
8483
8484 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8485 (Voverriding_terminal_local_map, Vsystem_key_alist)
8486 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8487
8488 2010-05-20 Glenn Morris <rgm@gnu.org>
8489
8490 * Makefile.in (DEPDIR): New constant.
8491 (DEPFLAGS): Set with configure, not cpp.
8492 (MKDEPDIR): New, set by configure.
8493 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8494 (clean): Use $DEPDIR.
8495 (deps_frag): Include from configure.
8496 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8497 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8498
8499 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8500 Fix reallocation of the cache. (Bug#6210)
8501
8502 2010-05-19 Glenn Morris <rgm@gnu.org>
8503
8504 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8505
8506 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8507 (GNULIB_VAR): Remove.
8508 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8509
8510 * m/ibms390x.h (LINKER):
8511 * m/macppc.h (LINKER) [GNU_LINUX]:
8512 * s/aix4-2.h (ORDINARY_LINK):
8513 * s/cygwin.h (LINKER):
8514 * s/darwin.h (ORDINARY_LINK):
8515 * s/gnu.h (ORDINARY_LINK):
8516 * s/netbsd.h (LINKER):
8517 * s/usg5-4.h (ORDINARY_LINK):
8518 Move to configure.
8519
8520 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8521
8522 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
8523
8524 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8525 prevent stack overflow if number of arguments is too large
8526 (Bug#6214).
8527
8528 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
8529
8530 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8531
8532 2010-05-18 Glenn Morris <rgm@gnu.org>
8533
8534 * s/gnu-linux.h: Combine two conditionals.
8535
8536 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
8537 $(POST_ALLOC_OBJ).
8538
8539 * Makefile.in (RALLOC_OBJ): New, set by configure.
8540 (rallocobj): Replace with the previous variable.
8541 (otherobj): Use $RALLOC_OBJ.
8542
8543 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8544 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8545
8546 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8547 (gmallocobj, vmlimitobj): Replace with previous two variables.
8548 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8549
8550 2010-05-17 Glenn Morris <rgm@gnu.org>
8551
8552 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8553 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8554
8555 2010-05-16 Glenn Morris <rgm@gnu.org>
8556
8557 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8558
8559 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8560
8561 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8562 trailing "/".
8563
8564 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8565 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8566
8567 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8568 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8569 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8570 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8571 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8572
8573 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8574 Remove ${STARTFLAGS}, nothing ever sets it.
8575
8576 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8577
8578 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8579
8580 2010-05-16 Glenn Morris <rgm@gnu.org>
8581
8582 * Makefile.in (LIBX_BASE): Always define.
8583
8584 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8585
8586 * Makefile.in (LIBXT): Always define.
8587
8588 2010-05-15 Glenn Morris <rgm@gnu.org>
8589
8590 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
8591
8592 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8593 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8594
8595 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
8596
8597 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
8598 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8599
8600 * emacs.c (main): Initialize initial-environment and
8601 process-environment before generating from env, not after.
8602
8603 Handle --version reasonably in CANNOT_DUMP configuration.
8604 * emacs.c (emacs_version, emacs_copyright): New string variables.
8605 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8606 (syms_of_emacs): Defvar them, and initialize them from the C
8607 string variables.
8608 (main): If initialization hasn't been done, print initial version
8609 info from the C strings, instead of starting an interactive session.
8610
8611 2010-05-15 Eli Zaretskii <eliz@gnu.org>
8612
8613 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8614 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
8615 (bidi_paragraph_init): Remove redundant assertion that we are at
8616 the beginning of a line after call to bidi_find_paragraph_start.
8617
8618 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8619 (syms_of_xdisp): Defsubr it.
8620
8621 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8622
8623 * Makefile.in: Fix MSDOS-related comments.
8624
8625 2010-05-15 Glenn Morris <rgm@gnu.org>
8626
8627 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8628 (really-lwlib, really-oldXMenu): Always define.
8629 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8630
8631 * Makefile.in: Simplify cpp conditional.
8632
8633 * Makefile.in (${ns_appdir}): Simplify using umask.
8634
8635 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8636
8637 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8638
8639 * eval.c (specbind): Remove left-over duplicate test.
8640 Disallow let-binding frame-local vars. Add comment.
8641
8642 2010-05-14 Eli Zaretskii <eliz@gnu.org>
8643
8644 Make the cache of bidi iterator states dynamically allocated.
8645 * bidi.c (bidi_cache_shrink): New function.
8646 (bidi_init_it): Call it.
8647 (bidi_cache_iterator_state): Enlarge the cache if needed.
8648
8649 * bidi.c (bidi_move_to_visually_next): Rename from
8650 bidi_get_next_char_visually. All callers changed.
8651
8652 2010-05-14 Kenichi Handa <handa@m17n.org>
8653
8654 * dispextern.h (struct composition_it): New member reversed_p.
8655
8656 * composite.c (composition_compute_stop_pos): Search backward if
8657 ENDPOS < CHARPOS.
8658 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8659 Set CMP_IT->reversed_p.
8660 (composition_update_it): Pay attention to CMP_IT->reversed_p.
8661
8662 * xdisp.c (set_iterator_to_next):
8663 Call composition_compute_stop_pos with negative ENDPOS if we are
8664 scanning backward. Call composition_compute_stop_pos if scan
8665 direction is changed.
8666 (next_element_from_buffer): Call composition_compute_stop_pos with
8667 negative ENDPOS if we are scanning backward.
8668 (next_element_from_composition): Pay attention to
8669 IT->cmp_it.reversed_p.
8670
8671 2010-05-14 Kenichi Handa <handa@m17n.org>
8672
8673 * font.c (font_range): Return the range for the font found at first.
8674
8675 2010-05-14 Glenn Morris <rgm@gnu.org>
8676
8677 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8678
8679 * Makefile.in (mktime, X11, register): Move undefs to configure.
8680
8681 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8682 (MSDOS_X_OBJ): New variable.
8683 (MSDOS_SUPPORT_REAL): New constant.
8684 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8685 (obj): Use MSDOS_X_OBJ.
8686 (lisp): Use MSDOS_SUPPORT as a variable.
8687
8688 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8689 (GPM_MOUSE_SUPPORT): Now it's a constant.
8690 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8691 not cpp.
8692
8693 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
8694 (ns_appresdir): Remove, unused.
8695
8696 * Makefile.in (SHELL): Move outside cpp section.
8697
8698 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8699
8700 2010-05-13 Glenn Morris <rgm@gnu.org>
8701
8702 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8703 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8704
8705 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8706 HAVE_WINDOW_SYSTEM must be too.
8707
8708 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8709 (lisp): Remove WINNT_SUPPORT.
8710
8711 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8712 Let configure set these variables (to empty) in this case as well.
8713
8714 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8715 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8716
8717 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8718 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8719 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8720 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8721 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
8722 the values output by configure.
8723 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8724
8725 2010-05-12 Glenn Morris <rgm@gnu.org>
8726
8727 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8728 (LINKER_WAS_SPECIFIED): Remove.
8729
8730 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8731 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8732 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8733 * s/cygwin.h (LIB_GCC):
8734 * s/freebsd.h (LIB_GCC):
8735 * s/gnu-linux.h (LIB_GCC):
8736 * s/msdos.h (LIB_GCC):
8737 * s/netbsd.h (LIB_GCC):
8738 Move to configure.
8739
8740 2010-05-11 Karel Klíč <kklic@redhat.com>
8741
8742 * ftfont.c: Fix incorrect parentheses of #if condition for
8743 definining M17N_FLT_USE_NEW_FEATURE.
8744
8745 2010-05-11 Glenn Morris <rgm@gnu.org>
8746
8747 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8748 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8749
8750 2010-05-10 Eli Zaretskii <eliz@gnu.org>
8751
8752 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8753 unibyte buffers. See
8754 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8755
8756 2010-05-10 Glenn Morris <rgm@gnu.org>
8757
8758 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
8759 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
8760 (LIBES): Use LIBS_SYSTEM as a variable.
8761 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
8762 * s/aix4-2.h (LIBS_SYSTEM):
8763 * s/freebsd.h (LIBS_SYSTEM):
8764 * s/hpux10-20.h (LIBS_SYSTEM):
8765 * s/sol2-6.h (LIBS_SYSTEM):
8766 * s/unixware.h (LIBS_SYSTEM):
8767 Move to configure.
8768
8769 * s/aix4-2.h (MAIL_USE_LOCKF):
8770 * s/bsd-common.h (MAIL_USE_FLOCK):
8771 * s/darwin.h (MAIL_USE_FLOCK):
8772 * s/gnu-linux.h (MAIL_USE_FLOCK):
8773 * s/irix6-5.h (MAIL_USE_FLOCK):
8774 * s/template.h (MAIL_USE_FLOCK):
8775 Move to configure.
8776
8777 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
8778
8779 * Version 23.2 released.
8780
8781 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
8782
8783 * composite.c (autocmp_chars): Save point as marker before calling
8784 auto-composition-function (Bug#5984).
8785
8786 * lisp.h (restore_point_unwind): Add prototype.
8787
8788 * fileio.c (restore_point_unwind): Remove static attribute.
8789
8790 2010-05-08 Kenichi Handa <handa@m17n.org>
8791
8792 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
8793 new feature of libotf and m17n-flt.
8794 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
8795 Call OTF_check_features even if no specific feature is given.
8796 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
8797 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
8798 that OUT is NULL. Use OTF_drive_gsub_with_log and
8799 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
8800 OTF_drive_gpos.
8801 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
8802 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
8803 Setup mflt_enable_new_feature and mflt_try_otf.
8804
8805 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
8806
8807 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
8808
8809 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
8810 box and toolbar (Bug #6139).
8811 (xg_create_tool_bar): Remove comment (Bug #6139).
8812 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
8813 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
8814
8815 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
8816
8817 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
8818 Update dependencies.
8819
8820 2010-05-08 Eli Zaretskii <eliz@gnu.org>
8821
8822 * fringe.c (update_window_fringes): Set up truncation bitmaps for
8823 R2L lines.
8824
8825 2010-05-08 Glenn Morris <rgm@gnu.org>
8826
8827 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
8828
8829 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
8830 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
8831 (termcapobj): Replace with TERMCAP_OBJ.
8832 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
8833 (LIBES): Use LIBS_TERMCAP as a variable.
8834
8835 * s/freebsd.h (osreldate.h): No longer include, since this file
8836 does not use __FreeBSD_version any more.
8837
8838 * s/aix4-2.h (TERMINFO):
8839 * s/cygwin.h (TERMINFO):
8840 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8841 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
8842 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8843 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8844 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
8845 * s/irix6-5.h (TERMINFO):
8846 * s/netbsd.h (LIBS_TERMCAP):
8847 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
8848 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
8849 * s/usg5-4.h (TERMINFO):
8850 Move to configure.
8851
8852 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
8853
8854 * eval.c (unbind_to): Don't unbind a local binding into the global
8855 binding when the local binding disappeared. Inversely, don't unbind
8856 a global binding into a newly created local binding.
8857 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
8858 can specify the frame to use, when applicable. Adjust callers.
8859
8860 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
8861 Stefan Monnier <monnier@iro.umontreal.ca>
8862
8863 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
8864
8865 2010-05-07 Eli Zaretskii <eliz@gnu.org>
8866
8867 * w32fns.c: Include w32.h.
8868 (Fw32_shell_execute): Decode the error message before passing it
8869 to `error'. (Bug#6126)
8870
8871 * msdos.c (dos_set_window_size):
8872 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
8873 instead of `XSYMBOL (foo)->value'.
8874
8875 2010-05-07 Eli Zaretskii <eliz@gnu.org>
8876
8877 Fix the MS-DOS build, broken by autoconfiscation.
8878
8879 * Makefile.in: Don't use Make-style comments past the "start of
8880 cpp stuff" line.
8881 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
8882
8883 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
8884 edited directly by msdos/sed1v2.inp).
8885
8886 2010-05-07 Glenn Morris <rgm@gnu.org>
8887
8888 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
8889 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
8890 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
8891 move out of cpp section.
8892 * s/freebsd.h (LD_SWITCH_SYSTEM):
8893 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
8894 * s/netbsd.h (LD_SWITCH_SYSTEM):
8895 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
8896
8897 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8898
8899 Define LIB_STANDARD and START_FILES using autoconf.
8900 * s/usg5-4.h (LIB_STANDARD):
8901 * s/netbsd.h (START_FILES):
8902 * s/irix6-5.h (LIB_STANDARD):
8903 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
8904 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8905 * s/freebsd.h (START_FILES):
8906 * s/darwin.h (START_FILES):
8907 * s/cygwin.h (START_FILES):
8908 * s/aix4-2.h (LIB_STANDARD):
8909 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
8910 * Makefile.in (STARTFILES): Rename to START_FILES, define using
8911 autoconf, not cpp.
8912
8913 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
8914
8915 Remove NEED_BSDTTY and NEED_UNISTD_H.
8916 * s/hpux10-20.h (NEED_BSDTTY): Remove.
8917 * s/aix4-2.h (NEED_UNISTD_H): Remove.
8918 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
8919 <sys/ptyio.h> and <unistd.h>.
8920
8921 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
8922
8923 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
8924 * s/gnu.h (START_FILES): Remove empty definition.
8925
8926 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
8927
8928 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
8929
8930 2010-05-06 Glenn Morris <rgm@gnu.org>
8931
8932 * Makefile.in (CPP, LN_S): Remove unused variables.
8933
8934 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8935
8936 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
8937
8938 2010-05-05 Lawrence Mitchell <wence@gmx.li>
8939
8940 * m/sparc.h: Fix typo in earlier change.
8941
8942 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8943
8944 Misc tweaks.
8945 * eval.c (Fdefvaralias): Remove unintended nested if.
8946 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
8947
8948 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
8949
8950 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
8951
8952 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8953
8954 Remove BSD_PGRPS.
8955 * s/bsd-common.h (BSD_PGRPS): Remove undef.
8956 * s/gnu-linux.h (BSD_PGRPS): Remove.
8957 * term.c (dissociate_if_controlling_tty):
8958 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8959 (init_sys_modes, reset_sys_modes):
8960 * emacs.c (main):
8961 * callproc.c (Fcall_process, child_setup): Remove code depending
8962 on BSD_PGRPS.
8963
8964 Remove POSIX_SIGNALS.
8965 * s/usg5-4.h (POSIX_SIGNALS):
8966 * s/netbsd.h (POSIX_SIGNALS):
8967 * s/msdos.h (POSIX_SIGNALS):
8968 * s/ms-w32.h (POSIX_SIGNALS):
8969 * s/hpux11.h (POSIX_SIGNALS):
8970 * s/gnu.h (POSIX_SIGNALS):
8971 * s/gnu-linux.h (POSIX_SIGNALS):
8972 * s/freebsd.h (POSIX_SIGNALS):
8973 * s/darwin.h (POSIX_SIGNALS):
8974 * s/cygwin.h (POSIX_SIGNALS):
8975 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8976 * s/unixware.h:
8977 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8978 * process.c (create_process):
8979 * syssignal.h:
8980 * sysdep.c (wait_for_termination, init_signals):
8981 * process.c (create_process):
8982 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8983 remove all code that assumes the contrary.
8984
8985 2010-05-04 Glenn Morris <rgm@gnu.org>
8986
8987 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8988 variable.
8989 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8990 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8991 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8992 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
8993 LD_SWITCH_SYSTEM_tmp.
8994 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
8995 New variables, set by configure.
8996
8997 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8998 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
8999 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9000 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9001 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9002
9003 * s/aix4-2.h (C_SWITCH_SYSTEM):
9004 * m/alpha.h (C_SWITCH_MACHINE):
9005 Move to configure.in.
9006 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9007 New variables, set by configure.
9008 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9009 $c_switch_machine and $c_switch_system.
9010
9011 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9012
9013 * s/hpux10-20.h (LIB_STANDARD): New definition.
9014 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9015 on it, not used anymore.
9016
9017 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
9018
9019 * eval.c (internal_condition_case_n): Rename from
9020 internal_condition_case_2.
9021 (internal_condition_case_2): New function.
9022
9023 * xdisp.c (safe_call): Use internal_condition_case_n.
9024
9025 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9026 (internal_delete_file, Frename_file): Callers changed.
9027
9028 * buffer.c (Fkill_buffer):
9029 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9030
9031 * lisp.h: Update prototypes.
9032
9033 2010-05-03 Glenn Morris <rgm@gnu.org>
9034
9035 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9036 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9037 (LIBXT): Set with configure, not cpp.
9038 (LIBX): Remove.
9039 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9040
9041 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9042
9043 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9044 The FreeBSD is not needed, the default works, Solaris version is
9045 not needed, and the remaining case is not supported by configure.
9046
9047 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9048
9049 * xsmfns.c (CHDIR_OPT): New define.
9050 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9051 restarting emacs.
9052
9053 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9054 shut_down_emacs.
9055
9056 * emacs.c (USAGE1): Mention --chdir.
9057 (main): Handle --chdir.
9058 (standard_args): Add --chdir.
9059 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9060 #5552).
9061
9062 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9063
9064 Remove LD_SWITCH_MACHINE.
9065 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9066 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9067
9068 Clean up IRIX code.
9069 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9070 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9071
9072 Clean up AIX code.
9073 * m/ibmrs6000.inp: Remove file, unused.
9074 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9075 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9076 definition ...
9077 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9078
9079 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9080 unused.
9081
9082 2010-05-01 Eli Zaretskii <eliz@gnu.org>
9083
9084 Emulate POSIX_SIGNALS on MS-Windows.
9085
9086 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9087 (SIG_SETMASK, SIG_UNBLOCK): Define.
9088
9089 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9090 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9091 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9092
9093 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9094 New stubs.
9095
9096 Miscellaneous fixes of bidi display.
9097
9098 * xdisp.c (find_row_end): New function, refactored from display_line.
9099 (display_line): Use it.
9100 (extend_face_to_end_of_line): In almost-filled rows, extend only
9101 if the row is R2L and not continued.
9102 (display_line): Fix prepending of truncation glyphs to R2L rows.
9103 Preserve overlay and string info in row->end.
9104 (insert_left_trunc_glyphs): Support addition of left truncation
9105 glyphs to R2L rows.
9106 (set_cursor_from_row): Don't place cursor on the vertical border
9107 glyph between adjacent windows. Fix a crash when a display string
9108 is continued to the next line. Don't return zero if cursor was
9109 found by `cursor' property of a display string.
9110 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9111 test for that explicitly.
9112
9113 2010-05-01 Glenn Morris <rgm@gnu.org>
9114
9115 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9116 for clarity.
9117 (OTHER_OBJ): Remove.
9118 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9119 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9120
9121 2010-05-01 Karel Klíč <kklic@redhat.com>
9122
9123 * fileio.c (Ffile_selinux_context): Context functions may return null.
9124
9125 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9126
9127 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
9128
9129 2010-04-30 Glenn Morris <rgm@gnu.org>
9130
9131 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9132 (OTHER_OBJ): Define as a separate variable, for clarity.
9133
9134 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9135
9136 * xsettings.c: Include limits.h and update file comment.
9137
9138 2010-04-30 Glenn Morris <rgm@gnu.org>
9139
9140 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9141 Set with configure, not cpp.
9142 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9143
9144 * Makefile.in (mallocobj): Remove.
9145 (otherobj): Simplify using @OTHER_OBJ@.
9146
9147 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9148 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9149 Don't bother making nsgui.h dependency platform-specific.
9150
9151 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9152
9153 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9154
9155 * process.c (read_process_output, exec_sentinel): Don't burp if the
9156 sentinel/filter kills the current buffer (bug#6060).
9157
9158 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
9159 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9160 Remove unused var `args'.
9161 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9162 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9163 * doc.c (store_function_docstring): Use XSETCAR.
9164
9165 2010-04-28 Glenn Morris <rgm@gnu.org>
9166
9167 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9168 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9169
9170 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9171
9172 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9173 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9174
9175 * Makefile.in (FONT_OBJ): New, set by configure.
9176 (FONT_DRIVERS): Use $FONT_OBJ.
9177
9178 * Makefile.in (LIBXMU): Set with configure, not cpp.
9179 * s/aix4-2.h (LIBXMU):
9180 * s/hpux10-20.h (LIBXMU):
9181 Remove definition, now set in configure.
9182
9183 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9184
9185 * m/amdx86-64.h [i386]: Move this test to configure.in.
9186
9187 2010-04-27 Glenn Morris <rgm@gnu.org>
9188
9189 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9190 * s/unixware.h (NEED_LIBW): Remove definition.
9191
9192 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9193 (TOOLKIT_LIBW): New, set by configure.
9194 (@X_TOOLKIT_TYPE@): No longer define it.
9195
9196 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9197 (MOTIF_LIBW): Set with configure, not cpp.
9198 * s/aix4-2.h (LIB_MOTIF):
9199 * s/gnu-linux.h (LIB_MOTIF):
9200 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9201
9202 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9203
9204 Reduce CPP usage.
9205 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9206 (obj): Use autoconf for unexec instead of cpp.
9207 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9208 Remove definitions and undefs. Inline definitions in the only user.
9209 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
9210
9211 2010-04-27 Glenn Morris <rgm@gnu.org>
9212
9213 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9214 since the defaults (set by the system file) are fine in most cases.
9215 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9216 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9217 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9218 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9219 Remove definitions, since they are set correctly in s/gnu-linux.h.
9220 * s/freebsd.h (START_FILES, LIB_STANDARD):
9221 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9222 * s/hpux10-20.h (START_FILES):
9223 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9224 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9225
9226 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9227 (MOTIF_LIBW): Use $LIBXP.
9228 (otherobj): Use $WIDGET_OBJ.
9229
9230 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9231
9232 * Makefile.in (LIBS_MACHINE): Remove, unused.
9233
9234 Use autoconf instead of cpp for LIB_MATH.
9235 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9236 * s/cygwin.h (LIB_MATH): Likewise.
9237 * Makefile.in (LIB_MATH): Do not define with cpp.
9238 (LIBES): Use autoconf for LIB_MATH.
9239
9240 2010-04-26 Kenichi Handa <handa@m17n.org>
9241
9242 * composite.c (Ffind_composition_internal): Fix the return value
9243 for an automatic composition.
9244
9245 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9246
9247 Remove all NO_ARG_ARRAY uses.
9248 * fns.c (concat2, concat3, nconc2):
9249 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9250 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9251 * m/xtensa.h (NO_ARG_ARRAY):
9252 * m/template.h (NO_ARG_ARRAY):
9253 * m/sparc.h (NO_ARG_ARRAY):
9254 * m/sh3.h (NO_ARG_ARRAY):
9255 * m/mips.h (NO_ARG_ARRAY):
9256 * m/macppc.h (NO_ARG_ARRAY):
9257 * m/iris4d.h (NO_ARG_ARRAY):
9258 * m/intel386.h (NO_ARG_ARRAY):
9259 * m/ibms390x.h (NO_ARG_ARRAY):
9260 * m/ibms390.h (NO_ARG_ARRAY):
9261 * m/ibmrs6000.h (NO_ARG_ARRAY):
9262 * m/ia64.h (NO_ARG_ARRAY):
9263 * m/hp800.h (NO_ARG_ARRAY):
9264 * m/arm.h (NO_ARG_ARRAY):
9265 * m/amdx86-64.h (NO_ARG_ARRAY):
9266 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9267
9268 2010-04-25 Eli Zaretskii <eliz@gnu.org>
9269
9270 * xdisp.c (display_line): Don't assume 2nd call to
9271 get_next_display_element cannot return zero. (Bug#6030)
9272 (iterate_out_of_display_property): New function, body from pop_it.
9273 (pop_it): Use it.
9274
9275 2010-04-24 Glenn Morris <rgm@gnu.org>
9276
9277 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9278 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9279 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9280 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9281
9282 2010-04-24 Eli Zaretskii <eliz@gnu.org>
9283
9284 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9285 use `get_next_display_element' and `set_iterator_to_next' to
9286 advance to the next character, when looking for the character that
9287 begins the next row.
9288
9289 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9290 definition of "struct Lisp_Symbol".
9291
9292 2010-04-24 Glenn Morris <rgm@gnu.org>
9293
9294 * Makefile.in (CRT_DIR): New variable, set by configure.
9295 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9296 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9297
9298 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9299
9300 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9301
9302 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9303
9304 Remove redundant flags.
9305 * s/freebsd.h (C_SWITCH_SYSTEM):
9306 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9307 * s/netbsd.h (C_SWITCH_SYSTEM):
9308 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9309 of these.
9310
9311 Simplify m/intel386.h.
9312 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9313 user: ecrt0.c.
9314 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9315 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9316 the only user: s/unixware.h.
9317 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9318 from m/intel386.h.
9319 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9320 Definitions moved here from m/intel386.h.
9321
9322 * m/mips.h: Remove #if 0 code.
9323
9324 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9325
9326 Fix display of composed characters from L2R scripts in bidi buffers.
9327 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9328 After advancing IT past the composition, resync the bidi iterator
9329 with IT's position. (Bug#5977)
9330
9331 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9332
9333 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9334 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9335
9336 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9337
9338 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9339
9340 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9341
9342 Support `display' text properties and overlay strings in bidi buffers.
9343 * xdisp.c (pop_it): When the stack is popped after displaying
9344 from a string, bidi-iterate to exit from the text portion covered
9345 by the `display' property or overlay. (Bug#5988, bug#5920)
9346
9347 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9348
9349 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9350 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9351
9352 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9353 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9354
9355 Simplify STARTFILES definition.
9356 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9357 relying on Makefile.in to define it.
9358 * s/cygwin.h (START_FILES): Likewise.
9359 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9360
9361 Clean up Solaris code.
9362 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9363 (LIB_MOTIF): Remove, configure takes care of this.
9364 (NOT_USING_MOTIF): Remove, unused.
9365 * xrdb.c: Remove #if 0-ed #include.
9366 (SYSV): Remove conditional for old SysV.
9367 * sysdep.c (closedir): Remove conditional code for Solaris,
9368 Solaris has closedir.
9369
9370 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9371
9372 * xsettings.c (read_and_apply_settings): Check if current_font is
9373 NULL before strcmp (Bug#6001).
9374
9375 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9376
9377 Clean up HP-UX files.
9378 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9379 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9380 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9381 * s/hpux10-20.h: ... to the only user, here.
9382
9383 2010-04-21 Eli Zaretskii <eliz@gnu.org>
9384
9385 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9386 use buffer-local values of paragraph-start and paragraph-separate.
9387 <paragraph_start_re, paragraph_separate_re>: Rename from
9388 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9389 (Bug#5992)
9390
9391 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9392
9393 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9394 current_tool_bar_style are new.
9395 (store_config_changed_event): Rename from store_font_changed_event.
9396 (XSETTINGS_TOOL_BAR_STYLE): New define.
9397 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9398 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9399 HAVE_XFT.
9400 (something_changedCB): store_font_changed_event is now
9401 store_config_changed_event.
9402 (parse_settings): Rename from parse_xft_settings.
9403 Read non-xft xsettings outside #ifdef HAVE_XFT.
9404 (read_settings): Rename from read_xft_settings.
9405 (apply_xft_settings): Take current settings as parameter. Do not
9406 call read_(xft)_settings.
9407 (read_and_apply_settings): New function.
9408 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9409 Call read_and_apply_settings if there are settings to be read.
9410 (init_xsettings): Rename from init_xfd_settings.
9411 Call read_and_apply_settings unconditionally.
9412 (xsettings_initialize): Call init_xsettings.
9413 (Ftool_bar_get_system_style): New function.
9414 (syms_of_xsettings): Define Qmonospace_font_name and
9415 Qtool_bar_style. Initialize current_tool_bar_style to nil.
9416 defsubr Stool_bar_get_system_style. Fprovide on
9417 dynamic-setting.
9418 Move misplaced HAVE_GCONF.
9419
9420 * xsettings.h (Ftool_bar_get_system_style): Declare.
9421
9422 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9423 Qtext, Qboth, Qboth_horiz are new.
9424 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9425 Vtool_bar_style, tool_bar_max_label_size.
9426
9427 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9428
9429 * keyboard.c: QClabel is new.
9430 (parse_tool_bar_item): Take out QClabel from tool bar items.
9431 Try to construct a label if ther is no QClabel.
9432 (syms_of_keyboard): Intern :label as QClabel.
9433
9434 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9435 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9436 New.
9437
9438 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9439 dynamic-setting.el.
9440
9441 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9442 (xg_make_tool_item, xg_show_toolbar_item): New function.
9443 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9444 Call xg_make_tool_item to make a tool bar item.
9445 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9446
9447 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9448 into account for toolbars.
9449
9450 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9451
9452 * data.c (make_blv): Declarations before code (Bug#5993).
9453
9454 2010-04-21 Glenn Morris <rgm@gnu.org>
9455
9456 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9457 Define using autoconf, not cpp.
9458 (LIBXSM): New variable, set by autoconf.
9459 (LIBXT): Use $LIBXSM.
9460
9461 2010-04-21 Dan Nicolaescu <local_user@dannlt>
9462
9463 Remove NOMULTIPLEJOBS, unused.
9464 * s/template.h (NOMULTIPLEJOBS):
9465 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9466
9467 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9468 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9469 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9470 detects -znocombreloc and passes it to the linker
9471 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9472
9473 2010-04-21 Glenn Morris <rgm@gnu.org>
9474
9475 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9476
9477 2010-04-21 Karel Klíč <kklic@redhat.com>
9478
9479 * Makefile.in (LIBSELINUX_LIBS): New.
9480 (LIBES): Add $LIBSELINUX_LIBS.
9481 * eval.c, lisp.h (call7): New function.
9482 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9483 (Ffile_selinux_context, Fset_file_selinux_context):
9484 New functions.
9485 (Fcopy_file): New parameter preserve-selinux-context.
9486 (Frename_file): Preserve selinux context when renaming by copy-file.
9487
9488 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
9489 Eli Zaretskii <eliz@gnu.org>
9490
9491 Don't depend on cm.c or termcap.c on Windows, use stubs.
9492 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9493 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9494 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9495 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9496 (sys_tputs, sys_tgetstr): New stubs.
9497 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9498 (tputs, tgetstr): New; define to sys_*.
9499
9500 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
9501
9502 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9503
9504 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9505
9506 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9507 Just signal a warning rather than an error when inside a let.
9508 (Fmake_variable_frame_local): Add the same test.
9509
9510 * font.c (syms_of_font): Make the style table vars read-only.
9511
9512 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9513 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9514
9515 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9516
9517 2010-04-20 Eli Zaretskii <eliz@gnu.org>
9518
9519 Fix R2L paragraph display on TTY.
9520
9521 * xdisp.c (unproduce_glyphs): New function.
9522 (display_line): Use it when produced glyphs are discarded from R2L
9523 glyph rows.
9524 (append_composite_glyph): In R2L rows, prepend the glyph rather
9525 than appending it.
9526
9527 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9528 rather than append it. Set up the resolved_level and bidi_type
9529 attributes of the appended glyph.
9530 (produce_special_glyphs): Mirror the backslash continuation
9531 character in R2L lines.
9532
9533 Implement display of R2L paragraphs in GUI sessions.
9534
9535 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9536 append_stretch_glyph.
9537 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9538 Fix off-by-one error in computing x at end of text in the row.
9539 (append_stretch_glyph): In reversed row, prepend the glyph rather
9540 than append it. Set resolved_level and bidi_type of the glyph.
9541 (extend_face_to_end_of_line): If the row is reversed, prepend a
9542 stretch glyph whose width is such that the rightmost glyph will be
9543 drawn at the right margin of the window. Fix off-by-one error on
9544 TTY frames in testing whether a line needs face extension.
9545 Fix face extension at ZV. If this is the last glyph row, use
9546 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9547 region face.
9548 (set_cursor_from_row, display_line):
9549 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
9550 row->continuation_lines_width.
9551 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9552 are at ZV. Fixes a crash when reseated to ZV by
9553 try_window_reusing_current_matrix.
9554 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9555 which happens with R2L glyph rows. Fixes a crash when inserting a
9556 character at end of an R2L line.
9557 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9558 treat them as having zero-width characters. Improve comments.
9559 Don't reverse pos_before and pos_after for reversed glyph rows.
9560 Set cursor.x to negative value when the cursor might be on the
9561 left fringe.
9562 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9563 left fringe, not the right one.
9564 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9565 (erase_phys_cursor): For reversed cursor_row, support cursor on
9566 the left fringe.
9567
9568 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9569 of continuation indicators on the fringes.
9570 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9571 left fringe.
9572
9573 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9574 draw cursor on the left fringe.
9575
9576 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9577 cursor on the left fringe.
9578
9579 * dispnew.c (update_text_area): Handle reversed desired rows when
9580 the cursor is on the left fringe.
9581 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9582 below, not by 0, for when the cursor is on the left fringe.
9583
9584 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9585
9586 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9587 widget is a scrollbar.
9588
9589 2010-04-20 Kenichi Handa <handa@m17n.org>
9590
9591 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9592 only when the arg CHARSET_LIST is nil.
9593
9594 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9595
9596 Make variable forwarding explicit rather the using special values.
9597 Basically, this makes the structure of buffer-local values and object
9598 forwarding explicit in the type of Lisp_Symbols rather than use
9599 special Lisp_Objects for that. This tends to lead to slightly more
9600 verbose code, but is more C-like, simpler, and makes it easier to make
9601 sure we handled all cases, among other things by letting the compiler
9602 help us check it.
9603 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9604 Removing forwarding objects.
9605 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9606 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9607 explicit rather than hiding them inside Lisp_Object "values".
9608 (XFWDTYPE): New macro.
9609 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9610 (XBUFFER_LOCAL_VALUE): Remove.
9611 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9612 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9613 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9614 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9615 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9616 Remove the Lisp_Misc_* header.
9617 (struct Lisp_Buffer_Local_Value): Redefine.
9618 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9619 (struct Lisp_Misc_Any): Add filler to get the right size.
9620 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9621 Lisp_Intfwd.
9622 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9623 (DEFVAR_KBOARD): Allocate a forwarding object.
9624 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9625 (let_shadows_global_binding_p): New function.
9626 (union Lisp_Val_Fwd): New type.
9627 (make_blv): New function.
9628 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9629 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9630 (swap_in_symval_forwarding, find_symbol_value, Fset)
9631 (let_shadows_buffer_binding_p, set_internal, default_value)
9632 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9633 (Fkill_local_variable, Fmake_variable_frame_local)
9634 (Flocal_variable_p, Flocal_variable_if_set_p)
9635 (Fvariable_binding_locus):
9636 * xdisp.c (select_frame_for_redisplay):
9637 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9638 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9639 * frame.c (store_frame_param):
9640 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9641 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9642 value structure.
9643 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9644 (clone_per_buffer_values): Only adjust markers into the current buffer.
9645 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9646 (Fbuffer_local_value, set_buffer_internal_1)
9647 (swap_out_buffer_local_variables):
9648 Adapt to the new symbol value structure.
9649 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9650 (defvar_per_buffer): Take a new arg for the fwd object.
9651 (buffer_lisp_local_variables): Return a proper alist (different fix
9652 for bug#4138).
9653 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9654 (Fgarbage_collect): Don't handle buffer_defaults specially.
9655 (mark_object): Handle new symbol value structure rather than the old
9656 special Lisp_Misc_* objects.
9657 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9658 * term.c (set_tty_color_mode):
9659 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9660 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9661 a buffer_local_flags.
9662 * print.c (print_object): Get rid of impossible forwarding objects.
9663
9664 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9665
9666 * bidi.c (bidi_get_type, bidi_get_category)
9667 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
9668 (bidi_type_of_next_char, bidi_level_of_next_char):
9669 Declare static. Use `INLINE' rather than `inline'.
9670
9671 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
9672
9673 * dired.c (Ffile_attributes): Fix typo in docstring.
9674
9675 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9676
9677 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9678 NSInteger (Bug#5811).
9679
9680 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9681
9682 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9683 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9684
9685 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9686
9687 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9688
9689 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
9690
9691 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9692 terminal frames (Bug#5837).
9693
9694 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9695
9696 * .gdbinit (xsubchartable): New command.
9697
9698 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9699
9700 * xdisp.c (display_line): Don't write beyond the last glyph row in
9701 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
9702 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9703 and
9704 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9705
9706 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9707
9708 * alloc.c (Fpurecopy): Hash-cons if requested.
9709 (syms_of_alloc): Update purify-flag docstring.
9710
9711 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9712
9713 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9714 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9715
9716 2010-04-17 Eli Zaretskii <eliz@gnu.org>
9717
9718 Fix a crash when an NSM character is inserted at BEGV.
9719
9720 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9721 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9722 NEUTRAL_B or UNKNOWN_BT.
9723
9724 2010-04-16 Eli Zaretskii <eliz@gnu.org>
9725
9726 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9727 other rows with cursor unless they are different from this row and
9728 this row is part of a continued line. (Bug#5943)
9729
9730 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9731
9732 * s/freebsd.h: Restore osreldate.h include.
9733 Suggested by Naohiro Aota.
9734
9735 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9736
9737 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9738
9739 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9740
9741 * s/cygwin.h: Avoid linking against static libgcc.
9742
9743 2010-04-15 Juri Linkov <juri@jurta.org>
9744
9745 * window.c: Add Qscroll_command.
9746 Remove Vscroll_preserve_screen_position_commands.
9747 (window_scroll_pixel_based, window_scroll_line_based): Check the
9748 `scroll-command' property on the last command instead of searching
9749 the last command in Vscroll_preserve_screen_position_commands.
9750 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9751 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9752 (scroll-preserve-screen-position): Doc fix.
9753 (Vscroll_preserve_screen_position_commands): Remove variable.
9754
9755 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9756
9757 * xdisp.c (message): Do not use NO_ARG_ARRAY.
9758
9759 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
9760
9761 Reduce cpp use in Makefile.in.
9762 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
9763 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
9764 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
9765 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
9766 (CRT0_COMPILE): Remove, inline it in the only user.
9767
9768 2010-04-14 Juri Linkov <juri@jurta.org>
9769
9770 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
9771 `scroll-up-command' and `M-v' from `scroll-down' to
9772 `scroll-down-command'.
9773
9774 2010-04-14 Juri Linkov <juri@jurta.org>
9775
9776 * window.c (Vscroll_preserve_screen_position_commands): New variable
9777 with the default value as the list of Qscroll_down and Qscroll_up.
9778 (window_scroll_pixel_based, window_scroll_line_based): Search the
9779 last command in the list Vscroll_preserve_screen_position_commands
9780 instead of comparing with Qscroll_up and Qscroll_down.
9781
9782 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
9783
9784 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
9785 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
9786 does that.
9787
9788 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
9789 to zero.
9790
9791 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9792
9793 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
9794
9795 Try to solve the problem of spurious EOF chars in long lines of text
9796 sent to interactive subprocesses.
9797 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
9798 (system_process_attributes): Remove unused var `ttotal'.
9799 * process.c (send_process): Don't bother breaking long line with EOF
9800 chars when talking to ttys any more.
9801 (wait_reading_process_output): Output a warning when called in such
9802 a way that it could block without being interruptible.
9803
9804 Try to detect file modification within the same second.
9805 * buffer.h (struct buffer): New field modtime_size.
9806 * buffer.c (reset_buffer): Initialize it.
9807 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
9808 (Fverify_visited_file_modtime): Check it.
9809 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9810 (Fset_visited_file_modtime): Set (or clear) it.
9811
9812 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9813
9814 * process.c (status_notify): Remove unused var `ro'.
9815
9816 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
9817
9818 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
9819 more than one visual (Bug#5938).
9820
9821 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9822
9823 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
9824 Undefine.
9825
9826 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
9827
9828 Remove C_SWITCH_SYSTEM_TEMACS.
9829 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
9830 (malloc, realloc, free): Use emacs, not temacs for conditional
9831 definition.
9832
9833 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
9834 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
9835
9836 Use autoconf, not cpp for some variables.
9837 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
9838 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
9839 (ALL_CFLAGS): Use them as make variables.
9840 (really-lwlib, really-oldXMenu): Do not pass them.
9841
9842 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
9843
9844 * xmenu.c (apply_systemfont_to_dialog): New.
9845 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
9846
9847 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9848
9849 * process.c (exec_sentinel): Preserve current-buffer.
9850
9851 * process.c (read_process_output): Move the save-current-buffer to
9852 apply to both the filter and the non-filter branches.
9853
9854 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
9855
9856 * s/msdos.h (UNEXEC): New definition.
9857
9858 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9859
9860 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
9861 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
9862
9863 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
9864 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
9865 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
9866 TRY_WINDOW_CHECK_MARGINS.
9867
9868 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
9869 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
9870 width only when it is for padding.
9871
9872 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
9873
9874 * xfns.c (Fx_show_tip): Call try_window in a loop until
9875 fonts_changed_p is zero (Bug#2423).
9876
9877 2010-04-08 Eli Zaretskii <eliz@gnu.org>
9878
9879 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
9880 the end of TEXT_AREA. (Bug#5856)
9881
9882 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9883
9884 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9885 HAVE_GCONF.
9886
9887 2010-04-08 Eli Zaretskii <eliz@gnu.org>
9888
9889 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
9890 prev.orig_type, for resolving type of NSM. (Bug#5858)
9891
9892 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9893
9894 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9895 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
9896 in current_font.
9897 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
9898 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
9899 New functions.
9900 (syms_of_xsettings): Initialize current_font.
9901 defsubr Sfont_get_system_normal_font.
9902
9903 * xsettings.h (Ffont_get_system_normal_font)
9904 (xsettings_get_system_normal_font): Declare.
9905
9906 * xfns.c (extern xlwmenu_default_font): Remove.
9907 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
9908 to xlwmenu.c.
9909
9910 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
9911 menu items in UTF-8.
9912
9913 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
9914 (apply_systemfont_to_menu): New function.
9915 (set_frame_menubar, create_and_show_popup_menu):
9916 Call apply_systemfont_to_menu.
9917
9918 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
9919
9920 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
9921 FRAME_LINE_TO_PIXEL_Y.
9922
9923 * xterm.c (x_set_window_size_1): Don't add border_width/height to
9924 pixelwidth/height.
9925
9926 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
9927
9928 Simplify code for HP machines.
9929 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
9930 for GNU_LINUX, not needed.
9931 (UNEXEC, NEED_BSDTTY): Move definitions...
9932 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
9933
9934 * m/iris4d.h (UNEXEC): Move definition ...
9935 * s/irix6-5.h (UNEXEC): ... here.
9936
9937 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
9938
9939 * xfns.c (set_machine_and_pid_properties): New function.
9940 (Fx_create_frame): Call set_machine_and_pid_properties.
9941
9942 2010-04-03 Eli Zaretskii <eliz@gnu.org>
9943
9944 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
9945 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
9946 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
9947
9948 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
9949 in this function. (Bug#5703)
9950
9951 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
9952
9953 * nsterm.h: Fix last change.
9954
9955 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
9956
9957 * m/intel386.h (NO_REMAP): Move definition ...
9958 * s/msdos.h (NO_REMAP): ... here.
9959
9960 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9961
9962 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9963 used on those platforms.
9964
9965 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9966
9967 Remove extern errno declarations.
9968 * xterm.c:
9969 * xrdb.c:
9970 * w32term.c:
9971 * unexec.c:
9972 * unexaix.c:
9973 * sysdep.c:
9974 * process.c:
9975 * lread.c:
9976 * keyboard.c:
9977 * floatfns.c:
9978 * filelock.c:
9979 * fileio.c:
9980 * emacs.c (main):
9981 * ecrt0.c:
9982 * dispnew.c:
9983 * callproc.c:
9984 * buffer.c: Remove errno extern declarations.
9985 * s/netbsd.h (NEED_ERRNO): Remove.
9986
9987 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9988
9989 Remove all uses of LIBX11_SYSTEM.
9990 * Makefile.in (LIBX11_SYSTEM): Remove.
9991 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
9992 instead.
9993
9994 2010-04-01 Eli Zaretskii <eliz@gnu.org>
9995
9996 Remove support for DJGPP v1.x (bug#5813).
9997
9998 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
9999 * s/msdos.h:
10000 * unexec.c (make_hdr, copy_text_and_data):
10001 * sysdep.c (wait_for_termination, sys_subshell):
10002 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
10003 (IT_set_terminal_modes, __write, _rename, gethostname)
10004 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10005 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10006 the value of __DJGPP__.
10007 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10008 compatibility code.
10009 * lread.c:
10010 * gmalloc.c (memalign):
10011 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10012 * emacs.c (main):
10013 * dosfns.c (init_dosfns):
10014 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10015
10016 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10017
10018 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10019 string with `cursor' property comes from an `after-string'
10020 overlay. (Bug#5816)
10021
10022 2010-04-01 Glenn Morris <rgm@gnu.org>
10023
10024 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10025 Define as Makefile variables.
10026 (LIBX): Use above variables rather than directly using autoconf.
10027
10028 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10029
10030 Clean up BSD_SYSTEM use.
10031 * xterm.c:
10032 * process.c:
10033 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10034 for including <sys/ioctl.h>.
10035 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10036 code is only used for MSDOS.
10037
10038 2010-03-31 Juri Linkov <juri@jurta.org>
10039
10040 * image.c: Add `Qextension_data'.
10041 (syms_of_image): Initialize and staticpro `Qextension_data'.
10042 (Fimage_metadata): Rename from `Fimage_extension_data'.
10043 (gif_load): Put GIF extension data to the property
10044 `Qextension_data'.
10045
10046 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10047
10048 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10049 * nsterm.h: Fix prototype.
10050
10051 2010-03-31 Eli Zaretskii <eliz@gnu.org>
10052
10053 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10054 trailing whitespace in right-to-left rows.
10055
10056 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10057
10058 Get rid of the direct_output optimizations.
10059 * keyboard.c (nonundocount): Remove extern declaration.
10060 (command_loop_1): Remove brittle optimisation for cheap and
10061 common operations.
10062 * xdisp.c (redisplay_internal): Don't bother checking
10063 redisplay_performed_directly_p any more.
10064 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10065 any more.
10066 * dispnew.c (redisplay_performed_directly_p)
10067 (direct_output_for_insert, direct_output_forward_char):
10068 * dispextern.h (redisplay_performed_directly_p)
10069 (direct_output_for_insert, direct_output_forward_char): Remove.
10070 * cmds.c (nonundocount): Make it static.
10071
10072 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
10073
10074 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10075
10076 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
10077
10078 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10079 invisible (Bug#5766).
10080
10081 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
10082
10083 * xdisp.c (x_consider_frame_title, update_window_cursor):
10084 Remove HAVE_NS conditionals.
10085 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
10086
10087 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10088 filename for the title.
10089 (ns_set_doc_edited): Do nothing if the selected window is a
10090 minibuffer window.
10091
10092 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10093 ns_set_doc_edited.
10094
10095 * nsterm.m: Remove unneeded prototype.
10096
10097 2010-03-31 Glenn Morris <rgm@gnu.org>
10098
10099 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10100 in the DOC file. (Bug#5336)
10101
10102 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10103
10104 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10105
10106 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10107
10108 * window.c (keys_of_window): Remove redundant/overridden bindings.
10109
10110 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10111
10112 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10113 Restore original behavior when the iterator is not bidi_p.
10114
10115 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10116
10117 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10118
10119 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10120
10121 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10122 are outside the range of cached character positions.
10123
10124 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
10125
10126 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10127
10128 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10129
10130 Initial support for bidirectional editing.
10131
10132 * Makefile.in (obj): Include bidi.o.
10133 (bidi.o): New target.
10134
10135 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10136 ($(BLD)/bidi.$(O)): New target.
10137
10138 * bidi.c: New file.
10139
10140 * buffer.h (struct buffer): New members bidi_display_reordering
10141 and bidi_paragraph_direction.
10142
10143 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10144 and bidi_paragraph_direction.
10145 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10146 and bidi-paragraph-direction.
10147 (Fbuffer_swap_text): Swap the values of
10148 bidi_display_reordering and bidi_paragraph_direction.
10149
10150 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10151 (bidi_type_t, bidi_dir_t): New types.
10152 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10153 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10154 prev_stop, base_level_stop, and eol_pos.
10155 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10156 (IT_STACK_SIZE): Enlarge to 5.
10157 (struct glyph_row): New member reversed_p.
10158 <string_buffer_position>: Update prototype.
10159 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10160 glyph_row if bidi_it.paragraph_dir == R2L.
10161 (struct glyph): New members resolved_level and bidi_type.
10162
10163 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10164 processing or buffer's direction is right-to-left.
10165 (prepare_desired_row): Preserve the reversed_p flag.
10166 (row_equal_p): Compare the reversed_p attributes as well.
10167
10168 * xdisp.c (init_iterator): Initialize it->bidi_p.
10169 Call bidi_init_it and set it->paragraph_embedding from the current
10170 buffer's value of bidi_paragraph_direction.
10171 (reseat_1): Initialize bidi_it.first_elt.
10172 (set_iterator_to_next, next_element_from_buffer): Use the value of
10173 paragraph_embedding to determine the paragraph direction.
10174 (set_iterator_to_next): Under bidi reordering, call
10175 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10176 new_paragraph flag is set in the bidi iterator.
10177 (next_element_from_buffer): If bidi_it.first_elt is set,
10178 initialize paragraph direction and find the first character to
10179 display in the visual order. If reseated to a middle of a line,
10180 prime the bidi iterator starting at the line's beginning.
10181 Handle the situation where we overstepped stop_charpos due to
10182 non-linearity of the bidi iteration. Likewise for when we back up
10183 beyond the previous stop_charpos. When moving across stop_charpos,
10184 record it in prev_stop.
10185 (display_line): Set row->end and it->start for the next row to the
10186 next character in logical order. Always extend reversed_p rows to
10187 the end of line, even if they end at ZV. Copy the reversed_p flag
10188 to the next glyph row. Keep calling set_cursor_from_row for
10189 bidi-reordered rows even if we already have a possible candidate
10190 for cursor position. Set row_end after all the row's glyphs have
10191 been produced, by looping over the glyphs. Record the position
10192 after EOL in it->eol_pos, and use it to set end_pos of the last
10193 row produced for a continued line.
10194 <Qright_to_left, Qleft_to_right>: New variables.
10195 (syms_of_xdisp): Initialize and staticpro them.
10196 (string_buffer_position_lim): New function.
10197 (string_buffer_position): Most of code moved to
10198 string_buffer_position_lim. Last argument and return value are
10199 now EMACS_INT; all callers changed.
10200 (set_cursor_from_row): Rewritten to support bidirectional text and
10201 reversed glyph rows.
10202 (text_outside_line_unchanged_p, try_window_id):
10203 Disable optimizations if we are reordering bidirectional text and the
10204 paragraph direction can be affected by the change.
10205 (append_glyph, append_composite_glyph)
10206 (produce_image_glyph, append_stretch_glyph): Set the
10207 resolved_level and bidi_type members of each glyph.
10208 (append_glyph): If the glyph row is reversed, prepend the glyph
10209 rather than appending it.
10210 (handle_stop_backwards): New function.
10211 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
10212 (reseat): Call handle_stop_backwards to recompute prev_stop and
10213 base_level_stop for the new position.
10214 (handle_invisible_prop): Under bidi iteration, skip invisible text
10215 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10216 paragraph direction. Update IT->prev_stop after skipping
10217 invisible text.
10218 (move_it_in_display_line_to): New variables prev_method
10219 and prev_pos. Compare for strict equality in
10220 BUFFER_POS_REACHED_P.
10221 (try_cursor_movement): Examine all the candidate rows that occlude
10222 point, to return the best match. If rows are bidi-reordered
10223 and point moved backwards, back up to the row that is not a
10224 continuation line, and start looking for a suitable row from
10225 there.
10226
10227 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10228 rather than appending, if the glyph_row's reversed_p flag is set.
10229 Set the resolved_level and bidi_type members of each glyph.
10230
10231 * .gdbinit (pbiditype): New command.
10232 (pgx): Use it to display bidi level and type of the glyph.
10233 (pitx): Display some bidi information about the iterator.
10234 (prowlims, pmtxrows): New commands.
10235
10236 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10237
10238 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10239 * s/usg5-4.h (LIBS_DEBUG):
10240 * s/irix6-5.h (C_DEBUG_SWITCH):
10241 * s/gnu-linux.h (LIBS_DEBUG):
10242 * s/darwin.h (LIBS_DEBUG):
10243 * s/bsd-common.h (LIBS_DEBUG):
10244 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10245 * m/iris4d.h (LIBS_DEBUG):
10246 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10247
10248 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10249 (LIBS_DEBUG): Remove definition.
10250
10251 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
10252
10253 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10254 Windows.
10255
10256 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10257
10258 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10259 `connect' (Bug#5723).
10260
10261 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
10262
10263 * process.c (Fmake_network_process): Call `select' for interrupted
10264 `connect' rather than creating new socket (Bug#5173).
10265
10266 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
10267
10268 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10269
10270 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10271
10272 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10273
10274 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10275
10276 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10277 XLoadQueryFont.
10278
10279 2010-03-24 Kenichi Handa <handa@m17n.org>
10280
10281 * coding.c (decode_coding_ccl): Fix previous change for the
10282 multibyte case.
10283 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10284 case that the output buffer is fullfilled.
10285 (encode_coding): Setup ccl program here.
10286
10287 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10288
10289 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10290
10291 Simplify LIBS_MACHINE definitions.
10292 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10293 * m/iris4d.h (LIBS_MACHINE): Likewise.
10294 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10295 * s/aix4-2.h (LIBS_SYSTEM): ... here.
10296 * s/netbsd.h: Remove commented out code.
10297
10298 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10299
10300 Remove dead code dealing with POSIX_SIGNALS.
10301 * atimer.c (set_alarm): Remove dead code, all USG systems define
10302 POSIX_SIGNALS.
10303 * data.c (arith_error): Likewise.
10304 * keyboard.c (input_available_signal, handle_user_signal)
10305 (interrupt_signal): Likewise.
10306 * process.c (sigchld_handler): Likewise.
10307 (create_process): Remove if 0 code. Remove HPUX conditional when
10308 !defined (POSIX_SIGNALS), it cannot be true.
10309 * syssignal.h: Remove USG5_4 and USG conditionals when
10310 !POSIX_SIGNALS, they cannot be true.
10311
10312 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10313 NO_SOCK_SIGIO, not used anymore.
10314
10315 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10316
10317 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10318 support vax on BSDs.
10319
10320 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10321 * s/aix4-2.h (ORDINARY_LINK): ... here.
10322
10323 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10324
10325 * Makefile.in (abs_builddir): Define.
10326 (bootstrap_exe): Use it.
10327 (VPATH): Use $(srcdir) instead of @srcdir@.
10328
10329 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10330
10331 * Makefile.in (bootstrap_exe): Use an absolute name.
10332
10333 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10334
10335 Remove support for old GNU/Linux using libc version 5.
10336 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10337 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10338
10339 Consolidate redundant definitions in s/bsd-common.h.
10340 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10341 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10342 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10343 doing it in all files that include this one.
10344 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10345 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10346 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10347 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10348 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10349 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10350 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10351 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10352 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10353
10354 Consolidate redundant definitions.
10355 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10356 it's undefined in all files that include this one.
10357 (POSIX_SIGNALS): Define here instead of doing it in all files that
10358 include this one.
10359 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10360 (POSIX_SIGNALS): Do not define.
10361 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10362 (POSIX_SIGNALS): Do not define.
10363 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10364 (POSIX_SIGNALS): Do not define.
10365
10366 Remove support for old UNIX System V systems.
10367 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
10368 * s/usg-5-4-2.h: Remove.
10369
10370 Remove support for Solaris on PPC and for old versions.
10371 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10372 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10373 that cancel each other.
10374 * s/sol2-3.h:
10375 * s/sol2-4.h:
10376 * s/sol2-5.h: Remove.
10377 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10378 (NO_REMAP): Remove, unused.
10379 (UNEXEC): Move definition ...
10380 * s/aix4-2.h (UNEXEC): ... here.
10381
10382 * s/openbsd.h: Remove support for non-ELF and for systems that do
10383 not support shared libraries.
10384 * s/netbsd.h:
10385 * s/freebsd.h: Likewise.
10386
10387 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10388
10389 Remove non-working support for lynxos 3.0.
10390 * s/lynxos.h: Remove file.
10391
10392 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10393 COFF_BSD_SYMBOLS, nothing defines it anymore.
10394
10395 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10396
10397 Remove obsolete uses of HAVE_SHM.
10398 * emacs.c (standard_args):
10399 (Fdump_emacs):
10400 (syms_of_emacs): Remove code depending on HAVE_SHM.
10401
10402 * alloc.c: Remove HAVE_SHM dependent definition.
10403
10404 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10405
10406 2010-03-18 Glenn Morris <rgm@gnu.org>
10407
10408 * emacs.c (USAGE4): Hard-code bug address.
10409 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10410 (bug_reporting_address): Remove.
10411 (main): Don't call bug_reporting_address.
10412
10413 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10414 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10415
10416 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
10417
10418 * xfns.c (Fx_create_frame):
10419 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10420 on left.
10421
10422 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10423
10424 * editfns.c (Fformat): Account for string precision when computing
10425 field width (Bug#5710).
10426
10427 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
10428
10429 * xfns.c (Fx_create_frame): Set default to Qright.
10430
10431 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10432 all window systems.
10433
10434 2010-03-12 Eli Zaretskii <eliz@gnu.org>
10435
10436 These changes remove termcap.c from the build on Posix platforms.
10437 * Makefile.in (termcapobj): Move termcap.o from here...
10438 (MSDOS_OBJ): ...to here.
10439 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10440 now identical to when LIBS_TERMCAP is defined.
10441
10442 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10443
10444 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10445
10446 * config.in: Regenerated. (See top-level ChangeLog.)
10447
10448 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
10449
10450 * Branch for 23.2.
10451
10452 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10453
10454 Cleanup setup of gl_state in various parts of the code.
10455 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10456 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10457 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10458 (skip_chars):
10459 * regex.c (regex_compile): Use it.
10460 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10461 it's now set in regex_compile when/if we need it.
10462
10463 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10464
10465 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10466 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10467 (QUIT): Use it to consolidate code and remove redundancy.
10468 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10469
10470 * regex.c (regex_compile): Setup gl_state as well.
10471
10472 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10473 (in_classes): Use CONSP before XCAR/XCDR.
10474
10475 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
10476
10477 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10478 definitions, so that keyboard macros are correctly handled
10479 (Bug#5481).
10480
10481 2010-03-02 Eli Zaretskii <eliz@gnu.org>
10482
10483 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10484 text that could be relocated inside the call to emacs_mule_char.
10485 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10486 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10487
10488 2010-03-02 Kenichi Handa <handa@m17n.org>
10489
10490 * character.c (parse_str_as_multibyte): Fix handling of the
10491 multibyte form of raw-bytes.
10492 (str_as_multibyte): Likewise.
10493
10494 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10495 form of raw-bytes.
10496
10497 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
10498
10499 * charset.c (load_charset_map_from_file)
10500 (load_charset_map_from_vector): Zero out allocated
10501 charset_map_entries before using them.
10502
10503 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10504
10505 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10506
10507 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
10508
10509 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10510 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
10511
10512 2010-02-26 Kenichi Handa <handa@m17n.org>
10513
10514 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10515
10516 * xdisp.c (reseat_to_string): Fix previous change.
10517
10518 2010-02-26 David Reitter <david.reitter@gmail.com>
10519
10520 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10521 Lisp_Object (Bug#4736).
10522
10523 2010-02-25 Kenichi Handa <handa@m17n.org>
10524
10525 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10526
10527 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10528
10529 * xterm.c (XTflash): Move declarations before statements.
10530
10531 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10532 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10533 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10534 (xg_create_tool_bar): Remove unused variables.
10535 (x_wm_set_size_hint): Move declarations before statements.
10536 (xg_create_frame_widgets): Remove variable grav.
10537
10538 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
10539
10540 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10541
10542 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10543
10544 * term.c (fatal): Add a final \n if needed (bug#5596).
10545
10546 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
10547
10548 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10549
10550 2010-02-18 Glenn Morris <rgm@gnu.org>
10551
10552 * callint.c (Finteractive): Doc fix.
10553
10554 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10555
10556 * coding.c (record_conversion_result):
10557 Handle CODING_RESULT_INSUFFICIENT_DST.
10558 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10559 memory allocation error.
10560
10561 2010-02-17 Kenichi Handa <handa@m17n.org>
10562
10563 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10564 Fix for the case that the output buffer is fullfilled.
10565 (decode_coding): Setup ccl program here. Keep looping when the
10566 decoder stopped because the output buffer is
10567 fullfilled (bug#5534).
10568
10569 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10570
10571 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10572
10573 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
10574 bug #5571.
10575 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
10576 overdrawn.
10577
10578 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10579
10580 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10581 doing_interact here.
10582 (ice_connection_closed): New function.
10583 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10584 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10585 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10586 returns I/O error.
10587 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10588 bug #5512.
10589
10590 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
10591
10592 * nsfont.m (nsfont_open): The system's value for the font descent
10593 is negative, so round it down to avoid clipping.
10594
10595 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
10596
10597 * charset.c (load_charset_map_from_file)
10598 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
10599 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
10600
10601 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
10602
10603 * charset.c (load_charset_map_from_file): Allocate large
10604 charset_map_entries structure on the heap rather than the stack.
10605 (Bug#5526).
10606
10607 2010-01-31 Kenichi Handa <handa@m17n.org>
10608
10609 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
10610 size in NAME is invalid, return -1 (Bug#5396).
10611
10612 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
10613
10614 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10615 <deactivated@gmail.com> (Bug#3605).
10616
10617 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
10618
10619 * fileio.c (Frename_file): Correctly rename symlinks to
10620 directories (Bug#5496).
10621
10622 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10623
10624 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10625
10626 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10627
10628 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10629
10630 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
10631
10632 * frame.c (DEFAULT_ROWS): Change default to 35.
10633
10634 * xfns.c (x_default_font_parameter): Change default XFT font to
10635 monospace-10 (Bug#3643).
10636
10637 2010-01-29 Eli Zaretskii <eliz@gnu.org>
10638
10639 * w32inevt.c (key_event): Remove unnecessary comparison of
10640 event->uChar.AsciiChar with 128.
10641
10642 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
10643
10644 * fileio.c (Frename_file): Fix last change (Bug#5487).
10645
10646 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10647
10648 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10649
10650 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10651
10652 * xfns.c (Fx_create_frame): Remove window size matching code from
10653 2010-01-15.
10654 (x_get_current_desktop, x_get_desktop_workarea): Remove.
10655
10656 2010-01-27 Jason Rumney <jasonr@gnu.org>
10657
10658 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
10659 (key_event): Use unicode for characters 128 and higher (Bug#4567).
10660
10661 2010-01-27 Kenichi Handa <handa@m17n.org>
10662
10663 * regex.c (analyse_first): Fix setting of fastmap for unibyte
10664 pattern string (Bug#4209).
10665
10666 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
10667
10668 * fileio.c (Frename_file): Call copy-directory and
10669 delete-directory for directories, in order to handle cross-device
10670 renaming (Bug#3353).
10671
10672 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10673
10674 * xfns.c (Fx_create_frame): If frame height is too big, try
10675 sizes 24 and 10. Bug #3643.
10676
10677 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10678
10679 Try and fix bug#788, hopefully for real this time.
10680 * keymap.c (shadow_lookup): Add `remap' arg.
10681 (describe_map, describe_vector): Update calls to shadow_lookup.
10682 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10683 `remapped' so this flag is applicable to `sequence'. Be careful to
10684 perform remapping during shadow_lookup check of remapped_sequences.
10685
10686 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10687
10688 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10689 png_check_sig, which has been removed in libpng 1.4.
10690
10691 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10692
10693 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10694 lacks this header file).
10695
10696 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10697
10698 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10699 as in Emacs 22.
10700
10701 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10702
10703 * lisp.h (make_pure_string): String pointer arg now points to const.
10704
10705 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10706 args now point to const.
10707
10708 2010-01-22 Eli Zaretskii <eliz@gnu.org>
10709
10710 * lread.c (Fload): Don't treat files without .elc extension as
10711 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10712 them. (bug#5303)
10713
10714 2010-01-20 Kenichi Handa <handa@m17n.org>
10715
10716 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10717 treat the source as actual byte sequence.
10718
10719 2010-01-19 Alan Mackenzie <acm@muc.de>
10720
10721 Fix spurious before-change-functions invocation from (insert ?\n).
10722 * textprop.c (set_text_properties): Rename parameter
10723 `signal_after_change_p' to `coherent_change_p', and make the
10724 invocation of `modify_region' conditional on it.
10725
10726 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10727
10728 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10729 for debug purpose.
10730 (syms_of_xsettings): Declare xft-settings.
10731
10732 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
10733
10734 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10735
10736 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10737
10738 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10739
10740 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
10741
10742 * emacs.c (standard_args): Adjust arg priorities to reflect how
10743 they are processed in startup.el.
10744
10745 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10746
10747 * Makefile.in (lisp, shortlisp): Update.
10748
10749 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10750
10751 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10752 code, link the new kboard into all_kboard before running Lisp code,
10753 and protect the new terminal with GCPRO (Bug#5365).
10754 (x_term_init): Remove unused var `atom'.
10755 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10756
10757 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
10758
10759 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
10760 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
10761 to find out usable size of the desktop. Don't make frames larger than
10762 this. Bug #3643.
10763
10764 2010-01-15 Kenichi Handa <handa@m17n.org>
10765
10766 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
10767
10768 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
10769
10770 * nsterm.m (Qnone): Define.
10771
10772 * nsfns.m (Qnone): Move definition to nsterm.m.
10773
10774 2010-01-14 Kenichi Handa <handa@m17n.org>
10775
10776 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
10777 systems.
10778
10779 2010-01-14 Kenichi Handa <handa@m17n.org>
10780
10781 Make auto-composition work on all buffers even if they are
10782 fundamental mode.
10783
10784 * composite.c (Vauto_composition_mode): New variable.
10785 (composition_compute_stop_pos): Check Vauto_composition_mode
10786 instead of Vauto_composition_function.
10787 (composition_adjust_point, Ffind_composition_internal): Likewise.
10788 (syms_of_composite): Declare Lisp variable
10789 "auto-composition-mode" here.
10790
10791 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
10792
10793 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
10794 during call to vendor-specific-keysyms (Bug#5365).
10795
10796 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10797
10798 * keyboard.c (input_available_signal) [SYNC_INPUT]:
10799 Call SIGNAL_THREAD_CHECK (Bug#5333).
10800
10801 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
10802 Call SIGNAL_THREAD_CHECK.
10803
10804 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
10805
10806 Try to fix bug#5314. This is probably not the final word, tho.
10807 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
10808 recent-auto-save-p as a side-effect.
10809 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
10810 * buffer.c (Fkill_buffer, reset_buffer):
10811 * editfns.c (Fsubst_char_in_region):
10812 * fileio.c (Finsert_file_contents, Fdo_auto_save)
10813 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
10814
10815 2010-01-13 Kenichi Handa <handa@m17n.org>
10816
10817 Display buffer name, etc. in mode line by composing correctly.
10818
10819 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
10820 STRING is not nil.
10821 (display_mode_element): Adjust for the change of
10822 decode_mode_spec and display_line.
10823 (decode_mode_spec): Change arg MULTIBYTE to STRING.
10824 (display_string): Handle the case that STRING is non-null and
10825 LISP_STRING is not nil.
10826
10827 * xterm.c (x_draw_composite_glyph_string_foreground):
10828 Pay attention to s->face->overstrike.
10829
10830 * composite.c (composition_reseat_it): Don't check PT if STRING is
10831 non nil.
10832
10833 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10834
10835 * keyboard.c (read_char): Don't apply previous change when current
10836 buffer is unchanged by command execution.
10837
10838 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
10839
10840 * keyboard.c (read_char): Return after executing from special map.
10841
10842 2010-01-12 Glenn Morris <rgm@gnu.org>
10843
10844 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
10845 bug-gnu-emacs rather than emacs-pretest-bug.
10846
10847 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
10848
10849 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
10850 initializing the Lisp variables that depend on them.
10851
10852 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10853
10854 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
10855 Clear areas that will not be updated after change of menu bar lines.
10856 Clear the menu bar window's current matrix when the window gets empty.
10857
10858 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
10859
10860 * intervals.h, textprop.c (extend_property_ranges): Return value
10861 and args changed. Discard properties that begin at or after the
10862 new end (Bug#5306).
10863
10864 * editfns.c (Fformat): Caller changed.
10865
10866 * nsterm.m (ns_set_default_prefs): Delete function.
10867 (syms_of_nsterm): Initialize ns_command_modifier,
10868 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
10869 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
10870
10871 * xdisp.c (pos_visible_p): Check for invisible text at the correct
10872 position (Bug#4040).
10873
10874 2010-01-09 Eli Zaretskii <eliz@gnu.org>
10875
10876 * editfns.c (Ffloat_time): Doc fix.
10877
10878 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
10879
10880 * xfns.c (Fx_create_frame): Don't create frame larger than display
10881 by default bug#3643.
10882
10883 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10884
10885 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
10886 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
10887 windows above internal border.
10888
10889 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
10890 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
10891 windows above internal border.
10892
10893 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
10894 tool bar windows specially.
10895
10896 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
10897
10898 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
10899 specially.
10900 (XTflash): Take account of menu bar height.
10901
10902 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
10903 specially.
10904
10905 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
10906
10907 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
10908 also be true before we can return early (bug #5339).
10909
10910 2010-01-06 David Reitter <david.reitter@gmail.com>
10911
10912 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
10913 (Fns_display_usable_bounds): Rewrite, computing bounds properly
10914 (Bug#3233).
10915
10916 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
10917
10918 * font.c (font_open_entity): Enable chache and call cached_font_ok
10919 for the driver if defined.
10920 (QCuser_spec): New symbol.
10921 (font_spec_from_name): Save name as user-spec.
10922 (font_load_for_lface): Keep user-spec instead of name.
10923 (font_open_by_name): Save name as user-spec.
10924 (syms_of_font): Initialize QCuser_spec.
10925 (font_clear_prop): Clear name if it exists in font (bug#5157).
10926
10927 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
10928 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
10929 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
10930
10931 * font.h (struct font_driver): Add cached_font_ok.
10932
10933 * xterm.c (x_clear_frame): Queue draw for scroll bars.
10934
10935 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
10936
10937 * xterm.c (x_new_font): Move code for setting rows/cols before
10938 resizing ...
10939 (x_set_window_size): ... to here. Bug #2568.
10940
10941 * gtkutil.c (xg_clear_under_internal_border): New function.
10942 (xg_frame_resized, xg_frame_set_char_size):
10943 Call xg_clear_under_internal_border.
10944 (xg_update_scrollbar_pos): Clear under old scroll bar position.
10945
10946 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
10947
10948 * keyboard.c (read_key_sequence): Catch keyboard switch after
10949 making a new tty frame (Bug#5095).
10950
10951 2010-01-05 Kenichi Handa <handa@m17n.org>
10952
10953 * fontset.c (fontset_find_font): Fix getting the frame pointer.
10954
10955 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10956
10957 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
10958 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10959 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10960
10961 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
10962
10963 * dbusbind.c (xd_add_watch): Improve debug message.
10964 (xd_remove_watch): Improve debug message. If DATA is the session
10965 bus, unset D-Bus session environment.
10966 (Fdbus_init_bus): Pass the bus as argument to
10967 dbus_connection_set_watch_functions. (Bug#5283)
10968
10969 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
10970
10971 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10972
10973 * lread.c (syms_of_lread): Make it clearer that these are the
10974 names of loaded files (Bug#5068).
10975
10976 * eval.c (run_hook_with_args): Handle the case where the global
10977 value has the obsolete single-function form (Bug#5026).
10978
10979 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
10980
10981 * minibuf.c (Fall_completions): Minor optimization.
10982
10983 2009-12-26 Eli Zaretskii <eliz@gnu.org>
10984
10985 * .gdbinit (pgx): Fix display of composite glyphs.
10986 Display cmp.from and cmp.to as well.
10987 (pitx): Fix last change.
10988
10989 2009-12-25 Kenichi Handa <handa@m17n.org>
10990
10991 * composite.h (composition_adjust_point): Update prototype.
10992
10993 * composite.c (composition_reseat_it): Don't make a composition
10994 spanning over point.
10995 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
10996 composable characters.
10997 (composition_adjust_point): New arg NEW_PT. Callers changed.
10998
10999 * keyboard.c (command_loop_1): Force redisplay if the last point
11000 was within a composition.
11001 (adjust_point_for_property): Don't adjust point for automatic
11002 composition when called after buffer modification.
11003
11004 2009-12-19 Eli Zaretskii <eliz@gnu.org>
11005
11006 * .gdbinit (pitx): Don't use enum names, use their values.
11007 Remove reference to non-existing value GET_FROM_COMPOSITION.
11008 (pgx): Don't use enum names, use their values.
11009 (pitmethod): New helper command.
11010 (pitx): Use it to display iteration method.
11011 (pgrowit): New command.
11012
11013 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11014
11015 Update dependencies in Makefile.in.
11016
11017 * Makefile.in (alloc.o): Depend on termhooks.h.
11018 (atimer.o): Depend on blockinput.h.
11019 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11020 and frame.h.
11021 (callint.o): Depend on systime.h, coding.h, and composite.h.
11022 (callproc.o): Depend on buffer.h.
11023 (casefiddle.o): Don't depend on charset.h.
11024 (casetab.o): Depend on character.h.
11025 (ccl.o): Depend on composite.h.
11026 (chartab.o): Depend on ccl.h.
11027 (cm.o): Depend on dispextern.h.
11028 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11029 (coding.o): Don't depend on $(INTERVALS_H).
11030 (composite.o): Don't depend on dispextern.h explicitly (it's in
11031 $(INTERVALS_H)). Depend on ccl.h.
11032 (data.o): Depend on systime.h, coding.h, composite.h,
11033 dispextern.h, font.h, and ccl.h.
11034 (dired.o): Depend on composite.h.
11035 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11036 composite.h (it's in $(INTERVALS_H)).
11037 (doc.o): Depend on systime.h, coding.h, and composite.h.
11038 (editfns.o): Don't depend explicitly on dispextern.h.
11039 (emacs.o): Depend on frame.h and coding.h.
11040 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11041 (fileio.o): Depend on frame.h and commands.h. Don't depend
11042 explicitly on dispextern.h.
11043 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11044 composite.h.
11045 (fns.o): Don't depend on termhooks.h.
11046 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11047 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11048 coding.h, $(INTERVALS_H), window.h, xterm.h.
11049 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11050 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11051 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11052 fontset.h, ccl.h, and ftfont.h.
11053 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11054 (gtkutil.o): Depend on dispextern.h and composite.h.
11055 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11056 termhooks.h, and ccl.h.
11057 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11058 (intervals.o): Depend on systime.h and coding.h.
11059 (keyboard.o): Depend on composite.h and coding.h.
11060 (keymap.o): Depend on coding.h and frame.h.
11061 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11062 (macros.o): Depend on systime.h, coding.h, and composite.h.
11063 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11064 and atimer.h.
11065 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11066 dispextern.h explicitly.
11067 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11068 Don't depend explicitly on dispextern.h and composite.h.
11069 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11070 (regex.o): Don't depend on charset.h.
11071 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11072 (search.o): Don't depend explicitly on composite.h.
11073 (sound.o): Depend on atimer.h and systime.h.
11074 (syntax.o): Don't depend explicitly on composite.h.
11075 (sysdep.o): Depend on coding.h and composite.h.
11076 (term.o): Depend on xterm.h and buffer.h.
11077 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11078 (textprop.o): Don't depend on dispextern.h explicitly.
11079 (undo.o): Depend on dispextern.h.
11080 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11081 dispextern.h and composite.h explicitly.
11082 (xdisp.o): Depend on ccl.h.
11083 (xfaces.o): Depend on coding.h and ccl.h.
11084 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11085 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11086 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11087 ftfont.h.
11088 (xgselect.o): New dependency.
11089 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11090 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11091 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11092 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11093 (xsmfns.o): Depend on frame.h and dispextern.h.
11094 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11095 sysselect.h.
11096
11097 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11098
11099 * font.c (Fclear_font_cache): Pass correct cache argument to
11100 font_clear_cache.
11101
11102 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11103
11104 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11105 twice.
11106
11107 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
11108
11109 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11110 calling file-remote-p. Reported by Jim Meyering.
11111
11112 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
11113
11114 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
11115 avoid compiler warnings. (Bug #5217)
11116
11117 2009-12-14 Kenichi Handa <handa@m17n.org>
11118
11119 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11120 in 8-bit encoding.
11121
11122 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
11123
11124 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11125 tooltip windows.
11126
11127 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11128
11129 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11130 Xatom_net_window_type.
11131
11132 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11133 Xatom_net_window_type.
11134
11135 * xterm.c (my_log_handler): New function.
11136 (x_term_init): Set my_log_handler as log handler during gtk_init
11137 so we can filter out buggy messages. (Bug #5120).
11138
11139 * xterm.c (xg_scroll_callback): Parameter list changed,
11140 use parameter GtkScrollType to determine scroll/line/page.
11141 Only allow dragging if a button < 4 is grabbed (bug #5177).
11142 (xg_end_scroll_callback): New function.
11143 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11144 xg_create_scroll_bar.
11145
11146 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11147 (scroll_end_callback): Remove.
11148 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11149 button-release-event. Replace value-changed event with change-value,
11150 bug #5177.
11151 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11152 bug #5177.
11153
11154 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11155 (xg_create_scroll_bar): Add GCallback end_callback.
11156
11157 * xftfont.c (QClcdfilter): New variable.
11158 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11159 (syms_of_xftfont): Initialize QClcdfilter.
11160
11161 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11162
11163 * xsettings.c (struct xsettings): Add member seen.
11164 (parse_xft_settings): Update member seen with what we have read.
11165 Return non-zero if Xft-settings have been parsed, 0 otherwise.
11166 (apply_xft_settings): Only update Xft settings with what member seen
11167 indicates as new.
11168
11169 2009-12-12 Eli Zaretskii <eliz@gnu.org>
11170
11171 * dispextern.h (struct text_pos): Use EMACS_INT.
11172 (struct glyph): Use EMACS_INT for charpos.
11173 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11174 region_beg_charpos, region_end_charpos,
11175 redisplay_end_trigger_charpos, and also for
11176 iterator_stack_entry.end_charpos and
11177 iterator_stack_entry.stop_charpos.
11178
11179 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11180
11181 * gtkutil.c (scroll_end_callback): New function (bug #5177).
11182 (xg_create_scroll_bar): Call scroll_end_callback on button release
11183 event (bug #5177).
11184 (xg_event_is_for_scrollbar): != replaced with ==.
11185
11186 2009-12-12 Kenichi Handa <handa@m17n.org>
11187
11188 * ftfont.c (struct ftfont_info): New member matrix.
11189 (ftfont_open): Setup xftfont_info->matrix.
11190 (MFLTFontFT): New member matrix.
11191 (FLOOR, CEIL, ROUND): New macros.
11192 (ftfont_get_metrics): Handle matrix transformation.
11193 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11194
11195 * xftfont.c (struct xftfont_info): New member matrix.
11196 (xftfont_open): Setup xftfont_info->matrix.
11197
11198 2009-12-10 Kenichi Handa <handa@m17n.org>
11199
11200 * xdisp.c (append_space_for_newline): Consider face-remapping.
11201
11202 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11203
11204 * xsettings.c: Include "keyboard.h".
11205
11206 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11207
11208 Fix implicit function declarations.
11209 * cmds.c: Include "frame.h".
11210 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11211 * frame.h: Move declaration of delete_frame outside of
11212 HAVE_WINDOW_SYSTEM.
11213
11214 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11215
11216 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11217
11218 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11219 GTK builds.
11220
11221 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11222
11223 * unexelf.c (unexec): Don't search for .data twice.
11224
11225 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
11226
11227 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11228 if push failed.
11229 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11230 of push_display_prop (Bug#5000).
11231
11232 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11233 value of font_list_entities (Bug#5085).
11234
11235 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
11236
11237 Fix `string-to-number' to deal consistently with integers and floats.
11238 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11239 trailing characters, not just whitespace.
11240 (read1): Pass new arg 0 to keep old behavior.
11241 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11242 trailing chars, as it is already done for integers. Doc fixes.
11243 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11244
11245 2009-12-04 Eli Zaretskii <eliz@gnu.org>
11246
11247 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11248 Delete unused enumeration value.
11249
11250 2009-12-03 Eli Zaretskii <eliz@gnu.org>
11251
11252 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11253
11254 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11255
11256 * process.c (Fmake_network_process): Fix up the tests for
11257 "connectionless socket", so they DTRT for seqpacket sockets as well.
11258
11259 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11260
11261 * process.c (Qseqpacket): New symbol.
11262 (HAVE_SEQPACKET): New macro.
11263 (Fmake_network_process): Accept new :type `seqpacket'.
11264 (init_process): Add `seqpacket' feature when applicable.
11265 (syms_of_process): Initialize Qseqpacket.
11266
11267 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11268
11269 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11270 if entity is Qnil.
11271
11272 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11273
11274 * print.c (print_preprocess): Preprocess the key_and_value table of
11275 hashtables, even tho they're "hidden" (bug#5082).
11276
11277 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11278
11279 * frame.c (frame_make_pointer_invisible)
11280 (frame_make_pointer_visible): Declare f before statements.
11281
11282 2009-11-28 Eli Zaretskii <eliz@gnu.org>
11283
11284 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11285 omitted dependencies on lisp.h.
11286
11287 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11288
11289 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11290 is NULL.
11291
11292 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11293
11294 * frame.c (frame_make_pointer_invisible)
11295 (frame_make_pointer_visible): Just return if there isn't any selected
11296 frame.
11297
11298 * search.c (simple_search): Remove warning by making *p const.
11299
11300 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11301
11302 * xdisp.c (power_letter): Remove duplicate const.
11303
11304 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11305
11306 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11307
11308 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
11309 defaults (bug #5025).
11310
11311 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11312
11313 * insdel.c (adjust_markers_for_delete): Move it in the
11314 right direction! (bug#4803)
11315
11316 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11317
11318 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11319
11320 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11321
11322 2009-11-24 Glenn Morris <rgm@gnu.org>
11323
11324 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11325
11326 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11327
11328 * Makefile.in: Must create deps for ecrt0.o in its rule.
11329
11330 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11331 because that is what Gtk+ font dialog understands.
11332
11333 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11334 of Fcopy_sequence.
11335 (font_open_by_name): Put name given into QCname for font-object returned.
11336
11337 * frame.c (x_set_font): Save original font name as frame parameter
11338 font-parameter.
11339
11340 * xsettings.c (set_default_xft_settings): New function.
11341 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11342 is found.
11343
11344 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11345
11346 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11347 searching backwards through multibyte buffer.
11348
11349 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11350
11351 * xterm.c: #include xgselect.h.
11352 (x_initialize): Call xgselect_initialize.
11353
11354 * xsettings.c (something_changedCB): C++ comments => C comments.
11355 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11356 does that now.
11357
11358 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11359 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11360 (scroll_bar_button_cb): Remove.
11361 (create_menus): C++ comments => C comments. Don't bind grab-notify
11362 event.
11363 (xg_create_scroll_bar): Don't bind button-press-event and
11364 button-release-event.
11365
11366 * process.c: Include xgselect.h if defined (USE_GTK) ||
11367 defined (HAVE_GCONF).
11368 (wait_reading_process_output): Call xg_select for the same condition.
11369
11370 * xgselect.c (xg_select): New function to better integrate with
11371 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11372
11373 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11374
11375 * Makefile.in (XOBJ): Add xgselect.o.
11376
11377 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11378
11379 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11380 Remove ignored second argument. All callers changed.
11381 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11382 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11383 * xdisp.c (string_char_and_length): Likewise.
11384
11385 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11386
11387 * xterm.c (x_new_font):
11388 * print.c (print_object):
11389 * cmds.c (Fself_insert_command): Move declarations before statements.
11390
11391 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11392
11393 * s/cygwin.h: Remove unneeded linker flags.
11394
11395 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11396
11397 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11398
11399 * xsettings.h: Declare xsettings_get_system_font.
11400
11401 * xsettings.c (xsettings_get_system_font): New function.
11402 (init_gconf): No use initiating gconf unless we have Xft also.
11403 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11404 HAVE_GCONF.
11405
11406 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11407 add a blank entry so it doesn't collapse into nothing.
11408
11409 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11410
11411 * lread.c (Funintern): Comment out last change.
11412
11413 2009-11-19 Richard Stallman <rms@gnu.org>
11414
11415 * lread.c (Funintern): Error if symbol is t or nil.
11416
11417 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11418
11419 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11420 representation of Lisp integers.
11421 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11422
11423 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11424
11425 * lisp.h: Remove declaration of Ffont_get_system_font.
11426 * xfns.c: Move include of "xsettings.h".
11427 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11428
11429 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11430
11431 * xsettings.c (something_changedCB, Ffont_get_system_font):
11432 Check use_system_font.
11433 (syms_of_xsettings): DEFVAR font-use-system-font.
11434
11435 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11436
11437 * xfns.c (x_default_font_parameter): Remove dead assignment.
11438
11439 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11440
11441 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11442
11443 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
11444 not have FC_LCD_*. #define them if not there.
11445
11446 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
11447
11448 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11449
11450 * xterm.c (handle_one_xevent): Call xft_settings_event for
11451 ClientMessage, PropertyNotify and DestroyNotify.
11452 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11453 Call xsettings_initialize.
11454
11455 * xftfont.c (xftfont_fix_match): New function.
11456 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11457 Call xftfont_fix_match after XftFontMatch.
11458
11459 * xfont.c (xfont_driver): Initialize all members.
11460
11461 * xfns.c (x_default_font_parameter):
11462 Try font from Ffont_get_system_font.
11463 Do not get font from x_default_parameter if we got one from
11464 Ffont_get_system_font.
11465 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
11466
11467 * w32font.c (w32font_driver): Initialize all members.
11468
11469 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11470
11471 * lisp.h: Declare syms_of_xsettings.
11472
11473 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11474 Handle CONFIG_CHANGED_EVENT.
11475
11476 * ftfont.c (ftfont_filter_properties): New function.
11477
11478 * frame.c (x_set_font): Remove unused variable lval.
11479
11480 * font.h (struct font_driver): Add filter_properties.
11481
11482 * font.c (font_put_extra): Don't return if val is nil, it means
11483 boolean option is off.
11484 (font_parse_fcname): Collect all extra properties in extra_props
11485 and call filter_properties for all drivers with extra_props and
11486 font as parameter.
11487 (font_open_entity): Do not use cache, it does not pick up new
11488 fontconfig settings like hinting.
11489 (font_load_for_lface): If spec had a name in it, store it in entity.
11490
11491 * emacs.c (main): Call syms_of_xsettings.
11492
11493 * config.in: HAVE_GCONF is new.
11494
11495 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11496 xsettings.o is new.
11497
11498 2009-11-17 Kenichi Handa <handa@m17n.org>
11499
11500 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11501 back to the default font in case that no suitable font is found.
11502
11503 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11504
11505 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11506 Suggested by Chad Brown <yandros@mit.edu>.
11507 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11508
11509 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11510
11511 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11512
11513 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11514
11515 * Makefile.in: Ignore errors from mkdir when creating deps directory.
11516
11517 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11518
11519 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11520 has a parent.
11521
11522 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
11523 dependency files in deps/. Include those files into Makefile.
11524
11525 * config.in: Generated (AUTO_DEPEND).
11526
11527 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
11528
11529 * dbusbind.c (Vdbus_registered_objects_table): Rename from
11530 Vdbus_registered_functions_table, because it contains also
11531 properties. Fix docstring.
11532 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
11533
11534 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11535
11536 * alloc.c (mark_object): Don't reprocess marked strings.
11537 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11538 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11539
11540 2009-11-13 Kenichi Handa <handa@m17n.org>
11541
11542 * category.c (word_boundary_p): Adjust for the change of the
11543 semantics of Vword_combining_categories.
11544 (Vword_combining_categories): Describe the slight change of the
11545 semantics.
11546
11547 2009-11-13 Eli Zaretskii <eliz@gnu.org>
11548
11549 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11550
11551 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11552
11553 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11554
11555 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11556
11557 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
11558
11559 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11560
11561 2009-11-11 David Reitter <david.reitter@gmail.com>
11562
11563 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11564 variables to fix 2009-11-09 change.
11565
11566 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11567
11568 * process.c (ifflag_def): Make flag_sym constant.
11569 (Fnetwork_interface_info): Use a constant pointer.
11570 (ifflag_table):
11571 * xfns.c (cursor_bits):
11572 * xdisp.c (power_letter):
11573 * termcap.c (speeds, esctab):
11574 * sysdep.c (baud_convert):
11575 * keyboard.c (lispy_accent_codes, modifier_names):
11576 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11577 (jpeg_format, tiff_format, gif_format, svg_format)
11578 (interlace_start, interlace_increment, gs_format):
11579 * gtkutil.c (separator_names):
11580 * fringe.c (swap_nibble):
11581 * fns.c (base64_value_to_char, base64_char_to_value):
11582 * fileio.c (make_temp_name_tbl):
11583 * coding.c (suffixes): Make constant.
11584
11585 * frame.c (make_initial_frame):
11586 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11587 build_string.
11588 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11589
11590 * s/freebsd.h:
11591 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11592
11593 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11594 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11595
11596 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11597 * xterm.c (syms_of_xterm):
11598 * xfaces.c (syms_of_xfaces):
11599 * xdisp.c (syms_of_xdisp):
11600 * lread.c (syms_of_lread):
11601 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11602 build_string.
11603
11604 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11605
11606 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * fns.c (Fplist_get): Merge the active and the commented out code.
11609
11610 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11611
11612 * keyboard.h: Declare timer_check.
11613
11614 * keyboard.c (timer_check_2): New function that does what the old
11615 timer_check did.
11616 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11617 returned, i.e. don't return -1 with timers pending.
11618
11619 * process.c: Remove extern declaration of timer_check.
11620
11621 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11622 even if timer_check returned -1.
11623
11624 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11625 xg_dialog_data.
11626 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11627 the event loop.
11628 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11629 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11630 Destroy the dialog after xg_dialog_run.
11631
11632 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11633
11634 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11635
11636 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11637
11638 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11639
11640 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
11641
11642 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11643
11644 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11645
11646 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11647 w32menu.c, and nsmenu.m.
11648 Simplify the obsolete case where position is nil.
11649 (cleanup_popup_menu): New function, moved from nsmenu.m.
11650 (struct skp): Remove slot `notreal'.
11651 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11652 adjust callers.
11653 (single_menu_item): Adjust call to parse_menu_item.
11654 (syms_of_menu): Defsubr x-popup-menu.
11655 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11656 (keymap_panes): Don't export any more.
11657 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11658 (xmenu_show): Declare.
11659 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11660 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11661 * keyboard.h (parse_menu_item): Update declaration.
11662 * xmenu.c (Fx_popup_menu): Remove.
11663 (syms_of_xmenu): Don't defsubr x-popup-menu.
11664 * w32menu.c (Fx_popup_menu): Remove.
11665 (syms_of_w32menu): Don't defsubr x-popup-menu.
11666 * nsmenu.m (cleanup_popup_menu): Remove.
11667 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11668 moved to menu.c's Fx_popup_menu.
11669 (Fx_popup_menu): Remove.
11670 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11671 menu_items (it's done in menu.c already).
11672
11673 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11674
11675 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11676 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11677
11678 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
11679
11680 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
11681 xmenu_show. Hide any tooltip before opening a menu.
11682 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11683 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11684
11685 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11686
11687 Let integers use up 2 tags to give them one extra bit and thus double
11688 their range.
11689 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11690 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11691 New macros.
11692 (enum Lisp_Type): Use them. Give explicit values.
11693 (Lisp_Type_Limit): Remove.
11694 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11695 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11696 Pay attention to USE_2_TAGS_FOR_INTS.
11697 (INTEGERP): Use LISP_INT_TAG_P.
11698 * fns.c (internal_equal): Simplify the default case.
11699 (sxhash): Use case_Lisp_Int.
11700 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11701 any more.
11702 (Ftype_of): Use case_Lisp_Int.
11703 (store_symval_forwarding): Take into account the fact that Ints can
11704 now have more than one tag.
11705 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
11706 (buffer_slot_type_mismatch):
11707 * xfaces.c (face_attr_equal_p):
11708 * print.c (print_object):
11709 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11710 Use case_Lisp_Int.
11711
11712 2009-11-06 Eli Zaretskii <eliz@gnu.org>
11713
11714 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11715
11716 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11717 warning.
11718
11719 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11720
11721 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11722
11723 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11724
11725 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11726 ButtonPressRelease and MotionNotify (bug#4870).
11727
11728 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11729
11730 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11731
11732 * xterm.c (syms_of_xterm):
11733 * xselect.c (syms_of_xselect):
11734 * xmenu.c (syms_of_xmenu):
11735 * xfns.c (syms_of_xfns):
11736 * xfaces.c (syms_of_xfaces):
11737 * xdisp.c (syms_of_xdisp):
11738 * window.c (syms_of_window):
11739 * w32fns.c (syms_of_w32fns):
11740 * undo.c (syms_of_undo):
11741 * textprop.c (syms_of_textprop):
11742 * terminal.c (syms_of_terminal):
11743 * syntax.c (syms_of_syntax):
11744 * sound.c (syms_of_sound):
11745 * search.c (syms_of_search):
11746 * print.c (syms_of_print):
11747 * minibuf.c (syms_of_minibuf):
11748 * macros.c (syms_of_macros):
11749 * keymap.c (syms_of_keymap, initial_define_key)
11750 (initial_define_lispy_key):
11751 * keyboard.c (syms_of_keyboard):
11752 * insdel.c (syms_of_insdel):
11753 * image.c (syms_of_image):
11754 * fringe.c (syms_of_fringe):
11755 * frame.c (syms_of_frame):
11756 * fontset.c (syms_of_fontset):
11757 * fns.c (syms_of_fns):
11758 * fns.c (syms_of_fns):
11759 * fileio.c (syms_of_fileio):
11760 * fileio.c (syms_of_fileio):
11761 * eval.c (syms_of_eval):
11762 * doc.c (syms_of_doc):
11763 * dispnew.c (syms_of_display):
11764 * dired.c (syms_of_dired):
11765 * dbusbind.c (syms_of_dbusbind):
11766 * data.c (syms_of_data):
11767 * composite.c (syms_of_composite):
11768 * coding.c (syms_of_coding):
11769 * cmds.c (syms_of_cmds):
11770 * charset.c (define_charset_internal, syms_of_character):
11771 * ccl.c (syms_of_ccl):
11772 * category.c (syms_of_category, init_category_once):
11773 * casetab.c (syms_of_casetab):
11774 * casefiddle.c (syms_of_casefiddle):
11775 * callint.c (syms_of_callint):
11776 * bytecode.c (syms_of_bytecode):
11777 * buffer.c (keys_of_buffer, syms_of_buffer):
11778 * alloc.c (syms_of_alloc):
11779 * process.c (syms_of_process, init_process):
11780 * lread.c (syms_of_lread, init_obarray):
11781 * font.c (build_style_table):
11782 * emacs.c (syms_of_emacs, main): Replace calls to intern with
11783 intern_c_string, calls to make_pure_string with
11784 make_pure_c_string. Use pure_cons instead of Fcons.
11785
11786 * process.c (socket_options): Make it const.
11787 (set_socket_option, init_process): Use a const pointer.
11788
11789 * lread.c (intern_c_string): New function.
11790 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11791 (defvar_int): Uset it. Make the name const char*.
11792
11793 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11794 (defvar_int): Update prototypes.
11795 (DEFUN, EXFUN): Support for prototypes is now required.
11796 (intern_c_string): New prototype.
11797 (struct Lisp_Subr): Make symbol_name constant.
11798
11799 * font.c (struct table_entry): Remove unused member. Make NAMES
11800 constant.
11801 (weight_table, slant_table, width_table): Make constant.
11802
11803 * emacs.c (struct standard_args): Make name and longname constant.
11804
11805 * character.h (DEFSYM): Use intern_c_string.
11806
11807 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11808
11809 * alloc.c (make_pure_c_string): New function.
11810
11811 * eval.c (Fautoload): Purecopy all arguments.
11812
11813 2009-11-05 Kenichi Handa <handa@m17n.org>
11814
11815 * fileio.c (Finsert_file_contents): Be sure set coding-system of
11816 the buffer in case of replace.
11817
11818 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
11819
11820 * puresize.h (BASE_PURESIZE): Increase to 1620000.
11821
11822 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
11823
11824 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
11825 when applicable (bug#4851).
11826
11827 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
11828 (P_): Support for prototypes is now required.
11829
11830 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
11831
11832 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
11833 (Bug#4827).
11834
11835 2009-10-30 Eli Zaretskii <eliz@gnu.org>
11836
11837 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
11838
11839 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
11840
11841 * puresize.h (BASE_PURESIZE): Increase to 1470000.
11842
11843 * lread.c (Fload): Purecopy the file name when building
11844 Vpreloaded_file_list.
11845
11846 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
11847
11848 * w32fns.c (syms_of_w32fns): Change default value of
11849 w32-scroll-lock-modifier to nil. (Bug#2827)
11850
11851 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
11852
11853 * minibuf.c (Fall_completions): Fix typos in docstring.
11854
11855 2009-10-26 Andreas Schwab <schwab@redhat.com>
11856
11857 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
11858
11859 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
11860
11861 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
11862 For delta < 0, skip check that only makes sense when the mini-window
11863 is going to be enlarged. (Bug#4534)
11864
11865 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
11866
11867 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
11868 string in menu maps (Bug#4471).
11869
11870 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
11871
11872 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
11873 FRAME_NS_VIEW on terminal frames (Bug#4765).
11874
11875 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
11876
11877 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
11878 DBUS_TYPE_UINTnn separately to get proper sign extension.
11879
11880 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
11881 can properly handle unsigned types.
11882 (make_uid, make_gid): Remove.
11883
11884 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
11885 types again.
11886
11887 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
11888 (system_process_attributes): Likewise.
11889
11890 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
11891
11892 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
11893
11894 * eval.c (Fautoload): Purecopy the filename. Simplify.
11895
11896 * category.c (Fdefine_category): Purecopy docstring.
11897
11898 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
11899
11900 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
11901
11902 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
11903
11904 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
11905
11906 * window.c (Fwindow_edges, Fwindow_pixel_edges)
11907 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
11908 (Bug#4775).
11909
11910 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11911
11912 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
11913 (init_fileio_once):
11914 * lisp.h (init_fileio_once): Remove.
11915 * emacs.c (main): Don't call init_fileio_once.
11916
11917 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
11918
11919 * puresize.h (BASE_PURESIZE): Increase to 1430000.
11920
11921 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
11922
11923 * doprnt.c (doprnt): Fix overflow check.
11924
11925 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
11926
11927 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
11928
11929 * xterm.h (x_wait_for_event): Declare it.
11930
11931 * xterm.c (pending_event_wait): New variable.
11932 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
11933 see pending_event_wait.eventtype.
11934 (handle_one_xevent): Don't change gravity when parent changes.
11935 (x_new_font): Call change_frame_size with new rows/columns before we
11936 try to resize the frame.
11937 (x_wait_for_event): New function.
11938 (x_set_window_size_1): Don't change gravity unless change_gravity
11939 is set.
11940 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
11941 don't change frame size, instead wait for the ConfigureNotify.
11942 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
11943 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
11944 (x_initialize): Initialize pending_event_wait.
11945
11946 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
11947 size.
11948
11949 * widget.c (EmacsFrameSetValues): Add comment.
11950 (EmacsFrameSetCharSize): Just call x_set_window_size.
11951
11952 * gtkutil.c (xg_frame_set_char_size): Flush events and call
11953 x_wait_for_event.
11954 (flush_and_sync): Remove again.
11955 (xg_get_font_name): Suggest monospace if no previous font is known.
11956
11957 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
11958
11959 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
11960 8th bit, since that only made sense in the ASCII world (bug#4751).
11961
11962 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11963
11964 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11965 processing pending events when event is filtered for input method.
11966 (Bug#3681)
11967
11968 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
11969
11970 * fns.c: Add #endif accidentally removed in previous change.
11971
11972 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11973
11974 * fns.c: Remove code for unsupported system: MAC_OS.
11975 * image.c: Likewise. Include setjmp.h.
11976
11977 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11978
11979 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11980 pixel -1 (bug #4742).
11981
11982 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11983
11984 * process.c (create_pty): Remove conditionals for no longer
11985 supported systems: UNIPLUS and RTU.
11986
11987 * xterm.c:
11988 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11989
11990 * alloc.c: Do not define struct catchtag.
11991 * eval.c: Move struct catchtag definition ...
11992 * lisp.h: ... here.
11993
11994 * image.c: Move png.h #include earlier to avoid warnings.
11995
11996 * xterm.c:
11997 * xsmfns.c:
11998 * xselect.c:
11999 * xrdb.c:
12000 * xmenu.c:
12001 * xftfont.c:
12002 * xfont.c:
12003 * xfns.c:
12004 * xfaces.c:
12005 * xdisp.c:
12006 * window.c:
12007 * widget.c:
12008 * w32xfns.c:
12009 * w32uniscribe.c:
12010 * w32term.c:
12011 * w32select.c:
12012 * w32reg.c:
12013 * w32proc.c:
12014 * w32menu.c:
12015 * w32inevt.c:
12016 * w32heap.c:
12017 * w32font.c:
12018 * w32fns.c:
12019 * w32console.c:
12020 * w32.c:
12021 * w16select.c:
12022 * vm-limit.c:
12023 * unexsol.c:
12024 * unexec.c:
12025 * unexcw.c:
12026 * unexaix.c:
12027 * undo.c:
12028 * tparam.c:
12029 * textprop.c:
12030 * terminfo.c:
12031 * terminal.c:
12032 * termcap.c:
12033 * term.c:
12034 * syntax.c:
12035 * sound.c:
12036 * sheap.c:
12037 * search.c:
12038 * scroll.c:
12039 * region-cache.c:
12040 * regex.c:
12041 * ralloc.c:
12042 * process.c:
12043 * print.c:
12044 * nsterm.m:
12045 * nsselect.m:
12046 * nsmenu.m:
12047 * nsimage.m:
12048 * nsfont.m:
12049 * nsfns.m:
12050 * msdos.c:
12051 * minibuf.c:
12052 * menu.c:
12053 * marker.c:
12054 * macros.c:
12055 * keymap.c:
12056 * keyboard.c:
12057 * intervals.c:
12058 * insdel.c:
12059 * indent.c:
12060 * gtkutil.c:
12061 * ftxfont.c:
12062 * ftfont.c:
12063 * fringe.c:
12064 * frame.c:
12065 * fontset.c:
12066 * font.c:
12067 * fns.c:
12068 * floatfns.c:
12069 * filelock.c:
12070 * fileio.c:
12071 * emacs.c:
12072 * editfns.c:
12073 * dosfns.c:
12074 * doprnt.c:
12075 * doc.c:
12076 * dispnew.c:
12077 * dired.c:
12078 * dbusbind.c:
12079 * data.c:
12080 * composite.c:
12081 * coding.c:
12082 * cmds.c:
12083 * cm.c:
12084 * chartab.c:
12085 * charset.c:
12086 * character.c:
12087 * ccl.c:
12088 * category.c:
12089 * casetab.c:
12090 * casefiddle.c:
12091 * callproc.c:
12092 * callint.c:
12093 * bytecode.c:
12094 * buffer.c:
12095 * atimer.c: Include setjmp.h. (Bug#4643)
12096
12097 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12098
12099 Remove leftover table unibyte_to_multibyte_table.
12100 * character.c (unibyte_to_multibyte_table): Remove.
12101 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12102 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12103 * character.h (UNIBYTE_TO_CHAR): New macro.
12104 (MAKE_CHAR_MULTIBYTE): Use it.
12105 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12106 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12107 (message_dolog, set_message_1):
12108 * search.c (Freplace_match):
12109 * editfns.c (Fcompare_buffer_substrings):
12110 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12111 (concat):
12112 * insdel.c (copy_text, count_size_as_multibyte):
12113 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12114 * term.c (produce_glyphs):
12115 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12116 * regex.c (RE_CHAR_TO_MULTIBYTE):
12117 * cmds.c (internal_self_insert):
12118 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12119
12120 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12121
12122 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12123
12124 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12125
12126 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
12127
12128 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12129
12130 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12131
12132 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12133 still needed under Tiger.
12134
12135 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12136
12137 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12138 __Apple__.
12139
12140 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12141
12142 2009-10-15 Kenichi Handa <handa@m17n.org>
12143
12144 * print.c (print_object): Escape a symbol like "2E10" too.
12145
12146 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
12147
12148 Cleanups and changes for 64-bit compile under Snow Leopard.
12149 Based on suggestions by Erik Charlebois.
12150
12151 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12152
12153 * nsfont.m (ns_char_width): Replace deprecated call.
12154 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12155 cast argument.
12156 (nsfont_open): Use ns_char_width() everywhere.
12157 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
12158
12159 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12160
12161 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12162 where appropriate.
12163
12164 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12165 where appropriate.
12166 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12167 Use stringWithUTF8String.
12168 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12169
12170 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12171 Add formal protocol mention to inheritance.
12172 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12173
12174 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12175 Fix printf format.
12176 (ns_query_color): Use CGFloat where appropriate.
12177 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
12178 (EmacsScroller-mouseDown:): Use long format in printf, and cast
12179 argument.
12180
12181 * config.in (NS_HAVE_NSINTEGER): Drop.
12182
12183 * dbusbind.c (dbus-method-return-internal)
12184 (dbus-method-error-internal): Use long format in printf, and cast
12185 argument.
12186
12187 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12188 in printf, and cast argument.
12189
12190 * process.c (list_processes_1): Use long format in printf, and
12191 cast argument.
12192
12193 2009-10-11 Glenn Morris <rgm@gnu.org>
12194
12195 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12196
12197 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12198
12199 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12200 menu bar with a small width so it doesn't enlarge the frame.
12201
12202 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
12203
12204 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12205
12206 2009-10-06 Glenn Morris <rgm@gnu.org>
12207
12208 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12209 SOME_MACHINE_LISP (this enters indirectly via DOC).
12210
12211 2009-10-05 Eli Zaretskii <eliz@gnu.org>
12212
12213 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12214
12215 2009-10-04 Eli Zaretskii <eliz@gnu.org>
12216
12217 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12218 Doc fix.
12219
12220 2009-10-03 Martin Rudalics <rudalics@gmx.at>
12221
12222 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12223
12224 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
12225
12226 * lisp.h (Qdelete_directory_internal): Remove, because it is not
12227 used anymore outside fileio.c.
12228
12229 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12230
12231 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
12232
12233 * lisp.h (Qdelete_directory_internal):
12234 Declare, instead of Qdelete_directory.
12235
12236 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12237
12238 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12239
12240 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12241
12242 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
12243
12244 * fileio.c (Fdelete_directory_internal): Rename from
12245 Fdelete_directory. It is not a command anymore. It has no file
12246 name handler.
12247
12248 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12249
12250 * xdisp.c (get_next_display_element): Use an enum in last change.
12251
12252 2009-09-28 Kenichi Handa <handa@m17n.org>
12253
12254 * xdisp.c (get_next_display_element): Pay attention to
12255 unibyte_display_via_language_environment in handling
12256 Vnobreak_char_display.
12257
12258 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12259
12260 * nsterm.h (ns_app_name): New extern variable.
12261
12262 * nsterm.m (ns_app_name): New variable.
12263 (ns_term_init): Set and use it.
12264 (ns_term_shutdown): Use it.
12265
12266 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12267 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12268
12269 * nsfns.m (ns_set_name_iconic, ns_set_name)
12270 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12271 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12272
12273 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12274 Remove double-casting in client_data comparison.
12275
12276 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12277
12278 * keyboard.c (make_lispy_event): Remember last wheel direction.
12279 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12280
12281 2009-09-26 Glenn Morris <rgm@gnu.org>
12282
12283 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12284 internal.elc. Add term/pc-win.elc.
12285 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12286 term/x-win.elc.
12287 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12288 term/w32-win.elc.
12289 (NS_SUPPORT): New.
12290 (lisp): Add NS_SUPPORT.
12291 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12292
12293 2009-09-25 David Reitter <david.reitter@gmail.com>
12294
12295 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12296 on Mac OS X 10.6+ (bug#4513).
12297
12298 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12299
12300 * frame.c (xrdb_get_resource): Return nil for empty string resources;
12301 some parts of Emacs code (like font selection) don't grok them.
12302 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12303
12304 2009-09-24 Andreas Schwab <schwab@redhat.com>
12305
12306 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12307
12308 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12309
12310 * dired.c (Fdirectory_files): Fix typo in docstring.
12311
12312 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12313
12314 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12315 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12316 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12317 under GNUstep.
12318 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12319
12320 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12321 glyph advancement.
12322
12323 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12324
12325 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
12326 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
12327
12328 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12329 deleted (bug #4492).
12330
12331 * nsfont.m (Vns_reg_to_script): New lisp variable.
12332 (syms_of_nsfont): Declare it.
12333 (ns_registry_to_script): New function.
12334 (ns_get_req_script): Call it.
12335 (ns_findfonts): Don't give up on non-unicode registry.
12336
12337 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12338
12339 2009-09-20 Tom Tromey <tromey@redhat.com>
12340
12341 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12342 batch mode (bug#4228).
12343
12344 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
12345
12346 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
12347 carefully. (Bug #4339)
12348
12349 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
12350
12351 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
12352
12353 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12354
12355 * emacs.c (inhibit_x_resources): Update doc string for NS.
12356 (main) [HAVE_NS]: Don't process --no-init-file option.
12357 Remove legacy code for -NXHost. Fix error printf in daemon case.
12358
12359 * nsterm.h (ns_no_defaults): Remove.
12360
12361 * nsterm.m (ns_no_defaults): Remove.
12362 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12363 (ns_use_qd_smoothing): Remove legacy variable.
12364 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12365 don't update the NSWindow itself.
12366 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12367 Improve state detection and store user rect ourselves. (Bug #3581)
12368
12369 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12370 ns_use_qd_smoothing.
12371
12372 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12373 platform versions. Drop support for emacs-20-style face specs.
12374 (x-close-connection): Drop PSFlush() under OS X.
12375 (x-focus-frame): Activate the app first. (Bug #4180)
12376
12377 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
12378
12379 * emacs.c (inhibit_x_resources): New variable.
12380 (main) [HAVE_NS]: Don't process --quick command line option.
12381 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12382
12383 * lisp.h (inhibit_x_resources): Declare it extern.
12384
12385 * w32reg.c (x_get_string_resource):
12386 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12387
12388 2009-09-17 Eli Zaretskii <eliz@gnu.org>
12389
12390 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12391 Add lisp/term/internal.elc.
12392
12393 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12394
12395 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12396 (bug#4461).
12397
12398 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12399
12400 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12401
12402 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12403 (OBJECTS_MACHINE): Remove, unused.
12404
12405 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12406
12407 * frame.c (x_get_resource_string): Remove unused.
12408
12409 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12410
12411 * xterm.c (x_new_font): Call change_frame_size before calling
12412 x_set_window_size, in case frame size won't change.
12413
12414 * frame.c (x_set_font): Remove dead code.
12415
12416 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12417
12418 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12419
12420 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12421
12422 * lread.c (Fload): Don't output a message after loading an obsolete
12423 package any more (done in Lisp now).
12424
12425 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
12426
12427 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12428
12429 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12430
12431 * keymap.c (Fwhere_is_internal): Use nconc2.
12432
12433 2009-09-11 Alan Mackenzie <acm@muc.de>
12434
12435 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12436 batch mode.
12437
12438 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12439
12440 * xdisp.c (display_mode_element): Detect cycles.
12441
12442 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12443
12444 * keymap.c (where_is_internal): Don't erroneously return nil right after
12445 filling the cache.
12446 (where_is_internal_1): Fix up typo.
12447
12448 2009-09-11 Glenn Morris <rgm@gnu.org>
12449
12450 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12451 share a common doc-string.
12452
12453 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12454
12455 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12456 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12457
12458 * keymap.c (QCadvertised_binding): New constant.
12459 (syms_of_keymap): Initialize it.
12460 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12461 if applicable.
12462
12463 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12464
12465 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12466 (parse_menu_item): Streamline since bindings are recomputed all the
12467 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12468 more and don't support lmenu's menu-alias any more either.
12469
12470 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12471 (where_is_internal): Strip it down to only traverse the keymaps.
12472 Move the cache handling from Fwhere_is_internal to here.
12473 (Fwhere_is_internal): Move the handling of remapping and the choice of
12474 the best binding from where_is_internal to here.
12475 Unify the cached/noncached paths, so remapping is also handled
12476 correctly when the cache is used, and so the cache can be used to
12477 speed up remap-handling when applicable.
12478 Give preference to non-remapped bindings.
12479 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12480 non-remapped bindings.
12481 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12482 command remapping.
12483
12484 * xdisp.c (display_mode_element): Move list length limit from 50 to
12485 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12486
12487 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
12488
12489 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12490
12491 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12492
12493 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12494 (Bug#4334)
12495
12496 * keymap.c (where_is_internal): Filter out shadowed remappings.
12497 Assume that where_is_internal returns unshadowed bindings to simplify
12498 the code and get rid of the gotos. Use ASIZE.
12499
12500 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12501
12502 * xterm.c (x_focus_changed): If we get a focusout and pointer
12503 is invisible, make it visible.
12504
12505 * xterm.h: Remove condition for declaration of
12506 x_*_window_to_frame.
12507
12508 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12509
12510 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12511 initial terminal as well.
12512
12513 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12514
12515 * xterm.h: Rename x_non_menubar_window_to_frame to
12516 x_menubar_window_to_frame.
12517
12518 * xterm.c: Remove declarations also in xterm.h.
12519 (XTmouse_position): Do not return valid positions
12520 for clicks in the menubar and the toolbar for Gtk+.
12521
12522 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12523 if the widget for the event has the same top level as a frame,
12524 return the frame.
12525 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12526 internal windows, bug #4122.
12527 (x_non_menubar_window_to_frame): Remove.
12528
12529 2009-09-02 Glenn Morris <rgm@gnu.org>
12530
12531 * buffer.c (default-major-mode): Move most of the doc from here...
12532 (major-mode): ... to here.
12533
12534 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
12535
12536 * process.c (wait_reading_process_output): Keep the descriptor
12537 when pty is used by a non-child process, e.g., in I/O buffer of
12538 GDB this allows inferior to be restarted.
12539
12540 2009-08-29 Eli Zaretskii <eliz@gnu.org>
12541
12542 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12543 both branches into one.
12544
12545 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12546
12547 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12548 (main): Use enable-multibyte-characters rather than
12549 default-enable-multibyte-characters. Output a warning message when
12550 running a unibyte session.
12551
12552 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12553
12554 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12555 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12556 (copy_data_segment): Also copy __program_vars section.
12557 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12558 (dump_it) [LC_DYLD_INFO]: Use it.
12559
12560 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12561
12562 2009-08-28 Eli Zaretskii <eliz@gnu.org>
12563
12564 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12565 $(SRC)/buildobj.h.
12566 (buildobj.h): Rename from $(SRC)/buildobj.h.
12567 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12568 $(SRC)/buildobj.h.
12569 (clean): Add buildobj.h.
12570
12571 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12572
12573 * print.c (print_object): Set escapeflag to 1 when printing
12574 hashtable keys and values.
12575
12576 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12577
12578 * lread.c (read_integer): Use doubles (and potentially return a float
12579 number) as we do in string-to-number.
12580 (read1): Use strtol to read integers, signal errors on strtol's
12581 overflow and use floats if strtol's output is too large for
12582 Elisp integers.
12583
12584 2009-08-27 Eli Zaretskii <eliz@gnu.org>
12585
12586 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12587 (make-buildobj-SH): Fix last change.
12588 (SRC): Move to before where it's first used.
12589
12590 2009-08-27 Kenichi Handa <handa@m17n.org>
12591
12592 * process.c (send_process): Use encode_coding_object instead of
12593 encode_coding_string to perform eol-conversion even if the string
12594 is unibyte.
12595
12596 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12597 character.
12598
12599 * cmds.c (Fself_insert_command): Avoid unnecessay
12600 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
12601
12602 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12603
12604 * callproc.c (Fcall_process): Remove always true #if.
12605
12606 * lisp.h: Replace #if 0 code for checking with text pointing to
12607 the --enable-checking configure flag.
12608
12609 * emacs.c (main): Mention the --enable-profiling configure flag
12610 instead of using CFLAGS.
12611
12612 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
12613
12614 * Makefile.in (buildobj.h): New target.
12615 (doc.o): Depend on it.
12616 (temacs${EXEEXT}): Don't generate buildobj.lst.
12617 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12618 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12619 ($(BLD)/doc.$(O)): Depend on it.
12620 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12621 provided by Eli Zaretskii.)
12622 ($(TEMACS)): Don't generate buildobj.lst.
12623 * doc.c: Include buildobj.h.
12624 (buildobj): New static variable.
12625 (Fsnarf_documentation): Use it, instead of opening and reading
12626 buildobj.lst.
12627
12628 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
12629
12630 * dbusbind.c (Fdbus_call_method)
12631 (Fdbus_call_method_asynchronously): Use English numeric format for
12632 timeout values in doc string.
12633
12634 2009-08-25 Kenichi Handa <handa@m17n.org>
12635
12636 * alloc.c (mark_char_table): New function.
12637 (mark_object): Use mark_char_table for a char-table.
12638
12639 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12640 (CHAR_TABLE_REF): Use it.
12641
12642 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
12643
12644 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12645 before invoking the newly build emacs to check for load-path
12646 shadowing.
12647
12648 2009-08-22 Glenn Morris <rgm@gnu.org>
12649
12650 * Makefile.in (bootstrap_exe): New variable.
12651 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12652 Use ${bootstrap_exe}.
12653
12654 2009-08-22 Eli Zaretskii <eliz@gnu.org>
12655
12656 * coding.h (encode_coding_string): Don't encode unibyte strings.
12657 (Bug#4047)
12658
12659 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
12660
12661 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12662
12663 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12664 intended as hotfix only.
12665 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12666
12667 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12668
12669 * nsterm.m (ns_get_color): Update documentation properly for last
12670 change, and clean up loose ends in the code left by it.
12671 Fix longstanding bug with 16-bit hex parsing, and add support for
12672 yet another X11 format (rgb:r/g/b) for compatibility.
12673 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12674 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12675
12676 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12677
12678 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12679
12680 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
12681
12682 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12683 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12684 (xd_initialize, xd_pending_messages): Check, whether
12685 $DBUS_SESSION_BUS_ADDRESS is set.
12686
12687 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12688
12689 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12690
12691 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12692
12693 2009-08-20 Glenn Morris <rgm@gnu.org>
12694
12695 * emacs.c (system-type): Doc fix.
12696
12697 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12698
12699 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12700 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12701
12702 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
12703
12704 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12705 New functions.
12706 (xd_initialize): Revert change from 2009-08-16.
12707
12708 2009-08-18 Kenichi Handa <handa@m17n.org>
12709
12710 * fontset.c (Ffontset_font): If a nil element is found in a
12711 font-group vector, return nil.
12712
12713 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
12714
12715 * process.c (status_notify): Don't perform redisplay.
12716 (Fdelete_process, list_processes_1, process_send_signal):
12717 Expliticly perform redisplay.
12718 (wait_reading_process_output): Always check process status, but
12719 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12720
12721 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
12722
12723 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
12724 (XFLOAT_INIT): New macro for storing a float value.
12725 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12726 * fns.c (sxhash): Copy out the value of a float in order to
12727 examine its bytes.
12728 * dbusbind.c (xd_append_arg): Likewise.
12729
12730 * emacs.c (main): Don't call syms_of_data twice.
12731
12732 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
12733
12734 * dbusbind.c (xd_initialize): Add connection file descriptor to
12735 input_wait_mask, in order to let select() detect, whether a new
12736 message has been arrived.
12737 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
12738
12739 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
12740
12741 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12742 New functions.
12743
12744 * lisp.h (xd_pending_messages): Declare.
12745
12746 * keyboard.c (readable_events): Call xd_pending_messages.
12747
12748 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
12749
12750 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
12751
12752 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12753
12754 * buffer.c (set_buffer_internal_1)
12755 (swap_out_buffer_local_variables): Check for unbound local
12756 variables (Bug#4138).
12757
12758 2009-08-14 Eli Zaretskii <eliz@gnu.org>
12759
12760 * process.c (create_pty): Fix last change.
12761
12762 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
12763
12764 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
12765 (xbm_load_image): Caller changed.
12766 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
12767
12768 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
12769
12770 * process.c (create_pty): New function.
12771 (Fstart_process): Use it to allow Emacs to just associate a pty
12772 with the buffer. See associated change in gdb-mi.el.
12773 (list_processes_1): Deal with no program name.
12774 (start_process_unwind): Use pid == -2 to mean no process.
12775
12776 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
12777
12778 * cmds.c (nonundocount): New global variable.
12779 (keys_of_cmds): Initialize it.
12780 (Fself_insert_command): Use it to combine upto 20 sequential chars
12781 into a single undo entry, just like the Qself_insert_command code in
12782 keyboard.c does.
12783 Call frame_make_pointer_invisible, also like the Qself_insert_command
12784 code in keyboard.c does.
12785 * keyboard.c (command_loop_1): Use the new global nonundocount rather
12786 than its own local replacement for it.
12787
12788 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
12789
12790 * fns.c (concat): Don't re-set string length to its current value.
12791
12792 * coding.h (decode_coding_string, encode_coding_string):
12793 Use SBYTES macro.
12794
12795 * doprnt.c (doprnt_lisp): Delete unused function.
12796 (doprnt): Merge with doprnt1, discarding lispstrings code.
12797 * lisp.h (doprnt_lisp): Don't declare.
12798
12799 2009-08-07 Juri Linkov <juri@jurta.org>
12800
12801 * puresize.h (BASE_PURESIZE): Increase to 1270000.
12802
12803 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12804
12805 * print.c (syms_of_print): Undo previous change.
12806
12807 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
12808
12809 * lread.c (read1, syms_of_lread): Read hashtables back from the
12810 readable format.
12811
12812 * print.c (print_preprocess, print_object): Print hashtables fully
12813 and readably.
12814 (syms_of_print): Provide 'hashtable-print-readable.
12815
12816 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12817
12818 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
12819 no family set.
12820 (nsfont_open): Handle case when entity has no family.
12821
12822 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12823
12824 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
12825 element, not a list, for match case.
12826
12827 2009-07-28 Kenichi Handa <handa@m17n.org>
12828
12829 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
12830 rigidly.
12831
12832 * xfont.c (xfont_list_pattern): Don't ignore the return value of
12833 font_parse_xlfd. Check font properties more rigidly.
12834
12835 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12836
12837 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
12838 bsd-common.h.
12839
12840 2009-07-27 Kenichi Handa <handa@m17n.org>
12841
12842 * xfaces.c (face_with_height): Call font_clear_prop.
12843
12844 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
12845
12846 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
12847
12848 * xterm.c (x_term_init): Use Qx.
12849
12850 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
12851
12852 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
12853 (ns_get_color): Revert 2009-07-16 change.
12854
12855 2009-07-25 Eli Zaretskii <eliz@gnu.org>
12856
12857 * lread.c (syms_of_lread) <force_load_messages>: New variable.
12858 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
12859
12860 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
12861
12862 * coding.h (decode_coding_string, encode_coding_string):
12863 Use SCHARS macro.
12864
12865 * lread.c: Rewrite 2009-07-21 changes.
12866 (load_depth): Delete.
12867 (Qload_in_progress): New variable.
12868 (load_unwind): Don't reference load_depth or load_in_progress.
12869 (Fload): Likewise; specbind Qload_in_progress instead.
12870 (init_lread): Don't initialize load_depth.
12871 (syms_of_lread): Initialize and protect Qload_in_progress.
12872
12873 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12874
12875 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
12876
12877 2009-07-23 Yavor Doganov <yavor@gnu.org>
12878
12879 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
12880
12881 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12882
12883 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
12884 Bugs 3792, 3720, 2402.
12885 (ns_lookup_indexed_color): Check for bad index.
12886 (ns_index_color): Init unused slot to 0.
12887 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
12888 Bug 3714, possibly 3082.
12889
12890 2009-07-22 Jason Rumney <jasonr@gnu.org>
12891
12892 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
12893 Position IME window at cursor (Bug#2570).
12894 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
12895 (globals_of_w32fns): Dynamically load functions required above.
12896
12897 * w32term.c (w32_draw_window_cursor): Send message to reposition
12898 any IME window.
12899
12900 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
12901
12902 * fileio.c: Revert 2009-07-16 changes.
12903 (Vauto_save_include_big_deletions): New variable.
12904 (Fdo_auto_save): Disable auto-save only if
12905 auto-save-include-big-deletions is nil.
12906
12907 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
12908
12909 * xdisp.c (move_it_to): For continued lines ending in a tab, take
12910 the overflowed pixels into account (Bug#3879).
12911
12912 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
12913
12914 * lread.c (load_depth): New variable.
12915 (Fload, load_unwind, init_lread): Set it to the load recursion
12916 depth; set load_in_progress as a simple boolean based on the
12917 current load_depth. (Bug#3892)
12918
12919 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12920
12921 * nsfont.m (ns_has_attribute): Remove.
12922 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
12923
12924 2009-07-18 Juri Linkov <juri@jurta.org>
12925
12926 * process.c (Fset_process_query_on_exit_flag): Mention killing
12927 a buffer in docstring.
12928
12929 2009-07-17 Kenichi Handa <handa@m17n.org>
12930
12931 * casetab.c (shuffle): Fix the logic of setting up the cycle.
12932
12933 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12934
12935 * nsfns.m (Fns_set_alpha): Remove function.
12936 (syms_of_nsfns): Don't defsubr it.
12937
12938 * nsterm.m (ns_get_color): Remove incompatible color formats.
12939 (ns_color_to_lisp): Generate #rrggbb color format string.
12940
12941 2009-07-16 Richard Stallman <rms@gnu.org>
12942
12943 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
12944 (Fset_buffer_auto_saved): Handle save_length = -2.
12945
12946 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
12947
12948 * xterm.c (Qx_gtk_map_stock): New var.
12949
12950 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
12951 of calling intern each time.
12952
12953 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12954
12955 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
12956 does tiling.
12957
12958 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12959
12960 2009-07-14 Kenichi Handa <handa@m17n.org>
12961
12962 * font.c (font_vconcat_entity_vectors): New function.
12963 (struct font_sort_data): New member font_driver_preference.
12964 (font_compare): Check font_driver_preference.
12965 (font_sort_entities): The format of the first argument changed.
12966 (font_delete_unmatched): Likewise.
12967 (font_list_entities): The return type changed.
12968 (font_select_entity): The format of the second argument changed.
12969 (font_find_for_lface): Adjuste for the above changes.
12970 Don't suppress the checking of C even if the repertory supports it.
12971 (Flist_fonts): Adjust for the above changes.
12972
12973 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12974 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
12975 Reject a font who has adstyle property that is different from a
12976 langname derived from registry property.
12977 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
12978
12979 2009-07-13 Eli Zaretskii <eliz@gnu.org>
12980
12981 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12982 local copy of dirfilename.
12983
12984 2009-07-13 Kenichi Handa <handa@m17n.org>
12985
12986 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12987 against max_char.
12988
12989 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12990 calling XSYMBOL (sym).
12991
12992 2009-07-11 Eli Zaretskii <eliz@gnu.org>
12993
12994 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
12995 New function.
12996 (directory_files_internal) [WINDOWSNT]:
12997 Bind w32-get-true-file-attributes to either t or nil, depending whether
12998 the filesystem of the directory is fast or slow.
12999
13000 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13001 file name.
13002 (is_slow_fs): New function.
13003 (stat): Use it to determine whether to issue more system calls to
13004 get accurate file attributes, when w32-get-true-file-attributes is
13005 `local'.
13006
13007 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13008
13009 * xfns.c (Fx_select_font): Remember last font selected in
13010 x_last_font_name and use that the next time. Also try the frame
13011 parameter font-parameter as default to the font dialog.
13012
13013 2009-07-10 Kenichi Handa <handa@m17n.org>
13014
13015 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13016
13017 2009-07-09 Eli Zaretskii <eliz@gnu.org>
13018
13019 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13020
13021 * w32.c (stat): Treat UNC file names as residing on remote
13022 drives. (Bug#3542)
13023
13024 2009-07-09 Kenichi Handa <handa@m17n.org>
13025
13026 * fontset.c (fontset_find_font): Fix previous change.
13027
13028 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
13029
13030 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13031 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13032 error flag.
13033
13034 2009-07-08 Kenichi Handa <handa@m17n.org>
13035
13036 * fontset.c (fontset_find_font): Fix the logic of handling
13037 charset_matched.
13038 (font_for_char): Delete unused var.
13039 (generate_ascii_font_name): Delete it.
13040
13041 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13042
13043 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13044 (encode_coding_sjis): Fix the code range check.
13045
13046 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
13047
13048 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13049 (Fexpand_file_name): Copy string data properly (Bug#3772).
13050
13051 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13052
13053 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13054 first MapNotify.
13055
13056 2009-07-07 Kenichi Handa <handa@m17n.org>
13057
13058 * character.h (unibyte_has_multibyte_table): Delete extern.
13059 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13060
13061 * charset.c (Fset_charset_priority): Update charset_unibyte.
13062 (syms_of_charset): Initialize charset_unibyte.
13063
13064 * character.c (unibyte_has_multibyte_table): Delete it.
13065 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13066 charset_unibyte.
13067 (multibyte_char_to_unibyte_safe): Likewise.
13068 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13069
13070 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
13071 (x_produce_glyphs): Likewise.
13072
13073 * .gdbinit (xcharset): Fix the treating $arg0.
13074
13075 2009-07-04 Eli Zaretskii <eliz@gnu.org>
13076
13077 Emulation of `getloadavg' on MS-Windows.
13078 * w32.c: Include float.h.
13079 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13080 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13081 (get_native_system_info, get_system_times): New functions.
13082 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13083 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13084 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13085 g_b_init_get_system_times, and num_of_processors.
13086
13087 2009-07-03 Jason Rumney <jasonr@gnu.org>
13088
13089 * w32term.c (w32_initialize): Use standard types.
13090
13091 2009-07-03 Eli Zaretskii <eliz@gnu.org>
13092
13093 * dired.c (Ffile_attributes): Decode user and group names by the
13094 locale's encoding. (Bug#3443)
13095
13096 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13097
13098 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13099 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13100
13101 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13102
13103 * term.c (init_tty): Remove spurious #ifdef.
13104
13105 * m/mips.h: Mention this file is also used for netbsd.
13106 * m/pmax.h: Remove file.
13107
13108 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13109
13110 * xterm.h (struct x_display_info): Add invisible_cursor.
13111 (struct x_output): Add current_cursor.
13112
13113 * xterm.c (XTtoggle_invisible_pointer): New function.
13114 (x_define_frame_cursor): Don't define cursor if invisible or the
13115 same as before. Set current_cursor.
13116 (x_create_terminal): Set toggle_invisible_pointer_hook.
13117
13118 * xfns.c (make_invisible_cursor): New function.
13119 (x_set_mouse_color): Call make_invisible_cursor.
13120 Set current_cursor.
13121 (x_window): Set current_cursor.
13122
13123 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13124
13125 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13126 inserting a character.
13127 (read_avail_input): Call frame_make_pointer_visible.
13128
13129 * frame.c (Vmake_pointer_invisible): New variable.
13130 (frame_make_pointer_invisible, frame_make_pointer_visible):
13131 New functions.
13132 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13133
13134 * frame.h: Declare frame_make_pointer_invisible and
13135 frame_make_pointer_visible.
13136 (struct frame): Add pointer_invisible.
13137
13138 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13139
13140 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13141 frame isn't visible.
13142 (xg_frame_resized): If width/height is -1, get size of window
13143 from X server.
13144
13145 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13146 for MapNotify.
13147
13148 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
13149 here or call change_frame_size. Just call flush_and_sync.
13150 (flush_and_sync): Reintroduce.
13151
13152 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
13153
13154 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
13155
13156 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13157 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13158
13159 * frame.h: Declare Qsticky.
13160
13161 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13162
13163 * nsfns.m (ns_frame_parm_handlers): Ditto.
13164
13165 * frame.c: Declare Qsticky.
13166 (frame_parms): Add sticky.
13167
13168 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13169
13170 * xterm.h: Declare x_set_sticky.
13171
13172 * xterm.c (x_set_sticky): New function.
13173
13174 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13175 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13176 xg_tool_bar_proxy_help_callback.
13177
13178 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13179
13180 * frame.c: Qmaximized is new.
13181 (x_set_frame_parameters): Do not handle fullscreen specially.
13182 Only set width and height if explicitly set.
13183 (x_set_fullscreen): Handle Qmaximized.
13184 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13185 (syms_of_frame): Initialize Qmaximized.
13186
13187 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13188 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
13189
13190 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
13191 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13192 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
13193 set gravity to NorthWestGravity when USE_GTK.
13194 (set_wm_state): New function.
13195 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
13196 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13197 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
13198 or the case when no window manager is running. That means remove calls
13199 to x_real_positions and x_fullscreen_adjust.
13200
13201 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13202 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13203 flush_and_sync.
13204 (xg_height_changed): New function.
13205 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
13206 and gtk_window_set_policy. Set frame gravity after parsing the
13207 geometry string.
13208 (xg_update_frame_menubar, free_frame_menubar)
13209 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13210 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13211 Remove calls to xg_frame_set_char_size.
13212
13213 2009-07-01 Kenichi Handa <handa@m17n.org>
13214
13215 * keyboard.c (decode_keyboard_code): New function.
13216 (tty_read_avail_input): Decode the input bytes if necessary.
13217
13218 * coding.c (setup_coding_system):
13219 Initialize coding->carryover_bytes to 0.
13220 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13221 use Qno_conversion.
13222
13223 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13224
13225 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13226
13227 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
13228
13229 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13230
13231 2009-06-30 Jason Rumney <jasonr@gnu.org>
13232
13233 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13234 is already loaded.
13235 Set user model ID if supported (bug#1849).
13236
13237 2009-06-29 Jim Meyering <meyering@redhat.com>
13238
13239 Remove useless if-before-xfree test.
13240 * nsfont.m (nsfont_close): Remove useless test.
13241 * term.c (delete_tty): Likewise.
13242 * w32.c (system_process_attributes): Likewise.
13243 * w32font.c (w32font_close): Likewise.
13244 * xfaces.c (x_free_gc): Likewise.
13245 * xselect.c (buffer): Likewise.
13246
13247 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13248
13249 * process.c (send_process): Keep decoded string in a local
13250 variable and protect it from GC. (Bug#3521)
13251
13252 2009-06-28 Eli Zaretskii <eliz@gnu.org>
13253
13254 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13255 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13256
13257 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
13258
13259 * xdisp.c (start_display, handle_face_prop)
13260 (move_it_vertically_backward, cursor_row_fully_visible_p)
13261 (redisplay_window, try_window_id, produce_image_glyph):
13262 Delete some #ifdef-ed out code chunks that are now obsolete.
13263
13264 * xterm.c (x_update_window_begin, x_new_focus_frame)
13265 (x_scroll_bar_handle_click, handle_one_xevent)
13266 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13267 (x_make_frame_visible, x_make_frame_invisible)
13268 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13269 code chunks that are now obsolete.
13270
13271 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
13272
13273 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13274 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13275 for hours, when optimzation is enabled.
13276 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13277 (xd_read_message): Make them static.
13278
13279 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13280
13281 * term.c (turn_on_face): Allow simultaneously bold and dim
13282 terminal faces (Bug#3530).
13283
13284 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
13285
13286 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13287
13288 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13289 truncation glyphs (Bug#3686).
13290
13291 2009-06-27 Glenn Morris <rgm@gnu.org>
13292
13293 * m/pmax.h: Restore file, with only netbsd portions.
13294
13295 2009-06-26 David Reitter <david.reitter@gmail.com>
13296
13297 * nsterm.m (keydown): Avoid infinite loop.
13298
13299 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13300
13301 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13302 the arg FORCE_SYMBOL.
13303
13304 2009-06-25 Kenichi Handa <handa@m17n.org>
13305
13306 * fontset.c (fontset_find_font): When a usable rfont_def is found
13307 in a fallback font-group, make it the first element of the group.
13308
13309 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
13310
13311 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13312
13313 2009-06-24 Kenichi Handa <handa@m17n.org>
13314
13315 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13316 set for C.
13317 (fontset_font): Record the availability of a font for C both in
13318 the realized fontsets of the current one and the default one.
13319
13320 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13321
13322 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13323 conditional, it is always defined on AIX.
13324
13325 2009-06-23 Miles Bader <miles@gnu.org>
13326
13327 * window.c (Vrecenter_redisplay): New variable.
13328 (syms_of_window): Initialize it.
13329 (Qtty): New extern declaration.
13330 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13331
13332 2009-06-23 Jim Meyering <meyering@redhat.com>
13333
13334 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13335 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
13336 pointer dereferences are guaranteed to be valid.
13337
13338 2009-06-23 Kenichi Handa <handa@m17n.org>
13339
13340 * emacs.c (main): Call init_font ().
13341
13342 * font.h (Vfont_log): Extern it.
13343 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13344
13345 * font.c (font_sort_entities, font_list_entities)
13346 (font_matching_entity, font_open_entity)
13347 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13348 (Vfont_log): Delete static.
13349 (font_log_env_checked): Delete this variable.
13350 (font_add_log): Don't check font_log_env_checked.
13351 (font_deferred_log): Check Vfont_log.
13352 (init_font): New function.
13353
13354 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13355
13356 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13357
13358 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13359
13360 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13361
13362 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13363 (face_for_char): Don't call font_deferred_log here.
13364 (font_for_char): Likewise.
13365
13366 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
13367
13368 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13369 rather than its background_width for drawing the overline and
13370 underline (Bug#489).
13371
13372 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13373 rather than its background_width for drawing the overline and
13374 underline (Bug#489).
13375 (xg_default_icon_file): New variable.
13376 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13377 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
13378
13379 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13380 (load_overlay_strings): Remove externs.
13381 (fast_find_position): Function deleted.
13382 (mouse_face_from_buffer_pos): New function, based on
13383 fast_find_position. Correctly handle before-strings,
13384 display-strings, and after-strings (Bug#1220).
13385 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13386
13387 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13388
13389 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
13390 (move_it_in_display_line_to, move_it_in_display_line_to)
13391 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13392
13393 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13394
13395 * Branch for 23.1.
13396
13397 2009-06-21 Jason Rumney <jasonr@gnu.org>
13398
13399 * w32term.c (keyboard_codepage): New static variable.
13400 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13401 (w32_read_socket) [WM_CHAR]: Use it to decode character
13402 input (bug#3237).
13403 (w32_initialize): Initialize it.
13404 (codepage_for_locale): New function.
13405
13406 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
13407
13408 * process.c (status_message): Pass Faset index argument as a lisp
13409 object, so as to work with USE_LISP_UNION_TYPE.
13410
13411 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13412
13413 * coding.c (Ffind_coding_systems_region_internal):
13414 Cache checked characters.
13415
13416 2009-06-18 Kenichi Handa <handa@m17n.org>
13417
13418 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
13419
13420 2009-06-18 Andreas Schwab <aschwab@redhat.com>
13421
13422 * xdisp.c (redisplay_internal): Check that the frame is still
13423 live after redisplay of its windows.
13424 (redisplay_windows): Check that the window is still live.
13425
13426 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13427
13428 * coding.c (detect_coding_utf_16): Fix previous change.
13429
13430 2009-06-16 Kenichi Handa <handa@m17n.org>
13431
13432 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13433 UTF-16 by checking the dispersion of Eth and Oth bytes.
13434
13435 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13436
13437 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13438
13439 2009-06-15 Kenichi Handa <handa@m17n.org>
13440
13441 * process.c (status_message): Fix previous change. Be sure to
13442 decode a localized string.
13443
13444 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13445
13446 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13447 add comment explaining why.
13448
13449 2009-06-14 Sidney Markowitz <sidney@sidney.com>
13450
13451 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
13452
13453 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13454
13455 * nsfont.m (ns_attribute_value): Remove.
13456 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13457 (ns_has_attribute): Shrink the normal range.
13458 (ns_findfonts): Don't worry about requested spec in determining
13459 need for synthItal.
13460 (ns_get_covering_families): Retain scriptToFamilies.
13461
13462 2009-06-14 Seiji Zenitani <zenitani@mac.com>
13463
13464 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13465
13466 2009-06-11 Kenichi Handa <handa@m17n.org>
13467
13468 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13469 overhang for the static composition case.
13470
13471 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13472
13473 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13474 overhang for the automatic composition case.
13475
13476 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13477 composition case.
13478
13479 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
13480
13481 * xdisp.c (get_next_display_element): When handling wrap-prefix
13482 and line-prefix, treat \n as a control character (bug#3502).
13483
13484 2009-06-10 Kenichi Handa <handa@m17n.org>
13485
13486 * font.c (font_parse_family_registry): Fix for one-char foundry.
13487 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13488
13489 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13490
13491 * process.c (status_message): Fix handling of multibyte signal
13492 string (Bug#3499).
13493
13494 2009-06-09 Jim Meyering <meyering@redhat.com>
13495
13496 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13497 color name is missing.
13498
13499 2009-06-09 Kenichi Handa <handa@m17n.org>
13500
13501 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13502 FROM-CODE and TO-CODE are codepoints of CHARSET.
13503
13504 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13505
13506 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13507
13508 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13509
13510 Changes to support :script/:lang/:otf in NS font driver.
13511 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13512 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13513 indicate not part of font driver interface, and change callers.
13514 (ns_get_family): Remove pointless null check.
13515 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13516 ns_spec_to_descriptor, ns_descriptor_to_entity.
13517 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13518 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13519 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13520 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13521 (ns_get_req_script, ns_accumulate_script_ranges)
13522 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13523 New functions.
13524 (nsfont_list, nsfont_match): Use ns_findfonts.
13525 (nsfont_open): Use font descriptor instead of traits.
13526 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13527 (dump_glyphstring): Rename to ns_dump_glyphstring.
13528
13529 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13530
13531 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13532
13533 * fontset.c (fontset_from_font): Remove NS-specific code.
13534
13535 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
13536
13537 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13538 nonactive windows.
13539
13540 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
13541
13542 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
13543
13544 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13545
13546 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13547
13548 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
13549
13550 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13551 account for the overflowing of newlines into the last glyph on the
13552 display line (Bug#3482).
13553
13554 2009-06-05 David Reitter <david.reitter@gmail.com>
13555
13556 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13557 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
13558 Fns_selection_exists_p, Fns_selection_owner_p.
13559
13560 2009-06-03 Jason Rumney <jasonr@gnu.org>
13561
13562 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13563 available. (Bug#3379)
13564
13565 2009-05-29 Kenichi Handa <handa@m17n.org>
13566
13567 * coding.c (get_translation_table):
13568 Check Venable_character_translation.
13569
13570 2009-05-26 David Reitter <david.reitter@gmail.com>
13571
13572 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13573 (x_make_frame_visible): Move frame to front rather than calling
13574 ns_raise_frame().
13575 (keyDown:): Do not swallow events that aren't re-sent if frame
13576 isn't key window.
13577 (drawRect:): Do not set visibility/iconified flags because
13578 drawRect may be called by NSView even if the frame is hidden.
13579
13580 * nsfns.m (Fx_create_frame): Follow other ports in
13581 determining visibility; default to t. Ensure async_visible is set.
13582
13583 2009-05-23 Eli Zaretskii <eliz@gnu.org>
13584
13585 * dired.c (Ffile_attributes): Doc fix.
13586
13587 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
13588
13589 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13590
13591 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13592
13593 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13594 and xfont_scratch_props.
13595 (syms_of_xfont): Do it here instead.
13596 (xfont_find_ccl_program): Delete, unused.
13597 (xfont_open): Delete unused var `i'.
13598
13599 2009-05-21 Kenichi Handa <handa@m17n.org>
13600
13601 * fontset.c (Qlatin): Don't make it static.
13602
13603 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13604 New functions.
13605 (xfont_scripts_cache, xfont_scratch_props): New variables.
13606 (Qlatin, Vscalable_fonts_allowed): Extern it.
13607 (xfont_list_pattern): Argument changed. Callers changed.
13608 Check Vscalable_fonts_allowed. Check the support of a script.
13609 (xfont_list): Don't reject a font spec with :script property.
13610 (xfont_has_char): Fix setting of encoding.
13611 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13612 xfont_scratch_props.
13613
13614 2009-05-19 Kenichi Handa <handa@m17n.org>
13615
13616 * font.c (font_sort_entities): Rename from font_sort_entites.
13617 Callers changed.
13618
13619 2009-05-18 Kenichi Handa <handa@m17n.org>
13620
13621 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13622
13623 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13624
13625 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13626 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13627
13628 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13629
13630 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13631 (x_delete_terminal): Dissociate resource database from display and
13632 then call XrmDestroyDatabase before closing display.
13633
13634 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13635
13636 * nsterm.m (ns_read_socket): Remove unused variable.
13637 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13638 whether selected frame is viable before raising it (based on patch
13639 by David Reitter), and improve commentary.
13640 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
13641
13642 2009-05-15 Kenichi Handa <handa@m17n.org>
13643
13644 * font.c (Ffont_spec): Check arguments.
13645
13646 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
13647
13648 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13649 weight when testing attributes (Bug#3282).
13650
13651 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13652
13653 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13654 what we expect to get in the next ConfigureNotify event.
13655
13656 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13657 before Xft one (Bug#1696).
13658
13659 2009-05-07 David Reitter <david.reitter@gmail.com>
13660
13661 * nsfns.m (Fx_display_planes): Compute bitplanes using
13662 NSBitsPerPixelFromDepth (Bug#3207).
13663
13664 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
13665
13666 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13667
13668 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
13669
13670 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13671
13672 2009-05-07 David Reitter <david.reitter@gmail.com>
13673
13674 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13675 Respect mouse face background.
13676
13677 2009-05-07 David Reitter <david.reitter@gmail.com>
13678
13679 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13680 Mouse movement/highlight: bracket drawing operations
13681 in ns_update_begin and ns_update_end.
13682
13683 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13684
13685 * nsfns.m (ns_get_screen): Rewrite.
13686 Don't presume selected-frame is of type `ns'.
13687
13688 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13689 all drivers.
13690
13691 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13692
13693 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13694
13695 * keyboard.h (add_user_signal): Fix typo in extern.
13696
13697 * lisp.h (add_user_signal): Remove extern.
13698
13699 * unexelf.c (unexec): Consider a section to precede the .bss section
13700 if its addresses overlap that of .bss.
13701 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13702 instead of dumping process.
13703
13704 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13705
13706 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13707
13708 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13709
13710 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13711
13712 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13713
13714 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13715 any statements.
13716
13717 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13718
13719 * process.c (read_process_output): Make sure the current buffer is
13720 always restored.
13721
13722 * coding.c (record_conversion_result): Don't modify
13723 Vlast_code_conversion_error for successful result.
13724 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13725
13726 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13727
13728 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
13729 (load_charset_map): Remove unnecessary code.
13730
13731 2009-04-30 David Reitter <david.reitter@gmail.com>
13732
13733 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
13734 through f24.
13735
13736 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
13737
13738 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13739
13740 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13741 face_at_buffer_position.
13742 (face_before_or_after_it_pos, get_next_display_element)
13743 (note_mouse_highlight): Update face_at_buffer_position call.
13744
13745 * term.c (term_mouse_highlight):
13746 * msdos.c (IT_note_mouse_highlight):
13747 * fontset.c (Finternal_char_font):
13748 * font.c (font_at, font_range): Update face_at_buffer_position call.
13749
13750 * dispextern.h (face_at_buffer_position): Update prototype.
13751
13752 2009-04-30 Kenichi Handa <handa@m17n.org>
13753
13754 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
13755
13756 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
13757
13758 * callproc.c (Fcall_process): Fix GC protection. Make sure
13759 current buffer is always restored.
13760
13761 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13762
13763 * atimer.c (init_atimer): Also clear stopped_atimers.
13764
13765 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
13766
13767 * process.c (create_process): Clean up merger residues of
13768 2008-07-17 change.
13769
13770 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
13771
13772 * lread.c (Vread_circle): New variable.
13773 (read1): Disable recursive read if Vread_circle is nil.
13774
13775 2009-04-29 Kenichi Handa <handa@m17n.org>
13776
13777 * fontset.h (set_default_ascii_font): Delete extern.
13778
13779 * fontset.c (set_default_ascii_font): Delete this unused function.
13780
13781 * frame.c (x_set_font): When ARG is a font-object, check if the
13782 font-object matches with the ASCII font-spec of the frame's
13783 fontset. If not, create a new fontset for the frame. (Bug #3075)
13784
13785 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
13786
13787 * fns.c (Flocale_info): Protect vector from GC during decoding.
13788
13789 * process.c (Fstart_process): Protect argv strings from GC during
13790 encoding.
13791
13792 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
13793
13794 * sysdep.c: Include <ctype.h>.
13795
13796 2009-04-27 David Reitter <david.reitter@gmail.com>
13797
13798 * nsfont.m (nsfont_open): Remove unused variable shrink.
13799 Remove commented-out code.
13800
13801 2009-04-26 Johan Bockgård <bojohan@gnu.org>
13802
13803 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13804
13805 2009-04-25 Jason Rumney <jasonr@gnu.org>
13806
13807 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
13808
13809 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13810
13811 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
13812 Swap bytes in short integer if fringe bitmap width > 8.
13813
13814 2009-04-23 Kenichi Handa <handa@m17n.org>
13815
13816 * xfaces.c (Fx_list_fonts): If a font size is specified in
13817 PATTERN, set it in returned scalable fonts.
13818
13819 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
13820
13821 * keyboard.c (Fset_input_meta_mode): Doc fix.
13822
13823 * dispnew.c (Fsend_string_to_terminal): Doc fix.
13824
13825 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
13826
13827 * coding.c (Fterminal_coding_system): Doc fix.
13828
13829 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
13830 (Fx_display_pixel_height, Fx_display_planes)
13831 (Fx_display_color_cells, Fx_server_max_request_size)
13832 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13833 (Fx_display_mm_height, Fx_display_mm_width)
13834 (Fx_display_backing_store, Fx_display_visual_class)
13835 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
13836 Doc fixes, replacing "terminal id" with "terminal object".
13837 (check_x_display_info): Handle terminal objects instead of
13838 terminal ids.
13839
13840 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
13841 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
13842 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
13843 Doc fixes, replacing "terminal id" with "terminal object".
13844
13845 2009-04-21 Kenichi Handa <handa@m17n.org>
13846
13847 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
13848 (font_score): Check AVGWIDTH too.
13849
13850 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
13851 worst case.
13852 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
13853 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
13854
13855 2009-04-19 Jason Rumney <jasonr@gnu.org>
13856
13857 The following changes fix Bug#3005 for wide glyphs on each platform,
13858 without reintroducing Bug#1258 for stretch glyphs.
13859
13860 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
13861 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
13862 get_phys_cursor_geometry.
13863
13864 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
13865 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
13866 using get_phys_cursor_geometry.
13867
13868 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
13869 correctly calculated.
13870
13871 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
13872
13873 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
13874 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
13875 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
13876 is deprecated.
13877
13878 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
13879
13880 * font.c (font_put_frame_data): Use xfree instead of free.
13881
13882 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
13883
13884 * w32font.c (Qja, Qko): Remove declarations.
13885 (syms_of_w32font): Don't DEFSYM them.
13886
13887 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
13888
13889 * font.c (Qja, Qko): Move definitions here from ftfont.c.
13890
13891 * font.h (Qja, Qko): Extern them.
13892
13893 * ftfont.c (Qja, Qko): Remove declarations.
13894
13895 * xfont.c (Qja, Qko): Remove declarations.
13896
13897 2009-04-17 Kenichi Handa <handa@m17n.org>
13898
13899 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
13900 string from a vector to handle Latin-1 characters correctly.
13901
13902 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
13903 entity even if the cache hits.
13904
13905 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
13906
13907 * search.c (boyer_moore): Use zero as marker value for a possible
13908 match instead of depending on overflow behavior. (Bug#2844)
13909
13910 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
13911 * lisp.h: Adjust prototypes.
13912
13913 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
13914
13915 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
13916 change (Bug#3003).
13917
13918 2009-04-16 Kenichi Handa <handa@m17n.org>
13919
13920 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
13921
13922 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
13923 adstyle.
13924
13925 * ftfont.c (Qja, Qko): Don't make them static.
13926 (enum ftfont_cache_for): New enum.
13927 (fc_charset_table): Undo the previous change.
13928 (ftfont_get_latin1_charset): Delete it.
13929 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
13930 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
13931 non-scarable font, try to get AVERAGE_WIDTH.
13932 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
13933 Change ft_face_cache from a list of a hash-table. Don't check
13934 `ja' and `ko' adstyle here.
13935 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
13936 FTFONT_CACHE_FOR_CHARET.
13937 (ftfont_get_charset): Undo the previous change.
13938 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
13939 (ftfont_close): Likewise.
13940 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
13941
13942 * font.c (font_sort_entites): Change the meaning of the arg
13943 BEST-ONLY. Don't optimize for VEC of lenght 1.
13944 (font_select_entity): Just return the value of font_sort_entites.
13945
13946 * xfaces.c (merge_face_vectors): Reflect font properties in
13947 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
13948 font_clear_prop if a face attribute doesn't change.
13949
13950 * charset.h (charset_ksc5601): Extern it.
13951
13952 * charset.c (charset_ksc5601): New variable.
13953 (Fdefine_charset_internal): Set charset_ksc5601.
13954 (init_charset_once): Initialize charset_ksc5601 to -1.
13955
13956 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
13957
13958 * fileio.c (history_delete_duplicates): Remove unused declaration.
13959
13960 * callint.c (history_delete_duplicates): New declaration.
13961 (Fcall_interactively): Remove command history duplicates when
13962 history_delete_duplicates is true.
13963
13964 2009-04-14 Eli Zaretskii <eliz@gnu.org>
13965
13966 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13967
13968 2009-04-14 Kenichi Handa <handa@m17n.org>
13969
13970 * font.c (Ffont_info): Fix docstring. Fix the second element of
13971 the returned value (bug#2949).
13972
13973 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
13974
13975 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13976
13977 2009-04-14 Kenichi Handa <handa@m17n.org>
13978
13979 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13980 encoding charset is ascii_compatible.
13981
13982 * charset.c (Fdefine_charset_internal): Make charset
13983 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13984 code_offset is 0, and covers all ASCII characters.
13985
13986 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13987
13988 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13989 (ns_string_to_pasteboard_internal):
13990 * nsmenu.m (process_dialog):
13991 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
13992 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
13993 * lisp.h (Fx_load_color_file): Declare.
13994
13995 2009-04-13 Kenichi Handa <handa@m17n.org>
13996
13997 * font.c (font_delete_unmatched): Preserve the order of list elements.
13998 (font_select_entity): Suppress the code to optimize for the same
13999 kind of fonts.
14000 (font_load_for_lface): Get a font that supports at least ASCII
14001 characters.
14002
14003 * ftfont.c (Qja, Qko): New variables.
14004 (fc_charset_table): Delete uniquifier data for iso8859-1.
14005 (ftfont_get_latin1_charset): New function.
14006 (get_adstyle_property): New function.
14007 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14008 bitmap fonts.
14009 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14010 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14011 `ko' or `ja'.
14012 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
14013 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
14014 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14015 property.
14016 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14017 (syms_of_ftfont): DEFSYM Qja and Qko.
14018
14019 2009-04-09 Kenichi Handa <handa@m17n.org>
14020
14021 * charset.c (map_charset_chars): For a charset of `superset'
14022 method, fix calculation of code range.
14023
14024 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14025 from the list of extra properties.
14026 (font_clear_prop): Be sure to delete `:name' font property.
14027
14028 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14029
14030 * dispnew.c (redraw_overlapping_rows): Fix detection of
14031 overlapping for topmost and bottommost rows.
14032
14033 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
14034
14035 2009-04-06 Jason Rumney <jasonr@gnu.org>
14036
14037 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14038
14039 2009-04-06 Kenichi Handa <handa@m17n.org>
14040
14041 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14042
14043 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14044
14045 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14046
14047 * ftfont.c (ftfont_open): Fix checking of the return value of
14048 FT_Load_Char. Fix setting font->underline_thickness.
14049
14050 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
14051
14052 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14053 (Fterminal_parameters, Fterminal_parameter)
14054 (Fset_terminal_parameter): In doc string, refer to terminal
14055 objects rather than terminal ids.
14056
14057 2009-04-04 Eli Zaretskii <eliz@gnu.org>
14058
14059 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14060 ret_lim_data. (Bug#2867)
14061
14062 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
14063
14064 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14065 so they don't get wider than the window, matching 2006-01-23
14066 change to the partner function in xdisp.c (Bug#2800).
14067
14068 2009-04-03 Kenichi Handa <handa@m17n.org>
14069
14070 * print.c (print_object): Make each lowest sub_char_table start a
14071 new line (Bug#2866).
14072
14073 2009-04-02 Kenichi Handa <handa@m17n.org>
14074
14075 * fontset.c (fontset_font): Record no-font when a fontset
14076 explicitly tells not to try another font-specs.
14077
14078 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14079
14080 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14081
14082 2009-03-30 Kenichi Handa <handa@m17n.org>
14083
14084 * fontset.c (fontset_from_font): Specify only registry in a
14085 font-spec for all characters supported by that registry.
14086
14087 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14088 even if HAVE_M17N_FLT is not defined.
14089
14090 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14091
14092 * ftfont.c: Conditionalize prototyping and use of
14093 ftfont_variation_glyphs.
14094
14095 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14096
14097 * frame.c (delete_frame): Work around compiler bug.
14098
14099 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14100 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14101 Some more EMACS_INT.
14102 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14103
14104 * xdisp.c (dump_glyph): Fix typo.
14105
14106 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14107 (adjust_markers_gap_motion, adjust_markers_for_delete)
14108 (adjust_markers_for_insert, adjust_point)
14109 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14110 (make_gap, copy_text, count_size_as_multibyte, insert)
14111 (insert_and_inherit, insert_before_markers)
14112 (insert_before_markers_and_inherit, insert_1)
14113 (count_combining_before, count_combining_after, insert_1_both)
14114 (insert_from_string, insert_from_string_before_markers)
14115 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14116 (insert_from_buffer_1, adjust_after_replace)
14117 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14118 (replace_range_2, del_range, del_range_1, del_range_byte)
14119 (del_range_both, del_range_2, modify_region)
14120 (prepare_to_modify_buffer, signal_before_change)
14121 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14122 for buffer positions and sizes.
14123 * lisp.h: Adjust prototypes accordingly.
14124
14125 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14126 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14127 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14128
14129 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14130
14131 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14132
14133 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14134 lines and columns so we keep the same pixel height and width.
14135
14136 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14137 the property _NET_WM_STATE has changed.
14138 (x_handle_net_wm_state): New function to update frame parameter
14139 fullscreen.
14140 (x_term_init): Initialize atoms for _NET_WM_STATE.
14141
14142 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14143
14144 2009-03-27 Kevin Ryde <user42@zip.com.au>
14145
14146 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14147 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14148 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14149 (Fgpm_mouse_stop): Pass that new parameter.
14150 * termhooks.h (close_gpm): Adjust prototype.
14151
14152 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14153
14154 * lisp.h (Fx_focus_frame): Declare.
14155
14156 * callint.c (Fcall_interactively): For '^' just delegate the work to
14157 handle-shift-selection.
14158 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14159
14160 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
14161
14162 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14163
14164 * data.c (Qinteractive_form): New variable.
14165 (Finteractive_form): Use it.
14166
14167 * eval.c (Fcommandp): Use Qinteractive_form.
14168
14169 2009-03-24 Jason Rumney <jasonr@gnu.org>
14170
14171 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14172 Calculate total size precisely. Decode environment variables
14173 before substituting. (Bug#38)
14174
14175 2009-03-24 Kenichi Handa <handa@m17n.org>
14176
14177 * font.c (find_font_encoding): Return Qnil for unsupported
14178 encoding (Bug#2722).
14179
14180 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14181
14182 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14183 that gdpy is set.
14184
14185 2009-03-22 Alan Mackenzie <acm@muc.de>
14186
14187 * callint.c (Finteractive): Clarify the doc string - even
14188 promptless elements need \n separators.
14189
14190 2009-03-22 Jason Rumney <jasonr@gnu.org>
14191
14192 * w32term.c (syms_of_w32term): Doc fix for
14193 x-use-underline-position-properties.
14194
14195 2009-03-21 Eli Zaretskii <eliz@gnu.org>
14196
14197 * w32.c (getpwuid): Change argument type to unsigned.
14198 (struct w32_id): Change type of `rid' member to unsigned.
14199 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14200 argument ID to unsigned. All callers changed.
14201 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14202
14203 2009-03-20 Eli Zaretskii <eliz@gnu.org>
14204
14205 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14206 negative, produce a float value.
14207
14208 * dired.c (make_uid, make_gid): New functions.
14209 (Ffile_attributes): Use them to avoid negative UID and GID.
14210
14211 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
14212
14213 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14214 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14215 Fix typos in docstrings.
14216
14217 2009-03-19 Kenichi Handa <handa@m17n.org>
14218
14219 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14220 changed, use font_load_for_lface to get a new font object.
14221 Call free_realized_fontset after handling ASCII font change.
14222
14223 * frame.c (x_set_font): Handle the case that ARG is a cons.
14224
14225 2009-03-19 Glenn Morris <rgm@gnu.org>
14226
14227 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14228
14229 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
14230
14231 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14232
14233 2009-03-19 Kenichi Handa <handa@m17n.org>
14234
14235 * charset.c (load_charset_map_from_file): When a mapfile can't be
14236 loaded, signal an error.
14237
14238 2009-03-18 Eli Zaretskii <eliz@gnu.org>
14239
14240 * dired.c (Ffile_attributes): Make sure UID and GID are always
14241 positive, even if the value is too large for a positive EMACS_INT.
14242 Doc fix.
14243
14244 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14245
14246 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14247
14248 * xmenu.c (xdialog_show): Move Fredisplay call ...
14249 (Fx_popup_dialog): ... here.
14250
14251 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14252
14253 * dired.c (file_name_completion): Disable the first optimization just
14254 installed, since it is not implemented correctly.
14255
14256 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14257
14258 * dired.c (file_name_completion): Check completion-ignored-extensions
14259 only if the entry can affect bestmatch.
14260 Stop the search early, as Ftry_completion already does.
14261
14262 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
14263
14264 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14265
14266 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
14267
14268 * keyboard.c (parse_menu_item): Don't display remappings as menu
14269 equivalent bindings (Bug#788).
14270
14271 2009-03-15 Jason Rumney <jasonr@gnu.org>
14272
14273 * w32term.h (WM_EMACS_PAINT): New message.
14274 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14275 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14276 before passing to lisp thread. (Bug#950)
14277
14278 2009-03-14 David Reitter <david.reitter@gmail.com>
14279
14280 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14281 variable as it was never reset.
14282 (ns_term_init): Remove initialization of Lisp-settable defaults
14283 and ns_expand_space.
14284 (-setPanelFromDefaultValues): Remove ns_expand_space.
14285 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14286 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14287 i.e. no additional spacing, similar to Carbon port.
14288
14289 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14290 * nsfns.m (ns-popup-prefs-panel): Remove.
14291
14292 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14293
14294 * sound.c (alsa_configure): Remove call to deprecated
14295 snd_pcm_sw_params_set_xfer_align.
14296
14297 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
14298
14299 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14300 after clicking in a detached tool bar.
14301 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14302
14303 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14304
14305 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14306 int/Lisp_Object mixup).
14307
14308 2009-03-13 Kenichi Handa <handa@m17n.org>
14309
14310 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14311 Handle NAME nil and t correctly. Callers changed.
14312 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14313 (set_fontset_font): Change ARG to a vector. Handle range_list in
14314 ARG correctly.
14315 (Fset_fontset_font): Fix the case that TARGET is both a script
14316 name and charset name. Adjust the arg to set_fontset_font for
14317 the above change.
14318 (fontset_from_font): Fix previous change.
14319 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
14320 entry. If FONTSET is the default fontset, don't set the extra
14321 slot of the returning char-table.
14322
14323 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
14324
14325 * nsfns.m (Fx_close_connection): Doc fix.
14326 (Fns_do_applescript): Reflow docstring.
14327 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14328 (Fx_display_pixel_width, Fx_display_pixel_height)
14329 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14330 Fix typos in docstrings.
14331 (Fns_set_alpha): Fix typos in error messages.
14332
14333 2009-03-12 David Reitter <david.reitter@gmail.com>
14334
14335 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
14336 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14337 were used for such events.
14338
14339 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14340 (toggleToolbar, performDragOperation, runHelp): Use it.
14341
14342 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
14343 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14344
14345 2009-03-11 Kenichi Handa <handa@m17n.org>
14346
14347 * font.h (font_open_by_spec): Extern it.
14348
14349 * font.c (font_open_by_spec): New function.
14350 (font_open_by_name): Use font_open_by_spec.
14351
14352 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14353 fontset of the frame.
14354
14355 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14356 modify the default font of frames that use this fontset.
14357 (num_auto_fontsets): New variable.
14358 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14359 name. Be sure to set FONTSET_ASCII to the correct font name.
14360 (update_auto_fontset_alist): New function.
14361
14362 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
14363
14364 * makefile.w32-in: Update dependencies.
14365
14366 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14367
14368 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14369
14370 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14371
14372 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14373
14374 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
14375
14376 * lread.c (Feval_buffer): Doc fix.
14377
14378 2009-03-09 Kenichi Handa <handa@m17n.org>
14379
14380 * charset.c (Qfile_name_handler_alist): Extern it.
14381 (load_charset_map_from_file): Temporarily bind
14382 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14383
14384 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
14385
14386 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14387 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
14388
14389 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14390
14391 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14392 (x_set_window_size): Change back to calculated method of setting
14393 toolbar height under Cocoa. (Bug#2546)
14394 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14395 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14396
14397 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14398
14399 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14400 accelerator in parens under GNUstep.
14401
14402 2009-03-06 Kenichi Handa <handa@m17n.org>
14403
14404 These changes are to detect incorrect composition sequence without
14405 looking ahead the source. (Bug#2370)
14406
14407 * coding.h: Include "composite.h".
14408 (enum compisition_state): New enum.
14409 (struct compisition_status): New struct.
14410 (struct iso_2022_spec): New member cmp_status.
14411 (struct emacs_mule_spec): New struct.
14412 (struct coding_system): New members ctext_extended_segment_len and
14413 embedded_utf_8. Change the union member
14414 spec.emacs_mule_full_support to spec.emacs_mule.
14415
14416 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14417 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
14418 (MAX_ANNOTATION_LENGTH): Define to 5.
14419 (ADD_COMPOSITION_DATA): New arg nbytes.
14420 (emacs_mule_char): New arg cmp_status.
14421 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14422 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14423 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14424 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14425 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14426 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14427 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14428 (EMACS_MULE_COMPOSITION_END): New macro.
14429 (emacs_mule_finish_composition): New function.
14430 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14431 (decode_coding_emacs_mule): Avoid long looking ahead while
14432 handling composition.
14433 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14434 (ENCODE_COMPOSITION_RULE): New macro.
14435 (finish_composition): New function.
14436 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14437 (DECODE_COMPOSITION_START): New implementation.
14438 (DECODE_COMPOSITION_END): Likewise.
14439 (STORE_COMPOSITION_RULE): New macro.
14440 (decode_coding_iso_2022): Avoid long looking ahead while handling
14441 composition, CTEXT extended segment, and embedded UTF-8.
14442 (setup_coding_system): For a coding of type iso-2022, reset
14443 CODING_ISO_EXTSEGMENT_LEN (coding) and
14444 CODING_ISO_EMBEDDED_UTF_8 (coding).
14445 (get_translation): Delete arguments last_block, from_nchars,
14446 to_nchars. Callers changed.
14447 (produce_chars): Don't modify charbuf. Adjusted for the change of
14448 get_translation.
14449 (produce_composition): Adjust for the new annotation sequence.
14450 (handle_composition_annotation): Likewise.
14451 (consume_chars): Adjust for the change of get_translation.
14452
14453 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14454
14455 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
14456
14457 2009-03-05 Kenichi Handa <handa@m17n.org>
14458
14459 * font.c (font_select_entity): New function.
14460 (font_find_for_lface): Use font_select_entity to select a font.
14461
14462 * fontset.c (fontset_find_font): If a font found without
14463 restricting to the characters C doesn't support C, try to find a
14464 font with C restriction.
14465
14466 2009-03-04 Nikolaj Schumacher <me@nschum.de>
14467
14468 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
14469
14470 2009-03-04 Jason Rumney <jasonr@gnu.org>
14471
14472 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
14473 characters that have already been read. (Bug#2569)
14474
14475 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14476 Log an error message if check_image_size failed.
14477 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
14478 (gs_load): Mention max-image-size in size error message. (Bug#2560)
14479
14480 2009-03-02 Eli Zaretskii <eliz@gnu.org>
14481
14482 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14483 when decoding process output.
14484
14485 2009-03-01 Richard M Stallman <rms@gnu.org>
14486
14487 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14488
14489 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14490
14491 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14492
14493 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14494 (decode_coding_emacs_mule, decode_coding_iso_2022)
14495 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14496 (decode_coding_raw_text, decode_coding_charset)
14497 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14498 Honor inhibit-eol-conversion. (Bug #2186)
14499
14500 2009-02-28 Jason Rumney <jasonr@gnu.org>
14501
14502 * coding.c (detect_coding_charset): If not checking latin extra,
14503 fail on characters between 0x80 and 0xA0. (Bug#2354)
14504
14505 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14506
14507 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
14508 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
14509
14510 2009-02-27 Glenn Morris <rgm@gnu.org>
14511
14512 * callint.c (Finteractive): Doc fix.
14513
14514 2009-02-27 Kenichi Handa <handa@m17n.org>
14515
14516 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14517
14518 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
14519
14520 * font.c (font_style_to_value): Set value for unknown symbols to
14521 100 instead of 255.
14522 (weight_table, slant_table, width_table): Treat "unspecified" as
14523 the default value.
14524
14525 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
14526
14527 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14528
14529 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
14530
14531 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14532 error as soon as a recursive load is detected.
14533
14534 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14535
14536 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14537 before caching.
14538
14539 2009-02-24 Kenichi Handa <handa@m17n.org>
14540
14541 * fontset.c (fontset_find_font): Fix the condition for checking
14542 unavailable font.
14543
14544 2009-02-24 Glenn Morris <rgm@gnu.org>
14545
14546 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14547 whitespace that confuses documentation.
14548
14549 2009-02-23 Miles Bader <miles@gnu.org>
14550
14551 * process.c (Flist_system_processes, Fprocess_attributes)
14552 (syms_of_process): Rename `system-process-attributes' to
14553 `process-attributes'.
14554
14555 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14556
14557 * coding.h (struct coding_system): Make safe_charsets a pointer to
14558 unsigned char.
14559 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14560 being 255.
14561 (SAFE_CHARSET_P): Likewise.
14562 (setup_iso_safe_charsets): Properly setup safe_charsets.
14563 (Fdefine_coding_system_internal): Likewise.
14564 (setup_coding_system): Likewise. Remove unneeded casts.
14565 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
14566 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14567 Remove unneeded casts.
14568
14569 * insdel.c (del_range_2): Don't modify gap contents when called
14570 from decode_coding_object. (Bug#1809)
14571
14572 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
14573
14574 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14575 Qfont_object.
14576 (Ftype_of): Recognize font objects.
14577
14578 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14579
14580 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14581 Definitions moved to data.c.
14582
14583 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14584
14585 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14586 async_iconified. Based on a patch by Christian Lynbech
14587 <christian.lynbech@tieto.com>.
14588 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14589
14590 2009-02-20 Glenn Morris <rgm@gnu.org>
14591
14592 * syntax.c (Fskip_chars_forward): Fix doc typo.
14593
14594 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
14595
14596 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14597
14598 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
14599
14600 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14601
14602 2009-02-19 Kenichi Handa <handa@m17n.org>
14603
14604 * coding.c (detect_coding): Preserve coding->mode.
14605 Don't overflow coding->carryover. (Bug#2370)
14606
14607 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14608
14609 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14610
14611 2009-02-18 Kenichi Handa <handa@m17n.org>
14612
14613 * font.c (font_check_otf_features): Fix handling of `nil' element.
14614 (Ffont_spec): Describe :lang and :otf in the docstring.
14615
14616 2009-02-16 Andreas Schwab <schwab@suse.de>
14617
14618 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14619 string.
14620
14621 2009-02-16 Kenichi Handa <handa@m17n.org>
14622
14623 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
14624 (Bug#1723)
14625
14626 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
14627
14628 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
14629
14630 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14631 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14632
14633 2009-02-14 Eli Zaretskii <eliz@gnu.org>
14634
14635 * msdos.c (MAX_SCREEN_BUF): New macro.
14636 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14637 Encode the entire run of glyphs sharing the same face, instead of
14638 doing that one glyph at a time (fixes a bug with displaying
14639 double-size characters).
14640
14641 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14642
14643 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14644
14645 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14646 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
14647 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
14648
14649 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
14650 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
14651
14652 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14653
14654 * keyboard.c (adjust_point_for_property): Allow stopping between two
14655 invisible areas.
14656
14657 2009-02-12 Jason Rumney <jasonr@gnu.org>
14658
14659 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14660 (add_font_entity_to_list): Call check_face_name even when family
14661 is unspecified.
14662
14663 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14664 Release DC when finished. Use NULL window to refer to desktop.
14665 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
14666
14667 * w32font.c (add_font_entity_to_list): Fix check for substituted
14668 raster fonts. (Bug#2219)
14669
14670 2009-02-12 Kenichi Handa <handa@m17n.org>
14671
14672 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14673 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14674 (autocmp_chars): Use fast_looking_at. Don't compose more
14675 characters than MAX_COMPOSITION_COMPONENTS.
14676 (find_automatic_composition): While looking forward and backward,
14677 check static composition. Fix where to stop looking forward.
14678 (composition_adjust_point): Fix checking of static composition.
14679 (Fcomposition_get_gstring): Pay attention to
14680 MAX_COMPOSITION_COMPONENTS.
14681
14682 * lisp.h (fast_looking_at): Extern it.
14683
14684 * search.c (fast_looking_at): New function.
14685
14686 * term.c (encode_terminal_code): Adjust for the change of
14687 <struct glyph>.u.cmp.to.
14688 (append_composite_glyph): Likewise.
14689
14690 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
14691 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14692 composition.
14693 (append_composite_glyph): Adjust for the change of
14694 <strcut glyph>.u.cmp.to.
14695
14696 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
14697
14698 * casetab.c (init_casetab_once):
14699 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14700 * font.c (font_update_lface):
14701 * fontset.c (Fnew_fontset):
14702 * ftfont.c (ftfont_drive_otf):
14703 * xfont.c (xfont_open):
14704 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14705
14706 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14707
14708 * fileio.c (Fwrite_region): !NILP -> CONSP.
14709
14710 2009-02-10 Andreas Schwab <schwab@suse.de>
14711
14712 * process.c (send_process): Properly relocate pointer into data
14713 when using encoded data. (Bug#2272)
14714
14715 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14716
14717 * coding.c (detect_coding_charset): Fix previous change.
14718
14719 2009-02-08 Jason Rumney <jasonr@gnu.org>
14720
14721 * w32fns.c (w32_hide_hourglass): Handle case where frame
14722 disappeared while hourglass was displayed. (Bug #2193)
14723
14724 2009-02-07 Andreas Schwab <schwab@suse.de>
14725
14726 * unexelf.c (unexec): Fix error message.
14727
14728 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14729
14730 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
14731 when modal window is active. (Bug #2152)
14732 (applicationShouldTerminate:): Remove now-unneeded while loop
14733 around NSRunAlertPanel.
14734
14735 * nsmenu.m (popupSession): New file-global variable.
14736 (pop_down_menu): End the popupSession before closing dialog.
14737 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14738 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14739 don't query NSApp for events (just sleep instead).
14740
14741 2009-02-07 Eli Zaretskii <eliz@gnu.org>
14742
14743 * coding.c (syms_of_coding) <translation-table-for-input>:
14744 Modify doc string to discourage use for character code unification.
14745
14746 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14747
14748 * atimer.c (run_timers): Update pending_atimers.
14749
14750 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
14751
14752 * image.c (svg_load_image): Fix last change.
14753
14754 * xfns.c (Fx_create_frame): Signal an error if no font is
14755 found (Bug#2147).
14756
14757 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
14758
14759 * character.c (syms_of_character) <script-representative-chars>:
14760 Fix typo in docstring.
14761
14762 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14763
14764 * nsmenu.m (pop_down_menu): New function.
14765 (ns_popup_dialog): Call it on unwind.
14766 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
14767 call timer_check() (Bug#2154).
14768 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
14769 handling_signal is set.
14770 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
14771
14772 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
14773
14774 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
14775
14776 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
14777
14778 * keyboard.c (poll_for_input_1, handle_async_input):
14779 Set handling_signal under HAVE_NS.
14780
14781 2009-02-04 Glenn Morris <rgm@gnu.org>
14782
14783 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
14784
14785 2009-02-04 Kenichi Handa <handa@m17n.org>
14786
14787 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
14788
14789 * charset.c (Fchar_charset): New optional arg restriction.
14790
14791 * coding.h (coding_system_charset_list): Extern it.
14792
14793 * coding.c (coding_system_charset_list): New function.
14794
14795 * composite.c: Include coding.h and termhooks.h.
14796 (composition_gstring_p): Fix for the terminal case.
14797 (composition_gstring_width): Likewise.
14798 (fill_gstring_body): Likewise.
14799 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
14800 the frame.
14801 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
14802 is within a composition.
14803 (Fcomposition_get_gstring): Fix the terminal case.
14804
14805 * term.c (encode_terminal_code): Fix handling of composition.
14806 (produce_composite_glyph): For static composition, get pixel_width
14807 from struct composition.
14808
14809 2009-02-02 Andreas Schwab <schwab@suse.de>
14810
14811 * unexelf.c (unexec): Handle unaligned bss offset.
14812
14813 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14814
14815 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
14816 XT,w32read_socket changes to ns_read_socket.
14817
14818 * keyboard.c (handle_interrupt): Don't call
14819 quit_throw_to_read_char() under NS.
14820
14821 * blockinput.h: Remove NS-specific code.
14822
14823 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
14824
14825 * dispnew.c (window_change_signal): Don't try to get the size of a
14826 suspended tty frame.
14827 * term.c (Fresume_tty): Resize if the size has changed while the
14828 tty was suspended.
14829
14830 * alloc.c (mark_stack): Properly conditionalize previous change.
14831
14832 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
14833
14834 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
14835 * w32term.c (w32_read_socket) [SYNC_INPUT]:
14836 Remove; this code is not used on Windows.
14837
14838 2009-01-30 Eli Zaretskii <eliz@gnu.org>
14839
14840 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
14841 EOLs that also has stray ^M characters.
14842
14843 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
14844
14845 * atimer.c (run_timers, alarm_signal_handler):
14846 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
14847 * w32inevt.c (w32_console_read_socket):
14848 * w32term.c (w32_read_socket):
14849 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
14850
14851 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
14852
14853 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
14854 Initialize it as a relative filename pattern.
14855 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
14856 (Fcall_process_region): Simplify temp file creation using
14857 temporary-file-directory.
14858
14859 2009-01-29 Eli Zaretskii <eliz@gnu.org>
14860
14861 * msdos.c: Rename pending_signals to msdos_pending_signals.
14862 (sig_suspender, sigprocmask): Adjust.
14863
14864 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
14865
14866 * keyboard.c (pending_signals): New var.
14867 (poll_for_input, input_available_signal, init_keyboard): Set it.
14868 (process_pending_signals): New function.
14869
14870 * lisp.h (QUIT): Check pending_signals instead of
14871 interrupt_input_pending. Use process_pending_signals.
14872
14873 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
14874
14875 * process.c (wait_reading_process_output): Use process_pending_signals.
14876
14877 * sysdep.c (emacs_write): Use process_pending_signals.
14878
14879 * xterm.c (XTread_socket): Update pending_signals.
14880
14881 * w32term.c (w32_read_socket): Update pending_signals.
14882
14883 * w32inevt.c (w32_console_read_socket): Update pending_signals.
14884
14885 2009-01-29 Kenichi Handa <handa@m17n.org>
14886
14887 * xftfont.c (xftfont_has_char): New function.
14888 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
14889
14890 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14891
14892 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
14893 under GNUstep.
14894 (ns_query_color): New declaration.
14895
14896 * nsterm.m (ns_confirm_quit): New variable.
14897 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
14898 (EmacsApp-applicationShouldTerminate:): Use it.
14899 (EmacsPrefsController): Let user set it.
14900 (ns_query_color): New function.
14901 (ns_defined_color): Use it.
14902 (ns_initialize): Drop.
14903 (ns_term_init): Add two lines from ns_initialize(), and set
14904 input_interrupt_mode to nil.
14905
14906 * image.c (svg_load_image): Don't right-shift background RGB when
14907 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
14908
14909 2009-01-28 Kenichi Handa <handa@m17n.org>
14910
14911 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
14912 (fontset_get_font_group): Remember that no font-group is specified
14913 for C.
14914
14915 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
14916
14917 * fns.c (concat): Check for string overflow (bug#1787).
14918
14919 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
14920 Quadruple undo limits (bug#1501).
14921
14922 2009-01-27 Kenichi Handa <handa@m17n.org>
14923
14924 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
14925 directly use GT_Get_Char_index.
14926
14927 * xftfont.c (struct xftfont_info): New member `index'.
14928
14929 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
14930 (Ffontset_font): Adjust for the change of fontset entry.
14931
14932 2009-01-26 Kenichi Handa <handa@m17n.org>
14933
14934 * fontset.c (fontset_find_font): Fix handling of non-cons return
14935 value of fontset_get_font_group.
14936 (fontset_font): Revert last change.
14937
14938 2009-01-26 Jason Rumney <jasonr@gnu.org>
14939
14940 * w32font.c (w32font_list_internal): Return quickly if registry is
14941 unknown. Simplify final return.
14942 (add_font_entity_to_list): Break complex logic down into more
14943 manageable chunks. Move unknown registry check to
14944 w32font_list_internal.
14945
14946 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
14947
14948 Changes to remove Feval calls from GUI under NS.
14949
14950 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
14951 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
14952 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
14953
14954 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
14955 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
14956 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
14957 instead of NON_ASCII_KEYSTROKE_EVENT.
14958 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14959 (EmacsApp-applicationShouldTerminate:): Query user.
14960 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14961 instead of Feval.
14962
14963 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14964
14965 * keyboard.c (kbd_buffer_get_event): Check for it.
14966 (keys_of_keyboard): Define lispy keys for
14967 ns-put/unput-working-text.
14968
14969 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14970 versions.
14971 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14972
14973 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
14974
14975 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
14976 setting current_buffer directly. (Bug#2044)
14977
14978 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
14979
14980 * fontset.c (fontset_font): If we know there is no font, don't do
14981 any work. (Bug#1952, bug#1990).
14982
14983 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
14984
14985 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14986
14987 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
14988 (ns_no_defaults): New declaration.
14989 (main): Use it.
14990
14991 * nsterm.h (ns_no_defaults): New declaration.
14992
14993 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
14994
14995 * nsterm.m (ns_no_defaults): New variable.
14996 (ns_initialize): Don't read defaults when ns_no_defaults.
14997 (EmacsView-readSelectionFromPasteboard:)
14998 (writeSelectionToPasteboard:types:): New stubbed-out methods for
14999 NSServicesRequests protocol. (Bug#1435)
15000 (ns_dumpglyphs_stretch): New function.
15001 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
15002 of 2008-11-15 to other terms. (Bug#615)
15003
15004 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15005
15006 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15007
15008 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15009 call for Sparc64.
15010
15011 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15012
15013 * nsfns.m:
15014 * nsgui.h:
15015 * nsmenu.m:
15016 * nsselect.m:
15017 * nsterm.h:
15018 * nsterm.m: Remove '23' comments that indicated code added during
15019 update from emacs-20 -> emacs-23.
15020
15021 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15022
15023 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
15024 ns_alternate_modifier. (Bug#1217)
15025
15026 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15027 Display all shortcuts, including those w/o super modifier.
15028
15029 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15030
15031 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
15032
15033 * fileio.c (Vwrite_region_post_annotation_function)
15034 (Vwrite_region_annotation_buffers): New vars.
15035 (build_annotations_unwind): Just reset
15036 Vwrite_region_annotation_buffers.
15037 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15038 Call write-region-post-annotation-function.
15039 (build_annotations): Add to Vwrite_region_annotation_buffers if
15040 buffer changes.
15041
15042 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15043
15044 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15045 Tiger.
15046 * nsfns.m (ns_do_applescript):
15047 Conditionalize typeUTF16ExternalRepresentation on Tiger.
15048
15049 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15050
15051 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15052
15053 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15054
15055 * nsmenu.m (NSMENUPROFILE): Change #if style.
15056
15057 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15058
15059 * nsterm.m (x_set_frame_alpha): Add prototype.
15060 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15061 handle Ctrl-tab. (Bug#1841)
15062 (ns_get_color): Use unsigned long long for scanned hex string value.
15063 (ns_term_shutdown): Abort on non SIGTERM signals.
15064 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
15065 (EmacsPrefsController-setPanelFromDefaultValues): New function.
15066 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
15067 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
15068 (ns_defined_color): Fix settings of the XColor variable fields:
15069 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
15070
15071 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
15072 DPI. (Bug#1316)
15073 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15074 values in onTiger section.
15075
15076 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
15077
15078 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15079 Check return value of font_spec_from_name.
15080 (Fx_list_fonts): Doc fix. (Bug#1951)
15081
15082 * font.c (font_spec_from_name): Return Qnil if font name could not
15083 be parsed.
15084 (font_parse_name): Treat a `?' character as part of an XLFD.
15085
15086 * fns.c (Fsubstring): Doc fix.
15087
15088 2009-01-19 Kenichi Handa <handa@m17n.org>
15089
15090 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
15091 (ftfont_list): Likewise.
15092
15093 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
15094
15095 * dbusbind.c (Fdbus_register_signal):
15096 * process.c (conv_sockaddr_to_lisp):
15097 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15098
15099 * callproc.c (Fgetenv_internal): Doc fix.
15100
15101 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
15102
15103 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15104 it is not even used.
15105
15106 2009-01-16 Glenn Morris <rgm@gnu.org>
15107
15108 * font.c (Ffont_variation_glyphs): Silence compiler.
15109
15110 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
15111
15112 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15113 Reported by David Robinow <drobinow@gmail.com>.
15114
15115 2009-01-15 Kenichi Handa <handa@m17n.org>
15116
15117 * coding.c (detect_coding_system): Fix handling of null_byte_found.
15118
15119 2009-01-14 Jason Rumney <jasonr@gnu.org>
15120
15121 * frame.c (x_set_font): Always store a font to the font parameter,
15122 never a fontset. (Bug#1562)
15123
15124 2009-01-14 Kenichi Handa <handa@m17n.org>
15125
15126 * coding.c (TWO_MORE_BYTES): New macro.
15127 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
15128
15129 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
15130
15131 * font.c (font_clear_prop): If clearing the family, clear the font
15132 width index too.
15133
15134 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
15135
15136 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
15137
15138 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15139 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15140 functions, use sizeof.
15141
15142 2009-01-12 Martin Rudalics <rudalics@gmx.at>
15143
15144 * keyboard.c (read_char): Fix case where last_nonmenu_event
15145 returned a bad value with submenus. (Bug#447)
15146
15147 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
15148
15149 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15150 family, clear the font width index too.
15151
15152 2009-01-11 Jason Rumney <jasonr@gnu.org>
15153
15154 * keyboard.c (cmd_error_internal): Exit when errors occur before
15155 frame creation and not in daemon mode. (Bug#1836)
15156
15157 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
15158
15159 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15160 of a display vector, backtrack.
15161 (try_window_reusing_current_matrix): Check glyph type before
15162 referencing charpos member.
15163
15164 2009-01-10 Eli Zaretskii <eliz@gnu.org>
15165
15166 Fix Bug #876:
15167
15168 * coding.c (inhibit_null_byte_detection): New variable.
15169 (detect_coding, detect_coding_system): Don't pay attention to null
15170 bytes if inhibit_null_byte_detection is non-zero.
15171 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
15172 <inhibit-iso-escape-detection>: Doc fix.
15173
15174 2009-01-09 Jason Rumney <jasonr@gnu.org>
15175
15176 * w32font.c (add_font_entity_to_list): Don't report unknown
15177 Windows charset as any unrecognized registry. (Bug#1548)
15178 Only report Unicode Plane 2 fonts as unicode-sip.
15179
15180 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
15181
15182 * xfaces.c (Fx_font_family_list): Delete function.
15183 Move compatibility version to faces.el.
15184
15185 * font.c (Ffont_family_list): Return a list of strings, not symbols.
15186
15187 2009-01-09 Martin Rudalics <rudalics@gmx.at>
15188
15189 * frame.c (x_set_frame_parameters): Remember requested value for
15190 fullscreen before it's reset by the parameter handler.
15191
15192 2009-01-09 Glenn Morris <rgm@gnu.org>
15193
15194 * keyboard.c (last_command_char): For clarity, rename to...
15195 (last_command_event): ... and update all users.
15196 (last_input_char): For clarity, rename to...
15197 (last_input_event): ... and update all users.
15198 (last-command-char, last-input-char): Move to subr.el as aliases.
15199 * cmds.c, commands.h: Update for last_command_char rename.
15200
15201 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
15202
15203 * font.c (font_open_for_lface): Handle unspecified height attribute.
15204
15205 2009-01-08 Jason Rumney <jasonr@gnu.org>
15206
15207 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15208 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15209 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15210 Don't declare.
15211 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
15212 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15213
15214 2009-01-07 Kenichi Handa <handa@m17n.org>
15215
15216 * fileio.c (Finsert_file_contents): In the case of replace,
15217 remember the coding system used for decoding in
15218 coding_system (Bug#1039).
15219
15220 * coding.c (decode_coding_utf_8): Check byte_after_cr before
15221 breaking the loop. (Bug#870)
15222 (decode_coding_utf_16, decode_coding_emacs_mule)
15223 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15224 (decode_coding_charset): Likewise.
15225
15226 2009-01-05 Martin Rudalics <rudalics@gmx.at>
15227
15228 * frame.c (x_set_frame_parameters): Make sure height (width) get
15229 applied when fullwidth (fullheight) is set. (Bug#1522)
15230
15231 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
15232
15233 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15234 (utc_base): Declare as ULONGLONG, not long double.
15235 (convert_time_raw): Delete.
15236 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15237 (initialize_utc_base): New function.
15238 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15239 (convert_from_time_t): Use initialize_utc_base; compute result with
15240 64-bit arithmetic.
15241 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15242
15243 2009-01-03 Eli Zaretskii <eliz@gnu.org>
15244
15245 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15246 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15247 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15248 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15249 [!subprocesses]: Define.
15250 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15251 (Flist_system_processes, Fsystem_process_attributes)
15252 [!subprocesses]: Call list_system_processes and
15253 system_process_attributes instead of returning Qnil.
15254
15255 * dosfns.c (system_process_attributes, list_system_processes):
15256 New functions.
15257
15258 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15259
15260 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15261 Don't use the default (no-op) implementation.
15262
15263 2009-01-03 Jason Rumney <jasonr@gnu.org>
15264
15265 * keyboard.c (parse_modifiers_uncached): Wheel events are
15266 clicks (bug#687).
15267
15268 * w32term.c (x_query_colors, x_query_color): New functions.
15269
15270 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15271 (svg_load_image): Cast returned pointers from dynamically loaded
15272 functions. Eliminate W32 specific code.
15273
15274 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15275
15276 * nsfns.m (x_set_foreground_color, x_set_background_color)
15277 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15278 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15279 x_ prefix instead of ns_. Update references.
15280 (syms_of_nsfns): Add a FIXME comment.
15281
15282 * nsterm.m (x_set_cursor_type): New prototype.
15283 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15284
15285 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15286 for Solaris instead of incorrectly providing Qutime and Qcutime.
15287
15288 2009-01-02 Eli Zaretskii <eliz@gnu.org>
15289
15290 * w32.c (process_times): Compute sum of utime and stime.
15291 (system_process_attributes): Add Qtime to the alist.
15292
15293 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15294 and add them to the alist.
15295
15296 * process.c (top level) <Qtime, Qctime>: New variables.
15297 (syms_of_process): staticpro them.
15298 (Fsystem_process_attributes): Add their documentation to the doc
15299 string.
15300
15301 * process.h: Declare Qtime and Qctime.
15302
15303 2009-01-02 Jason Rumney <jasonr@gnu.org>
15304
15305 * image.c (Qgobject): New symbol.
15306 (syms_of_image): Initialize it.
15307 (init_svg_functions): Load some functions from gobject library.
15308
15309 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15310
15311 * frame.c (make_terminal_frame): Remove redundant code and useless
15312 block.
15313
15314 2009-01-01 Andreas Schwab <schwab@suse.de>
15315
15316 * process.c (conv_sockaddr_to_lisp): Add workaround for
15317 getsockname bug on BSD.
15318
15319 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
15320
15321 * xfns.c (x_create_tip_frame): Set border width of the X window.
15322
15323 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
15324
15325 2009-01-01 Jason Rumney <jasonr@gnu.org>
15326
15327 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
15328 Don't block input, as per earlier xterm.c changes.
15329
15330 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15331
15332 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15333 (ns_appkit_version_int): New function.
15334 (x-server-version): Use ns_appkit_version_int and follow 21+
15335 convention of returning 3 integers.
15336
15337 2008-12-30 Kenichi Handa <handa@m17n.org>
15338
15339 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15340 (CHAR_SURROGATE_PAIR_P): New macro.
15341
15342 * font.h (struct font_driver): New member get_variation_glyphs.
15343
15344 * font.c (font_range): Don't require a font for a variation selector.
15345 (Ffont_variation_glyphs): New function.
15346 (syms_of_font): Defsubr it.
15347
15348 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15349 ftfont_variation_glyphs.
15350 (setup_otf_gstring): New function.
15351 (ftfont_drive_otf): Use it.
15352 (ftfont_shape_by_flt): Handle variation selector.
15353 (ftfont_variation_glyphs): New function.
15354
15355 2008-12-30 Martin Rudalics <rudalics@gmx.at>
15356
15357 * frame.c (Vemacs_iconified): Remove.
15358
15359 2008-12-30 Jason Rumney <jasonr@gnu.org>
15360
15361 * frame.c (store_frame_param, x_get_arg): Enable newer code on
15362 WINDOWSNT too, as related changes have already been synced. (Bug#117)
15363
15364 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
15365
15366 * indent.c (Fvertical_motion): Don't advance iterator if we have
15367 reseated to the desired position.
15368
15369 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15370 checking for pos match.
15371
15372 2008-12-30 Kenichi Handa <handa@m17n.org>
15373
15374 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15375 just get the low 8-bit of the code.
15376
15377 * font.c (font_intern_prop): Validate str as multibyte.
15378
15379 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15380
15381 * dispextern.h (struct face): Move lface and hash from the middle
15382 of bitfields.
15383
15384 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15385
15386 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15387
15388 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15389 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15390 instead of intervals.h.
15391
15392 2008-12-26 Andreas Schwab <schwab@suse.de>
15393
15394 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15395 cons.
15396
15397 2008-12-26 Martin Rudalics <rudalics@gmx.at>
15398
15399 * textprop.c (Qminibuffer_prompt): New variable.
15400 (syms_of_textprop): Initialize it.
15401 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15402 in minibuffer-prompt face. (Bug#1662)
15403
15404 2008-12-25 Jason Rumney <jasonr@gnu.org>
15405
15406 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15407
15408 2008-12-24 Jason Rumney <jasonr@gnu.org>
15409
15410 * ralloc.c (r_alloc_reset_variable): New function.
15411
15412 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
15413 record of what points where. (Bug#716)
15414
15415 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15416
15417 * minibuf.c (read_minibuf): Follow the non-interactive case when
15418 running as a daemon, before detaching.
15419
15420 2008-12-22 Andreas Schwab <schwab@suse.de>
15421
15422 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15423 * gtkutil.c (free_widget_value): Use xfree instead of free.
15424
15425 2008-12-22 Martin Rudalics <rudalics@gmx.at>
15426
15427 * frame.c (delete_frame): New function derived from
15428 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15429 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15430 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15431 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15432 * frame.h: Extern delete_frame.
15433 * window.c (window_loop):
15434 * terminal.c (delete_terminal):
15435 * xterm.c (x_connection_closed):
15436 * xfns.c (Fx_hide_tip):
15437 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
15438
15439 2008-12-21 Jason Rumney <jasonr@gnu.org>
15440
15441 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15442 when character maps to .notdef character.
15443
15444 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15445
15446 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15447
15448 2008-12-20 Jason Rumney <jasonr@gnu.org>
15449
15450 * frame.c (Fmake_terminal_frame): Raise an error when called from
15451 a graphical frame on Windows. (Bug#1325)
15452
15453 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15454
15455 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15456
15457 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
15458
15459 * minibuf.c (Fread_buffer): Doc fix.
15460
15461 2008-12-20 Jason Rumney <jasonr@gnu.org>
15462
15463 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
15464 server name in UNC paths. (Bug#719)
15465
15466 * coding.c (decode_coding): Clear chars_at_source flag when using
15467 charbuf. (Bug#1035)
15468
15469 2008-12-19 Daniel Engeler <engeler@gmail.com>
15470
15471 * sysdep.c (serial_configure): Fix typo.
15472
15473 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15474
15475 * sysdep.c: Include alloca.h.
15476 (system_process_attributes): Add implementation for Solaris.
15477
15478 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
15479
15480 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15481
15482 Reorganize implementation of Flist_system_processes and
15483 Fsystem_process_attributes. No functional changes.
15484 * process.c: Don't #include pwd.h, grp.h and limits.h.
15485 (Flist_system_processes): Just call list_system_processes.
15486 (Fsystem_process_attributes): Just call system_process_attributes.
15487 (procfs_list_system_processes, time_from_jiffies)
15488 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15489 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15490
15491 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15492 (list_system_processes): Rename from
15493 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15494 Provide a do nothing implementation.
15495 (system_process_attributes): Rename from
15496 procfs_list_system_processes.
15497 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15498 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
15499
15500 * w32.c (list_system_processes): Rename from
15501 w32_list_system_processes.
15502 (system_process_attributes): Rename from
15503 w32_system_process_attributes.
15504
15505 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15506
15507 * process.h (w32_list_system_processes)
15508 (w32_system_process_attributes): Remove.
15509 (list_system_processes, system_process_attributes):
15510 New prototypes.
15511
15512 2008-12-19 Kenichi Handa <handa@m17n.org>
15513
15514 * xfont.c (xfont_decode_coding_xlfd): New function.
15515 (xfont_encode_coding_xlfd): New function.
15516 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15517 (xfont_list): Decode and encode XLFD by iso-8859-1.
15518 (xfont_match): Likewise.
15519 (xfont_list_family): Likewise.
15520 (xfont_open): Likewise.
15521
15522 * ftfont.c (ftfont_open): Generate a multibyte string if given
15523 names are utf-8.
15524
15525 * xftfont.c (xftfont_open): Generate a multibyte string if given
15526 names are utf-8.
15527
15528 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15529
15530 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15531 changed.
15532 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15533 clicked on a detached tool bar button.
15534
15535 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15536
15537 * emacs.c (main): Print and error and exit when no data is read
15538 from the pipe.
15539
15540 2008-12-17 Jason Rumney <jasonr@gnu.org>
15541
15542 * w32font.c (w32font_has_char): Always return -1.
15543
15544 2008-12-16 Kenichi Handa <handa@m17n.org>
15545
15546 * font.c (font_open_entity): Fix previous change.
15547
15548 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15549
15550 * process.c: Include <limits.h>.
15551
15552 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
15553
15554 * font.c (font_update_drivers): Fix mistake in reconstructing the
15555 driver list.
15556
15557 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
15558
15559 * font.c (font_clear_cache): Fix format of font cache data.
15560
15561 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
15562
15563 * xftfont.c (xftfont_open): Free Xft font pattern if
15564 XftFontOpenPattern fails.
15565
15566 * xterm.c (x_free_frame_resources): Remove extraneous call to
15567 free_frame_faces.
15568
15569 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15570
15571 * xterm.c (x_delete_display): Move xim_close_dpy call to
15572 x_delete_terminal.
15573 (x_delete_terminal): Call xim_close_dpy.
15574
15575 2008-12-13 Jason Rumney <jasonr@gnu.org>
15576
15577 * w32font.c (intern_font_name): New function.
15578 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15579 (w32font_open_internal, Fx_select_font): Decode font name.
15580 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15581
15582 * w32font.h (intern_font_name): Declare new function.
15583
15584 * w32uniscribe.c (add_opentype_font_name_to_list):
15585 Use intern_font_name.
15586
15587 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15588
15589 * frame.c (Fdelete_frame): Call free_font_driver_list.
15590
15591 * font.c (free_font_driver_list): Implement missing function.
15592
15593 * w32term.c (w32_term_init): Don't initialize the image cache
15594 here; it will be done in init_frame_faces.
15595
15596 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
15597 (struct x_display_info): Remove unused member null_pixel.
15598 New member xim_callback_data.
15599
15600 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15601 (xim_initialize): Save pointer to callback function data.
15602 (xim_close_dpy): Free callback function data. Call XCloseIM,
15603 reverting 2008-11-04 change by David Smith.
15604 (x_term_init): Don't initialize the image cache here; it will be
15605 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15606 (x_delete_display): Free x_dnd_atoms member.
15607
15608 2008-12-13 Kenichi Handa <handa@m17n.org>
15609
15610 * font.c (font_rescale_ratio): Move from xfaces.c.
15611 Argument type changed. Handle a font-spec too.
15612 (font_score): Check Vface_font_rescale_alist.
15613 (font_open_entity): Likewise. (Bug#1547)
15614
15615 * xfaces.c (font_rescale_ratio): Move to font.c.
15616
15617 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15618
15619 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15620
15621 2008-12-12 Jason Rumney <jasonr@gnu.org>
15622
15623 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15624 Set Vwindow_system_version to the real w32 major version.
15625
15626 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15627
15628 * term.c (init_tty): Move setting the terminal name before the
15629 potential user: maybe_fatal.
15630
15631 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
15632
15633 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
15634 all callers changed. Call free_frame_faces to free the face cache.
15635
15636 2008-12-11 Jason Rumney <jasonr@gnu.org>
15637
15638 * w32font.c (fill_in_logfont): Don't assume symbol script means
15639 SYMBOL_CHARSET. (Bug#547)
15640
15641 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
15642 size for surrogates. (Bug#1096, bug#872)
15643
15644 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15645
15646 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15647
15648 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15649
15650 * process.c (Fsystem_process_attributes, syms_of_process):
15651 Fix typo in name of Ssystem_process_attributes.
15652 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15653
15654 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15655
15656 * syntax.c (Fmodify_syntax_entry): Doc fix.
15657
15658 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
15659
15660 * font.c (Ffont_spec): Move usage to end of docstring.
15661
15662 2008-12-10 Jason Rumney <jasonr@gnu.org>
15663
15664 * w32font.c (Qcham): New symbol.
15665 (font_supported_scripts): Add cham, and comments for other new
15666 scripts in bitfield from OpenType spec.
15667 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15668 contain characters beyond the bmp.
15669
15670 2008-12-10 Kenichi Handa <handa@m17n.org>
15671
15672 * ftfont.c (fc_charset_table): Add "unicode-sip".
15673 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
15674 Qunicode_sip.
15675
15676 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
15677
15678 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15679 (Fcoding_system_put): Use QCdefault_char.
15680 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15681
15682 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
15683
15684 * xftfont.c (syms_of_xftfont): Fix typo.
15685
15686 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
15687
15688 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15689
15690 * emacs.c (main): Close daemon_pipe on exec.
15691
15692 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
15693
15694 * termchar.h (struct tty): New members termcap_term_buffer and
15695 termcap_strings_buffer.
15696
15697 * term.c (encode_terminal_code): Free any previous memory blocks
15698 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
15699 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15700 All callers changed.
15701 (init_tty): Store termcap data and string buffers in new struct
15702 tty members termcap_term_buffer and termcap_strings_buffer.
15703 (delete_tty): Free them.
15704 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
15705
15706 2008-12-07 Seiji Zenitani <zenitani@mac.com>
15707
15708 * nsfns.m (ns_set_background_color): Remove code duplication.
15709 It was a substitute for face-transparency on OS X 10.3.
15710
15711 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
15712
15713 * coding.c (make_conversion_work_buffer): Disable buffer
15714 modification hooks in the work buffer.
15715
15716 2008-12-05 Eli Zaretskii <eliz@gnu.org>
15717
15718 * process.c (procfs_system_process_attributes): If `nread' has a
15719 negative value, assign zero to it.
15720
15721 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
15722
15723 * eval.c (Vdebug_on_error): Doc fix.
15724
15725 2008-12-05 Kenichi Handa <handa@m17n.org>
15726
15727 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15728 second character is a combining character.
15729
15730 2008-12-05 Eli Zaretskii <eliz@gnu.org>
15731
15732 * process.c (procfs_system_process_attributes): Don't use cmd,
15733 cmdsize, and q without initializing them first.
15734
15735 2008-12-04 Jason Rumney <jasonr@gnu.org>
15736
15737 * w32font.c (w32font_draw): Initialize orig_clip before getting
15738 it, and delete it when finished.
15739
15740 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15741
15742 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15743 case when running as a daemon before detaching.
15744
15745 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
15746
15747 * w32.c (init_environment): Don't unload library shell32.dll.
15748
15749 2008-12-03 Kenichi Handa <handa@m17n.org>
15750
15751 * font.c (font_at): Set `multibyte' at first.
15752
15753 * coding.c (decode_coding_charset): Check type of an element of
15754 vector VALIDS.
15755 (encode_coding_emacs_mule): Be sure to set `code'.
15756
15757 * fontset.c (face_for_char): Handle invalid charset property correctly.
15758 (font_for_char): Likewise.
15759
15760 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
15761
15762 * font.c (Fopen_font): Compute pixel size correctly.
15763 (font_update_lface): Handle fonts with corrupted size specs,
15764 i.e. non-int and non-float.
15765
15766 * ftfont.c (ftfont_match): Initialize entity variable.
15767 (ftfont_resolve_generic_family): Avoid using uninitialized var.
15768 (ftfont_list_family): Initialize list var earlier.
15769
15770 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
15771
15772 * xterm.c (x_draw_glyph_string): Fall back on
15773 underline_minimum_offset for underline position.
15774
15775 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
15776
15777 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
15778
15779 * character.c (c_string_width): Specify the type for LEN.
15780
15781 2008-12-03 Kenichi Handa <handa@m17n.org>
15782
15783 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
15784 (decode_coding_utf_8): Likewise.
15785 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
15786 (produce_chars): Initialize consumed_chars to 0.
15787
15788 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
15789
15790 * keyboard.c (make_lispy_position): Only use PT if the selected
15791 window is current.
15792
15793 2008-12-02 Andreas Schwab <schwab@suse.de>
15794
15795 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
15796
15797 * doprnt.c (doprnt1): Fix size of charbuf.
15798
15799 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
15800
15801 * keyboard.c (timer_check): Revert last change.
15802
15803 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
15804
15805 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
15806
15807 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
15808
15809 * makefile.w32-in: Update dependencies.
15810 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
15811
15812 2008-12-01 Andreas Schwab <schwab@suse.de>
15813
15814 * font.c (register_font_driver): Use xmalloc.
15815 (font_put_frame_data): Likewise.
15816
15817 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
15818
15819 * xfaces.c (realize_x_face): Make abort condition clearer.
15820
15821 * gtkutil.c (update_frame_tool_bar): Initialize variable.
15822
15823 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
15824
15825 * keyboard.c (timer_check): After a timer runs, ensure that the
15826 selected window's buffer is current.
15827
15828 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
15829
15830 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
15831 It was accidentally restored by the Unicode merge.
15832
15833 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
15834
15835 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
15836
15837 * w32proc.c: Include "coding.h".
15838 (Fw32_short_file_name): Encode filename passed to Windows API.
15839 (Fw32_long_file_name): Encode filename passed to Windows API and
15840 decode back the result. (Bug#1433)
15841
15842 2008-11-29 Kenichi Handa <handa@m17n.org>
15843
15844 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
15845 not before accessing it.
15846
15847 * charset.c (Fdefine_charset_internal): After calculating
15848 min_char, max_char, and fastmap, copy the charset structure again.
15849 (encode_char): Fix the previous change.
15850
15851 2008-11-28 Seiji Zenitani <zenitani@mac.com>
15852
15853 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
15854
15855 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
15856
15857 * nsterm.m (x_set_frame_alpha): New function.
15858
15859 2008-11-27 Eli Zaretskii <eliz@gnu.org>
15860
15861 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
15862
15863 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
15864
15865 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
15866 pointer to check_face_name.
15867
15868 2008-11-27 Kenichi Handa <handa@m17n.org>
15869
15870 * category.h (SET_CATEGORY_SET): Call set_category_set.
15871 (set_category_set): Extern it.
15872
15873 * category.c (hash_get_category_set): New function.
15874 (Fmodify_category_entry): Adjust for the change of
15875 char_table_ref_and_range. Call hash_get_category_set to get a
15876 category set to store in the table.
15877
15878 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
15879 Funify_charset.
15880
15881 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
15882 (DECODE_CHAR): Check if the decoder vector is ready.
15883 (ENCODE_CHAR): Check if the encoder char-table is ready.
15884 (maybe_unify_char): Extern it.
15885
15886 * charset.c (Vchar_unified_charset_table): Delete it.
15887 (inhibit_load_charset_map): New variable.
15888 (temp_charset_work): New variable.
15889 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
15890 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
15891 New macros.
15892 (load_charset_map): Meaning of control_flag changed.
15893 If inhibit_load_charset_map is nonzero, setup a table in
15894 temp_charset_work.
15895 (load_charset): New argument control_flag.
15896 (map_charset_for_dump): New function.
15897 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
15898 map_charset_for_dump.
15899 (Fdefine_charset_internal): If the charset method is MAP, load
15900 mapping tables by calling load_charset.
15901 (Funify_charset): Don't load a mapping table but directly set
15902 Vchar_unify_table.
15903 (maybe_unify_char): New function.
15904 (decode_char): Don't handle the deleted method MAP_DEFERRED.
15905 Handle the case of inhibit_load_charset_map being nonzero.
15906 (encode_char): Don't handle the deleted method MAP_DEFERRED.
15907 Handle the case of inhibit_load_charset_map being nonzero.
15908 (Fclear_charset_maps): Just free temp_charset_work.
15909 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
15910 variable.
15911
15912 * chartab.c (sub_char_table_ref_and_range): Adjust for the
15913 change of char_table_ref_and_range.
15914 (char_table_ref_and_range): Change the meaning of argument FROM
15915 and TO. Now the caller must provide initial values for *FROM
15916 and *TO.
15917
15918 * fontset.c (fontset_add): Adjust for the change of
15919 char_table_ref_and_range.
15920 (fontset_get_font_group): Likewise.
15921 (Ffontset_info): Likewise.
15922
15923 * keymap.c (describe_vector): Adjust for the change of
15924 char_table_ref_and_range. For char-table, put boundary between
15925 non-ASCII and 8-bit characters.
15926
15927 * print.c (print_object): For bool-vector, delete unnecessary
15928 check of ASCII_BYTE_P.
15929
15930 2008-11-26 Jason Rumney <jasonr@gnu.org>
15931
15932 * w32font.c (w32font_open_internal): Don't include external
15933 leading in font height. (Bug#879)
15934
15935 2008-11-26 Glenn Morris <rgm@gnu.org>
15936
15937 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
15938 redefinition with ifdef. (Bug#1383)
15939
15940 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15941
15942 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
15943
15944 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15945
15946 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
15947 New EmacsView methods.
15948 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
15949 Fixes bug #1048,1357,1414.
15950
15951 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15952
15953 Fix bug #1362.
15954 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
15955 is not an indexed color.
15956 * nsterm.m (free_indexed_color): Add argument checking.
15957 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
15958
15959 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
15960
15961 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15962 Document confirm-after-completion value for
15963 minibuffer-completion-confirm.
15964
15965 2008-11-24 Jason Rumney <jasonr@gnu.org>
15966
15967 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15968 warning.
15969
15970 2008-11-23 Jason Rumney <jasonr@gnu.org>
15971
15972 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15973 restored before returning.
15974
15975 * w32font.c (check_face_name): New function.
15976 (add_font_entity_to_list): Use it to filter out common substituted
15977 fonts. (Bug#642)
15978
15979 2008-11-22 Martin Rudalics <rudalics@gmx.at>
15980
15981 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15982 confirm-nonexistent-file-or-buffer in doc-string.
15983
15984 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15985
15986 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15987 Fix copy/paste typo. Add checks.
15988
15989 2008-11-21 Kenichi Handa <handa@m17n.org>
15990
15991 * coding.c (detect_coding_iso_2022): Reject invalid composition
15992 sequence.
15993 (DECODE_COMPOSITION_START): If the current source is the last
15994 block, and the current composition doesn't end, regard this
15995 sequence as invalid.
15996 (decode_coding_iso_2022): Handle invalid composition sequence.
15997
15998 2008-11-20 Martin Rudalics <rudalics@gmx.at>
15999
16000 * window.c (coordinates_in_window): Don't return
16001 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16002 line when the window is not the rightmost one. (Bug#1372)
16003
16004 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16005
16006 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16007
16008 2008-11-15 Eli Zaretskii <eliz@gnu.org>
16009
16010 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16011 and bright_bg if noninteractive is non-zero.
16012
16013 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16014
16015 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16016 x_draw_glyph_string_background.
16017
16018 * w32term.c (x_draw_glyph_string): Likewise.
16019
16020 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
16021
16022 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16023 the next glyph string once past the overhang width.
16024
16025 * nsterm.m (ns_draw_glyph_string): Likewise.
16026
16027 * w32term.c (x_draw_glyph_string): Likewise.
16028
16029 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16030
16031 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16032 double file close.
16033
16034 2008-11-14 Martin Rudalics <rudalics@gmx.at>
16035
16036 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16037 dedicated status of window before attempting to display another
16038 buffer in it.
16039
16040 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
16041
16042 * msdos.c (Fmsdos_long_file_names):
16043 (syms_of_msdos) <dos-unsupported-char-glyph>:
16044 * dosfns.c (Fint86): Fix typos in docstrings.
16045
16046 2008-11-14 Eli Zaretskii <eliz@gnu.org>
16047
16048 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16049
16050 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16051
16052 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16053
16054 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16055
16056 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16057
16058 * frame.h: Negative alpha means "don't touch".
16059
16060 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16061
16062 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16063
16064 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16065
16066 * hftctl.c:
16067 * chpdef.h:
16068 * acldef.h: Remove files used only for systems no longer supported.
16069
16070 * Makefile.in: Fix .o alphabetical ordering.
16071 (hftctl.o): Remove dependency, file removed.
16072 (keymap.o, print.o): Depend on charset.h.
16073
16074 2008-11-10 Kenichi Handa <handa@m17n.org>
16075
16076 * character.c (Fget_byte): Fix and make it faster for unibyte target.
16077
16078 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
16079
16080 * dired.c (file_name_completion): If completion_ignore_case is
16081 enabled, ignore case when checking completion-regexp-list.
16082
16083 2008-11-08 Eli Zaretskii <eliz@gnu.org>
16084
16085 * vm-limit.c (get_lim_data): Fix last change.
16086
16087 2008-11-08 Kenichi Handa <handa@m17n.org>
16088
16089 * character.c (Fget_byte): New function.
16090 (syms_of_character): Defsubr Fget_byte.
16091
16092 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
16093
16094 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16095 cursor position is valid after scrolling.
16096
16097 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
16098
16099 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16100
16101 2008-11-06 Glenn Morris <rgm@gnu.org>
16102
16103 * xterm.c (handle_one_xevent): Don't let popup menus cause
16104 mouse-autoselect-window related window switching. (Bug#1261)
16105
16106 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16107
16108 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16109
16110 2008-11-04 Andreas Schwab <schwab@suse.de>
16111
16112 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16113
16114 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
16115
16116 * xfns.c (Fx_wm_set_size_hint): New function.
16117
16118 2008-11-03 Martin Rudalics <rudalics@gmx.at>
16119
16120 * textprop.c (Fprevious_single_char_property_change): Return 0
16121 when there's no change in a string. (Bug#1301)
16122
16123 2008-11-02 Martin Rudalics <rudalics@gmx.at>
16124
16125 * frame.c (do_switch_frame): New argument NORECORD passed to
16126 Fselect_window.
16127 (Fselect_frame): New argument NORECORD passed to
16128 do_switch_frame.
16129 (Fset_frame_selected_window): New argument NORECORD passed to
16130 Fselect_frame.
16131 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16132 in call of do_switch_frame.
16133 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16134 Handle NORECORD argument in call of Fselect_frame.
16135 * lisp.h (do_switch_frame, Fselect_frame)
16136 (Fset_frame_selected_window): Adjust declarations.
16137 * window.c (select_frame_norecord): New function.
16138 (run_window_configuration_change_hook): Use it and call
16139 Fselect_frame with NORECORD set.
16140 (Fselect_window): Pass NORECORD to Fselect_frame.
16141 (Fset_window_configuration): Handle NORECORD argument in call of
16142 do_switch_frame.
16143 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16144 Fset_frame_selected_window.
16145 * keyboard.c (command_loop_1): Handle NORECORD in call of
16146 Fselect_frame (currently ifdefd).
16147
16148 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16149
16150 * emacs.c (USAGE2): Untabify.
16151
16152 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16153
16154 * composite.c (fill_gstring_header): Fix copy/paste typo.
16155
16156 2008-10-31 Martin Rudalics <rudalics@gmx.at>
16157
16158 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16159 (Fother_window): Rename argument and rewrite doc-string.
16160 (select_window_norecord): Fix return value. (Bug#1276)
16161
16162 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
16163
16164 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16165 new frames overriding foreground for tooltips. Based on similar patch
16166 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16167
16168 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
16169
16170 * emacs.c (Fdaemon_initialized): Initialize nfd.
16171
16172 2008-10-29 Martin Rudalics <rudalics@gmx.at>
16173
16174 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16175 (Fwindow_text_height): Clarify doc-strings.
16176 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16177 doc-string of window-scroll-functions.
16178
16179 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16180
16181 * category.c (syms_of_category): Fix typo in docstring.
16182
16183 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
16184
16185 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16186 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16187 Fix typos in docstrings.
16188
16189 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16190
16191 * emacs.c (daemon_pipe): Make non-static.
16192 (IS_DAEMON): Move definition ...
16193 * lisp.h (IS_DAEMON): ... here.
16194 (daemon_pipe): Declare.
16195 (is_daemon): Remove.
16196 * dispnew.c (init_display): Use IS_DAEMON.
16197
16198 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16199
16200 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16201 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16202
16203 * emacs.c (is_daemon): Remove.
16204 (main): Don't set is_daemon.
16205 (IS_DAEMON): New macro.
16206 (Fdaemonp, Fdaemon_initialized): Use it.
16207 (Fdaemon_initialized): Write a char into the pipe to make sure the
16208 parent exits.
16209 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16210
16211 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
16212
16213 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16214 over-sized glyph, draw it with the default glyph width.
16215
16216 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16217 glyph, draw it with the default glyph width.
16218
16219 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16220 glyph, draw it with the default glyph width.
16221
16222 * xdisp.c (try_scrolling): When computing the distance from the
16223 scroll margin to PT, try moving some distance past the window
16224 bottom before giving up.
16225
16226 2008-10-27 Martin Rudalics <rudalics@gmx.at>
16227
16228 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16229 (Fset_window_buffer): Explain in doc-string that a window can be
16230 "strongly" dedicated to its buffer.
16231
16232 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16233
16234 * emacs.c (daemon_name): New variable.
16235 (main): Deal with --daemon=SERVER_NAME.
16236 (Fdaemonp): Return a name if one was passed to --daemon.
16237
16238 2008-10-26 Romain Francoise <romain@orebokech.com>
16239
16240 * emacs.c (daemon_pipe): New variable.
16241 (main): Create a pipe before forking, make the parent exit only after
16242 the child has closed its end of the pipe. Move closing the
16243 descriptors ...
16244 (Fdaemon_initialized): ... here. New function.
16245
16246 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16247
16248 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16249 the previous unoptimized table.
16250
16251 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16252 the distinction between non-nil and non-t value of `dedicated'.
16253
16254 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
16255
16256 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16257 read_char_minibuf_menu_text is large enough to hold the menu string.
16258
16259 2008-10-25 Martin Rudalics <rudalics@gmx.at>
16260
16261 * window.c (Fget_buffer_window, Fdelete_windows_on)
16262 (Freplace_buffer_in_windows): Make buffer argument optional and
16263 rename to buffer_or_name.
16264
16265 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
16266
16267 * xdisp.c (handle_single_display_spec, handle_display_prop):
16268 Undo 2005-05-16 change.
16269 (handle_stop): Pop iterator if it's loaded with an empty string.
16270 (get_overlay_strings_1): Don't save iterator if it's loaded with
16271 an empty string (bug#1201).
16272
16273 2008-10-24 Kenichi Handa <handa@m17n.org>
16274
16275 * ftfont.c (ftfont_otf_features): Fix previous change.
16276 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16277 calling ftfont_otf_features.
16278
16279 2008-10-24 Kenichi Handa <handa@m17n.org>
16280
16281 * font.c (font_match_p): Fix for the case that a vector of
16282 characters is in script-representative-chars.
16283
16284 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
16285
16286 * dbusbind.c (xd_in_read_queued_messages): New variable.
16287 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
16288 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16289 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16290 macro. (Bug#1186)
16291
16292 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
16293
16294 * s/sol2-10.h: New file.
16295
16296 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16297
16298 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16299 poor beast has survived 9+ years and the jump from xterm.c!).
16300
16301 2008-10-23 Martin Rudalics <rudalics@gmx.at>
16302
16303 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16304 Reword doc-string.
16305 (Fbury_buffer): In doc-string say what happens to the buffer's window.
16306
16307 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16308
16309 * character.c (syms_of_character) <script-representative-chars>:
16310 <unicode-category-table>: Doc fixes.
16311
16312 2008-10-23 Noah Friedman <friedman@splode.com>
16313
16314 * coding.c (make_conversion_work_buffer): Check that
16315 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16316 Fget_buffer_create.
16317
16318 2008-10-23 Kenichi Handa <handa@m17n.org>
16319
16320 * font.c (font_add_log): Check the values of extra properties.
16321
16322 2008-10-22 Martin Rudalics <rudalics@gmx.at>
16323
16324 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16325 Reword doc-string.
16326 (Fset_window_parameter): Use NILP.
16327 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
16328 (Frecenter): Use "selected" instead of "current" window in doc-strings.
16329
16330 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16331
16332 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16333
16334 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16335
16336 * nsfns.m (ns_appkit_version): New function.
16337 (x-server-version): Use it.
16338 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16339 (x-server-vendor): Don't check_ns().
16340
16341 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16342
16343 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16344
16345 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16346 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16347
16348 2008-10-22 Kenichi Handa <handa@m17n.org>
16349
16350 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16351 scripts.
16352
16353 * category.c (word_boundary_p): Check scripts instead of charset.
16354 Handle nil value in word-separating-categories and
16355 word-combining-categories.
16356 (syms_of_category): Fix docstrings of word-separating-categories
16357 and word-combining-categories.
16358
16359 2008-10-21 Eli Zaretskii <eliz@gnu.org>
16360
16361 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16362 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16363
16364 2008-10-21 Martin Rudalics <rudalics@gmx.at>
16365
16366 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16367 Rename arg "buffer" to "buffer_or_name".
16368 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16369 it optional.
16370 (no_switch_window): Remove since the return value is not used.
16371 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
16372 Consider window as dedicated when Fwindow_dedicated_p returns a
16373 non-nil value.
16374 * lisp.h: Remove prototype for no_switch_window.
16375
16376 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16377
16378 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
16379 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
16380
16381 2008-10-21 Kenichi Handa <handa@m17n.org>
16382
16383 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16384 check Vlatin_extra_code_table.
16385
16386 2008-10-20 Eli Zaretskii <eliz@gnu.org>
16387
16388 * fileio.c (Fset_file_modes): Doc fix.
16389
16390 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
16391
16392 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16393 in arrays.
16394
16395 2008-10-19 Martin Rudalics <rudalics@gmx.at>
16396
16397 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16398 Mention kill-buffer in doc-string.
16399 (Fset_window_buffer): Reinsert tem check removed in last commit.
16400 (Fenlarge_window, Fshrink_window): Have argument names and
16401 doc-string follow Elisp manual more closely.
16402
16403 2008-10-18 Eli Zaretskii <eliz@gnu.org>
16404
16405 * fileio.c (Fset_file_modes): Doc fix.
16406
16407 2008-10-18 Martin Rudalics <rudalics@gmx.at>
16408
16409 * window.c (Fwindow_width, Fset_window_start)
16410 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
16411 (Fdelete_windows_on, Freplace_buffer_in_windows):
16412 Make doc-strings follow code and Elisp manual more closely.
16413 (Fwindow_dedicated_p): Make window argument optional.
16414 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16415 (Fset_window_buffer): Respect any non-nil dedicated value for
16416 window. Rename "buffer" argument to "buffer_or_name".
16417
16418 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
16419
16420 * m/sh3.h: New file, machine description for SuperH.
16421
16422 2008-10-17 Martin Rudalics <rudalics@gmx.at>
16423
16424 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16425
16426 2008-10-17 Kenichi Handa <handa@m17n.org>
16427
16428 * ftfont.c (ftfont_otf_features): Fix indexing
16429 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16430
16431 2008-10-16 Magnus Henoch <mange@freemail.hu>
16432
16433 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16434 (Fdbus_call_method_asynchronously): Ditto.
16435 This change makes C-h f display the argument list.
16436
16437 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
16438
16439 * fileio.c (Fexpand_file_name): Doc fix.
16440
16441 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16442 of :foreground and :background equivalent to unspecified (20.x
16443 compatibility).
16444
16445 2008-10-15 Eli Zaretskii <eliz@gnu.org>
16446
16447 * buffer.c (syms_of_buffer): Doc fix.
16448
16449 2008-10-14 Kenichi Handa <handa@m17n.org>
16450
16451 * font.c (font_clear_prop): When clearing font width, clear the
16452 average width field too.
16453
16454 2008-10-12 Andreas Schwab <schwab@suse.de>
16455
16456 * ftfont.c (ftfont_shape_by_flt): Make static.
16457 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16458
16459 * font.c: Don't include <m17n-flt.h>.
16460
16461 2008-10-10 Eli Zaretskii <eliz@gnu.org>
16462
16463 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16464
16465 2008-10-09 Eli Zaretskii <eliz@gnu.org>
16466
16467 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16468 away code.
16469
16470 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
16471
16472 * dispnew.c (update_text_area): Avoid looping due to large glyph
16473 overhangs (bug#1070).
16474
16475 2008-10-09 Kenichi Handa <handa@m17n.org>
16476
16477 * fontset.c (face_for_char): If face->fontset is negative, just
16478 return ascii_face.
16479
16480 * font.c (font_delete_unmatched): Fix previous change.
16481 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
16482
16483 2008-10-09 Martin Rudalics <rudalics@gmx.at>
16484
16485 * frame.c (Fraise_frame): On text-only terminals select frame in
16486 order to make it visible. (Bug#1061)
16487
16488 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
16489
16490 * fontset.c (fontset_find_font): Check frame validity.
16491
16492 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
16493
16494 * gtkutil.c (xg_display_open): Reset default display if none exists.
16495 (xg_display_close): Allow Emacs to close all displays (bug#985).
16496
16497 2008-10-06 Andreas Schwab <schwab@suse.de>
16498
16499 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
16500
16501 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
16502
16503 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
16504
16505 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
16506
16507 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16508 during initialization.
16509
16510 2008-10-04 Eli Zaretskii <eliz@gnu.org>
16511
16512 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16513 whole thing on MSDOS frames as well as on a TTY.
16514
16515 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16516 well as for TTY.
16517 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16518 well as on a TTY.
16519
16520 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16521 as well as for TTY.
16522
16523 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16524
16525 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16526 MSDOS frames as well.
16527
16528 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16529
16530 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16531 correct arguments.
16532 * menu.c (find_and_return_menu_selection): Add cast.
16533
16534 2008-10-03 Glenn Morris <rgm@gnu.org>
16535
16536 * emacs.c (USAGE1): Add --daemon.
16537
16538 2008-10-02 Eli Zaretskii <eliz@gnu.org>
16539
16540 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16541 100, so it's in percents as advertised.
16542
16543 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16544
16545 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16546 (ns_output.current_cursor, ns_output.desired_cursor)
16547 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16548 (FRAME_NEW_CURSOR_COLOR): Remove.
16549
16550 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
16551 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
16552 enumeration (HOLLOW_BOX_CURSOR, etc.).
16553
16554 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16555 (draw_window_cursor): Simplify code.
16556 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16557 Don't change cursor type. In latter, call rehighlight instead of doing
16558 updates manually.
16559 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16560 Use core Emacs cursor types.
16561
16562 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
16563
16564 2008-10-02 Martin Rudalics <rudalics@gmx.at>
16565
16566 * process.c (Faccept_process_output): Fix doc-string.
16567
16568 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16569
16570 * gmalloc.c (__sbrk): Also define for uClibc.
16571
16572 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16573 for uClibc.
16574
16575 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16576
16577 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16578 styles.
16579 (nsfont_open): Reenable the cache.
16580
16581 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16582
16583 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16584 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16585
16586 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16587
16588 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16589 a suspended terminal.
16590
16591 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
16592
16593 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16594
16595 2008-09-30 Eli Zaretskii <eliz@gnu.org>
16596
16597 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16598
16599 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
16600
16601 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16602 in a continued line coincides with a line beginning.
16603
16604 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16605
16606 * nsfont.m (nsfont_trait_distance): Fix bug.
16607 (nsfont_list): Return a list rather than a vector (syncs with Handa
16608 changes of 2008-05-14).
16609 (nsfont_open): Improve logging.
16610
16611 2008-09-29 Andreas Schwab <schwab@suse.de>
16612
16613 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16614
16615 2008-09-28 Martin Rudalics <rudalics@gmx.at>
16616
16617 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16618 name as char-resolve-modifiers.
16619 Reported by: Markus Triska <markus.triska@gmx.at>
16620
16621 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16622
16623 * dispnew.c (init_display): Return earlier when running as a daemon.
16624
16625 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16626
16627 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16628
16629 2008-09-27 Eli Zaretskii <eliz@gnu.org>
16630
16631 * composite.c (Fcomposition_get_gstring)
16632 (Fcompose_region_internal, Fcompose_string_internal)
16633 (Ffind_composition_internal): Doc fix.
16634 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16635 (syms_of_composite) <auto-composition-function>: Doc fix.
16636 (syms_of_composite) <composition-function-table>: Doc fix.
16637
16638 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
16639
16640 * search.c (wordify): New argument for lax word-ends.
16641 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16642
16643 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16644
16645 * lisp.h (is_daemon): Declare.
16646 * dispnew.c (init_display): Do not try to initialize the terminal
16647 when running as a daemon.
16648
16649 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
16650
16651 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16652 x_display_pixel_height.
16653
16654 2008-09-22 Martin Rudalics <rudalics@gmx.at>
16655
16656 * undo.c (record_point): Don't call Fundo_boundary for first
16657 change. (Bug#731)
16658
16659 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
16660
16661 * emacs.c (Fdaemonp): Doc fix.
16662
16663 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16664
16665 * emacs.c (main): Place #ifdef in the proper place.
16666
16667 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16668
16669 * emacs.c (standard_args): Add --daemon.
16670 (main): Disconnect from the terminal when --daemon is passed.
16671 (is_daemon): New variable.
16672 (Fdaemonp): New function.
16673 (syms_of_emacs): Defsubr it.
16674
16675 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
16676
16677 * xdisp.c (get_next_display_element): Handle string display
16678 correctly when checking for the end of a box run.
16679
16680 2008-09-20 Glenn Morris <rgm@gnu.org>
16681
16682 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16683 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16684 (Frename_file): Avoid copying to trash if a rename involves
16685 a delete. (Bug#964).
16686
16687 2008-09-20 Eli Zaretskii <eliz@gnu.org>
16688
16689 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16690 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16691 frames as well as termcap frames.
16692 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16693 get_named_tty.
16694
16695 2008-09-19 Eli Zaretskii <eliz@gnu.org>
16696
16697 * process.c (procfs_system_process_attributes): Fix cmdline in
16698 case /proc/PID/cmdline is empty.
16699
16700 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16701 x_display_pixel_height.
16702
16703 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
16704
16705 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16706
16707 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16708 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16709
16710 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16711
16712 * dispextern.h (struct it): Move line_wrap away from the middle of
16713 bitfields. Move voffset in struct iterator_stack_entry after the
16714 bitfields. Move tab_width near after another short.
16715
16716 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16717
16718 * frame.h (struct frame): Move alpha from the middle of bitfields.
16719
16720 * window.h (struct window): Move frozen_window_start_p after the
16721 rest of the bitfields to reduce padding.
16722
16723 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
16724
16725 * xterm.h (x_display_info): Remove `height' and `width' members.
16726
16727 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16728
16729 * w32term.h (w32_display_info): Remove `height', `width',
16730 `height_in', and `width_in' members.
16731
16732 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16733 New functions.
16734 (x_calc_absolute_position): Use them.
16735 (x_term_init): Omit removed `height' and `width' members.
16736
16737 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16738 New functions.
16739 (w32_read_socket, x_calc_absolute_position): Use them.
16740 (w32_initialize_display_info, w32_term_init): Omit removed members
16741 of w32_display_info.
16742
16743 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16744 New functions.
16745 (ns_initialize_display_info): Omit removed members of ns_display_info.
16746
16747 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16748 New functions.
16749 (x_calc_absolute_position): Use them.
16750 (x_term_init): Omit removed `height' and `width' members.
16751
16752 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16753 (compute_tip_xy):
16754 * frame.c (x_fullscreen_adjust):
16755 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16756 x_display_pixel_width.
16757
16758 2008-09-18 Kenichi Handa <handa@m17n.org>
16759
16760 * composite.c (fill_gstring_header): Don't check FROM and TO here.
16761 (composition_compute_stop_pos): Fix handling of static composition.
16762 (Fcomposition_get_gstring): Check FROM and TO at first.
16763
16764 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
16765
16766 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
16767 mixup (YAILOM).
16768
16769 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
16770
16771 * indent.c (Fvertical_motion): Use position reported by iterator
16772 instead of PT for determining screen motion (bug#943).
16773
16774 2008-09-17 Romain Francoise <romain@orebokech.com>
16775
16776 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
16777
16778 2008-09-17 Kenichi Handa <handa@m17n.org>
16779
16780 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
16781
16782 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
16783 if necessary.
16784
16785 2008-09-16 Kenichi Handa <handa@m17n.org>
16786
16787 * coding.c (make_conversion_work_buffer): Avoid calling
16788 Fget_buffer_create if it is not necessary.
16789
16790 2008-09-15 Martin Rudalics <rudalics@gmx.at>
16791
16792 * window.c (Fselect_window): Don't update window_select_count and
16793 use_time when norecord is not nil.
16794
16795 2008-09-14 Kenichi Handa <handa@m17n.org>
16796
16797 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
16798 specpdl_ptr.
16799
16800 2008-09-12 Kenichi Handa <handa@m17n.org>
16801
16802 * indent.c (scan_for_column): Don't handle automatic composition
16803 if the current buffer is not associated with a window.
16804
16805 * composite.c (composition_reseat_it): If the current buffer is
16806 not associated with a window, ignore the automatic composition.
16807 (find_automatic_composition): Likewise.
16808
16809 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16810
16811 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
16812 (Fgpm_mouse_stop): Use it.
16813 * termhooks.h (close_gpm): Declare.
16814 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
16815 connection if Gpm_GetEvent fails.
16816
16817 * window.c (set_window_buffer): Always preserve current-buffer.
16818
16819 2008-09-12 Glenn Morris <rgm@gnu.org>
16820
16821 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
16822
16823 2008-09-11 Glenn Morris <rgm@gnu.org>
16824
16825 * charset.c (charset-map-path): Doc fix.
16826
16827 2008-09-10 Kenichi Handa <handa@m17n.org>
16828
16829 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
16830
16831 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
16832 compose a grapheme cluster with the preceding base glyph.
16833
16834 * composite.c (composition_compute_stop_pos): Fix previous change.
16835 Reset cmp_it->id to -1 at first.
16836
16837 2008-09-10 Glenn Morris <rgm@gnu.org>
16838
16839 * Makefile.in (character.o, chartab.o): Fix config.h typo.
16840
16841 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
16842
16843 * keyboard.c (read_key_sequence): Reapply translation maps when
16844 switching keyboards.
16845
16846 2008-09-09 Kenichi Handa <handa@m17n.org>
16847
16848 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
16849 characters.
16850
16851 * composite.c (FORWARD_CHAR): Fix calculation
16852 of (POSITION).pos_byte.
16853 (composition_compute_stop_pos): Limit the search of composition to
16854 at most 500 characters ahead. If we reach the limit or find a
16855 newline, set cmp_it->ch to -2 and return 0.
16856 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
16857
16858 2008-09-08 Kenichi Handa <handa@m17n.org>
16859
16860 * indent.c (Fvertical_motion): Be sure to set
16861 it_overshoot_expected if it.cmp_it.id is non-negative.
16862
16863 2008-09-07 Andreas Schwab <schwab@suse.de>
16864
16865 * callproc.c (Fcall_process): Don't hold references to string data
16866 across garbage collection. Move initialisation of new_argv down
16867 to avoid compiler bug.
16868
16869 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16870
16871 * process.c (Fsystem_process_attributes): Doc fix.
16872
16873 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
16874
16875 * callproc.c (Fcall_process): Canonicalize current directory name.
16876
16877 * xdisp.c (move_it_to): When moving by vpos, ensure that the
16878 iterator advances to the next line if the current line ends in a
16879 continued tab.
16880
16881 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
16882
16883 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
16884 member to point to cmp_from.
16885
16886 * xdisp.c: Doc fix for references to gidx data member.
16887
16888 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16889
16890 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
16891
16892 2008-09-07 Kenichi Handa <handa@m17n.org>
16893
16894 * composite.c (FORWARD_CHAR): Check STOP after
16895 incrementing (POSITION).pos.
16896
16897 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16898
16899 * process.c (Fsystem_process_attributes): Doc fix.
16900
16901 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
16902
16903 * keyboard.c (Ftop_level): Doc fix.
16904
16905 2008-09-06 Eli Zaretskii <eliz@gnu.org>
16906
16907 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
16908 minibuffer, don't let lower part of menu invade the echo area.
16909
16910 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
16911 "char *q" to access menu text and advance through it. Revert the
16912 change that displayed ">" instead of ASCII character 0x10.
16913
16914 2008-09-05 Eli Zaretskii <eliz@gnu.org>
16915
16916 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
16917 toggle boxes and radio buttons on MS-DOS as well.
16918
16919 2008-09-05 Kenichi Handa <handa@m17n.org>
16920
16921 * composite.c (autocmp_chars): Check lookback count.
16922 (composition_compute_stop_pos): Set cmp_it->lookback.
16923 (composition_reseat_it): Check lookback count.
16924 (struct position_record): New struct.
16925 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
16926 (find_automatic_composition): New function.
16927 (composition_adjust_point): Use find_automatic_composition.
16928
16929 * dispextern.h (struct composition_it): New member lookback.
16930
16931 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
16932
16933 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
16934 if moving by a single line.
16935
16936 2008-09-02 Andreas Schwab <schwab@suse.de>
16937
16938 * xterm.c (x_delete_display): Fix merge error.
16939
16940 * fileio.c (Fexpand_file_name): Remove unused variables.
16941
16942 2008-09-02 Eli Zaretskii <eliz@gnu.org>
16943
16944 * fileio.c (Fexpand_file_name): Copy argument `name' into local
16945 storage on all platforms, not just on DOS_NT.
16946
16947 2008-09-02 Jason Rumney <jasonr@gnu.org>
16948
16949 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
16950 Ensure mouse is not grabbed after menu is finished.
16951
16952 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
16953
16954 * xfaces.c (Finternal_set_alternative_font_family_alist)
16955 (Finternal_set_alternative_font_registry_alist): Properly copy
16956 entire alist structure.
16957
16958 2008-09-01 Kenichi Handa <handa@m17n.org>
16959
16960 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
16961 representative chars of the script is a vector.
16962 (ftfont_list): Handle the case where the representative chars of
16963 the script is a vector.
16964
16965 * character.c (syms_of_character): Docstring of
16966 script-representative-chars fixed.
16967
16968 2008-08-31 Eli Zaretskii <eliz@gnu.org>
16969
16970 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16971 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16972 the menu. Allocate larger buffer for `text', to account for
16973 possible ^C characters.
16974
16975 2008-08-31 Martin Rudalics <rudalics@gmx.at>
16976
16977 * xdisp.c (prepare_menu_bars): Don't call
16978 Vwindow_size_change_functions with arg Qt.
16979
16980 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16981
16982 * font.h (font_range):
16983 * fileio.c (report_file_error):
16984 * composite.c (composition_update_it): Yet another int/Lisp_Object
16985 mixup (YAILOM).
16986
16987 2008-08-30 Glenn Morris <rgm@gnu.org>
16988
16989 * data.c (Fmake_variable_frame_local): Doc fix.
16990
16991 * frame.c (Fmodify_frame_parameters): Doc fix.
16992
16993 2008-08-30 Eli Zaretskii <eliz@gnu.org>
16994
16995 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
16996 needed by GetTokenInformation.
16997 (w32_system_process_attributes): Check return values of all system
16998 APIs.
16999
17000 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17001 only when the state changes.
17002 (IT_update_begin, IT_update_end): Add termscript trace.
17003
17004 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17005 clipboard is unavailable. Set dst to NULL if it doesn't point to
17006 malloc'ed data.
17007 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17008 passing random values to xfree.
17009
17010 * dispnew.c (init_display): Set `tty's association in frame's
17011 parameters alist to the name of the terminal device, if that is known.
17012
17013 2008-08-29 Jason Rumney <jasonr@gnu.org>
17014
17015 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17016
17017 2008-08-29 Eli Zaretskii <eliz@gnu.org>
17018
17019 * composite.c (fill_gstring_body): Avoid compiler warnings.
17020
17021 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17022 LGLYPH_SET_CODE to avoid compiler warnings.
17023
17024 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
17025
17026 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17027
17028 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17029 LGLYPH_SET_CODE.
17030
17031 2008-08-29 Kenichi Handa <handa@m17n.org>
17032
17033 * fileio.c (report_file_error): Don't downcase the first character
17034 of errstring if it is still unibyte.
17035
17036 2008-08-29 Kenichi Handa <handa@m17n.org>
17037
17038 These changes are to re-implement the automatic composition so
17039 that it doesn't use text properties.
17040
17041 * Makefile.in (ftfont.o): Depend on composite.h.
17042 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17043
17044 * character.h (Vunicode_category_table): Extern it.
17045
17046 * character.c (Vunicode_category_table): New variable.
17047 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17048
17049 * chartab.c (optimize_sub_char_table): Perform more greedy
17050 optimization.
17051
17052 * composite.h (enum composition_method):
17053 Delete COMPOSITION_WITH_GLYPH_STRING.
17054 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17055 (Vcomposition_function_table): Extern it.
17056 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17057 (composition_gstring_put_cache, composition_gstring_from_id)
17058 (composition_gstring_p, composition_gstring_width)
17059 (composition_compute_stop_pos, composition_reseat_it)
17060 (composition_update_it, composition_adjust_point): Extern them.
17061 (Fcomposition_get_gstring): EXFUN it.
17062
17063 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
17064 (Vcomposition_function_table)
17065 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
17066 (gstring_hash_table, gstring_work, gstring_work_headers):
17067 New variables.
17068 (gstring_lookup_cache, composition_gstring_put_cache)
17069 (composition_gstring_from_id, composition_gstring_p)
17070 (composition_gstring_width, fill_gstring_header)
17071 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17072 (composition_reseat_it, composition_update_it)
17073 (composition_adjust_point, Fcomposition_get_gstring): New functions.
17074 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17075 and gstring_work_headers. DEFVAR_LISP composition-function-table.
17076 Defsubr composition_get_gstring.
17077
17078 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17079 cmp_id.
17080 (struct glyph_string): Delete the member gidx. New members
17081 cmp_id, cmp_from, and cmp_to.
17082 (enum it_method): Delete GET_FROM_COMPOSITION.
17083 (struct composition_it): New struct.
17084 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17085 Delete c, len, cmp_id, cmp_len in u.comp.
17086
17087 * font.h (enum lgstring_indices): Delete it.
17088 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
17089 (enum lglyph_indices): Likewise.
17090 (font_range): Adjust extern.
17091 (font_fill_lglyph_metrics): Extern it.
17092
17093 * font.c (QCf): New variable.
17094 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17095 (font_prepare_composition): Delete this function.
17096 (font_range): Type and arguments changed.
17097 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17098 (font_fill_lglyph_metrics): New function.
17099 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
17100 (syms_of_font): DEFSYM QCf. Delete defsubr for
17101 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17102 Defsubr Sfont_shape_gstring.
17103
17104 * fontset.h (font_for_char): Extern it.
17105
17106 * fontset.c (font_for_char): New function.
17107
17108 * ftfont.c: Include composite.h.
17109 (ftfont_resolve_generic_family): Add langset "en" to pattern.
17110 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17111
17112 * indent.c: Include composite.h and dispextern.h.
17113 (check_composition): Delete this function.
17114 (scan_for_column): Handle composition by
17115 composition_compute_stop_pos, composition_reseat_it, and
17116 composition_update_it.
17117 (compute_motion): Likewise.
17118 (Fvertical_motion): Fix checking of composition.
17119
17120 * keyboard.c (adjust_point_for_property): Check composition by
17121 composition_adjust_point.
17122
17123 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
17124 struct glyph_string.
17125
17126 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17127 (append_composite_glyph): Adjust for the change of struct it and
17128 struct glyph.
17129 (produce_composite_glyph): Likewise.
17130
17131 * w32term.c (x_draw_composite_glyph_string_foreground):
17132 Adjust for the change of struct glyph_string.
17133 (x_draw_glyph_string): Likewise.
17134
17135 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17136 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17137
17138 * xdisp.c: Include font.h.
17139 (it_props): Delete the entry for Qauto_composed.
17140 (init_iterator): Initialize it->cmp_it.id to -1.
17141 (compute_stop_pos): Call composition_compute_stop_pos.
17142 (face_before_or_after_it_pos): Adjust for the change of struct it.
17143 (handle_auto_composed_prop): Delete it.
17144 (handle_composition_prop): Handle only static composition.
17145 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17146 from xassert. Initialize it->cmp_it.stop_pos.
17147 (push_it): Adjust for the change of struct it.
17148 (pop_it): Likewise.
17149 (get_next_element): Delete next_element_from_composition.
17150 (CHAR_COMPOSED_P): New macro.
17151 (get_next_display_element): For automatic composition, get a face
17152 from the font in the glyph-string.
17153 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
17154 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
17155 (next_element_from_string): Check if the character at the current
17156 position is composed by CHAR_COMPOSED_P.
17157 (next_element_from_buffer): Likewise.
17158 (next_element_from_composition): Adjust for the change of struct it.
17159 Update it->cmp_it.
17160 (dump_glyph): Adjust for the change of struct glyph.
17161 (fill_composite_glyph_string): Adjust for the change of struct
17162 it and struct glyph. Don't handle automatic composition here.
17163 (fill_gstring_glyph_string): New function.
17164 (x_get_glyph_overhangs): Handle automatic composition.
17165 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
17166 (BUILD_GSTRING_GLYPH_STRING): New macro.
17167 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17168 automatic composition.
17169 (append_composite_glyph): Adjust for the change of struct it and
17170 struct glyph.
17171 (x_produce_glyphs): Adjust for the change of struct it.
17172
17173 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17174 the change of struct glyph_string.
17175 (x_draw_glyph_string): Likewise.
17176
17177 2008-08-29 Glenn Morris <rgm@gnu.org>
17178
17179 * buffer.c (word-wrap): Doc fix.
17180 * xdisp.c (truncate-partial-width-windows): Doc fix.
17181 Increase default to 50.
17182
17183 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
17184
17185 * xdisp.c (update_tool_bar_unwind): New function.
17186 (update_tool_bar): Temporarily set selected frame before building
17187 tool-bar items.
17188
17189 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
17190
17191 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17192 snprintf, respectively.
17193 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17194
17195 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
17196
17197 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17198 LDFLAGS to GNUstep CC invocation.
17199
17200 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
17201
17202 * indent.c (Fvertical_motion): Revert last change. Handle the
17203 general case where we are moving forward, and PT spans multiple
17204 screen lines.
17205
17206 * eval.c (find_handler_clause): Temporarily increase
17207 max-lisp-eval-depth while printing the backtrace buffer, to
17208 guarantee that help-mode code can run.
17209
17210 2008-08-27 Eli Zaretskii <eliz@gnu.org>
17211
17212 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17213 colors under -rv.
17214 (IT_set_frame_parameters): Don't swap foreground and background
17215 colors if `(reverse . t)' is present in the frame properties.
17216 (internal_terminal_init): Call init_frame_faces only for the
17217 initial frame.
17218
17219 2008-08-27 Andreas Schwab <schwab@suse.de>
17220
17221 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17222
17223 2008-08-27 Andreas Schwab <schwab@suse.de>
17224
17225 * search.c (search_buffer): Set char_base to zero only at the end.
17226
17227 2008-08-27 Kenichi Handa <handa@m17n.org>
17228
17229 * fileio.c (report_file_error): Fix handling of multibyte error string.
17230
17231 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17232
17233 * xterm.c (x_term_init): Temporarily hide the partially
17234 initialized terminal while calling vendor-specific-keysyms.
17235
17236 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17237
17238 * msdos.c (internal_terminal_init): Most initializations done only
17239 once, especially initial_screen_colors[] and termscript open.
17240
17241 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17242
17243 * eval.c (Fcondition_case): Doc fix.
17244
17245 * widgetprv.h (EmacsFramePart): Change font member to the new font
17246 struct.
17247
17248 * widget.c: Include character.h and font.h for XSETFONT.
17249 (setup_frame_gcs): Compute X font id from font struct, just once.
17250
17251 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17252
17253 * term.c (get_named_tty): Fix last change.
17254
17255 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17256
17257 * indent.c (Fvertical_motion): If moving forward starting from a
17258 multi-line string, move the iterator to the last line of that string.
17259
17260 2008-08-25 Eli Zaretskii <eliz@gnu.org>
17261
17262 * frame.c (do_switch_frame): Mark previously displayed frame as
17263 obscured for FRAME_MSDOS_P frames as well.
17264
17265 2008-08-24 Eli Zaretskii <eliz@gnu.org>
17266
17267 * frame.c (make_terminal_frame): Initialize f->terminal,
17268 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17269 Set the top frame to newly created frame.
17270 (Fmake_terminal_frame): Reuse the_only_display_info.
17271
17272 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17273 estimating available memory.
17274
17275 2008-08-23 David Reitter <david.reitter@gmail.com>
17276
17277 * nsterm.m (ns_draw_window_cursor): Don't call
17278 NSDisableScreenUpdates and NSEnableScreenUpdates on
17279 non-NS_IMPL_COCOA systems.
17280
17281 2008-08-23 Andreas Schwab <schwab@suse.de>
17282
17283 * process.c (procfs_system_process_attributes): Fix use of
17284 uninitialized variables.
17285
17286 2008-08-23 Eli Zaretskii <eliz@gnu.org>
17287
17288 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17289
17290 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17291 calling tty-set-up-initial-frame-faces.
17292
17293 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17294 Allow MSDOS frames along with X frames.
17295
17296 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17297 addition to output_termcap.
17298
17299 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17300
17301 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17302 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17303 highlight.
17304
17305 * process.c [!subprocesses]: Define QCname.
17306 (syms_of_process): Intern and staticpro it.
17307
17308 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17309 Adjust for changes in encoding/decoding routines.
17310 Use encode_coding_object and decode_coding_object instead of
17311 encode_coding and decode_coding.
17312
17313 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17314
17315 * dosfns.c: Include frame.h before termhooks.h.
17316 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17317 variable termscript.
17318
17319 * s/msdos.h (USER_FULL_NAME): Define.
17320 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17321
17322 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17323 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17324 pw->pw_gecos.
17325
17326 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17327 SELECTED_FRAME as additional (1st) argument.
17328 (tty_read_avail_input): Handle output_msdos_raw in
17329 addition to output_termcap.
17330
17331 * msdos.c: Include frame.h before termhooks.h.
17332 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17333 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17334 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17335 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17336 (IT_set_terminal_modes, IT_reset_terminal_modes)
17337 (IT_set_frame_parameters): Use tty->termscript instead of a global
17338 variable termscript.
17339 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17340 global variable terminal_coding. Don't refer to
17341 Vnonascii_translation_table.
17342 (internal_terminal_init): Set Vwindow_system in current_kboard.
17343 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17344 Announce date and time of session start, if termscript is open.
17345 Don't zero out the_only_display_info (it is done in
17346 term.c:init_tty). Open termscript only of not already open.
17347 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
17348 here instead of dos_ttraw. Don't initialize display if this is an
17349 initial tty. Don't set FRAME_FONT.
17350 (Vwindow_system_version): Bump to 23.
17351 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17352 is available, set up mouse_position_hook.
17353 (dos_ttraw, IT_set_terminal_modes): If called with initial
17354 terminal, do nothing.
17355 (IT_set_frame_parameters): Handle the Qtty_type frame
17356 parameter by calling internal_terminal_init.
17357 (dos_set_window_size, show_mouse_face)
17358 (clear_mouse_face, IT_note_mode_line_highlight)
17359 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17360 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17361 (initialize_msdos_display): New function.
17362 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17363 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17364 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17365 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
17366 Accept additional argument: a pointer to a frame. Update all callers.
17367 (request_sigio, unrequest_sigio): Don't define, now defined on
17368 sysdep.c.
17369 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17370
17371 * term.c [MSDOS]: Include msdos.h.
17372 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17373 conditional to DOS_NT. Allow only one call to this function in a
17374 session. Don't allocate a new struct tty_display_info; instead,
17375 reuse the_only_display_info. Call get_tty_size to get screen
17376 dimensions. Call init_baud_rate to set bad_rate.
17377 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17378 (Fsuspend_tty) [MSDOS]: Don't close input and output.
17379 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
17380 (get_tty_terminal, get_named_tty, Ftty_type)
17381 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17382 output_termcap.
17383 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17384 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
17385 only when subprocesses are supported.
17386
17387 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17388 f->output_data.x.
17389 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17390 terminal devices.
17391
17392 * msdos.h: Remove definition of struct x_display_info and struct
17393 x_output.
17394 (FRAME_FONT): Use output_data.tty.
17395 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
17396 (struct x_display_info): Rename from display_info. Update all users in
17397 msdos.c.
17398 (struct x_output): Remove background_pixel and foreground_pixel.
17399 (the_only_display_info): Rename from the_only_x_display.
17400 (dos_ttraw): Update prototype.
17401
17402 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17403 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17404
17405 2008-08-23 Jason Rumney <jasonr@gnu.org>
17406
17407 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17408 (fn_TIFFSetDirectory): New library function used.
17409 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17410 (tiff_load): Use :index to select among multiple images. Set count
17411 property when multiple images exist.
17412 (gif_format): Use :index, not :image.
17413
17414 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
17415
17416 * xdisp.c (try_scrolling): Check INT_MAX instead of
17417 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17418 to obtain INT_MAX.
17419
17420 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17421
17422 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17423
17424 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17425
17426 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17427 GNUstep library location.
17428
17429 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
17430
17431 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17432 before using it.
17433
17434 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17435
17436 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17437
17438 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17439 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17440 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17441 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17442 (EmacsApp-cursor_blink_handler): Remove declaration.
17443 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17444 match 01 Feb 2008 changes in xterm.c.
17445 (ns_read_socket): Add cast to avoid warning.
17446 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17447 GNUstep.
17448
17449 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
17450
17451 * xselect.c (x_get_foreign_selection): Return nil if desired
17452 selection could not be obtained, instead of signalling an error.
17453
17454 2008-08-20 David Reitter <david.reitter@gmail.com>
17455
17456 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17457 * nsterm.m: Remove ns-specific code for cursor blinking.
17458 (ns_draw_window_cursor): Clear cursor properly rather than
17459 redrawing the area. Respect width of bar cursors.
17460 These changes enable the use of generic blink-cursor-mode and
17461 generic cursor types in NS and support smooth cursor movements (do
17462 not blink off after command).
17463 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17464 Nextstep, too.
17465
17466 2008-08-19 Kenichi Handa <handa@m17n.org>
17467
17468 * font.c (Vfont_log_deferred): New variable.
17469 (font_add_log): Check Vfont_log_deferred.
17470 (font_deferred_log): New function.
17471
17472 * font.h (font_deferred_log): Extern it.
17473
17474 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17475 for sorting.
17476 (face_for_char): Use deferred log.
17477
17478 2008-08-18 Kenichi Handa <handa@m17n.org>
17479
17480 * fontset.c (face_for_char): Add font log.
17481
17482 * font.c (font_add_log): Add the font properties :script, :lang,
17483 and :otf in the log.
17484
17485 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
17486
17487 * xdisp.c: Remove dead code.
17488 (handle_invisible_prop, next_overlay_string): Defer call to
17489 setup_for_ellipsis.
17490 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17491
17492 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
17493
17494 * xfaces.c (lookup_derived_face): Properly handle possible zero
17495 return value of get_lface_attributes.
17496 (merge_faces): Don't tell lookup_derived_face to signal an error
17497 if face is not found.
17498
17499 * dired.c (Fdirectory_files): Doc fix.
17500
17501 * process.c (make_process): Initialize kill_without_query struct
17502 member.
17503
17504 2008-08-15 Eli Zaretskii <eliz@gnu.org>
17505
17506 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17507 Alternative calculation of totphys for Visual Studio 6.
17508
17509 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17510
17511 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17512 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17513 All users changed.
17514 (stat): Only root directory passed to GetDriveType. Allow RAM
17515 disk as well as local fixed disk when w32-get-true-file-attributes
17516 is set to `local'.
17517 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17518 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17519 (w32_cached_id, w32_add_to_cache): New functions.
17520 (get_name_and_id): Look account names in the cache before calling
17521 lookup_account_sid.
17522 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17523 New initialization flags.
17524 (globals_of_w32): Initialize them to zero.
17525 (w32_system_process_attributes): Use w32_cached_id and
17526 w32_add_to_cache.
17527
17528 2008-08-14 Lawrence Mitchell <wence@gmx.li>
17529
17530 * lread.c (Fread_char, Fread_char_exclusive): If no character
17531 event is read before timeout is reached, return nil, rather than
17532 converting to a number.
17533
17534 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
17535
17536 * fns.c (use_dialog_box): Doc fix.
17537
17538 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17539 on OS X.
17540
17541 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
17542
17543 * frame.c (Qns_parse_geometry): New var.
17544 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17545
17546 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
17547
17548 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17549 space character in calculating tabs.
17550
17551 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17552
17553 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17554
17555 2008-08-10 Glenn Morris <rgm@gnu.org>
17556
17557 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17558 silence gcc "limited range of data type" warnings in some
17559 make_fixnum_or_float calls.
17560
17561 2008-08-09 Eli Zaretskii <eliz@gnu.org>
17562
17563 * w32.c (w32_system_process_attributes): If the process does not
17564 exist, return nil.
17565
17566 * w32.c: Include thelp32.h, psapi.h and coding.h.
17567 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17568 declarations.
17569 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17570 (Process32Next_Proc): New typedefs.
17571 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17572 (g_b_init_process32_next, g_b_init_open_thread_token)
17573 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17574 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17575 (g_b_init_get_process_working_set_size)
17576 (g_b_init_global_memory_status_ex): New static variables.
17577 (globals_of_w32): Initialize them.
17578 (create_toolhelp32_snapshot, process32_first, process32_next)
17579 (open_thread_token, impersonate_self, revert_to_self)
17580 (get_process_memory_info, get_process_working_set_size)
17581 (global_memory_status, global_memory_status_ex): New wrapper
17582 functions.
17583 (w32_list_system_processes, w32_system_process_attributes)
17584 (enable_privilege, restore_privilege, ltime, process_times):
17585 New functions.
17586 (convert_time_raw): New function.
17587 (convert_time): Remove conversion of FILETIME into time in 100
17588 nsec units, call convert_time_raw instead.
17589
17590 * process.h (w32_list_system_processes, w32_system_process_attributes):
17591 Add prototypes.
17592 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17593 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17594 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17595 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17596
17597 * process.c (Fsystem_process_attributes): Doc fix.
17598
17599 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
17600
17601 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17602 a continued multi-char glyph; if so, advance to the actual glyph.
17603
17604 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17605
17606 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17607
17608 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17609 (.m.o): Use it.
17610 * config.in: Regenerate.
17611
17612 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
17613
17614 * xdisp.c (redisplay_window): Revert last change.
17615 (try_window): Check bottom scroll margin too.
17616
17617 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17618
17619 * config.in: Regenerate.
17620
17621 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17622 -list-load-path-shadows'.
17623 (nsgui.h): Reduce number of things depending on it.
17624
17625 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
17626
17627 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17628 instead of window-end which does the wrong thing at eob.
17629 (try_cursor_movement): Minor optimization.
17630 (redisplay_window): If scroll margin is defined, don't assume
17631 window doesn't need scrolling.
17632
17633 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17634
17635 * config.in: Regenerate.
17636
17637 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17638 (mostlyclean): Don't delete *.d under NS.
17639
17640 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17641
17642 2008-08-06 Kenichi Handa <handa@m17n.org>
17643
17644 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17645
17646 2008-08-06 Andreas Schwab <schwab@suse.de>
17647
17648 * config.in: Regenerate.
17649
17650 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
17651
17652 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17653 forcing a window start.
17654
17655 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17656 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17657
17658 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17659
17660 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17661 argument.
17662
17663 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
17664
17665 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17666 <scroll-down-aggressively, before-change-functions>:
17667 <after-change-functions>: Reflow docstrings.
17668
17669 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17670 Ken Raeburn <raeburn@gnu.org>
17671
17672 Dock menu customization, based on a patch by Ken Raeburn, plus some
17673 other fixes.
17674 * nsmenu.m (dockMenu): New variable.
17675 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17676
17677 * nsterm.h (dockMenu): Declare.
17678
17679 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17680 (ns_term_init): Initialize dockMenu.
17681 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17682 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17683 left.
17684
17685 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17686
17687 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
17688
17689 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17690
17691 * config.in: Regenerate.
17692
17693 2008-08-04 Seiji Zenitani <zenitani@mac.com>
17694
17695 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17696
17697 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
17698
17699 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17700
17701 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17702
17703 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17704
17705 * keyboard.h: Comment an #endif.
17706
17707 * lisp.h (have_menus_p): Adjust comment.
17708
17709 * menu.c (find_and_return_menu_selection): Fix comparison with
17710 client_data.
17711
17712 * nsmenu.m (popup_activated_flag): New variable.
17713 (popup_activated): New function.
17714 (menu-or-popup-active-p): New exported lisp definition.
17715 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17716 when popup done.
17717 (ns_popup_dialog): Set popup_activated_flag.
17718
17719 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17720 version for GNUstep (handled by conditional typedef in nsterm.m).
17721 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17722 in rgb.txt).
17723
17724 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17725
17726 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17727
17728 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17729
17730 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17731 shortcircuit if popup_activated like GTK and X toolkit.
17732
17733 * m/inter386.h: Change DARWIN to DARWIN_OS.
17734
17735 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17736 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
17737 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17738 Expand comment on NO_SOCK_SIGIO.
17739
17740 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
17741
17742 * nsterm.m (windowDidResize): Remove stopModal call.
17743
17744 2008-08-03 Andreas Schwab <schwab@suse.de>
17745
17746 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17747 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17748
17749 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
17750
17751 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17752 Don't use uninitialized pointer variable when using getrlimit.
17753
17754 2008-08-02 Jason Rumney <jasonr@gnu.org>
17755
17756 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
17757
17758 2008-08-02 Eli Zaretskii <eliz@gnu.org>
17759
17760 * alloc.c (NSTATICS): Bump to 0x640.
17761
17762 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
17763
17764 * lisp.h: Add prototype for directory_files_internal.
17765
17766 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
17767 New functions.
17768 (syms_of_process): Defsubr them. Add initializations for various
17769 Q* symbols used in procfs_system_process_attributes.
17770 (procfs_list_system_processes, procfs_system_process_attributes)
17771 [HAVE_PROCFS]: New functions.
17772 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
17773 (procfs_get_total_memory): New functions.
17774
17775 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
17776
17777 * xfaces.c (Fx_load_color_file): Fix previous change;
17778 it is #ifdef WINDOWSNT, not WINDOWS_NT.
17779
17780 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
17781
17782 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
17783
17784 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17785
17786 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
17787
17788 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
17789
17790 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
17791
17792 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
17793 define NSApplicationDelegateReplySuccess.
17794 (EmacsView -converstationIdentifier): Use long instead of
17795 NSInteger for GNUstep, since it doesn't have NSInteger.
17796
17797 * xmenu.c: Revert last change.
17798
17799 * keyboard.h: Fix last change.
17800
17801 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
17802
17803 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
17804 on Windows.
17805
17806 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17807
17808 Warning clearing and clean-up in NS port.
17809 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
17810 Add prototypes.
17811 * nsgui.h (FACE_DEFAULT): Remove, unused.
17812 (XGCValues): Change colors to unsigned long.
17813 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
17814 nsterm.m.
17815 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
17816 (ns_list_fonts): Remove, unused.
17817 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
17818 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
17819 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
17820 (nsfont_draw): Compare face colors to 0, not nil.
17821 * nsmenu.m (struct widget_value): Drop unneeded declaration.
17822 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
17823 (-addSubmenuWithTitle:): Use NSMenuItem class.
17824 (ns_popup_menu): Use NO, not NULL, for enabled setting.
17825 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
17826 (ns_clip_to_row): Make gc arg a BOOL.
17827 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
17828 ns_clip_to_row() call.
17829 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
17830 used). Cast FRAME_FONT assignments.
17831 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
17832 (ns_string_to_lispmod): Change arg to const char.
17833 (ns_term_init): Use NSMenuItem class.
17834 (EmacsApp -openFile:): Move to different section of file.
17835 (EmacsApp -application:openFiles:): Don't return a value, call
17836 -replyToOpenOrPrint:.
17837 (EmacsView -keyDown:): Fix up cast.
17838 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
17839 (EmacsView -menuDown:): Cast tag in call to
17840 find_and_call_menu_selection().
17841 (ns_list_fonts): Remove, unused.
17842 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
17843 (ns_fontname_to_xlfd): Make static.
17844 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
17845 Remove prototypes (now in keyboard.h).
17846 (next_menubar_widget_id): Remove, unused.
17847 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
17848 Remove prototypes (now in keyboard.h).
17849 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
17850
17851 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
17852
17853 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
17854 (floatfns.o): Depend on syssignal.h.
17855 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
17856
17857 * systty.h: Fix previous change that removed BSD_TERMIOS.
17858 Add comments to #ifdefs.
17859
17860 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17861
17862 * w32fns.c (w32-load-color-file): Remove.
17863 (x-open-connection): Use renamed Fx_load_color_file.
17864 * xfaces.c (x-load-color-file): Add.
17865 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
17866 Emacs.clr.
17867 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
17868
17869 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
17870
17871 * dbusbind.c (Fdbus_call_method_asynchronously)
17872 (Fdbus_method_error_internal): New defuns.
17873 (xd_read_message): Handle also reply messages.
17874 (Vdbus_registered_functions_table): Extend docstring.
17875
17876 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
17877
17878 * keyboard.c (gobble_input): Fix previous change.
17879
17880 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17881
17882 * bitmaps/README:
17883 * xfns.c:
17884 * termcap.c:
17885 * term.c:
17886 * syswait.h:
17887 * systty.h:
17888 * systime.h:
17889 * syssignal.h:
17890 * sysdep.c:
17891 * process.h:
17892 * process.c:
17893 * print.c:
17894 * ndir.h:
17895 * lread.c:
17896 * keyboard.c:
17897 * getpagesize.h:
17898 * floatfns.c:
17899 * fileio.c:
17900 * emacs.c:
17901 * doc.c:
17902 * dispnew.c:
17903 * dired.c:
17904 * data.c:
17905 * callproc.c:
17906 * buffer.c:
17907 * README:
17908 * Makefile.in:
17909 * s/template.h:
17910 * s/msdos.h:
17911 * m/vax.h: Remove VMS support.
17912 * s/vms.h:
17913 * vlimit.h:
17914 * uaf.h:
17915 * temacs.opt:
17916 * param.h:
17917 * ioctl.h: Remove file.
17918
17919 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17920
17921 * s/ms-w32.h (MULTI_KBOARD): Remove.
17922 * xterm.c:
17923 * xselect.c:
17924 * xfns.c:
17925 * window.c:
17926 * w32term.c:
17927 * w32fns.c:
17928 * terminal.c:
17929 * termhooks.h:
17930 * term.c:
17931 * sysdep.c:
17932 * keyboard.h:
17933 * keyboard.c:
17934 * frame.h:
17935 * frame.c:
17936 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
17937 * config.in: Regenerate.
17938
17939 2008-07-30 Jason Rumney <jasonr@gnu.org>
17940
17941 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
17942
17943 * w32font.c (w32font_encode_char): Leave as unicode if in range.
17944 (w32font_open_internal): Get unicode version of textmetrics.
17945 Don't enable or disable glyph indices here.
17946 (w32font_open): Disable use of glyph indices.
17947
17948 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
17949
17950 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
17951
17952 * minibuf.c (Vread_buffer_function): Doc fix.
17953
17954 2008-07-30 John Paul Wallington <jpw@pobox.com>
17955
17956 * minibuf.c (read_buffer_completion_ignore_case): New var.
17957 (Fread_buffer): Use it.
17958
17959 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17960
17961 * systty.h (sensemode): Remove empty #if. Remove reference to
17962 BSD_TERMIOS, unused.
17963
17964 * sysdep.c: Remove reference to DGUX.
17965 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17966
17967 * config.in: Regenerate.
17968
17969 2008-07-30 Jason Rumney <jasonr@gnu.org>
17970
17971 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17972
17973 2008-07-29 Jason Rumney <jasonr@gnu.org>
17974
17975 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17976 is populated.
17977 (uniscribe_encode_char): Always use uniscribe.
17978 Avoid using context if cache is populated.
17979
17980 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17981
17982 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17983 open menu.
17984
17985 * gtkutil.c (menu_nav_ended): Remove.
17986 (create_menus): Remove signal connect for menu_nav_ended.
17987
17988 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
17989
17990 * xdisp.c (redisplay_window): Check return value of
17991 compute_window_start_on_continuation_line before forcing a window
17992 start.
17993
17994 2008-07-28 Jason Rumney <jasonr@gnu.org>
17995
17996 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
17997
17998 * w32term.c (w32_enable_unicode_output, cleartype_active):
17999 Remove obsolete display options.
18000 (x_draw_glyph_string_background): Don't use old cleartype_active
18001 workaround.
18002 (w32_initialize): Remove cleartype_active initialization.
18003 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18004
18005 2008-07-28 Andreas Schwab <schwab@suse.de>
18006
18007 * lisp.h (init_weak_hash_tables, syms_of_font)
18008 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18009 (remove_hash_entry): Don't declare.
18010 * eval.c (maybe_call_debugger): Make static and move before use.
18011 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18012 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18013 * xterm.h (x_set_frame_alpha): Declare.
18014
18015 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18016
18017 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18018 (create_menus): Connect selection-done to menu_nav_ended.
18019
18020 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18021
18022 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18023 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18024 parameter with read of 'alpha' one.
18025 (Qns_frame_parameter): Remove.
18026 * nsselect.m (selection-coding-system)
18027 (next-selection-coding-system, Vselection_coding_system)
18028 (Vnext_selection_coding_system): Drop.
18029
18030 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18031
18032 * nsfns.m (do-applescript, do_applescript): Rename to
18033 ns-do-applescript, ns_do_applescript, and move within file.
18034
18035 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18036
18037 Remove support for Mac Carbon.
18038 * mactoolbox.c:
18039 * macterm.h:
18040 * macterm.c:
18041 * macselect.c:
18042 * macmenu.c:
18043 * macgui.h:
18044 * macfns.c:
18045 * mac.c: Remove file.
18046 * s/darwin.h:
18047 * m/intel386.h:
18048 * xfaces.c:
18049 * xdisp.c:
18050 * window.c:
18051 * tparam.c:
18052 * termhooks.h:
18053 * termcap.c:
18054 * term.c:
18055 * syssignal.h:
18056 * sysselect.h:
18057 * sysdep.c:
18058 * process.c:
18059 * lread.c:
18060 * lisp.h:
18061 * keyboard.c:
18062 * image.c:
18063 * fringe.c:
18064 * frame.h:
18065 * frame.c:
18066 * fontset.c:
18067 * font.h:
18068 * font.c:
18069 * fns.c:
18070 * fileio.c:
18071 * emacs.c:
18072 * dispnew.c:
18073 * dispextern.h:
18074 * config.in:
18075 * atimer.c:
18076 * Makefile.in: Remove code for Carbon.
18077
18078 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18079
18080 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18081
18082 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18083
18084 * macterm.h (kCGBitmapByteOrder32Host): New define for
18085 non-universal SDKs.
18086
18087 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18088 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18089
18090 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18091 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18092
18093 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18094
18095 * w32inevt.c: Include dispextern.h.
18096
18097 2008-07-26 Andreas Schwab <schwab@suse.de>
18098
18099 * print.c (print_object): Fix off-by-one in last change.
18100
18101 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
18102
18103 * term.c (syms_of_term): Don't initialize default_orig_pair,
18104 default_set_foreground and default_set_background on Windows.
18105
18106 2008-07-25 Jason Rumney <jasonr@gnu.org>
18107
18108 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18109 ScriptItemize. Clean up return value checking. Remove unused
18110 variables.
18111 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18112 shaping engine.
18113
18114 * w32font.c (w32font_has_char): Handle the case where we can't
18115 determine the script for a character.
18116
18117 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18118
18119 * term.c (syms_of_term): Initialize default_orig_pair,
18120 default_set_foreground, and default_set_background.
18121
18122 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18123 clash (bug#86).
18124 (getloadavg): Callers changed.
18125
18126 * image.c (svg_load_image): Fix last change.
18127 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18128 image size is valid. Use g_object_unref instead of deprecated
18129 rsvg_handle_free to free rsvg handle.
18130 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18131
18132 2008-07-25 Jason Rumney <jasonr@gnu.org>
18133
18134 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18135 surrogates before looking up glyph index.
18136 (w32font_text_extents): Encode as surrogates if falling back to
18137 functions that need UTF-16 wide chars.
18138
18139 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18140 BMP as surrogates before looking up glyph index.
18141
18142 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18143
18144 * image.c (svg_load_image): Check for failure in return value of
18145 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18146
18147 2008-07-25 Jason Rumney <jasonr@gnu.org>
18148
18149 * w32font.c (Fx_select_font): Reverse sense of second arg.
18150
18151 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18152
18153 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18154 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18155
18156 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18157 (PURESIZE): Use it.
18158
18159 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18160
18161 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18162 * m/alpha.h (TEXT_END):
18163 * m/ibmrs6000.h (TEXT_END):
18164 * m/macppc.h (TEXT_END):
18165 * s/darwin.h (TEXT_END):
18166 * s/msdos.h (TEXT_END): Remove, unused.
18167 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18168 * s/cygwin.h: Remove comment.
18169
18170 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18171 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18172 * m/intel386.h (DOT_GLOBAL_START):
18173 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18174 (USG): Remove, file not used on USG platforms.
18175
18176 * Makefile.in (HAVE_X11): Remove empty #else.
18177
18178 2008-07-24 Andreas Schwab <schwab@suse.de>
18179
18180 * fileio.c (Finsert_file_contents): Properly adjust undo list
18181 after format conversion.
18182
18183 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18184
18185 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18186 (menu_nav_ended): Remove.
18187 (create_menus): Remove signal connect for menu_nav_ended.
18188 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18189 create_menus.
18190 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18191
18192 2008-07-23 Jason Rumney <jasonr@gnu.org>
18193
18194 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18195 with opened font.
18196 (w32font_open): Set font type to gdi.
18197
18198 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18199
18200 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18201
18202 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18203 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18204 defines it.
18205 * unexec.c (ADDR_CORRECT): Define unconditionally.
18206
18207 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18208
18209 * unexec.c: Remove code depending on !COFF and USG, the file is
18210 not used for such systems.
18211
18212 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18213 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18214 (LD_SWITCH_SYSTEM_1): Remove, update users.
18215
18216 * s/darwin.h (DATA_END):
18217 * m/intel386.h (DATA_END):
18218 * m/ibmrs6000.h (DATA_END):
18219 * m/alpha.h (DATA_END): Remove, unused.
18220
18221 * config.in: Regenerate.
18222 * s/ms-w32.h (subprocesses): Define unconditionally.
18223 * s/template.h (subprocesses): Update comment.
18224 * s/vms.h (subprocesses):
18225 * s/usg5-4.h (subprocesses):
18226 * s/hpux10-20.h (subprocesses):
18227 * s/gnu-linux.h (subprocesses):
18228 * s/cygwin.h (subprocesses):
18229 * s/bsd-common.h (subprocesses):
18230 * s/aix4-2.h (subprocesses):
18231 * s/darwin.h (subprocesses): Do not define, defined by default now.
18232
18233 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18234 Remove all references.
18235 (temacs): Add GNUstep specific ld flags.
18236
18237 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18238 similarly to what X does.
18239
18240 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18241
18242 * nsfns.m (x-list-fonts): Remove.
18243 (syms_of_nsfns): Drop the x-list-fonts declaration.
18244 * nsterm.m: Get rid of remaining "//" comments.
18245
18246 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
18247
18248 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18249
18250 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18251 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18252 (Fns_own_selection_internal, Fx_disown_selection_internal)
18253 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18254
18255 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18256 ... */' style of docstrings. Doc fixes.
18257
18258 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18259
18260 * terminfo.c (UP, BC, PC): Undo previous change.
18261
18262 * nsfns.m: Rename ns prefixed functions/variables to the
18263 corresponding x versions. Update references.
18264
18265 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18266
18267 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18268
18269 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18270
18271 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18272 Remove forwarding functions.
18273 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18274 non-static.
18275 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18276 non-static.
18277 (ns_frame_parm_handlers): Use the new names.
18278 (syms_of_nsfns): Move to the end of file.
18279
18280 * nsterm.m (syms_of_nsterm): Move to the end of file.
18281
18282 * dispnew.c (init_display): Remove code for X10.
18283
18284 2008-07-22 Jason Rumney <jasonr@gnu.org>
18285
18286 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18287 bare drive.
18288
18289 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18290
18291 * nsterm.m (syms_of_nsterm): Remove debugging println.
18292
18293 2008-07-22 David Reitter <david.reitter@gmail.com>
18294
18295 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18296 Carbon implementation of the same functionality: execute arbitrary
18297 AppleScript code.
18298
18299 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18300
18301 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18302 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18303 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18304 (Fx_display_mm_height, Fx_display_mm_width)
18305 (Fx_display_backing_store, Fx_display_visual_class)
18306 (Fx_display_save_under, Fx_open_connection)
18307 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18308 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18309 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18310 (Fx_display_pixel_width, Fx_display_pixel_height)
18311 (Fx_display_usable_bounds, Fx_display_planes)
18312 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18313 ... */' style of docstrings.
18314
18315 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18316
18317 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18318 on this platform.
18319 (mips):
18320 * m/iris4d.h (mips): Do not define.
18321 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18322
18323 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18324
18325 * image.c:
18326 * nsfns.m:
18327 * nsselect.m:
18328 * nsterm.h:
18329 * nsterm.m: Rename ns prefixed functions/variables to the
18330 corresponding x versions. Update references.
18331
18332 * m/ibms390x.h (NO_REMAP): Do not undefine.
18333
18334 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18335
18336 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
18337
18338 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18339 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18340 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18341 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18342 (Fns_display_mm_height, Fns_display_mm_width)
18343 (Fns_display_backing_store, Fns_display_visual_class)
18344 (Fns_display_save_under, Fns_open_connection)
18345 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18346 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18347 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18348 (Fns_display_pixel_width, Fns_display_pixel_height)
18349 (Fns_display_usable_bounds, Fx_display_planes)
18350 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18351
18352 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18353
18354 * print.c (print_object): Check print_depth before searching for
18355 circularities.
18356
18357 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
18358
18359 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18360 only sprintf.
18361
18362 2008-07-21 Kenichi Handa <handa@m17n.org>
18363
18364 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18365
18366 2008-07-20 Andreas Schwab <schwab@suse.de>
18367
18368 * syntax.c (find_start_pos, find_start_value)
18369 (find_start_value_byte, find_start_begv, find_defun_start)
18370 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18371
18372 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18373
18374 * s/sol2-3.h: Insert contents of s/sol2.h.
18375 (LD_SWITCH_SYSTEM): Remove redundant definition.
18376 * s/sol2.h: Remove, unused.
18377
18378 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18379
18380 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18381
18382 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18383
18384 * Makefile.in (ns_appdir): Fix typo in find command.
18385
18386 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18387
18388 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18389
18390 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18391 added not supported anymore.
18392
18393 * s/usg5-4-2.h (LIBS_SYSTEM):
18394 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18395
18396 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18397 * s/lynxos.h (GETPGRP_NO_ARG):
18398 * s/hpux10-20.h (NO_SIOCTL_H):
18399 * s/gnu.h (GETPGRP_NO_ARG):
18400 * s/gnu-linux.h (NO_SIOCTL_H):
18401 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18402 * s/cygwin.h (GETPGRP_NO_ARG):
18403 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18404 (C_DEBUG_SWITCH): Remove duplicate definition.
18405
18406 * m/ibms390.h: Remove boilerplate comments.
18407
18408 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18409
18410 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18411 (wait_reading_process_output): Remove code for SunOS, platform not
18412 supported anymore. Use SOLARIS2 instead of sun.
18413
18414 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18415
18416 * font.c (font_open_by_name): Under NS, default lface height to zero.
18417 (font_open_for_lface): Under NS, set size based on frame fontsize.
18418 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18419 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18420
18421 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18422
18423 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18424 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18425 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18426 YES/NO.
18427 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18428 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18429 * Makefile.in (clean): Clear out build destination dir.
18430
18431 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18432
18433 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18434 xterm, xselect.
18435 * lisp.h: Remove declaration of hash_remove.
18436 * nsgui.h: Remove redefinitions of hash_remove.
18437 * fns.c (hash_remove): Rename to hash_remove_from_table.
18438
18439 2008-07-19 Seiji Zenitani <zenitani@mac.com>
18440
18441 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18442 strdup() the family UTF8String before modifying it.
18443
18444 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18445
18446 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18447 NS_FACE_BACKGROUND with 0 instead of nil.
18448 * nsfont.m (nsfont_draw): Same.
18449
18450 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
18451
18452 * nsfns.m (ns_set_background_color): Fix crash.
18453
18454 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
18455
18456 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18457
18458 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18459
18460 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18461
18462 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18463
18464 * gtkutil.c: Include <config.h> instead of "config.h".
18465
18466 * lisp.h (Foverlay_buffer): Add EXFUN.
18467
18468 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18469 child process to complete child_setup. Undo 2005-09-21 change.
18470
18471 * s/darwin.h: Mention setsid after vfork.
18472
18473 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18474
18475 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18476 Depend on macgui.h.
18477
18478 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18479 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18480
18481 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18482 and f19.
18483 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18484
18485 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18486 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18487 Remove enumerators.
18488
18489 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18490 Check if FACE_FROM_ID returns NULL.
18491
18492 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18493
18494 * w32inevt.c (change_frame_size): Remove extern declaration.
18495 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18496 change_frame_size.
18497
18498 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18499
18500 * getloadavg.c: Revert last change (2008-07-15).
18501
18502 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18503
18504 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
18505 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
18506 from configure.
18507
18508 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18509
18510 * s/sol2.h:
18511 * s/sol2-4.h: Reorganize conditionals.
18512
18513 * ecrt0.c: Remove code depending on m68000, not used anymore.
18514
18515 * fns.c (hash_remove): Make static.
18516 * lisp.h (hash_remove): Don't prototype.
18517
18518 * m/ibmrs6000.h:
18519 * m/ibms390x.h:
18520 * m/macppc.h: Remove boilerplate comments.
18521
18522 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18523 Solaris, which does not need them.
18524
18525 * m/vax.h: Remove comments about unsupported systems.
18526
18527 * s/darwin.h: Reorganize ifdefs.
18528
18529 2008-07-17 Andreas Schwab <schwab@suse.de>
18530
18531 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18532
18533 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18534
18535 Use SDATA. Follow coding convention of placing operators at
18536 beginning of next line rather than end of previous line, and placing
18537 spaces around infix operators.
18538
18539 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18540 in case it was defined already.
18541 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18542 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18543 ns_default.
18544 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18545 Lisp_Objects.
18546 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18547 (ns_defined_color, ns_color_to_lisp): Declare.
18548 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18549 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18550 it's accepted even with USE_LISP_UNION_TYPE.
18551 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18552 (update_frame_tool_bar): Remove apparently obsolete tests for
18553 non-integerness of f->tool_bar_lines.
18554 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18555 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18556 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18557 (nsfont_open): Don't confuse NULL for Qnil.
18558 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18559 * menu.h (find_and_call_menu_selection):
18560 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18561 (find_and_return_menu_selection): Always return something.
18562 * frame.h: Include dispextern.h for Display_Info.
18563 (display_x_get_resource): Declare.
18564
18565 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18566
18567 * syntax.c: Remove stdio.h include accidentally introduced in
18568 Emacs.app commit.
18569 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18570 NS_IMPL_COCOA.
18571 * keyboard.c (handle_async_input, input_available_signal): Remove
18572 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18573
18574 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18575
18576 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18577 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18578 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18579 Use SDATA.
18580
18581 * keymap.c: Remove all NS-specific code.
18582 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18583 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18584 where_is_preferred_modifier, return a different value depending on how
18585 preferred is the binding.
18586 (where_is_internal): Adjust accordingly.
18587 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18588 Adjust to new preferred_sequence_p.
18589 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18590 * keyboard.c (parse_solitary_modifier): Not static any more.
18591 * keyboard.h (parse_solitary_modifier): Declare.
18592
18593 2008-07-16 Andreas Schwab <schwab@suse.de>
18594
18595 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18596 of easymenu.
18597
18598 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
18599
18600 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18601 that we don't move off the line.
18602
18603 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18604
18605 * keyboard.c (Qsuper): Remove.
18606 (parse_menu_item): Don't call where_is_internal specially for NS.
18607
18608 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18609
18610 * s/gnu-linux.h: Remove boilerplate comments.
18611
18612 * m/alpha.h (__ELF__): Consolidate conditions.
18613
18614 * m/m68k.h (linux): Use GNU_LINUX instead.
18615 Remove boilerplate comments.
18616
18617 * m/intel386.h: Undo refactoring from previous change.
18618 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18619 too, remove dead code.
18620 (linux): Use GNU_LINUX instead.
18621
18622 2008-07-16 Jason Rumney <jasonr@gnu.org>
18623
18624 * w32gui.h: Repeat 26 June changes lost by last change.
18625
18626 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18627
18628 * systty.h: Remove code for Aix on 386, unsupported platform.
18629
18630 * s/ms-w32.h: Remove boilerplate comments.
18631 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18632
18633 * s/gnu-linux.h (TERM): Remove support.
18634 (HAVE_SYSVIPC): Remove, unused.
18635 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18636 for this system.
18637
18638 * process.c: Remove support for IRIS, unused.
18639 Remove support for TERM, not relevant anymore.
18640
18641 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18642 used with the definition.
18643
18644 * s/aix4-2.h (static): Do not undef.
18645
18646 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18647 only used on Aix.
18648 (HAVE_SYSVIPC): Remove, unused.
18649
18650 * m/hp800.h (CANNOT_DUMP): Do not undef.
18651
18652 * m/alpha.h: Fix comment.
18653
18654 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18655 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18656 used by this configuration.
18657 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18658 * unexec.c: Remove code depending on HPUX and
18659 USG_SHARED_LIBRARIES, not used with this file. Remove code
18660 depending on IRIS, unused. Remove if 0-ed code.
18661
18662 * s/template.h: Remove comments about static.
18663
18664 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18665 Remove if 0-ed code.
18666 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18667 were the same as the default.
18668 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18669 Remove boilerplate comments.
18670 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18671 (HAVE_SYSVIPC): Remove, unused.
18672 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18673
18674 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18675 Remove boilerplate comments.
18676 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18677 Remove boilerplate comments.
18678 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18679 Remove boilerplate comments.
18680 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18681
18682 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18683 USG systems which do not use DATA_SEG_BITS.
18684 Refactor code. Remove boilerplate comments.
18685
18686 * m/ibms390.h:
18687 * m/m68k.h:
18688 * s/bsd-common.h:
18689 * s/cygwin.h:
18690 * s/darwin.h:
18691 * s/freebsd.h:
18692 * s/gnu.h:
18693 * s/msdos.h: Remove boilerplate comments.
18694
18695 * m/iris4d.h: Remove boilerplate comments and code for systems that
18696 do not use this file.
18697 (IRIS_4D): Remove, unused.
18698
18699 * m/mips.h: Remove boilerplate comments and code for systems that
18700 do not use this file.
18701 (SIGN_EXTEND_CHAR):
18702 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18703 * unexmips.c: Remove file, unused.
18704
18705 * editfns.c (Fuser_full_name): Replace the only use of
18706 USER_FULL_NAME with its value.
18707 * config.in: Regenerate.
18708
18709 2008-07-16 David Reitter <david.reitter@gmail.com>
18710
18711 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18712 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18713
18714 2008-07-16 Glenn Morris <rgm@gnu.org>
18715
18716 * emacs.c (system-type): Doc fix.
18717
18718 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18719
18720 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18721 If the cache doesn't work, let's fix it, rather than work around it.
18722
18723 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18724
18725 * Makefile.in: Correct additions for nsfont.o in last commit.
18726 * nsfont.m: New file (forgot last commit).
18727
18728 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18729
18730 * callproc.c (set_initial_environment):
18731 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
18732 batch-compiling for bootstrap).
18733
18734 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18735 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18736
18737 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18738 CANNOT_DUMP case -- fix crash due to different init order.
18739
18740 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18741
18742 Changes and additions for NeXTstep windowing system (Cocoa and
18743 GNUstep) support.
18744
18745 * Makefile.in:
18746 * config.in: Support defines and build commands for NS port.
18747 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18748 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18749 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18750 windowing.
18751 (struct face): Add synth_ital field.
18752 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18753 (init_display): Initialize Vinitial_window_system to "ns" when so
18754 compiled.
18755 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18756 (display_arg): Use under NS.
18757 (main): Under NS, allocate autorelease pool and handle command line
18758 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
18759 (standard_args): Add NS-specific args.
18760 (shut_down_emacs): Shut down NS terminal if compiled under NS.
18761 * font.c (DEFAULT_ENCODING): New variable.
18762 (font_find_for_lface): Use it.
18763 (syms_of_font): Load syms_of_nsfont under NS.
18764 * font.h: Declare nsfont_driver when compiled under NS.
18765 * fontset.c: When compiling under NS, include nsterm.h.
18766 (fontset_from_font): Autoconstruct fontset under NS.
18767 * frame.c (various): Under NS, include nsterm.h, add Qns window system
18768 symbol, document and use it.
18769 (do_switch_frame): When for_deletion under Cocoa, add
18770 Fraise_frame(Qnil).
18771 (x_set_frame_parameters): Ensure font attribute changes are picked up.
18772 (x_get_arg): Allow "yes" and "no" as boolean values.
18773 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
18774 Qright under Cocoa.
18775 (focus-follows-mouse): Default to 0 under NS.
18776 * frame.h (enum output_method): Add output_ns.
18777 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
18778 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
18779 (FRAME_WINDOW_P): NS-specific definition.
18780 * fringe.c (max_used_fringe_bitmap): Make public.
18781 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
18782 (getloadavg): Use NeXT code under descendant OS's.
18783 * image.c (includes and header section, x_create_bitmap_from_data)
18784 (x_create_bitmap_from_file, free_bitmap_record, image_background)
18785 (image_background_transparent, x_clear_image_1)
18786 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
18787 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
18788 (x_to_xcolors, x_from_xcolors, x_disable_image)
18789 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
18790 other GUIs, including XPM support using code originally written for
18791 Carbon GUI.
18792 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
18793 using NS API.
18794 (image_ascent): Use font metrics macros instead of direct struct field
18795 access.
18796 * keyboard.c (includes): Add nsterm.h when compiling under NS.
18797 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
18798 Also, handle NS as GTK for menu bar purposes.
18799 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
18800 toolkit where they differ.
18801 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
18802 use cachelist, still needed under NS.
18803 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
18804 (struct widget_value): Define it here for menu.c.
18805 * keymap.c (includes): Include modifier internals.
18806 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
18807 NS.
18808 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
18809 support for preferring sequences using certain modifiers, specified by
18810 the FIRSTONLY argument.
18811 * lisp.h (hash_remove): Rename to avoid name clash when compiling
18812 under NS GNUstep implementation.
18813 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
18814 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
18815 * menu.c: Include nsterm.h under NS.
18816 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
18817 (free_menubar_widget_tree_value, update_submenu_strings)
18818 (find_and_call_menu_selection): Treat NS as X and NT.
18819 (find_and_return_menu_selection): New function, used for popup menus.
18820 * nsgui.h:
18821 * nsterm.h:
18822 * nsfns.m:
18823 * nsimage.m:
18824 * nsmenu.m:
18825 * nsselect.m:
18826 * nsterm.m: New files.
18827 * process.c (wait_reading_process_output): Under NS, call ns_select()
18828 instead of plain select().
18829 * syntax.c (char_quoted): Under NS, avoid a crash when called near
18830 beginning of buffer.
18831 * sysselect.h (init_process): Rename when compiling under Cocoa to
18832 avoid name conflict.
18833 * termhooks.h (display_info): Add ns_display_info to union.
18834 * terminal.c (Fterminal_live_p): Add ns to terminal types.
18835 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
18836 COCOA environment.
18837 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
18838 unexec() signature. (Note, this will dump, but the resulting file
18839 crashes; unexosx is used instead; keeping around for reference and
18840 possible aid in getting dump working under GNUstep.)
18841 * w32gui.h (button_type, widget_value): Remove definitions (now in
18842 keyboard.h).
18843 * window.c: Include nsterm.h when compiling under NS.
18844 * xdisp.c (includes): Include nsterm.h when compiling under NS.
18845 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
18846 other GUI windowing systems.
18847 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
18848 GTK.
18849 (x_consider_frame_title): Under NS, set icon type and frame
18850 modified-state indicator; use ns_set_name_as_filename() when using
18851 formatted title.
18852 (update_window_cursor): Make public when compiling under NS.
18853 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
18854 (hourglass_atimer, Vhourglass_delay
18855 * xfaces.c (header section, init_frame_faces, clear_font_table)
18856 (defined_color, unload_color, x_face_list_fonts)
18857 (prepare_face_for_display): Add NS support parallel to other GUIs.
18858 Emulate GCs like other non-X GUIs.
18859 (split_font_name): Don't lowercase font name under NS.
18860 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
18861 under NS.
18862 * s/darwin.h: Add support for compilation under NS.
18863
18864 2008-07-15 Jason Rumney <jasonr@gnu.org>
18865
18866 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
18867 (w32_show_hourglass): Rename from show_hourglass.
18868 (w32_hide_hourglass): Rename from hide_hourglass.
18869 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
18870 (Vhourglass_delay): Declare extern.
18871 (hourglass_started): Remove.
18872
18873 * xdisp.c (Vhourglass_delay): Remove static.
18874 (hourglass_started, start_hourglass, cancel_hourglass):
18875 Don't include these versions on WINDOWSNT.
18876
18877 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18878
18879 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
18880 variables (formerly in xfns.c).
18881 (show_hourglass, hide_hourglass): New prototypes (same).
18882 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
18883 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
18884 in xfns.c).
18885 (syms_of_xdisp): Declare/initialize display-hourglass,
18886 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
18887 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
18888 formerly in xfns.c.
18889 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18890 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18891 (start_hourglass, cancel_hourglass): Remove.
18892 (show_hourglass, hide_hourglass): Remove prototypes and static
18893 modifiers.
18894 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
18895 hourglass_atimer, hourglass_shown_p declaration/initialization.
18896 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18897 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18898 (start_hourglass, cancel_hourglass): Remove.
18899 (show_hourglass, hide_hourglass): Remove prototypes and static
18900 modifiers.
18901 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
18902 hourglass_atimer, hourglass_shown_p declaration/initialization.
18903 * w32fns.c (display_hourglass_p, Vhourglass_delay)
18904 (DEFAULT_HOURGLASS_DELAY): Remove.
18905 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
18906 hourglass_shown_p declaration/initialization.
18907
18908 2008-07-14 Jason Rumney <jasonr@gnu.org>
18909
18910 * w32fns.c (w32_get_arg): Remove wrapper function.
18911 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
18912 directly.
18913 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
18914
18915 2008-07-14 Kenichi Handa <handa@m17n.org>
18916
18917 * xfont.c (xfont_open): Add workaround for X's bug.
18918
18919 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18920
18921 * fontset.c: Include <stdio.h> unconditionally.
18922
18923 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
18924
18925 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
18926 for filtering.
18927
18928 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
18929
18930 * s/vms.h: Use __GNUC__ instead of _GNUC_.
18931
18932 * m/macppc.h:
18933 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
18934
18935 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
18936 (SPECIAL_EMACS_INT):
18937 * m/ia64.h (SPECIAL_EMACS_INT):
18938 * m/amdx86-64.h (SPECIAL_EMACS_INT):
18939 * s/gnu.h (NLIST_STRUCT):
18940 * s/aix4-2.h (X11R5_INHIBIT_I18N):
18941 * s/gnu-linux.h (LINUX):
18942 * s/msdos.h (HAVE_FACES):
18943 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
18944
18945 * systty.h:
18946 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
18947 anymore.
18948
18949 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
18950
18951 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
18952 always defined as int.
18953
18954 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
18955 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
18956 * s/gnu-linux.h (HAVE_WAIT_HEADER):
18957 * s/freebsd.h (HAVE_WAIT_HEADER):
18958 * s/bsd-common.h (HAVE_UNION_WAIT):
18959 * s/aix4-2.h (HAVE_WAIT_HEADER):
18960 * m/mips.h (HAVE_UNION_WAIT):
18961 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18962 (COFF, static): Do not define, they are undefined later in the file.
18963
18964 * process.c (update_status): Don't use a union.
18965 (status_convert):
18966 (sigchld_handler): Use int instead of WAITTYPE.
18967
18968 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
18969
18970 * indent.c (Fvertical_motion): Restore hscroll before moving to
18971 goal column.
18972
18973 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18974
18975 * lisp.h: Remove left over code.
18976
18977 2008-07-11 Andreas Schwab <schwab@suse.de>
18978
18979 * lisp.h: Fix logic in last change.
18980
18981 * menu.h: New file.
18982 * menu.c: Include it.
18983 * xmenu.c: Likewise.
18984 * Makefile.in: Update dependencies.
18985
18986 2008-07-11 Kenichi Handa <handa@m17n.org>
18987
18988 * fontset.c (fontset_from_font): Cancel the previous change.
18989
18990 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18991
18992 * lisp.h:
18993 * w32heap.c:
18994 * emacs.c:
18995 * alloc.c: Replace all references of NO_UNION_TYPE with
18996 USE_LISP_UNION_TYPE.
18997
18998 * m/xtensa.h (NO_UNION_TYPE):
18999 * m/vax.h (NO_UNION_TYPE):
19000 * m/template.h (NO_UNION_TYPE):
19001 * m/sparc.h (NO_UNION_TYPE):
19002 * m/mips.h (NO_UNION_TYPE):
19003 * m/macppc.h (NO_UNION_TYPE):
19004 * m/m68k.h (NO_UNION_TYPE):
19005 * m/iris4d.h (NO_UNION_TYPE):
19006 * m/intel386.h (NO_UNION_TYPE):
19007 * m/ibms390x.h (NO_UNION_TYPE):
19008 * m/ibms390.h (NO_UNION_TYPE):
19009 * m/ibmrs6000.h (NO_UNION_TYPE):
19010 * m/ia64.h (NO_UNION_TYPE):
19011 * m/hp800.h (NO_UNION_TYPE):
19012 * m/arm.h (NO_UNION_TYPE):
19013 * m/amdx86-64.h (NO_UNION_TYPE):
19014 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19015 defining it the same.
19016
19017 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
19018
19019 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19020
19021 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19022
19023 * fileio.c:
19024 * sysdep.c:
19025 * systty.h:
19026 * m/ibmrs6000.h:
19027 * m/iris4d.h:
19028 * s/aix4-2.h:
19029 * s/freebsd.h:
19030 * s/gnu-linux.h:
19031 * s/hpux10-20.h:
19032 * s/hpux11.h:
19033 * s/netbsd.h:
19034 * s/sol2-3.h:
19035 * s/sol2-4.h:
19036 * s/sol2.h:
19037 * s/usg5-4.h:
19038 * s/vms.h: Remove references to unused variables.
19039
19040 2008-07-10 Andreas Schwab <schwab@suse.de>
19041
19042 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19043 pattern before matching the generic family.
19044
19045 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19046
19047 * unexec.c:
19048 * s/vms.h:
19049 * s/usg5-4-2.h:
19050 * s/sol2-5.h:
19051 * s/freebsd.h:
19052 * s/darwin.h: Remove dead code.
19053
19054 * m/template.h:
19055 * m/sparc.h:
19056 * m/mips.h:
19057 * m/m68k.h:
19058 * m/iris4d.h:
19059 * m/intel386.h:
19060 * m/ibms390x.h:
19061 * m/ibms390.h:
19062 * m/ia64.h:
19063 * m/hp800.h:
19064 * m/arm.h:
19065 * m/amdx86-64.h: Remove dead code and references to unused
19066 and compiler defined symbols.
19067
19068 * unexmips.c:
19069 * unexelf.c: Remove references to desupported systems.
19070
19071 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19072
19073 * m/powermac.h: Remove boilerplate comments.
19074 (NO_REMAP): Remove unused definition.
19075
19076 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19077 define them.
19078
19079 2008-07-10 Kenichi Handa <handa@m17n.org>
19080
19081 * xfont.c (xfont_open): Log the reason of failure.
19082
19083 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19084
19085 * fontset.c (fontset_get_font_group):
19086 * font.c (font_check_otf): Specify argument types.
19087
19088 2008-07-09 Kenichi Handa <handa@m17n.org>
19089
19090 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19091 non-ASCII char is found.
19092
19093 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19094 (reorder_font_vector): Change the arg preferred_family to font.
19095 Prefer the spec matching with font.
19096 (fontset_get_font_group): New function.
19097 (fontset_find_font): Change the format of an element of a realized
19098 fontset. Use fontset_get_font_group.
19099 (fontset_font): Try the current fontset, the default fontset, the
19100 fallbacks of the current fontset, and the fallbacks of the default
19101 fontset in this order.
19102 (face_for_char): Delete the shortcut to use the current font.
19103 (fontset_from_font): Don't set fonts for Latin in the fontset.
19104
19105 * font.h (font_make_object, font_match_p): Adjust prototypes.
19106
19107 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19108
19109 * font.c (font_make_object): New arg entity and pixelsize.
19110 (font_check_otf_features, font_check_otf): New functions.
19111 (font_match_p): Check :lang, :script, and :otf properties.
19112
19113 * xfont.c (xfont_open): Adjust it for the change of
19114 font_make_object.
19115 (xfont_text_extents): Fix initial setting of metrics.
19116
19117 * ftfont.c (struct ftfont_info): New member index, delete member
19118 fc_charset_idx. Make the member order compatible with struct
19119 xftfont_info.
19120 (fc_charset_table): Change charset names to registry names.
19121 (ftfont_pattern_entity): Delete the args registry and
19122 fc_charset_idx. Change the value of :font-entity property
19123 to (FONTNAME . INDEX). Always set :registry property to
19124 `iso10646-1'.
19125 (struct ftfont_cache_data): New struct.
19126 (ftfont_lookup_cache): New arg for_face.
19127 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19128 (ftfont_driver): Set the member otf_capability.
19129 (ftfont_get_charset): Adjust it for the change of
19130 fc_charset_table.
19131 (OTF_TAG_SYM): New macro.
19132 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19133 for the change of fc_charset_table.
19134 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19135 ftfont_pattern_entity. Add FC_INDEX to objset.
19136 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19137 and ftfont_pattern_entity.
19138 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19139 font_make_object, struct ftfont_info.
19140 (ftfont_has_char): Use ftfont_get_fc_charset.
19141 (ftfont_otf_features, ftfont_otf_capability): New functions.
19142 (ftfont_shape): Use ftfont_get_otf.
19143 (ftfont_text_extents): Fix initial setting of metrics.
19144
19145 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19146 member order compatible with struct ftfont_info.
19147 (xftfont_open): Add FC_CHARSET to the pattern.
19148 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
19149 properties if appropriate.
19150 (xftfont_close): Unlock the face.
19151 (xftfont_anchor_point, xftfont_shape): Deleted.
19152 (syms_of_xftfont): Don't set members anchor_point and shape of
19153 xftfont_driver.
19154
19155 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19156 font_make_object.
19157
19158 * w32font.c (w32font_open): Adjust it for the change of
19159 font_make_object.
19160 (w32font_open_internal): Don't set properties of font_object here.
19161
19162 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
19163
19164 * macfns.c (x_create_tip_frame):
19165 * w32fns.c (x_create_tip_frame):
19166 * xfns.c (x_create_tip_frame): Pass parameter argument to
19167 face-set-after-frame-default.
19168
19169 * xfaces.c (Finternal_merge_in_global_face): Save merged
19170 attributes for the default face back into the face vector.
19171
19172 2008-07-08 Andreas Schwab <schwab@suse.de>
19173
19174 * fontset.h: Declare fontset_from_font. Don't declare
19175 new_fontset_from_font and fontset_from_font_name.
19176 * xterm.c: Include "fontset.h".
19177 * Makefile.in (xterm.o): Update dependencies.
19178
19179 2008-07-08 Glenn Morris <rgm@gnu.org>
19180
19181 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19182 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19183
19184 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
19185
19186 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19187 (x_set_frame_parameters): Don't bind it.
19188
19189 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
19190
19191 * w32fns.c (map_w32_filename): Declare extern.
19192
19193 2008-07-07 Jason Rumney <jasonr@gnu.org>
19194
19195 * w32term.c (WS_EX_LAYERED): Define if not already.
19196
19197 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
19198
19199 * xfaces.c (set_font_frame_param): Don't try to set the font
19200 parameter if it is still unspecified in the lface.
19201
19202 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19203
19204 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19205 face if it didn't already exist.
19206
19207 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19208
19209 2008-07-05 Andreas Schwab <schwab@suse.de>
19210
19211 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19212
19213 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19214
19215 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19216 word-wrapping.
19217 (IT_DISPLAYING_WHITESPACE): New macro.
19218 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19219 when word-wrapping. Simplify word-wrapping logic. Use correct
19220 pixel positions when saving copies of the iterator.
19221 (display_line): Use proper wrap point if the last character on a
19222 line was preceded by whitespace.
19223
19224 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19225
19226 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19227
19228 2008-07-04 Kenichi Handa <handa@m17n.org>
19229
19230 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19231
19232 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19233
19234 2008-07-02 Jason Rumney <jasonr@gnu.org>
19235
19236 * xfns.c (syms_of_xfns): Only define x-select-font when both
19237 HAVE_FREETYPE and USE_GTK.
19238
19239 * xdisp.c (next_element_from_display_vector): Move assignment out
19240 of if statement.
19241
19242 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19243
19244 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19245
19246 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19247 (syms_of_fileio): Initialize and export them.
19248 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19249
19250 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19251 (Fsystem_move_file_to_trash): New function.
19252 (syms_of_w32fns): Export it to lisp.
19253
19254 2008-07-01 Jason Rumney <jasonr@gnu.org>
19255
19256 * w32font.c (w32font_text_extents): Don't count overhang as part
19257 of width.
19258
19259 2008-06-30 Miles Bader <miles@gnu.org>
19260
19261 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19262 Add `avoid_cursor_p' field.
19263
19264 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19265 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19266 (append_glyph, append_composite_glyph, produce_image_glyph)
19267 (append_stretch_glyph): Initialize avoid_cursor_p.
19268 (get_it_property): Rename from `get_line_height_property'.
19269 (x_produce_glyphs): Use get_it_property.
19270 (handle_line_prefix, push_display_prop): New functions.
19271 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19272 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19273 New variables.
19274 (syms_of_xdisp): Initialize them.
19275
19276 2008-06-30 Kenichi Handa <handa@m17n.org>
19277
19278 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19279 XftDefaultSubstitute (they are called in XftFontMatch).
19280 (xftfont_open): Fix args to ftfont_font_format.
19281
19282 * ftfont.c (fc_charset_table): New member lang.
19283 (ftfont_resolve_generic_family): New arg pattern.
19284 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19285 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19286 (ftfont_open): Fix args to ftfont_font_format.
19287 (ftfont_font_format): New arg filename.
19288
19289 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
19290
19291 * xfaces.c (Finternal_merge_in_global_face): If default face was
19292 modified, realize it again. Update the font face attribute.
19293
19294 2008-06-29 Jason Rumney <jasonr@gnu.org>
19295
19296 * w32term.c (x_set_frame_alpha): Fix logic.
19297
19298 2008-06-29 Kenichi Handa <handa@m17n.org>
19299
19300 * fontset.c (Finternal_char_font): Return font-object instead of
19301 font-name.
19302
19303 * composite.c (get_composition_id): Fix the width calculation for TAB.
19304
19305 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19306
19307 * indent.c (Fvertical_motion): Properly handle float column arg.
19308
19309 2008-06-28 Jason Rumney <jasonr@gnu.org>
19310
19311 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19312 (pfnSetLayeredWindowAttributes): New function pointer.
19313 (w32_initialize): Initialize it when supported.
19314 (x_set_frame_alpha): New function.
19315
19316 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19317 (w32_frame_parm_handlers): Set alpha handler.
19318
19319 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19320
19321 2008-06-27 Jason Rumney <jasonr@gnu.org>
19322
19323 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19324 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19325 (w32_to_x_charset, x_to_w32_charset)
19326 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19327 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19328 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19329 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19330 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19331 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19332 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19333 (Qw32_charset_unicode): Remove.
19334 (syms_of_w32fns): Update for above changes.
19335
19336 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19337 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19338 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19339 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19340 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19341 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19342 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19343 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19344 (syms_of_w32font): Update for above changes.
19345
19346 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19347
19348 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19349 removed #if.
19350 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19351
19352 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19353 Eli Zaretskii <eliz@gnu.org>
19354
19355 * makefile.w32-in (LOCAL_FLAGS):
19356 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19357
19358 * sysdep.c (_spawnlp, _getpid):
19359 Declare with explicit _cdecl instead of _CRTAPI1.
19360
19361 * editfns.c (Fget_internal_run_time):
19362 Check for WINDOWSNT with #ifdef, not #if.
19363
19364 2008-06-26 Jason Rumney <jasonr@gnu.org>
19365
19366 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19367
19368 * w32term.c (x_draw_glyph_string_foreground)
19369 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19370 Use FONT_HANDLE macro.
19371 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19372
19373 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19374 (uniscribe_encode_char): Use FONT_HANDLE macro.
19375
19376 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19377 (w32font_text_extents): Use precast w32_font.
19378 (w32font_close): Free cached metrics.
19379 (w32font_open_internal): Allocate space for name on stack.
19380
19381 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
19382
19383 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19384
19385 2008-06-26 Jason Rumney <jasonr@gnu.org>
19386
19387 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19388 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19389
19390 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19391
19392 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19393
19394 2008-06-26 Jason Rumney <jasonr@gnu.org>
19395
19396 * w32bdf.c, w32bdf.h: Remove obsolete files.
19397
19398 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19399
19400 * w32gui.h: Don't include w32bdf.h.
19401 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19402 Remove obsolete font support.
19403
19404 * w32font.h (struct w32font_info): Remove compat_w32_font.
19405 Add hfont member.
19406 (FONT_COMPAT): Remove obsolete macro.
19407
19408 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19409 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19410 (w32font_open_internal): Remove compat code. Set new hfont member.
19411 (Fx_select_font): Use new hfont member.
19412
19413 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19414 (uniscribe_encode_char): Use new hfont member.
19415
19416 * w32term.c (x_draw_glyph_string_foreground)
19417 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19418 (x_draw_glyph_string): Use metrics in w32font_info.
19419
19420 2008-06-26 Kenichi Handa <handa@m17n.org>
19421
19422 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19423
19424 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19425
19426 * unexnext.c:
19427 * m/ews4800.h:
19428 * m/hp9000s300.h:
19429 * m/ibm370aix.h:
19430 * m/mips-siemens.h:
19431 * m/ncr386.h:
19432 * m/next.h:
19433 * m/pmax.h:
19434 * m/powerpcle.h:
19435 * m/tandem-s2.h:
19436 * s/386bsd.h:
19437 * s/bsd386.h:
19438 * s/bsd4-1.h:
19439 * s/bsd4-2.h:
19440 * s/bsdos2-1.h:
19441 * s/bsdos2.h:
19442 * s/bsdos3.h:
19443 * s/bsdos4.h:
19444 * s/nextstep.h:
19445 * s/ultrix4-3.h:
19446 * s/usg5-0.h:
19447 * s/usg5-2-2.h:
19448 * s/usg5-2.h:
19449 * s/usg5-4-3.h:
19450 * s/ux4800.h:
19451 * s/uxpds.h:
19452 * s/uxpv.h: Remove support for obsolete systems.
19453 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
19454 Remove, insert contents in s/hpux10-20.h.
19455 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19456 Remove, insert contents in s/aix4-2.h.
19457 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19458 * s/bsd4-3.h: Rename to ...
19459 * s/bsd-common.h: ... this.
19460 * data.c:
19461 * doc.c:
19462 * ecrt0.c:
19463 * emacs.c:
19464 * fileio.c:
19465 * floatfns.c:
19466 * keyboard.c:
19467 * mem-limits.h:
19468 * print.c:
19469 * process.c:
19470 * sysdep.c:
19471 * syssignal.h:
19472 * systty.h:
19473 * syswait.h:
19474 * term.c:
19475 * unexec.c:
19476 * unexelf.c:
19477 * unexhp9k800.c:
19478 * m/hp800.h:
19479 * m/ibmrs6000.h:
19480 * m/mips.h:
19481 * m/vax.h:
19482 * s/darwin.h:
19483 * s/freebsd.h:
19484 * s/gnu.h:
19485 * s/ms-w32.h:
19486 * s/msdos.h:
19487 * s/netbsd.h:
19488 * s/template.h: Remove references to obsolete variables.
19489
19490 * Makefile.in: Add dependencies for all unexec files.
19491 (admindir): Remove unused variable.
19492 (UNEXEC_SRC): Remove references.
19493
19494 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
19495
19496 * xfns.c (x_default_font_parameter): If Xft is available, first
19497 try Monospace-12 for the default font.
19498
19499 2008-06-25 Jason Rumney <jasonr@gnu.org>
19500
19501 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19502
19503 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19504
19505 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19506
19507 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19508
19509 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
19510
19511 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19512 <scroll-conservatively>: Fix typo in docstring.
19513
19514 * xselect.c (Fx_send_client_event): Doc fix.
19515
19516 2008-06-25 Kenichi Handa <handa@m17n.org>
19517
19518 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19519
19520 * font.c (font_parse_fcname): Remove unused variables.
19521 (font_sort_entites): Delete the arg SPEC. Caller changed.
19522 Fix for the case of ! best_only.
19523 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19524
19525 * lisp.h (Fstring_to_unibyte): EXFUN it.
19526
19527 * character.h (str_to_unibyte): Extern it.
19528
19529 * character.c (str_to_unibyte): New function.
19530
19531 * fns.c (Fstring_to_unibyte): New function.
19532 (syms_of_fns): Defsubr it.
19533
19534 2008-06-24 Kenichi Handa <handa@m17n.org>
19535
19536 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19537 DPI too.
19538 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19539
19540 2008-06-24 Andreas Schwab <schwab@suse.de>
19541
19542 * Makefile.in (${lispsource}loaddefs.el): Rename from
19543 ../lisp/loaddefs.el.
19544 (bootstrap-clean): Do what distclean does but don't remove
19545 Makefile.
19546 (distclean): Depend on bootstrap-clean and remove Makefile.
19547
19548 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
19549
19550 * buffer.h (struct buffer): New member word_wrap.
19551
19552 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19553 word-wrap.
19554 (init_buffer_once): Initialize them.
19555
19556 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19557 line_wrap enum possessing three possible values.
19558
19559 * termopts.h: Replace truncate_partial_width_windows with
19560 Vtruncate_partial_width_windows.
19561
19562 * dispnew.c (direct_output_for_insert): Avoid direct output when
19563 inserting a space with word wrap on.
19564
19565 * indent.c (compute_motion): Obey integer values of
19566 truncate-partial-width-windows.
19567
19568 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19569 replacing truncate_partial_width_windows.
19570 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19571 truncate only if the window width is below that integer.
19572 (start_display, resize_mini_window, produce_stretch_glyph)
19573 (display_string, move_it_in_display_line_to): Use line_wrap.
19574 (back_to_previous_visible_line_start, reseat_1):
19575 Reset string_from_display_prop_p.
19576 (display_line): Extend default face to end of line when wrapping.
19577
19578 2008-06-24 Kim F. Storm <storm@cua.dk>
19579
19580 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19581 to wrap continued lines at word boundaries.
19582
19583 2008-06-24 Jason Rumney <jasonr@gnu.org>
19584
19585 * font.c (Ffont_face_attributes): Multiply pixel size before point
19586 conversion to avoid multiplying rounding error.
19587
19588 2008-06-23 Jason Rumney <jasonr@gnu.org>
19589
19590 * w32term.c (x_draw_glyph_string_background)
19591 (x_draw_glyph_string): Remove old bdf font code.
19592
19593 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19594
19595 2008-06-22 Kenichi Handa <handa@m17n.org>
19596
19597 * font.c (font_find_for_lface): Try the adstyle specified in
19598 the property of LFACE_FONT of LFACE (if any).
19599
19600 2008-06-21 Seiji Zenitani <zenitani@mac.com>
19601 Ryo Yoshitake <ryo@shiftmode.net>
19602
19603 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19604
19605 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19606
19607 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19608 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19609 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19610 (witness-emacs): Remove.
19611 (lisp, shortlisp): Move loaddefs.el earlier.
19612 (mostlyclean): Forget about witness-emacs.
19613
19614 2008-06-22 Glenn Morris <rgm@gnu.org>
19615
19616 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19617 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19618
19619 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19620
19621 * Makefile.in (PRECOMP): Remove.
19622 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19623 (witness-emacs): Run `compile-first'.
19624 (.el.elc): Use the new compile-onefile target.
19625
19626 2008-06-21 Kenichi Handa <handa@m17n.org>
19627
19628 * xftfont.c (xftfont_open): Handle QCembolden only when
19629 FC_EMBOLDEN is defined.
19630
19631 2008-06-21 Andreas Schwab <schwab@suse.de>
19632
19633 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19634 (.el.elc): Likewise.
19635
19636 2008-06-21 Miles Bader <miles@gnu.org>
19637
19638 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19639 build dir, not the lisp source dir.
19640
19641 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19642
19643 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19644 (bootstrapclean): Remove.
19645 (.el.elc): New rule.
19646 (PRECOMP): New var.
19647 (../lisp/subdirs.el): Remove.
19648 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19649 (witness-emacs): New target.
19650 (mostlyclean): Remove witness-emacs as well.
19651 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19652 Add witness-emacs dependency.
19653
19654 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
19655
19656 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19657 defined by the font.
19658
19659 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19660
19661 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19662 (bootstrap-clean): New target that keeps TAGS around.
19663 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19664 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19665
19666 2008-06-20 Jason Rumney <jasonr@gnu.org>
19667
19668 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19669 Remove obsolete font code.
19670
19671 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19672 to determine language support.
19673
19674 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19675
19676 * sysdep.c (cfsetspeed): New fun extracted from the code.
19677 (cfmakeraw): Move before first use.
19678
19679 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19680
19681 * sysdep.c (cfmakeraw): Provide fallback implementation.
19682 (serial_configure): Provide fallback implementation of cfsetspeed.
19683
19684 2008-06-20 Kenichi Handa <handa@m17n.org>
19685
19686 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19687 the pattern.
19688
19689 * fontset.c (fontset_from_font): Copy font_spec before changing
19690 the elements.
19691
19692 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19693
19694 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19695
19696 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19697 for explicit `font' parameters.
19698
19699 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19700
19701 2008-06-19 Kenichi Handa <handa@m17n.org>
19702
19703 * frame.c: Include <ctype.h>.
19704 (x_set_font_backend): Allow spacing characters in the X resource
19705 for FontBackend.
19706
19707 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19708
19709 * w32fns.c, xfns.c (Qfont_param): New var.
19710 (syms_of_w32fns): Initialize it.
19711 (x_default_font_parameter): Record explicit `font' into
19712 `font-parameter'.
19713
19714 2008-06-18 Kenichi Handa <handa@m17n.org>
19715
19716 * font.c (font_parse_xlfd): Fix previous change.
19717 (font_parse_fcname): Don't use :fc-unknown-spec.
19718 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19719 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19720 (font_add_log): Prepend the driver name to the resulting fonts.
19721
19722 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19723 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19724 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19725
19726 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19727 (QCembolden): New variables.
19728 (syms_of_xftfont): DEFSYM them.
19729 (xftfont_open): Call XftFontMatch. Don't trust the result of
19730 XftTextExtents8 if the pixel_size is less than 5.
19731
19732 2008-06-18 Andreas Schwab <schwab@suse.de>
19733
19734 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19735 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19736
19737 2008-06-18 Jason Rumney <jasonr@gnu.org>
19738
19739 * w32font.c (w32font_list, w32font_match): Add logging.
19740
19741 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19742
19743 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
19744
19745 * font.c (font_parse_fcname): Store divider characters for
19746 unknown-spec list. For known key symbols, intern using correct
19747 symbol name.
19748
19749 2008-06-17 Kenichi Handa <handa@m17n.org>
19750
19751 * xfaces.c (realize_default_face): If the frame is not on window
19752 system, set the fontset of face to nil.
19753
19754 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19755
19756 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
19757
19758 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
19759
19760 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
19761 (build_font_name_from_vector): Delete externs.
19762
19763 * xfaces.c (struct font_name): Don't declare.
19764
19765 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
19766
19767 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
19768
19769 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
19770
19771 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
19772
19773 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
19774
19775 * font.c (Ffont_spec): Fix usage in docstring.
19776 (Ffont_face_attributes): Doc fix.
19777
19778 2008-06-16 Andreas Schwab <schwab@suse.de>
19779
19780 * font.c (Ffont_face_attributes): Fix definition.
19781
19782 2008-06-16 Jason Rumney <jasonr@gnu.org>
19783
19784 * font.h (font_style_symbolic_from_value): Remove.
19785
19786 * font.c (font_style_symbolic_from_value): Remove.
19787 (font_style_symbolic): Revert to pre 2008-06-13 version.
19788
19789 * w32font.c (w32_to_fc_weight): New function.
19790 (w32font_full_name, logfont_to_fcname): Use it.
19791
19792 2008-06-16 Kenichi Handa <handa@m17n.org>
19793
19794 * font.c (font_check_object): Delete it.
19795 (font_clear_cache): Check if a font-object is alive.
19796 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
19797 font-object to nil.
19798 (font_close_object): Don't check FONT_CLOSE_OBJECT.
19799 (font_at): Don't call font_check_object.
19800 (Ffont_get): Return a symbol for :weight, :slant, and :width.
19801
19802 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
19803
19804 * puresize.h (BASE_PURESIZE): Increase to 1230000.
19805
19806 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
19807
19808 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
19809
19810 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
19811
19812 * font.c (font_parse_fcname): Only one decimal point.
19813 (font_unparse_fcname): Handle data in family and foundry indices
19814 as symbols, not strings.
19815 (font_unparse_gtkname, Ffont_face_attributes): New functions.
19816
19817 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
19818
19819 * font.h (font_unparse_gtkname): Add prototype.
19820
19821 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19822
19823 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
19824
19825 2008-06-15 Andreas Schwab <schwab@suse.de>
19826
19827 * font.c (font_update_drivers): Fix crash when no drivers match.
19828
19829 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
19830
19831 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
19832 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
19833
19834 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
19835
19836 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
19837
19838 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
19839
19840 * process.c (Fserial_process_configure, Fprocess_send_eof):
19841 Use EQ to compare Lisp_Objects.
19842
19843 2008-06-13 Jason Rumney <jasonr@gnu.org>
19844
19845 * w32fns.c (Fw32_select_font): Remove old font API function.
19846
19847 * w32font.c (logfont_to_fcname): New function.
19848 (Fx_select_font): New font dialog function compatible with
19849 GTK/fontconfig version.
19850
19851 * font.c (font_style_symbolic_from_value): New function.
19852 (font_style_symbolic): Use it.
19853
19854 * font.h (font_style_symbolic_from_value): Declare new function.
19855
19856 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
19857
19858 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
19859 <font-width-table>: Fix typos in docstrings.
19860
19861 2008-06-13 Daniel Engeler <engeler@gmail.com>
19862
19863 These changes add serial port access.
19864 * process.c: Add HAVE_SERIAL.
19865 (Fdelete_process, Fprocess_status, Fset_process_buffer)
19866 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
19867 (list_processes_1, select_wrapper, Fstop_process)
19868 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
19869 (status_notify): Modify to handle serial processes.
19870 [HAVE_SERIAL] (Fserial_process_configure)
19871 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
19872 New functions.
19873 * process.h (struct Lisp_Process): Add `type'.
19874 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
19875 New functions.
19876 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
19877 serial ports.
19878 (serial_open, serial_configure): New functions.
19879 * w32.h: Add FILE_SERIAL.
19880 (struct _child_process): Add ovl_read, ovl_write.
19881
19882 2008-06-13 Kenichi Handa <handa@m17n.org>
19883
19884 * dispextern.h (enum lface_attribute_index): New member
19885 LFACE_FOUNDRY_INDEX.
19886
19887 * font.c (font_score): Delete arg alternate_families. Check only
19888 weight, slant, width, and size. Ignore the difference of alias
19889 style symbols.
19890 (font_sort_entites): Adjust for the above change. Reflect the
19891 order of font-driver to scores.
19892 (font_list_entities): Don't check alternate_familes here.
19893 (font_clear_prop): Handle foundry.
19894 (font_update_lface): Don't parse "foundry-family" form here.
19895 Handle FONT_FOUNDRY_INDEX.
19896 (font_find_for_lface): Likewise. Handle alternate families here.
19897 If registry is nil, try iso8859-1 and ascii-0.
19898 (font_open_for_lface): Pay attention to size in ENTITY.
19899 (font_open_by_name): Simplify by calling font_load_for_lface.
19900 (free_font_driver_list): Delete it.
19901 (font_update_drivers): Preserve the order of backends.
19902 (syms_of_font): Setting of sort_shift_bits adjusted for the change
19903 of font_score and font_sort_entites.
19904 (font_update_sort_order): Likewise.
19905
19906 * xfaces.c (LFACE_FOUNDRY): New macro.
19907 (check_lface_attrs): Check foundry.
19908 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
19909 (merge_face_vectors): Check foundry.
19910 (merge_face_ref): Likewise.
19911 (Finternal_set_lisp_face_attribute): Likewise.
19912 (x_update_menu_appearance): Likewise.
19913 (Finternal_get_lisp_face_attribute): Likewise.
19914 (lface_hash): Likewise.
19915 (lface_same_font_attributes_p): Likewise.
19916 (x_supports_face_attributes_p): Likewise.
19917 (tty_supports_face_attributes_p): Likewise.
19918 (Finternal_set_alternative_font_family_alist): Intern strings.
19919 (Finternal_set_alternative_font_registry_alist): Downcase strings.
19920 (realize_default_face): Set LFACE_FOUNDRY (lface).
19921
19922 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
19923 font-driver at first.
19924
19925 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
19926
19927 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19928
19929 * lread.c (Fload): Use xfree, not free on saved_doc_string.
19930
19931 2008-06-12 Jim Meyering <meyering@redhat.com>
19932
19933 Make unexec_free handle NULL the same way free does.
19934 * unexmacosx.c (unexec_free): Ignore a NULL argument.
19935
19936 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19937
19938 * character.h (CHAR_TO_BYTE_SAFE): New macro.
19939 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
19940 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
19941 (WEAK_ALIAS): Simplify.
19942 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
19943 when searching a unibyte buffer.
19944
19945 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
19946
19947 * xfns.c (Fx_select_font): Rename from x-font-dialog.
19948
19949 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
19950
19951 * w32font.c: Include ctype.h.
19952
19953 2008-06-11 Jason Rumney <jasonr@gnu.org>
19954
19955 * w32font.c (w32font_encode_char): Detect missing glyphs that are
19956 misreported as space.
19957 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
19958 as aliases for registry iso10646-1.
19959
19960 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19961
19962 * buffer.c (clone_per_buffer_values): Skip `name'.
19963
19964 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
19965
19966 * font.c (font_parse_fcname): Fix last change; accept decimal
19967 points in font size.
19968
19969 2008-06-10 Jason Rumney <jasonr@gnu.org>
19970
19971 * w32uniscribe.c (add_opentype_font_name_to_list):
19972 Skip non unicode fonts.
19973
19974 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
19975
19976 * xfns.c (Fx_font_dialog): New function.
19977
19978 * gtkutil.c (xg_dialog_response_cb): Rename from
19979 xg_file_response_callback.
19980 (pop_down_dialog): Rename from pop_down_file_dialog.
19981 (xg_get_file_name): Callers changed.
19982 (xg_get_font_name): New function.
19983
19984 * gtkutil.h (xg_get_font_name): Insert prototype.
19985
19986 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19987
19988 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19989 x_underline_minimum_display_offset.
19990 (syms_of_xdisp): Declare it here rather than in xterm.c.
19991 * dispextern.h (underline_minimum_offset): Declare it.
19992 * w32term.c (x_draw_glyph_string): Use it.
19993 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
19994 (syms_of_xterm): Don't declare it any more.
19995 (x_draw_glyph_string): Adjust to the new name.
19996
19997 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
19998
19999 * xterm.c (x_underline_minimum_display_offset): New var.
20000 (x_draw_glyph_string): Use it.
20001 (syms_of_xterm): Declare it.
20002
20003 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20004
20005 * font.c (font_parse_fcname): Accept GTK-style font names too.
20006
20007 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20008
20009 * dired.c (file_name_completion): Don't return t if the match is exact
20010 but with different capitalization.
20011 * minibuf.c (Ftry_completion): Simplify.
20012
20013 * window.c (Vwindow_point_insertion_type): New var.
20014 (set_window_buffer): Use it.
20015 (syms_of_window): Init and export it to Lisp.
20016
20017 2008-06-10 Kenichi Handa <handa@m17n.org>
20018
20019 * font.h (font_intern_prop): Prototype adjusted.
20020
20021 * font.c (font_intern_prop): New arg force_symbol.
20022 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20023 Adjust for the change of font_intern_prop.
20024
20025 * ftfont.c (ftfont_pattern_entity):
20026 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20027 (w32_registry):
20028 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20029 the change of font_intern_prop.
20030
20031 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
20032
20033 * w32menu.c (digest_single_submenu): Declare extern.
20034
20035 2008-06-09 Jason Rumney <jasonr@gnu.org>
20036
20037 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20038
20039 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20040 (parse_single_submenu): Remove.
20041 (digest_single_submenu): Remove.
20042 (syms_of_w32menu): Don't initialise variables that have moved
20043 to menu.c.
20044 (set_frame_menubar): Sync with version in xmenu.c.
20045 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20046
20047 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20048 Make static again.
20049
20050 2008-06-09 Jason Rumney <jasonr@gnu.org>
20051
20052 Changes to w32 files related to the move of common menu code
20053 to menu.c on 2008-06-08 by Chong Yidong.
20054
20055 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20056 defs to w32gui.h.
20057 (single_keymap_panes, push_menu_item, push_menu_pane):
20058 Make globally visible.
20059
20060 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20061 (local_free, malloc_widget_value, free_widget_value)
20062 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20063 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20064 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20065 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20066 (menu_items, menu_items_allocated, menu_items_used)
20067 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20068 (init_menu_items, finish_menu_items, discard_menu_items)
20069 (grow_menu_items, push_submenu_start, push_submenu_end)
20070 (push_left_right_boundary, push_menu_pane, push_menu_item)
20071 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20072 (free_menubar_widget_tree_value, parse_single_submenu)
20073 (update_submenu_strings): Remove functions.
20074 (xmalloc_widget_value): Remove and declare extern.
20075
20076 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20077 (OBJ1): Build it.
20078
20079 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20080 (local_heap, local_alloc, local_free, malloc_widget_value)
20081 (free_widget_value): Define here.
20082
20083 2008-06-09 Kenichi Handa <handa@m17n.org>
20084
20085 * font.h (Qascii_0): Extern it.
20086
20087 * font.c (Qascii_0): New variable.
20088 (syms_of_font): DEFSYM it.
20089 (font_open_by_name): If the registry "iso8859-1" fails, try also
20090 "ascii-0".
20091
20092 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20093
20094 2008-06-08 Kenichi Handa <handa@m17n.org>
20095
20096 * .gdbinit (xfont): New command.
20097
20098 2008-06-08 Andreas Schwab <schwab@suse.de>
20099
20100 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20101 * Makefile.in (menu.o): Update dependencies.
20102
20103 * Makefile.in (obj): Always add menu.o.
20104 * emacs.c (main): Always call syms_of_menu.
20105 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20106
20107 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
20108
20109 * Makefile.in: Compile menu.c.
20110
20111 * lisp.h: Declare syms_of_menu.
20112
20113 * emacs.c (main): Call syms_of_menu.
20114
20115 * keyboard.h: Relocate platform-independent menu definitions from
20116 xmenu.c.
20117
20118 * menu.c: New file. Relocate platform-independent menu
20119 definitions from xmenu.c. Suggested by Adrian Robert.
20120
20121 * xmenu.c: Remove platform-independent menu definitions.
20122 (menu_items, menu_items_inuse, menu_items_allocated)
20123 (menu_items_used, menu_items_n_panes)
20124 (menu_items_submenu_depth): Move to keyboard.h.
20125 (init_menu_items, finish_menu_items, unuse_menu_items)
20126 (discard_menu_items, restore_menu_items, save_menu_items)
20127 (grow_menu_items, push_submenu_start, push_submenu_end)
20128 (push_left_right_boundary, push_menu_pane, push_menu_item)
20129 (keymap_panes, single_keymap_panes, single_menu_item)
20130 (list_of_panes, list_of_items, find_and_call_menu_selection)
20131 (xmalloc_widget_value, free_menubar_widget_value_tree)
20132 (parse_single_submenu, digest_single_submenu)
20133 (update_submenu_strings): Move to menu.c.
20134
20135 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20136
20137 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20138
20139 2008-06-06 Miles Bader <miles@gnu.org>
20140
20141 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20142 face, not frame default.
20143
20144 2008-06-05 Martin Rudalics <rudalics@gmx.at>
20145
20146 * window.c (pop_up_windows, pop_up_frames)
20147 (display_buffer_reuse_frames, Vpop_up_frame_function)
20148 (Vdisplay_buffer_function, Veven_window_heights)
20149 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20150 (Vspecial_display_function, Vsame_window_buffer_names)
20151 (Vsame_window_regexps, split_height_threshold)
20152 (Vsplit_window_preferred_function): Move those vars to window.el.
20153 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20154 (Fdisplay_buffer): Move those functions to window.el.
20155 (syms_of_window): Remove corresponding declarations.
20156 (display_buffer): New function.
20157 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20158 * dispnew.c (Flast_nonminibuf_frame): New function.
20159 * buffer.c (Fpop_to_buffer): Move to window.el.
20160
20161 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20162
20163 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20164
20165 2008-06-05 Kenichi Handa <handa@m17n.org>
20166
20167 * coding.c (detect_coding): Fix previous change.
20168 (detect_coding_system): Likewise.
20169
20170 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20171
20172 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20173
20174 * keymap.c (Vminibuffer_local_filename_must_match_map):
20175 Rename from Vminibuffer_local_must_match_filename_map.
20176 (syms_of_keymap):
20177 * minibuf.c (Fcompleting_read): Adjust accordingly.
20178 * commands.h: Rename declaration as well.
20179
20180 2008-06-05 Kenichi Handa <handa@m17n.org>
20181
20182 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20183 family name.
20184 (Ffont_put): Likewise.
20185
20186 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20187 current font-spec.
20188
20189 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20190 is unspecified.
20191
20192 * xfaces.c (realize_x_face): If the font-related face attributes
20193 are the same as those of default face, realize a new fontset from
20194 default->fontset.
20195 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20196
20197 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20198
20199 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20200 (move_it_in_display_line): New wrapper.
20201
20202 * window.c (window_scroll_pixel_based_preserve_x)
20203 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20204 (window_scroll_pixel_based, window_scroll_line_based):
20205 Use them to preserve column positions.
20206 (syms_of_window): Initialize them.
20207
20208 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20209 (HPOS . VPOS) pair.
20210
20211 * dispextern.h (move_it_in_display_line): Declare.
20212
20213 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
20214
20215 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20216 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20217 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20218
20219 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
20220
20221 * window.c (Fset_window_parameter): Doc fix.
20222 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20223
20224 2008-06-04 Joakim Verona <joakim@verona.se>
20225
20226 * window.h (struct window): Add new member window_parameters.
20227
20228 * window.c (Fwindow_parameters, Fwindow_parameter)
20229 (Fset_window_parameter): New defuns.
20230 (syms_of_window): Defsubr the new defuns.
20231 (make_window): Initialize window_parameters to nil.
20232
20233 2008-06-04 John Paul Wallington <jpw@pobox.com>
20234
20235 * eval.c (Fdefmacro): Doc fix.
20236
20237 2008-06-04 Kenichi Handa <handa@m17n.org>
20238
20239 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20240 Be sure to call setup_coding_system when we find a proper coding system.
20241 (detect_coding_system): Fix handling of coding->head_ascii.
20242
20243 2008-06-03 Andreas Schwab <schwab@suse.de>
20244
20245 * font.c (font_prop_validate_spacing): Fix last change.
20246
20247 2008-06-03 Kenichi Handa <handa@m17n.org>
20248
20249 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20250 (font_parse_fcname): Fix handling of unknown key.
20251
20252 * xfont.c (xfont_list): Try an alias.
20253
20254 * charset.c (char_charset): Return NULL if the arg charset_list is
20255 specified and C doesn't belong to any of them.
20256
20257 2008-06-02 Chip Coldwell <coldwell@redhat.com>
20258
20259 * font.c (font_pixel_size): Don't take cdr of an integer.
20260
20261 2008-06-02 Jim Meyering <meyering@redhat.com>
20262
20263 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20264 * alloc.c (xfree): Return right away for a NULL arg.
20265 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20266 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20267 * mac.c (create_apple_event_from_event_ref): Likewise.
20268 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20269 Likewise.
20270 * doprnt.c (doprnt1): Likewise.
20271 * frame.c (frame): Likewise.
20272 * keyboard.c (wipe_kboard): Likewise.
20273 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20274 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20275 * term.c (tty_default_color_capabilities, maybe_fatal)
20276 (delete_tty): Likewise.
20277 * w16select.c (string): Likewise.
20278 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20279 * w32bdf.c (w32_free_bdf_font): Likewise.
20280 * w32fns.c (w32_unload_font): Likewise.
20281 * w32font.c (w32font_close): Likewise.
20282 * window.c (size_window): Likewise.
20283 * xselect.c (receive_incremental_selection): Likewise.
20284 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20285 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20286 * w32.c (stat): Likewise.
20287
20288 Remove useless if-before-free tests.
20289 * editfns.c (Fset_time_zone_rule): Likewise.
20290 * lread.c (nosuffix): Likewise.
20291 * ralloc.c (get_bloc): Likewise.
20292 * regex.c (reg_free): Likewise.
20293 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20294 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20295 * xsmfns.c (smc_save_yourself_CB): Likewise.
20296
20297 2008-06-02 Kenichi Handa <handa@m17n.org>
20298
20299 * font.c (font_find_for_lface): Handle float font size.
20300 (font_open_for_lface): Likewise.
20301
20302 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20303 comparing the properties.
20304
20305 2008-06-01 Jason Rumney <jasonr@gnu.org>
20306
20307 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20308 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20309 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20310 Don't add empty script list.
20311 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20312
20313 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20314
20315 * Makefile.in (dot, dotdot): Remove, update users.
20316 ".." has been used elsewhere in the file for a long time.
20317 (LIBXT_STATIC): Remove conditional based on unused variable.
20318
20319 2008-06-01 Miles Bader <miles@gnu.org>
20320
20321 * xfaces.c (Vface_remapping_alist): New variable.
20322 (syms_of_xfaces): Initialize it.
20323 (enum named_merge_point_kind): New type.
20324 (struct named_merge_point): Add `named_merge_point_kind' field.
20325 (push_named_merge_point): Make cycle detection respect different
20326 named-merge-point kinds.
20327 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20328 Remove face-name alias resolution.
20329 (lface_from_face_name): New definition using
20330 `lface_from_face_name_no_resolve'.
20331 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20332 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20333 (get_lface_attributes): New definition that layers face-remapping on
20334 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20335 (lookup_basic_face): New function.
20336 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20337 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20338 `get_lface_attributes'.
20339 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20340 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20341 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20342
20343 * xdisp.c (init_iterator): Pass base_face_id through
20344 `lookup_basic_face' when we actually use it as a face-id.
20345 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20346 DEFAULT_FACE_ID.
20347
20348 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20349 lookup the initial face-id.
20350
20351 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20352
20353 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
20354
20355 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20356 (Fremove_text_properties): Fix typos in docstrings.
20357
20358 2008-05-31 Kenichi Handa <handa@m17n.org>
20359
20360 * font.c (font_list_entities): Fix the car part of data to be
20361 stored in the cache.
20362
20363 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20364
20365 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20366
20367 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20368 Add a `test' argument so another predicate than `equal' can be used.
20369 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20370 (map_char_table): Remove unused vars `c' and `i'.
20371 * lisp.h (Foptimize_char_table): Adjust declaration.
20372 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20373
20374 2008-05-30 Kenichi Handa <handa@m17n.org>
20375
20376 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20377 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20378 defined.
20379
20380 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20381
20382 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20383 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20384 frame-local settings for the same variable.
20385
20386 2008-05-30 Kenichi Handa <handa@m17n.org>
20387
20388 * fontset.c (Ffont_info): Move to font.c.
20389 (syms_of_fontset): Delete defsubr of Sfont_info.
20390
20391 * font.c (font_style_to_value, font_score): Delete casting of the
20392 args to xstcasecmp.
20393 (register_font_driver): Increment num_font_drivers only when
20394 registering the driver globally.
20395 (Ffont_info): Move from fontset.c. Handle a font object too.
20396 (syms_of_font): Defsubr Sfont_info.
20397
20398 2008-05-29 Kenichi Handa <handa@m17n.org>
20399
20400 * coding.h (enum define_coding_utf8_arg_index): New enum.
20401 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20402 coding_attr_utf_bom.
20403 (enum utf_bom_type): Rename from utf_16_bom_type.
20404 (struct utf_16_spec): Adjust for the above change.
20405 (struct coding_system): Add utf_8_bom in `spec' union.
20406
20407 * coding.c (CODING_UTF_8_BOM): New macro.
20408 (enum coding_category): Delete coding_category_utf_8, add
20409 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20410 coding_category_utf_8_sig.
20411 (CATEGORY_MASK_UTF_8): Delete it.
20412 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20413 (CATEGORY_MASK_UTF_8_SIG): New macros.
20414 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20415 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20416 CATEGORY_MASK_UTF_8_SIG.
20417 (CATEGORY_MASK_UTF_8): New macro.
20418 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20419 (detect_coding_utf_8): Check BOM.
20420 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20421 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20422 (encode_coding_utf_16): Likewise.
20423 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20424 (detect_coding, detect_coding_system): Handle utf-8-auto.
20425 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20426 (syms_of_coding): Fix setting up of Vcoding_category_table.
20427
20428 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20429
20430 * process.c (Faccept_process_output): If `millisec' is non-nil,
20431 `seconds' default to 0.
20432 (wait_reading_process_output): Also return non-nil if we read output
20433 from a non-running process.
20434
20435 2008-05-29 Jason Rumney <jasonr@gnu.org>
20436
20437 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20438 `raster' specified.
20439 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20440 in the uniscribe backend, but disallow any font that has no
20441 unicode subrange support.
20442
20443 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
20444
20445 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20446 Fix typos in docstrings.
20447
20448 2008-05-29 Kenichi Handa <handa@m17n.org>
20449
20450 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20451 (Fx_family_fonts): Set frame correctly.
20452
20453 2008-05-28 Jason Rumney <jasonr@gnu.org>
20454
20455 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20456
20457 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20458
20459 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20460 calling build_annotations.
20461
20462 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
20463
20464 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20465 (Fencode_coding_string):
20466 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20467 <latin-extra-code-table>: Fix typos in docstrings.
20468 (syms_of_coding) <coding-system-alist>: Doc fix.
20469 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20470
20471 2008-05-28 Kenichi Handa <handa@m17n.org>
20472
20473 * fontset.c (Ffont_info): Don't call font_close_object.
20474
20475 * font.c (font_parse_family_registry): Use Ffont_put to validate
20476 foundry and family.
20477 (font_delete_unmatched): Don't check spacing.
20478 (font_list_entities): Add spacing to the spec to list fonts.
20479
20480 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20481 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20482
20483 * coding.c (encode_coding_raw_text): Fix previous change.
20484 (encode_coding_object): When the dst_object is a buffer and is
20485 different from src_object, move gap to PT.
20486
20487 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20488
20489 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20490
20491 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20492
20493 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20494 all branches. Compute it differently.
20495
20496 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20497
20498 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
20499
20500 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20501 into "else if () ... else ...".
20502
20503 2008-05-27 Jason Rumney <jasonr@gnu.org>
20504
20505 * w32font.c (w32font_open_internal): Determine if glyph indices
20506 are likely to work here.
20507
20508 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20509
20510 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20511 draw overlap glyphs with appropriate highlighting.
20512
20513 2008-05-27 Kenichi Handa <handa@m17n.org>
20514
20515 * xfont.c (xfont_open): Fix calculation of font->average_width.
20516
20517 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20518
20519 * casefiddle.c (casify_object): Try to guess better whether the
20520 argument is a byte or a char.
20521
20522 2008-05-26 Andreas Schwab <schwab@suse.de>
20523
20524 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20525 Always send multiples of format size.
20526
20527 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20528
20529 2008-05-26 Jason Rumney <jasonr@gnu.org>
20530
20531 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20532 (compute_metrics): Don't set failure if we just cleared the cache.
20533 (w32_weight_table): Remove unused variable.
20534 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20535 backwards compatibility.
20536
20537 2008-05-25 Kenichi Handa <handa@m17n.org>
20538
20539 * w32term.c (x_draw_glyph_string):
20540 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20541
20542 * xfaces.c: Delete unused function prototypes.
20543 (xstrlwr, font_frame): Delete them.
20544 (clear_face_cache): Delete unused variable.
20545
20546 * xftfont.c (xftfont_open): Delete unused variable.
20547 If underline_thickness is not 1, adjust underline_position.
20548
20549 * ftxfont.c (ftxfont_open): Delete unused variable.
20550
20551 * fontset.c (face_for_char): Optimize for the case of no charset
20552 property.
20553
20554 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20555 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20556 (otf_open, font_otf_capability, generate_otf_features)
20557 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20558 Comment out by surrounding "#if 0" and "#endif" for the moment.
20559 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20560 (syms_of_font): Codes for accessing above commented out.
20561
20562 2008-05-24 Eli Zaretskii <eliz@gnu.org>
20563
20564 * w32proc.c: Include dispextern.h.
20565
20566 * w32.c: Include dispextern.h.
20567
20568 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
20569
20570 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20571 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20572 Fix typos in docstrings.
20573
20574 2008-05-23 Jason Rumney <jasonr@gnu.org>
20575
20576 * xsmfns.c: Remove includes that are already included by config.h.
20577
20578 2008-05-23 Kenichi Handa <handa@m17n.org>
20579
20580 * charset.c (Qemacs, charset_emacs): New variables.
20581 (char_charset): Fix for non-Unicode characters.
20582 (syms_of_charset): Define charset_emacs.
20583
20584 * w32term.c (x_draw_glyph_string): Be sure to update
20585 s->underline_thickness and s->underline_position. Be sure to draw
20586 underline within the current line area.
20587
20588 * xterm.c (x_draw_glyph_string): Be sure to update
20589 s->underline_thickness and s->underline_position. Be sure to draw
20590 underline within the current line area.
20591
20592 * fontset.c: Delete unused variables and add casting for char *
20593 throughout the file.
20594 (fontset_font): Try the fallback fonts of the current fontset
20595 before consulting the default fontset.
20596
20597 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20598
20599 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20600
20601 2008-05-22 Jason Rumney <jasonr@gnu.org>
20602
20603 * font.c: Don't include strings.h.
20604
20605 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20606
20607 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20608 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20609 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20610 to call xstrcasecmp.
20611
20612 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20613
20614 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20615
20616 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20617
20618 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20619
20620 2008-05-22 Kenichi Handa <handa@m17n.org>
20621
20622 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20623
20624 * font.c (font_prop_validate_style): Adjust for the format
20625 change of font_style_table.
20626
20627 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20628 two args.
20629
20630 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20631 two args.
20632
20633 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20634
20635 * minibuf.c (keys_of_minibuf): Delete.
20636 * lisp.h (keys_of_minibuf): Delete.
20637 * emacs.c (main): Don't call keys_of_minibuf.
20638
20639 2008-05-22 Kenichi Handa <handa@m17n.org>
20640
20641 * ftfont.c (ftfont_resolve_generic_family): Rename from
20642 ftfont_list_generic_family. Return a single family for each
20643 generic family.
20644 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20645 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20646 Call font_add_log.
20647 (ftfont_match): Call font_add_log.
20648
20649 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20650 (FONT_DEBUG): Define it.
20651 (font_add_log): Extern it.
20652 (font_assert): Rename from xassert.
20653
20654 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20655 (xfont_list_family): Call font_add_log.
20656 (xfont_match): Likewise.
20657 (memq_no_quit): Delete.
20658
20659 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20660 call of Ffont_xlfd_name.
20661
20662 * xfaces.c (struct table_entry, slant_table, weight_table)
20663 (swidth_table): Move to font.c.
20664
20665 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20666 xassert are changed to font_assert. Delete many unused variables.
20667 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20668 New variables.
20669 (struct table_entry): Move from xfaces.c and modified.
20670 (weight_table, slant_table, width_table): Move from xfaces.c and
20671 contents adjusted for the change of struct table_entry.
20672 (font_style_to_value, font_style_symbolic): Adjust for the
20673 format change of font_style_table.
20674 (font_parse_family_registry): Don't overwrite existing foundry and
20675 family of font_spec.
20676 (font_score): Fix calculation of diff for sizes.
20677 (font_sort_entites): Call font_add_log.
20678 (font_delete_unmatched): Return a newly created list.
20679 (font_list_entities): Fix previous change. Call font_add_log.
20680 (font_matching_entity, font_open_entity, font_close_entity):
20681 Call font_add_log.
20682 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20683 (Finternal_set_font_style_table): Delete.
20684 (BUILD_STYLE_TABLE): New macro.
20685 (build_style_table): New function.
20686 (Vfont_log, font_log_env_checked): New variables.
20687 (font_add_log): New function.
20688 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20689 Declare Lisp variables "font-weight-table", "font-slant-table",
20690 "font-width-table", and "font-log". Initialize font_style_table.
20691
20692 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20693
20694 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20695
20696 2008-05-21 Seiji Zenitani <zenitani@mac.com>
20697 Ryo Yoshitake <ryo@shiftmode.net>
20698
20699 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20700 (Vframe_alpha_lower_limit): New variable.
20701 (x_set_alpha): New function.
20702
20703 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20704
20705 * xfns.c (x-create-frame, Qalpha):
20706 Initialize the frame parameter `alpha'.
20707 * xterm.c (OPAQUE, OPACITY): New.
20708 (x_set_frame_alpha): New function.
20709 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20710
20711 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20712 * w32fns.c (w32_frame_parm_handlers): Likewise.
20713
20714 2008-05-20 Jason Rumney <jasonr@gnu.org>
20715
20716 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20717 truetype fonts to opentype list.
20718
20719 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
20720
20721 * fontset.c (Ffontset_info): Doc fix.
20722 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20723 <ignore-relative-composition>: Fix typos in docstrings.
20724
20725 * font.c (syms-of-font) <font-encoding-alist>:
20726 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20727 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20728 (Ffont_otf_alternates): Doc fixes.
20729
20730 2008-05-20 Kenichi Handa <handa@m17n.org>
20731
20732 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20733 font.h through out the file.
20734 (FONT_DRIVERS): Rename from FONTOBJ.
20735 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20736 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20737
20738 * emacs.c (main): Call syms_of_font unconditionally.
20739
20740 * font.h (find_font_encoding): Extern it.
20741
20742 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20743 fontset.c.
20744 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
20745 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20746 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20747 only when HAVE_WINDOW_SYSTEM is defined.
20748 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20749 when HAVE_WINDOW_SYSTEM is defined.
20750
20751 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20752 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20753
20754 * xfaces.c: Include font.h unconditionally.
20755 (merge_face_ref, merge_face_vectors)
20756 (Finternal_set_lisp_face_attribute): Cancel the previous change.
20757
20758 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
20759
20760 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
20761 indirect_variable.
20762 * eval.c (lisp_indirect_variable): New fun.
20763 (Fuser_variable_p): Use it.
20764
20765 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20766
20767 * lisp.h (indirect_variable):
20768 * data.c (indirect_variable, let_shadows_buffer_binding_p):
20769 Use Lisp_Symbol pointers rather than Lisp_Object.
20770 Adjust callers.
20771 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
20772 To this end, change calling-convention.
20773
20774 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
20775 if some non-hidden buffers are selected by string&pred.
20776
20777 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
20778
20779 * process.c (wait_reading_process_output): Always check status
20780 when in batch mode.
20781
20782 2008-05-19 Kenichi Handa <handa@m17n.org>
20783
20784 * font.c (font_list_entities): Fix handling of cache.
20785 (font_matching_entity): Likewise.
20786
20787 * ftfont.c (cs_iso8859_1): Delete.
20788 (ft_face_cache): New variable.
20789 (struct ftfont_info): New member fc_charset_idx.
20790 (ftfont_build_basic_charsets): Delete.
20791 (fc_charset_table): New variable.
20792 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
20793 . FC_CHARSET_IDX) as :font-entity property in the font entity.
20794 Callers changed.
20795 (ftfont_lookup_cache, ftfont_get_charset): New functions.
20796 (ftfont_spec_pattern): New argument fc_charset_idx.
20797 Check registry more rigidly. Change callers.
20798 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
20799 change of :font-entity property of the font.
20800
20801 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
20802 property of the font.
20803
20804 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
20805
20806 * coding.c (Fcoding_system_p): Rename argument to match docstring.
20807 (Funencodable_char_position, Fcheck_coding_systems_region)
20808 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
20809 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
20810 (Ffind_operation_coding_system, Fset_coding_system_priority)
20811 (Fcoding_system_eol_type): Doc fixes.
20812
20813 2008-05-17 Glenn Morris <rgm@gnu.org>
20814
20815 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
20816
20817 2008-05-16 Eli Zaretskii <eliz@gnu.org>
20818
20819 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
20820 and st_gid.
20821
20822 * frame.c (Fdelete_frame): Don't call font_update_drivers if
20823 HAVE_WINDOW_SYSTEM is not defined.
20824
20825 * xfaces.c (merge_face_ref, merge_face_vectors)
20826 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
20827 HAVE_WINDOW_SYSTEM is defined.
20828 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
20829
20830 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
20831
20832 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
20833
20834 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20835
20836 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
20837
20838 2008-05-15 Kenichi Handa <handa@m17n.org>
20839
20840 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
20841 preference.
20842
20843 2008-05-15 Glenn Morris <rgm@gnu.org>
20844
20845 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
20846
20847 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
20848
20849 * fns.c (init_fns): Don't initialize weak_hash_tables here.
20850 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
20851
20852 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
20853
20854 2008-05-15 Kenichi Handa <handa@m17n.org>
20855
20856 * ftfont.c (ftfont_list): Downcase family name to check generic
20857 families.
20858
20859 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
20860 font-spec for QCfont value.
20861
20862 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
20863 buffer. Check the return value of it.
20864
20865 2008-05-14 Jason Rumney <jasonr@gnu.org>
20866
20867 * w32term.c (w32_get_glyph_overhangs): Remove.
20868 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
20869
20870 2008-05-14 Kenichi Handa <handa@m17n.org>
20871
20872 * font.c (font_prop_validate): Make nil a valid value.
20873 (font_clear_cache): Check if the cached vector of entities is nil
20874 or not.
20875
20876 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20877
20878 * emacs.c (main_thread): Conditionalize on
20879 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20880 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
20881
20882 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
20883 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
20884 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20885
20886 2008-05-14 Kenichi Handa <handa@m17n.org>
20887
20888 * coding.c (detect_coding_iso_2022): Ignore a coding category that
20889 has no corresponding coding system.
20890
20891 2008-05-14 Jason Rumney <jasonr@gnu.org>
20892
20893 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
20894
20895 * w32font.h (w32font_open_internal): Update declaration.
20896
20897 * w32font.c (w32font_open_internal): Change last argument from
20898 w32font_info struct to font object. Fill in font object from
20899 font_entity. Get Outline metrics if possible. Use them to
20900 calculate underline position and thickness. Use xlfd name as name
20901 property. Don't set codepage.
20902 (w32font_open): Pass font_object to w32font_open_internal. Don't
20903 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
20904 (w32font_draw): Use s->font.
20905 (clear_cached_metrics): Don't clear non-existent blocks.
20906
20907 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
20908 font was not found.
20909 (x_draw_glyph_string): Use underline position and thickness from font.
20910
20911 * w32uniscribe.c (uniscribe_open): Pass font_object to
20912 w32font_open_internal.
20913
20914 2008-05-14 Kenichi Handa <handa@m17n.org>
20915
20916 These changes are to delete all legacy font-handling codes, and
20917 make Emacs use only font-backends.
20918
20919 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
20920 (frame.o, image.o, print.o): Depend on $(FONTSRC).
20921
20922 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
20923
20924 * charset.h (Vcharset_non_preferred_head)
20925 (Vcurrent_iso639_language): Extern them.
20926
20927 * charset.c (Vcharset_non_preferred_head): New variable.
20928 (Vcurrent_iso639_language): New variable.
20929 (syms_of_charset): Declare it as a Lisp variable.
20930 (char_charset): Don't check non preferred charsets. As a last
20931 resort, return charset_unicode.
20932 (Fset_charset_priority): Update Vcharset_non_preferred_head.
20933
20934 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
20935 conditionals. Don't check enable_font_backend. Delete all codes
20936 used only when USE_FONT_BACKEND is not defined.
20937
20938 * dispextern.h (struct glyph_string): Change type of `font' to
20939 `struct font *'.
20940 (struct glyph_string): New member underline_position and
20941 underline_thickness.
20942 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
20943 (struct face): Change type of `font' to `struct font *'.
20944 Remove members `font_name', `font_info_id'.
20945 (per_char_metric, encode_char): Delete externs.
20946 (calc_pixel_width_or_height): Adjust the prototype.
20947
20948 * emacs.c (enable_font_backend): Delete extern.
20949 (main): Don't set enable_font_backend. Don't check the command
20950 line argument "-disable-font-backend".
20951
20952 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
20953 (enum font_property_index): New members FONT_DPI_INDEX,
20954 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
20955 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
20956 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
20957 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
20958 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20959 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20960 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20961 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20962 (struct font_spec, struct font_entity): New structs.
20963 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
20964 (struct font): Many members from old "struct font_info" moved to
20965 here. Members font and entity deleted.
20966 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20967 the new font-related objects.
20968 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20969 (CHECK_FONT_GET_OBJECT): Likewise.
20970 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
20971 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
20972 (struct font_driver): New members case_sensitive anc check.
20973 Type of the member list and open changed.
20974 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20975 (font_symbolic_width, font_find_object, font_get_spec)
20976 (font_set_lface_from_name): Delete extern.
20977 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20978
20979 * font.c: Include <strings.h>.
20980 (enable_font_backend): Delete it.
20981 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20982 (CHECK_VALIDATE_FONT_SPEC): Delete it.
20983 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
20984 (null_string): Delete it.
20985 (null_vector): Make it static.
20986 (font_family_alist): Delete it.
20987 (Qnormal): Extern it.
20988 (QCextra, QClanguage): Delete it.
20989 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20990 (font_make_spec, font_make_entity, font_make_object)
20991 (font_intern_prop): Rename from intern_downcase. Don't downcase
20992 the string. Callers changed.
20993 (font_pixel_size): Adjust for the format change of font-related
20994 objects.
20995 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
20996 (font_style_to_value, font_style_symbolic): New function.
20997 (build_font_family_alist): Delete it.
20998 (font_registry_charsets): Use Fassoc_string instead of
20999 assq_no_quit.
21000 (font_prop_validate_symbol): Don't return null_string.
21001 (font_prop_validate_style): Adjust for the change of
21002 style-related values in a font vector.
21003 (font_property_table): Delete entries for QClanguage and
21004 QCantialias, add entries for QCavgwidth.
21005 (get_font_prop_index): Delete the 2nd argument FROM.
21006 (font_prop_validate): Arguments changed.
21007 (font_put_extra): Adjust for the change of font-related objects.
21008 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21009 (font_parse_fcname, font_unparse_fcname)
21010 (font_prepare_composition): Likewise.
21011 (font_parse_family_registry): Rename from font_merge_old_spec.
21012 (otf_open): Delete the 1st arg entity.
21013 (font_otf_capability): Adjust for the above change.
21014 (font_score): New arg alternate_families. Adjusted for the change
21015 of font-related objects.
21016 (font_sort_entites): New arg best_only.
21017 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21018 Delete them.
21019 (font_match_p): Check alternate families.
21020 (font_find_object): Delete it.
21021 (font_check_object): New function.
21022 (font_clear_cache): Adjust for the change of font-related objects.
21023 (font_delete_unmatched): New arg.
21024 (font_list_entities): Call font_driver->list with a spec that
21025 doesn't specify style-related properties.
21026 (font_matching_entity): Arguments changed. Caller changed.
21027 (font_open_entity): Adjust for the change of font-related objects.
21028 (font_close_object, font_has_char, font_encode_char)
21029 (font_get_name, font_get_spec): Likewise.
21030 (font_spec_from_name, font_clear_prop, font_update_lface):
21031 New functions.
21032 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21033 (font_prepare_for_face, font_done_for_face, font_open_by_name)
21034 (font_at): Adjust for the change of font-related objects.
21035 (font_range): New function.
21036 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
21037 (Ffont_xlfd_name): Adjust for the change of font-related objects.
21038 (Fcopy_font_spec, Fmerge_font_spec): New function.
21039 (Ffont_family_list): Rename from list-families.
21040 (Finternal_set_font_style_table): Arguments changed.
21041 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
21042 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
21043 change of font-related objects.
21044 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21045
21046 * fontset.h (struct font_info): Delete it. Most members go to
21047 struct font.
21048 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
21049 (enum FONT_SPEC_INDEX): Delete it.
21050 (font_info, list_fonts_func, load_font_func, query_font_func)
21051 (set_frame_fontset_func, find_ccl_program_func)
21052 (get_font_repertory_func, new_fontset_from_font_name):
21053 Delete externs.
21054 (fontset_from_font_name): Extern it.
21055 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21056 (FONT_INFO_FROM_FACE): Deleted.
21057 (face_for_font): Adjust prototype.
21058
21059 * fontset.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 (get_font_info_func, list_font_func, load_font_func)
21063 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21064 (get_font_repertory_func): Delete them.
21065 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21066 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21067 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21068 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21069 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21070 (fontset_compare_rfontdef): New function.
21071 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21072 rfont-defs by qsort. Adjusted for the change of font-group vector.
21073 (load_font_get_repertory): Deleted.
21074 (fontset_find_font): Use new macros to ref/set elements of
21075 font-def and rfont-def.
21076 (fontset_font): Fix the timing of remembering that no font for C.
21077 (free_face_fontset): Do nothing if the face has no fontset.
21078 (face_suitable_for_char_p): Use new macros to ref/set elements of
21079 rfont-def.
21080 (face_for_char): Likewise. Call face_for_char with font_object.
21081 (fs_load_font): Delete. Delete #pragma surrounding it.
21082 (fs_query_fontset): Use strcasecmp instead of strcmp.
21083 (generate_ascii_font_name): Adjust for the format change of
21084 font-spec.
21085 (Fset_fontset_font): Likewise. Use new macros to set elements of
21086 font-def.
21087 (Fnew_fontset): Use font_unparse_xlfd to generate
21088 FONTSET_ASCII (fontset).
21089 (new_fontset_from_font_name): Deleted.
21090 (fontset_from_font): Rename from new_fontset_from_font. Check if
21091 a fontset is already created for the font. FIx updating of
21092 Vfontset_alias_alist.
21093 (fontset_ascii_font): Deleted.
21094 (Ffont_info): Adjust for the format change of font-spec.
21095 (Finternal_char_font): Likewise.
21096 (Ffontset_info): Likewise.
21097 (syms_of_fontset): Don't check load_font_func.
21098
21099 * fns.c (internal_equal): Handle PREV_FONT.
21100
21101 * frame.h: Delete USE_FONT_BACKEND conditional.
21102
21103 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21104 conditionals. Don't check enable_font_backend. Delete all codes
21105 used only when USE_FONT_BACKEND is not defined.
21106 (x_set_font): Call x_new_font, not x_new_fontset2.
21107 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21108 already set for the frame.
21109
21110 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21111 Make a font-entity by font_make_entity. Use font_intern_prop instead
21112 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21113 font property. If a font is scalable, set avgwidth property to 0.
21114 Set font-entity property by font_put_extra.
21115 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
21116 (ffont_driver): Adjust for the change of struct font_driver.
21117 (ftfont_spec_pattern): New function.
21118 (ftfont_list): Return a list, not vector.
21119 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21120 (ftfont_list_family): Don't downcase names.
21121 (ftfont_free_entity): Deleted.
21122 (ftfont_open): Return a font-object. Adjusted for the change of
21123 struct font. Get underline_thickness and underline_position from
21124 font property. Don't update dpyinfo->smallest_font_height and
21125 dpyinfo->smallest_char_width.
21126 (ftfont_close): Don't free `struct font'.
21127 (ftfont_has_char): Adjust for the format change of font-entity.
21128 (ftfont_encode_char, ftfont_text_extents): Likewise.
21129
21130 * ftxfont.c (ftxfont_list): Return a list, not vector.
21131 (ftxfont_open): Return a font-object. Adjusted for the change of
21132 struct font. Get underline_thickness and underline_position from
21133 font property. Don't update dpyinfo->smallest_font_height and
21134 dpyinfo->smallest_char_width.
21135 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
21136 (ftxfont_draw): Adjust for the change of struct font.
21137
21138 * image.c (image_ascent): Don't include "charset.h".
21139 Include "character.h" and "font.h".
21140
21141 * lisp.h (enum pvec_type): New member PREV_FONT.
21142 (Fassoc_string): EXFUN it.
21143
21144 * print.c: Include font.h.
21145 (print_object): Handle font-related objects.
21146
21147 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21148 conditionals. Don't check enable_font_backend. Delete all codes
21149 used only when USE_FONT_BACKEND is not defined.
21150 (handle_auto_composed_prop): Do nothing if it->f is not on a
21151 window system. Check how many following characters can be
21152 displayed by the same font.
21153 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21154 'struct font *'.
21155 (get_char_face_and_encoding): Assign the whole encoding task to
21156 the `encode-char' method of a font driver.
21157 (fill_composite_glyph_string): Adjust for the change of `struct
21158 face' and `struct glyph_string'.
21159 (fill_glyph_string): Likewise.
21160 (get_per_char_metric): Arguments changed.
21161 (x_get_glyph_overhangs): Adjust for the change of `struct face'
21162 and `struct glyph_string'.
21163 (produce_stretch_glyph, calc_line_height_property)
21164 (x_produce_glyphs): Likewise.
21165
21166 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21167 conditionals. Don't check enable_font_backend. Delete all codes
21168 used only when USE_FONT_BACKEND is not defined.
21169 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
21170 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21171 (Qp): Extern them.
21172 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21173 Deleted.
21174 (struct font_name): Deleted.
21175 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
21176 (compare_fonts_by_sort_order): New function.
21177 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21178 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21179 Deleted.
21180 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21181 compare_fonts_by_sort_order.
21182 (Fx_font_family_list): Call Ffont_family_list.
21183 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21184 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21185 (face_symbolic_slant, face_symbolic_swidth)
21186 (split_font_name_into_vector, build_font_name_from_vector)
21187 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21188 (font_rescale_ratio, split_font_name, build_font_name)
21189 (free_font_names, sort_fonts, x_face_list_fonts)
21190 (face_font_available_p, sorted_font_list, cmp_font_names)
21191 (font_list_1, concat_font_list, font_list, remove_duplicates):
21192 Deleted.
21193 (Fx_list_fonts): Use Ffont_list.
21194 (LFACE_AVGWIDTH): Deleted.
21195 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21196 by FONTP.
21197 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21198 (set_lface_from_font_name): Delete it.
21199 (set_lface_from_font): Rename from
21200 set_lface_from_font_and_fontset. Caller changed. Don't set
21201 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21202 for face.
21203 (merge_face_vectors): Copy font-spec if necessary.
21204 Clear properties of the font-spec if necessary.
21205 (merge_face_ref): Clear properties of the font-spec if necessary.
21206 (Finternal_set_lisp_face_attribute): Likewise.
21207 (set_font_frame_param): Use font_load_for_lface to load a
21208 font-object, and call Fmodify_frame_parameters with it.
21209 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21210 font name by Ffont_xlfd_name.
21211 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21212 QCslant, and QCwidth.
21213 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21214 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21215 Compare fonts by EQ.
21216 (lookup_non_ascii_face): Deleted.
21217 (face_for_font): The 2nd argument changed.
21218 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21219 Check atomic font properties by case insensitive.
21220 (realize_non_ascii_face): Set face->overstrike correctly.
21221 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21222 (dump_realized_face): Get font name from
21223 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21224
21225 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21226 conditionals. Don't check enable_font_backend. Delete all codes
21227 used only when USE_FONT_BACKEND is not defined.
21228 (xic_create_xfontset): Original code deleted and renamed from
21229 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21230 (x_make_gc): Don't set GCFont in GCs.
21231 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21232 opened by "fixed".
21233 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21234 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21235 get_font_repertory_func.
21236
21237 * xfont.c: Include <stdlib.h> and "ccl.h".
21238 (struct xfont_info): New structure.
21239 (xfont_query_font): Deleted.
21240 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21241 moved from xterm.c.
21242 (xfont_driver): Adjust for the change of struct font_driver.
21243 (compare_font_names): New function.
21244 (xfont_list_pattern): Sort font names case insensitively.
21245 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
21246 (xfont_list): Return a list, not vector.
21247 (xfont_match): If the font doesn't have QCname property, generate
21248 a name from the other font properties.
21249 (xfont_open): Return a font-object. Adjusted for the change of
21250 struct font. Get underline_thickness and underline_position from
21251 font property. Don't update dpyinfo->smallest_font_height and
21252 dpyinfo->smallest_char_width.
21253 (xfont_close): Don't free struct font.
21254 (xfont_prepare_face): Adjust for the change of struct font.
21255 (xfont_done_face): Deleted.
21256 (xfont_has_char): Adjust for the change of struct font.
21257 (xfont_encode_char, xfont_draw): Likewise.
21258 (xfont_check): New function.
21259
21260 * xftfont.c (xftfont_list): Adjust for the change of `list'
21261 callback function.
21262 (xftfont_match): Adjust for the format change of font-entity.
21263 (xftfont_open): Adjust for the format change of font-entity and
21264 font-object. Adjusted for the change of struct font. Return a
21265 font-object. Don't update dpyinfo->smallest_font_height and
21266 dpyinfo->smallest_char_width.
21267 (xftfont_close): Block input while calling XftFontClose.
21268 (xftfont_prepare_face): Don't block input while calling
21269 xftfont_get_colors. Adjusted for the change of struct font.
21270 (xftfont_shape): Return value of error case fixed.
21271
21272 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21273
21274 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21275 conditionals.
21276 (FONT_WIDTH): Return (f)->max_width.
21277 (struct x_display_info): Delete member `font'.
21278 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21279 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21280 (struct x_output): Change type of `font' to `struct font *'.
21281
21282 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21283 conditionals. Don't check enable_font_backend. Delete all codes
21284 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21285 (x_per_char_metric, x_encode_char): Deleted.
21286 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21287 (x_compute_glyph_string_overhangs): Adjust for the change of
21288 `struct face'.
21289 (x_draw_glyph_string_foreground)
21290 (x_draw_composite_glyph_string_foreground): Likewise.
21291 (x_draw_glyph_string): Likewise. Use font->underline_position and
21292 font->underline_thickness.
21293 (x_new_font): Rename from x_new_fontset2.
21294 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21295 (x_check_font): Call `check' method of a font driver.
21296 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21297 (x_query_font, x_get_font_repertory): Deleted.
21298 (x_find_ccl_program): Rename and moved to xfont.c.
21299 (x_redisplay_interface): Adjust for the change of `struct
21300 redisplay_interface'.
21301
21302 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21303 conditionals. Don't check enable_font_backend. Delete all codes
21304 used only when USE_FONT_BACKEND is not defined. Surround non-used
21305 code by "#ifdef OLD_FONT" and "endif".
21306 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21307
21308 * w32font.h (struct w32font_info): New member.
21309 (FONT_COMPAT): New macro.
21310 (w32font_open_internal): Prototype adjusted.
21311
21312 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21313 OLD_FONT" and "endif".
21314
21315 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21316 conditionals. Don't check enable_font_backend. Delete all codes
21317 used only when USE_FONT_BACKEND is not defined.
21318 (w32font_open): Return a font-object. Make a font-object by
21319 font_make_object. Adjusted for the change of struct w32font_info.
21320 (w32font_close): Don't free struct font. Adjusted for the change
21321 of struct w32font_info.
21322 (w32font_encode_char, w32font_text_extents, w32font_draw):
21323 Adjust for the change of struct w32font_info.
21324 (w32font_draw): Likewise.
21325 (w32font_list_internal): Return a list, not vector.
21326 (w32font_open_internal): Change the 4th arg to font-object.
21327 Adjusted for the change of struct w32font_info and font-object format.
21328 (add_font_name_to_list): Don't downcase names.
21329 (w32_enumfont_pattern_entity): Make a font-entity by
21330 font_make_entity. Adjusted for the format change of font-entity.
21331 Use FONT_SET_STYLE to set a style-related font property. If a
21332 font is scalable, set avgwidth property to 0. Set font-entity
21333 property by font_put_extra.
21334 (font_matches_spec): Adjust for the format change of font-entity.
21335 (w32_weight_table, w32_decode_weight): New variables.
21336 (w32_encode_weight): New function.
21337 (fill_in_logfont): Adjust for the format change of font-spec.
21338 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21339 weight value.
21340 (w32font_driver): Adjust for the change of struct font_driver.
21341
21342 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21343 conditionals. Don't check enable_font_backend. Surround non-used
21344 code by "#ifdef OLD_FONT" and "endif".
21345 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
21346 (FONT_AVG_WIDTH): Adjust for the change of struct font.
21347
21348 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21349 conditionals. Don't check enable_font_backend. Delete all codes
21350 used only when USE_FONT_BACKEND is not defined. Surround non-used
21351 code by "#ifdef OLD_FONT" and "endif".
21352
21353 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21354 (uniscribe_open): Return value changed to font-object.
21355 Adjusted for the format change of font-object.
21356 (uniscribe_otf_capability): Adjust for the change of struct font.
21357 (add_opentype_font_name_to_list): Don't downcase names.
21358 (uniscribe_font_driver): Adjust for the change of struct
21359 font_driver.
21360
21361 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
21362
21363 * dispnew.c (update_frame_1): Check if tty output is still valid
21364 before flushing it.
21365
21366 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21367
21368 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21369 to Gtk+ menus.
21370
21371 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21372
21373 * dired.c (file_name_completion): Tweak the code so as to always do it
21374 in a single pass. Tighten the scope of some variables.
21375
21376 * dired.c (Qdefault_directory): New var.
21377 (file_name_completion): Use it instead of Fexpand_file_name.
21378 (syms_of_dired): Initialize it.
21379
21380 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21381
21382 * fileio.c (double_dollars): Remove dead code.
21383
21384 2008-05-10 Eli Zaretskii <eliz@gnu.org>
21385
21386 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21387 Mention w32-get-true-file-attributes in doc string.
21388
21389 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21390
21391 2008-05-09 Glenn Morris <rgm@gnu.org>
21392
21393 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21394 2008-04-23.
21395
21396 2008-05-09 Eli Zaretskii <eliz@gnu.org>
21397
21398 Support for reporting owner and group of each file on MS-Windows:
21399 * dired.c (stat_uname, stat_gname): New functions, with special
21400 implementation for w32.
21401 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21402
21403 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21404 (dflt_group_name): New static variable.
21405 (dflt_group): Rename from the_group.
21406 (init_user_info): Init dflt_group fields. Get user's group name
21407 from LookupAccountSid.
21408 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21409 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21410 New initialization states.
21411 (globals_of_w32): Initialize them to zero. Initialize the default
21412 group name to "None".
21413 (GetFileSecurity_Name): New global var, the name of the function
21414 to call for GetFileSecurity.
21415 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21416 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21417 (get_file_security, get_security_descriptor_owner)
21418 (get_security_descriptor_group, is_valid_sid)
21419 (get_file_security_desc, get_rid, get_name_and_id)
21420 (get_file_owner_and_group): New functions.
21421 (stat): Use get_file_security_desc and get_file_owner_and_group to
21422 report the owner and primary group of each file. Don't ignore the
21423 high 32 bits of file's size, now that st_size is 64-bit wide.
21424 Fix test when to get true file attributes.
21425 (init_user_info): Use get_rid instead of equivalent inline code.
21426 (fstat): Don't ignore the high 32 bits of file's size.
21427
21428 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
21429
21430 * image.c (png_load): Use correct bit-depth for setting background
21431 color.
21432
21433 2008-05-08 Eli Zaretskii <eliz@gnu.org>
21434
21435 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21436 epa-hook.elc.
21437
21438 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
21439
21440 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21441
21442 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21443
21444 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21445 because the original parameters are in pure storage now.
21446 (mac_window): Remove unused params. Update callers.
21447
21448 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21449
21450 * lread.c (substitute_object_recurse): Use lower-level primitives.
21451 Don't signal errors when traversing sub-char-tables.
21452 Don't loop over all the possible characters when traversing char-tables.
21453
21454 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21455 just like we do in print.c.
21456
21457 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21458
21459 * minibuf.c (Ftry_completion): Remove code left over from when we used
21460 scmp instead of Fcompare_strings.
21461
21462 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
21463
21464 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21465
21466 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21467
21468 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21469 Create bitmap context in native byte order.
21470
21471 * macterm.c (XDrawLine)
21472 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21473 context in native byte order.
21474
21475 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21476
21477 * config.in: Regenerate.
21478
21479 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21480 New definitions for Image I/O support.
21481 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21482 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21483 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21484 (mac_data_provider_release_data, image_load_image_io)
21485 [USE_MAC_IMAGE_IO]: New functions.
21486 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21487 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21488 (init_image_func_pointer) [MAC_OSX]: Remove function.
21489 (image_load_quartz2d) [MAC_OSX]: Check availability of
21490 CGImageCreateWithPNGDataProvider at compile time.
21491 Use lowercase `false' for boolean constant.
21492 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21493 Use image_load_image_io.
21494 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21495 Don't check MyCGImageCreateWithPNGDataProvider.
21496 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21497 Don't call init_image_func_pointer.
21498
21499 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21500
21501 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21502 Make variable non-static.
21503 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21504 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21505
21506 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21507 (RED_FROM_ULONG): Mask off higher bits.
21508 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21509
21510 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21511 Include AvailabilityMacros.h.
21512 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21513 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21514
21515 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21516
21517 * chartab.c (Fset_char_table_range): If range is t, really set all
21518 chars to that value.
21519
21520 2008-05-03 Eli Zaretskii <eliz@gnu.org>
21521
21522 * dired.c (Ffile_attributes): Don't allow the device number become
21523 negative.
21524
21525 2008-05-02 Daiki Ueno <ueno@unixuser.org>
21526
21527 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21528
21529 2008-05-02 Juri Linkov <juri@jurta.org>
21530
21531 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21532 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21533 DEFAULT argument as a list of default values in docstrings.
21534
21535 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
21536
21537 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21538
21539 2008-05-01 Martin Rudalics <rudalics@gmx.at>
21540
21541 * dispnew.c (change_frame_size_1): Preserve small windows when
21542 shrinking frames by calling set_window_height|width with third
21543 arg 2.
21544
21545 * window.h (struct window): Replace field too_small_ok by field
21546 resize_proportionally.
21547
21548 * window.c (make_window): Initialize resize_proportionally.
21549 (enlarge_window): Temporarily set resize_proportionally to make
21550 sure that shrink_windows does scale the window proportionally.
21551 (shrink_windows): When window has resize_proportionally set try
21552 to shrink it proportionally by stealing from other windows.
21553 (struct saved_window, Fset_window_configuration)
21554 (compare_window_configurations): Handle resize_proportionally.
21555 (WINDOW_TOTAL_SIZE): New macro.
21556 (window_min_size, shrink_windows, size_window): Use it.
21557 (check_min_window_sizes): Remove. Invalid values of
21558 window-min-height|width are handled by window_min_size_2 now.
21559 (size_window, Fsplit_window, enlarge_window)
21560 (adjust_window_trailing_edge, grow_mini_window): Don't call
21561 check_min_window_sizes.
21562 (window_min_size_2, window_min_size_1, window_min_size):
21563 New argument safe_p for retrieving "safe" minimum sizes.
21564 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21565 (adjust_window_trailing_edge, grow_mini_window):
21566 Adjust arguments of window_min_size... functions.
21567 (shrink_windows): Argument min_size removed. New argument
21568 safe_p allows shrinking windows to their safe minimum sizes.
21569 Calculate minimum size and decide whether a window shall be
21570 deleted for each window individually.
21571 (size_window): When nodelete_p equals 2, tell shrink_windows to
21572 delete windows only if their new minimum size is no more safe.
21573 (shrink_window_lowest_first): Call window_min_size_1 to make
21574 sure to preserve modeline of bottom-most window when resizing
21575 the minibuffer.
21576 (Fset_window_configuration, Fcurrent_window_configuration)
21577 (compare_window_configurations): Do not handle
21578 window-min-height|width any more.
21579 (syms_of_window): Clarify window-min-height|width doc-strings.
21580
21581 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21582
21583 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21584 some more. Copy some of the code from Ftry_completions.
21585 Remove special case code that dates back to initial revision when the
21586 slash was only added when necessary and that can't trigger nowadays.
21587
21588 2008-04-27 Kenichi Handa <handa@m17n.org>
21589
21590 * font.c (font_prop_validate): Signal `error' instead of `font'.
21591
21592 2008-04-29 Jason Rumney <jasonr@gnu.org>
21593
21594 * w32fns.c (Fw32_battery_status): New defun.
21595 (syms_of_w32fns): Defsubr it.
21596
21597 2008-04-28 Andreas Schwab <schwab@suse.de>
21598
21599 * dired.c (file_name_completion): Fix another mixing of encoded
21600 and decoded names.
21601
21602 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
21603
21604 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21605
21606 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
21607
21608 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21609
21610 2008-04-27 Andreas Schwab <schwab@suse.de>
21611
21612 * dired.c (file_name_completion): Fix inappropriate mixing of
21613 encoded and decoded names.
21614
21615 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21616
21617 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21618
21619 2008-04-26 Eli Zaretskii <eliz@gnu.org>
21620
21621 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21622 2008-03-31, it's not needed anymore with `struct stat' definition
21623 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21624 for the same reasons.
21625
21626 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21627
21628 * m/sparc.h: Additional redefinitions for GNU/Linux.
21629
21630 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21631
21632 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21633 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21634 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21635 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21636 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21637 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21638 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21639 Likewise.
21640
21641 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21642 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21643 (mac_ax_number_of_characters): Add externs.
21644 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21645 [USE_MAC_TSM]: Likewise.
21646 (mac_handle_text_input_event) [MAC_OSX]:
21647 Handle kEventTextInputOffsetToPos for no active input area case.
21648 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21649 (mac_handle_document_access_event)
21650 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21651 (install_application_handler) [MAC_OSX]: Register handlers for
21652 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21653 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21654 Register mac_handle_document_access_event.
21655
21656 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21657 Make functions non-static.
21658
21659 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21660
21661 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21662 (read_file_name_completion_ignore_case, insert_default_directory)
21663 (Qdefault_directory): Move to minibuffer.el.
21664 (Fread_file_name): Call the new `read-file-name' instead.
21665
21666 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21667
21668 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21669 Make function non-static.
21670 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21671 Remove function.
21672 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21673 Move to mactoolbox.c.
21674 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21675
21676 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21677 (mac_rect_make): New macro.
21678
21679 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21680 instead of float.
21681 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21682 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21683 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21684 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21685 CGRectMake.
21686 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21687 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21688 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21689 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21690 instead of WindowRef in argument type.
21691 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21692 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21693 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21694 instead of DISPLAY. All uses changed.
21695 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21696 (x_calc_absolute_position): Simplify so as not to use
21697 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21698
21699 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21700 instead of WindowRef in argument type.
21701 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21702 [TARGET_API_MAC_CARBON]: Remove externs.
21703 (create_apple_event, mac_event_parameters_to_lisp)
21704 [TARGET_API_MAC_CARBON]: Add externs.
21705
21706 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21707 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21708 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21709 is clicked.
21710 (x_activate_menubar): Remove extern for saved_menu_event_location.
21711 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21712 Move from mac.c.
21713
21714 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21715
21716 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21717 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21718
21719 2008-04-23 Jason Rumney <jasonr@gnu.org>
21720
21721 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21722 attributes only for local files.
21723
21724 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21725 default to Qlocal.
21726
21727 2008-04-22 Juri Linkov <juri@jurta.org>
21728
21729 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21730 read-buffer-to-switch instead of using the letter "B".
21731
21732 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21733
21734 * fileio.c (Qdefault_directory): New variable.
21735 (Fread_file_name): Use it to pass `dir' to the completion functions.
21736
21737 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
21738
21739 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21740
21741 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21742
21743 * keyboard.c (Vpre_help_message): Remove.
21744 (show_help_echo): Remove default C code.
21745
21746 * dired.c (directory_files_internal, file_name_completion):
21747 Only call ENCODE_FILE if the string is indeed decoded.
21748
21749 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21750
21751 * Makefile.in (TOOLKIT_DEFINES): Remove.
21752 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21753
21754 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21755
21756 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
21757 (mactoolbox.o): New target.
21758
21759 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
21760 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
21761
21762 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
21763 Use mac_set_frame_window_background instead of XSetWindowBackground.
21764 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
21765 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
21766 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
21767 instead of SetWindowTitleWithCFString.
21768 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
21769 Move function to mactoolbox.c.
21770 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
21771 Use mac_set_window_modified instead of SetWindowModified.
21772 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
21773 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21774 (Fx_focus_frame): Use mac_front_non_floating_window instead of
21775 FrontNonFloatingWindow. Use mac_activate_window instead of
21776 ActivateWindow. Use mac_active_non_floating_window instead of
21777 ActiveNonFloatingWindow.
21778 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
21779 Use mac_show_hourglass and mac_hide_hourglass.
21780 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
21781 instead of GetGlobalMouse.
21782 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
21783 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
21784 Use mac_bring_window_to_front instead of BringToFront.
21785 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
21786 mactoolbox.c.
21787 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
21788 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
21789 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
21790 mactoolbox.c.
21791
21792 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
21793 (XtPointer): Move typedef from macmenu.c.
21794 (enum button_type): Move enum from macmenu.c.
21795 (widget_value): Move typedef from macmenu.c.
21796 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
21797 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21798 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21799 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21800 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21801 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21802 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21803 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
21804 (Selection): Move typedef from macselect.c.
21805 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
21806 macterm.c.
21807 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
21808 (mac_is_window_collapsed, mac_bring_window_to_front)
21809 (mac_send_window_behind, mac_hide_window, mac_show_window)
21810 (mac_collapse_window, mac_front_non_floating_window)
21811 (mac_active_non_floating_window, mac_activate_window)
21812 (mac_move_window_structure, mac_move_window, mac_size_window)
21813 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
21814
21815 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
21816 (enum mac_menu_kind): Move enum to mactoolbox.c.
21817 (min_menu_id): Move variable to mactoolbox.c.
21818 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
21819 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
21820 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21821 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21822 [TARGET_API_MAC_CARBON]: Likewise.
21823 (XtPointer): Move typedef to macgui.h.
21824 (enum button_type): Move enum to macgui.h.
21825 (widget_value): Move typedef to macgui.h.
21826 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21827 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21828 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21829 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21830 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21831 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21832 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
21833 (popup_activated_flag): Make variable non-static.
21834 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
21835 (add_menu_item, fill_menu, dispose_menus):
21836 Move functions to mactoolbox.c.
21837 (restore_show_help_function, menu_target_item_handler)
21838 (install_menu_target_item_handler, mac_handle_dialog_event)
21839 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
21840 [TARGET_API_MAC_CARBON]: Likewise.
21841 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
21842 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21843 (find_and_call_menu_selection, name_is_separator): Make function
21844 non-static.
21845 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
21846 to mactoolbox.c.
21847 (set_frame_menubar): Don't call install_menu_quit_handler.
21848 (menu_item_selection): New variable.
21849 (mac_menu_show): Use create_and_show_popup_menu.
21850 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
21851 selection but set variable menu_item_selection. All uses changed.
21852 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
21853 Call install_menu_quit_handler. Move to mactoolbox.c.
21854
21855 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
21856 (Selection): Move typedef to macgui.h.
21857 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
21858 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
21859 Make variables non-static.
21860 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21861 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
21862 Make functions non-static.
21863 (Vmac_service_selection) [MAC_OSX]: Likewise.
21864 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
21865 (mac_valid_selection_target_p, mac_clear_selection)
21866 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21867 (mac_put_selection_value, mac_selection_has_target_p)
21868 (mac_get_selection_value, mac_get_selection_target_list)
21869 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
21870 Move functions to mactoolbox.c.
21871 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
21872 Likewise.
21873 (copy_scrap_flavor_data, mac_handle_service_event)
21874 (install_service_handler) [MAC_OSX]: Likewise.
21875 (syms_of_macselect) <Vmac_dnd_known_types>:
21876 Use mac_dnd_default_known_types.
21877
21878 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
21879 Move to mactoolbox.c.
21880 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
21881 (Fx_selection_owner_p): Add EXFUN.
21882 (install_window_handler, remove_window_handler, XSetWindowBackground):
21883 Remove externs.
21884 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
21885 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
21886 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
21887 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
21888 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
21889 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
21890 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
21891 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
21892 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
21893 (create_and_show_popup_menu, mac_get_selection_from_symbol)
21894 (mac_valid_selection_target_p, mac_clear_selection)
21895 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21896 (mac_put_selection_value, mac_selection_has_target_p)
21897 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
21898 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
21899 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
21900 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21901 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
21902 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21903 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
21904 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21905 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21906
21907 * mactoolbox.c: New file.
21908
21909 2008-04-18 Jason Rumney <jasonr@gnu.org>
21910
21911 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
21912
21913 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21914
21915 * character.c (Fmultibyte_char_to_unibyte):
21916 Return latin1 chars unchanged.
21917
21918 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
21919 relocated if it points to `name'.
21920
21921 2008-04-17 Kenichi Handa <handa@m17n.org>
21922
21923 * data.c (Faset): Allow setting a multibyte character in an
21924 ASCII-only unibyte string.
21925
21926 * lisp.h (STRING_SET_MULTIBYTE): New macro.
21927
21928 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
21929
21930 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
21931 done in config.h.
21932
21933 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
21934
21935 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
21936 (Fchar_direction): Add usage in the docstring.
21937
21938 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
21939
21940 * keyboard.c (read_key_sequence): Remove always-true checks.
21941
21942 2008-04-14 Jason Rumney <jasonr@gnu.org>
21943
21944 * w32font.c (w32font_open_internal): Set max_bounds.descent in
21945 compatibility struct, for better underline positioning.
21946
21947 2008-04-13 David Hansen <david.hansen@gmx.net>
21948
21949 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
21950 string.
21951
21952 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21953
21954 * m/hp800.h (XUINT, XSET): Remove.
21955
21956 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
21957
21958 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21959 previous change.
21960
21961 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21962
21963 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21964 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21965
21966 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21967
21968 * keymap.h (map_keymap_canonical): Declare.
21969 * xmenu.c (single_keymap_panes): Use it.
21970
21971 2008-04-11 Glenn Morris <rgm@gnu.org>
21972
21973 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21974 set the target's value to that of the alias.
21975
21976 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21977
21978 * term.c (set_tty_color_mode): Left over typo.
21979
21980 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
21981
21982 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21983 only after check for file name handler functions. Signal, when
21984 native functionality is not supported.
21985 (syms_of_fileio): Declare it unconditionally.
21986
21987 2008-04-10 Jason Rumney <jasonr@gnu.org>
21988
21989 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21990 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21991
21992 * w32.c (logon_network_drive): Also logon to remote drives that
21993 are mapped to drive letters.
21994
21995 2008-04-10 Glenn Morris <rgm@gnu.org>
21996
21997 * xdisp.c (truncate-partial-width-windows): Doc fix.
21998
21999 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22000
22001 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22002 Move functions to minibuffer.el.
22003 (syms_of_fileio): Don't declare them.
22004
22005 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22006
22007 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22008 (syms_of_minibuf): Remove its initialization.
22009
22010 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22011
22012 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
22013
22014 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22015
22016 2008-04-09 Jason Rumney <jasonr@gnu.org>
22017
22018 * makefile.w32-in (distclean): Delete makefile too.
22019 (maintainer-clean): New target.
22020
22021 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22022
22023 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22024 for new font backend and composite cases.
22025
22026 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22027
22028 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22029 Most of the code moved to run_timers.
22030 (do_pending_atimers): Call run_timers.
22031 (run_timers): New function.
22032
22033 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22034 run atimers.
22035
22036 * process.c (wait_reading_process_output): The same as above.
22037
22038 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22039
22040 * minibuf.c (last_exact_completion): Remove variable.
22041 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22042 (complete_and_exit_1, complete_and_exit_2)
22043 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22044 (Fdisplay_completion_list, display_completion_list_1)
22045 (Fminibuffer_completion_help, Fself_insert_and_exit)
22046 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22047 minibuffer.el.
22048 (syms_of_minibuf): Remove corresponding initializations.
22049
22050 * keyboard.c (Qdeactivate_mark): New var.
22051 (command_loop_1): Use it to call `deactivate-mark'.
22052 (syms_of_keyboard): Initialize it.
22053
22054 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22055 to another frame.
22056 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22057 Don't call set_tty_color_mode.
22058 (store_frame_param): Reset previous_frame rather than call
22059 set_tty_color_mode.
22060 * term.c (set_tty_color_mode): Rewrite.
22061 * dispextern.h (set_tty_color_mode): New type.
22062 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22063
22064 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22065
22066 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22067 for generic chars, which do not exist any more in emacs-unicode.
22068
22069 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
22070
22071 * coding.c (detect_coding_emacs_mule)
22072 (Ffind_operation_coding_system): Fix typo.
22073
22074 2008-04-08 Jason Rumney <jasonr@gnu.org>
22075
22076 * w32uniscribe.c (SNAME): Extract only symbol name.
22077
22078 * w32font.h (struct w32_metric_cache): New struct.
22079 (w32font_info): Use it.
22080 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22081 (CACHE_BLOCKSIZE): New constants.
22082
22083 * w32font.c (Qja, Qko, Qzh): New symbols.
22084 (syms_of_w32font): Initialise them.
22085 (font_matches_spec): Use them to filter by language.
22086 (recompute_cached_metrics): Remove function.
22087 (compute_metrics, clear_cached_metrics): New functions.
22088 (w32font_encode_char): Use them to manage metric cache.
22089 (w32font_text_extents): Cache metrics for all glyphs on demand.
22090 Delay converting glyph indices to WORD until needed.
22091 (w32font_open_internal): Initialize metric cache to empty.
22092 (registry_to_w32_charset): Charset should always be a symbol.
22093 (fill_in_logfont, list_all_matching_fonts): Family should
22094 always be a symbol.
22095
22096 2008-04-06 Jason Rumney <jasonr@gnu.org>
22097
22098 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22099 Give up if glyph indices not supported. Use uniscribe obtained
22100 ABC widths for individual metrics. Map glyph clusters back to
22101 characters using fClusterStart flag. Return number of glyphs
22102 produced, not chars processed.
22103 (uniscribe_shape): Map char at FROM to current glyph.
22104
22105 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22106
22107 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22108 Use SetMenuItemHierarchicalMenu.
22109
22110 2008-04-05 Jason Rumney <jasonr@gnu.org>
22111
22112 * image.c (pbm_load): Allow color values up to 65535.
22113 Throw an error if max_color_idx is outside the supported range.
22114 Report an error when image size is invalid.
22115 Read two bytes at a time when raw images have max_color_idx above 255.
22116
22117 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22118
22119 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22120 append "CCL: Quitted" when the CCL program is quitted.
22121 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22122
22123 * ccl.h (struct ccl_program): New member quit_silently.
22124
22125 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
22126
22127 * search.c (compile_pattern_1): Treat non-nil and non-string of
22128 search-spaces-regexp as nil.
22129
22130 * minibuf.c (Fassoc_string): Tweak docstring.
22131
22132 2008-04-05 Eli Zaretskii <eliz@gnu.org>
22133
22134 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22135 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22136 2008-03-14 to force inode be positive.
22137
22138 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22139 _S_* ones, since we now use our own sys/stat.h.
22140 (stat, fstat): Don't mangle the inode number.
22141 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22142
22143 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22144
22145 * frame.h (struct frame): Give one more bit to `visible' since we use
22146 values larger than 1 to indicate obscured frames on ttys.
22147
22148 * keymap.c (Qkeymap_canonicalize): New var.
22149 (Fmap_keymap_internal): New fun.
22150 (describe_map): Use keymap-canonicalize.
22151
22152 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22153 (Fundo_boundary): Set them.
22154 (syms_of_undo): Initialize them.
22155 (record_point): Use them instead of last_point_position*.
22156 (last_undo_buffer): Change type.
22157
22158 2008-04-04 Jason Rumney <jasonr@gnu.org>
22159
22160 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22161 (recompute_cached_metrics): Don't set ascent and descent per char.
22162
22163 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22164 (uniscribe_check_otf): Add GC protection before consing.
22165 Rearrange loop for counting features.
22166
22167 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22168
22169 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22170 buffer with byte-size of source buffer.
22171
22172 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
22173
22174 * callint.c (Fcall_interactively): Handle temporary region even
22175 when shift-select-mode is off.
22176
22177 2008-04-03 Jason Rumney <jasonr@gnu.org>
22178
22179 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22180
22181 2008-04-03 Kenichi Handa <handa@m17n.org>
22182
22183 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22184 (CATEGORY_MASK_UTF_16): Likewise.
22185 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22186 binary file.
22187 (detect_coding): Add null-byte detection for a binary file.
22188 (detect_coding_system): Likewise.
22189
22190 2008-04-03 Jason Rumney <jasonr@gnu.org>
22191
22192 * w32uniscribe.c: New file.
22193
22194 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22195
22196 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22197
22198 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22199 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22200 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22201 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22202 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22203 (Qphonetic): New symbols.
22204 (syms_of_w32font): Initialize them.
22205 (font_supported_scripts): Use them.
22206 (w32font_list_family): List all charsets.
22207 (w32font_text_extents, recompute_cached_metrics): Fix metric
22208 calculations.
22209 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22210 Give opentype fonts their own format.
22211 (font_matches_spec): New arguments backend and logfont.
22212 Handle :otf spec for uniscribe backend.
22213 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22214 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22215
22216 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22217 font backend.
22218 (globals_of_w32fns): Initialize uniscribe font backend.
22219
22220 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22221 dependencies.
22222 (w32uniscribe.$(O)): New file to build.
22223 (FONT_OBJ): Include w32uniscribe.$(O).
22224 (LIBS): Add uniscribe libraries.
22225
22226 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22227
22228 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
22229
22230 * callint.c (Vshift_select_mode): New var.
22231 (Finteractive): Document new ^ spec.
22232 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22233 is present.
22234
22235 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22236 (command_loop_1): Avoid running the direct display versions of
22237 forward-char and backward-char if shift-selection may occur.
22238 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22239 shift-translation takes place.
22240
22241 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22242 avoid clobbering by define-minor-mode.
22243
22244 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22245 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22246
22247 * syntax.c (Fforward_word): Add ^ interactive spec.
22248
22249 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22250 (Fscroll_right): Add ^ interactive spec.
22251
22252 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22253
22254 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22255
22256 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22257
22258 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22259
22260 2008-03-31 Juri Linkov <juri@jurta.org>
22261
22262 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22263
22264 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22265
22266 * gtkutil.c (xg_set_geometry): Fix indentation.
22267 (xg_resize_outer_widget): Remove.
22268 (x_wm_size_hint_off): Fix indentation.
22269 (xg_frame_set_char_size): Call flush_and_sync after
22270 gtk_window_resize.
22271 (x_wm_set_size_hint): Pass NULL as geometry window to
22272 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22273 Add menu bar and tool bar height to base height.
22274 (xg_update_frame_menubar, free_frame_menubar)
22275 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22276 (update_frame_tool_bar, free_frame_tool_bar):
22277 Change xg_resize_outer_widget to xg_frame_set_char_size.
22278
22279 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
22280
22281 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22282 (Fdbus_call_method): New parameter TIMEOUT.
22283 (dbus-send-signal): Optimize UNGCPRO call.
22284
22285 2008-03-29 Juri Linkov <juri@jurta.org>
22286
22287 * window.c (Fdisplay_buffer): Move call to
22288 Vsplit_window_preferred_function out of conditions that check
22289 if window is eligible for vertical splitting.
22290 When Vsplit_window_preferred_function is non-nil, call it and use
22291 its non-nil return value as window. Otherwise, continue doing
22292 vertical splitting using Fsplit_window with arg horflag=nil.
22293 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22294 default value from `split-window' to nil.
22295
22296 2008-03-29 Juri Linkov <juri@jurta.org>
22297
22298 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22299 for interactive code letters 'b' and 'B'.
22300
22301 2008-03-29 Eli Zaretskii <eliz@gnu.org>
22302
22303 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22304 multibyte string.
22305
22306 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22307
22308 * keyboard.c (pending_funcalls): New var.
22309 (timer_check): Run it.
22310 (syms_of_keyboard): Initialize it.
22311 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22312 (Vdelete_terminal_functions): New vars.
22313 (syms_of_terminal): Initialize them.
22314 (Fdelete_terminal): Run delete-terminal-functions.
22315 * xdisp.c (safe_eval): Rewrite.
22316 (safe_call2): New fun.
22317 * frame.c (Qdelete_frame_functions): New var.
22318 (syms_of_frame): Initialize it.
22319 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22320 * lisp.h (safe_call2, pending_funcalls): Declare.
22321
22322 2008-03-28 Andreas Schwab <schwab@suse.de>
22323
22324 * indent.c (Fmove_to_column): Move declaration before statements.
22325
22326 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22327
22328 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22329 (struct frame): Use bit fields for boolean vars.
22330
22331 * process.c (server_accept_connection): Simplify naming.
22332 (emacs_get_tty_pgrp): Use SDATA.
22333
22334 * coding.c (decode_coding_object): Fix last change.
22335
22336 2008-03-27 Jason Rumney <jasonr@gnu.org>
22337
22338 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22339
22340 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22341
22342 * charset.c (Fdefine_charset_internal): Change the way of
22343 registering charsets in Vcharset_order_list.
22344 (syms_of_charset): Make the charset `eight-bit' supplementary.
22345
22346 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22347
22348 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22349 operations, to avoid having the difference between pointers
22350 overflow.
22351
22352 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22353
22354 * indent.c (check_display_width): New fun.
22355 (scan_for_column): Use it.
22356
22357 * data.c (syms_of_data): Mark most-positive-fixnum and
22358 most-negative-fixnum as constants.
22359
22360 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22361
22362 * indent.c (scan_for_column): Extract from current_column_1.
22363 Merge with the same code from Fmove_to_column.
22364 (current_column_1, Fmove_to_column): Use it.
22365
22366 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22367
22368 * keymap.c (map_keymap_internal): New fun.
22369 (map_keymap): Use it.
22370 (Fmap_keymap_internal): New fun.
22371 (Fmap_keymap): Remove left-out test from before make_save_value.
22372
22373 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22374
22375 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22376 Use XCAR/XCDR.
22377
22378 * process.h (struct Lisp_Process): Remove filter_multibyte.
22379 * process.c (QCfilter_multibyte): Remove.
22380 (setup_process_coding_systems): Don't use filter_multibyte.
22381 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22382 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22383 (Fset_process_filter_multibyte): Change the coding-system to
22384 approximate the previous behavior.
22385 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22386 coding-system.
22387
22388 * coding.c (decode_coding_object): When not decoding into a buffer,
22389 obey the coding system's preference of (uni|multi)byte.
22390
22391 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22392
22393 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22394 every char is changed and has a different byte-length.
22395 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22396 Fix int -> EMACS_INT.
22397
22398 2008-03-23 David Hansen <david.hansen@gmx.net>
22399
22400 * dbusbind.c (xd_read_message): Remove extra copying of message
22401 strings. Check for NULL `interface' or `member'.
22402
22403 2008-03-22 Eli Zaretskii <eliz@gnu.org>
22404
22405 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22406 cFileName a file name that includes `?' characters, use the 8+3
22407 alias in cAlternateFileName instead.
22408
22409 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22410
22411 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22412
22413 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22414
22415 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22416 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22417 work on current_buffer only instead (that was already the case
22418 for some of the code anyway).
22419 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22420 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22421 (SET_PT, SET_PT_BOTH): Adjust.
22422 * intervals.h (set_point, temp_set_point, set_point_both)
22423 (temp_set_point_both): Remove redundant declarations.
22424
22425 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22426
22427 * fileio.c (Finsert_file_contents):
22428 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22429 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22430 when buffer != current_buffer anyway.
22431
22432 2008-03-20 Andreas Schwab <schwab@suse.de>
22433
22434 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22435 as default.
22436
22437 2008-03-19 Jason Rumney <jasonr@gnu.org>
22438
22439 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22440 (syms_of_w32fns): Initialize them.
22441 (HOURGLASS_ID): New constant.
22442 (x_window_to_frame): Don't check hourglass_window.
22443 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22444 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22445 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22446 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22447 Only change the cursor if hourglass is not active.
22448 (Fx_create_frame): Initialize frame's current_cursor.
22449 (hourglass_atimer): Remove.
22450 (hourglass_started): New function.
22451 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22452 (show_hourglass): Adapt to w32, changing argument to frame.
22453
22454 * w32term.h (struct w32_output): Remove hourglass_window.
22455 Add current_cursor.
22456
22457 * eval.c (call_debugger, Fsignal):
22458 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22459 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22460 (Fexecute_extended_command, cancel_hourglass_unwind):
22461 * minibuf.c (read_minibuf):
22462 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22463
22464 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22465
22466 * window.c (run_funs): New fun.
22467 (run_window_configuration_change_hook): Use it to run the buffer-local
22468 and the global part of the hook.
22469
22470 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22471 (unwind_format_mode_line): Restore selected window.
22472 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22473
22474 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22475
22476 * editfns.c (Fchar_equal): Check they are valid characters.
22477
22478 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22479
22480 2008-03-17 Andreas Schwab <schwab@suse.de>
22481
22482 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22483 against a charset.
22484
22485 * lisp.h (Fbuffer_list): Declare.
22486
22487 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
22488
22489 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22490 handlebox_widget is != 0.
22491
22492 2008-03-16 Juri Linkov <juri@jurta.org>
22493
22494 * callint.c (Fcall_interactively): For interactive code letters
22495 'b' and 'B' put the buffer list into the list of default "future"
22496 values of the minibuffer.
22497
22498 2008-03-16 Andreas Schwab <schwab@suse.de>
22499
22500 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22501 modifiers.
22502
22503 * regex.c (re_match_2_internal): Correct matching of a charset
22504 against latin-1 characters.
22505
22506 2008-03-16 Kenichi Handa <handa@m17n.org>
22507
22508 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22509 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22510 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22511 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22512 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22513 CHAR_STRING_ADVANCE.
22514 (produce_chars): Fix for the case that the source and the
22515 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22516 instead of CHAR_STRING_ADVANCE.
22517 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22518 STRING_CHAR_ADVANCE.
22519
22520 2008-03-15 Andreas Schwab <schwab@suse.de>
22521
22522 * regex.c (re_match_2_internal): Correct matching of eight bit
22523 characters in unibyte strings.
22524
22525 2008-03-15 Martin Rudalics <rudalics@gmx.at>
22526
22527 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22528 at end of range when it coincides with the end of the buffer.
22529
22530 2008-03-14 Eli Zaretskii <eliz@gnu.org>
22531
22532 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22533
22534 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22535
22536 2008-03-14 Jason Rumney <jasonr@gnu.org>
22537
22538 * editfns.c (initial_tz): New variable.
22539 (syms_of_editfns): Initialize it.
22540 (Fset_time_zone_rule): Set it when first called.
22541 Use it when TZSTRING is nil.
22542
22543 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22544 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22545 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22546 (globals_of_w32fns): Initialize them.
22547 (compute_tip_xy): Use them to position tooltips.
22548
22549 2008-03-14 Glenn Morris <rgm@gnu.org>
22550
22551 * emacs.c (main): Revert previous change.
22552 (standard_args): Revert -internal-script back to -scriptload,
22553 and remove the long-option form.
22554
22555 2008-03-13 Glenn Morris <rgm@gnu.org>
22556
22557 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22558 Remove option -enable-font-backend.
22559
22560 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22561
22562 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22563
22564 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22565
22566 * xterm.c (x_connection_closed): For GTK: If this is the last
22567 terminal just exit without closing the display.
22568
22569 2008-03-11 Jason Rumney <jasonr@gnu.org>
22570
22571 * w32font.c (w32font_full_name): Use floor to round.
22572
22573 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22574
22575 * sound.c (alsa_configure): Declare vol at beginning of block.
22576
22577 * fontset.c (Ffontset_info): Remove extra semicolon.
22578
22579 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22580
22581 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22582 size of resulting string.
22583
22584 2008-03-10 Jason Rumney <jasonr@gnu.org>
22585
22586 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22587
22588 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22589
22590 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22591 Don't pretend as if characters with display property haven't been
22592 consumed for string-replacing-string case.
22593
22594 2008-03-08 Kim F. Storm <storm@cua.dk>
22595
22596 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22597 (get_next_display_element, next_element_from_string)
22598 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22599
22600 2008-03-08 Andreas Schwab <schwab@suse.de>
22601
22602 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22603
22604 2008-03-06 Jason Rumney <jasonr@gnu.org>
22605
22606 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22607 when charset not specified. Only translate ANSI to unicode when
22608 font_type is truetype.
22609 (w32font_coverage_ok): New function.
22610 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22611
22612 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22613
22614 * lread.c (Fread_char): Resolve modifiers.
22615 (Fread_char_exclusive): Likewise.
22616
22617 * character.c (char_resolve_modifier_mask): New function.
22618 (char_string): Use char_resolve_modifier_mask.
22619 (Fchar_resolve_modifiers): New function.
22620 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22621 function.
22622
22623 2008-03-04 Jason Rumney <jasonr@gnu.org>
22624
22625 * makefile.w32-in: Always include w32font.c in the build.
22626 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22627
22628 2008-03-04 Andreas Schwab <schwab@suse.de>
22629
22630 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22631 (versionclean): Likewise.
22632
22633 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
22634
22635 * .cvsignore: Add oo.
22636
22637 2008-03-03 Andreas Schwab <schwab@suse.de>
22638
22639 * coding.c (decode_coding_object): Inhibit gap shrinking while
22640 decoding in place.
22641
22642 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22643
22644 * w32term.c: Remove unused include "gnu.h".
22645 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22646
22647 * gnu.h: Rename to ...
22648 * emacs-icon.h: ... this.
22649 * xterm.c: Use emacs-icon.h instead of gnu.h.
22650 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22651
22652 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
22653
22654 * w32font.c: Include math.h.
22655
22656 2008-03-03 Jason Rumney <jasonr@gnu.org>
22657
22658 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22659 Compute options separately.
22660 (w32font_open_internal): Set glyph_idx before caching metrics.
22661
22662 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22663 Define if system headers don't.
22664 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22665 (w32font_encode_char): Don't declare here.
22666
22667 * w32font.c (Quniscribe, QCformat): New symbols.
22668 (syms_of_w32font): Define them.
22669 (w32font_has_char): Indicate uncertainty.
22670 (w32font_encode_char): Encode as glyph point. Make static.
22671 (recompute_cached_metrics): New function.
22672 (w32font_open_internal): Use it. Set font to use glyph points
22673 initially. Set format based on type of font.
22674 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22675 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22676 on it. Set format based on information available here.
22677 (add_font_entity_to_list): Identify backend based on opentype_only.
22678
22679 2008-03-02 Andreas Schwab <schwab@suse.de>
22680
22681 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22682
22683 * coding.c (decode_coding_big5, produce_chars):
22684 Fix typos in last change.
22685
22686 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22687
22688 * gnu.h: New icon.
22689
22690 2008-03-02 Kenichi Handa <handa@m17n.org>
22691
22692 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22693 `dos', don't decode '\r' if that is the last in the source.
22694 (decode_coding_utf_16, decode_coding_emacs_mule)
22695 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22696 (decode_coding_raw_text, decode_coding_charset): Likewise.
22697 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22698
22699 2008-03-01 Jason Rumney <jasonr@gnu.org>
22700
22701 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22702
22703 2008-03-01 Kim F. Storm <storm@cua.dk>
22704
22705 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22706
22707 2008-03-01 Jason Rumney <jasonr@gnu.org>
22708
22709 * w32font.c (w32font_full_name): New function.
22710 (w32font_open_internal): Use it.
22711
22712 2008-03-01 Kim F. Storm <storm@cua.dk>
22713
22714 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22715
22716 2008-03-01 Jason Rumney <jasonr@gnu.org>
22717
22718 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22719
22720 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22721
22722 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22723 xg_frame_resized when the event is for the edit widget.
22724
22725 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
22726
22727 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22728 set_char_size.
22729 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
22730 operations on widgets here. Just set frame size if needed.
22731 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22732 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22733 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22734 the whole frame.
22735 (xg_create_tool_bar): Move attachment of the tool bar to
22736 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22737 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22738
22739 2008-03-01 Jason Rumney <jasonr@gnu.org>
22740
22741 * w32fns.c (w32_msg_pump): Disable debug code.
22742
22743 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22744
22745 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22746
22747 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
22748
22749 * xdisp.c (next_overlay_string): Don't set
22750 overlay_strings_at_end_processed_p if we're currently reading from
22751 a display string.
22752
22753 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22754
22755 * xdisp.c (get_overlay_strings_1): Fix typo.
22756
22757 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
22758
22759 * xdisp.c (get_overlay_strings_1): Add missing argument type.
22760
22761 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
22762
22763 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
22764
22765 * xdisp.c (display_mode_element): Cancel the previous change.
22766 (decode_mode_spec): Likewise.
22767 (handle_auto_composed_prop): Don't make composition if it->string
22768 is a string.
22769
22770 2008-02-27 Kim F. Storm <storm@cua.dk>
22771
22772 * lisp.h (GLYPH): Change type from int to struct with separate char
22773 and face_id members.
22774 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
22775 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
22776 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
22777 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
22778 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
22779 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
22780 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
22781 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
22782 handle new Lisp glyph code encoding, either an integer or a cons.
22783
22784 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
22785 (GLYPH_ALIAS): Delete.
22786 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
22787 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
22788 (GLYPH_FROM_CHAR): Replace macro by ...
22789 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
22790
22791 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
22792 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
22793 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
22794 (GLYPH_INVALID_P): New macro.
22795 (spec_glyph_lookup_face): Update prototype.
22796
22797 * dispnew.c (line_draw_cost): Adapt to new glyph type.
22798 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
22799 new glyph code encoding.
22800 (spec_glyph_lookup_face): No return value; update passed glyph instead.
22801 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
22802
22803 * xdisp.c (get_next_display_element, next_element_from_display_vector):
22804 Adapt to new glyph type and new glyph code encoding.
22805
22806 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
22807
22808 * indent.c (current_column, current_column_1, Fmove_to_column)
22809 (compute_motion): Adapt to new glyph code encoding.
22810
22811 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
22812
22813 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
22814
22815 * process.c (wait_reading_process_output): Check for window
22816 changes caused by timers.
22817 Suggested by Johan Bockgård.
22818
22819 2008-02-27 Glenn Morris <rgm@gnu.org>
22820
22821 * emacs.c (USAGE1): Add `--disable-font-backend'.
22822
22823 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
22824
22825 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
22826 is made to the buffer.
22827
22828 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
22829
22830 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
22831 (face_at_string_position):
22832 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
22833 (face_at_string_position):
22834 * xdisp.c (display_string, next_overlay_change):
22835 * buffer.h (overlays_at):
22836 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
22837 Update callers.
22838
22839 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
22840
22841 * editfns.c (Fformat): Doc fix.
22842
22843 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
22844
22845 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
22846 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
22847 (Ffont_otf_alternates, Fquery_font): Doc fixes.
22848
22849 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22850
22851 * buffer.c (Fbuffer_swap_text): New function.
22852 (syms_of_buffer): Defsubr it.
22853
22854 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
22855
22856 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
22857
22858 2008-02-25 Jason Rumney <jasonr@gnu.org>
22859
22860 * w32font.c (w32font_draw): Draw one character at a time when padding.
22861
22862 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22863
22864 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
22865 Handle a nil arg. Use run_window_configuration_change_hook.
22866 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
22867 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
22868 Use run_window_configuration_change_hook.
22869
22870 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22871
22872 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
22873 1-pixel width.
22874
22875 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22876
22877 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
22878 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
22879 if the glyph in the font is zero pixel with.
22880
22881 * dispextern.h (struct glyph_string): New member padding_p.
22882
22883 * w32font.c (w32font_draw): Pay attention to s->padding_p.
22884
22885 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
22886
22887 * xfont.c (xfont_draw): Pay attention to s->padding_p.
22888
22889 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
22890
22891 * font.c: If the font driver doesn't have `shape' function, return Qnil.
22892
22893 2008-02-25 Jason Rumney <jasonr@gnu.org>
22894
22895 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
22896
22897 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
22898
22899 Allow fine-grained image-cache flushing.
22900 * dispextern.h (struct image): Add `dependencies' field.
22901 (clear_image_caches): Change arg to Lisp_Object.
22902 * image.c (make_image): Initialize `dependencies' field.
22903 (clear_image_cache): Change arg to allow fine-grained flushing.
22904 Perform the flush even if image-cache-eviction-delay is nil.
22905 (clear_image_caches): Change arg to Lisp_Object.
22906 (Fclear_image_cache): Expand meaning of the argument.
22907 (mark_image): Mark `dependencies' field.
22908 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
22909 (lface_hash): Use XHASH rather than XFASTINT.
22910 (face_at_buffer_position): Fix int -> EMACS_INT position.
22911 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
22912 (select_frame_for_redisplay): Remove code duplication.
22913 (redisplay_internal): Adapt arg to call to clear_image_caches.
22914
22915 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
22916
22917 * s/vms4-0.h:
22918 * s/vms4-2.h:
22919 * s/vms4-4.h:
22920 * s/vms5-5.h: Remove, unused.
22921
22922 * s/irix5-2.h:
22923 * s/irix6-0.h:
22924 * s/riscos5.h:
22925 * s/mach-bsd4-3.h:
22926 * m/mips4.h: Remove files for obsolete systems.
22927
22928 * Makefile.in:
22929 * filelock.c:
22930 * unexmips.c:
22931 * m/hp9000s300.h:
22932 * m/iris4d.h:
22933 * s/aix3-1.h:
22934 * s/hpux.h:
22935 * s/msdos.h:
22936 * s/usg5-0.h:
22937 * s/usg5-2-2.h:
22938 * s/usg5-2.h:
22939 * s/usg5-3.h: Remove references to obsolete variables.
22940
22941 * s/irix5-0.h: Remove, move all the contents ...
22942 * s/irix6-5.h: ... here. Simplify.
22943 * config.in: Regenerate.
22944
22945 2008-02-24 Jason Rumney <jasonr@gnu.org>
22946
22947 * w32term.c (x_draw_glyph_string_background): Clear the background
22948 manually when cleartype is in use.
22949 (x_draw_glyph_string_foreground): Draw text transparently when
22950 cleartype is in use.
22951
22952 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
22953 a font into it unless we have to.
22954
22955 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22956
22957 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
22958 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
22959
22960 2008-02-18 Jason Rumney <jasonr@gnu.org>
22961
22962 * w32fns.c (Fw32_shell_execute): Encode parameters.
22963
22964 2008-02-09 Eli Zaretskii <eliz@gnu.org>
22965
22966 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22967
22968 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
22969
22970 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22971
22972 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22973
22974 * xterm.c (x_set_offset): Don't change the gravity if
22975 CHANGE_GRAVITY is -1.
22976
22977 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
22978
22979 * fileio.c (auto_save_error_occurred): New var.
22980 (auto_save_error): Set it.
22981 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22982 error occurred.
22983
22984 2008-02-23 Eli Zaretskii <eliz@gnu.org>
22985
22986 * w32.c (globals_of_w32): Add initializations for
22987 g_b_init_get_sid_sub_authority and
22988 g_b_init_get_sid_sub_authority_count.
22989
22990 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22991
22992 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
22993 (font_parse_xlfd): Use them for sanity check.
22994 (Finternal_set_font_style_table): Make sure the table is bijective.
22995
22996 Consolidate the image_cache to the terminal struct.
22997 * termhooks.h (P_): Remove redundant def.
22998 (struct terminal): New field `image_cache'.
22999 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23000 of FRAME_X_IMAGE_CACHE.
23001 * xterm.h (struct x_display_info): Remove image_cache field.
23002 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23003 * w32term.h (struct w32_display_info): Remove image_cache field.
23004 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23005 * macterm.h (struct mac_display_info): Remove image_cache field.
23006 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23007 * xterm.c (x_term_init):
23008 * w32term.c (w32_term_init):
23009 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23010 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23011 Remove declarations.
23012 (clear_image_caches, mark_image_cache): New declarations.
23013 * xfaces.c (clear_face_cache):
23014 * xdisp.c (redisplay_internal): Use clear_image_caches.
23015 * image.c (clear_image_cache): Don't check that a frame is on
23016 a window-system before checking if it shares the same cache.
23017 (clear_image_caches): New function.
23018 (Fclear_image_cache): Use it.
23019 (mark_image): Move from allo.c.
23020 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23021 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23022 (mark_object): Don't call mark_image_cache for frames.
23023 (mark_terminals): Call mark_image_cache.
23024
23025 * lisp.h (Fdelete_terminal): Declare.
23026
23027 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23028 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23029 wrong_type_argument.
23030
23031 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23032
23033 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23034 malayalam.el, and tamil.el. Add sinhala.el.
23035
23036 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23037
23038 * xterm.c (x_connection_closed): Consolidate identical tests.
23039 (x_delete_terminal): Don't crash if called via x_connection_closed.
23040
23041 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23042
23043 * xdisp.c (decode_mode_spec): New arg string.
23044 (display_mode_element): Adjust for the above change.
23045
23046 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23047
23048 * callint.c (Fcall_interactively): Use AREF.
23049
23050 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23051
23052 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23053
23054 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23055
23056 * xfns.c (Fx_show_tip): Set string to " " if empty.
23057
23058 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23059
23060 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23061 with Qt.
23062
23063 2008-02-17 Kenichi Handa <handa@m17n.org>
23064
23065 * ftfont.c (ftfont_shape): Return Lispy number.
23066
23067 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23068 for GCs.
23069 (Finternal_set_font_selection_order): Call font_update_sort_order
23070 only when enable_font_backend is set.
23071 (realize_x_face): Set face->font_info to that of default face only
23072 when enable_font_backend is set.
23073
23074 * xdisp.c (handle_composition_prop): Set it->c to the fist
23075 character of the composed region.
23076 (fill_composite_glyph_string): Set base_face->font_info to
23077 s->font_info. Get a face for ascii from base_face->ascii_face.
23078 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23079 with a face already decided.
23080 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23081 non-negative.
23082 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23083 call font_prepare_composition unconditionally.
23084
23085 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23086
23087 * xterm.h (struct x_display_info): New member font.
23088
23089 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23090 (x_set_mouse_face_gc, x_new_font): Likewise.
23091 (x_term_init): Setup display_info->font.
23092 (x_delete_terminal): Free display_info->font.
23093
23094 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23095
23096 * ftxfont.c (ftxfont_default_fid): Delete it.
23097 (ftxfont_open): Set xfont->fid to 0.
23098 (ftxfont_end_for_frame): Clear data specific to the frame and the
23099 font-driver.
23100
23101 * xftfont.c (xftfont_default_fid): Delete it.
23102 (xftfont_open): Set xfont->fid to 0.
23103
23104 * fontset.c (FONTSET_OBJLIST): New macro.
23105 (fontset_find_font): Update font-object list of the fontset.
23106 (free_realized_fontset): New function.
23107 (free_face_fontset): Call free_realized_fontset.
23108 (Ffont_info): Call font_close_object only when enable_font_backend
23109 is set.
23110
23111 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23112 [HAVE_NTGUI]: Include w32term.h.
23113 [MAC_OS]: Include macterm.ch.
23114 (font_otf_ValueRecord): Use make_number.
23115 (font_finish_cache): Fix handling of reference count.
23116 (font_clear_cache): Update num_fonts.
23117 (font_open_entity): Update smallest_char_width and
23118 smallest_font_height of the frame.
23119 (font_close_object): Update num_fonts.
23120 (Fclear_font_cache): Fix finding the target cache data.
23121
23122 2008-02-16 Glenn Morris <rgm@gnu.org>
23123
23124 * fontset.c (Finternal_char_font): Fix compilation warning.
23125
23126 2008-02-16 Eli Zaretskii <eliz@gnu.org>
23127
23128 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23129 instead of char arrays. Enlarge the size of array passed to
23130 get_token_information.
23131
23132 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23133 warnings.
23134
23135 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23136
23137 * .gdbinit: Don't set `args', it breaks gdb --args.
23138
23139 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23140
23141 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23142 within a narrowed buffer.
23143
23144 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23145
23146 * coding.c (decode_coding_object, encode_coding_object):
23147 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23148
23149 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23150
23151 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23152 hardcoding 1.
23153 (detect_coding_system):
23154 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23155 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23156 * insdel.c (insert_from_gap):
23157 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23158 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23159 (string_to_multibyte):
23160 * character.c (chars_in_text, multibyte_chars_in_text):
23161 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23162
23163 * character.h (FETCH_STRING_CHAR_ADVANCE)
23164 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23165 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23166 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23167
23168 * casefiddle.c (casify_region): Only call after-change and composition
23169 functions on the part of the region that was changed.
23170
23171 * keyboard.c (read_avail_input):
23172 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23173
23174 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23175
23176 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23177 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23178
23179 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
23180
23181 * w32menu.c (push_submenu_start, push_submenu_end)
23182 (push_left_right_boundary, push_menu_pane, push_menu_item):
23183 * keyboard.c (read_key_sequence): Don't pass args with side effects
23184 to AREF, it fails when compiling with -DENABLE_CHECKING.
23185
23186 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23187
23188 * Makefile.in (${lispsource}international/charprop.el):
23189 Delete this target.
23190
23191 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23192 emacs-unicode-2.
23193
23194 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23195
23196 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23197
23198 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23199
23200 * frame.c (Qnoelisp): New symbol.
23201 (syms_of_frame): Initialize it.
23202 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23203 harmless Elisp code, from a strong `force' from x_connection_closed.
23204 * frame.h (Qnoelisp): Declare.
23205 * xterm.c (x_connection_closed): Pass `noelisp'.
23206
23207 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23208 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23209 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23210 rather than `int' for the type of `type'.
23211
23212 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23213
23214 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23215
23216 * Makefile.in (GNUC): Remove support for gcc-1.x.
23217
23218 2008-02-10 Richard Stallman <rms@gnu.org>
23219
23220 * lisp.h (ASET): Use AREF, not ASLOT.
23221
23222 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23223
23224 * lisp.h (ASET): Check bounds.
23225
23226 2008-02-10 Glenn Morris <rgm@gnu.org>
23227
23228 * buffer.c (mode-name): Doc fix.
23229
23230 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23231
23232 * Makefile.in:
23233 * emacs.c:
23234 * gmalloc.c:
23235 * keyboard.c:
23236 * lisp.h:
23237 * m/ibm370aix.h:
23238 * process.c:
23239 * regex.c:
23240 * s/hpux.h:
23241 * sysdep.c:
23242 * sysselect.h:
23243 * systty.h:
23244 * unexec.c:
23245 * w32term.c:
23246 * xsmfns.c:
23247 * xterm.c: Remove code that deals with obsolete variables.
23248
23249 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23250
23251 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23252 nothing else needs it anymore.
23253
23254 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23255
23256 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23257 instead of unibyte_char_to_multibyte.
23258
23259 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23260
23261 * s/gnu-linux.h: Remove commented out code.
23262
23263 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23264
23265 * Makefile.in: Update what RMS says about using autoconf.
23266 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23267 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23268 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23269 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23270
23271 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23272
23273 * keymap.c (Fkey_description): Move side effect outside of macro call.
23274
23275 * xfaces.c (Finternal_make_lisp_face):
23276 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23277
23278 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23279 (syms_of_fontset): Use ASET.
23280
23281 * fns.c (concat): Move side effect outside of macro call.
23282 (hash_clear): Use ASET.
23283
23284 2008-02-08 Richard Stallman <rms@gnu.org>
23285
23286 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23287 If FORCE, and frame has a surrogate minibuffer for another frame,
23288 delete the other frame first.
23289
23290 2008-02-07 Timo Savola <timo.savola@iki.fi>
23291
23292 * xterm.c (x_detect_focus_change): Handle embed client message.
23293 (handle_one_xevent): Ditto.
23294 (handle_one_xevent): If embedded and we get a button press/release,
23295 request focus.
23296 (xembed_set_info, xembed_send_message): New functions.
23297 (x_make_frame_visible): Call xembed_set_info if embedded.
23298 (x_make_frame_invisible): Call xembed_set_info if embedded.
23299 (x_term_init): Initialize Xatom_XEMBED.
23300 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23301 (x_iconify_frame): Ditto.
23302
23303 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23304 (enum xembed_info, enum xembed_message, enum xembed_focus)
23305 (enum xembed_modifier, enum xembed_accelerator): New.
23306 (xembed_set_info, xembed_send_message): Declare.
23307 (FRAME_X_EMBEDDED_P): New.
23308
23309 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23310 gtk_plug_new.
23311
23312 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23313 window ID of a frame.
23314 (x_window): Reparent frame if embedded.
23315 (Fx_create_frame): Don't set border width if embedded.
23316
23317 * emacs.c (USAGE3): Add --parent-id.
23318 (standard_args): Ditto.
23319
23320 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23321
23322 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23323
23324 2008-02-07 Jim Meyering <meyering@redhat.com>
23325
23326 Use "do...while (0)", not "if (1)...else" in macro definitions.
23327 The latter provokes a warning from gcc about the empty else, when
23328 followed by ";". Also, without that trailing semicolon, it would
23329 silently swallow up any following statement.
23330 * syntax.h (SETUP_SYNTAX_TABLE)
23331 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23332 * buffer.h (DECODE_POSITION): Likewise.
23333 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23334 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23335 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23336 (FETCH_CHAR_ADVANCE): Likewise.
23337 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23338
23339 2008-02-07 Jim Meyering <meyering@redhat.com>
23340
23341 * lread.c [lint]: Don't include <sys/inode.h>.
23342
23343 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23344
23345 * xselect.c (x_handle_dnd_message):
23346 * xmenu.c (digest_single_submenu, xmenu_show):
23347 * xdisp.c (with_echo_area_buffer_unwind_data)
23348 (format_mode_line_unwind_data, unwind_format_mode_line)
23349 (display_menu_bar):
23350 * eval.c (Ffetch_bytecode):
23351 * doc.c (store_function_docstring):
23352 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23353 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23354 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23355
23356 2008-02-07 Kenichi Handa <handa@m17n.org>
23357
23358 * ftxfont.c (ftxfont_open): Don't set
23359 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23360
23361 * ftfont.c (ftfont_open): Fix previous change.
23362
23363 2008-02-06 Jason Rumney <jasonr@gnu.org>
23364
23365 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23366 Use cached metrics for ASCII characters.
23367 (w32font_open_internal): Don't set font's owning_frame.
23368 Cache metrics for ASCII characters.
23369
23370 * w32font.h (struct w32font_info): Add ascii_metrics.
23371 Remove owning_frame.
23372
23373 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23374
23375 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23376 to negative value.
23377
23378 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23379
23380 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23381
23382 * charset.c (syms_of_charset): Set QCtest and Qeq.
23383
23384 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23385
23386 * process.c (Fstart_process):
23387 * callproc.c (Fcall_process): Handle the case where
23388 Funhandled_file_name_directory returns nil.
23389
23390 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23391 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23392 * font.c (check_gstring): Use them and AREF to access the vector before
23393 we know it's really a gstring.
23394 (Ffont_shape_text): Fix typo.
23395 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
23396
23397 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23398 Declare.
23399
23400 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23401
23402 2008-02-05 Jason Rumney <jasonr@gnu.org>
23403
23404 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23405 Set smallest_font_height and smallest_char_width in display info.
23406
23407 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23408
23409 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23410
23411 2008-02-05 Miles Bader <miles@gnu.org>
23412
23413 * xfaces.c (get_lface_attributes, merge_named_face)
23414 (lookup_named_face, lookup_derived_face, realize_named_face):
23415 Revert 2008-02-01 change by cyd@stupidchicken.com.
23416
23417 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23418
23419 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23420 fallback fonts.
23421 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23422
23423 2008-02-04 Jason Rumney <jasonr@gnu.org>
23424
23425 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23426 set full_name.
23427 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23428
23429 2008-02-03 Jason Rumney <jasonr@gnu.org>
23430
23431 * makefile.w32-in (OBJ1): Include font.o here.
23432 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23433
23434 2008-02-02 Jason Rumney <jasonr@gnu.org>
23435
23436 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23437
23438 2008-02-01 Jason Rumney <jasonr@gnu.org>
23439
23440 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23441
23442 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23443
23444 2008-02-01 Andreas Schwab <schwab@suse.de>
23445
23446 * Makefile.in (shortlisp, lisp): Update for rename of
23447 ../lisp/language/myanmar.el.
23448
23449 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
23450
23451 * xfaces.c (get_lface_attributes): Delete function.
23452 (merge_named_face, lookup_named_face, lookup_derived_face)
23453 (realize_named_face): Call lface_from_face_name directly, and use
23454 the fact that merge_face_vectors does not alter its FROM argument.
23455
23456 2008-02-01 Jason Rumney <jasonr@gnu.org>
23457
23458 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23459 input in the default locale. Handle non-Unicode multibyte input.
23460
23461 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23462
23463 * fontset.c (reorder_font_vector): Exclude nil elements from the
23464 font group. Don't try multiple fonts.
23465 (fontset_font): Adjust for the above change.
23466 (Finternal_char_font): Return nil if the found font doesn't
23467 contain the character ch.
23468
23469 * Makefile.in (lisp, shortlisp): Add cham.el.
23470
23471 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23472
23473 * font.h (FONTP): Make it return 1 also for a font-object.
23474
23475 * .gdbinit (xfontset): New function.
23476
23477 * font.c (font_find_for_lface): Check if the character C is
23478 supported or not only for the first font.
23479
23480 * fontset.c (reorder_font_vector): Fix typo.
23481 (fontset_find_font): Don't add a font-spec specifying a script.
23482 Use 0 (not Qt) for the indication of empty font-group. Change the
23483 format of RFONT-DEF. Return Qt if no font in the font-group
23484 support the character.
23485 (fontset_font): Adjust for the above change. If no font was
23486 found the character, remember that.
23487 (face_for_char): Adjust for the change of RFONT-DEF.
23488 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23489 no font for the target.
23490 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23491
23492 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23493
23494 * font.c (font_load_for_face): Handle the case that the font in
23495 face->lface is a string.
23496
23497 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23498
23499 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23500
23501 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23502
23503 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23504 Fix previous change. If the frame is not on a window system,
23505 signal an error.
23506
23507 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23508
23509 * coding.c (decode_coding_object, encode_coding_object):
23510 Adjust marker positions after conversion.
23511
23512 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23513
23514 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23515
23516 * font.c (font_find_for_lface): Fix the handling of the return
23517 value of font_has_char.
23518 (Ffont_shape_text): Fix previous change.
23519
23520 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23521 (fontset_ref_and_range): Delete it.
23522 (fontset_find_font): Call char_table_ref_and_range instead of
23523 FONTSET_REF_AND_RANGE.
23524 (make_fontset): Don't setup font groups of Latin here.
23525 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23526 (new_fontset_from_font): Make the specified font the default for
23527 all Latin characters.
23528
23529 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23530
23531 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23532 is on a window system before accessing the fontset of the frame.
23533
23534 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23535
23536 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23537
23538 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23539 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23540
23541 * font.c (Ffont_shape_text): If the font driver doesn't have a
23542 shaper function, make zero-width glyphs to have at least one-pixel
23543 width. Fix setting of `to' field of glyphs.
23544
23545 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23546
23547 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23548 glyphs.
23549
23550 * font.h (struct font_driver): Improve docstring of member `shape'.
23551
23552 2008-02-01 Kenichi Handa <handa@m17n.org>
23553
23554 * composite.c (syms_of_composite): Fix docstring of
23555 auto-composition-function.
23556
23557 * font.h (LGLYPH_SIZE): New macro.
23558
23559 * font.c (Ffont_fill_gstring): Stop filling when a character not
23560 supported by the font is found.
23561 (Ffont_shape_text): When a shape callback function returns nil,
23562 try at most two more times with larger gstring.
23563 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23564
23565 * xdisp.c (handle_auto_composed_prop): Change the argument to
23566 auto-composition-function.
23567
23568 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23569 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23570 Lispy glyph and store it in the lgstring.
23571
23572 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23573
23574 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23575
23576 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23577
23578 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23579
23580 * fontset.c (Vfont_encoding_charset_alist): New variable.
23581 (syms_of_fontset): DEFVAR it.
23582 (reorder_font_vector, fontset_find_font): Optimize for the case of
23583 no need of reordering.
23584 (face_for_char): Map the charset property by
23585 Vfont_encoding_charset_alist.
23586
23587 2008-02-01 Jason Rumney <jasonr@gnu.org>
23588
23589 * w32font.c (logfonts_match): Don't check adstyle here.
23590 (font_matches_spec): Check here against physical font instead.
23591 (add_font_entity_to_list): Avoid some substitutions.
23592
23593 * font.c (font_parse_fcname): Default weight and slant to normal.
23594 (font_score): Prefer normal fonts if weight or slant unspecified.
23595 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23596 match freetype scores.
23597
23598 2008-02-01 Jason Rumney <jasonr@gnu.org>
23599
23600 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23601 font, as it may have been deleted.
23602 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23603 most common hyphenless variation.
23604 (logfonts_match): Check generic family.
23605 (font_matches_spec): Don't check generic family here.
23606 (fill_in_logfont): Set generic family based on adstyle.
23607
23608 * w32font.h (w32font_get_cache): Update declaration.
23609
23610 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23611
23612 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23613
23614 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23615 If none of the new drivers are available, call font_update_drivers
23616 with the old drivers.
23617
23618 * w32font.c (w32font_get_cache): Adjust the argument type.
23619
23620 * xfont.c (xfont_get_cache): Adjust the argument type.
23621
23622 * font.h (struct font_driver): Change argument type of get_cache.
23623
23624 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23625
23626 * font.c (Ffont_get): Fix arguments to Fassoc.
23627 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23628 (font_clear_cache): New function.
23629 (font_list_entities, font_matching_entity): Use font_get_cache.
23630 (font_update_drivers): Call font_clear_cache when finishing a driver.
23631
23632 * fontset.c (fontset_find_font): Fix previous change.
23633
23634 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23635
23636 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23637 dpyinfo->font_table.
23638 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23639 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23640
23641 * font.c (font_at): Handle the case that the arg C is negative.
23642 Handle the unibyte case.
23643 (Ffont_at): Call font_at with the arg C -1.
23644
23645 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23646 the position here, and call font_at with the arg C -1.
23647 Don't check the range of the existing composition at the point.
23648
23649 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23650
23651 * fontset.c (fontset_add): New args charset_id and family.
23652 Change caller.
23653 (load_font_get_repertory, fontset_find_font): Assume that
23654 font_spec is always a font-spec object.
23655 (Fset_fontset_font): Always store a font-spec object in a fontset.
23656
23657 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23658 instead of get_property_and_range.
23659
23660 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23661
23662 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23663 (xftfont_open): Don't keep locking face.
23664 (xftfont_close): Don't unlock face.
23665 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23666
23667 * fontset.c (fontset_find_font): Don't prefer a font of
23668 supplementary charset.
23669
23670 2008-02-01 Kenichi Handa <handa@m17n.org>
23671
23672 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23673 script, langsys_tag to langsys, new member script.
23674 (OTF_TAG_STR): Terminate by '\0'.
23675 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
23676 listing to the script specified in that property. Fix arg to
23677 OTF_check_features.
23678
23679 2008-02-01 Jason Rumney <jasonr@gnu.org>
23680
23681 * w32font.h: New file.
23682
23683 * w32font.c: Include it.
23684 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23685 (w32font_open): Set owning_frame.
23686 (w32font_text_extents): Use owning_frame.
23687 (struct font_callback_data): Add opentype_only field.
23688 (add_font_entity_to_list): Use it to filter fonts.
23689 Don't check against full name.
23690 (w32font_list_internal): New function.
23691 (w32font_list): Use it.
23692 (w32font_match_internal): New function.
23693 (w32font_match): Use it.
23694 (w32font_open_internal): New function.
23695 (w32font_open): Use it.
23696 (w32font_get_cache, w32font_close, w32font_has_char)
23697 (w32font_encode_char, w32font_text_extents, w32font_draw):
23698 Make non-static.
23699
23700 * makefile.w32-in (w32font.o): Depend on w32font.h.
23701
23702 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23703
23704 * charset.c (Fdefine_charset_internal): Record a supplementary
23705 charset at the tail of Vcharset_order_list.
23706
23707 * font.c (Ffont_shape_text): Fix the return value.
23708
23709 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23710
23711 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23712
23713 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23714
23715 * ftfont.c (struct OpenTypeSpec): New struct.
23716 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23717 (ftfont_get_open_type_spec): New function.
23718 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23719
23720 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23721
23722 2008-02-01 Jason Rumney <jasonr@gnu.org>
23723
23724 * w32font.c (add_font_entity_to_list): Compare only the beginning
23725 of full name.
23726
23727 2008-02-01 Kenichi Handa <handa@m17n.org>
23728
23729 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23730 Never return HANDLED_RECOMPUTE_PROPS.
23731
23732 2008-02-01 Kenichi Handa <handa@m17n.org>
23733
23734 * font.c (font_gstring_produce): Delete it.
23735
23736 * composite.h (COMPOSITION_METHOD):
23737 Handle COMPOSITION_WITH_GLYPH_STRING.
23738
23739 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23740
23741 * xfont.c (Qx): Delete.
23742 (syms_of_xfont): Don't initialize Qx.
23743
23744 * composite.h (enum composition_method):
23745 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23746
23747 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23748
23749 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23750 (choose_face_font): Accept new form of font-spec.
23751
23752 * frame.h (font_driver_list): Declare it unconditionally.
23753 (struct frame): Define members font_driver_list and font_data_list
23754 unconditionally.
23755
23756 * fontset.c: Include "font.h" unconditionally.
23757 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
23758 (Fset_fontset_font): Accept a font-spec object.
23759
23760 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
23761 PIXEL_SIZE part a wild card.
23762
23763 * dispextern.h (struct glyph_string): Define members clip and
23764 num_clips unconditionally.
23765 (struct face): Define members font_info and extra unconditionally.
23766
23767 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
23768 ftfont_info only when HAVE_LIBOTF is defined.
23769
23770 2008-02-01 Andreas Schwab <schwab@suse.de>
23771
23772 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
23773 and end.
23774
23775 2008-02-01 Jason Rumney <jasonr@gnu.org>
23776
23777 * w32font.c (w32font_driver): Add new fields.
23778
23779 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23780
23781 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
23782 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
23783 (LIBES): Add @M17N_FLT_CFLAGS@.
23784
23785 * composite.c (compose_text): Don't treat the new style
23786 composition specially.
23787
23788 * emacs.c (main): Call syms_of_font unconditionally.
23789
23790 * font.h (FONT_ENTITY_NOT_LOADABLE)
23791 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
23792 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
23793 (struct font_driver): New member shape.
23794 (font_registry_charsets): Extern it.
23795 (font_find_for_lface, font_prepare_composition): Adjust prototype.
23796 (font_otf_capability, font_drive_otf): Delete their externs.
23797
23798 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
23799 (font_charset_alist, font_registry_charsets): Move from xfont.c
23800 and rename.
23801 (font_prop_validate_otf): New function.
23802 (font_property_table): Register it for QCotf.
23803 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
23804 (font_drive_otf): Delete.
23805 (font_prepare_composition): New arg F. Adjust for the change of
23806 lispy gstring.
23807 (font_find_for_lface): New arg C.
23808 (font_load_for_face): Adjust for the change of font_find_for_lface.
23809 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
23810 lispy gstring.
23811 (Ffont_shape_text): New function.
23812 (Fopen_font): If the font size is not given, use 12-pixel.
23813 (Ffont_at): New arg STRING.
23814 (syms_of_font): Initialize font_charset_alist.
23815 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
23816 conditionally.
23817
23818 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
23819 fonts of the same font-spec. Change the format of RFONT-DEF.
23820 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
23821 Adjust for the change of RFONT-DEF.
23822 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
23823
23824 * ftfont.h: New file.
23825
23826 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
23827 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23828 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23829 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
23830 font_otf_capability and font_drive_otf, set ftfont_shape.
23831 (ftfont_list): Adjust for the change of :otf property value.
23832 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
23833 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
23834 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
23835 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23836 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
23837 (otf_gstring, gstring, m17n_flt_initialized): New variables.
23838
23839 * w32term.c (x_draw_composite_glyph_string_foreground):
23840 Adjust for the change of lispy gstring.
23841
23842 * xdisp.c (handle_composition_prop): Adjust for the change of
23843 lispy gstring. Call a function for auto-composition with the
23844 third arg it->window.
23845 (fill_composite_glyph_string): Adjust for the change of lispy string.
23846 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
23847
23848 * xfaces.c (set_font_frame_param): Adjust for the change of
23849 font_find_for_lface.
23850
23851 * xfont.c (x_font_charset_alist): Move to font.c and rename.
23852 (xfont_registry_charsets): Likewise. Change caller.
23853 (syms_of_xfont): Don't handle x_font_charset_alist.
23854
23855 * xftfont.c: Include "ftfont.h".
23856 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23857 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23858 (xftfont_close) [HAVE_LIBOTF]: Close otf.
23859 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23860 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
23861 Set xftfont_driver.shape to xftfont_shape.
23862
23863 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23864 the change of lispy gstring.
23865
23866 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23867
23868 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
23869
23870 2008-02-01 Jason Rumney <jasonr@gnu.org>
23871
23872 * w32font.c (w32font_draw): Fill background manually.
23873
23874 2008-02-01 Jason Rumney <jasonr@gnu.org>
23875
23876 * font.c (Qfontp): Remove unused symbol.
23877 (QCantialias): New symbol.
23878 (syms_of_font): Define it.
23879 (font_property_table): Set a validator for QCantialias.
23880
23881 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
23882 Define if not already.
23883 (QCfamily): Share with xfaces.c.
23884 (Qstandard, Qsubpixel, Qnatural): New symbols.
23885 (syms_of_w32font): Define them. Don't define QCfamily here.
23886 (w32_antialias_type, lispy_antialias_type): New functions.
23887 (w32_enumfont_pattern_entity): New arg requested_font.
23888 Set antialias parameter if non-default was requested.
23889 (fill_in_logfont): Fill in lfQuality if :antialias specified.
23890
23891 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23892
23893 * lread.c (read1): Undo the previous change.
23894
23895 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
23896
23897 * frame.c (Fdelete_frame): Call font_update_drivers only when
23898 USE_FONT_BACKEND is defined.
23899
23900 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23901
23902 * font.h (struct font_bitmap): New member bits_per_pixel.
23903 (struct font_driver): New members start_for_frame and end_for_frame.
23904 (struct font_data_list): New struct.
23905 (font_put_frame_data, font_get_frame_data): Extern them.
23906
23907 * frame.h (struct frame): New member font_data_list.
23908
23909 * font.c (font_update_drivers): Call driver->start_for_frame and
23910 driver->end_for_frame at proper timings.
23911 (font_put_frame_data, font_get_frame_data): New functions.
23912 (Ffont_spec): Add usage in the docstring.
23913
23914 * frame.c (make_frame): Initialize f->font_data_list to NULL.
23915 (Fdelete_frame): Call font_update_drivers.
23916
23917 * xftfont.c (struct xftface_info): Delete the member xft_draw.
23918 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
23919 (xftfont_get_xft_draw): New function.
23920 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
23921 (xftfont_end_for_frame): New function.
23922 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
23923
23924 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
23925 Change argument. Cache GCs in the per-frame data.
23926 (struct ftxfont_frame_data): New struct.
23927 (ftxfont_draw_bitmap): New arg gc_fore and flush.
23928 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
23929 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
23930 (ftxfont_end_for_frame): New function.
23931 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
23932
23933 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
23934
23935 2008-02-01 Kenichi Handa <handa@m17n.org>
23936
23937 * xselect.c (Vselection_coding_system)
23938 (Vnext_selection_coding_system): Delete them.
23939 (syms_of_xselect): Don't declare selection-coding-system and
23940 next-selection-coding-system. They are declared in select.el.
23941
23942 2008-02-01 Jason Rumney <jasonr@gnu.org>
23943
23944 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
23945
23946 * w32fns.c: Include imm.h.
23947 (get_composition_string_fn, get_ime_context_fn): New optional
23948 system functions.
23949 (globals_of_w32fns): Load them from imm32.dll.
23950 (ignore_ime_char): New flag.
23951 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
23952 WM_IME_ENDCOMPOSITION messages.
23953
23954 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
23955 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
23956
23957 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23958
23959 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23960 (READCHAR_REPORT_MULTIBYTE): New macro.
23961 (readchar): New 2nd arg MULTIBYTE.
23962 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23963 Make symbol's name multibyte according to the multibyteness of the
23964 source.
23965
23966 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23967
23968 * xfaces.c (face_for_overlay_string): Call lookup_face with
23969 correct arguments (fix of synching with the trunk).
23970
23971 2008-02-01 Kenichi Handa <handa@m17n.org>
23972
23973 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23974 (font_prop_validate_non_neg, font_prop_validate_spacing):
23975 Delete argument prop_index.
23976 (font_property_table): Change arguments to validater. Change Callers.
23977 (font_lispy_object): Delete.
23978 (font_at): Use font_find_object instead fo font_lispy_object.
23979
23980 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23981
23982 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23983 and file names.
23984
23985 2008-02-01 Jason Rumney <jasonr@gnu.org>
23986
23987 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23988 (font_matches_spec): Remove debug output.
23989 (add_font_entity_to_list): Avoid using substituted fonts.
23990
23991 2008-02-01 Jason Rumney <jasonr@gnu.org>
23992
23993 * doc.c (Fsnarf_documentation):
23994 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
23995
23996 2008-02-01 Miles Bader <miles@gnu.org>
23997
23998 * dispextern.h (struct glyph_row): Only define "clip" field if
23999 HAVE_WINDOW_SYSTEM is defined.
24000
24001 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24002
24003 Fix up multi-tty merge.
24004
24005 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24006 and indentation.
24007
24008 * xfaces.c (free_realized_face, clear_face_gcs):
24009 Include font_done_for_face in the input_blocked section, just in case.
24010
24011 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24012 (get_char_face_and_encoding): Undo last change and remove the *other*
24013 duplicate definition (i.e. keep the one that's better scoped and that
24014 includes code for the font-backend).
24015
24016 * terminal.c (create_terminal): Default keyboard_coding to
24017 `no-conversion' and terminal_coding to `undecided'.
24018
24019 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24020
24021 * fontset.c (free_realized_fontsets): Check that the table entry does
24022 contain a fontset before trying to compare it to `base'.
24023
24024 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24025 syms_of_charset, and syms_of_coding earlier because init_window_once
24026 now needs Vcoding_system_hash_table to be setup.
24027
24028 * coding.h (default_buffer_file_coding): Remove.
24029
24030 * coding.c (default_buffer_file_coding): Remove.
24031 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24032 than ->symbol, and use the terminal-local coding system.
24033 (syms_of_coding): Don't setup the coding-systems that are not
24034 terminal-local.
24035 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24036
24037 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24038 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24039
24040 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24041 in chartab.c and were re-added here by mistake.
24042 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24043
24044 * doc.c (Fsnarf_documentation):
24045 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24046 src to etc.
24047
24048 * ChangeLog.10: Add mistakenly removed entry.
24049
24050 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24051
24052 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24053
24054 2008-02-01 Miles Bader <miles@gnu.org>
24055
24056 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24057 Add extra args to FACE_FOR_CHAR.
24058
24059 2008-02-01 Kenichi Handa <handa@m17n.org>
24060
24061 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24062 in sequence.
24063
24064 * chartab.c (map_sub_char_table, map_char_table): If the range
24065 contains just one character, call the function with that character
24066 even if the depth is not 3.
24067
24068 2008-02-01 Jason Rumney <jasonr@gnu.org>
24069
24070 * w32font.c (w32font_text_extents): Calculate metrics for the
24071 whole string.
24072
24073 2008-02-01 Jason Rumney <jasonr@gnu.org>
24074
24075 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24076
24077 2008-02-01 Jason Rumney <jasonr@gnu.org>
24078
24079 * w32term.c (x_set_glyph_string_clipping):
24080 Use get_glyph_string_clip_rects.
24081 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24082 Adjust for the change of struct glyph_string.
24083
24084 * w32font.c (w32font_draw): Do clipping here.
24085
24086 2008-02-01 Kenichi Handa <handa@m17n.org>
24087
24088 * xftfont.c (xftfont_draw): Adjust for the change of struct
24089 glyph_string.
24090
24091 * xterm.c (x_set_glyph_string_clipping):
24092 Use get_glyph_string_clip_rects.
24093 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24094 Adjust for the change of struct glyph_string.
24095
24096 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24097 the resulting clip(s}.
24098 (expose_overlaps): Add arg r. Change callers. Set it to
24099 row->clip temporarily.
24100 (expose_window): Redraw rows overlapping the exposed area.
24101
24102 * dispextern.h (struct glyph_row): New member clip.
24103 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24104 clip_height, new member clip, and num_clips.
24105
24106 2008-02-01 Kenichi Handa <handa@m17n.org>
24107
24108 * data.c (Fchar_or_string_p): Fix docstring.
24109
24110 2008-02-01 Kenichi Handa <handa@m17n.org>
24111
24112 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24113 create a temporary XftDraw object.
24114
24115 2008-02-01 Kenichi Handa <handa@m17n.org>
24116
24117 * font.c (Ffontp): Fix docstring.
24118
24119 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24120 strong evidence of ISO-2022.
24121
24122 2008-02-01 Kenichi Handa <handa@m17n.org>
24123
24124 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24125 SYNTAX_ENTRY_FOLLOW_PARENT.
24126
24127 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24128
24129 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24130 its type.
24131 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24132 Update to the new type of weak_hash_tables and next_weak.
24133
24134 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24135 a plain C pointer to Lisp_Hash_Table.
24136
24137 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24138 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24139 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24140 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24141 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24142 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24143 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24144 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24145 (GC_EQ): Remove since they've been identical to their non-GC_
24146 alter-egos ever since the markbit was eradicated.
24147
24148 * alloc.c:
24149 * buffer.c:
24150 * buffer.h:
24151 * data.c:
24152 * fileio.c:
24153 * filelock.c:
24154 * fns.c:
24155 * frame.h:
24156 * lisp.h:
24157 * macterm.c:
24158 * print.c:
24159 * process.c:
24160 * w32fns.c:
24161 * w32menu.c:
24162 * w32term.c:
24163 * xfns.c:
24164 * xmenu.c:
24165 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24166
24167 2008-02-01 Kenichi Handa <handa@m17n.org>
24168
24169 * chartab.c (map_sub_char_table): Make it work for the top-level
24170 char-table. Fix handling of parent char-table.
24171 (map_char_table): Adjust for the above change.
24172
24173 2008-02-01 Jason Rumney <jasonr@gnu.org>
24174
24175 * w32font.c (Qgdi): Rename from Qw32.
24176
24177 2008-02-01 Jason Rumney <jasonr@gnu.org>
24178
24179 * w32bdf.c (get_quoted_string): Make function static.
24180
24181 2008-02-01 Kenichi Handa <handa@m17n.org>
24182
24183 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24184 bigger ascent and descent than those of the font, use them as
24185 font's ascent and descent.
24186
24187 2008-02-01 Kenichi Handa <handa@m17n.org>
24188
24189 * Makefile.in (${lispsource}international/charprop.el): Move this
24190 target within "#ifdef HAVE_UNIDATA" and "#endif".
24191
24192 2008-02-01 Kenichi Handa <handa@m17n.org>
24193
24194 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24195 (shortlisp): Add ../lisp/language/tai-viet.el.
24196
24197 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
24198
24199 * Makefile.in (${lispsource}international/charprop.el): Depend on
24200 temacs${EXEEXT}.
24201
24202 2008-02-01 Jason Rumney <jasonr@gnu.org>
24203
24204 * w32font.c (w32font_close): Delete the GDI font object.
24205
24206 * w32menu.c: Include character.h.
24207
24208 * w32proc.c: Likewise.
24209
24210 * w32select.c: Likewise.
24211
24212 * makefile.w32-in (w32proc.o): Depend on character.h.
24213
24214 2008-02-01 Jason Rumney <jasonr@gnu.org>
24215
24216 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24217
24218 * w32menu.c (syms_of_w32menu): Likewise.
24219
24220 * w32proc.c (syms_of_ntproc): Likewise.
24221
24222 * w32select.c (syms_of_w32select): Likewise.
24223
24224 * w32term.c (syms_of_w32term): Likewise.
24225
24226 2008-02-01 Jason Rumney <jasonr@gnu.org>
24227
24228 * w32font.c (w32font_draw): Delete brush after using it.
24229
24230 2008-02-01 Jason Rumney <jasonr@gnu.org>
24231
24232 * w32font.c (w32font_open): Don't set font_idx.
24233 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24234 to font settings.
24235 (w32font_draw): Fill background explicitly.
24236
24237 2008-02-01 Jason Rumney <jasonr@gnu.org>
24238
24239 * w32term.c (w32_initialize): Don't call w32font_initialize.
24240
24241 * w32font.c (w32font_info): Remove subranges.
24242 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24243 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24244 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24245 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24246 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24247 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24248 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24249 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24250 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24251 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24252 New symbols.
24253 (font_callback_data): New struct.
24254 (w32font_list, w32font_match): Use it.
24255 (w32font_open): Don't populate subranges.
24256 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24257 (w32font_encode_char): Always return unicode code-point as-is.
24258 (w32font_text_extents): Supply a transformation matrix to
24259 GetGlyphOutline. Never look up by glyph index. Avoid looping
24260 twice. Use unicode version of GetTexExtentPoint32 instead of
24261 glyph index version.
24262 (set_fonts_frame): Remove.
24263 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24264 set frame parameter. Use backward compatible fake foundries.
24265 Save generic family in extra slot under QCfamily. Make width slot
24266 constant. Save QCspacing value. Save list of scripts instead of
24267 binary subranges.
24268 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24269 (add_font_entity_to_list): Use font_callback_data struct.
24270 Filter unwanted fonts.
24271 (add_one_font_entity_to_list): Use font_callback_data struct.
24272 (w32_registry): Default to iso10646_1.
24273 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24274 string font registries. Don't fill in font name if it is a generic
24275 family name, fill family instead. Use spacing, family and script
24276 extra info to fill pitch, family and charset fields.
24277 (list_all_matching_fonts): Use font_callback_data struct.
24278 (unicode_range_for_char): Remove.
24279 (font_supported_scripts): New function.
24280 (w32font_initialize): Remove.
24281 (syms_of_w32font): Update which symbols are defined.
24282
24283 2008-02-01 Jason Rumney <jasonr@gnu.org>
24284
24285 * font.c (font_pixel_size): Reverse assq_no_quit args.
24286
24287 * w32term.h (FONT_WIDTH): Report max width, not average.
24288 (FONT_MAX_WIDTH): Remove.
24289 (FONT_AVG_WIDTH): New macro.
24290
24291 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24292 redefinition of FONT_WIDTH.
24293
24294 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24295 (w32_cache_char_metrics): Use FONT_WIDTH.
24296
24297 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24298
24299 2008-02-01 Jason Rumney <jasonr@gnu.org>
24300
24301 * w32font.c (w32font_open): Make lfHeight negative.
24302
24303 * w32fns.c (x_default_font_parameter): Use new style font name.
24304 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24305
24306 2008-02-01 Jason Rumney <jasonr@gnu.org>
24307
24308 * w32font.c (QCsubranges): New symbol.
24309 (w32font_open, w32font_has_char): Get subranges from subproperty
24310 of extra.
24311 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24312 (syms_of_w32font): Define :subranges symbol.
24313
24314 * font.c (font_put_extra): Expose externally.
24315
24316 * font.h (font_put_extra): Move declaration from font.c.
24317
24318 * font.c (Ffont_get): Use font driver to determine otf capability.
24319 (adjust_anchor): Check if driver defines anchor_point before using.
24320
24321 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24322 (w32font_draw): Use options.
24323 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24324 Fix detection of truetype fonts.
24325 (registry_to_w32_charset): Handle charsets other than iso8859-1
24326 expressed as lisp symbols.
24327 (w32_registry): Express charset as lisp symbol.
24328 (fill_in_logfont): Reverse pixel and point height logic.
24329 Don't set width here. Set quality to default.
24330
24331 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24332 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24333
24334 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24335 Remove redundant loop and allocation.
24336
24337 * makefile.w32-in (font.o, w32font.o): New objects.
24338 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24339 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24340
24341 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24342 STORE_XCHARB a valid l-value.
24343
24344 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24345 calculations for non-Truetype fonts.
24346 (x_draw_glyph_string): Sync with xterm.c.
24347 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24348 Remove redundant code.
24349 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24350
24351 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24352 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24353
24354 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24355 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24356
24357 * w32font.c: New file for w32 font backend.
24358
24359 2008-02-01 Kenichi Handa <handa@m17n.org>
24360
24361 * term.c: Don't include "buffer.h" twice.
24362
24363 2008-02-01 Kenichi Handa <handa@m17n.org>
24364
24365 * character.c (Funibyte_string): New function.
24366 (syms_of_character): Defsubr it.
24367
24368 2008-02-01 Jason Rumney <jasonr@gnu.org>
24369
24370 * w32term.c [USE_FONT_BACKEND]:
24371 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24372 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24373 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24374 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24375 (x_free_frame_resources): Sync with xterm.c.
24376
24377 2008-02-01 Andreas Schwab <schwab@suse.de>
24378
24379 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24380 char-table size.
24381
24382 2008-02-01 Kenichi Handa <handa@m17n.org>
24383
24384 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24385
24386 2008-02-01 Kenichi Handa <handa@m17n.org>
24387
24388 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24389 font_otf_gpos, add font_drive_otf.
24390
24391 * fontset.c (fontset_find_font): Pay attention to font size
24392 specified for a font.
24393 (reorder_font_vector): Check contents of font_def.
24394
24395 * font.c (struct otf_list): Delete it.
24396 (otf_list): Make it a lisp variable.
24397 (otf_open): Use lispy otf_list.
24398 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24399 (check_otf_features): New function.
24400 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24401 New functions.
24402 (font_drive_otf): New function merging font_otf_gsub and
24403 font_otf_gpos.
24404 (font_open_for_lface): New arg spec. Change argument order.
24405 (font_load_for_face): Adjust for the change of font_open_for_lface.
24406 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24407 Ffont_otf_gpos.
24408 (syms_of_font): Staticpro otf_list. Delete defsubr of
24409 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24410
24411 * xfaces.c (set_font_frame_param): Adjust for the change of
24412 font_open_for_lface.
24413
24414 * font.h (font_open_for_lface): Adjust prototype.
24415 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24416 member otf_drive.
24417 (font_otf_gsub, font_otf_gpos): Delete externs.
24418 (font_drive_otf): Extern it.
24419
24420 2008-02-01 Kenichi Handa <handa@m17n.org>
24421
24422 * font.c (font_at): If the window W is not on a window system,
24423 return Qnil.
24424
24425 * coding.c (produce_chars, encode_coding): Don't call
24426 insert_from_gap if no characters to produce.
24427
24428 2008-02-01 Kenichi Handa <handa@m17n.org>
24429
24430 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24431 Fclear_face_cache.
24432
24433 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24434
24435 2008-02-01 Miles Bader <miles@gnu.org>
24436
24437 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24438 Parse "--disable-font-backend" option.
24439 (standard_args): Add "--disable-font-backend" option.
24440
24441 2008-02-01 Kenichi Handa <handa@m17n.org>
24442
24443 * fontset.c (fontset_find_font): New function.
24444 (fontset_font): Use fontset_find_font.
24445 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24446 Register the specified font for all Latin characters.
24447 (new_fontset_from_font): Register the specified font for all Latin
24448 characters.
24449 (dump_fontset): For a realized fontset, include the base fontset
24450 name in the returned vector.
24451
24452 2008-02-01 Kenichi Handa <handa@m17n.org>
24453
24454 * character.h (CHAR_STRING): Cast C to unsigned on calling
24455 char_string.
24456
24457 * character.c (char_string): Type of arg C changed to unsigned.
24458 Signal an error if C is an invalid character code.
24459
24460 * editfns.c (general_insert_function, Fchar_to_string):
24461 Use CHARACTERP, not INTEGERP.
24462
24463 2008-02-01 Kenichi Handa <handa@m17n.org>
24464
24465 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24466 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24467
24468 * regex.c (analyse_first): Fix for multibyte characters in "case
24469 charset:" and "case categoryspec:".
24470
24471 2008-02-01 Andreas Schwab <schwab@suse.de>
24472
24473 * Makefile.in (LIBES): Move standard libraries to the end.
24474
24475 2008-02-01 Kenichi Handa <handa@m17n.org>
24476
24477 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24478 nonzero, don't shrink the buffer nextb.
24479
24480 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24481
24482 * coding.c (coding_alloc_by_making_gap): New arg offset.
24483 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24484 offset.
24485 (decode_coding_iso_2022): Update coding->safe_charsets.
24486 (decode_coding_gap): Temporarily set
24487 current_buffer->text->inhibit_shrinking to 1.
24488
24489 2008-02-01 Kenichi Handa <handa@m17n.org>
24490
24491 * xterm.c (x_draw_composite_glyph_string_foreground):
24492 Fix indexing into elements of s->cmp and s->char2b.
24493
24494 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
24495
24496 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24497
24498 2008-02-01 Kenichi Handa <handa@m17n.org>
24499
24500 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24501 target_multibyte instead of multibyte.
24502 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24503 (bcmp_translate): Change the argument name from multibyte to
24504 target_multibyte.
24505
24506 2008-02-01 Kenichi Handa <handa@m17n.org>
24507
24508 These changes are to compile a regexp into a pattern that can be
24509 used both for multibyte and unibyte targets.
24510
24511 * Makefile.in (search.o): Depend on charset.h.
24512
24513 * character.c (multibyte_char_to_unibyte_safe): New function.
24514
24515 * search.c: Include "charset.h".
24516 (compile_pattern_1): Delete argument multibyte. Don't set
24517 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24518 (compile_pattern): Don't compare cp->buf.target_multibyte.
24519 Compare cp->buf.charset_unibyte.
24520 (compile_pattern): Set cp->buf.target_multibyte.
24521
24522 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24523
24524 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24525
24526 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24527 multibyte. Change callers.
24528 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24529 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24530 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24531 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24532 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24533 (regex_compile): Make the compiled pattern usable both for
24534 multibyte and unibyte targets.
24535 (analyse_first): Make the fastmap usable both for multibyte and
24536 unibyte targets.
24537 (TRANSLATE_VIA_MULTIBYTE): Delete.
24538 (re_match_2_internal): Pay attention to the case that the
24539 multibyteness of bufp and target may be different.
24540
24541 2008-02-01 Kenichi Handa <handa@m17n.org>
24542
24543 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24544 empty box occupy at least one column width.
24545
24546 2008-02-01 Miles Bader <miles@gnu.org>
24547
24548 * Makefile.in: Remove redundant HAVE_XFT clause.
24549
24550 2008-02-01 Kenichi Handa <handa@m17n.org>
24551
24552 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24553
24554 2008-02-01 Kenichi Handa <handa@m17n.org>
24555
24556 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24557 being nil.
24558
24559 2008-02-01 Kenichi Handa <handa@m17n.org>
24560
24561 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24562
24563 2008-02-01 Kenichi Handa <handa@m17n.org>
24564
24565 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24566
24567 2008-02-01 Kenichi Handa <handa@m17n.org>
24568
24569 * search.c (simple_search): Fix previous change.
24570
24571 2008-02-01 Kenichi Handa <handa@m17n.org>
24572
24573 * xftfont.c (ftfont_font_format): Extern declaration.
24574
24575 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24576
24577 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24578 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24579
24580 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24581 (ftfont_font_format): Fix previous change.
24582
24583 * font.h (Ffont_xlfd_name): EXFUN it.
24584
24585 * font.c (font_parse_xlfd): Fix the array size of `f'.
24586 (register_font_driver): Use EQ to compare driver->type.
24587
24588 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24589 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24590 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24591
24592 2008-02-01 Kenichi Handa <handa@m17n.org>
24593
24594 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24595 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24596
24597 2008-02-01 Kenichi Handa <handa@m17n.org>
24598
24599 * xfont.c (xfont_open): Set font->format.
24600
24601 * xftfont.c (xftfont_open): Set font->format.
24602
24603 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24604 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24605 (ftfont_open): Set font->format.
24606 (ftfont_font_format): New function.
24607
24608 * font.h (struct font): New member format.
24609
24610 * font.c (Qopentype): New variable.
24611 (syms_of_font): Defsym it.
24612 (Fquery_font): Change the format of the last element of the return
24613 value.
24614
24615 2008-02-01 Kenichi Handa <handa@m17n.org>
24616
24617 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24618 last resort.
24619
24620 2008-02-01 Kenichi Handa <handa@m17n.org>
24621
24622 * coding.c (detect_coding_charset): Fix detection of multi-byte
24623 charset.
24624
24625 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24626
24627 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24628
24629 2008-02-01 Kenichi Handa <handa@m17n.org>
24630
24631 * xdisp.c (get_next_display_element): Set it->face_id for the
24632 first component of a composition.
24633 (x_produce_glyphs): Check if the font is changed or not for composition.
24634
24635 2008-02-01 Kenichi Handa <handa@m17n.org>
24636
24637 * fontset.c (Qlatin): New variable.
24638 (syms_of_fontset): Define it as a lisp symbol.
24639 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24640
24641 2008-02-01 Kenichi Handa <handa@m17n.org>
24642
24643 * font.c (font_unparse_fcname): Pay attention to the case that
24644 some of font property is a null string.
24645
24646 2008-02-01 Kenichi Handa <handa@m17n.org>
24647
24648 * term.c: Include "composite.h".
24649 (encode_terminal_code): Output all components of composition.
24650 Check the size of encode_terminal_src.
24651 (produce_glyphs): For composition, call produce_composite_glyph.
24652 (append_composite_glyph, produce_composite_glyph): New functions.
24653
24654 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24655 is not found, get font_info from the current ascii face.
24656
24657 2008-02-01 Kenichi Handa <handa@m17n.org>
24658
24659 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24660 buffer-file-name to Qnil before calling insert_from_buffer.
24661
24662 * font.c (font_unparse_fcname): Pay attention to the case that
24663 foundry is a null string.
24664
24665 2008-02-01 Kenichi Handa <handa@m17n.org>
24666
24667 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24668
24669 * font.c (Qunicode_sip): New variable.
24670 (syms_of_font): Declare it as a Lisp symbol.
24671
24672 * font.h (Qunicode_sip): Extern it.
24673
24674 2008-02-01 Kenichi Handa <handa@m17n.org>
24675
24676 * composite.c (get_composition_id): Pay attention to TAB component.
24677
24678 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24679 TAB. Adjust for the change of s->char2b which always points to
24680 the first element of allocated memory.
24681
24682 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24683
24684 * xdisp.c (handle_composition_prop): Set it->c to the first
24685 non-TAB component.
24686 (fill_composite_glyph_string): Change argument.
24687 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24688 (x_produce_glyphs): Fix handling of left/right padding.
24689
24690 2008-02-01 Kenichi Handa <handa@m17n.org>
24691
24692 * coding.c (detect_coding_system): Fix for handling off
24693 inhibit_iso_escape_detection. Fix for the case that no coding
24694 system is defined for a specific coding category.
24695
24696 2008-02-01 Kenichi Handa <handa@m17n.org>
24697
24698 * font.c (font_matching_entity): Delete unused local var.
24699
24700 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24701 opening a font.
24702
24703 * fileio.c (Finsert_file_contents): On recovering a file, assume
24704 Unix-like eol.
24705 (choose_write_coding_system): On auto-saving a file, force
24706 Unix-like eol.
24707
24708 * coding.c (setup_coding_system): Fix setting of
24709 coding->common_flags based on eol_type.
24710 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24711 inherit from it.
24712
24713 2008-02-01 Kenichi Handa <handa@m17n.org>
24714
24715 * alloc.c (NSTATICS): Increas to 0x600.
24716
24717 2008-02-01 Kenichi Handa <handa@m17n.org>
24718
24719 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24720 (ftfont_list): Don't check :name property.
24721 (ftfont_match): New function.
24722 (ftfont_pattern_entity): If the pattern doesn't contain
24723 FC_SPACING, don't assume FC_MONO.
24724
24725 * font.h (struct font_driver): New member `match'.
24726 (font_update_drivers): Adjust prototype.
24727
24728 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24729 property of FONT.
24730 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24731 Define them unconditionally.
24732 (font_matching_entity): New function.
24733 (font_open_by_name): Try font_matching_entity if exact match is
24734 not found.
24735 (font_update_drivers): Delete the arg FONT. Return a list of
24736 actually used backends. Don't free faces, font caches here.
24737 Don't store data in frame parameters. Don't call x_set_font.
24738 (Ffont_spec): Store :name property as is.
24739 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24740 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24741 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24742 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24743 Call font->driver->otf_gsub instead of font_otf_gsub.
24744
24745 * frame.c (x_set_font_backend): Do more works that were done in
24746 font_update_drivers before.
24747
24748 * xfont.c (xfont_match): New function.
24749 (xfont_driver): Set xfont_driver.match to xfont_match.
24750 (xfont_draw): Set font in GC if necessary.
24751
24752 * ftxfont.c (ftxfont_match): New function.
24753 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24754
24755 * xftfont.c (xftfont_match): New function.
24756 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
24757
24758 2008-02-01 Kenichi Handa <handa@m17n.org>
24759
24760 * font.h (struct font): New member scalable.
24761 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
24762 (font_otf_gsub): Adjust prototype.
24763
24764 * font.c (font_otf_capability): Fix handling of the default langsys.
24765 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
24766 Check the contents of SPEC.
24767 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
24768 (check_gstring): New function.
24769 (REPLACEMENT_CHARACTER): New macro.
24770 (font_otf_gsub): New arg alternate_subst. Be sure to set all
24771 glyph codes of GSTRING.
24772 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
24773 (font_prepare_composition): Set cmp->glyph_len.
24774 (font_open_entity): Set font->scalable.
24775 (Ffont_get): Handle :otf property.
24776 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
24777 New functions.
24778 (Fquery_font): Use font->font.full_name.
24779 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
24780 Sfont_otf_alternates.
24781
24782 * ftfont.c (ftfont_open): Set font->font.full_name and
24783 font->font.name properly. Fix calculation of font->font.height
24784 and font->min_width.
24785
24786 * ftxfont.c (ftxfont_create_gcs): New function.
24787 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
24788 (ftxfont_draw_backgrond): Fix filling region.
24789 (ftxfont_default_fid): New function.
24790 (ftxfont_open): Set xfont->fid to the return value of
24791 ftxfont_default_fid.
24792 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
24793 (ftxfont_done_face): Free only GCs that are created by
24794 ftxfont_create_gcs.
24795 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
24796
24797 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
24798 Clip to src->width, etc (not src->clip_XXX).
24799
24800 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
24801 FontBackend frame parameter.
24802
24803 2008-02-01 Kenichi Handa <handa@m17n.org>
24804
24805 * font.h (struct font_driver_list): New member `on'.
24806 (Fclear_font_cache): EXFUN it.
24807 (font_update_drivers): Extern it.
24808
24809 * font.c (font_unparse_fcname): Fix typo (swidth->width).
24810 (font_list_entities): Check driver_list->on.
24811 (register_font_driver): Initialize `on' member to 0.
24812 (font_update_drivers): New function.
24813 (Fclear_font_cache): Check driver_list->on.
24814
24815 * frame.h (Qfont_backend): Extern it.
24816 (x_set_font_backend): Extern it.
24817
24818 * frame.c (Qfont_backend): New variable.
24819 (frame_parms): New element for font-backend.
24820 (x_set_font_backend): New function.
24821
24822 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
24823 FontBackend frame parameter.
24824 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
24825 x_set_font_backend.
24826
24827 * xfont.c (xfont_list): Don't try listing by :name property if the
24828 name is not for XLFD.
24829
24830 2008-02-01 Kenichi Handa <handa@m17n.org>
24831
24832 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
24833 (LGLYPH_SET_TO): New macros.
24834 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
24835 element of G is vector or not.
24836 (font_at): Extern it.
24837
24838 * font.c: Include window.h.
24839 (font_lispy_object): New function.
24840 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
24841 end of valid glyph.
24842 (font_close_object): Fix getting (struct font *).
24843 (font_at): New function.
24844 (Ffont_get): If FONT is a font-object, get entity from it.
24845 (Ffont_make_gstring): Initialize elements of glyphs with nil.
24846 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
24847 Fix range check.
24848 (Ffont_at): New function.
24849 (syms_of_font): Defsubr Sfont_at.
24850
24851 * xdisp.c (it_props): Move the entry for Qauto_composed to just
24852 before the entry for Qcomposition.
24853 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
24854 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
24855 the font in gstring.
24856 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
24857 LGLYPH_FORM (g) to detect the end of valid glyph.
24858 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
24859 we are composing with gstring.
24860
24861 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
24862 Check if adjustment is vector or not.
24863
24864 * Makefile.in (font.o): Make it depends on window.h.
24865
24866 2008-02-01 Kenichi Handa <handa@m17n.org>
24867
24868 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
24869 adjustment is vector or not.
24870
24871 2008-02-01 Miles Bader <miles@gnu.org>
24872
24873 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
24874
24875 2008-02-01 Kenichi Handa <handa@m17n.org>
24876
24877 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
24878 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
24879 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
24880
24881 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
24882 (DEVICE_DELTA): Fix typo.
24883 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
24884 LGLYPH format.
24885
24886 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24887 the change of LGLYPH format.
24888
24889 2008-02-01 Kenichi Handa <handa@m17n.org>
24890
24891 * ftfont.c (ftfont_list): Fix typo.
24892 (ftfont_build_basic_charsets): Don't include letters with diacritics.
24893
24894 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24895
24896 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
24897
24898 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
24899 xftface_info is non-NULL.
24900
24901 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24902
24903 * ftfont.c (ftfont_list): Move misplaced #endif.
24904
24905 2008-02-01 Kenichi Handa <handa@m17n.org>
24906
24907 * ftfont.c (ftfont_list): Pay attention to the case that
24908 FC_CAPABILITY is not defined.
24909
24910 2008-02-01 Kenichi Handa <handa@m17n.org>
24911
24912 * xftfont.c (xftfont_open): Set charset related members to -1.
24913
24914 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
24915 QCname.
24916 (ftfont_open): Set charset related members to -1.
24917
24918 * fontset.c (Votf_script_alist): New variable.
24919 (syms_of_fontset): Initialize it.
24920 (fontset_font): Delete unused variable.
24921
24922 * fontset.h (Votf_script_alist): Extern it.
24923
24924 * font.c (font_find_for_lface): Optimize code.
24925
24926 * font.h (font_close_object, font_merge_old_spec): Extern them.
24927
24928 2008-02-01 Kenichi Handa <handa@m17n.org>
24929
24930 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
24931 (syms_of_font): Initialize them.
24932 (font_pixel_size): Allow float value in dpi.
24933 (font_prop_validate_type): Delete.
24934 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
24935 Change caller.
24936 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
24937 (font_prop_validate_extra): Delete.
24938 (font_prop_validate_spacing): New function.
24939 (font_property_table): Add elements for all known properties.
24940 (get_font_prop_index): Rename from check_font_prop_name.
24941 New argument FROM. Change caller.
24942 (font_prop_validate): Validate all known properties.
24943 (font_put_extra): Delete argument force. Change caller.
24944 (font_expand_wildcards): Make it static. Fix the way of shrinking
24945 the possible range.
24946 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
24947 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
24948 Change caller.
24949 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
24950 (font_parse_fcname): Delete argument merge. Fix parsing of point
24951 size. Don't validate properties values here. Change caller.
24952 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
24953 (font_open_by_name): Delete unused variable.
24954 (Ffont_spec): Likewise. Validate property values.
24955 (Ffont_match_p): New function.
24956
24957 * font.h (QCscalable): Extern it.
24958 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24959
24960 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24961
24962 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24963 (xfont_list_pattern): New function.
24964 (xfont_list): Use xfont_list_pattern.
24965
24966 2008-02-01 Kenichi Handa <handa@m17n.org>
24967
24968 * font.h (Flist_fonts): EXFUN it.
24969
24970 2008-02-01 Jason Rumney <jasonr@gnu.org>
24971
24972 * w32term.c (w32_initialize): Add back smoothing_type and
24973 smoothing_enabled definitions.
24974
24975 2008-02-01 Kenichi Handa <handa@m17n.org>
24976
24977 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24978 s->face->font on determining underline position.
24979
24980 2008-02-01 Kenichi Handa <handa@m17n.org>
24981
24982 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24983 (font_has_char): Accept font-object too.
24984 (font_find_for_lface): Try at first with a size specified in face.
24985
24986 2008-02-01 Kenichi Handa <handa@m17n.org>
24987
24988 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24989 font_open_by_name.
24990
24991 2008-02-01 Kenichi Handa <handa@m17n.org>
24992
24993 * font.h (QCspacing, QCdpi): Extern them.
24994 (enum font_spacing): New enum.
24995 (FONT_PIXEL_SIZE_QUANTUM): New macro.
24996
24997 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
24998 (QCspacing, QCdpi): New variables.
24999 (syms_of_font): Initialize them.
25000 (font_pixel_size): New function.
25001 (font_put_extra): New function.
25002 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25003 in FONT_EXTRA.
25004 (font_parse_fcname): Handle enumerated values (e.g. bold).
25005 Fix handling font size. Add QCname property that contains only
25006 unknown properties.
25007 (font_score): Change argument. Change caller. Pay attention to
25008 FONT_PIXEL_SIZE_QUANTUM.
25009 (font_sort_entites, font_list_entities, font_find_for_lface)
25010 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25011 (Ffont_spec): Add QCname property that contains only unknown properties.
25012
25013 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25014 Don't include weight in listing pattern, instead check weight of each
25015 listed font. Don't include scalable in pattern. Pay attention to
25016 FONT_PIXEL_SIZE_QUANTUM.
25017
25018 2008-02-01 Kenichi Handa <handa@m17n.org>
25019
25020 * font.c (font_parse_fcname): Fix parsing of point-size.
25021 (font_unparse_fcname): Produce symbolic names for style properties.
25022 (font_list_entities): Handle float size correctly.
25023 (font_open_by_name): Prefer `normal' property values if the name
25024 doesn't specify them.
25025
25026 * fontset.c (Finternal_char_font): Use font_get_name, not
25027 Ffont_xlfd_name.
25028
25029 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25030 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25031 pattern. Don't force scalable.
25032
25033 * xftfont.c (xftfont_open): For generating a name, start from
25034 96-byte buffer.
25035
25036 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25037
25038 * frame.h (x_new_fontset2): Fix prototype.
25039
25040 2008-02-01 Kenichi Handa <handa@m17n.org>
25041
25042 * font.h (struct font_driver): Delete member parse_name.
25043 (font_match_p, font_get_spec, font_parse_fcname)
25044 (font_unparse_fcname): Extern them.
25045 (font_get_name): Adjust prototype.
25046
25047 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25048 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
25049 (font_expand_wildcards): Fix handling ENCODING field.
25050 Avoid unnecessary checks for weight, slant, and swidth.
25051 (font_parse_fcname): New function.
25052 (font_unparse_fcname): New function.
25053 (font_parse_name): New function.
25054 (font_match_p): New function.
25055 (font_get_name): Change return value to Lisp string.
25056 (font_get_spec): New function.
25057 (Qunspecified, Qignore_defface): Don't extern them.
25058 (font_find_for_lface): Assume that LFACE is fully specified.
25059 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25060 object, use it for FACE.
25061 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25062 driver->parse_name.
25063 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25064
25065 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25066 prototype.
25067
25068 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25069 argument F. Don't call Fnew_fontset. Instead, directly call
25070 make_fontset.
25071
25072 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25073
25074 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25075 of x_new_fontset2.
25076
25077 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25078 (Qsans__serif): New variables.
25079 (ftfont_generic_family_list): New variable.
25080 (syms_of_ftfont): Initialize the above variables.
25081 (ftfont_pattern_entity): Delete argument NAME.
25082 (ftfont_list_generic_family): New function.
25083 (ftfont_parse_name): Delete this function.
25084 (ftfont_list): Try generic family only when FcFontList found no font.
25085 (ftfont_list_family): Fix args to FcObjectSetBuild.
25086
25087 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25088 object in attrs[LFACE_FONT_INDEX].
25089 (set_lface_from_font_name): Cancel all changes for font-backend.
25090 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25091 function.
25092 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25093 font object in QCfont attribute.
25094 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25095 (realize_default_face) [USE_FONT_BACKEND]: Call
25096 set_lface_from_font_and_fontset.
25097
25098 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25099 "fixed", and signal error here if no suitable font was found.
25100
25101 * xfont.c (xfont_parse_name): Delete this function.
25102
25103 * xftfont.c (xftfont_open): Change coding style of error
25104 handling. Generate fontconfig's fontname pattern.
25105
25106 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25107 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25108
25109 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25110 Both args FONTSET and FONT_OBJECT must be existing ones.
25111
25112 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25113
25114 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25115
25116 2008-02-01 Kenichi Handa <handa@m17n.org>
25117
25118 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25119
25120 * font.h (struct font): Fix typo.
25121
25122 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25123 XLFD_XXX_INDEX.
25124 (enum xlfd_field_mask): New enum.
25125 (intern_font_field): Change argument. Change caller. If digits
25126 are followed by non-digits, return a symbol.
25127 (font_expand_wildcards): New function.
25128 (font_parse_xlfd): Fix wildcard handling.
25129 (Ffont_spec): If :name is specified, reflect the info in the other
25130 properties.
25131
25132 * ftfont.c (ftfont_pattern_entity): Fix typo.
25133 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25134 locale.
25135
25136 2008-02-01 Kenichi Handa <handa@m17n.org>
25137
25138 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25139
25140 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25141 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25142 registry doesn't specify encoding part.
25143 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25144 (font_open_by_name): At first try parsing the name.
25145 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25146 as Lisp symbols.
25147
25148 * fontset.c (reorder_font_vector): Pay attention to the case that
25149 the 3rd element of font_def is nil.
25150 (fontset_font): For the default fontset, append one more fontset
25151 elements for a script-based font specification. Don't add script
25152 attribute on finding a font.
25153 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25154 font name.
25155 (fontset_ascii_font): If a font can't be opened, return nil.
25156
25157 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25158 (ftfont_pattern_entity): New function.
25159 (ftfont_get_cache): Assume that freetype_font_cache is already
25160 initialized.
25161 (ftfont_list): Handle the case that a file is specified in font
25162 name. Use ftfont_pattern_entity to generate entities.
25163 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25164 (syms_of_ftfont): Initialize freetype_font_cache.
25165
25166 * xftfont.c (xftfont_open): Make the font name fontconfig's
25167 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25168 (xftfont_close): Free font->font.name if not NULL.
25169
25170 * xfont.c (xfont_list): If script is specified for a font, return
25171 null_vector.
25172 (xfont_list_family): Declare argument type.
25173
25174 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25175 name, set LFACE_FONT (lface) to nil.
25176
25177 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25178 return Qnil.
25179
25180 2008-02-01 Kenichi Handa <handa@m17n.org>
25181
25182 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25183 (standard_args): Add "-enable-font-backend".
25184
25185 2008-02-01 Kenichi Handa <handa@m17n.org>
25186
25187 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25188 (struct xftdraw_list, xftdraw_list): Delete them.
25189 (register_xftdraw, check_xftdraw): Delete them.
25190 (xftfont_prepare_face): Don't call register_xftdraw.
25191 (xftfont_done_face): Don't call check_xftdraw.
25192 (xftfont_draw): Get background color only when with_background is
25193 nonzero.
25194
25195 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25196
25197 2008-02-01 Kenichi Handa <handa@m17n.org>
25198
25199 These changes are for the new font handling codes.
25200
25201 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25202 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25203 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25204 (FONTSRC, FONTOBJ): New variables.
25205 (obj): Add $(FONTOBJ).
25206 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25207 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25208 @LIBOTF_LIBS@.
25209 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25210 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25211
25212 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25213
25214 * character.h (Vscript_representative_chars): Extern it.
25215
25216 * character.c (Vscript_representative_chars): New variable.
25217 (syms_of_character): Declare it as a Lisp variable.
25218
25219 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25220 enable_font_backend is nonzero, accept the composition method
25221 COMPOSITION_WITH_GLYPH_STRING.
25222
25223 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25224 enumeration COMPOSITION_WITH_GLYPH_STRING.
25225
25226 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25227 members clip_x, clip_y, clip_width, and clip_height.
25228 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25229
25230 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25231 --enable-font-backend. Call syms_of_font.
25232
25233 * fns.c (assoc_no_quit): New function.
25234
25235 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25236 (face_for_font, new_fontset_from_font)
25237 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25238
25239 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25240 (fontset_font, fontset_ascii, face_for_char)
25241 (make_fontset_for_ascii_face, Ffont_info)
25242 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25243 is nonzero, use font-backend mechanism.
25244 (find_font_encoding): Make it non-static.
25245 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25246 New functions.
25247
25248 * frame.h (struct frame): New members resx and resy.
25249 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25250 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25251
25252 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25253 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25254
25255 * lisp.h (assoc_no_quit): Extern it.
25256
25257 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25258 Through out the file, use FONT_INFO_FROM_FACE instead of
25259 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25260 rif->per_char_metric.
25261 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25262 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25263 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25264 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25265 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25266 nonzero, use font-backend mechanism.
25267 (get_per_char_metric): New function.
25268
25269 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25270 (set_lface_from_font_name)
25271 (set_font_frame_param, free_realized_face)
25272 (prepare_face_for_display, clear_face_gcs)
25273 (Finternal_set_font_selection_order, realize_x_face)
25274 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25275 font-backend mechanism.
25276 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25277 (load_face_font) [USE_FONT_BACKEND]: Abort.
25278 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25279 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25280
25281 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25282 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25283 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25284 nonzero, register all available font drivers.
25285 Call x_default_font_parameter for deciding a font.
25286 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25287
25288 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25289 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25290 (x_set_glyph_string_clipping_exactly)
25291 (x_compute_glyph_string_overhangs)
25292 (x_draw_glyph_string_foreground)
25293 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25294 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25295 enable_font_backend is nonzero, use font-backend mechanism.
25296 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25297
25298 2008-02-01 Kenichi Handa <handa@m17n.org>
25299
25300 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25301 system_eol_type.
25302 (syms_of_coding): Initialize system_eol_type.
25303
25304 * process.c (Fset_process_coding_system): Inherit system's eol
25305 format if necessary.
25306
25307 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25308
25309 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25310
25311 2008-02-01 Kenichi Handa <handa@m17n.org>
25312
25313 * coding.c (decode_eol): Pay attention to buffer relocation in
25314 del_range_2.
25315 (decode_coding): Call decode_eol before restoring undo_list.
25316
25317 2008-02-01 Kenichi Handa <handa@m17n.org>
25318
25319 * charset.c (Fdefine_charset_internal): Fix setting of
25320 emacs_mule_bytes.
25321
25322 2008-02-01 Kenichi Handa <handa@m17n.org>
25323
25324 * keyboard.c (read_char): Check if C is a character or not before
25325 looking up Vkeyboard_translate_table.
25326
25327 2008-02-01 Kenichi Handa <handa@m17n.org>
25328
25329 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25330 Fix condition to terminate the loop.
25331
25332 2008-02-01 Kenichi Handa <handa@m17n.org>
25333
25334 * coding.c (produce_composition): Compare charbuf[i] instead of
25335 args[i] against 0.
25336 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25337
25338 2008-02-01 Kenichi Handa <handa@m17n.org>
25339
25340 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25341 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25342 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25343 detect_coding.
25344 (emacs_mule_char): Handle old style (Emacs 20) component character
25345 of a composition.
25346 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25347 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25348 composition rule.
25349 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25350
25351 2008-02-01 Kenichi Handa <handa@m17n.org>
25352
25353 * coding.c (encode_coding_ccl): Allocate destination dynamically
25354 when necessary.
25355
25356 2008-02-01 Kenichi Handa <handa@m17n.org>
25357
25358 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25359 the loop. When quitted, show a proper error message.
25360
25361 2008-02-01 Kenichi Handa <handa@m17n.org>
25362
25363 * xterm.c (x_set_glyph_string_clipping_exactly):
25364 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
25365
25366 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25367 character sequence.
25368 (Fccl_execute_on_string): Use ASET, not XSET.
25369
25370 2008-02-01 Kenichi Handa <handa@m17n.org>
25371
25372 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25373
25374 2008-02-01 Kenichi Handa <handa@m17n.org>
25375
25376 * coding.c (decode_coding): Fix the condition of terminating the
25377 decoding loop.
25378
25379 2008-02-01 Kenichi Handa <handa@m17n.org>
25380
25381 * data.c (Faset): On setting a character bigger than 255 in a
25382 unibyte string, signal an error instead of make the string multibyte.
25383
25384 2008-02-01 Kenichi Handa <handa@m17n.org>
25385
25386 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25387 made by a mapping table.
25388
25389 2008-02-01 Kenichi Handa <handa@m17n.org>
25390
25391 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25392 not.
25393 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25394 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25395
25396 * xterm.c (x_draw_composite_glyph_string_foreground):
25397 Check s->face is NULL or not.
25398
25399 2008-02-01 Kenichi Handa <handa@m17n.org>
25400
25401 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25402 (x_draw_glyph_string): Fix drawing of right_overhang and
25403 left_overhang around/on cursor.
25404
25405 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25406
25407 2008-02-01 Kenichi Handa <handa@m17n.org>
25408
25409 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25410
25411 2008-02-01 Kenichi Handa <handa@m17n.org>
25412
25413 * coding.c (Fdefine_coding_system_internal)
25414 (Fdefine_coding_system_alias): Avoid a duplicated element in
25415 Vcoding_system_alist.
25416
25417 2008-02-01 Kenichi Handa <handa@m17n.org>
25418
25419 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25420
25421 * coding.c (Qcoding_system_define_form): New variable.
25422 (syms_of_coding): Intern and staticpro it.
25423 (Fcoding_system_p): Check Qcoding_system_define_form.
25424 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25425
25426 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25427 Fcoding_system_p.
25428 (CHECK_CODING_SYSTEM): If ID is not available, call
25429 Fcheck_coding_system.
25430 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25431 Try also Fcheck_coding_system.
25432
25433 2008-02-01 Kenichi Handa <handa@m17n.org>
25434
25435 * coding.c (code_conversion_restore): GCPRO arg.
25436
25437 2008-02-01 Kenichi Handa <handa@m17n.org>
25438
25439 * character.c (lisp_string_width): Check multibyteness of STRING.
25440
25441 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25442
25443 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25444 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25445 (decode_mac_font_name): Use decode_coding_c_string instead of
25446 decode_coding.
25447 (x_load_font): Initialize fontp->fontset to -1.
25448 Set fontp->encoding_type.
25449
25450 2008-02-01 Kenichi Handa <handa@m17n.org>
25451
25452 * search.c (search_buffer): Give up BM search on case-fold-search
25453 if one of a target character has a case-equivalence of different
25454 byte length even if that target character is an ASCII.
25455 (simple_search): Fix calculation of byte length of matched text.
25456 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25457
25458 2008-02-01 Kenichi Handa <handa@m17n.org>
25459
25460 * coding.c (decode_coding): Fix handling of invalid bytes.
25461
25462 2008-02-01 Kenichi Handa <handa@m17n.org>
25463
25464 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25465 Unicode characters.
25466
25467 2008-02-01 Kenichi Handa <handa@m17n.org>
25468
25469 * coding.c (encode_coding_object): If a pre-write-conversion
25470 function makes a new buffer, kill it.
25471
25472 2008-02-01 Kenichi Handa <handa@m17n.org>
25473
25474 * coding.c (QCascii_compatible_p): New variable.
25475 (syms_of_coding): Initialize it.
25476 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25477 calling string_char.
25478 (record_conversion_result): Add `default:' case.
25479 (coding_charset_list): Delete unused variable `coding_type'.
25480 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25481 property in the plist of the coding system.
25482 (Fcoding_system_put): Check QCascii_compatible_p.
25483
25484 2008-02-01 Miles Bader <miles@gnu.org>
25485
25486 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25487 removed calculation of frame `f', as it's now used.
25488
25489 2008-02-01 Kenichi Handa <handa@m17n.org>
25490
25491 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25492 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25493 (UNIDATA): New variable.
25494 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
25495 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25496 Run $(RUN_TEMACS) unconditionally.
25497
25498 2008-02-01 Kenichi Handa <handa@m17n.org>
25499
25500 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25501 (admindir): New variable.
25502 ($(lispsource)international/charprop.el): New target.
25503
25504 2008-02-01 Miles Bader <miles@gnu.org>
25505
25506 * character.c (chars-in-region): Remove obsolete function.
25507 (syms_of_character): Remove its initialization.
25508
25509 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25510
25511 * w32select.c (validate_coding_system)
25512 (setup_windows_coding_system): New functions.
25513 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25514 Use setup_windows_coding_system.
25515 (setup_config, Fw32_get_clipboard_data):
25516 Use validate_coding_system.
25517 (Fx_selection_exists): Move call to setup_config to a place
25518 where signals are allowed.
25519
25520 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25521 (Fcheck_coding_system): Add declarations.
25522
25523 2008-02-01 Kenichi Handa <handa@m17n.org>
25524
25525 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25526
25527 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25528
25529 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25530 string as the second argument for x_new_fontset.
25531
25532 2008-02-01 Kenichi Handa <handa@m17n.org>
25533
25534 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25535 (encode_coding_object): Use safe_call instead of call2.
25536
25537 2008-02-01 Kenichi Handa <handa@m17n.org>
25538
25539 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25540
25541 * Makefile.in (lisp): Include charprop.el.
25542
25543 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25544
25545 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25546 Not sure if it's unnecessary.
25547
25548 2008-02-01 Steven Tamm <steventamm@mac.com>
25549
25550 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25551 some possibly unnecessary fontset checking code that crashed
25552 when creating a new frame.
25553
25554 2008-02-01 Kenichi Handa <handa@m17n.org>
25555
25556 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25557 lookup_face.
25558
25559 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25560
25561 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25562
25563 2008-02-01 Kenichi Handa <handa@m17n.org>
25564
25565 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25566 (coding_charset_list): New function.
25567
25568 * coding.h (coding_charset_list): Extern it.
25569
25570 2008-02-01 Kenichi Handa <handa@m17n.org>
25571
25572 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25573 concatenation of family and registry.
25574
25575 2008-02-01 Kenichi Handa <handa@m17n.org>
25576
25577 * character.h (BYTE8_STRING): Fix typo.
25578
25579 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25580 string to multibyte (sync to HEAD).
25581
25582 * casefiddle.c (casify_region): Handle changes in byte-length
25583 using replace_range_2 (sync to HEAD).
25584
25585 2008-02-01 Andreas Schwab <schwab@suse.de>
25586
25587 * chartab.c (map_char_table): GCPRO table and arg.
25588
25589 2008-02-01 Kenichi Handa <handa@m17n.org>
25590
25591 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25592 already at limit.
25593
25594 2008-02-01 Kenichi Handa <handa@m17n.org>
25595
25596 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25597 instead of fast_c_string_match_ignore_case.
25598 (find_font_encoding): Change argument to Lisp_Object.
25599 Use fast_string_match_ignore_case instead of
25600 fast_c_string_match_ignore_case. Change caller.
25601
25602 2008-02-01 Kenichi Handa <handa@m17n.org>
25603
25604 * xdisp.c (get_next_display_element): In unibyte case, decide to
25605 display in octal form by checking a character by
25606 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25607
25608 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25609
25610 * character.c (unibyte_has_multibyte_table): New variable.
25611
25612 * character.h (unibyte_has_multibyte_table): Extern it.
25613 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25614
25615 2008-02-01 Kenichi Handa <handa@m17n.org>
25616
25617 * coding.c (encode_coding_iso_2022): Fix handling of charset
25618 annotation.
25619
25620 2008-02-01 Kenichi Handa <handa@m17n.org>
25621
25622 * coding.c (setup_coding_system): If coding_system is nil, use
25623 Qundecided.
25624 (Fterminal_coding_system): Return nil if terminal coding system is
25625 `undecided'.
25626 (syms_of_coding): Define coding-system `undecided' here.
25627 Setup terminal_coding as `undecided'.
25628
25629 2008-02-01 Kenichi Handa <handa@m17n.org>
25630
25631 * xdisp.c (message_dolog, set_message_1):
25632 Call unibyte_char_to_multibyte with arg type int.
25633
25634 * lread.c (read1): Fix reading of a char-table.
25635
25636 * print.c (print_object): Include sub char-table in circularities
25637 detection.
25638
25639 2008-02-01 Kenichi Handa <handa@m17n.org>
25640
25641 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25642 Append the found sequences in car of ARGS instead of prepending.
25643
25644 2008-02-01 Kenichi Handa <handa@m17n.org>
25645
25646 * fileio.c (report_file_error): Make a unibyte string from
25647 strerror (errorno).
25648 (Fsubstitute_in_file_name): Fix the arg to
25649 unibyte_char_to_multibyte. It is evaluated twice.
25650
25651 2008-02-01 Kenichi Handa <handa@m17n.org>
25652
25653 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25654
25655 2008-02-01 Kenichi Handa <handa@m17n.org>
25656
25657 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25658 BOM is not found.
25659 (detect_coding, detect_coding_system): Optimization for ISO-2022
25660 when no 8-bit data is found.
25661
25662 2008-02-01 Jason Rumney <jasonr@gnu.org>
25663
25664 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25665
25666 2008-02-01 Kenichi Handa <handa@m17n.org>
25667
25668 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25669 CHARS.
25670
25671 2008-02-01 Steven Tamm <steventamm@mac.com>
25672
25673 * macterm.c (mac_encode_char): Add charset argument and update
25674 to use encoding_type.
25675 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25676 switch to pure fontset.
25677 (decode_mac_font_name): Temporarily remove decoding.
25678 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25679 (x_load_font): Temporarily remove encoding.
25680
25681 2008-02-01 Kenichi Handa <handa@m17n.org>
25682
25683 * xfaces.c (Fface_font): If frame is not on a window system,
25684 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25685 refer to face->font.
25686 (split_font_name_into_vector, build_font_name_from_vector)
25687 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25688 when HAVE_WINDOW_SYSTEM is defined.
25689
25690 2008-02-01 Kenichi Handa <handa@m17n.org>
25691
25692 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25693 (x_produce_glyphs): Fix setting of members of cmp in case
25694 cmp->glyph_len is zero.
25695
25696 * fontset.c (Fset_fontset_font): Fix docstring.
25697 (Ffontset_info): Make it backward compatible. New arg ALL.
25698
25699 2008-02-01 Kim F. Storm <storm@cua.dk>
25700
25701 * process.c (read_process_output): Grow decoding_buf when needed;
25702 this could cause a crash in allocate_string and compact_small_strings.
25703
25704 2008-02-01 Kenichi Handa <handa@m17n.org>
25705
25706 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25707
25708 2008-02-01 Kenichi Handa <handa@m17n.org>
25709
25710 * coding.c (setup_coding_system): Set coding->common_flags
25711 correctly for raw-text.
25712 (consume_chars): On encoding unibyte text by raw-text, don't check
25713 multibyte form.
25714 (encode_coding): On encoding by raw-text, never use translation tables.
25715
25716 * fileio.c (e_write): Short cut for the case of no encoding.
25717
25718 2008-02-01 Kenichi Handa <handa@m17n.org>
25719
25720 * coding.c (detect_coding, detect_coding_system): Delete unused
25721 variables.
25722
25723 2008-02-01 Kenichi Handa <handa@m17n.org>
25724
25725 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25726 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25727
25728 2008-02-01 Kenichi Handa <handa@m17n.org>
25729
25730 * coding.c (Ffind_coding_systems_region_internal):
25731 Include raw-text and no-conversion in the result.
25732
25733 2008-02-01 Kenichi Handa <handa@m17n.org>
25734
25735 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25736 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25737 FONT_DEF.
25738 (font_def_arg, add_arg, from_arg, to_arg): New args.
25739 (set_fontset_font): Change argument.
25740 (Fset_fontset_font): Fix for the case that TARGET is a script
25741 name and charset name.
25742 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25743
25744 2008-02-01 Kenichi Handa <handa@m17n.org>
25745
25746 * fontset.c (fontset_font): Rename from fontset_face. Change return
25747 value.
25748 (face_suitable_for_char_p, face_for_char): Adjust for the change
25749 of fontset_font.
25750 (make_fontset_for_ascii_face): Fix setting of the fontset element
25751 for ASCII.
25752 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25753 to get a font name.
25754 (Ffontset_info): Adjust for the change of fontset_font.
25755
25756 * coding.c (emacs_mule_char): Check invalid code more rigidly.
25757
25758 * character.h (LEADING_CODE_LATIN_1_MIN)
25759 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
25760
25761 2008-02-01 Kenichi Handa <handa@m17n.org>
25762
25763 * editfns.c (check_translation): New function.
25764 (Ftranslate_region_internal): Handle M:N mapping.
25765
25766 2008-02-01 Kenichi Handa <handa@m17n.org>
25767
25768 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
25769
25770 2008-02-01 Kenichi Handa <handa@m17n.org>
25771
25772 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
25773 goto invalid_code.
25774 (decode_coding_iso_2022): Fix handling of invalid designation.
25775
25776 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
25777 after calling code_conversion_save.
25778
25779 2008-02-01 Kenichi Handa <handa@m17n.org>
25780
25781 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
25782
25783 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
25784
25785 * fontset.c: Include "intervals.h".
25786 (fontset_face): Fix comparing of Lisp_Objects.
25787 (free_face_fontset, new_fontset_from_font_name):
25788 Fix Lisp_Object/int mixup.
25789
25790 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
25791
25792 * coding.c: Add many prototypes for static functions.
25793 (get_translation_table): Allow max_lookup to be NULL.
25794 (decode_coding, Ffind_coding_systems_region_internal)
25795 (Funencodable_char_position, Fcheck_coding_systems_region):
25796 Call get_translation_table with max_lookup NULL.
25797
25798 2008-02-01 Kenichi Handa <handa@m17n.org>
25799
25800 * coding.c (get_translation_table): Declare it as Lisp_Object.
25801 (LOOKUP_TRANSLATION_TABLE): New macro.
25802 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
25803 instead of CHAR_TABLE_REF.
25804
25805 2008-02-01 Kenichi Handa <handa@m17n.org>
25806
25807 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
25808 annotation data format.
25809 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
25810 Change arguments FROM and TO to single argument NCHARS. Change caller.
25811 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
25812 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25813 (decode_coding_ccl, decode_coding_charset): Pay attention to
25814 coding->charbuf_used.
25815 (get_translation): New function.
25816 (produce_chars): New arguments translation_table and last_block.
25817 Translate characters here. Return number of carryover chars.
25818 Change caller.
25819 (produce_composition): New argument pos. Change caller.
25820 Adjust for the change of annotation data format.
25821 (produce_charset, produce_annotation): Likewise.
25822 (decode_coding, encode_coding): Don't call translate_chars.
25823 (consume_chars): New arg translation_table. Change caller.
25824 (translate_chars): Delete.
25825 (syms_of_coding): Make translation-table's number of extra slots 2.
25826
25827 2008-02-01 Kenichi Handa <handa@m17n.org>
25828
25829 * search.c (simple_search): Fix setting this_pos_byte in backward
25830 search.
25831
25832 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
25833 byte sequence.
25834 (detect_coding_ccl): Fix setting of the variable valids.
25835
25836 2008-02-01 Kenichi Handa <handa@m17n.org>
25837
25838 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
25839
25840 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
25841
25842 * editfns.c (Ftranslate_region_internal): Rename from
25843 Ftranslate_region. Accept a char-table in TABLE.
25844 (syms_of_editfns): Defsubr Stranslate_region_internal.
25845
25846 * xfaces.c (set_lface_from_font_name): If a font is specified for
25847 a frame, generate a fontset from the font.
25848 (build_scalable_font_name): If the scalable font is requested for
25849 a specific size, don't change that size.
25850 (try_font_list): Try a scalable font also in the case that a
25851 pattern string is specified.
25852
25853 2008-02-01 Kenichi Handa <handa@m17n.org>
25854
25855 * xfaces.c (Fface_font): New optional arg CHARACTER.
25856
25857 2008-02-01 Kenichi Handa <handa@m17n.org>
25858
25859 * charset.h (CHARSET_OFFSET): New macro.
25860
25861 2008-02-01 Kenichi Handa <handa@m17n.org>
25862
25863 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
25864
25865 * fontset.c (fontset_face): Handle the case that repertory is a
25866 char-table.
25867 (find_font_encoding): Return nil for unknown encoding.
25868 (Fset_fontset_font): Ignore a font of unknown encoding.
25869
25870 2008-02-01 Kenichi Handa <handa@m17n.org>
25871
25872 * keymap.c (describe_vector): Handle default value of a char table.
25873
25874 * fontset.c (fontset_face): Handle fallback fonts correctly.
25875 (Ffontset_info): Return infomation about fallback fonts.
25876
25877 2008-02-01 Kenichi Handa <handa@m17n.org>
25878
25879 * fontset.c (FONTSET_DEFAULT): New macro.
25880 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
25881 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
25882 the case that it is nil.
25883 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
25884 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
25885
25886 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
25887 subset or superset.
25888
25889 2008-02-01 Kenichi Handa <handa@m17n.org>
25890
25891 * emacs.c (main): Call init_charset after syms_of_XXX.
25892
25893 * charset.c (Vcharset_map_directory): Delete.
25894 (Vcharset_map_path): New variable.
25895 (load_charset_map_from_file): Use Vcharset_map_path instead.
25896 (init_charset): Initialize Vcharset_map_path.
25897 (syms_of_charset): Delete declaration of "charset-map-directory",
25898 add declaration of "charset-map-path".
25899
25900 2008-02-01 Kenichi Handa <handa@m17n.org>
25901
25902 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
25903 ASCII only string.
25904
25905 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
25906
25907 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
25908 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
25909
25910 2008-02-01 Kenichi Handa <handa@m17n.org>
25911
25912 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
25913
25914 * coding.c (QCmnemonic, QCdefalut_char)
25915 (QCdecode_translation_table, QCencode_translation_table)
25916 (QCpost_read_conversion, QCpre_write_conversion): New variables.
25917 (get_translation_table): Return a list of translation tables if
25918 necessary.
25919 (decode_coding): Call get_translation_table with ENCODEP 0.
25920 (char_encodable_p): If translation_table is non-nil, always call
25921 translate_char.
25922 (Fdefine_coding_system_internal): Accept list of translation
25923 tables as :encode-translation-table and :decode-translation-table.
25924 (Fcoding_system_put): New function.
25925 (syms_of_coding): Declare new symbols.
25926 Defsubr Scoding_system_put.
25927 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
25928 typically JISX0212.
25929
25930 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
25931 when the charset is superset type.
25932
25933 * character.c (translate_char): Accept list of translation tables.
25934
25935 2008-02-01 Kenichi Handa <handa@m17n.org>
25936
25937 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
25938 (CODING_ATTR_TRANS_TBL): New macro.
25939
25940 * coding.c (get_translation_table): New function.
25941 (translate_chars): Fix the bug of skipping annotation data.
25942 (decode_coding, encode_coding): Utilize get_translation_table.
25943 (char_encodable_p, Funencodable_char_position): Translate char if
25944 necessary.
25945 (Ffind_coding_systems_region_internal)
25946 (Fcheck_coding_systems_region): Setup translation table for encode
25947 in a coding system attribute vector in advance.
25948 (Fdefine_coding_system_internal): Allow a symbol as translation
25949 table. For shift-jis type coding system, allow 4th charset.
25950
25951 2008-02-01 Kenichi Handa <handa@m17n.org>
25952
25953 * coding.c (decode_coding_sjis): Check the first byte rigidly.
25954
25955 * xdisp.c (get_next_display_element): Pass -1 as POS to
25956 FACE_FOR_CHAR if displaying a C-string.
25957
25958 2008-02-01 Kenichi Handa <handa@m17n.org>
25959
25960 * composite.c (get_composition_id): Handle xoff and yoff in a
25961 composition rule.
25962
25963 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25964 (struct composition): New member lbearing and rbearing.
25965
25966 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25967 (x_get_glyph_overhangs): Handle a composition glyph.
25968 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25969
25970 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25971 composition glyph.
25972
25973 2008-02-01 Kenichi Handa <handa@m17n.org>
25974
25975 * print.c: Include charset.h.
25976 (Vprint_charset_text_property): New variable.
25977 (Qdefault): Extern it.
25978 (PRINT_STRING_NON_CHARSET_FOUND)
25979 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25980 (print_check_string_result): New variable.
25981 (print_check_string_charset_prop): New function.
25982 (print_prune_charset_plist): New variable.
25983 (print_prune_string_charset): New function.
25984 (print_object): Call print_prune_string_charset if
25985 Vprint_charset_text_property is not t.
25986 (print_interval): Print nothing if interval->plist is nil.
25987 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25988 variable. Init and staticpro print_prune_charset_plist.
25989
25990 2008-02-01 Kenichi Handa <handa@m17n.org>
25991
25992 * fontset.c (new_fontset_from_font_name): Use the specified font
25993 for all characters in the new fontset.
25994
25995 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25996 OBJECT args.
25997
25998 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
25999 OBJECT args for composition too.
26000
26001 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26002 OBJECT args.
26003
26004 2008-02-01 Kenichi Handa <handa@m17n.org>
26005
26006 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26007
26008 * fontset.c (reorder_font_vector): Adjust for the change of
26009 FONT_DEF format.
26010 (fontset_face): New arg id. Change caller.
26011 (face_for_char): New args pos and object.
26012 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26013 (fs_query_fontset): Check NAME by Fassoc too.
26014 (Fset_fontset_font): Allow non-XLFD font name.
26015 (Ffontset_info): Adjust for the change of FONT_DEF format.
26016
26017 * fontset.h (face_for_char): Adjust prototype.
26018
26019 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26020 (append_space, extend_face_to_end_of_line)
26021 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26022 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26023
26024 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26025 POS and OBJECT args.
26026
26027 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26028 POS and OBJECT args.
26029
26030 2008-02-01 Jason Rumney <jasonr@gnu.org>
26031
26032 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26033 of GlobalAlloc'ed memory.
26034
26035 2008-02-01 Kenichi Handa <handa@m17n.org>
26036
26037 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26038
26039 * charset.h (charset_table_used): Delete extern.
26040
26041 * charset.c (charset_table_used): Make it static.
26042 (map_charset_chars): Fix args to c_function with.
26043
26044 * chartab.c (map_sub_char_table_for_charset): Fix args to
26045 c_function with.
26046
26047 * coding.h (enum coding_result_code):
26048 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
26049
26050 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26051 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26052 (Vlast_code_conversion_error): New variables.
26053 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26054 (ONE_MORE_BYTE): Record error if any instead of signaling an
26055 error. If non-ASCII multibyte char is found, return the negative
26056 value of the code. All callers changed to check it.
26057 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26058 (record_conversion_result): New function. Change all codes setting
26059 coding->result to call this function.
26060 (detect_coding_utf_8, decode_coding_utf_8)
26061 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26062 Don't use the local variable incomplete.
26063 (emacs_mule_char): Change the second arg to `const'.
26064 (decode_coding): Fix of flushing out unprocessed data.
26065 (make_conversion_work_buffer): Fix making of a work buffer.
26066 (decode_coding_object): Return coding->dst_object.
26067
26068 * fontset.c (set_fontset_font): Fix args.
26069
26070 * lisp.h (CHARACTERBITS): Define as 22.
26071
26072 * process.c (send_process): Be sure to set coding->src_multibyte.
26073
26074 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26075
26076 2008-02-01 Kenichi Handa <handa@m17n.org>
26077
26078 * xdisp.c (handle_auto_composed_prop): Give limit to
26079 Fnext_single_char_property_change.
26080
26081 2008-02-01 Kenichi Handa <handa@m17n.org>
26082
26083 * composite.c (syms_of_composite): Don't make the composition hash
26084 table weak.
26085
26086 * fontset.c (Fset_fontset_font): Fix docstring.
26087
26088 * lisp.h (detect_coding_system): Adjust prototype.
26089
26090 * fileio.c (kill_workbuf_unwind): Delete this function.
26091 (Finsert_file_contents): Adjust the call of detect_coding_system.
26092 Get conversion_buffer by code_conversion_save. Use the macro
26093 CODING_MAY_REQUIRE_DECODING. After decoding, update
26094 coding_system.
26095
26096 * coding.h (make_conversion_work_buffer): Delete extern.
26097 (code_conversion_save): Extern it.
26098
26099 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26100 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26101 (decode_coding_utf_8): Don't do eol converion.
26102 (detect_coding_utf_16): Check coding->src_chars, not
26103 coding->src_bytes. Add heuristics for those that have no signature.
26104 (decode_coding_emacs_mule, decode_coding_iso_2022)
26105 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26106 Don't do eol converion.
26107 (adjust_coding_eol_type): Return a new coding system.
26108 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26109 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26110 each change.
26111 (decode_coding): Pay attention to undo_list. Do eol conversion for
26112 all types of coding-systems (if necessary).
26113 (Vcode_conversion_work_buf_list): Delete it.
26114 (Vcode_conversion_reused_workbuf): Rename from
26115 Vcode_conversion_reused_work_buf.
26116 (Vcode_conversion_workbuf_name): New variable.
26117 (reused_workbuf_in_use): New variable.
26118 (make_conversion_work_buffer): Delete the arg DEPTH.
26119 (code_conversion_restore): Change argument to cons.
26120 (code_conversion_save): Delete the argument BUFFER. Change callers.
26121 (detect_coding_system): New argument src_chars. Change callers.
26122 Fix for utf-16 detection.
26123 (init_coding_once): Don't use ISO_carriage_return.
26124 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26125 reused_workbuf_in_use.
26126
26127 2008-02-01 Kenichi Handa <handa@m17n.org>
26128
26129 * keymap.c (store_in_keymap): Pay attention to the case that idx
26130 is a cons specifying a character range.
26131
26132 2008-02-01 Kenichi Handa <handa@m17n.org>
26133
26134 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26135 HANDLED_RECOMPUTE_PROPS.
26136
26137 * coding.c (Fdefine_coding_system_internal): Fix checking of
26138 ascii compatibility.
26139
26140 2008-02-01 Kenichi Handa <handa@m17n.org>
26141
26142 * charset.c (find_charsets_in_text): Delete unused locale variable.
26143 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26144
26145 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26146 Resync charset_list to Vemacs_mule_charset_list.
26147
26148 * keymap.c (store_in_keymap): Pay attention to the case that idx
26149 is a cons specifying a character range.
26150
26151 2008-02-01 Kenichi Handa <handa@m17n.org>
26152
26153 * composite.c (update_compositions): Bind inhibit-read-only, etc
26154 to t before calling remove-list-of-text-properties.
26155
26156 * print.c (print_object): Always print ASCII chars as is.
26157
26158 2008-02-01 Kenichi Handa <handa@m17n.org>
26159
26160 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26161
26162 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26163 is a char table.
26164
26165 2008-02-01 Kenichi Handa <handa@m17n.org>
26166
26167 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26168
26169 2008-02-01 Kenichi Handa <handa@m17n.org>
26170
26171 * xfaces.c (set_lface_from_font_name): Fix for the case that
26172 FONTNAME is not fontset name.
26173
26174 2008-02-01 Kenichi Handa <handa@m17n.org>
26175
26176 * fns.c (base64_encode_1): Fix previous change.
26177
26178 2008-02-01 Kenichi Handa <handa@m17n.org>
26179
26180 * fontset.c (set_fontset_font): New function.
26181 (Fset_fontset_font): If a font is specified for a charset, use
26182 map_charset_chars to store the font spec in a fontset.
26183
26184 2008-02-01 Kenichi Handa <handa@m17n.org>
26185
26186 * fontset.c (fontset_face): Create a fallback fontset on demand.
26187 (make_fontset): Don't create a fallback fontset here.
26188 (free_face_fontset): Free a fallback fontset (if any) too.
26189 (n_auto_fontsets): Delete this variable.
26190 (auto_fontset_alist): New variable.
26191 (new_fontset_from_font_name): Check auto_fontset_alist.
26192 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26193 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26194 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26195 Defsubr Sfontset_list_all.
26196
26197 2008-02-01 Kenichi Handa <handa@m17n.org>
26198
26199 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26200
26201 2008-02-01 Kenichi Handa <handa@m17n.org>
26202
26203 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26204
26205 2008-02-01 Kenichi Handa <handa@m17n.org>
26206
26207 * editfns.c (Fgoto_char): Fix docstring.
26208
26209 2008-02-01 Kenichi Handa <handa@m17n.org>
26210
26211 * insdel.c (insert_from_gap): Adjust intervals correctly.
26212
26213 2008-02-01 Jason Rumney <jasonr@gnu.org>
26214
26215 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26216 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26217 (w32_initialize): Try to load it.
26218 (x_get_font_repertory): Use it if available.
26219 (w32_encode_char): Add shortcut for unicode output.
26220
26221 * w32fns.c (w32_load_system_font): Default charset to -1.
26222 (x_to_w32_charset): Match all fonts for unicode.
26223 (w32_to_x_charset): New parameter matching. Don't return partial
26224 or wildcard charsets.
26225 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26226 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26227 (w32_to_x_font): Match charset to real charset.
26228 (enum_font_cb2): Always list unicode versions.
26229
26230 * makefile.w32-in (temacs): Increase EMHEAP.
26231
26232 2008-02-01 Jason Rumney <jasonr@gnu.org>
26233
26234 * w32term.c (w32_encode_char): New charset parameter.
26235 font_info.encoding becomes encoding_type.
26236 (x_get_font_repertory): New function. Warning: stub only!
26237 (x_new_font): Return quickly if font already set.
26238 (x_new_fontset): fontsetname parameter is Lisp_Object.
26239 Use new fs_query_fontset. Try new_fontset_from_font_name.
26240 Use fontset_name for return value.
26241
26242 * w32term.h: Declare x_get_font_repertory.
26243
26244 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26245 place of find_charset_in_text. Use encode_coding_object in place
26246 of encode_coding.
26247 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26248 decode_coding.
26249
26250 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26251 of x_new_fontset.
26252 (w32_load_system_font): Initialize charset as unicode.
26253 font_info.encoding becomes encoding_type.
26254 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26255 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26256 (syms_of_w32fns): Set get_font_repertory_func.
26257
26258 * w32console.c: Include character.h. Use terminal_encode_buffer
26259 from term.c.
26260 (write_glyphs): Use new version of encode_terminal_code.
26261 Use encode_coding_object in place of encode_coding.
26262
26263 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26264 encoding becomes encoding_type.
26265
26266 * term.c (terminal_encode_buffer): Make externally visible.
26267
26268 * makefile.w32-in: Add character.h dependancies.
26269 (character.o, chartab.o): New targets.
26270
26271 2008-02-01 Kenichi Handa <handa@m17n.org>
26272
26273 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26274 CODING_ID_EOL_TYPE.
26275
26276 2008-02-01 Andreas Schwab <schwab@suse.de>
26277
26278 * coding.c (produce_chars): Revert last change.
26279
26280 2008-02-01 Kenichi Handa <handa@m17n.org>
26281
26282 * charset.h (charset_unicode): Extern it.
26283
26284 * charset.c (string_xstring_p): Check by (C >= 0x100).
26285 (find_charsets_in_text): Change format of the arc CHARSETS.
26286 New arg MULTIBYTE.
26287 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26288 change of find_charsets_in_text.
26289 (Fsplit_char): Fix doc. Never return unknown.
26290
26291 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26292
26293 * coding.c (Fdefine_coding_system_alias):
26294 Update Vcoding_system_list.
26295
26296 * fontset.c (load_font_get_repertory): Pay attention to the case
26297 that ENCODING of a font is specified by a char-table.
26298
26299 * xterm.c (x_get_font_repertory): Handle the case that the
26300 encoding of font is other than Unicode.
26301
26302 2008-02-01 Kenichi Handa <handa@m17n.org>
26303
26304 * term.c (encode_terminal_code): Don't handle glyph-table.
26305 Check if a character is encodable by the terminal coding system.
26306 If not, produces proper number of `?'s. Update
26307 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26308 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26309
26310 2008-02-01 Kenichi Handa <handa@m17n.org>
26311
26312 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26313 New variables.
26314 (encode_terminal_code): Change argument. Encode multiple
26315 characters at once. Store the result of encoding in
26316 terminal_encode_buffer.
26317 (write_glyphs, insert_glyphs): Adjust for the change of
26318 encode_terminal_code.
26319 (term_init): Initialize terminal_encode_buffer and
26320 terminal_encode_buf_size.
26321
26322 * coding.c (consume_chars): If coding->src_object is nil, don't
26323 check annotation.
26324
26325 2008-02-01 Kenichi Handa <handa@m17n.org>
26326
26327 * character.c (char_string): Use ASCII_CHAR_P instead of
26328 SINGLE_BYTE_CHAR_P.
26329
26330 2008-02-01 Kenichi Handa <handa@m17n.org>
26331
26332 * xdisp.c (handle_auto_composed_prop): Check if the last
26333 characters of auto-composed region is newly composed with the
26334 following characters.
26335 (handle_composition_prop): Fix checking of point being inside
26336 composition.
26337
26338 2008-02-01 Kenichi Handa <handa@m17n.org>
26339
26340 * fns.c (concat): Don't change multibyteness of the result by
26341 concatenating an 8-bit character.
26342
26343 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26344 multibyteness of the result when newelt is an 8-bit character.
26345
26346 2008-02-01 Dave Love <fx@gnu.org>
26347
26348 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26349 EMACS_INT.
26350
26351 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26352
26353 * xfaces.c (face_numeric_value): Declare dim size_t.
26354 (Finternal_lisp_face_equal_p): Remove unused f.
26355
26356 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26357 (MATRIX_ROW): Remove unused vars.
26358 (draw_glyphs, x_insert_glyphs, fast_find_position)
26359 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26360 byte/char counts.
26361
26362 * regex.c (regex_compile): Remove unused var.
26363
26364 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26365
26366 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26367 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26368
26369 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26370
26371 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26372
26373 * fileio.c (Fwrite_region): Remove unused var.
26374
26375 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26376 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26377
26378 * composite.c (Fremove_list_of_text_properties): Declare.
26379
26380 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26381 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26382 (coding_inherit_eol_type): Remove unused attrs.
26383 (detect_coding): Cast arg of detect_eol.
26384
26385 * charset.c (syms_of_charset): Remove unused var p.
26386 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26387 byte/char counts.
26388
26389 * casetab.c (set_case_table): Remove unused var.
26390
26391 * window.c (Fdisplay_buffer, Fframe_selected_window):
26392 Remove unused vars.
26393
26394 2008-02-01 Dave Love <fx@gnu.org>
26395
26396 * xterm.c (x_bitmap_mask): Declare.
26397
26398 2008-02-01 Dave Love <fx@gnu.org>
26399
26400 * xterm.c (x_term_init): Fix type error.
26401
26402 * lisp.h: Add Funibyte_char_to_multibyte.
26403
26404 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26405 (Fset_coding_system_priority): Doc fix.
26406
26407 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26408
26409 * indent.c (check_composition): Make start and end EMACS_INT.
26410
26411 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26412
26413 * xdisp.c (handle_composition_prop, check_point_in_composition):
26414 Make buffer positions EMACS_INT.
26415
26416 * composite.c (find_composition, run_composition_function)
26417 (update_compositions, Ffind_composition_internal): Make buffer
26418 positions EMACS_INT.
26419
26420 * composite.h (find_composition, update_compositions):
26421 Make position args EMACS_INT.
26422
26423 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26424
26425 * intervals.c (get_property_and_range):
26426 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26427
26428 * unexalpha.c: Don't include varargs.h.
26429
26430 2008-02-01 Dave Love <fx@gnu.org>
26431
26432 * coding.h (ENCODE_UTF_8): New.
26433
26434 * Makefile.in (gtkutil.o): Depend on coding.h.
26435
26436 * coding.c (Fset_coding_system_priority): Doc fix.
26437
26438 2008-02-01 Kenichi Handa <handa@m17n.org>
26439
26440 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26441 the case of auto saving.
26442
26443 2008-02-01 Andreas Schwab <schwab@suse.de>
26444
26445 * chartab.c (map_char_table, map_char_table_for_charset):
26446 Protect `range' from GC.
26447
26448 2008-02-01 Kenichi Handa <handa@m17n.org>
26449
26450 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26451
26452 2008-02-01 Kenichi Handa <handa@m17n.org>
26453
26454 * fileio.c (choose_write_coding_system): Return a decided coding system.
26455 (Fwrite_region): Set Vlast_coding_system_used to the return value
26456 of choose_write_coding_system.
26457
26458 2008-02-01 Kenichi Handa <handa@m17n.org>
26459
26460 * charset.c (Fset_charset_priority): Pay attention to duplicated
26461 arguments.
26462
26463 * coding.c (QCcategory): New variable.
26464 (syms_of_coding): Defsym it. Set all elements of
26465 Vcoding_category_table and their symbol values.
26466 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26467 coding-category-XXX, and coding-category-list.
26468 (Fdefine_coding_system_internal): Add category in the plist.
26469
26470 2008-02-01 Kenichi Handa <handa@m17n.org>
26471
26472 * callproc.c (Fcall_process): Handle carryover correctly.
26473
26474 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26475 (raw_text_coding_system): Check NILP (coding_system).
26476 (coding_inherit_eol_type): Check NILP (coding_system) and
26477 NILP (parent).
26478 (consume_chars): Fix for the case of raw-text.
26479
26480 * process.c (read_process_output): Handle carryover correctly.
26481
26482 2008-02-01 Dave Love <fx@gnu.org>
26483
26484 * regex.c (re_search_2): Fix last change.
26485
26486 2008-02-01 Kenichi Handa <handa@m17n.org>
26487
26488 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26489 target_multibyte. Even in a unibyte case, return a converted
26490 multibyte char.
26491 (GET_CHAR_AFTER): New macro.
26492 (PATFETCH): Translate via multibyte char.
26493 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26494 (SETUP_MULTIBYTE_RANGE): New macro.
26495 (regex_compile): Setup compiled code so that its multibyteness
26496 matches that of a target. Fix the handling of "[X-YZ]" using
26497 SETUP_MULTIBYTE_RANGE.
26498 (analyse_first) <charset>: For filling fastmap for all multibyte
26499 characters, don't check by BASE_LEADING_CODE_P.
26500 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26501 the same as RE_MULTIBYTE_P (bufp) now.
26502 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26503 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26504 (TRANSLATE_VIA_MULTIBYTE): New macro.
26505 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26506 It is the same as RE_MULTIBYTE_P (bufp) now.
26507 <exactn>: Translate via multibyte.
26508 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26509 Don't translate it.
26510 <charset, charset_not>: Fetch a character by
26511 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26512 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26513 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26514 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26515 by GET_CHAR_AFTER.
26516 (bcmp_translate): Likewise.
26517
26518 * search.c (compile_pattern): Check the member target_multibyte,
26519 not the member multibyte of buf.
26520
26521 * lread.c (read1): While reading a string, set force_singlebyte
26522 and force_multibyte correctly.
26523
26524 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26525 up of unibyte_to_multibyte_table.
26526
26527 2008-02-01 Kenichi Handa <handa@m17n.org>
26528
26529 * coding.c (setup_coding_system): If coding has
26530 post-read-conversion or pre-write-conversion, set
26531 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26532 respectively.
26533 (decode_coding_gap): Run post-read-conversion if any.
26534
26535 * fileio.c (Finsert_file_contents): Even if we read into a
26536 unibyte buffer, check if we must decode the result or not.
26537
26538 2008-02-01 Kenichi Handa <handa@m17n.org>
26539
26540 * coding.c (make_conversion_work_buffer): Change the work buffer
26541 name to the same one as that of Emacs 21.
26542
26543 2008-02-01 Kenichi Handa <handa@m17n.org>
26544
26545 * coding.h (make_conversion_work_buffer): Adjust prototype.
26546 (code_conversion_restore): Don't extern it.
26547
26548 * coding.c (detected_mask): Delete unused variable.
26549 (decode_coding_iso_2022): Pay attention to the byte sequence of
26550 CTEXT extended segment, and retain those bytes as is.
26551 (decode_coding_ccl): Delete unused variable `valids'.
26552 (setup_coding_system): Delete unused variable `category'.
26553 (consume_chars): Delete unused variable `category'. Make it work
26554 for non-multibyte case.
26555 (make_conversion_work_buffer): Change argument.
26556 (saved_coding): Delete unused variable.
26557 (code_conversion_restore): Don't check saved_coding->destination.
26558 (code_conversion_save): New function.
26559 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26560 instead of record_unwind_protect.
26561 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26562 (detect_coding_system): Delete unused variable `mask'.
26563 (Fdefine_coding_system_internal): Delete unused variable id.
26564
26565 * fileio.c (kill_workbuf_unwind): New function.
26566 (Finsert_file_contents): On replacing, call
26567 make_conversion_work_buffer with correct args, and call
26568 record_unwind_protect with the first arg kill_workbuf_unwind.
26569
26570 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26571
26572 2008-02-01 Kenichi Handa <handa@m17n.org>
26573
26574 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26575 (fontset_add): Fix for the case that TO is less than TO1.
26576 (Ffontset_info): Don't use fallback fontset on checking the
26577 default fontset.
26578 (dump_fontset): New function for debugging.
26579
26580 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26581 coding_type is Qcharset.
26582
26583 2008-02-01 Kenichi Handa <handa@m17n.org>
26584
26585 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26586 (map_char_table): Don't inherit the value from the parent on
26587 initializing VAL. Adjust for the above change.
26588
26589 2008-02-01 Kenichi Handa <handa@m17n.org>
26590
26591 * coding.c (Qsignature, Qendian): Delete these variables.
26592 (syms_of_coding): Don't initialize them.
26593 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26594 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26595 detect_info->found.
26596 (decode_coding_utf_16): Don't detect BOM here.
26597 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26598 is NOT utf_16_without_bom.
26599 (setup_coding_system): For a coding system of type utf-16, check
26600 if the attribute :endian is Qbig or not (not nil or not), and set
26601 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26602 (detect_coding): If coding type is utf-16 and BOM detection is
26603 required, detect it.
26604 (Fdefine_coding_system_internal): For a coding system of type
26605 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26606
26607 2008-02-01 Kenichi Handa <handa@m17n.org>
26608
26609 * coding.c (coding_set_source): Fix for the case that the current
26610 buffer is different from coding->src_object.
26611 (decode_coding_object): Don't use the conversion work buffer if
26612 DST_OBJECT is a buffer.
26613
26614 2008-02-01 Dave Love <fx@gnu.org>
26615
26616 * lread.c (read_emacs_mule_char) [len==2]: Index
26617 emacs_mule_charset correctly.
26618
26619 2008-02-01 Dave Love <fx@gnu.org>
26620
26621 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26622 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26623 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26624 treated specially.)
26625 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26626 (detected_mask): Remove Big5 bits.
26627
26628 2008-02-01 Kenichi Handa <handa@m17n.org>
26629
26630 The following changes are to make the font rescaling facility
26631 compatible with Emacs 21.
26632
26633 * xfaces.c (Vface_font_rescale_alist): Rename from
26634 Vface_resizing_fonts.
26635 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26636 (font_rescale_ratio): Rename from font_resizing_ratio.
26637 (split_font_name): Set font->rescale_ratio.
26638 (better_font_p): Pay attention to font->rescale_ratio.
26639 (build_scalable_font_name): Likewise. Change RESX, and RESY
26640 fields.
26641 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26642
26643 2008-02-01 Kenichi Handa <handa@m17n.org>
26644
26645 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26646 (Qutf_16_le): Remove these variables.
26647 (syms_of_coding): Don't DEFSYM them.
26648 (decode_coding_utf_16): Fix handling of BOM.
26649 (encode_coding_utf_16): Fix handling of BOM.
26650
26651 2008-02-01 Kenichi Handa <handa@m17n.org>
26652
26653 * fileio.c (Finsert_file_contents): On replacing, before decoding
26654 the file into the work buffer, set point of the work buffer to the end.
26655
26656 2008-02-01 Dave Love <fx@gnu.org>
26657
26658 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26659
26660 2008-02-01 Dave Love <fx@gnu.org>
26661
26662 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26663 and fix C types.
26664
26665 2008-02-01 Kenichi Handa <handa@m17n.org>
26666
26667 * xdisp.c (SKIP_GLYPHS): New macro.
26668 (set_cursor_from_row): Pay attention to string display properties.
26669
26670 * category.c (copy_category_entry): Fix for the case that RANGE
26671 is an integer.
26672
26673 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26674
26675 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26676
26677 2008-02-01 Kenichi Handa <handa@m17n.org>
26678
26679 * charset.c (Fcharset_id_internal): New function.
26680 (syms_of_charset): Defsubr it.
26681
26682 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26683 with the last arg charset_list acquired from coding.
26684 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26685 the attribute coding_attr_ccl_valids.
26686
26687 * coding.h (enum define_coding_ccl_arg_index): Set the first
26688 member coding_arg_ccl_decoder to coding_arg_max.
26689
26690 * ccl.h (ccl_driver): Adjust prototype.
26691
26692 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26693 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
26694 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
26695 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26696 last arg Qnil.
26697
26698 2008-02-01 Kenichi Handa <handa@m17n.org>
26699
26700 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26701 call encode_char.
26702
26703 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26704
26705 2008-02-01 Dave Love <fx@gnu.org>
26706
26707 * composite.c (syms_of_composite): Make composition_hash_table weak.
26708
26709 2008-02-01 Kenichi Handa <handa@m17n.org>
26710
26711 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26712 (font_name_registry): Don't extern them.
26713 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26714
26715 * fontset.h (Qfontset): Don't extern it.
26716 (new_fontset_from_font_name): Extern it.
26717
26718 * fontset.c: Give 8 extra slots to fontset objects.
26719 (Qfontset_info): New variable.
26720 (syms_of_fontset): Defsym it.
26721 (FONTSET_FALLBACK): New macro.
26722 (fontset_face): Try also the default fontset.
26723 (make_fontset): Realize a fallback fontset from the default fontset.
26724 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26725 using split_font_name_into_vector and build_font_name_from_vector.
26726 (Fset_fontset_font): Access the elements of font_spec by enum
26727 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26728 name by using split_font_name_into_vector.
26729 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
26730 generate a proper font name from the fontset name.
26731 Update Vfontset_alias_alist.
26732 (n_auto_fontsets): New variable.
26733 (new_fontset_from_font_name): New function.
26734 (Ffont_info): Store the information about fonts generated from the
26735 default fontset in the first extra slot of the returned char-table.
26736
26737 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26738 (font_name_registry): Delete function.
26739 (split_font_name_into_vector): New function.
26740 (build_font_name_from_vector): New function.
26741 (font_list): The argument REGISTRY is now a list of registry names.
26742 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26743 specifies an explicit font name, return the name as is. Make a
26744 list of registy names.
26745
26746 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26747 of x_new_fontset.
26748 (Fx_create_frame): Don't call x_new_fontset here. Just use
26749 x_list_fonts to check the existence of fonts.
26750
26751 * xterm.h (x_new_fontset): Adjust prototype.
26752
26753 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26754 string. Use new_fontset_from_font_name to create a fontset from a
26755 font name.
26756
26757 2008-02-01 Kenichi Handa <handa@m17n.org>
26758
26759 * syntax.c (Vfind_word_boundary_function_table): New name for
26760 Vnext_word_boundary_function_table.
26761 (find-word-boundary-function-table): New name for
26762 next-word-boundary-function-table.
26763
26764 2008-02-01 Dave Love <fx@gnu.org>
26765
26766 * Makefile.in: Fix some dependencies.
26767
26768 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
26769 set it to nil before returning.
26770
26771 * composite.c (update_compositions): Fix type error.
26772
26773 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
26774
26775 2008-02-01 Kenichi Handa <handa@m17n.org>
26776
26777 * xterm.c (x_new_font): Optimize for the case that the font is
26778 already set for the frame.
26779
26780 2008-02-01 Kenichi Handa <handa@m17n.org>
26781
26782 * chartab.c (char_table_ascii): Check if the char table contents
26783 is sub-char-table or not.
26784 (char_table_set, char_table_set_range): Fix argument to
26785 char_table_ascii.
26786
26787 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
26788 (detect_coding_utf_8, detect_coding_utf_16)
26789 (detect_coding_emacs_mule, detect_coding_iso_2022)
26790 (detect_coding_sjis, detect_coding_big5)
26791 (detect_coding_ccl, detect_coding_charset): Change argument MASK
26792 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
26793 sequence is valid in this coding system. Change callers.
26794 (MAX_ANNOTATION_LENGTH): New macro.
26795 (ADD_ANNOTATION_DATA): New macro.
26796 (ADD_COMPOSITION_DATA): Change argument. Change callers.
26797 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
26798 (ADD_CHARSET_DATA): New macro.
26799 (emacs_mule_char): New argument ID. Change callers.
26800 (decode_coding_emacs_mule, decode_coding_iso_2022)
26801 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26802 Produce charset annotation data in coding->charbuf.
26803 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
26804 to charset annotation data in coding->charbuf.
26805 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
26806 coding->common_flags if the coding system is iso-2022 based and
26807 uses designation.
26808 (produce_composition): Adjust for the new annotation data format.
26809 (produce_charset): New function.
26810 (produce_annotation): Handle charset annotation.
26811 (handle_composition_annotation, handle_charset_annotation):
26812 New functions.
26813 (consume_chars): Handle charset annotation. Utilize the above two
26814 functions.
26815 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
26816 buffer, get the deleted text as a string and set
26817 coding->src_object to that string.
26818 (detect_coding, detect_coding_system): Use the new struct
26819 coding_detection_info.
26820
26821 * coding.h (struct coding_detection_info): New structure.
26822 (struct coding_system): Adjust prototype of the member `detector'.
26823 (CODING_ANNOTATE_CHARSET_MASK): New macro.
26824
26825 2008-02-01 Kenichi Handa <handa@m17n.org>
26826
26827 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
26828
26829 2008-02-01 Dave Love <fx@gnu.org>
26830
26831 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
26832 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
26833 to new local and nullify apropos_accumulate before returning.
26834 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
26835
26836 2008-02-01 Kenichi Handa <handa@m17n.org>
26837
26838 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
26839 correctly.
26840
26841 2008-02-01 Dave Love <fx@gnu.org>
26842
26843 * fns.c (Flanginfo): Call synchronize_system_time_locale.
26844
26845 2008-02-01 Kenichi Handa <handa@m17n.org>
26846
26847 The following changes are to make character composition happen
26848 automatically on displaying.
26849
26850 * Makefile.in (lisp, shortlisp): Add composite.elc.
26851
26852 * composite.h (Qauto_composed, Vauto_composition_function)
26853 (Qauto_composition_function): Extern them.
26854
26855 * composite.c (Vcomposition_function_table)
26856 (Qcomposition_function_table): Delete variables.
26857 (Qauto_composed, Vauto_composition_function)
26858 (Qauto_composition_function): New variables.
26859 (run_composition_function): Don't call
26860 compose-chars-after-function.
26861 (update_compositions): Clear `auto-composed' text property.
26862 (compose_chars_in_text): Delete this function.
26863 (syms_of_composite): Staticpro Qauto_composed and
26864 Qauto_composition_function. Declare Vauto_composition_function as
26865 a Lisp variable.
26866
26867 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
26868
26869 * xdisp.c (it_props): Add an entry for Qauto_composed.
26870 (handle_auto_composed_prop): New function.
26871
26872 * xselect.c (selection_data_to_lisp_data): Don't call
26873 compose_chars_in_text.
26874
26875 2008-02-01 Dave Love <fx@gnu.org>
26876
26877 * keyboard.c (read_char): Modify checking around use of
26878 Vkeyboard_translate_table.
26879
26880 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26881 and fix C types.
26882
26883 2008-02-01 Kenichi Handa <handa@m17n.org>
26884
26885 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
26886 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26887 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
26888 the case that the last byte is '\r' correctly.
26889 (decode_coding): Flush out the unprocessed data correctly.
26890 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
26891
26892 2008-02-01 Dave Love <fx@gnu.org>
26893
26894 * xterm.c (XTread_socket): Fix changes for defined keysyms.
26895 Add XK_ISO... case.
26896 (xaw_scroll_callback): Revert last change.
26897
26898 2008-02-01 Kenichi Handa <handa@m17n.org>
26899
26900 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
26901
26902 2008-02-01 Kenichi Handa <handa@m17n.org>
26903
26904 * xfaces.c (Vface_resizing_fonts): New variable.
26905 (struct font_name): New member `resizing_ratio'.
26906 (font_resizing_ratio): New function.
26907 (split_font_name): Set font->resizing_ratio.
26908 (better_font_p): Pay attention to font->resizing_ratio.
26909 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
26910 RESX, and RESY fields.
26911 (try_alternative_families): Try scalable fonts if
26912 Vscalable_fonts_allowed is not Qt.
26913 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
26914
26915 2008-02-01 Dave Love <fx@gnu.org>
26916
26917 * xterm.c (xaw_scroll_callback): Cast correctly.
26918
26919 2008-02-01 Dave Love <fx@gnu.org>
26920
26921 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
26922 (lispy_kana_keys): Comment out.
26923 (make_lispy_event) [XK_kana_A]: Comment out.
26924
26925 * xterm.c (xaw_scroll_callback): Cast call_data.
26926 (XTread_socket): Deal with ASCII keysyms.
26927 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
26928
26929 2008-02-01 Dave Love <fx@gnu.org>
26930
26931 * xterm.c (Vx_keysym_table): New.
26932 (syms_of_xterm): Initialize it.
26933 (XTread_socket): Use it.
26934 From head: Eliminate incorrect optimization that tried to avoid
26935 decoding the output of X*LookupString.
26936 (x_get_font_repertory): Delete charset declaration.
26937
26938 2008-02-01 Kenichi Handa <handa@m17n.org>
26939
26940 * coding.c (detect_coding_charset): If only ASCII bytes are found,
26941 return 0.
26942 (Fdefine_coding_system_internal):
26943 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
26944
26945 2008-02-01 Dave Love <fx@gnu.org>
26946
26947 * coding.c (Fcheck_coding_system): Doc fix.
26948
26949 * editfns.c (Finsert_byte): Return a proper value.
26950
26951 2008-02-01 Kenichi Handa <handa@m17n.org>
26952
26953 * coding.c (decode_coding): Fix args to translate_chars.
26954 Pay attention to Vstandard_translation_table_for_decode.
26955 (encode_coding): Fix args to translate_chars. Pay attention to
26956 Vstandard_translation_table_for_encode.
26957
26958 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26959 SINGLE_BYTE_CHAR_P.
26960
26961 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26962 not by SINGLE_BYTE_CHAR_P.
26963
26964 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26965 SINGLE_BYTE_CHAR_P.
26966
26967 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26968 SINGLE_BYTE_CHAR_P.
26969
26970 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26971 by SINGLE_BYTE_CHAR_P.
26972
26973 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26974 SINGLE_BYTE_CHAR_P.
26975
26976 2008-02-01 Dave Love <fx@gnu.org>
26977
26978 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26979
26980 2008-02-01 Dave Love <fx@gnu.org>
26981
26982 * fns.c (Flanginfo): Fix typo.
26983
26984 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26985
26986 2008-02-01 Kenichi Handa <handa@m17n.org>
26987
26988 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26989 (detect_coding_emacs_mule, detect_coding_iso_2022)
26990 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26991 incomplete byte sequence. Don't update *mask when correctly detected.
26992 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
26993 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
26994 (detect_coding, detect_coding_system): Adjust for the changes above.
26995
26996 2008-02-01 Kenichi Handa <handa@m17n.org>
26997
26998 * character.c (char_string): Rename from
26999 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27000 (string_char): Rename from string_char.
27001
27002 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27003 if C is greater than MAX_3_BYTE_CHAR.
27004 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27005 Call string_char instead of string_char_with_unification.
27006
27007 2008-02-01 Dave Love <fx@gnu.org>
27008
27009 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27010
27011 2008-02-01 Kenichi Handa <handa@m17n.org>
27012
27013 * keymap.c (push_key_description): Pay attention to force_multibyte.
27014
27015 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27016
27017 2008-02-01 Dave Love <fx@gnu.org>
27018
27019 * charset.c (define_charset_internal): Rename `supprementary'.
27020
27021 * Makefile.in (lisp, shortlisp): Remove latin-N.
27022
27023 2008-02-01 Dave Love <fx@gnu.org>
27024
27025 * xfns.c (x_window, x_window): Use use_xim.
27026
27027 * xterm.c (use_xim): Initialize.
27028 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27029 (x_term_init): Maybe set use_xim.
27030
27031 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27032
27033 2008-02-01 Kenichi Handa <handa@m17n.org>
27034
27035 * search.c (search_buffer): Fix case-fold-search of multibyte
27036 characters.
27037 (boyer_moore): Rename the last argument to char_high_bits.
27038
27039 2008-02-01 Kenichi Handa <handa@m17n.org>
27040
27041 * xdisp.c (display_string): Fix for the case of zero width glyph.
27042
27043 * xfns.c (x_set_font): Change the error message of the case that
27044 x_new_fontset returns Qt.
27045
27046 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27047 (Finternal_set_lisp_face_attribute): Use signal_error for the
27048 error of invalid fontset.
27049
27050 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27051 fontset, return Qt.
27052
27053 2008-02-01 Dave Love <fx@gnu.org>
27054
27055 * unexelf.c (unexec): Make .got handling not SGI-specific.
27056
27057 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27058
27059 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27060
27061 * keyboard.c (read_key_sequence): Fix type error.
27062
27063 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27064 Fix type error.
27065
27066 * fontset.c (fontset_add): Return Lisp_Object.
27067
27068 2008-02-01 Dave Love <fx@gnu.org>
27069
27070 * charset.h (charset_ordered_list_tick): Declare extern.
27071
27072 2008-02-01 Kenichi Handa <handa@m17n.org>
27073
27074 The following changes (and some of 2008-02-01 changes of mine) are
27075 for handling syntax, category, and case conversion for unibyte
27076 characters by converting them to multibyte on the fly. With these
27077 changes, we don't have to setup syntax and case tables for unibyte
27078 characters in each language environment.
27079
27080 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27081 multibyte if necessary.
27082
27083 * bytecode.c (Fbyte_code): Likewise.
27084
27085 * character.h (LEADING_CODE_LATIN_1_MIN)
27086 (LEADING_CODE_LATIN_1_MAX): New macros.
27087 (unibyte_to_multibyte_table): Extern it.
27088 (unibyte_char_to_multibyte): New macro.
27089 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27090 (CHAR_LEADING_CODE): New macro.
27091 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27092
27093 * character.c (unibyte_to_multibyte_table): New variable.
27094 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27095 (multibyte_char_to_unibyte): If C is an eight-bit character,
27096 convert it to the corresponding byte value.
27097
27098 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27099 not 1, signals an error. Update the elements of
27100 unibyte_to_multibyte_table.
27101 (init_charset_once): Initialize unibyte_to_multibyte_table.
27102 (syms_of_charset): Define the charset `iso-8859-1'.
27103
27104 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27105 as is without converting it to unibyte. In a unibyte buffer,
27106 convert C to multibyte before checking the syntax.
27107
27108 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27109
27110 * minibuf.c (Fminibuffer_complete_word): Use the macro
27111 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27112
27113 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27114
27115 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
27116 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27117 If that is zero, convert an eight-bit char to multibyte.
27118 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27119 non-emacs case.
27120 (PATFETCH): Convert an eight-bit char to multibyte.
27121 (HANDLE_UNIBYTE_RANGE): New macro.
27122 (regex_compile): Setup the compiled pattern for multibyte chars
27123 even if the given regex string is unibyte. Use PATFETCH_RAW
27124 instead of PATFETCH in many places. To handle `charset'
27125 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27126 only for ASCII chars.
27127 (analyse_first) <exactn>: Simplify because the compiled pattern
27128 is multibyte.
27129 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27130 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27131 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27132 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27133 multibyte always 1.
27134 (re_search_2): In emacs, set the locale variable multibyte to 1,
27135 otherwise to 0. New local variable target_multibyte. Check it
27136 to decide the multibyteness of STR1 and STR2.
27137 If target_multibyte is zero, convert unibyte chars to multibyte
27138 before translating and checking fastmap.
27139 (TARGET_CHAR_AND_LENGTH): New macro.
27140 (re_match_2_internal): In emacs, set the locale variable multibyte
27141 to 1, otherwise to 0. New local variable target_multibyte.
27142 Check it to decide the multibyteness of STR1 and STR2.
27143 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
27144 <charset, charset_not>: If multibyte is nonzero, check fastmap
27145 only for ASCII chars. Call bcmp_translate with
27146 target_multibyte, not with multibyte.
27147 <begline>: Declare the local variable C as `unsigned'.
27148 (bcmp_translate): Change the last arg name to target_multibyte.
27149
27150 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27151 the regexp pattern and the matching target. Set cp->buf.multibyte
27152 to the multibyteness of the regexp pattern. Set
27153 cp->but.target_multibyte to the multibyteness of the matching target.
27154 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27155 FETCH_STRING_CHAR_ADVANCE.
27156 (Freplace_match): Convert unibyte chars to multibyte.
27157
27158 * syntax.c (char_quoted, back_comment, scan_words)
27159 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27160 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27161 unibyte chars to multibyte.
27162 (skip_chars): Delete the arg syntaxp, and move the code for
27163 handling syntaxes to skip_syntaxes. Change callers.
27164 Fix the case that the multibyteness of STRING and the current
27165 buffer doesn't match.
27166 (skip_syntaxes): New function.
27167 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27168 SINGLE_BYTE_CHAR_P.
27169
27170 2008-02-01 Kenichi Handa <handa@m17n.org>
27171
27172 * xfaces.c (QCfontset): New variable.
27173 (LFACE_FONTSET): New macro.
27174 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27175 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27176 (Finternal_set_lisp_face_attribute)
27177 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27178 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27179 check also LFACE_FONTSET_INDEX.
27180 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27181 attrs[LFACE_FONT_INDEX].
27182 (syms_of_xfaces): Intern and staticpro QCfontset.
27183
27184 * dispextern.h (enum lface_attribute_index): New member
27185 LFACE_FONTSET_INDEX.
27186
27187 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27188
27189 2008-02-01 Kenichi Handa <handa@m17n.org>
27190
27191 * coding.c (coding_set_destination): Fix coding->destination for
27192 the case converting a region.
27193 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27194 (encode_coding_object): Fix coding->dst_pos and
27195 coding->dst_pos_byte for the case converting a region.
27196
27197 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27198
27199 * character.h (BYTE8_STRING): New macro.
27200
27201 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27202
27203 2008-02-01 Kenichi Handa <handa@m17n.org>
27204
27205 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27206 characters by octal form.
27207
27208 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27209
27210 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27211 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27212 _fetch_multibyte_char_len.
27213 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27214
27215 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27216
27217 * casefiddle.c (casify_object): Simplify. Handle the case that
27218 the case conversion change the byte length.
27219 (casify_region): Likewise.
27220
27221 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27222
27223 * character.c (_fetch_multibyte_char_len): Delete this variable.
27224 (syms_of_character): Setup Vprintable_chars.
27225
27226 * editfns.c (Fchar_equal): Fix for the unibyte case.
27227 (Finsert_byte): New function.
27228 (syms_of_editfns): Defsubr it.
27229
27230 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27231 of direct code 0x3ffff.
27232
27233 * search.c (Freplace_match): Fix for the unibyte case.
27234
27235 2008-02-01 Kenichi Handa <handa@m17n.org>
27236
27237 * lread.c (safe_to_load_p): Fix the logic.
27238
27239 * syntax.c (scan_words): Don't treat characters belonging to
27240 different scripts as constituting a word.
27241
27242 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27243
27244 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27245
27246 * emacs.c (main): In the case of --unibyte, instead of aborting on
27247 finding non-empty buffer, make it unibyte.
27248
27249 2008-02-01 Kenichi Handa <handa@m17n.org>
27250
27251 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27252 to create a fontset.
27253
27254 2008-02-01 Dave Love <fx@gnu.org>
27255
27256 * character.c (Funibyte_char_to_multibyte): Doc fix.
27257
27258 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27259
27260 2008-02-01 Kenichi Handa <handa@m17n.org>
27261
27262 * fontset.c (fontset_add): Make the type `int'.
27263 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27264
27265 * character.c (unibyte_char_to_multibyte)
27266 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27267 charset_unibyte, not charset_primary.
27268
27269 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27270
27271 * charset.c (charset_unibyte): Rename from charset_primary.
27272 (Funibyte_charset): Rename from Fprimary_charset.
27273 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27274 (syms_of_charset): Adjust for the above changes.
27275
27276 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27277 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27278 it->multibyte_p is zero.
27279
27280 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27281 Delete extern.
27282
27283 2008-02-01 Kenichi Handa <handa@m17n.org>
27284
27285 * coding.c (Fdefine_coding_system_internal): Fix category setting
27286 for a coding system of type iso-2022.
27287
27288 2008-02-01 Kenichi Handa <handa@m17n.org>
27289
27290 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27291
27292 2008-02-01 Kenichi Handa <handa@m17n.org>
27293
27294 * syntax.c (Vnext_word_boundary_function_table): New variable.
27295 (next-word-boundary-function-table): Declare it as a Lisp variable
27296 in syms_of_syntax.
27297 (scan_words): Call functions in Vnext_word_boundary_function_table
27298 if any.
27299
27300 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27301
27302 * fontset.c (fs_load_font): If fontp->charset is not negative,
27303 return fontp without setting its members.
27304
27305 2008-02-01 Dave Love <fx@gnu.org>
27306
27307 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27308
27309 * m/sparc.h (HAVE_ALLOCA): Delete.
27310
27311 * s/irix6-5.h: Don't include strings.h.
27312 (bcopy, bzero, bcmp): Don't undef.
27313
27314 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27315
27316 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27317 (TIOCSIGSEND): Don't test IRIX6.
27318 (bcopy, bzero, bcmp): Define conditionally.
27319
27320 2008-02-01 Kenichi Handa <handa@m17n.org>
27321
27322 * buffer.c (Qas, Qmake, Qto): New variables.
27323 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27324 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27325
27326 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27327 we are inserting a process output into a multibyte buffer.
27328
27329 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27330 multibyte_char_to_unibyte.
27331
27332 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27333 by the primary charset, make it eight-bit char.
27334 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27335
27336 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27337 (charset_8_bit__control, charset_8_bit_graphic)
27338 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27339 (define_charset_internal): New function.
27340 (syms_of_charset): Call define_charset_internal for pre-defined
27341 charsets.
27342
27343 * charset.h (charset_8_bit): Extern it.
27344
27345 * coding.c (make_conversion_work_buffer): Adjust for the change
27346 of Fset_buffer_multibyte.
27347 (encode_coding_raw_text): Increment p0 in the loop.
27348
27349 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27350
27351 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27352 Adjust for the change of Fset_buffer_multibyte.
27353
27354 * fns.c (Fstring_to_multibyte): New function.
27355 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27356
27357 2008-02-01 Dave Love <fx@gnu.org>
27358
27359 * xfns.c (x_put_x_image): Declare args.
27360
27361 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27362 (try_font_list): Declare an arg.
27363
27364 * xdisp.c (message2_nolog, set_message): Declare an arg.
27365
27366 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27367
27368 * syntax.c (scan_sexps_forward): Declare an arg.
27369
27370 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27371 Declare an arg.
27372
27373 * lisp.h (Fnew_fontset): Declare.
27374
27375 * keymap.c (push_key_description): Call CHARACTERP correctly.
27376
27377 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27378 (face_for_char): Delete unused vars.
27379 (Fset_fontset_font): Doc fix. Delete unused vars.
27380
27381 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27382
27383 * composite.c (update_compositions): Declare arg.
27384
27385 * cm.c (calccost, cmgoto): Declare args.
27386
27387 * charset.c: Remove `emacs' conditional. Doc fixes.
27388 (map_char_table_for_charset): Declare.
27389
27390 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27391
27392 * ccl.c: Remove `emacs' conditional.
27393
27394 2008-02-01 Kenichi Handa <handa@m17n.org>
27395
27396 The following changes are to allow specifying multiple font
27397 patterns for a character range (specified by script or charset).
27398
27399 * Makefile.in (abbrev.o): Depend on syntax.h.
27400 (xfaces.o): Depend on charset.h.
27401
27402 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27403 SINGLE_BYTE_CHAR_P.
27404
27405 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27406
27407 * character.h (Vchar_script_table): Extern it.
27408
27409 * character.c (Vscript_alist): Delete.
27410 (Vchar_script_table, Qchar_script_table): New variable.
27411 (syms_of_character): Declare Vchar_script_table as a lisp variable
27412 and initialize it.
27413
27414 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27415 have property char-table-extra-slots, make no extra slot.
27416
27417 * dispextern.h (struct face): Delete member `charset'.
27418 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27419 SINGLE_BYTE_CHAR_P.
27420 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27421 Add prototypes.
27422 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27423 (generate_ascii_font_name): Rename from generate_ascii_font.
27424
27425 * fontset.h (get_font_repertory_func): New prototype.
27426 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27427 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27428
27429 * fontset.c (Qprepend, Qappend): New variables.
27430 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27431 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27432 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27433 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27434 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27435 (load_font_get_repertory): New functions.
27436 (fontset_set): Delete.
27437 (fontset_face): New arg FACE. Return face ID, not face.
27438 Complete re-write to handle new fontset structure. Change caller.
27439 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27440 (face_for_char): Don't call lookup_face.
27441 (make_fontset_for_ascii_face): New arg FACE.
27442 (fs_load_font): New arg CHARSET_ID. Don't check
27443 Vfont_encoding_alist here.
27444 (find_font_encoding): New function.
27445 (list_fontsets): Use STRINGP, not ! NILP.
27446 (accumulate_script_ranges): New function.
27447 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27448 Completely re-written to handle new fontset structure.
27449 (Ffontset_font): Return a copy of element.
27450 (syms_of_fontset): Define symbols Qprepend and Qappend.
27451 Fix docstring of font-encoding-alist.
27452
27453 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27454 (Fset_fotset_font): Fix arguments to 5.
27455
27456 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27457
27458 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27459 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27460 (highlight_trailing_whitespace): Adjust for the change of
27461 lookup_named_face.
27462
27463 * xfaces.c: Include charset.h.
27464 (load_face_font): Delete argument C. Change caller.
27465 (generate_ascii_font_name): Rename from generate_ascii_font.
27466 (font_name_registry): New function.
27467 (cache_face): Store ascii faces before non-ascii faces in buckets.
27468 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27469 Lookup only ascii faces.
27470 (lookup_non_ascii_face): New function.
27471 (lookup_named_face): Delete argument C. Change caller.
27472 (lookup_derived_face): Delete argument C. Change caller.
27473 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27474 a string, just call font_list with it.
27475 (choose_face_font): Delete arguments FACE and C. New arg
27476 FONT_SPEC. Change caller.
27477 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27478 Change caller.
27479 (realize_non_ascii_face): New function.
27480 (realize_x_face): Call load_face_font here.
27481 (realize_tty_face): Delete argument C. Change caller.
27482 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27483 get a face ID.
27484 (dump_realized_face): Don't print charset of FACE.
27485
27486 * xfns.c (x_set_font): Always call x_new_fontset and
27487 store_frame_parameter.
27488 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27489 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27490
27491 * xterm.h (x_get_font_repertory): Extern it.
27492
27493 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27494 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27495 it->multibyte_p is zero.
27496 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27497 (x_new_fontset): If FONTSETNAME doesn't match any existing
27498 fontsets, create a new one.
27499 (x_get_font_repertory): New function.
27500
27501 2008-02-01 Kenichi Handa <handa@m17n.org>
27502
27503 * coding.c (Ffind_coding_systems_region_internal): Detect an
27504 ASCII only string correctly.
27505
27506 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27507 version is 0.
27508
27509 2008-02-01 Kenichi Handa <handa@m17n.org>
27510
27511 * lread.c: Include "coding.h".
27512 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27513 (load_each_byte, unread_char): New variables.
27514 (readchar_backlog): Delete.
27515 (readchar): Return a character unless load_each_byte is nonzero.
27516 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27517 cons. If unread_char is not -1, simply return it.
27518 (unreadchar): Handle the case that readcharfun is
27519 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27520 (read_multibyte): Delete.
27521 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27522 (read_emacs_mule_char): New functions.
27523 (Fload): Even if the file doesn't have the extension ".elc", if
27524 safe_to_load_p returns a positive version number, assume that the
27525 file contains bytecompiled code. If the version is less than 22,
27526 load the file while decoding multibyte sequences by emacs-mule.
27527 (readevalloop): Don't use readchar_backlog.
27528 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27529 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27530 (read_escape): Delete the arg BYTEREP.
27531 (read1): Set load_each_byte to 1 temporarily while handling
27532 #@NUMBER. Don't call read_multibyte.
27533 (read_vector): Call Fread with a cons. If readcharfun is
27534 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27535 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27536 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27537 and Qload_force_doc_strings.
27538
27539 2008-02-01 Kenichi Handa <handa@m17n.org>
27540
27541 * xdisp.c (face_before_or_after_it_pos):
27542 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
27543
27544 2008-02-01 Kenichi Handa <handa@m17n.org>
27545
27546 * character.h (TRAILING_CODE_P): New macro.
27547 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27548 (string_char_with_unification): Fix prototype.
27549 (Vscript_alist): Extern it.
27550
27551 * character.c (Vscript_alist): New variable.
27552 (string_char_with_unification, str_as_unibyte)
27553 (string_escape_byte8): Add `const' to local variables.
27554 (syms_of_character): Declare script-alist as a Lisp variable.
27555
27556 * charset.h (Vcharset_ordered_list): Extern it.
27557 (charset_ordered_list_tick): Extern it.
27558 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27559 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27560 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27561 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27562 (Funify_charset): Adjust for the change of Funify_charset.
27563
27564 * charset.c (charset_ordered_list_tick): New variable.
27565 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27566 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
27567 deunify instead of unify a charset.
27568 (string_xstring_p): Add `const' to local variables.
27569 (find_charsets_in_text): Add `const' to arguments and local variables.
27570 (encode_char): Adjust for the change of Funify_charset.
27571 Fix detecting of invalid code.
27572 (Fset_charset_priority): Increment charset_ordered_list_tick.
27573 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27574 and TO_CODE.
27575
27576 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27577 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27578 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27579 (decode_coding_ccl, consume_chars)
27580 (Ffind_coding_systems_region_internal)
27581 (Fcheck_coding_systems_region): Add `const' to local variables.
27582
27583 * print.c (print_object): Use octal form for printing the
27584 contents of a bool vector.
27585
27586 2008-02-01 Dave Love <fx@gnu.org>
27587
27588 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27589 <version == 20>: Refuse to load.
27590
27591 2008-02-01 Dave Love <fx@gnu.org>
27592
27593 * fns.c: Move coding.h.
27594 (Qcodeset, Qdays, Qmonths): New.
27595 (concat): Use CHARACTERP instead of INTEGERP.
27596 (Flocale_codeset): Delete.
27597 (Flanginfo): New function.
27598 (syms_of_fns): Change accordingly.
27599
27600 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27601
27602 2008-02-01 Dave Love <fx@gnu.org>
27603
27604 * casetab.c (init_casetab_once, init_casetab_once):
27605 Fix CHAR_TABLE_SET call.
27606
27607 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27608
27609 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27610
27611 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27612 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27613 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27614
27615 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27616
27617 * coding.c (ENCODE_DESIGNATION, decode_eol)
27618 (make_conversion_work_buffer, code_conversion_restore)
27619 (Fdefine_coding_system_internal): Convert Lisp types.
27620 (code_conversion_restore): Use EQ, not ==.
27621 (Fencode_coding_string): Fix code_convert_string call.
27622
27623 * coding.h (code_convert_region): Fix prototype.
27624
27625 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27626
27627 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27628 (Ffontset_info): Convert Lisp types.
27629
27630 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27631
27632 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27633
27634 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27635
27636 * chartab.c: Include "...h", not <...h> in some cases.
27637
27638 * callproc.c (Fcall_process): Remove unused variables.
27639
27640 2008-02-01 Dave Love <fx@gnu.org>
27641
27642 * coding.c (Fset_coding_system_priority): Allow null arg list.
27643
27644 2008-02-01 Dave Love <fx@gnu.org>
27645
27646 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27647 (Fself_insert_and_exit): Use CHARACTERP.
27648
27649 * callproc.c (Fcall_process): Remove unused vars.
27650
27651 * xterm.c (XTread_socket): Add extra dead keysyms.
27652
27653 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27654
27655 * dispextern.h: Remove prototypes for redraw_frame,
27656 redraw_garbaged_frames.
27657
27658 * cmds.c (Fself_insert_command): Use CHARACTERP.
27659
27660 * chartab.c (make_sub_char_table): Remove unused var.
27661 (Fset_char_table_default, Fmap_char_table): Doc fix.
27662
27663 * keymap.c (access_keymap): Remove generic char code.
27664 (push_key_description): Use CHARACTERP.
27665
27666 2008-02-01 Dave Love <fx@gnu.org>
27667
27668 * charset.c: Doc fixes.
27669 (Funify_charset): Extra checking.
27670
27671 2008-02-01 Dave Love <fx@gnu.org>
27672
27673 * lread.c: Remove some unused variables.
27674 (safe_to_load_p): If safe, return the magic number version byte.
27675 (Fload): Maybe use load-with-code-conversion.
27676
27677 2008-02-01 Kenichi Handa <handa@m17n.org>
27678
27679 * category.c (Fmodify_category_entry): Don't modify the contents
27680 of category_set for characters out of the range.
27681 Avoid unnecessary modification.
27682
27683 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27684 Vchar_unify_table. The default value of the table is now nil.
27685
27686 * character.c (syms_of_character): Setup Vchar_width_table for
27687 eight-bit-control and raw-byte chars.
27688
27689 * charset.h (enum define_charset_arg_index):
27690 Delete charset_arg_parents and add charset_arg_subset and
27691 charset_arg_superset.
27692 (enum charset_attr_index): Delete charset_parents and add
27693 charset_subset and charset_superset.
27694 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27695 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27696 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27697 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27698 (CHARSET_SUPERSET): New macros.
27699 (charset_work): Extern it.
27700 (ENCODE_CHAR): Use charset_work.
27701 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27702 (map_charset_chars): Extern it.
27703
27704 * charset.c (load_charset_map): Set the default value of encoder
27705 and deunifier char-tables to nil.
27706 (map_charset_chars): Change argument. Change callers.
27707 Use map_char_table_for_charset instead of map_char_table.
27708 (Fmap_charset_chars): New optional args from_code and to_code.
27709 (Fdefine_charset_internal): Adjust for the change of
27710 `define-charset' (:parents -> :subset or :superset).
27711 (charset_work): New variable.
27712 (encode_char, syms_of_charset): Adjust for the change of
27713 Fdefine_charset_internal.
27714 (Ffind_charset_string): Setup the vector `charsets' correctly.
27715
27716 * chartab.c (sub_char_table_ref_and_range): New arg default.
27717 Fix the previous change.
27718 (char_table_ref_and_range): Adjust for the above change.
27719 (map_sub_char_table_for_charset): New function.
27720 (map_char_table_for_charset): New function.
27721
27722 * keymap.c (describe_vector): Handle a char-table directly here.
27723 (describe_char_table): Delete.
27724
27725 * lisp.h (map_charset_chars): Delete.
27726
27727 2008-02-01 Dave Love <fx@gnu.org>
27728
27729 * fns.c (count_combining): Comment out (unused).
27730 (Flocale_codeset): New.
27731 (syms_of_fns): Defsubr it.
27732
27733 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27734 (size_t): Remove.
27735
27736 2008-02-01 Dave Love <fx@gnu.org>
27737
27738 * Makefile.in (chartab.o): Depend on charset.h.
27739
27740 2008-02-01 Kenichi Handa <handa@m17n.org>
27741
27742 * character.c (syms_of_character): Set the default value of
27743 Vprintable_chars to Qnil.
27744
27745 2008-02-01 Dave Love <fx@gnu.org>
27746
27747 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27748
27749 2008-02-01 Kenichi Handa <handa@m17n.org>
27750
27751 * charset.c (load_charset_map): Handle the case that from < to
27752 correctly.
27753
27754 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27755 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27756 Pay attention to raw-8-bit chars.
27757
27758 2008-02-01 Kenichi Handa <handa@m17n.org>
27759
27760 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
27761 It is not bytecompiled now.
27762
27763 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
27764 (charset_jisx0208): New variables.
27765 (Fdefine_charset_internal): Setup them if appropriate.
27766 (init_charset_once): Initialize them to -1.
27767
27768 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
27769 (charset_jisx0208): Extern them.
27770
27771 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
27772 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
27773 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
27774 (setup_iso_safe_charsets): Fix arguments to Fassq.
27775 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
27776 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
27777 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
27778 (encode_coding_iso_2022): Change the 1st arg to
27779 ENCODE_ISO_CHARACTER to a variable.
27780
27781 2008-02-01 Kenichi Handa <handa@m17n.org>
27782
27783 * charset.h (enum define_charset_arg_index): New enums
27784 charset_arg_min_code and charset_arg_max_code.
27785 (struct charset): New member char_index_offset.
27786
27787 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
27788 Take charset->char_index_offset into account.
27789 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
27790 args[charset_arg_max_code]. Setup charset.char_index_offset.
27791 (syms_of_charset): Fix args to Fdefine_charset_internal.
27792
27793 2008-02-01 Dave Love <fx@gnu.org>
27794
27795 * coding.c (decode_coding_utf_8): Reject overlong sequences.
27796
27797 2008-02-01 Dave Love <fx@gnu.org>
27798
27799 * coding.c: Doc fixes.
27800 (Fcoding_system_aliases): Fix return value.
27801 (Qmac): Remove (duplicated) definition.
27802
27803 2008-02-01 Dave Love <fx@gnu.org>
27804
27805 * charset.c (Fcharset_priority_list, Fset_charset_priority):
27806 New functions.
27807
27808 * character.c (Fstring): Doc fix.
27809
27810 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
27811
27812 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
27813 (font-encoding-alist): Doc fix.
27814
27815 2008-02-01 Dave Love <fx@gnu.org>
27816
27817 * term.c (costs_set): Declare static, non-initialized for pcc.
27818 (encode_terminal_code): Remove unused var.
27819
27820 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
27821 for K&R.
27822
27823 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
27824
27825 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
27826 (suffixes): Move out of make_subsidiaries for K&R.
27827
27828 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
27829
27830 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
27831
27832 2008-02-01 Dave Love <fx@gnu.org>
27833
27834 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
27835
27836 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
27837
27838 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
27839
27840 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
27841
27842 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
27843
27844 2008-02-01 Kenichi Handa <handa@m17n.org>
27845
27846 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
27847 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
27848
27849 2008-02-01 Kenichi Handa <handa@m17n.org>
27850
27851 * coding.c (decode_coding_charset): Adjust for the change of
27852 Fdefine_coding_system_internal.
27853 (Fdefine_coding_system_internal): For a coding system of
27854 `charset' type, store a list of charset IDs in
27855 `charset_attr_charset_valids' element of coding attributes.
27856
27857 2008-02-01 Kenichi Handa <handa@m17n.org>
27858
27859 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
27860 (emacs_mule_char): New arg src. Delete arg `composition'.
27861 Change caller. Handle 2-byte and 3-byte charsets correctly.
27862 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
27863 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
27864 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
27865 (DECODE_EMACS_MULE_21_COMPOSITION):
27866 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
27867 sequence.
27868 (decode_coding_emacs_mule): Handle composition correctly. Rewind
27869 `src' and `consumed_chars' correctly before calling emacs_mule_char.
27870 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
27871 and alt&rule composition.
27872 (decode_coding_iso_2022): Handle composition correctly.
27873 (init_coding_once): Setup emacs_mule_bytes for private charsets.
27874
27875 * charset.c (Fdefine_charset_internal): Fix bug for the case of
27876 re-defining a charset. If the charset has :emacs-mule-id, setup
27877 emacs_mule_bytes.
27878 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
27879
27880 2008-02-01 Kenichi Handa <handa@m17n.org>
27881
27882 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
27883 (encode_coding_big5, encode_coding_charset): If coding requires safe
27884 encoding, produce a character specified by
27885 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
27886
27887 2008-02-01 Dave Love <fx@gnu.org>
27888
27889 * xterm.c (XSetIMValues): Declare.
27890
27891 * process.c: Conditionally include sys/wait.h, pty.h.
27892
27893 * print.c (print_object): Fix print format for 64-bit systems.
27894
27895 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
27896
27897 * buffer.c (emacs_strerror): Declare.
27898
27899 * fontset.c (Fclear_face_cache): Declare.
27900 (accumulate_font_info): Comment-out (unused).
27901 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
27902 variables.
27903
27904 * character.h (string_escape_byte8): Declare.
27905
27906 * charset.c (load_charset_map, load_charset_map_from_file):
27907 Remove unused vars.
27908 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
27909 (Fmap_charset_chars): Doc fix.
27910
27911 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
27912 (Fset_coding_system_priority, Fset_coding_system_priority)
27913 (Fdefine_coding_system_internal): Doc fix.
27914
27915 2008-02-01 Dave Love <fx@gnu.org>
27916
27917 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
27918
27919 2008-02-01 Kenichi Handa <handa@m17n.org>
27920
27921 * character.c (string_escape_byte8): Make multibyte string with
27922 correct size.
27923
27924 * charset.c (Fmake_char): Delete unnecessary code.
27925
27926 2008-02-01 Kenichi Handa <handa@m17n.org>
27927
27928 * xfns.c (x_encode_text): Allocate coding.destination here, and
27929 call encode_coding_object with dst_object Qnil.
27930
27931 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
27932 multibyte form correctly.
27933
27934 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
27935 against Vfont_encoding_alist.
27936
27937 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
27938 handling of charset list.
27939 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
27940 (decode_coding_object): Move point to coding->dst_pos before
27941 calling post-read-conversion function.
27942 (encode_coding_object): Give correct arguments to
27943 pre-write-conversion. Ignore the return value of
27944 pre-write-conversion function. Pay attention to the case that
27945 pre-write-conversion changes the current buffer. If dst_object is
27946 Qt, even if coding->src_bytes is zero, allocate at least one byte
27947 to coding->destination.
27948
27949 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
27950
27951 * charset.c (Fmake_char): Make it more backward compatible.
27952 (Fmap_charset_chars): Fix docstring.
27953
27954 2008-02-01 Dave Love <fx@gnu.org>
27955
27956 * coding.c: Doc fixes.
27957 (Fdefine_coding_system_alias): Use names, not symbols, in
27958 coding-system-alist.
27959
27960 2008-02-01 Kenichi Handa <handa@m17n.org>
27961
27962 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27963 of calling free_realized_face.
27964
27965 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
27966
27967 * charset.c (read_hex): Don't treat SPC as a comment starter.
27968 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27969 (Fdecode_char): Fix typo.
27970
27971 2008-02-01 Kenichi Handa <handa@m17n.org>
27972
27973 * charset.h (struct charset): New member `code_space_mask'.
27974
27975 * coding.c (coding_set_source): Delete the local variable beg_byte.
27976 (encode_coding_charset, Fdefine_coding_system_internal):
27977 Delete the local variable charset.
27978 (Fdefine_coding_system_internal):
27979 Setup attrs[coding_attr_charset_valids] correctly.
27980
27981 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27982 member to check if CODE is valid or not.
27983 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27984 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27985 is within the range of charset->min_code and carset->max_code.
27986
27987 2008-02-01 Dave Love <fx@gnu.org>
27988
27989 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27990
27991 * dispextern.h (generate_ascii_font): Fix return type.
27992
27993 * xfaces.c (generate_ascii_font): Fix arg declaration.
27994
27995 * coding.c (coding_inherit_eol_type)
27996 (Fset_terminal_coding_system_internal)
27997 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
27998
27999 2008-02-01 Kenichi Handa <handa@m17n.org>
28000
28001 * coding.c (decode_coding_charset, encode_coding_charset):
28002 Handle multiple charsets correctly.
28003
28004 2008-02-01 Kenichi Handa <handa@m17n.org>
28005
28006 * search.c (boyer_moore): Fix handling of multibyte character
28007 translation.
28008
28009 * xdisp.c (display_mode_element): When the variable `elt' is
28010 changed, update `this' and `lisp_string'.
28011
28012 2008-02-01 Kenichi Handa <handa@m17n.org>
28013
28014 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28015
28016 * callproc.c (Fcall_process): Be sure to give the current buffer
28017 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28018
28019 * charset.c (struct charset_map_entries): New struct.
28020 (load_charset_map): Rename from parse_charset_map. New args
28021 entries and n_entries. Change caller.
28022 (load_charset_map_from_file): Rename from load_charset_map.
28023 Change caller. New arg control_flag. Call load_charset_map at
28024 the tail.
28025 (load_charset_map_from_vector): New function.
28026 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28027 (encode_char): If the charset is compact, change a character index
28028 to a code point.
28029
28030 * coding.c (coding_alloc_by_making_gap): Check the case that the
28031 source and destination are the same correctly.
28032 (decode_coding_raw_text): Set coding->consumed_char and
28033 coding->consumed to 0.
28034 (produce_chars): If coding->chars_at_source is nonzero, update
28035 coding->consumed_char and coding->consumed before calling
28036 alloc_destination.
28037 (Fdefine_coding_system_alias): Register ALIAS in
28038 Vcoding_system_alist.
28039 (syms_of_coding): Define `no-conversion' coding system at the tail.
28040
28041 * fileio.c (Finsert_file_contents): Set coding_system instead of
28042 val. If the current buffer is multibyte, always call
28043 decode_coding_gap.
28044
28045 * xfaces.c (try_font_list): Give higher priority to fontset's
28046 family than face's family.
28047
28048 2008-02-01 Kenichi Handa <handa@m17n.org>
28049
28050 * callproc.c (Fcall_process): Be sure to give the current buffer
28051 to decode_coding_c_string.
28052
28053 * xfaces.c (try_font_list): Give a family specified in a fontset
28054 higher priority than a family specified in a face.
28055
28056 2008-02-01 Kenichi Handa <handa@m17n.org>
28057
28058 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28059 Fix arguments to insert_from_buffer.
28060
28061 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28062
28063 2008-02-01 Kenichi Handa <handa@m17n.org>
28064
28065 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28066 (decode_coding_gap): Set coding->dst_multibyte correctly.
28067
28068 2008-02-01 Kenichi Handa <handa@m17n.org>
28069
28070 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28071 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28072 (encode_coding_utf_16): Substitute coding->default_char for
28073 non-Unicode characters.
28074 (decode_coding): Don't call record_insert here.
28075 (setup_coding_system): Initialize `surrogate' of
28076 coding->spec.utf_16 to 0.
28077 (EMIT_ONE_BYTE): Fix for multibyte case.
28078
28079 * insdel.c (insert_from_gap): Call record_insert.
28080
28081 2008-02-01 Kenichi Handa <handa@m17n.org>
28082
28083 * casefiddle.c (casify_region): Fix multibyte case.
28084
28085 * character.c (c_string_width): Add return type `int'.
28086 (char_string_with_unification): Delete arg ADVANCED.
28087
28088 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28089 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28090 (CHAR_STRING_ADVANCE): Make it do-while statement.
28091
28092 * chartab.c (sub_char_table_set_range): Optimize for the case
28093 DEPTH == 3. Add workaround code for a GCC optimization bug.
28094
28095 * charset.c (parse_charset_map): Remove an unused variable.
28096
28097 * coding.c: Delete unused variables.
28098
28099 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28100 earlier. If inserted is zero and the coding system doesn't
28101 require flushing, don't call decode_coding_gap.
28102
28103 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28104
28105 2008-02-01 Kenichi Handa <handa@m17n.org>
28106
28107 The following changes are for using Unicode as an internal
28108 character model, and use UTF-8 format for buffer/string
28109 representation.
28110
28111 * .gdbinit (xchartable): Adjust for the change of char table structure.
28112 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28113
28114 * Makefile.in (obj): Add character.o and chartab.o.
28115 (lisp, shortlisp): Remove utf-8.elc.
28116 (*.o): For many files, change dependency on charset.h to
28117 character.h, and add dependency on character.h.
28118 (character.o, chartab.o): New targets.
28119
28120 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28121 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28122 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28123 of "charset.h".
28124
28125 * dired.c, filelock.c: Include "character.h".
28126
28127 * alloc.c: Include "character.h" instead of "charset.h".
28128 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28129 (syms_of_alloc): Remove defsubr for Smake_char_table.
28130
28131 * buffer.c: Include "character.h" instead of "charset.h", don't
28132 include "coding.h".
28133 (Fset_buffer_multibyte): Adjust for UTF-8.
28134
28135 * buffer.h: EXFUN Fbuffer_live_p.
28136
28137 * callproc.c: Include "character.h" instead of "charset.h".
28138 (Fcall_process): Big change for the new code-conversion APIs.
28139
28140 * casetab.c: Include "character.h" instead of "charset.h".
28141 (set_canon, set_identity, shuffle): Adjust for the new
28142 map_char_table spec.
28143 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28144 accessing the char table structure.
28145
28146 * chartab.c: New file that implements char table.
28147
28148 * category.c: Include "character.h".
28149 (copy_category_entry): New function.
28150 (copy_category_table): Call map_char_table and copy_category_entry.
28151 (Fmake_category_table): Initialize all top-level slots.
28152 (char_category_set): New function.
28153 (modify_lower_category_set): Delete.
28154 (Fmodify_category_entry): Call char_table_ref_and_range.
28155
28156 * category.h (CATEGORY_SET): Just call char_category_set.
28157
28158 * ccl.c: Include "character.h".
28159 (Qccl, Qcclp): New variables.
28160 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28161 it's less than 256.
28162 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28163 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28164 and DST type.
28165 (ccl_driver): Change types of argument, adjust code accordingly.
28166 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28167 ccl_driver.
28168 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28169
28170 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28171 New members src_multibyte, dst_multibyte, consumed, and produced.
28172 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28173 (CODING_SPEC_CCL_PROGRAM): New macro.
28174 (ccl_driver): Update prototype.
28175 (Qccl, Qcclp, Fccl_program_p): Extern them.
28176 (CHECK_CCL_PROGRAM): New macro.
28177
28178 * character.c, character.h, chartab.c: New files.
28179
28180 * charset.c: Mostly re-written. Move character and multibyte sequence
28181 handling codes to character.c.
28182
28183 * charset.h: Mostly re-written. Move character and multibyte sequence
28184 handling codes to character.h.
28185
28186 * coding.c, coding.h: Mostly re-written.
28187
28188 * composite.c: Include "character.h" instead of "charset.h".
28189 (CHAR_WIDTH): Move to character.h.
28190 (HASH_KEY, HASH_VALUE): Delete.
28191
28192 * composite.h (enum composition_method): Change order of enumeration
28193 symbols.
28194
28195 * data.c: Include "character.h" instead of "charset.h".
28196 (Faref): Call CHAR_TABLE_REF for a char table.
28197 (Faset): Call CHAR_TABLE_SET for a char table.
28198
28199 * dispextern.h (free_realized_face, check_face_attribytes)
28200 (generate_ascii_font): Extern them.
28201 (free_realized_multibyte_face): Delete extern.
28202
28203 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28204 table structure.
28205
28206 * editfns.c: Include "character.h" instead of "charset.h".
28207 (Fchar_to_string): Always call CHAR_STRING.
28208
28209 * emacs.c (main): Call init_charset_once, init_charset,
28210 syms_of_chartab, and syms_of_character.
28211
28212 * fileio.c: Include "character.h" instead of "charset.h".
28213 (Finsert_file_contents): Big change for the new code-conversion API.
28214 (choose_write_coding_system, Fwrite_region): Likewise.
28215 (build_annotations_2): Delete.
28216 (e_write): Big change for the new code-conversion API.
28217
28218 * fns.c: Include "character.h" instead of "charset.h".
28219 (copy_sub_char_table): Move to chartab.c.
28220 (Fcopy_sequence): Call copy_char_table for a char table.
28221 (concat): Delete codes calling count_multibyte.
28222 (string_char_to_byte, string_byte_to_char): Adjust for the new
28223 multibyte form.
28224 (internal_equal): Adjust for the change of char table structure.
28225 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28226 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28227 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28228 (char_table_translate, optimize_sub_char_table)
28229 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28230 chartab.c.
28231 (char_table_ref_and_index): Delete.
28232 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28233 (Fmd5): Call preferred_coding_system instead of accessing
28234 Vcoding_category_list. Adjust for the new code-conversion API.
28235 (syms_of_fns): Move defsubr for char table related functions to
28236 chartab.c.
28237
28238 * fontset.c: Mostly re-written.
28239
28240 * fontset.h (struct font_info): Change type of the member encoding_type.
28241 (enum FONT_SPEC_INDEX): New enum.
28242 (fontset_font_pattern, fs_load_font): Update prototype.
28243 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28244
28245 * indent.c: Include "character.h" instead of "charset.h".
28246 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28247
28248 * insdel.c: Include "character.h" instead of "charset.h".
28249 (copy_text): Don't refer to Vnonascii_translation_table.
28250 (insert_from_gap): New function.
28251
28252 * keyboard.c: Include "character.h" instead of "charset.h".
28253 (command_loop_1): Never call direct_output_forward_char before
28254 a non-ASCII character.
28255 (read_char): If Vkeyboard_translate_table is a char table, always
28256 translate a character.
28257
28258 * keymap.c: Include "character.h".
28259 (store_in_keymap): Handle the case that IDX is a cons.
28260 (Fdefine_key): Handle the case that KEY is a cons and the car part
28261 is also a cons (range).
28262 (push_key_description): Adjust for the new character code.
28263 (describe_vector): Call describe_char_table for a char table.
28264 (describe_char_table): New function.
28265
28266 * keymap.h (describe_char_table): Extern it.
28267
28268 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28269 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28270 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28271 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28272 Delete.
28273 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28274 structure.
28275 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28276 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28277 (CHARTAB_SIZE_BITS_3): New macros.
28278 (chartab_size): Extern it.
28279 (struct Lisp_Char_Table): Re-design.
28280 (struct Lisp_Sub_Char_Table): New structure.
28281 (HASH_KEY, HASH_VALUE): Move from fns.c.
28282 (CHARACTERBITS): Define as 22.
28283 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28284 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28285 (GC_SUB_CHAR_TABLE_P): New macro.
28286 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28287 (code_convert_string_norecord): Delete extern.
28288 (init_character_once, syms_of_character, init_charset)
28289 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28290
28291 * lread.c: Include "character.h".
28292 (read_multibyte): New arg NBYTES.
28293 (read_escape): Change the meaning of returned *BYTEREP.
28294 (to_multibyte): Delete.
28295 (read1): Adjust the handling of char table and string.
28296
28297 * print.c: Include "character.h" instead of "charset.h".
28298 (print_string): Convert 8-bit raw bytes to octal form by
28299 string_escape_byte8.
28300 (print_object): Adjust for the new multibyte form. Print 8-bit
28301 raw bytes always in octal form. Handle sub char table correctly.
28302
28303 * process.c: Include "character.h" instead of "charset.h".
28304 (read_process_output, send_process): Adjust for the new
28305 code-conversion API.
28306
28307 * puresize.h (BASE_PURESIZE): Increase.
28308
28309 * regex.c: Include "character.h" instead of "charset.h".
28310 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28311 (regex_compile): Accept a range whose starting and ending
28312 character have different leading bytes.
28313 (analyse_first): Adjust for the above change.
28314
28315 * search.c: Include "character.h" instead of "charset.h".
28316 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28317 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28318
28319 * syntax.c: Include "character.h" instead of "charset.h".
28320 (syntax_parent_lookup): Delete.
28321 (Fmodify_syntax_entry): Accept a cons as CHAR.
28322 (skip_chars): Adjust for the new multibyte form.
28323 (init_syntax_once): Call char_table_set_range instead of directly
28324 accessing the structure of a char table.
28325
28326 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28327 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28328 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28329 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28330
28331 * term.c: Include "buffer.h" and "character.h".
28332 (encode_terminal_code, write_glyphs): Adjust for the new
28333 code-conversion API.
28334 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28335
28336 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28337
28338 * xdisp.c: Include "character.h".
28339 (get_next_display_element): Adjust for the new multibyte form.
28340 (disp_char_vector): Adjust for the new char table structure.
28341 (decode_mode_spec_coding): Adjust for the new structure of
28342 coding system.
28343 (decode_mode_spec): Adjust for the new code-conversion API.
28344
28345 * xfaces.c: Include "character.h" instead of "charset.h".
28346 (load_face_font): Adjust for the change of choose_face_font and
28347 FS_LOAD_FONT.
28348 (generate_ascii_font): New function.
28349 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28350 (set_font_frame_param): Adjust for the change of choose_face_font.
28351 (free_realized_face): Make it public.
28352 (free_realized_faces_for_fontset): Rename from
28353 free_realized_multibyte_face. Free also faces realized for ASCII.
28354 (choose_face_font): Change arguments. Adjust for the change of
28355 fontset_font_pattern and FS_LOAD_FONT.
28356
28357 * xfns.c: Include "character.h".
28358 (x_encode_text): Adjust for the new code-conversion API.
28359
28360 * xselect.c: Don't include "charset.h".
28361 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28362
28363 * xterm.c: Include "character.h".
28364 (x_encode_char): New argument CHARSET. Change caller.
28365 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28366 Call ENCODE_CHAR instead of SPLIT_CHAR.
28367 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28368 CHAR_WIDTH instead of CHARSET_WIDTH.
28369 (XTread_socket): Adjust for the new code-conversion API.
28370 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28371 (x_load_font): Adjust for the change of struct font.
28372
28373 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28374
28375 * xfaces.c (face_at_buffer_position): Remove unused vars.
28376
28377 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28378
28379 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28380 Fix overflow checking.
28381
28382 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28383
28384 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28385 Cancel previous change.
28386
28387 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28388
28389 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28390 ccl->eight_bit_control. Fix check for buffer overflow.
28391 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28392 (ccl_driver): Initialize extra_bytes to 0.
28393
28394 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28395
28396 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28397 return it ORed with ctrl_modifier.
28398
28399 2008-01-29 Miles Bader <miles@gnu.org>
28400
28401 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28402
28403 2008-01-28 Jason Rumney <jasonr@gnu.org>
28404
28405 * w32.c (stat): Don't double check for networked drive.
28406
28407 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28408
28409 * window.c (run_window_configuration_change_hook): New function.
28410 Code extracted from set_window_buffer. Set the selected frame.
28411 (set_window_buffer): Use it.
28412 * window.h (run_window_configuration_change_hook): Declare.
28413 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28414
28415 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28416
28417 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28418
28419 * Makefile.in: Remove references to unused macros.
28420
28421 2008-01-26 Eli Zaretskii <eliz@gnu.org>
28422
28423 * w32.c (g_b_init_get_sid_sub_authority)
28424 (g_b_init_get_sid_sub_authority_count): New static variables.
28425 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28426 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28427 (init_user_info): Use them to retrieve uid and gid.
28428 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28429 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28430 st_uid and st_gid of the file.
28431
28432 2008-01-26 Jason Rumney <jasonr@gnu.org>
28433
28434 * w32.c (logon_network_drive): New function.
28435 (stat): Use it.
28436
28437 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
28438
28439 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28440 invisible text covered with an ellipsis.
28441
28442 2008-01-25 Richard Stallman <rms@gnu.org>
28443
28444 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28445 jump back to beginning. Move some other initializations after that.
28446 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28447 New variables.
28448 (syms_of_xdisp): Init them.
28449
28450 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28451
28452 * buffer.c (reset_buffer_local_variables):
28453 Implement `permanent-local-hook'.
28454 (Qpermanent_local_hook): New variable.
28455 (syms_of_buffer): Init and staticpro it.
28456
28457 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
28458
28459 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28460
28461 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28462
28463 * fns.c (Fclrhash): Return TABLE.
28464
28465 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28466
28467 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28468 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28469 is set even without positional changes.
28470 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28471
28472 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28473
28474 2008-01-23 Jason Rumney <jasonr@gnu.org>
28475
28476 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28477
28478 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28479 the unicode range available in MULE by locale-coding-system.
28480 Improve dbcs lead byte detection. Set event timestamp and modifiers
28481 earlier.
28482
28483 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28484
28485 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28486 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28487 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28488 when used on child processes.
28489
28490 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
28491
28492 * dbusbind.c (Fdbus_method_return_internal): Rename from
28493 Fdbus_method_return.
28494 (Fdbus_unregister_object): Move to dbus.el.
28495 (Fdbus_call_method, Fdbus_method_return_internal)
28496 (Fdbus_send_signal): Improve debug messages.
28497
28498 2008-01-20 Martin Rudalics <rudalics@gmx.at>
28499
28500 * undo.c (undo_inhibit_record_point): New variable.
28501 (syms_of_undo): Initialize it.
28502 (record_point): Don't record point when undo_inhibit_record_point
28503 is set.
28504
28505 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28506
28507 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28508
28509 * xdisp.c (Qauto_hscroll_mode): New var.
28510 (syms_of_xdisp): Initialize it.
28511 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28512 window's buffer.
28513 (hscroll_windows): Don't check automatic_hscrolling_p here.
28514
28515 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28516 vscroll if we're setting window-buffer to the value it already has.
28517
28518 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28519
28520 * m/intel386.h: Remove references to XENIX.
28521
28522 2008-01-17 Andreas Schwab <schwab@suse.de>
28523
28524 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28525 instead of HAVE_X86_64_LIB64_DIR.
28526 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28527
28528 2008-01-17 Glenn Morris <rgm@gnu.org>
28529
28530 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28531 to HAVE_X86_64_LIB64_DIR.
28532
28533 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28534
28535 * s/irix3-3.h:
28536 * s/irix4-0.h:
28537 * s/386-ix.h:
28538 * s/domain.h:
28539 * s/hpux9-x11r4.h:
28540 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28541
28542 * sysdep.c: Remove code containing references to symbols defined
28543 by unsupported systems.
28544
28545 2008-01-16 Glenn Morris <rgm@gnu.org>
28546
28547 * coding.c (select-safe-coding-system-function): Doc fix.
28548
28549 2008-01-15 Glenn Morris <rgm@gnu.org>
28550
28551 * config.in: Revert 2008-01-13 change: this is a generated file.
28552
28553 2008-01-13 Tom Tromey <tromey@redhat.com>
28554
28555 * lisp.h: Fix typo.
28556
28557 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28558
28559 * m/sequent-ptx.h:
28560 * m/sequent.h:
28561 * s/ptx.h:
28562 * s/ptx4-2.h:
28563 * s/ptx4.h: Remove files for systems no longer supported.
28564
28565 * callproc.c (Fcall_process): Fix previous change.
28566
28567 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28568
28569 * unexsunos4.c: Remove file, system not supported anymore.
28570
28571 * m/mips.h:
28572 * m/intel386.h:
28573 * callproc.c:
28574 * config.in:
28575 * ecrt0.c:
28576 * emacs.c:
28577 * fileio.c:
28578 * frame.c:
28579 * getpagesize.h:
28580 * keyboard.c:
28581 * lread.c:
28582 * process.c:
28583 * puresize.h:
28584 * sysdep.c:
28585 * systty.h:
28586 * syswait.h:
28587 * unexec.c:
28588 * xdisp.c:
28589 * alloc.c: Remove code containing references to symbols defined by
28590 unsupported systems.
28591
28592 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28593
28594 * coding.c (detect_coding_mask): Fix previous change.
28595
28596 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28597
28598 * coding.c (detect_coding_iso2022): New arg
28599 latin_extra_code_state. Allow Latin extra codes only
28600 when *latin_extra_code_state is nonzero.
28601 (detect_coding_mask): If there is a NULL byte, detect the encoding
28602 as UTF-16 or binary. If Latin extra codes exist, detect the
28603 encoding as ISO-2022 only when there's no other proper encoding is
28604 found.
28605
28606 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28607
28608 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28609 #ifdef MAC_OS.
28610
28611 2008-01-08 Richard Stallman <rms@gnu.org>
28612
28613 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28614
28615 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
28616
28617 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28618 menu bar in parentheses.
28619
28620 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28621
28622 * m/7300.h:
28623 * m/acorn.h:
28624 * m/alliant-2800.h:
28625 * m/alliant.h:
28626 * m/alliant1.h:
28627 * m/alliant4.h:
28628 * m/altos.h:
28629 * m/amdahl.h:
28630 * m/apollo.h:
28631 * m/att3b.h:
28632 * m/aviion-intel.h:
28633 * m/aviion.h:
28634 * m/celerity.h:
28635 * m/clipper.h:
28636 * m/cnvrgnt.h:
28637 * m/convex.h:
28638 * m/cydra5.h:
28639 * m/delta88k.h:
28640 * m/dpx2.h:
28641 * m/dual.h:
28642 * m/elxsi.h:
28643 * m/f301.h:
28644 * m/gould-np1.h:
28645 * m/gould.h:
28646 * m/i860.h:
28647 * m/ibmps2-aix.h:
28648 * m/ibmrt-aix.h:
28649 * m/ibmrt.h:
28650 * m/irist.h:
28651 * m/is386.h:
28652 * m/isi-ov.h:
28653 * m/mega68.h:
28654 * m/mg1.h:
28655 * m/news-r6.h:
28656 * m/news-risc.h:
28657 * m/news.h:
28658 * m/nh3000.h:
28659 * m/nh4000.h:
28660 * m/ns16000.h:
28661 * m/ns32000.h:
28662 * m/nu.h:
28663 * m/orion.h:
28664 * m/orion105.h:
28665 * m/paragon.h:
28666 * m/pfa50.h:
28667 * m/plexus.h:
28668 * m/pyramid.h:
28669 * m/pyrmips.h:
28670 * m/sh3el.h:
28671 * m/sps7.h:
28672 * m/sr2k.h:
28673 * m/stride.h:
28674 * m/sun1.h:
28675 * m/sun2.h:
28676 * m/sun3-68881.h:
28677 * m/sun3-fpa.h:
28678 * m/sun3-soft.h:
28679 * m/sun3.h:
28680 * m/sun386.h:
28681 * m/symmetry.h:
28682 * m/tad68k.h:
28683 * m/tahoe.h:
28684 * m/targon31.h:
28685 * m/tek4300.h:
28686 * m/tekxd88.h:
28687 * m/tower32.h:
28688 * m/tower32v3.h:
28689 * m/ustation.h:
28690 * m/wicat.h:
28691 * m/xps100.h:
28692 * s/cxux.h:
28693 * s/cxux7.h:
28694 * s/dgux.h:
28695 * s/dgux4.h:
28696 * s/dgux5-4-3.h:
28697 * s/dgux5-4r2.h:
28698 * s/esix.h:
28699 * s/esix5r4.h:
28700 * s/hiuxmpp.h:
28701 * s/hiuxwe2.h:
28702 * s/iris3-5.h:
28703 * s/iris3-6.h:
28704 * s/isc2-2.h:
28705 * s/isc3-0.h:
28706 * s/isc4-0.h:
28707 * s/isc4-1.h:
28708 * s/newsos5.h:
28709 * s/newsos6.h:
28710 * s/osf1.h:
28711 * s/osf5-0.h:
28712 * s/riscix1-1.h:
28713 * s/riscix12.h:
28714 * s/sco4.h:
28715 * s/sco5.h:
28716 * s/sunos4-0.h:
28717 * s/sunos4-1.h:
28718 * s/sunos413.h:
28719 * s/sunos4shr.h:
28720 * s/umax.h:
28721 * s/unipl5-2.h:
28722 * s/xenix.h:
28723 * cxux-crt0.s:
28724 * unexapollo.c:
28725 * unexconvex.c:
28726 * unexenix.c:
28727 * unexsni.c: Remove files for systems no longer supported.
28728
28729 * m/intel386.h: Remove references to unsupported systems.
28730
28731 * w32.c (get_emacs_configuration): Remove reference to i860.
28732
28733 * sysdep.c: Remove dead code.
28734
28735 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28736
28737 * s/rtu.h:
28738 * m/masscomp.h: Remove files. Platform is obsolete.
28739
28740 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
28741
28742 * dbusbind.c (Fdbus_method_return): New function.
28743 (xd_read_message): Add the serial number to the event.
28744 (Fdbus_register_method): Activate the function.
28745
28746 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28747
28748 * keyboard.c (read_key_sequence): Fix typo.
28749
28750 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
28751
28752 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28753 (xd_signature, xd_append_arg): Handle element type detection for
28754 empty arrays.
28755 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28756 SDATA () calls; this must be solved more general.
28757 (Fdbus_register_signal): Use SBYTES instead of strlen.
28758
28759 2008-01-03 Magnus Henoch <magnus@zemdatav>
28760
28761 * dbusbind.c (xd_append_arg): Use unsigned char instead of
28762 unsigned int for byte values (necessary for big-endian platform).
28763 (Fdbus_call_method): Handle the case of no returned arguments.
28764
28765 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
28766
28767 * dbusbind.c (xd_read_message): Use non-static input_event struct.
28768
28769 2007-12-31 Magnus Henoch <mange@freemail.hu>
28770
28771 * dbusbind.c (xd_signature): Signature of variant is just "v".
28772
28773 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
28774
28775 * dbusbind.c: Fix several errors and compiler warnings.
28776 Reported by Tom Tromey <tromey@redhat.com>.
28777 (XD_ERROR, XD_DEBUG_MESSAGE)
28778 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
28779 (xd_append_arg): Part for basic D-Bus types rewritten.
28780 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
28781 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
28782 appropriate.
28783 (xd_read_message): Return Qnil. Don't signal an error; it is not
28784 useful during event reading.
28785 (Fdbus_register_signal): Signal an error if the check for
28786 FUNCTIONP fails.
28787 (Fdbus_register_method): New function. The implementation is not
28788 complete, the call of the function signals an error therefore.
28789 (Fdbus_unregister_object): New function, renamed from
28790 Fdbus_unregister_signal. The initial check signals an error, if
28791 the object is not well formed.
28792
28793 2007-12-30 Richard Stallman <rms@gnu.org>
28794
28795 * textprop.c (get_char_property_and_overlay):
28796 Signal error if POSITION is out of range in a buffer.
28797
28798 2007-12-29 Martin Rudalics <rudalics@gmx.at>
28799
28800 * w32fns.c (Fx_create_frame): Make copy of frame parameters
28801 because the original parameters are in pure storage now.
28802
28803 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28804
28805 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
28806
28807 2007-12-22 Eli Zaretskii <eliz@gnu.org>
28808
28809 * callint.c (syms_of_callint) <command-history>: Add reference to
28810 history-length in the doc string.
28811
28812 2007-12-17 Jason Rumney <jasonr@gnu.org>
28813
28814 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
28815 before passing as wParam.
28816
28817 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
28818
28819 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
28820 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
28821 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
28822 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
28823 as number.
28824 (Fdbus_call_method): Fix docstring.
28825
28826 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
28827
28828 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
28829 New macros.
28830 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
28831 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
28832 Simplify.
28833 (xd_signature): New function.
28834 (xd_append_arg): Compute also signatures. Major rewrite.
28835 (xd_retrieve_arg): Make debug messages friendly.
28836 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
28837 Check for signatures of arguments.
28838
28839 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
28840
28841 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
28842 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
28843 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
28844 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
28845 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
28846 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
28847 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
28848 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
28849 (xd_retrieve_value): Remove. Functionality included in ...
28850 (xd_append_arg): New function.
28851 (Fdbus_call_method, Fdbus_send_signal): Apply it.
28852
28853 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
28854
28855 * dbusbind.c (top): Include <stdio.h>.
28856 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
28857 dbus_message_new_method_call and dbus_message_new_signal.
28858 (Fdbus_register_signal): Rename unique_name to uname.
28859 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
28860 non-existing unique name. Fix typos in matching rule. Return an
28861 object which is useful in Fdbus_unregister_signal.
28862 (Fdbus_unregister_signal): Reimplementation, in order to remove
28863 only the corresponding entry.
28864 (Vdbus_registered_functions_table): Change the order of entries.
28865 Apply these changes in xd_read_message and Fdbus_register_signal.
28866
28867 2007-12-16 Andreas Schwab <schwab@suse.de>
28868
28869 * fileio.c (Finsert_file_contents): Fix overflow check to not
28870 depend on undefined integer overflow.
28871
28872 2007-12-14 Jason Rumney <jasonr@gnu.org>
28873
28874 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
28875 for characters above 127.
28876
28877 2007-12-13 Jason Rumney <jasonr@gnu.org>
28878
28879 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
28880 before dereferencing array.
28881 (lookup_vk_code): Remove zero comparison.
28882
28883 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
28884
28885 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
28886 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
28887 Use `unsigned int' instead of `uint'.
28888 (xd_read_message, Fdbus_register_signal): Split expressions into
28889 multiple lines before operators "&&" and "||", according to the
28890 GNU Coding Standards.
28891
28892 2007-12-14 Eli Zaretskii <eliz@gnu.org>
28893
28894 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
28895
28896 2007-12-12 Juri Linkov <juri@jurta.org>
28897
28898 * buffer.c (Frename_buffer): In interactive spec replace
28899 `read-buffer' with `read-string' that uses `buffer-name-history'
28900 as history, and the current buffer's name as default.
28901
28902 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
28903
28904 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
28905 manipulating the backtrace manually.
28906 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
28907 (struct backtrace, backtrace_list): Remove.
28908 (command_loop_1): Remove dead var `no_direct'.
28909
28910 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
28911 preserve non-built-in buffer-local variables.
28912 (Fkill_all_local_variables): Don't re-create&re-set permanent
28913 buffer-local variables.
28914
28915 2007-12-09 Juri Linkov <juri@jurta.org>
28916
28917 * buffer.c (Frename_buffer): Change interactive spec from "s" to
28918 Lisp code that uses `read-buffer' with current buffer as default.
28919
28920 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
28921
28922 * dbusbind.c (xd_read_message): Generate an event for every
28923 registered handler. There might be several handlers registered
28924 for the same signal.
28925 (Fdbus_register_signal): Don't overwrite a registration for the
28926 same signal. Add a new registration if handlers are different.
28927 (Vdbus_registered_functions_table): Rework doc string.
28928
28929 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
28930
28931 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
28932 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
28933 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
28934 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
28935 Unify argument lists.
28936 (xd_read_message, Fdbus_register_signal): Reorder and extend event
28937 arguments and hash table keys. Use unique name for service.
28938 (Fdbus_unregister_signal): Remove checks.
28939 (Vdbus_registered_functions_table): Fix doc string.
28940
28941 2007-12-05 Magnus Henoch <mange@freemail.hu>
28942
28943 * process.c (make_process): Initialize pty_flag to 0.
28944
28945 2007-12-05 Jason Rumney <jasonr@gnu.org>
28946
28947 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
28948 specified XBMs.
28949
28950 2007-12-05 Richard Stallman <rms@gnu.org>
28951
28952 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
28953
28954 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28955
28956 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
28957 New variable.
28958 (mac_try_close_socket) [MAC_OSX]: New function.
28959 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28960 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28961
28962 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28963 Use mac_try_close_socket.
28964
28965 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28966
28967 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28968 reloc_base.
28969 (copy_dysymtab): Compute relocation base here.
28970 (rebase_reloc_address) [__ppc64__]: New function.
28971 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28972 changed.
28973
28974 2007-12-05 Jason Rumney <jasonr@gnu.org>
28975
28976 * w32proc.c (sys_spawnve): Quote args with wildcards.
28977
28978 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28979
28980 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28981 __objc_* sections.
28982 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28983
28984 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
28985
28986 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28987 Move check for Vdbus_registered_functions_table to
28988 xd_read_queued_messages.
28989 (xd_read_queued_messages): Protect xd_read_message calls by
28990 internal_condition_case_1.
28991
28992 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
28993
28994 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
28995 Qdbus_system_bus and Qdbus_session_bus, respectively.
28996 (Vdbus_intern_symbols): Remove.
28997 (Vdbus_registered_functions_table): New hash table.
28998 (XD_SYMBOL_INTERN_SYMBOL): Remove.
28999 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29000 Rewrite in order to manage registered functions by hash table
29001 Vdbus_registered_functions_table.
29002
29003 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29004
29005 * xterm.c: Update URL to Window Manager Specification in comment.
29006
29007 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
29008
29009 * config.in (HAVE_DBUS): Add.
29010
29011 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29012 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29013 (obj): Add $(DBUS_OBJ).
29014 (LIBES): Add $(DBUS_LIBS).
29015 (dbusbind.o): New target.
29016
29017 * dbusbind.c: New file.
29018
29019 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29020
29021 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29022 (Qdbus_event): New Lisp symbol.
29023 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29024 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
29025 (keys_of_keyboard): Define dbus-event.
29026
29027 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29028
29029 2007-12-01 Richard Stallman <rms@gnu.org>
29030
29031 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29032
29033 2007-11-30 Jason Rumney <jasonr@gnu.org>
29034
29035 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29036 (w32con_reset_terminal_modes): Clear screen buffer.
29037 (w32_face_attributes): Don't use color indexes that are out of range.
29038 Only reverse the default colors.
29039
29040 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29041 WINDOWSNT.
29042
29043 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29044
29045 2007-11-29 Jason Rumney <jasonr@gnu.org>
29046
29047 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29048 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29049 if the terminal colors are initialized.
29050 (unspecified_fg, unspecified_bg): Remove unused declarations.
29051
29052 2007-11-29 Andreas Schwab <schwab@suse.de>
29053
29054 * keyboard.c (apply_modifiers): Fix typo.
29055
29056 2007-11-29 Richard Stallman <rms@gnu.org>
29057
29058 * keymap.c (Fcurrent_local_map): Doc fix.
29059
29060 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29061
29062 * s/gnu-kfreebsd.h: New file.
29063
29064 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29065
29066 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29067 Don't cast redundantly.
29068
29069 * keyboard.c (KEY_TO_CHAR): New macro.
29070 (parse_modifiers, apply_modifiers): Accept integer arguments.
29071 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29072 for chars and symbol keys.
29073 After doing such remapping, apply function-key-map again.
29074
29075 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29076
29077 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29078 compiled anymore.
29079
29080 2007-11-26 Andreas Schwab <schwab@suse.de>
29081
29082 * process.c (list_processes_1): Fix indentation level of the
29083 command column.
29084
29085 2007-11-23 Andreas Schwab <schwab@suse.de>
29086
29087 * editfns.c (Fformat): Handle %c specially since it requires the
29088 argument to be of type int.
29089
29090 2007-11-23 Markus Triska <markus.triska@gmx.at>
29091
29092 * emacs.c (main): Call init_editfns before init_process, since
29093 init_process sets Vprocess_connection_type depending on OS release.
29094
29095 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29096
29097 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29098 (find_symbol_value): Use do_symval_forwarding.
29099
29100 * data.c (set_internal): Set the value in the `cons-cell' (for
29101 Buffer_Local_values) not only for frame-local variables.
29102
29103 2007-11-22 Andreas Schwab <schwab@suse.de>
29104
29105 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29106 values to sprintf.
29107 * keymap.c (Fsingle_key_description): Likewise.
29108 * print.c (print_object): Likewise.
29109
29110 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29111
29112 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29113 file for image is nil.
29114
29115 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29116
29117 * term.c: Include stdarg.h.
29118 (fatal): Implement using varargs.
29119 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29120
29121 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29122
29123 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29124 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29125 Update call to buffer_slot_type_mismatch.
29126 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29127 (buffer_slot_type_mismatch): Update.
29128 * buffer.c (buffer_local_types): Remove.
29129 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29130 (defvar_per_buffer): Set the type in the buffer_objfwd.
29131
29132 2007-11-21 Jason Rumney <jasonr@gnu.org>
29133
29134 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29135 CreateFileMapping returns NULL on failure.
29136
29137 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29138
29139 * search.c (Fset_match_data): Remove the `evaporate' feature.
29140 (unwind_set_match_data): Don't use the `evaporate' feature.
29141
29142 2007-11-21 Jason Rumney <jasonr@gnu.org>
29143
29144 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29145
29146 * w32console.c (w32con_write_glyphs): Remove unused variables.
29147
29148 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29149
29150 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29151
29152 * s/darwin.h (MULTI_KBOARD): Remove.
29153
29154 * macfns.c (x_create_tip_frame, Fx_create_frame)
29155 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29156
29157 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29158
29159 * buffer.c (Fbuffer_local_value): Remove redundant test.
29160 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29161 than in `current-buffer' to match the comment.
29162 Do the swap using swap_in_global_binding.
29163
29164 * data.c (store_symval_forwarding, set_internal):
29165 * eval.c (specbind): Remove dead code.
29166
29167 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29168 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29169 Since we do not want to see internal Lisp_*fwd objects here.
29170
29171 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29172
29173 * sysdep.c (init_system_name): Use getaddrinfo if available.
29174
29175 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29176 (x_scroll_bar_note_movement): start, end, with, height in struct
29177 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29178
29179 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29180
29181 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29182
29183 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29184
29185 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29186 This undoes Richard's change of 14-Oct-2002.
29187
29188 * alloc.c (allocate_other_vector):
29189 * lisp.h (allocate_other_vector): Remove.
29190
29191 * window.c (struct save_window_data): Move non-lisp data to the end
29192 and make it `int' rather than Lisp_Object.
29193 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29194 Done wrap/unwrap integer values.
29195 (Fset_window_configuration, compare_window_configurations):
29196 Update use of fields to their new types.
29197
29198 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29199 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29200 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29201 (SET_SCROLL_BAR_X_WINDOW): Remove.
29202 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29203 Access the new x_window field directly.
29204 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29205 Don't wrap/unwrap integers into Lisp_Objects.
29206 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29207 (x_scroll_bar_report_motion):
29208 Don't wrap/unwrap integers into Lisp_Objects.
29209 (x_term_init): Use SDATA.
29210 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29211 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29212 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29213 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29214 * xfns.c (x_set_background_color):
29215 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29216 Access the new x_window field directly.
29217
29218 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29219 (allocate_pseudovector): Make non-static.
29220
29221 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29222 (allocate_pseudovector): Declare.
29223 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29224
29225 2007-11-15 Andreas Schwab <schwab@suse.de>
29226
29227 * editfns.c (Fformat): Correctly format EMACS_INT values.
29228 Also take precision into account when formatting an integer.
29229
29230 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29231
29232 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29233
29234 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29235 (syms_of_keyboard): Defsubr it.
29236
29237 * data.c (swap_in_global_binding): Fix longstanding bug where
29238 store_symval_forwarding was not called with the right second argument,
29239 thus causing objfwd-ing from being dropped.
29240
29241 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29242
29243 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29244 (Fx_display_pixel_height, Fx_display_planes)
29245 (Fx_display_color_cells, Fx_server_max_request_size)
29246 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29247 (Fx_display_visual_class, Fx_display_save_under):
29248 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29249 (Fx_display_pixel_height, Fx_display_planes)
29250 (Fx_display_color_cells, Fx_server_max_request_size)
29251 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29252 (Fx_display_mm_height, Fx_display_mm_width)
29253 (Fx_display_backing_store, Fx_display_visual_class)
29254 (Fw32_select_font, Fx_display_save_under):
29255 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29256 (Fx_display_pixel_height, Fx_display_planes)
29257 (Fx_display_color_cells, Fx_server_max_request_size)
29258 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29259 (Fx_display_save_under): Fix typos in docstrings.
29260
29261 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29262
29263 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29264 corresponding to deleted entries; they are an implementation detail.
29265 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29266 Remove variables.
29267 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29268 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29269 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29270 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29271 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29272 (Fw32_define_rgb_color, Fw32_load_color_file)
29273 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29274 Fix typos in docstrings.
29275 (Fx_server_version): Reflow docstring.
29276 (Fw32_shell_execute): Doc fixes.
29277
29278 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
29279
29280 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29281 if w32_parse_hot_key returned nil.
29282
29283 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29284
29285 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29286
29287 2007-11-09 Jason Rumney <jasonr@gnu.org>
29288
29289 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29290
29291 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29292
29293 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29294 Remove W32_SCROLL_BAR_CLICK_EVENT.
29295
29296 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29297 Add MULTIMEDIA_KEY_EVENT.
29298
29299 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29300 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29301 (make_lispy_event) [WINDOWSNT]: Use it to translate
29302 MULTIMEDIA_KEY_EVENT.
29303
29304 * w32term.h (WM_APPCOMMAND): Define if not already.
29305 (GET_APPCOMMAND_LPARAM): Likewise.
29306
29307 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29308 WM_APPCOMMAND.
29309
29310 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29311 (syms_of_w32fns): Export and initialize it.
29312 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29313
29314 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
29315
29316 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29317 twice.
29318
29319 * xdisp.c (handle_face_prop): Fix last change.
29320
29321 2007-11-09 Richard Stallman <rms@gnu.org>
29322
29323 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29324 not just for after-strings and before-strings.
29325 Call face_for_overlay_string and pass the overlay to it.
29326 (handle_display_prop): Determine whether property came from an overlay.
29327 Pass OVERLAY arg to handle_single_display_spec.
29328 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29329 (load_overlay_strings): Fill in it->string_overlays.
29330 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29331
29332 * xfaces.c (face_for_overlay_string): Function renamed from
29333 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29334
29335 * dispextern.h (struct it): New elt string_overlays.
29336 New elt from_overlay, also in stack.
29337 Rearrange a few elements.
29338 (face_for_overlay_string): Decl renamed from
29339 face_at_buffer_position_no_overlays, and add argument.
29340
29341 2007-11-09 Richard Stallman <rms@gnu.org>
29342
29343 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29344 to get the base face for an overlay string.
29345
29346 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29347
29348 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29349
29350 * xdisp.c (handle_stop): Move some code out of loop.
29351
29352 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29353
29354 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29355 Fix conversion from Lisp object to ATSUFontID.
29356
29357 2007-11-09 Jason Rumney <jasonr@gnu.org>
29358
29359 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29360
29361 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29362
29363 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29364 Don't assume regions are aligned to page boundary.
29365 (print_load_command_name): Add LC_UUID if defined.
29366
29367 2007-11-09 Richard Stallman <rms@gnu.org>
29368
29369 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29370
29371 2007-11-07 Jason Rumney <jasonr@gnu.org>
29372
29373 * s/windows95.h: Remove.
29374
29375 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29376
29377 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29378 abort with a message on unhandled store_type values.
29379
29380 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29381
29382 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29383 Remove HAVE_X11R5 and HAVE_X11R4.
29384
29385 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29386
29387 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29388
29389 2007-11-01 Johan Bockgård <bojohan@gnu.org>
29390
29391 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29392 Don't set s->stippled_p here, since it has already been set by
29393 x_set_glyph_string_gc from x_draw_glyph_string.
29394
29395 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29396
29397 * sunfns.c: Remove file.
29398
29399 * m/sun386.h:
29400 * m/sun2.h:
29401 * m/sparc.h: Remove Sun windows code.
29402
29403 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29404
29405 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29406 (init_keyboard): Set current_kboard's window-system to nil.
29407 (tty_read_avail_input): Typo.
29408 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29409
29410 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29411
29412 * s/usg5-4.h:
29413 * s/usg5-3.h:
29414 * s/ptx.h:
29415 * m/is386.h:
29416 * m/ibmps2-aix.h:
29417 * Makefile.in: Remove all mentions of X10.
29418
29419 * dispnew.c (syms_of_display): Don't mention version 10.
29420
29421 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
29422
29423 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29424 ($(BLD)/abbrev.$(O)): Remove.
29425
29426 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29427
29428 Rewrite abbrev.c in Elisp.
29429 * image.c (Qcount): Don't declare as extern.
29430 (syms_of_image): Initialize and staticpro `Qcount'.
29431 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29432 * emacs.c (main): Don't call syms_of_abbrev.
29433 * Makefile.in (obj): Remove abbrev.o.
29434 (abbrev.o): Remove.
29435 * abbrev.c: Remove.
29436
29437 2007-10-26 Martin Rudalics <rudalics@gmx.at>
29438
29439 * window.c (window_min_size_2): Don't count header-line.
29440
29441 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29442
29443 * frame.h (struct frame): Move all bit fields after the first bit
29444 field to take advantage of the available space. Group all the
29445 chars together to reduce wasted space due to padding.
29446
29447 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
29448
29449 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29450
29451 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29452 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29453 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29454 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29455 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29456 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29457 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29458 (last_marked, mark_object_loop_halt): Make static.
29459
29460 * frame.c (syms_of_frame) <delete-frame-functions>:
29461 Fix typo in docstring.
29462
29463 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
29464
29465 * w32.c (init_environment): Fix tiny memory leak.
29466 (w32_get_resource): Remove unused variable `ok'.
29467
29468 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29469
29470 Make `window-system' into a keyboard-local variable (rather than
29471 frame-local as done originally by multi-tty).
29472
29473 * keyboard.h (struct kboard): Add Vwindow_system.
29474 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29475 (mark_kboards): Mark Vwindow_system.
29476
29477 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29478 (init_display): Don't set the obsolete `window-system' frame-param.
29479
29480 * xterm.c (x_term_init):
29481 * w32term.c (w32_create_terminal):
29482 * term.c (init_tty): Set Vwindow_system.
29483 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29484 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29485
29486 * xfns.c (Fx_create_frame, x_create_tip_frame):
29487 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29488 * macfns.c (Fx_create_frame):
29489 Don't set the obsolete `window-system' frame-param.
29490
29491 * frame.h (Qwindow_system): Remove.
29492 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29493 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29494
29495 2007-10-24 Richard Stallman <rms@gnu.org>
29496
29497 * frame.c (x_figure_window_size): For fullscreen case,
29498 set USPosition | PPosition without clobbering rest of window_prompting.
29499
29500 * keyboard.c (Fcurrent_idle_time): Doc fix.
29501
29502 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29503
29504 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29505
29506 * process.c (unwind_request_sigio): Only define if __ultrix__.
29507
29508 * callproc.c (child_setup): Remove spurious *.
29509
29510 * lisp.h (Fget_text_property): Declare.
29511 (have_menus_p): Declare it here rather than in sys-dep header files.
29512 * macterm.h (have_menus_p):
29513 * msdos.h (have_menus_p):
29514 * xterm.h (have_menus_p): Remove.
29515
29516 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29517 (Fmake_variable_frame_local): Just check the variable's const-ness
29518 rather than checking nil or t.
29519
29520 2007-10-22 Jason Rumney <jasonr@gnu.org>
29521
29522 * w32fns.c: Include math.h.
29523 (w32_abort): Declaration moved to nt/config.nt.
29524
29525 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29526 (abort): Redefinition moved to nt/config.nt.
29527
29528 * m/windowsnt.h: Remove.
29529
29530 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
29531
29532 * emacs.c (Fdump_emacs): Fix typo in message.
29533 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29534 <installation-directory>: Reflow docstring.
29535
29536 2007-10-22 Juri Linkov <juri@jurta.org>
29537
29538 * minibuf.c: Allow minibuffer default to be a list of default values.
29539 With empty input use the first element of this list as returned default.
29540 (string_to_object)
29541 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29542 (read_minibuf): If defalt is cons, set histstring to its car.
29543 (Fread_string): If default_value is cons, set val to its car.
29544 (Fread_buffer): If def is cons, use its car.
29545 (Fcompleting_read): If defalt is cons, set val to its car.
29546
29547 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
29548
29549 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29550
29551 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
29552
29553 * doc.c (Fdocumentation): Check for advice in all cases.
29554
29555 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
29556
29557 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29558
29559 2007-10-19 Richard Stallman <rms@gnu.org>
29560
29561 * doc.c (Fdocumentation): Check for and handle an advised function.
29562
29563 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
29564
29565 * process.c (Fset_process_filter): Doc fix.
29566
29567 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29568
29569 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29570 which caused key-translation-map to applied repeatedly (thus breaking
29571 double-mode).
29572
29573 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29574
29575 * xselect.c (x_own_selection, x_handle_selection_clear)
29576 (x_clear_frame_selections):
29577 * w32menu.c (list_of_panes, list_of_items):
29578 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29579 * textprop.c (validate_plist, interval_has_all_properties)
29580 (interval_has_some_properties, interval_has_some_properties_list)
29581 (add_properties, text_property_list):
29582 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29583 * minibuf.c (Fassoc_string):
29584 * macselect.c (x_own_selection, x_clear_frame_selections)
29585 (Fx_disown_selection_internal):
29586 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29587 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29588
29589 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
29590
29591 * process.c: Link to libs for calling res_init() if available.
29592 (Fmake_network_process): Call res_init() before getaddrinfo or
29593 gethostbyname, if possible.
29594
29595 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29596
29597 * lread.c (read1): Set pvectype for char_tables.
29598
29599 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29600 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29601 Add type checks.
29602 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29603
29604 * alloc.c (free_misc): Use XMISCTYPE.
29605 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29606
29607 2007-10-17 Glenn Morris <rgm@gnu.org>
29608
29609 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29610 (syms_of_minibuf): Add Qcompletion_ignore_case.
29611 * dired.c (Qcompletion_ignore_case): Change to external.
29612 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29613 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29614 (Fread_file_name): Use it rather than intern'ing.
29615
29616 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29617 (Fread_coding_system): Ignore case of user input.
29618
29619 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29620
29621 * xdisp.c (handle_display_prop): Ignore display specs after
29622 replacing one when string text is being replaced.
29623 (handle_single_display_spec): Pretend as if characters with display
29624 property haven't been consumed only when buffer text is being replaced.
29625
29626 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29627
29628 * xfns.c (Fx_create_frame, Fx_display_list):
29629 * window.c (window_fixed_size_p, enlarge_window)
29630 (shrink_window_lowest_first):
29631 * macterm.c (init_font_name_table):
29632 * macfns.c (Fx_create_frame, Fx_display_list):
29633 * lread.c (close_load_descs):
29634 * keyboard.c (read_char_x_menu_prompt):
29635 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29636 * coding.c (code_convert_region_unwind): Test the type of an object
29637 rather than just !NILP before extracting data from it.
29638
29639 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29640
29641 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29642 (XMISCANY): New macro.
29643 (XMISCTYPE): Use it.
29644 (struct Lisp_Misc_Any): New type.
29645 (union Lisp_Misc): Use it.
29646 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29647 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29648 (find_symbol_value, set_internal, default_value, Fset_default)
29649 (Fmake_variable_buffer_local, Fmake_local_variable)
29650 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29651 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29652 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29653 * alloc.c (allocate_buffer): Set the size and tag.
29654 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29655 Use XMISCANY.
29656 (die): Follow the GNU convention for error messages.
29657 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29658 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29659 tag any more.
29660 (set_buffer_internal_1):
29661 * frame.c (store_frame_param):
29662 * eval.c (specbind):
29663 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29664
29665 * doc.c (Fsnarf_documentation): Simplify.
29666
29667 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
29668
29669 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29670 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29671
29672 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29673
29674 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29675
29676 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
29677
29678 * eval.c (do_autoload): Don't save autoloads.
29679
29680 * data.c (Ffset): Save autoload of the function being set.
29681
29682 2007-10-07 John Paul Wallington <jpw@pobox.com>
29683
29684 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29685 parameter before setting up faces.
29686
29687 2007-10-13 Eli Zaretskii <eliz@gnu.org>
29688
29689 * ccl.c (Fregister_code_conversion_map):
29690 * keyboard.c (append_tool_bar_item): Reformat last change.
29691
29692 * lisp.h (eabs): Rename from `abs'. All callers changed.
29693
29694 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29695
29696 * buffer.c (add_overlay_mod_hooklist):
29697 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29698 * fontset.c (make_fontset):
29699 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29700 (append_tool_bar_item):
29701 * macmenu.c (grow_menu_items):
29702 * w32menu.c (grow_menu_items):
29703 * xmenu.c (grow_menu_items): Use larger_vector.
29704
29705 2007-10-13 Eli Zaretskii <eliz@gnu.org>
29706
29707 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29708 selected frame'' on MSDOS).
29709
29710 2007-10-12 Martin Rudalics <rudalics@gmx.at>
29711
29712 * frame.c (Qexplicit_name): New variable.
29713 (x_report_frame_params): Report it in parameter alist.
29714 (syms_of_frame): Intern and staticpro it.
29715
29716 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29717
29718 * macfns.c (x_create_tip_frame): Set terminal for frame.
29719
29720 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29721
29722 * frame.c (Qenvironment): Remove.
29723 (syms_of_frame) <Qenvironment>: Don't initialize.
29724 (Fdelete_frame): Don't treat the `environment' param specially.
29725 * frame.h (Qenvironment): Don't declare.
29726 * callproc.c (set_initial_environment): Don't set unused frame param.
29727
29728 * frame.c (Fframe_with_environment): Remove.
29729 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29730
29731 * lisp.h (Fframe_with_environment): Don't declare.
29732
29733 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
29734
29735 * indent.c (indent_tabs_mode, last_known_column)
29736 (last_known_column_modified): Make static.
29737 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29738
29739 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29740
29741 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29742
29743 2007-10-09 Jason Rumney <jasonr@gnu.org>
29744
29745 * w32term.c (x_set_window_size): Disable code that attempts to tell
29746 Lisp code about a size change before it actually happens.
29747
29748 2007-10-09 Richard Stallman <rms@gnu.org>
29749
29750 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29751 return HANDLED_RETURN.
29752
29753 2007-10-08 Martin Rudalics <rudalics@gmx.at>
29754
29755 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29756 when there's an unread command event.
29757
29758 * frame.c (focus_follows_mouse): Move here from frame.el to allow
29759 window autoselection act appropriately when leaving selected frame.
29760 (syms_of_frame): Initialize focus_follows_mouse.
29761 * frame.h (focus_follows_mouse): Extern it.
29762 * macterm.c (XTread_socket): When focus_follows_mouse is nil
29763 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
29764 * msdos.c (dos_rawgetc): Likewise.
29765 * w32term.c (w32_read_socket): Likewise.
29766 * xterm.c (handle_one_xevent): Likewise.
29767 * xdisp.c (syms_of_xdisp): In doc-string of
29768 mouse-autoselect-window mention focus-follows-mouse.
29769
29770 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29771
29772 * macterm.c (mac_load_query_font): Fix missing return value.
29773 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
29774 Add BLOCK_INPUT.
29775
29776 2007-10-08 Richard Stallman <rms@gnu.org>
29777
29778 * xdisp.c (get_window_cursor_type): Implement documented behavior
29779 for cursor-in-non-selected-windows = t.
29780
29781 2007-10-08 Jason Rumney <jasonr@gnu.org>
29782
29783 * w32.c (w32_get_resource): Always close registry keys.
29784
29785 2007-10-08 Jason Rumney <jasonr@gnu.org>
29786
29787 * makefile.w32-in (LIBS): Add COMCTL32.
29788
29789 * w32fns.c (globals_of_w32fns): Init common controls.
29790
29791 2007-10-08 Richard Stallman <rms@gnu.org>
29792
29793 * image.c (our_memory_buffer): Rename from omfib_buffer.
29794
29795 2007-10-08 Richard Stallman <rms@gnu.org>
29796
29797 * buffer.c (Foverlays_at): Doc fix.
29798
29799 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
29800
29801 * fns.c (Fplist_put): Preserve uneven tail data.
29802
29803 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
29804
29805 * termhooks.h (enum event_kind): Remove trailing comma.
29806
29807 * frame.h (enum): Remove trailing comma.
29808
29809 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
29810
29811 * w32proc.c (delete_child): Don't terminate threads of zombies.
29812
29813 2007-10-08 Martin Rudalics <rudalics@gmx.at>
29814
29815 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
29816
29817 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
29818 last-repeatable-command.
29819 (init_kboard): Initialize Vlast_repeatable_command.
29820 (command_loop_1): Set it to real_this_command unless that was
29821 bound to an input event.
29822 (mark_kboards): Mark it.
29823
29824 2007-10-08 Richard Stallman <rms@gnu.org>
29825
29826 * eval.c (condition-case): Doc fix.
29827
29828 2007-10-08 Masatake YAMATO <jet@gyve.org>
29829
29830 * xfaces.c (tty_supports_face_attributes_p): Fix code
29831 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
29832 was copied and not edited.
29833
29834 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
29835
29836 Add new `input-decode-map' keymap and use it for terminal
29837 escape sequences.
29838 * keyboard.h (struct kboard): Add Vinput_decode_map.
29839 Remove Vlocal_key_translation_map.
29840 * keyboard.c (read_key_sequence): Add support for input-decode-map.
29841 (init_kboard): Init input-decode-map.
29842 Replace local-key-translation-map back with key-translation-map.
29843 (syms_of_keyboard): Declare input-decode-map.
29844 Remove local-key-translation-map. Update docstrings.
29845 (mark_kboards): Mark Vinput_decode_map.
29846 Don't mark Vlocal_key_translation_map.
29847 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
29848 Replace local-key-translation-map back with key-translation-map.
29849 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
29850 Bind in input-decode-map rather than function-key-map.
29851
29852 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
29853 This was made redundant by the previous introduction of XSETPVECTYPE.
29854
29855 2007-10-09 Richard Stallman <rms@gnu.org>
29856
29857 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
29858
29859 2007-09-29 Richard Stallman <rms@gnu.org>
29860
29861 * eval.c (internal_condition_case_2, internal_condition_case_1)
29862 (internal_condition_case): Reenable abort if x_catching_errors ()
29863 to see if that really happens and why.
29864
29865 2007-10-06 Andreas Schwab <schwab@suse.de>
29866
29867 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
29868
29869 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
29870
29871 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
29872
29873 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
29874
29875 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
29876
29877 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
29878
29879 * window.h (struct window):
29880 * window.c (struct save_window_data, struct saved_window):
29881 * termhooks.h (struct terminal):
29882 * process.h (struct Lisp_Process):
29883 * frame.h (struct frame):
29884 * buffer.h (struct buffer):
29885 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
29886 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
29887 The size field of (pseudo)vectors is now unsigned.
29888 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
29889
29890 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
29891 Turn `count' into an integer.
29892
29893 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
29894 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
29895 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
29896 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
29897 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
29898
29899 * alloc.c (allocate_pseudovector): New fun.
29900 (ALLOCATE_PSEUDOVECTOR): New macro.
29901 (allocate_window, allocate_terminal, allocate_frame)
29902 (allocate_process): Use it.
29903 (mark_vectorlike): New function.
29904 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
29905 (mark_terminals): Use it.
29906 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
29907 (Fmake_byte_code): Use XSETPVECTYPE.
29908
29909 * frame.c (Fframe_parameters): Minor simplification.
29910
29911 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
29912
29913 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
29914
29915 * buffer.c (Fget_buffer_create, init_buffer_once):
29916 * lread.c (defsubr):
29917 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
29918
29919 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
29920 defined differently in the m/*.h files.
29921 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
29922 (XSETPVECTYPE): New macro.
29923 (XSETPSEUDOVECTOR): Use it.
29924
29925 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
29926 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
29927
29928 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
29929 * lread.c (defvar_per_buffer):
29930 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
29931
29932 * window.c (candidate_window_p): Only consider as visible frames that
29933 are on the same terminal.
29934
29935 * m/ibms390x.h (MARKBIT): Remove unused macro.
29936
29937 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
29938
29939 * lread.c (Fload): Fix typo in docstring.
29940
29941 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
29942
29943 * floatfns.c (Fexpt): Manually check for overflows, so that a power
29944 of a non-zero value can't yield zero.
29945
29946 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
29947
29948 * term.c (term_clear_mouse_face, term_mouse_highlight)
29949 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
29950
29951 * print.c (safe_debug_print): Use XHASH.
29952
29953 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
29954 Lisp elements such as tags.
29955 (XHASH): New macro.
29956 (EQ): Use it.
29957 (SREF, SSET, STRING_COPYIN): Use SDATA.
29958 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29959
29960 * alloc.c (mark_terminal): Remove left-over declaration.
29961 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29962 (allocate_vectorlike): Remove type argument. Adjust callers.
29963 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29964 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29965
29966 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29967 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29968 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29969 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29970 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29971 Use them.
29972
29973 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29974 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29975 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29976
29977 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29978
29979 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29980 loaded by default.
29981
29982 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29983
29984 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29985 on this tty.
29986 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29987
29988 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29989 Update all users.
29990 (handle_one_term_event): Use Gpm_DrawPointer.
29991 (Fgpm_mouse_start): Rename from Fterm_open_connection.
29992 Signal errors instead of returning nil. Always return nil.
29993 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
29994 Make it a noop if gpm-mouse was not activated.
29995 (syms_of_term): Update names.
29996
29997 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
29998
29999 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30000 (init_sys_modes): Check that gpm_tty is the current tty.
30001
30002 * alloc.c (allocate_terminal): Set the vector size to only count the
30003 lisp fields. Initialize those to nil.
30004 (mark_object): Don't treat terminals specially.
30005 (mark_terminal): Remove.
30006 (mark_terminals): Use mark_object instead.
30007
30008 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30009 the GC to the beginning.
30010
30011 * indent.h:
30012 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30013
30014 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30015
30016 2007-09-25 Jason Rumney <jasonr@gnu.org>
30017
30018 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30019
30020 * w32console.c (create_w32cons_output): Remove.
30021
30022 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30023
30024 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30025 (reset_sys_modes): Use reset_terminal_modes_hook.
30026
30027 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30028
30029 * eval.c (do_autoload): Don't output any message.
30030
30031 2007-09-24 Juri Linkov <juri@jurta.org>
30032
30033 * emacs.c (standard_args): Change priority of "--no-splash"
30034 from 40 to 3. Add "--no-desktop" with the same priority.
30035
30036 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30037
30038 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30039 and optimize the case where they are all 1.
30040
30041 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
30042
30043 * lisp.h (abs): Define if not defined.
30044 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30045 Don't define `abs', since it's defined in lisp.h.
30046
30047 2007-09-22 Eli Zaretskii <eliz@gnu.org>
30048
30049 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30050 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30051 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30052 (init_tty): Use DEV_TTY instead of "/dev/tty".
30053 [WINDOWSNT]: No need to protect from NAME arg being null.
30054
30055 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30056
30057 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30058 up the tty state.
30059
30060 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30061
30062 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30063 (gpm_tty): Change its type.
30064 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30065 (gpm_tty): Change its type and initialize it.
30066 (Fterm_open_connection): Check the frame is indeed a tty.
30067 Use the new gpm_tty.
30068 (Fterm_close_connection): Use the new gpm_tty.
30069 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30070 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30071
30072 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
30073
30074 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30075 underline_color, to draw strike-through.
30076
30077 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30078
30079 * lisp.h (allocate_terminal): Declare.
30080
30081 * window.c (candidate_window_p): Consider frames that are being placed
30082 by the user as somewhere between visible and iconified.
30083 (window_loop): Prefer windows on the current frame.
30084 (Fselect_window): Move the use of select-frame to the beginning so we
30085 can just delegate all the work (it'll call us back anyway).
30086
30087 * frame.c (Qdisplay_environment_variable):
30088 * frame.h (Qdisplay_environment_variable): Delete.
30089
30090 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30091 of the first arg, since that value may be a union.
30092
30093 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30094 parameter rather than Qdisplay_environment_variable. If all else
30095 fails, look for DISPLAY in initial-environment.
30096
30097 2007-09-21 Glenn Morris <rgm@gnu.org>
30098
30099 * Makefile.in (emacstool): Remove target.
30100 (lisp, shortlisp): Remove termdev.elc.
30101
30102 2007-09-21 Markus Triska <markus.triska@gmx.at>
30103
30104 * xterm.c (x_delete_display): Compile session management conditionally.
30105
30106 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30107
30108 * callproc.c (getenv_internal_1): New function.
30109 (getenv_internal): Use it.
30110 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30111
30112 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30113 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30114 (Fset_terminal_parameter): Work with dead terminals as well.
30115 (Fmodify_terminal_parameters): Remove.
30116
30117 * terminal.c (get_terminal): Handle terminals.
30118 Make sure the terminal returned is live.
30119 (create_terminal): Use allocate_terminal.
30120 (mark_terminals): Move to alloc.c.
30121 (delete_terminal): Use terminal->name as liveness status.
30122 NULL out fields after freeing their contents.
30123 Don't deallocate the object.
30124 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30125 rather than an int.
30126 (Fterminal_live_p): Accept non-integer arguments.
30127 (Fterminal_list): Return terminal objects rather than an ints.
30128
30129 * alloc.c (enum mem_type): New member for `terminal' objects.
30130 (allocate_terminal): New function.
30131 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30132 Handle terminals.
30133 (mark_terminal): New fun.
30134 (mark_terminals): Move from terminal.c.
30135
30136 * term.c (get_tty_terminal): Don't treat output_initial specially.
30137 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30138 (delete_tty): Use terminal->name as liveness status.
30139
30140 * termhooks.h (struct terminal): Make it into a pseudovector.
30141 Remove `deleted' replaced by checking `name's nullness.
30142
30143 * print.c (print_object): Handle terminals.
30144
30145 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30146 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30147
30148 * frame.c (make_terminal_frame):
30149 * keyboard.c (tty_read_avail_input):
30150 * w32term.c (x_delete_terminal):
30151 * xfns.c (Fx_create_frame, x_create_tip_frame):
30152 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30153
30154 2007-09-20 Glenn Morris <rgm@gnu.org>
30155
30156 * process.c (Fmake_network_process): Doc fix.
30157
30158 2007-09-19 Jason Rumney <jasonr@gnu.org>
30159
30160 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30161
30162 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30163
30164 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30165 Fix a C warning regarding variable constness.
30166
30167 * xterm.c (handle_one_xevent): Fix a C warning.
30168
30169 2007-09-18 Jason Rumney <jasonr@gnu.org>
30170
30171 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30172
30173 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30174
30175 * gtkutil.c (gdpy_def): New variable.
30176 (xg_initialize): Initialize gdpy_def.
30177 (xg_display_close): If no other display exists, set gdpy_def to a
30178 new connection.
30179
30180 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30181
30182 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30183 when we have no file name for the icon.
30184 (xg_tool_bar_expose_callback): Remove.
30185 (xg_create_tool_bar): Don't connect expose signal to
30186 xg_tool_bar_expose_callback.
30187 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30188
30189 2007-09-16 Andreas Schwab <schwab@suse.de>
30190
30191 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30192 values instead of zapping them.
30193
30194 2007-09-14 Glenn Morris <rgm@gnu.org>
30195
30196 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30197 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30198 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30199 scope and rename to omfib_buffer for clarity.
30200 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30201
30202 2007-09-14 Kenichi Handa <handa@m17n.org>
30203
30204 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30205
30206 2007-09-13 Jason Rumney <jasonr@gnu.org>
30207
30208 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30209
30210 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30211
30212 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30213 (mac_term_init): Call here instead, passing rif.
30214
30215 2007-09-13 Glenn Morris <rgm@gnu.org>
30216
30217 * s/hpux.h: No longer define `static' as nothing.
30218
30219 2007-09-13 Johan Bockgård <bojohan@gnu.org>
30220
30221 * callint.c (Fcall_interactively): Remove unused var `fun'.
30222
30223 2007-09-12 Romain Francoise <romain@orebokech.com>
30224
30225 * window.c (prefer_window_split_horizontally, display_buffer):
30226 Revert 2007-09-08 change.
30227
30228 2007-09-12 Glenn Morris <rgm@gnu.org>
30229
30230 * alloca.c: Remove file.
30231 * Makefile.in (alloca): Do not undef.
30232 (allocaobj, alloca.o): Remove.
30233 (otherobj): Remove allocaobj.
30234 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30235 * regex.c (C_ALLOCA): Remove all references and code that was only
30236 used when this was defined.
30237 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30238 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30239 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30240
30241 * Makefile.in (SOURCES, unlock, relock): Delete.
30242
30243 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30244 (menu_grab_callback): All uses changed.
30245
30246 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30247 (x_reply_selection_request): All uses changed.
30248
30249 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30250
30251 * lread.c (load_warn_old_style_backquotes): Change message to look
30252 better when it appears in the middle of byte-compiler messages.
30253
30254 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30255
30256 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30257
30258 * xterm.c (x_create_terminal): Add comment.
30259
30260 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30261
30262 2007-09-10 Richard Stallman <rms@gnu.org>
30263
30264 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30265
30266 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30267
30268 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30269 (DEFUN): Document `intspec', use it instead of `prompt'.
30270
30271 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30272
30273 * data.c (Finteractive_form): If the interactive specification starts
30274 with a `(', use it as a Lisp form.
30275
30276 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30277 name and file modes.
30278
30279 * callint.c (Fcall_interactively): Comment fixes.
30280
30281 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30282
30283 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30284 and compiled functions.
30285
30286 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30287
30288 * window.c (prefer_window_split_horizontally): New variable.
30289 (display_buffer): Consider splitting window horizontally depending
30290 on prefer_window_split_horizontally.
30291
30292 2007-09-08 Eli Zaretskii <eliz@gnu.org>
30293
30294 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30295
30296 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30297
30298 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30299
30300 * frame.c (x_set_frame_parameters): Check number is positive before
30301 using XFASTINT.
30302
30303 * window.c (freeze_window_start): Don't presume selected_window holds
30304 a window object.
30305 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30306
30307 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30308
30309 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30310
30311 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30312
30313 * window.c (Vsplit_window_preferred_function): New var.
30314 (Fdisplay_buffer): Use it.
30315 (syms_of_window): Export, and initialize it.
30316
30317 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30318
30319 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30320
30321 2007-09-06 Glenn Morris <rgm@gnu.org>
30322
30323 * gtkutil.c (menu_grab_callback) <cnt>:
30324 * xselect.c (x_reply_selection_request) <cnt>: Move static
30325 variable to file scope.
30326
30327 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30328
30329 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30330 consistent values of selected_frame and selected_window.
30331
30332 2007-09-04 Jason Rumney <jasonr@gnu.org>
30333
30334 * w32console.c (initialize_w32_display): Zero unused hooks.
30335
30336 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30337
30338 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30339 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30340
30341 2007-09-04 Jason Rumney <jasonr@gnu.org>
30342
30343 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30344 in w32console.c. Set up input. Remove XXX comments that have been
30345 confirmed as correct.
30346
30347 * s/ms-w32.h (MULTI_KBOARD): Define.
30348
30349 * w32console.c (one_and_only_w32cons): Remove.
30350 (initialize_w32_display): Take terminal argument.
30351
30352 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30353 initialize_w32_display.
30354 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30355
30356 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30357
30358 * keyboard.c (discard_mouse_events): Discard it.
30359 (make_lispy_event): Translate it to a lisp event.
30360 (lispy_wheel_names): Add wheel-left and right events.
30361 (syms_of_keyboard): Enlarge wheel_syms.
30362
30363 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30364 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30365
30366 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30367
30368 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30369 from WM_MOUSEHWHEEL.
30370 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30371
30372 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30373 terminal.
30374
30375 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30376 keyboard for the terminal.
30377
30378 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30379
30380 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30381 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30382 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30383 and resume-tty-function to resume-tty-hook.
30384 (Fsuspend_tty, Fresume_tty): Use new names.
30385
30386 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30387
30388 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30389 if it starts with "n:".
30390
30391 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30392
30393 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30394
30395 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30396
30397 * frame.h:
30398 * frame.c (Qterm_environment_variable): Remove.
30399 (syms_of_frame): Don't init and staticpro it.
30400
30401 * callproc.c (getenv_internal): Remove special case for $TERM.
30402
30403 * callproc.c (Vinitial_environment): New variable.
30404 (set_initial_environment): Initialize it.
30405 (syms_of_callproc): Declare it.
30406 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30407 TERM under which a process runs is never related to the TERM in which
30408 Emacs is running.
30409
30410 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30411
30412 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30413 * s/darwin.h: ... do it here.
30414
30415 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30416
30417 * lisp.h (set_initial_environment): Rename from set_global_environment.
30418
30419 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30420 removed by mistake on the multi-tty branch.
30421
30422 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30423 (Fmodify_frame_parameters): Return a value.
30424
30425 * image.c (png_load): Comment-out var only used in commented-out code.
30426
30427 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30428 before passing it to mark_object.
30429
30430 * xfaces.c (internal_resolve_face_name): Return a value.
30431 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30432
30433 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30434 (x_icon): Comment-out var only used in commented-out code.
30435
30436 2007-08-29 Romain Francoise <romain@orebokech.com>
30437
30438 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30439 QUIT hasn't been provided.
30440
30441 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30442
30443 * callproc.c (child_setup, getenv_internal): Use the
30444 display-environment-variable and term-environment-variable frame params.
30445 (set_initial_environment): Initialise Vprocess_environment.
30446
30447 * config.in: Disable multi-keyboard support on a mac.
30448
30449 * frame.c (Qterm_environment_variable)
30450 (Qdisplay_environment_variable): New variables.
30451 (syms_of_frame): Intern and staticpro them.
30452 (Fmake_terminal_frame): Disable output method test.
30453
30454 * frame.h: Declare them here.
30455
30456 * macfns.c (x_set_mouse_color): Get rif from the frame.
30457 (x_set_tool_bar_lines): Don't use updating_frame.
30458 (mac_window): Add 2 new parameters for consistency with other systems.
30459 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30460 frame parameters following what is done in X11 and w32. Don't use
30461 FRAME_MAC_DISPLAY_INFO.
30462 (Fx_open_connection, start_hourglass): Remove window-system check.
30463 (x_create_tip_frame): Get the keyboard from the terminal.
30464
30465 * macmenu.c: Reorder includes.
30466 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30467
30468 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30469 terminal parameter.
30470 (x_clear_frame): Add a frame parameter.
30471 (note_mouse_movement): Get rif from the frame.
30472 (mac_term_init): Initialize the terminal.
30473 (mac_initialize): Make static and move terminal initialization ...
30474 (mac_create_terminal): ... to this new function.
30475
30476 * macterm.h (struct mac_display_info): Add terminal.
30477 (mac_initialize): Delete declaration.
30478
30479 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30480
30481 * sysdep.c: Comment out text after #endif.
30482
30483 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30484 is defined. Better initialize ttys in windows. Use terminal
30485 specific mouse_position_hook.
30486
30487 * termhooks.h (union display_info): Add mac_display_info.
30488
30489 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30490 Set the default minibuffer frame, window_system and the rest of the
30491 frame parameters following what is done in X11.
30492
30493 * w32term.c (w32_initialize): Make static.
30494
30495 * xselect.c (x_handle_selection_clear): Only access
30496 terminal->kboard when MULTI_KBOARD is defined.
30497
30498 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30499 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30500
30501 2007-08-29 Jason Rumney <jasonr@gnu.org>
30502
30503 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30504 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30505
30506 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30507 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30508
30509 * keyboard.c (restore_kboard_configuration): Only define when
30510 MULTI_KBOARD defined.
30511
30512 * makefile.w32-in: Update dependancies from Makefile.in.
30513 (OBJ1): Add terminal.$(O)
30514
30515 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30516 Don't define function body.
30517 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30518
30519 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30520
30521 * w32.c (request_sigio, unrequest_sigio): Remove.
30522
30523 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30524 (w32con_clear_frame, w32con_clear_end_of_line)
30525 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30526 (w32con_delete_glyphs, w32con_set_terminal_window)
30527 (scroll_line, w32_sys_ring_bell): Add frame arg.
30528 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30529 Add terminal arg.
30530 (PICK_FRAME): Remove.
30531 (w32con_write_glyphs): Use frame specific terminal coding.
30532 (one_and_only_w32cons): New global variable.
30533 (initialize_w32_display): Use it for storing hooks.
30534 (create_w32cons_output): New function.
30535
30536 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30537 arg a frame.
30538
30539 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30540 Set window_system.
30541 (x_set_tool_bar_lines): Don't use updating_frame.
30542 (Fx_create_frame): Set terminal and ref count.
30543 (Fx_open_connection): Remove window-system check.
30544
30545 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30546
30547 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30548 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30549 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30550 Add frame arg.
30551 (x_delete_terminal, w32_create_terminal): New functions.
30552 (w32_term_init): Create a terminal.
30553 (w32_initialize): Move terminal specific initialization to
30554 w32_create_terminal.
30555
30556 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30557 (w32_clear_rect, w32_clear_area): Use background from frame.
30558 (w32_display_info): Add terminal.
30559 (w32_sys_ring_bell, x_delete_display): Declare here.
30560
30561 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30562
30563 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30564
30565 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30566
30567 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30568 Fix get_named_tty calls for the controlling tty.
30569
30570 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30571
30572 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
30573
30574 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30575
30576 * term.c (tty_insert_glyphs): Add missing first parameter.
30577
30578 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30579
30580 * buffer.c (Fbuffer_list, Fbury_buffer):
30581 Take frame->buried_buffer_list into account.
30582
30583 * cm.c (current_tty): New variable, for cmputc().
30584 (cmputc): Use it.
30585 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30586 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30587 (cmgoto): Add tty parameter. Pass it on to calccost().
30588 Use emacs_tputs() instead of tputs().
30589
30590 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30591 tputs().
30592 (current_tty): New variable, for cmputc().
30593 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30594
30595 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30596 (internal_condition_case, internal_condition_case_1)
30597 (internal_condition_case_2): Don't abort when x_catching_errors.
30598
30599 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30600 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30601 prevent crashes caused by bogus longjmps in read_char.
30602
30603 * keymap.h (Fset_keymap_parent): Add EXFUN.
30604
30605 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30606 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30607 Remove redundant definition.
30608
30609 * macfns.c (x_set_mouse_color, x_make_gc):
30610 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30611
30612 * w32term.c (x_free_frame_resources):
30613 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30614 (w32_initialize): Use the accessor macros for terminal characteristics.
30615
30616 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30617 Use the accessor macros for terminal characteristics.
30618 * msdos.c (internal_terminal_init): Use the accessor macros for
30619 terminal characteristics.
30620 (ScreenVisualBell, internal_terminal_init):
30621 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30622
30623 * termopts.h (no_redraw_on_reenter): Declare.
30624
30625 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30626 (mark_terminals, mark_ttys): Declare.
30627 (Fgarbage_collect): Call them.
30628 (mark_object): Mark buried_buffer_list.
30629
30630 * prefix-args.c: Include stdlib.h for exit.
30631
30632 * syssignal.h: Add comment.
30633
30634 * indent.c: Include stdio.h.
30635
30636 * window.h (Vinitial_window_system): Declare.
30637 (Vwindow_system): Delete declaration.
30638
30639 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30640
30641 * image.c (lookup_image): Don't initialize `c' until the xasserts
30642 have been run.
30643
30644 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30645 FRAME_FOREGROUND_PIXEL.
30646
30647 * print.c (print_preprocess): Don't lose print_depth levels while
30648 iterating.
30649
30650 * widget.c (update_from_various_frame_slots):
30651 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30652
30653 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30654 frames.
30655 (window_internal_height): Remove bogus make_number call.
30656 (init_window_once): Call make_terminal_frame with two zero parameters.
30657
30658 * fileio.c (Fread_file_name): Update comment.
30659
30660 * callint.c (Fcall_interactively):
30661 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30662 Make sure it is correctly unwound.
30663
30664 * xsmfns.c (x_session_close): New function.
30665
30666 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30667 Delete declarations.
30668
30669 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30670 (x_output): Remove background_pixel and foreground_pixel fields.
30671 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30672 (x_delete_device, x_session_close): Declare.
30673
30674 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30675 (read_filtered_event): Call `read_char' with a local
30676 `wrong_kboard_jmpbuf'.
30677
30678 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30679 Don't call single_kboard_state. Use FRAME_RIF.
30680
30681 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30682 systems.
30683
30684 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30685 (Fframe_with_environment, Fset_input_meta_mode)
30686 (Fset_quit_char): EXFUN.
30687 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30688 (init_sys_modes, reset_sys_modes): Update prototypes.
30689 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30690
30691 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30692 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30693 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30694 Delete declarations.
30695 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30696 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30697 New declarations.
30698
30699 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30700 already does that during init_display(). Call syms_of_keymap
30701 before syms_of_keyboard. Call `syms_of_terminal'.
30702 Call set_initial_environment, not set_process_environment.
30703 (shut_down_emacs): Call reset_all_sys_modes() instead of
30704 reset_sys_modes().
30705
30706 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30707 (internal_resolve_face_name, resolve_face_name_error): New functions.
30708 (resolve_face_name): Protect against loops and errors thrown by Fget.
30709 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30710 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30711
30712 * scroll.c: Replace CURTTY() with local variables throughout the
30713 file (where applicable).
30714 (calculate_scrolling, calculate_direct_scrolling)
30715 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30716 characteristics.
30717
30718 * keymap.c (Vfunction_key_map): Remove.
30719 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30720 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30721 (Vkey_translation_map): Remove.
30722 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30723 (Fdescribe_buffer_bindings)
30724 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30725 Update for terminal-local key-translation-map.
30726
30727 * Makefile.in (callproc.o): Update dependencies.
30728 (lisp, shortlisp): Add termdev.elc.
30729 (obj): Add terminal.o.
30730 (terminal.o): Add dependencies.
30731 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30732 (data.o, fns.o): Add termhooks.h dependency.
30733 (SOME_MACHINE_LISP): Add dnd.elc.
30734 (minibuf.o): Fix typo.
30735 Update dependencies.
30736
30737 * data.c (do_symval_forwarding, store_symval_forwarding)
30738 (find_symbol_value): Use the selected frame's keyboard, not
30739 current_kboard.
30740
30741 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30742 Vwindow_system.
30743
30744 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30745 Fmenu_bar_open.
30746 (syms_of_xmenu): Update defsubr.
30747 (mouse_position_for_popup, Fx_popup_menu)
30748 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30749 (set_frame_menubar, free_frame_menubar)
30750 (create_and_show_popup_menu, xmenu_show)
30751 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30752 an X frame.
30753
30754 * xselect.c (x_own_selection): Abort if not an X frame.
30755 (some_frame_on_display): Check if it is an X frame.
30756 (x_handle_selection_clear): Deal with MULTI_KBOARD.
30757
30758 * coding.c: Include frame.h and termhooks.h.
30759 (terminal_coding, keyboard_coding): Delete.
30760 (Fset_terminal_coding_system_internal)
30761 (Fset_keyboard_coding_system_internal)
30762 (Fkeyboard_coding_system)
30763 (Fterminal_coding_system): Add a terminal parameter.
30764 Get terminal_coding from the terminal.
30765 (init_coding_once): Don't call setup_coding_system here.
30766
30767 * dispextern.h (set_scroll_region, turn_off_insert)
30768 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
30769 (tty_clear_end_of_line, tty_setup_colors)
30770 (delete_tty, updating_frame)
30771 (produce_special_glyphs, produce_glyphs, write_glyphs)
30772 (insert_glyphs): Remove.
30773 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
30774 (tty_turn_off_highlight, get_tty_size): Add declaration.
30775 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
30776
30777 * frame.h (enum output_method): Add output_initial.
30778 (struct x_output): Delete.
30779 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30780 Access foreground_pixel and background_pixel directly from the frame.
30781 (tty_display): Delete.
30782 (struct frame): Add buried_buffer_list, foreground_pixel,
30783 background_pixel and terminal. Delete kboard.
30784 (union output_data): Add tty.
30785 (FRAME_KBOARD): Get the kboard from the terminal.
30786 (FRAME_INITIAL_P): New macro.
30787 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
30788 (Qterm_environment_variable, Qdisplay_environment_variable)
30789 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
30790 New declarations.
30791
30792 * termchar.h (tty_output, tty_display_info): New structures.
30793 (tty_list): Declare.
30794 (FRAME_TTY, CURTTY): New macros.
30795 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
30796 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
30797 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
30798 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
30799
30800 * callproc.c: Include frame.h and termhooks.h, for terminal
30801 parameters.
30802 (add_env): New function.
30803 (child_setup): Use it.
30804 (child_setup, getenv_internal): Handle the new Vprocess_environment.
30805 (getenv_internal): Fix get_terminal_param call.
30806 (Fgetenv_internal, egetenv): Update doc.
30807 (syms_of_callproc): Initialize Vprocess_environment to nil.
30808 Register and initialize them. Remove obsolete defvars. Update doc
30809 strings.
30810 (child_setup): Handle Vlocal_environment_variables.
30811 (getenv_internal): Add terminal parameter.
30812 Handle Vlocal_environment_variables.
30813 (Fgetenv_internal): Add terminal parameter.
30814 (child_setup, getenv_internal, Fgetenv_internal): Store the local
30815 environment in a frame (not terminal) parameter. Update doc strings.
30816 (set_initial_environment): Rename from set_global_environment.
30817 Store Emacs environment in initial frame parameter.
30818
30819 * xdisp.c (redisplay_internal): Update references to
30820 `previous_terminal_frame'.
30821 (display_mode_line, Fformat_mode_line): Replace calls to
30822 `push_frame_kboard' with `push_kboard'.
30823 (get_glyph_string_clip_rects): Add extra parentheses and
30824 braces to prevent compiler warnings.
30825 (calc_pixel_width_or_height): Add xassert to check that the
30826 frame is alive. Don't call `lookup_image' on a termcap frame.
30827 (message2_nolog, message3_nolog, redisplay_internal)
30828 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
30829 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
30830 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
30831 (Fx_display_pixel_width, Fx_display_pixel_height)
30832 (Fx_display_planes, Fx_display_color_cells)
30833 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
30834 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
30835 (Fx_display_backing_store, Fx_display_visual_class)
30836 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
30837 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
30838
30839 * xfns.c (x_set_foreground_color x_set_background_color)
30840 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
30841 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30842 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
30843 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
30844 terminal that is being deleted.
30845 (Fx_create_frame): Use `store_frame_param' to set `window-system'
30846 frame parameter, and make sure it overrides any user-supplied setting.
30847 (Fx_close_connection, Fx_synchronize): Unify argument names with
30848 the rest of the DEFUNs.
30849
30850 * dispnew.c (Fsend_string_to_terminal): Update call to
30851 `get_tty_terminal'.
30852 (Fredraw_frame, Fsend_string_to_terminal)
30853 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
30854 FRAME_TERMCAP_P and FRAME_TTY.
30855 (window_change_signal): Don't believe width/height values that are
30856 impossibly small.
30857 (Vinitial_window_system): Rename from Vwindow_system.
30858 (termscript, Wcm, rif): Delete.
30859
30860 * termhooks.h (struct terminal): New struct containing the
30861 previously global text display hooks and new members NAME,
30862 DELETED and PARAM_ALIST.
30863 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
30864 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
30865 (FRAME_RIF): New macros.
30866 (get_terminal_param, get_device): New declarations.
30867 (termscript): Delete declaration.
30868
30869 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
30870 (XTflash, x_free_frame_resources, x_scroll_bar_create)
30871 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
30872 FRAME_FOREGROUND_PIXEL.
30873 (x_fully_uncatch_errors): Disable definition.
30874 (x_scroll_bar_expose): Fix reference to foreground pixel.
30875 (XTread_socket): Disable loop on all X displays.
30876 (x_delete_terminal): Don't set terminal->deleted and let
30877 delete_terminal delete the frames on the terminal.
30878 (x_delete_display): Doc update to reflect changes in
30879 delete_terminal.
30880 (x_display_info) <terminal>: Move member earlier in the struct.
30881 (deleting_tty): Remove old variable.
30882 (Fsuspend_tty): Call clear_tty_hooks.
30883 (Fresume_tty, init_tty): Call set_tty_hooks.
30884 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
30885 errors on X frames.
30886 (x_catch_errors_unwind): Abort if x_error_message is NULL.
30887 (handle_one_xevent): Initialize `f' to NULL.
30888 (x_delete_terminal, x_create_terminal): New functions.
30889 (XTset_terminal_modes, XTreset_terminal_modes)
30890 (XTread_socket, x_connection_closed, x_term_init)
30891 (x_term_init, x_delete_display): Add terminal parameter.
30892 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
30893 X connections.
30894
30895 * frame.c: Include termchar.h.
30896 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
30897 (Qwindow_system, Qenvironment, Qterm_environment_variable)
30898 (Qdisplay_environment_variable): New vars.
30899 (Fframep): Deal with output_initial.
30900 (Fframe-live-p): Doc fix.
30901 (Fwindow-system): New function.
30902 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
30903 (make_terminal_frame): Don't create frames on a terminal that is
30904 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30905 (store_frame_param): Check for found_for_frame before calling XFRAME.
30906 (Fmake_terminal_frame): Handle NULL tty names correctly.
30907 (syms_of_frame): Enhance doc string of `default-frame-alist'.
30908 (Fdelete_frame): Remove unused variable `count'. Don't allow other
30909 frames to refer to a deleted frame in their 'environment parameter.
30910 (Fframe_with_environment): New function.
30911 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
30912 (get_future_frame_param): New function.
30913 (Fmake_terminal_frame): Use it.
30914 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
30915
30916 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
30917 * sysdep.c (reset_sys_modes): Update for renames.
30918
30919 * keyboard.c (tty_read_avail_input): New function.
30920 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
30921 (syms_of_keyboard): Defsubr them.
30922 (Fset_input_meta_mode, Fset_quit_char): New functions.
30923 (Fset_input_mode): Split to above functions.
30924 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
30925 parameter. Use it in call to `read_char'.
30926 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
30927 Set wrong_kboard_jmpbuf correctly in recursive calls.
30928 Use current_kboard to access Vkeyboard_translate_table.
30929 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
30930 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
30931 Update longjmp invocations. Remember the original current_kboard,
30932 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
30933 changes it. Comment out unnecessary calls to
30934 `record_single_kboard_state' and `any_kboard_state'.
30935 Update recursive calls.
30936 (wrong_kboard_jmpbuf): Remove global variable.
30937 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
30938 Handle deleted interrupted_kboards correctly; that is a legal
30939 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
30940 and read_char calls. Abort if interrupted_kboard died in read_char.
30941 (any_kboard_state, single_kboard_state)
30942 (push_frame_kboard): Remove function.
30943 (pop_kboard): Switch out of single_kboard mode if the kboard has
30944 been deleted. Remove unused variable. Help debugging by not
30945 changing current_kboard unnecessarily. Set current_kboard to the
30946 kboard of the selected frame when the stored kboard object has
30947 been deleted before pop_kboard.
30948 (temporarily_switch_to_single_kboard): Change first parameter to a
30949 frame pointer. Throw an error when caller wants to change kboards
30950 while in single_kboard mode. Don't push_kboard if we weren't in
30951 single kboard state. Don't pop_kboard if we popped into any
30952 kboard state.
30953 (restore_kboard_configuration): Abort if pop_kboard changed the
30954 kboard in single_kboard mode. Call pop_kboard only after setting
30955 up single_kboard mode.
30956 (Frecursive_edit): Switch to single_kboard mode only in nested
30957 command loops.
30958 (cmd_error, command_loop, command_loop_1, timer_check):
30959 Comment out unnecessary call to `any_kboard_state' and
30960 `record_single_kboard_state'.
30961 (delete_kboard): Exit single_kboard mode if we have just deleted
30962 that kboard. Use FRAME_KBOARD.
30963 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30964 `fatal_error_signal'.
30965 (record_single_kboard_state): Don't push_kboard if we weren't in
30966 single kboard state. Don't pop_kboard if we popped into any
30967 kboard state.
30968 (push_frame_kboard): Rename to push_kboard.
30969 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30970 (read_avail_input): Read input from all terminals.
30971 (mark_kboards): Also mark Vkeyboard_translate_table.
30972 (kbd_buffer_store_event_hold): Simplify condition.
30973 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30974 (Vkeyboard_translate_table): Move to struct kboard.
30975 (init_kboard): Initialize Vkeyboard_translate_table.
30976 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30977 Vkeyboard_translate_table. Update doc strings. Update docs of
30978 local-function-key-map and function-key-map.
30979
30980 * terminal.c: New file.
30981
30982 * term.c: Include errno.h.
30983 (Vring_bell_function, device_list, initial_device)
30984 (next_device_id, ring_bell, update_begin, update_end)
30985 (set_terminal_window, cursor_to, raw_cursor_to)
30986 (clear_to_end, clear_frame, clear_end_of_line)
30987 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30988 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30989 (syms_of_term): Move their initialization to terminal.c.
30990 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30991 (Ftty_display_color_cells)
30992 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
30993 (clear_tty_hooks, set_tty_hooks)
30994 (init_tty, maybe_fatal): New functions.
30995 (Ftty_type): Return nil if terminal is not on a tty instead of
30996 throwing an error. Doc update.
30997 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
30998 Doc update. Initialize new subrs and variables.
30999 (delete_tty): Use terminal->deleted.
31000 (tty_set_terminal_modes): Rename from set_terminal_modes.
31001 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31002 (set_scroll_region): Rename to `tty_set_scroll_region'.
31003 (turn_on_insert): Rename to `tty_turn_on_insert'.
31004 (turn_off_insert): Rename to `tty_turn_off_insert'.
31005 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31006 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31007 (toggle_highligh): Rename to `tty_toggle_highlight'.
31008 (background_highlight): Rename to `tty_background_highlight'.
31009 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31010 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31011 (tty_set_scroll_region, tty_background_highlight)
31012 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31013 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31014 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31015 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31016 Add static modifier.
31017 (tty_reset_terminal_modes, tty_set_terminal_window)
31018 (tty_set_scroll_region, tty_background_highlight)
31019 (tty_highlight_if_desired, tty_cursor_to)
31020 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31021 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31022 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31023 renames.
31024
31025 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31026
31027 * keyboard.c: Qrtl is new.
31028 (parse_tool_bar_item): Handle :rtl keyword.
31029 (syms_of_keyboard): Intern :rtl keyword.
31030
31031 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31032
31033 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31034 so no Lisp code is executed.
31035 (file_for_image, find_rtl_image): New functions.
31036 (xg_get_image_for_pixmap): Use file_for_image.
31037 (update_frame_tool_bar): If direction is RTL, use RTL image if
31038 defined. Use Gtk stock images if defined.
31039
31040 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31041
31042 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31043 for nonexistent or zero-width glyph in composition glyph.
31044
31045 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31046
31047 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31048
31049 * xdisp.c (Finvisible_p): New function.
31050 (syms_of_xdisp): defsubr it.
31051
31052 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
31053
31054 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31055 Doc fixes.
31056
31057 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31058
31059 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31060
31061 2007-08-24 Martin Rudalics <rudalics@gmx.at>
31062
31063 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31064 whether decoding has modified buffer contents.
31065
31066 2007-08-24 Jason Rumney <jasonr@gnu.org>
31067
31068 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31069 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31070 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31071 (init_svg_functions) [HAVE_NTGUI]: New function.
31072 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31073 (svg_load_image): Use them.
31074 (svg_load_image) [HAVE_NTGUI]: Implement background.
31075
31076 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31077
31078 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31079 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31080 (LIBX): Remove @RSVG_LIBS@.
31081 (LIBES): Add $(RSVG_LIBS).
31082
31083 * image.c (svg_load_image): Blend with specified background if exists.
31084 Use IMAGE_BACKGROUND. Add Mac OS Support.
31085
31086 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31087 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31088 Remove macros.
31089 [MAC_OSX] (socket_callback): Do nothing.
31090 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31091 ReceiveNextEvent.
31092 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31093 socket_callback.
31094 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31095
31096 2007-08-22 Glenn Morris <rgm@gnu.org>
31097
31098 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31099
31100 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31101
31102 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31103
31104 * image.c: Add support for SVG images. Some additional comments
31105 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31106 (svg_image_p): New function to test for SVG image.
31107 (svg_load): New function to load SVG image.
31108 (svg_load_image): New function, helper for svg_load.
31109 (Qsvg): New Lisp_object.
31110 (svg_keyword_index): New enum.
31111 (svg_format): New static `image_keyword' struct.
31112 (svg_type): New static `image_type' struct.
31113 (librsvg/rsvg.h): Include it.
31114
31115 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31116
31117 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31118
31119 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31120
31121 * lread.c (Qold_style_backquotes): New var.
31122 (syms_of_lread): Init and staticpro it.
31123 (load_warn_old_style_backquotes): New fun.
31124 (Fload): Use them to warn about old style backquotes.
31125 (end_of_file_error, Fload): Remove unused vars.
31126
31127 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31128
31129 * lread.c (Vold_style_backquotes): New var.
31130 (syms_of_lread): Init and export it to Elisp.
31131 (read1): Set it when we find an old-style (back)quote.
31132
31133 2007-08-22 Jason Rumney <jasonr@gnu.org>
31134
31135 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31136
31137 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31138
31139 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31140
31141 2007-08-19 Richard Stallman <rms@gnu.org>
31142
31143 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31144
31145 2007-08-19 Andreas Schwab <schwab@suse.de>
31146
31147 * alloc.c (pure): Round PURESIZE up.
31148
31149 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31150
31151 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31152 active frame.
31153
31154 2007-08-16 Richard Stallman <rms@gnu.org>
31155
31156 * eval.c (Fcommandp): Add parens to clarify.
31157
31158 * minibuf.c (Fall_completions): Use enum for type of table.
31159
31160 * emacs.c (USAGE2): Improve text.
31161
31162 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31163
31164 * term.c (tty_default_color_capabilities): Declare static
31165 variables in file scope, to avoid HPUX compiler problem.
31166
31167 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31168
31169 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31170 to gtk_toolbar_insert.
31171
31172 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31173
31174 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31175
31176 * insdel.c (reset_var_on_error): New fun.
31177 (signal_before_change, signal_after_change):
31178 Use it to reset (after|before)-change-functions to nil in case of error.
31179 Bind inhibit-modification-hooks to t.
31180 Don't bind (after|before)-change-functions to nil while they run.
31181
31182 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31183
31184 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31185 filling pixmap with stippled background.
31186
31187 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31188
31189 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31190 Don't use invisible frame as parent window for repositioning.
31191
31192 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31193
31194 * print.c (new_backquote_output): Rename from old_backquote_output.
31195 (print): Inverse its logic (according to its name) so as to match the
31196 behavior of new_backquote_flag in lread.c.
31197
31198 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31199
31200 * gmalloc.c (posix_memalign): New function.
31201
31202 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31203 ActivateControl/DeactivateControl here.
31204 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31205 frame-notice-user-settings is non-nil.
31206 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31207 for kEventParamFMFontStyle.
31208 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31209 mac_pass_command_to_system and mac_pass_control_to_system here.
31210 (XTread_socket): Call ActivateControl/DeactivateControl here.
31211 (XTread_socket) [TARGET_API_MAC_CARBON]:
31212 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31213 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31214 for window repositioning.
31215
31216 2007-08-08 Glenn Morris <rgm@gnu.org>
31217
31218 * Replace `iff' in doc-strings and comments.
31219
31220 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
31221
31222 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31223
31224 2007-08-07 Martin Rudalics <rudalics@gmx.at>
31225
31226 * fileio.c (Finsert_file_contents): Run format-decode and
31227 after_insert_file_functions on entire buffer when REPLACE is
31228 non-nil and inhibit modification_hooks and point_motion_hooks.
31229 For consistency, run after_insert_file_functions iff something
31230 got inserted. Move signal_after_change and update_compositions
31231 after code running after_insert_file_functions. Make sure that
31232 undo_list doesn't record intermediate steps of the decoding process.
31233
31234 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31235
31236 * emacs.c (main)
31237 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31238 Call malloc_enable_thread on interactive startup.
31239
31240 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31241 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31242 [USE_PTHREAD]: Conditionalize with it.
31243 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31244 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31245 New functions.
31246
31247 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
31248
31249 * xdisp.c (redisplay_window): When restoring original buffer
31250 position, make sure it is still valid.
31251
31252 * image.c (png_load): Ignore png-supplied background color.
31253
31254 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31255
31256 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31257 Use kCFAbsoluteTimeIntervalSince1970.
31258
31259 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31260 New variable.
31261 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31262 event loop should be quit.
31263 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31264 Quit dialog event loop if quit_dialog_event_loop is set.
31265
31266 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31267 (Selection): New typedef. Use instead of ScrapRef.
31268 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31269 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31270 (mac_clear_selection): Rename from clear_scrap.
31271 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31272 scrap_has_target_type. All uses changed.
31273 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31274 (mac_selection_has_target_p): New functions.
31275 (mac_put_selection_value): Rename from put_scrap_string.
31276 (mac_get_selection_value): Rename from get_scrap_string.
31277 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31278 (put_scrap_private_timestamp, scrap_has_target_type)
31279 (get_scrap_private_timestamp): Remove functions.
31280 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31281 (x_own_selection, x_get_local_selection):
31282 Use mac_valid_selection_value_p.
31283 (x_own_selection): Don't use put_scrap_private_timestamp.
31284 Record OWNERSHIP-INFO into Vselection_alist instead.
31285 (x_get_local_selection): Don't check type if request is local.
31286 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31287 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31288
31289 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31290
31291 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31292 add comment explaining why.
31293
31294 2007-08-03 Richard Stallman <rms@gnu.org>
31295
31296 * fileio.c (Fvisited_file_modtime): Use make_time.
31297
31298 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31299
31300 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31301 build.
31302
31303 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31304
31305 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31306
31307 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31308
31309 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31310
31311 2007-07-30 Richard Stallman <rms@gnu.org>
31312
31313 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31314
31315 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31316
31317 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31318
31319 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
31320
31321 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31322 remote default-directory.
31323
31324 * buffer.c (mode-line-format): Update doc string.
31325
31326 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31327
31328 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31329 scroll bar gap.
31330 (x_scroll_bar_create): Set bar->fringe_extended_p.
31331 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31332 on frame edge. Check fringe background extension. Don't clear
31333 extended fringe background area.
31334
31335 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31336 (w32_fill_area): Enclose multiple statements with do ... while (0).
31337
31338 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31339 Extend fringe background to scroll bar gap.
31340 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31341 Set bar->fringe_extended_p.
31342 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31343 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31344 background extension. Don't clear extended fringe background area.
31345
31346 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31347 New member fringe_extended_p.
31348
31349 2007-07-25 Glenn Morris <rgm@gnu.org>
31350
31351 * Relicense all FSF files to GPLv3 or later.
31352
31353 * COPYING: Switch to GPLv3.
31354
31355 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31356
31357 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31358
31359 * data.c (Finteractive_form): Check for the presence of an
31360 `interactive-form' symbol property more thoroughly.
31361
31362 * data.c (Finteractive_form): Use an `interactive-form' property if
31363 present, analogous to the function-documentation property.
31364
31365 2007-07-24 Jason Rumney <jasonr@gnu.org>
31366
31367 * w32fns.c (x_real_positions): Get real position from OS instead of
31368 calculating it.
31369
31370 2007-07-23 Jason Rumney <jasonr@gnu.org>
31371
31372 * filelock.c (current_lock_owner): Allow for @ sign in username.
31373
31374 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
31375
31376 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31377 remote default-directory.
31378
31379 * buffer.c (mode-line-format): Describe above case in doc string.
31380
31381 2007-07-20 Eli Zaretskii <eliz@gnu.org>
31382
31383 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31384 Define if not defined.
31385
31386 2007-07-18 Jason Rumney <jasonr@gnu.org>
31387
31388 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31389
31390 2007-07-18 Richard Stallman <rms@gnu.org>
31391
31392 * data.c (Fsetq_default): Doc fix.
31393
31394 * eval.c (Fsetq): Doc fix.
31395
31396 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
31397
31398 * coding.c (Ffind_operation_coding_system):
31399 * eval.c (For, Fand): Doc fixes.
31400 Reported by Johan Bockgård.
31401
31402 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31403
31404 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31405
31406 * xterm.h: Declare x_ewmh_activate_frame.
31407
31408 * xterm.c (x_ewmh_activate_frame): New function.
31409 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31410
31411 2007-07-17 Martin Rudalics <rudalics@gmx.at>
31412
31413 * window.c (Fdisplay_buffer): If largest or LRU window is the
31414 only window, split it even if it is not eligible for splitting.
31415 This restores the original behavior broken by the 2007-07-15
31416 change.
31417
31418 2007-07-17 Glenn Morris <rgm@gnu.org>
31419
31420 * abbrev.c (abbrev_check_chars): New function.
31421 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31422 Call abbrev_check_chars to check abbrev characters are word
31423 constituents. Doc fix.
31424
31425 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31426
31427 * process.c (Fstart_process, Fmake_network_process)
31428 (read_process_output): Fix up last changes.
31429
31430 2007-07-16 Eli Zaretskii <eliz@gnu.org>
31431
31432 * makefile.w32-in (clean): Don't delete *~.
31433
31434 2007-07-16 Andreas Schwab <schwab@suse.de>
31435
31436 * window.c (Fdisplay_buffer): Use NILP.
31437 (Fset_window_scroll_bars): Likewise.
31438
31439 2007-07-15 Martin Rudalics <rudalics@gmx.at>
31440
31441 * window.c (window_min_size_2): New function.
31442 (window_min_size_1, size_window, Fdisplay_buffer)
31443 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31444 windows without mode- or header-lines when window-min-height is
31445 too small.
31446 (size_window): Reset nodelete_p after testing it, following an
31447 earlier note by Kim F. Storm.
31448 (display_buffer): Do not set split_height_threshold to twice the
31449 value of window_min_height to avoid changing the value of a
31450 customizable variable. Rather explicitly check whether the
31451 height of the window that shall be splitted is at least as large
31452 as split_height_threshold.
31453 (Fwindow_full_width_p): New defun.
31454 (syms_of_window): Defsubr it.
31455
31456 * window.h: Add EXFUN for Fwindow_full_width_p.
31457
31458 2007-07-14 Jason Rumney <jasonr@gnu.org>
31459
31460 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31461
31462 2007-07-14 Richard Stallman <rms@gnu.org>
31463
31464 * eval.c (maybe_call_debugger): New function.
31465 (find_handler_clause): Use maybe_call_debugger.
31466 Call it when the handler says `debug'.
31467 Eliminate DEBUGGER_VALUE_PTR.
31468 (Fsignal): Eliminate debugger_value.
31469 (Qdebug): New variable.
31470 (syms_of_eval): Initialize it.
31471
31472 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
31473
31474 * eval.c (Fprogn):
31475 * keyboard.c (Ftrack_mouse):
31476 * print.c (Fwith_output_to_temp_buffer):
31477 * window.c (Fsave_window_excursion): Doc fix.
31478
31479 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31480
31481 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31482
31483 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31484
31485 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31486 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31487 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31488 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31489 Remove unused encoding_carryover.
31490 * process.c: Adjust all functions accordingly.
31491
31492 2007-07-12 Richard Stallman <rms@gnu.org>
31493
31494 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31495
31496 2007-07-11 Jason Rumney <jasonr@gnu.org>
31497
31498 * makefile.w32-in (LIBS): Include OLE32.
31499
31500 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31501 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31502
31503 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31504
31505 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31506 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31507 from a Lisp_Object into a bare pointer.
31508 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31509 Adjust the code correspondingly.
31510
31511 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31512
31513 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31514 (term_show_mouse_face): Remove unused var `j'.
31515 (handle_one_term_event): Remove unused vars `i' and `j'.
31516 Don't cast return value of ttyname since it's not necessary.
31517
31518 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31519
31520 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31521 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31522
31523 * fns.c (map_char_table): Use an array of int for `indices' rather than
31524 an array of Lisp_Objects (which are only ever integers anyway).
31525 (Fmap_char_table): Update caller.
31526 * lisp.h: Update prototype.
31527 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31528 * fontset.c (Ffontset_info):
31529 * casetab.c (set_case_table): Update callers.
31530
31531 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31532
31533 * keymap.c (struct accessible_keymaps_data)
31534 (struct where_is_internal_data): New structures.
31535 (accessible_keymaps_1, where_is_internal_1): Use them to change
31536 interface to adhere to the one used by map_keymap.
31537 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31538 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31539
31540 * keymap.h (map_keymap_function_t): More informative prototype.
31541
31542 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31543
31544 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31545 (looking_at_1): Don't change search_regs and last_thing_searched
31546 if `inhibit-changing-match-data' is non-nil.
31547 (string_match_1, search_buffer, set_search_regs): Likewise.
31548 (syms_of_search): Add Lisp level definition for
31549 `inhibit-changing-match-data' and set it to nil.
31550 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31551 start and end of the match, instead of using values in search_regs.
31552
31553 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31554
31555 * minibuf.c (Fcompleting_read): New value `confirm-only'
31556 for `require-match'.
31557
31558 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31559
31560 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31561 part of the 2007-06-27 change to syms_of_fileio.
31562
31563 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31564
31565 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31566 Check WINDOWP before using XWINDOW. Consolidate return statements.
31567
31568 2007-06-27 Richard Stallman <rms@gnu.org>
31569
31570 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31571
31572 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
31573
31574 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31575
31576 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31577
31578 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31579 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31580 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31581 (_free_internal, memalign): Use them.
31582 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31583 Initialize to PTHREAD_MUTEX_INITIALIZER.
31584 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31585 (morecore_nolock): Rename from morecore. All uses changed.
31586 Use only nolock versions of internal allocation functions.
31587 (_malloc_internal_nolock, _realloc_internal_nolock)
31588 (_free_internal_nolock): New functions created from
31589 _malloc_internal, _realloc_internal, and _free_internal.
31590 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31591 Copy hook value to automatic variable before its use.
31592 (memalign): Copy hook value to automatic variable before its use.
31593
31594 2007-06-26 Kenichi Handa <handa@m17n.org>
31595
31596 * coding.c (Ffind_operation_coding_system): Docstring improved.
31597 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31598
31599 2007-06-25 David Kastrup <dak@gnu.org>
31600
31601 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31602 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31603 cater for additional parameter.
31604
31605 * keymap.h: Adjust number of parameters to `current-active-maps'.
31606
31607 * doc.c (Fsubstitute_command_keys): Adjust call of
31608 `current-active-maps'.
31609
31610 2007-06-25 David Kastrup <dak@gnu.org>
31611
31612 * callint.c (Fcall_interactively): Make the parsing of interactive
31613 specs somewhat more readable.
31614
31615 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31616
31617 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31618 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31619 if extended background has already been filled.
31620
31621 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31622
31623 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31624 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31625
31626 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31627 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31628 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31629 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31630 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31631 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31632 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31633 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31634 Run timers during dialog popup.
31635 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31636
31637 2007-06-21 Jason Rumney <jasonr@gnu.org>
31638
31639 * image.c (convert_mono_to_color_image): Swap fore and background.
31640
31641 2007-06-20 Jason Rumney <jasonr@gnu.org>
31642
31643 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31644 (w32_free_bdf_font): Unmap memory not handle.
31645
31646 2007-06-20 Sam Steingold <sds@gnu.org>
31647
31648 * gmalloc.c (__morecore): Fix the declaration to comply with the
31649 definition.
31650
31651 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
31652
31653 * w32term.c (w32_delete_display): Remove leftover declaration.
31654 (w32_define_cursor, w32_initialize): Make static.
31655
31656 * w32.c (_wsa_errlist): Fix typo in error message.
31657 (init_environment): Ignore any environment variable from the
31658 registry having a null value.
31659
31660 2007-06-20 Glenn Morris <rgm@gnu.org>
31661
31662 * Makefile.in (LIBGIF): Default to -lgif.
31663
31664 2007-06-17 Jason Rumney <jasonr@gnu.org>
31665
31666 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31667 unicode strings.
31668
31669 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
31670
31671 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31672 Fix typo in docstring.
31673
31674 2007-06-16 Eli Zaretskii <eliz@gnu.org>
31675
31676 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31677 and their keybindings.
31678
31679 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
31680
31681 * composite.c (update_compositions): Fix last fix.
31682
31683 2007-06-14 Jason Rumney <jasonr@gnu.org>
31684
31685 * w32.c (get_process_times_fn): New function pointer.
31686 (globals_of_w32): Intialize it if present in kernel32.dll.
31687 (w32_get_internal_run_time): New function.
31688
31689 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31690
31691 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31692
31693 * composite.c (update_compositions): Check the validness of
31694 compositions.
31695
31696 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31697
31698 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31699 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31700
31701 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31702 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31703
31704 * macgui.h (USE_MAC_TOOLBAR): New define.
31705
31706 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31707 Return immediately unless popup is activated.
31708
31709 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31710 background to scroll bar gap.
31711 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31712 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31713 scroll bars on frame edge. Check fringe background extension.
31714 Don't clear extended fringe background area.
31715 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31716 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31717 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31718 [USE_MAC_TOOLBAR]: New macros.
31719 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31720 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31721 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31722 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31723 [USE_MAC_TOOLBAR]: New functions.
31724 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31725 manually if previous repositioning has failed.
31726 (mac_handle_keyboard_event): Use precomputed event kind.
31727 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31728 as tool bar item click. Handle mouse movement over tool bar items.
31729
31730 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31731 toolbar_win_gravity.
31732 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31733 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31734 Add externs.
31735
31736 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31737 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31738
31739 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
31740
31741 * image.c (search_image_cache): Remove unused variable.
31742
31743 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
31744
31745 * xfns.c, xmenu.c: Link to xaw3d if available.
31746
31747 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31748
31749 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31750 frame_foreground and frame_background.
31751
31752 * image.c (lookup_image): Save frame foreground and background colors.
31753 (search_image_cache): Check if saved and current frame colors match.
31754
31755 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31756
31757 * regex.c (regex_compile): Remove the `regnum' counter.
31758 Use bufp->re_nsub instead. Add support for \(?N:RE\).
31759
31760 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
31761
31762 * term.c: Include intervals.h to declare Fget_text_property.
31763
31764 2007-06-10 Jason Rumney <jasonr@gnu.org>
31765
31766 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
31767
31768 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
31769
31770 * callint.c (Fcall_interactively):
31771 * editfns.c (Fdelete_and_extract_region):
31772 * fileio.c (Fread_file_name):
31773 * fns.c (Fmapconcat):
31774 * keyboard.c (cmd_error_internal):
31775 * keymap.c (Fkey_description):
31776 * lread.c (openp):
31777 * minibuf.c (read_minibuf):
31778 * search.c (wordify):
31779 * sunfns.c (sel_read):
31780 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
31781 * xfns.c (x_default_scroll_bar_color_parameter):
31782 * xmenu.c (menu_help_callback):
31783 * xselect.c (Fx_get_atom_name):
31784 * xterm.c (x_term_init): Use empty_unibyte_string.
31785
31786 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
31787
31788 * alloc.c (init_strings): Initialize canonical empty strings.
31789 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
31790 canonical empty string when the requested size is 0.
31791
31792 * emacs.c (empty_unibyte_string): Rename from empty_string.
31793 (empty_multibyte_string): New canonical empty string.
31794 (syms_of_emacs): Don't initialize empty_string.
31795
31796 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
31797 string, if appropriate.
31798 (empty_unibyte_string, empty_multibyte_string): New externs.
31799 (empty_string): Remove extern.
31800
31801 * lread.c (syms_of_lread): Use empty_unibyte_string.
31802
31803 2007-06-07 Jason Rumney <jasonr@gnu.org>
31804
31805 * s/ms-w32.h: Don't define HAVE_TZNAME.
31806
31807 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
31808
31809 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31810
31811 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
31812
31813 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
31814 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
31815
31816 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31817 Don't call next handler.
31818 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
31819 Remove argument. Install handler to application.
31820 (set_frame_menubar): Don't change deep_p.
31821 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
31822 FRAME_OUTER_TO_INNER_DIFF_Y.
31823 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
31824 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
31825 [HAVE_DIALOGS]: New macros.
31826 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
31827 Use them.
31828 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
31829
31830 * macselect.c [MAC_OSX] (install_service_handler): Rename from
31831 init_service_handler. All callers changed. Return OSStatus value.
31832
31833 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
31834 All callers changed so as not to call SetPortWindowPort.
31835 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
31836 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
31837 mac_draw_string_common.
31838 (mac_draw_image_string_qd): Likewise.
31839 (mac_draw_string_common): Use them. Add INLINE.
31840 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
31841 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
31842 GetGlobalMouse.
31843 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
31844 and FRAME_OUTER_TO_INNER_DIFF_Y.
31845 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
31846 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
31847 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
31848 repositioning window to mac_handle_window_event.
31849 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
31850 saving window location to mac_handle_window_event
31851 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
31852 (install_menu_target_item_handler): Remove argument in extern.
31853 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
31854 Also accept command events.
31855 (do_keystroke): New function created from XTread_socket.
31856 (init_command_handler): Remove functions.
31857 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
31858 and save window location by kEventWindowShowing and kEventWindowHiding
31859 handlers here. Don't call next handler for window state change and
31860 focus events.
31861 (mac_handle_application_event, mac_handle_keyboard_event)
31862 [TARGET_API_MAC_CARBON]: New functions.
31863 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
31864 kEventWindowShowing and kEventWindowHiding events. Move installation
31865 of mouse, font, text input and menu target item handlers to
31866 install_application_handler.
31867 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
31868 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31869 New function.
31870 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31871 Register it.
31872 (XTread_socket) [TARGET_API_MAC_CARBON]:
31873 Consolidate SendEventToEventTarget calls.
31874 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
31875 Move application activation handler to mac_handle_application_event.
31876 Move keyboard handler to mac_handle_keyboard_event.
31877 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
31878 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
31879 init_command_handler. Call install_application_handler.
31880
31881 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
31882 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
31883
31884 2007-06-07 Glenn Morris <rgm@gnu.org>
31885
31886 * emacs.c (main): Use `emacs-copyright' in --version output.
31887
31888 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
31889
31890 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
31891
31892 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31893
31894 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
31895
31896 * macgui.h: Replace WindowPtr with WindowRef.
31897
31898 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31899 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31900 Replace ControlHandle with ControlRef.
31901 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
31902
31903 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31904 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31905 Replace ControlHandle with ControlRef.
31906 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
31907 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
31908
31909 * macterm.h (struct scroll_bar): Rename member control_handle_low
31910 and control_handle_high to control_ref_low and control_ref_high.
31911 All uses changed.
31912 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
31913 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
31914 respectively. All uses changed.
31915 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
31916 (install_window_handler, remove_window_handler): Replace WindowPtr
31917 with WindowRef in externs.
31918
31919 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
31920
31921 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
31922
31923 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
31924
31925 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
31926
31927 * frame.c (Fmouse_position, Fmouse_pixel_position):
31928 Condition on HAVE_GPM too.
31929
31930 * term.c (term_mouse_highlight): Remove unused variables.
31931 (Fterm_open_connection): Set gpm_zerobased to 1.
31932 (term_mouse_movement, term_mouse_click, handle_one_term_event):
31933 Use zero based co-ordinates.
31934 (handle_one_term_event): Report a drag as mouse movement too.
31935
31936 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
31937
31938 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
31939
31940 * image.c (search_image_cache): New function. Require background
31941 color match if background color is unspecified in the image spec.
31942 (uncache_image, lookup_image): Use it.
31943
31944 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
31945
31946 * window.c (Fshrink_window): Reflow docstring.
31947
31948 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
31949
31950 * Version 22.1 released.
31951
31952 2007-06-01 Richard Stallman <rms@gnu.org>
31953
31954 * xfns.c (x_encode_text): Add GCPRO.
31955
31956 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31957
31958 * xfns.c (x_set_name_internal): Save encoded name before
31959 x_encode_text in case string data is relocated.
31960
31961 2007-05-31 Richard Stallman <rms@gnu.org>
31962
31963 * buffer.c (syms_of_buffer): Doc fix.
31964
31965 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
31966
31967 * sysdep.c (init_sys_modes): Add rather than replace with
31968 O_NONBLOCK.
31969
31970 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31971 term_mouse_moveto.
31972
31973 * termhooks.h (term_mouse_moveto): New extern.
31974
31975 * term.c (mouse_face_window): Rename...
31976 (Qmouse_face_window): ...to this.
31977 (term_show_mouse_face, term_clear_mouse_face)
31978 (term_mouse_highlight): Use Qmouse_face_window.
31979 (term_mouse_moveto): New function.
31980 (term_mouse_position): Make it work.
31981 (syms_of_term): Uncomment assignment to mouse_position_hook.
31982 Staticpro Qmouse_face_window.
31983
31984 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31985
31986 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31987 around current_column call.
31988
31989 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31990
31991 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
31992 * xdisp.c (next_element_from_buffer):
31993 * window.c (delete_window):
31994 * term.c (term_mouse_highlight):
31995 * msdos.c (getdefdir):
31996 * macterm.c (mac_create_bitmap_from_bitmap_data)
31997 (init_font_name_table):
31998 * fns.c (Fsxhash):
31999 * data.c (Fmake_local_variable):
32000 * ccl.c (ccl_driver): Likewise.
32001
32002 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32003
32004 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32005 Call mac_wakeup_from_rne on window size change.
32006
32007 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
32008
32009 * image.c (uncache_image): Fix typo.
32010
32011 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32012
32013 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32014
32015 2007-05-22 Richard Stallman <rms@gnu.org>
32016
32017 * xterm.c (x_connection_closed): Remove NO_RETURN.
32018
32019 2007-05-22 Martin Rudalics <rudalics@gmx.at>
32020
32021 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32022
32023 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
32024
32025 * image.c (uncache_image): New function.
32026 (Fimage_refresh): New function.
32027
32028 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32029
32030 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32031
32032 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32033
32034 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32035 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32036
32037 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32038
32039 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32040 conditional on [HAVE_GPM_H].
32041
32042 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32043
32044 * syntax.c (skip_chars): Update syntax-table only after we checked that
32045 the new location is valid.
32046
32047 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32048
32049 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32050 mac_get_window_bounds.
32051
32052 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32053
32054 * Makefile.in (LIBGPM): Allow it to be set from configure.
32055 If set then link Emacs with it.
32056
32057 * config.in: Regenerate.
32058
32059 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32060 New externs.
32061
32062 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32063 Include gpm.h.
32064 (handle_one_term_event, term_gpm): New externs.
32065
32066 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32067 and allow it to be interrupted by SIGIO.
32068
32069 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32070 (wait_reading_process_output): Wait on gpm_fd too.
32071 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32072 (add_gpm_wait_descriptor_called_flag): New variable.
32073 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32074
32075 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32076 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32077 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32078 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32079 (make_lispy_event): Add case GPM_CLICK_EVENT.
32080 (read_avail_input): Handle mouse input.
32081
32082 * term.c (write_glyphs_with_face): New function.
32083 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32084 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32085 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32086 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32087 (last_mouse_x, last_mouse_y): New variables.
32088 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32089 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32090 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32091 (Fterm_close_connection): New functions.
32092 (term_init): Initialise mouse_face_window.
32093
32094 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
32095
32096 * xdisp.c (redisplay_window): If first window line is a
32097 continuation line, recompute the new window start instead of
32098 recentering.
32099
32100 2007-05-18 Glenn Morris <rgm@gnu.org>
32101
32102 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32103 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32104
32105 2007-05-17 Glenn Morris <rgm@gnu.org>
32106
32107 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32108
32109 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32110
32111 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32112 dead key repeat and up events.
32113
32114 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
32115
32116 * image.c (pbm_load): Check image size for monochrome pbm.
32117
32118 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
32119
32120 * xterm.c (XTread_socket): Revert last change.
32121
32122 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
32123
32124 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32125
32126 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32127
32128 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32129
32130 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32131 mixup (YAILOM).
32132
32133 2007-05-07 Andreas Schwab <schwab@suse.de>
32134
32135 * keymap.c (Flookup_key): Fix typo in last change.
32136
32137 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32138
32139 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32140 mapping for unibyte strings.
32141
32142 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32143
32144 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32145 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32146
32147 2007-04-29 Richard Stallman <rms@gnu.org>
32148
32149 * insdel.c (replace_range): For undo, record insertion first.
32150
32151 2007-04-29 Andreas Schwab <schwab@suse.de>
32152
32153 * lisp.h (VECSIZE): Use OFFSETOF.
32154
32155 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32156
32157 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32158 disabled lines.
32159
32160 2007-04-28 Richard Stallman <rms@gnu.org>
32161
32162 * lread.c (read_escape): In a string, \s is always space.
32163
32164 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32165
32166 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32167
32168 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32169 submenu for menu bar items.
32170
32171 See ChangeLog.10 for earlier changes.
32172
32173 ;; Local Variables:
32174 ;; coding: utf-8
32175 ;; End:
32176
32177 Copyright (C) 2007-2011 Free Software Foundation, Inc.
32178
32179 This file is part of GNU Emacs.
32180
32181 GNU Emacs is free software: you can redistribute it and/or modify
32182 it under the terms of the GNU General Public License as published by
32183 the Free Software Foundation, either version 3 of the License, or
32184 (at your option) any later version.
32185
32186 GNU Emacs is distributed in the hope that it will be useful,
32187 but WITHOUT ANY WARRANTY; without even the implied warranty of
32188 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32189 GNU General Public License for more details.
32190
32191 You should have received a copy of the GNU General Public License
32192 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.