Remove (RET)SIGTYPE; it is identical to void on all supported systems.
[bpt/emacs.git] / src / ChangeLog
1 2011-03-27 Glenn Morris <rgm@gnu.org>
2
3 * syssignal.h: Replace RETSIGTYPE with void.
4 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
5 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
6 Replace SIGTYPE with void everywhere.
7 * s/usg5-4-common.h (SIGTYPE): Remove definition.
8 * s/template.h (SIGTYPE): Remove commented out definition.
9
10 2011-03-26 Eli Zaretskii <eliz@gnu.org>
11
12 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
13 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
14
15 2011-03-26 Juanma Barranquero <lekktu@gmail.com>
16
17 * w32.c (read_unc_volume): Use parameter `henum', instead of
18 global variable `wget_enum_handle'.
19
20 * keymap.c (describe_vector): Remove parameters `indices' and
21 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
22 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
23
24 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
25
26 * keyboard.c (timer_check): Remove parameter `do_it_now',
27 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
28 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
29 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
30
31 * keyboard.c (read_char):
32 * w32menu.c (w32_menu_display_help):
33 * xmenu.c (show_help_event, menu_help_callback):
34 Adjust calls to `show_help_echo'.
35
36 * gtkutil.c (xg_maybe_add_timer):
37 * keyboard.c (readable_events):
38 * process.c (wait_reading_process_output):
39 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
40
41 * insdel.c (adjust_markers_gap_motion):
42 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
43 (gap_left, gap_right): Don't call it.
44
45 2011-03-25 Chong Yidong <cyd@stupidchicken.com>
46
47 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
48 incurred during fontification.
49
50 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
51
52 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
53 (DEFVAR_PER_BUFFER): Don't pass it.
54
55 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
56 (scrolling_window): Don't pass it.
57
58 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
59
60 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
61
62 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
63 and `suffix'.
64 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
65 of variables specific to SELinux and computation of `encoded_absname'.
66
67 * image.c (XPutPixel): Remove unused variable `height'.
68
69 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
70
71 * unexw32.c (get_section_info): Remove unused variable `section'.
72
73 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
74 (system_process_attributes): Remove unused variable `sess'.
75 (sys_read): Remove unused variable `err'.
76
77 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
78 (w32_wnd_proc): Remove unused variable `isdead'.
79 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
80 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
81 (x_create_tip_frame): Remove unused variable `tem'.
82
83 * w32inevt.c (w32_console_read_socket):
84 Remove unused variable `no_events'.
85
86 * w32term.c (x_draw_composite_glyph_string_foreground):
87 Remove unused variable `width'.
88
89 2011-03-24 Juanma Barranquero <lekktu@gmail.com>
90
91 * w32term.c (x_set_glyph_string_clipping):
92 Don't pass uninitialized region to CombineRgn.
93
94 2011-03-23 Juanma Barranquero <lekktu@gmail.com>
95
96 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
97 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
98 (Fx_close_connection): Remove unused variable `i'.
99
100 * w32font.c (w32font_draw): Return number of glyphs.
101 (w32font_open_internal): Remove unused variable `i'.
102 (w32font_driver): Add missing initializer.
103
104 * w32menu.c (utf8to16): Remove unused variable `utf16'.
105 (fill_in_menu): Remove unused variable `items_added'.
106
107 * w32term.c (last_mouse_press_frame): Remove static global variable.
108 (w32_clip_to_row): Remove unused variable `f'.
109 (x_delete_terminal): Remove unused variable `i'.
110
111 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
112 (NOTHING): Remove unused static global variable.
113 (uniscribe_check_otf): Remove unused variable `table'.
114 (uniscribe_font_driver): Add missing initializers.
115
116 2011-03-23 Julien Danjou <julien@danjou.info>
117
118 * term.c (Fsuspend_tty, Fresume_tty):
119 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
120 * window.c (temp_output_buffer_show):
121 * insdel.c (signal_before_change):
122 * frame.c (Fhandle_switch_frame):
123 * fileio.c (Fdo_auto_save):
124 * emacs.c (Fkill_emacs):
125 * editfns.c (save_excursion_restore):
126 * cmds.c (internal_self_insert):
127 * callint.c (Fcall_interactively):
128 * buffer.c (Fkill_all_local_variables):
129 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
130 Use Frun_hooks.
131 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
132 unconditionnaly since it does the check itself.
133
134 2011-03-23 Paul Eggert <eggert@cs.ucla.edu>
135
136 Fix more problems found by GCC 4.5.2's static checks.
137
138 * coding.c (encode_coding_raw_text): Avoid unnecessary test
139 the first time through the loop, since we know p0 < p1 then.
140 This also avoids a gcc -Wstrict-overflow warning.
141
142 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
143 leading to a memory leak, possible in functions like
144 load_charset_map_from_file that can allocate an unbounded number
145 of objects (Bug#8318).
146
147 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
148 that could (at least in theory) be that large.
149
150 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
151 This is less likely to overflow, and avoids undefined behavior if
152 overflow does occur. All callers changed. Use strtoul to scan
153 for the unsigned long integer.
154 (pint2hrstr): Simplify and tune code slightly.
155 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
156
157 * scroll.c (do_scrolling): Work around GCC bug 48228.
158 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
159
160 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
161 This also avoids a warning with gcc -Wstrict-overflow.
162 (validate_x_resource_name): Simplify count usage.
163 This also avoids a warning with gcc -Wstrict-overflow.
164
165 * fileio.c (Fcopy_file): Report error if fchown or fchmod
166 fail (Bug#8306).
167
168 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
169
170 * process.c (Fmake_network_process): Use socklen_t, not int,
171 where POSIX says socklen_t is required in portable programs.
172 This fixes a porting bug on hosts like 64-bit HP-UX, where
173 socklen_t is wider than int (Bug#8277).
174 (Fmake_network_process, server_accept_connection):
175 (wait_reading_process_output, read_process_output):
176 Likewise.
177
178 * process.c: Rename or move locals to avoid shadowing.
179 (list_processes_1, Fmake_network_process):
180 (read_process_output_error_handler, exec_sentinel_error_handler):
181 Rename or move locals.
182 (Fmake_network_process): Define label "retry_connect" only if needed.
183 (Fnetwork_interface_info): Fix pointer signedness.
184 (process_send_signal): Add cast to avoid pointer signedness problem.
185 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
186 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
187
188 Make tparam.h and terminfo.c consistent.
189 * cm.c (tputs, tgoto, BC, UP): Remove extern decls. Include
190 tparam.h instead, since it declares them.
191 * cm.h (PC): Remove extern decl; tparam.h now does this.
192 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
193 * terminfo.c: Include tparam.h, to check interfaces.
194 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
195 (tparam): Adjust signature to match interface in tparam.h;
196 this removes some undefined behavior. Check that outstring and len
197 are zero, which they always are with Emacs.
198 * tparam.h (PC, BC, UP): New extern decls.
199
200 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
201 (xftfont_open): Rename locals to avoid shadowing.
202
203 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
204 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
205 (OTF_TAG_SYM): Omit macro if not needed.
206 (ftfont_list): Remove unused local.
207 (get_adstyle_property, ftfont_pattern_entity):
208 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
209 Rename locals to avoid shadowing.
210
211 * xfont.c (xfont_list_family): Mark var as initialized.
212
213 * xml.c (make_dom): Now static.
214
215 * composite.c (composition_compute_stop_pos): Rename local to
216 avoid shadowing.
217 (composition_reseat_it): Remove unused locals.
218 (find_automatic_composition, composition_adjust_point): Likewise.
219 (composition_update_it): Mark var as initialized.
220 (find_automatic_composition): Mark vars as initialized,
221 with a FIXME (Bug#8290).
222
223 character.h: Rename locals to avoid shadowing.
224 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
225 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
226 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
227 (BUF_DEC_POS): Be more systematic about renaming local temporaries
228 to avoid shadowing.
229
230 * textprop.c (property_change_between_p): Remove; unused.
231
232 * intervals.c (interval_start_pos): Now static.
233
234 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
235
236 * atimer.c (start_atimer, append_atimer_lists, set_alarm): Rename
237 locals to avoid shadowing.
238
239 * sound.c (wav_play, au_play, Fplay_sound_internal):
240 Fix pointer signedness.
241 (alsa_choose_format): Remove unused local var.
242 (wav_play): Initialize a variable to 0, to prevent undefined
243 behavior (Bug#8278).
244
245 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
246
247 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
248
249 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
250 clobbering (Bug#8298).
251 * sysdep.c (sys_subshell): Likewise.
252 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
253
254 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
255 This should get cleaned up, so that child_setup has the
256 same signature on all platforms.
257
258 * callproc.c (call_process_cleanup): Now static.
259 (relocate_fd): Rename locals to avoid shadowing.
260
261 2011-03-22 Chong Yidong <cyd@stupidchicken.com>
262
263 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
264 not to be necessary, and produces flickering.
265
266 2011-03-20 Glenn Morris <rgm@gnu.org>
267
268 * config.in: Remove file.
269
270 2011-03-20 Juanma Barranquero <lekktu@gmail.com>
271
272 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
273 are now in src/globals.h.
274 (syms_of_minibuf): Remove spurious & from previous change.
275
276 2011-03-20 Leo <sdl.web@gmail.com>
277
278 * minibuf.c (completing-read-function): New variable.
279 (completing-read-default): Rename from completing-read.
280 (completing-read): Call completing-read-function.
281
282 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
283
284 * xfaces.c (Fx_load_color_file):
285 Read color file from absolute filename (bug#8250).
286
287 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
288
289 * makefile.w32-in: Update dependencies.
290
291 2011-03-17 Eli Zaretskii <eliz@gnu.org>
292
293 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
294
295 2011-03-17 Paul Eggert <eggert@cs.ucla.edu>
296
297 Fix more problems found by GCC 4.5.2's static checks.
298
299 * process.c (make_serial_process_unwind, send_process_trap):
300 (sigchld_handler): Now static.
301
302 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
303 That way, the code declares only the vars that it needs.
304 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
305 * s/cygwin.h (PTY_ITERATION): Likewise.
306 * s/darwin.h (PTY_ITERATION): Likewise.
307 * s/gnu-linux.h (PTY_ITERATION): Likewise.
308
309 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
310 * process.c (allocate_pty): Don't declare stb unless it's needed.
311
312 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
313 (CONSTANTLIM): Remove; unused.
314 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
315 Define only if needed.
316
317 * unexelf.c (unexec): Name an expression,
318 to avoid gcc -Wbad-function-cast warning.
319 Use a different way to cause a compilation error if anyone uses
320 n rather than nn, a way that does not involve shadowing.
321 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
322
323 * deps.mk (unexalpha.o): Remove; unused.
324
325 New file unexec.h, the (simple) interface for unexec (Bug#8267).
326 * unexec.h: New file.
327 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
328 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
329 Depend on unexec.h.
330 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
331 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
332 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
333 Change as necessary to match prototype in unexec.h.
334
335 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
336 shadowing.
337 (back_comment, skip_chars): Mark vars as initialized.
338
339 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
340 Rename locals to avoid shadowing.
341
342 * lread.c (read1): Rewrite so as not to use empty "else".
343 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
344
345 * print.c (Fredirect_debugging_output): Fix pointer signedess.
346
347 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
348 warning when compiling print.c.
349
350 * font.c (font_unparse_fcname): Abort in an "impossible" situation
351 instead of using an uninitialized var.
352 (font_sort_entities): Mark var as initialized.
353
354 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
355
356 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
357 pointers to constants.
358 (font_parse_fcname): Remove unused vars.
359 (font_delete_unmatched): Now static.
360 (font_get_spec): Remove; unused.
361 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
362 (font_update_drivers, Ffont_get_glyphs, font_add_log):
363 Rename or move locals to avoid shadowing.
364
365 * fns.c (require_nesting_list, require_unwind): Now static.
366 (Ffillarray): Rename locals to avoid shadowing.
367
368 * floatfns.c (domain_error2): Define only if needed.
369 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
370
371 * alloc.c (mark_backtrace): Move decl from here ...
372 * lisp.h: ... to here, so that it can be checked.
373
374 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
375 (Fdefvar): Rewrite so as not to use empty "else".
376 (lisp_indirect_variable): Name an expression,
377 to avoid gcc -Wbad-function-cast warning.
378 (Fdefvar): Rename locals to avoid shadowing.
379
380 * callint.c (quotify_arg, quotify_args): Now static.
381 (Fcall_interactively): Rename locals to avoid shadowing.
382 Use const pointer when appropriate.
383
384 * lisp.h (get_system_name, get_operating_system_release):
385 Move decls here, to check interfaces.
386 * process.c (get_operating_system_release): Move decl to lisp.h.
387 * xrdb.c (get_system_name): Likewise.
388 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
389 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
390 some of which prompt warnings from gcc -Wbad-function-cast.
391 (Fformat_time_string, Fencode_time, Finsert_char):
392 (Ftranslate_region_internal, Fformat):
393 Rename or remove local vars to avoid shadowing.
394 (Ftranslate_region_internal): Mark var as initialized.
395
396 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
397 avoid shadowing.
398
399 * lisp.h (eassert): Check that the argument compiles, even if
400 ENABLE_CHECKING is not defined.
401
402 * data.c (Findirect_variable): Name an expression, to avoid
403 gcc -Wbad-function-cast warning.
404 (default_value, arithcompare, arith_driver, arith_error): Now static.
405 (store_symval_forwarding): Rename local to avoid shadowing.
406 (Fmake_variable_buffer_local, Fmake_local_variable): Mark
407 variables as initialized.
408 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
409
410 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
411 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
412 Rename locals to avoid shadowing.
413 (mark_stack): Move local variables into the #ifdef region where
414 they're used.
415 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
416 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
417 needed otherwise.
418 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
419 (GC_STRING_CHARS): Remove; not used.
420 (Fmemory_limit): Cast sbrk's returned value to char *.
421
422 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
423 avoids undefined behavior in theory.
424
425 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
426
427 Use functions, not macros, for up- and down-casing (Bug#8254).
428 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
429 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
430 to use the following functions instead of these macros.
431 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
432 EMACS_INT, since callers assume the returned value fits in int.
433 (upcase1): Likewise, for UPCASE_TABLE.
434 (uppercasep, lowercasep, upcase): New static inline functions.
435 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
436 the race-condition problem in the old DOWNCASE.
437
438 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
439 Rename locals to avoid shadowing.
440 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
441 (regex_compile, re_search_2, re_match_2_internal):
442 Remove unused local vars.
443 (FREE_VAR): Rewrite so as not to use empty "else",
444 which gcc can warn about.
445 (regex_compile, re_match_2_internal): Mark locals as initialized.
446 (RETALLOC_IF): Define only if needed.
447 (WORDCHAR_P): Likewise. This one is never needed, but is used
448 only in a comment talking about a compiler bug, so put inside
449 the #if 0 of that comment.
450 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
451 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
452 Remove; unused.
453
454 * search.c (boyer_moore): Rename locals to avoid shadowing.
455 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
456 (PREV_CHAR_BOUNDARY): Likewise.
457
458 * search.c (simple_search): Remove unused var.
459
460 * dired.c (compile_pattern): Move decl from here ...
461 * lisp.h: ... to here, so that it can be checked.
462 (struct re_registers): New forward decl.
463
464 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
465
466 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
467 All uses changed.
468 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
469 Rename locals to avoid shadowing.
470 (Fvertical_motion): Mark locals as initialized.
471
472 * casefiddle.c (casify_object, casify_region): Now static.
473 (casify_region): Mark local as initialized.
474
475 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
476
477 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
478 New macros, so that the caller can use some names other than
479 gcpro1, gcpro2, etc.
480 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
481 of the new macros.
482 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
483 argument, for consistency with GCPRO2_VAR, etc: it is now the
484 prefix of the variable, not the variable itself. All uses
485 changed.
486 * dired.c (directory_files_internal, file_name_completion):
487 Rename locals to avoid shadowing.
488
489 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
490 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
491 dired.c's scmp function, had undefined behavior.
492 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
493 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
494 * buffer.h: ... to here, because these macros use current_buffer,
495 and the new implementation with inline functions needs to have
496 current_buffer in scope now, rather than later when the macros
497 are used.
498 (downcase, upcase1): New static inline functions.
499 (DOWNCASE, UPCASE1): Reimplement using these functions.
500 This avoids undefined behavior in expressions like
501 DOWNCASE (x) == DOWNCASE (y), which previously suffered
502 from race conditions in accessing the global variables
503 case_temp1 and case_temp2.
504 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
505 * lisp.h (case_temp1, case_temp2): Remove their decls.
506 * character.h (ASCII_CHAR_P): Move from here ...
507 * lisp.h: ... to here, so that the inline functions mentioned
508 above can use them.
509
510 * dired.c (directory_files_internal_unwind): Now static.
511
512 * fileio.c (file_name_as_directory, directory_file_name):
513 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
514 Now static.
515 (file_name_as_directory): Use const pointers when appropriate.
516 (Fexpand_file_name): Likewise. In particular, newdir might
517 point at constant storage, so make it a const pointer.
518 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
519 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
520 signedness issues.
521 (Fset_file_times, Finsert_file_contents, auto_save_error):
522 Rename locals to avoid shadowing.
523
524 * minibuf.c (choose_minibuf_frame_1): Now static.
525 (Ftry_completion, Fall_completions): Rename or remove locals
526 to avoid shadowing.
527
528 * marker.c (bytepos_to_charpos): Remove; unused.
529
530 * lisp.h (verify_bytepos, count_markers): New decls,
531 so that gcc does not warn that these functions aren't declared.
532
533 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
534 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
535 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
536 (copy_text): Remove unused local var.
537
538 * filelock.c (within_one_second): Now static.
539 (lock_file_1): Rename local to avoid shadowing.
540
541 * buffer.c (fix_overlays_before): Mark locals as initialized.
542 (fix_start_end_in_overlays): Likewise. This function should be
543 simplified by using pointers-to-pointers, but that's a different
544 matter.
545 (switch_to_buffer_1): Now static.
546 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
547 (report_overlay_modification): Rename locals to avoid shadowing.
548
549 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
550 Fix pointer signedness issue.
551 (sys_subshell): Mark local as volatile if checking for lint,
552 to suppress a gcc -Wclobbered warning that does not seem to be right.
553 (MAXPATHLEN): Define only if needed.
554
555 * process.c (serial_open, serial_configure): Move decls from here ...
556 * systty.h: ... to here, so that they can be checked.
557
558 * fns.c (get_random, seed_random): Move extern decls from here ...
559 * lisp.h: ... to here, so that they can be checked.
560
561 * sysdep.c (reset_io): Now static.
562 (wait_for_termination_signal): Remove; unused.
563
564 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
565 (copy_keymap_item, append_key, push_text_char_description):
566 Now static.
567 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
568 (DENSE_TABLE_SIZE): Remove; unused.
569 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
570 (describe_map_tree):
571 Rename locals to avoid shadowing.
572
573 * keyboard.c: Declare functions static if they are not used elsewhere.
574 (echo_char, echo_dash, cmd_error, top_level_2):
575 (poll_for_input, handle_async_input): Now static.
576 (read_char, kbd_buffer_get_event, make_lispy_position):
577 (make_lispy_event, make_lispy_movement, apply_modifiers):
578 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
579 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
580 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
581 (read_key_sequence, read_char): Mark locals as initialized.
582 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
583
584 * keyboard.h (make_ctrl_char): New decl.
585 (mark_kboards): Move decl here ...
586 * alloc.c (mark_kboards): ... from here.
587
588 * lisp.h (force_auto_save_soon): New decl.
589
590 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
591 (DEFINE_DUMMY_FUNCTION): New macro.
592 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
593 Use it.
594 (main): Add casts to avoid warnings
595 if GCC considers string literals to be constants.
596
597 * lisp.h (fatal_error_signal): Add decl, since it's exported.
598
599 * dbusbind.c: Pointer signedness fixes.
600 (xd_signature, xd_append_arg, xd_initialize):
601 (Fdbus_call_method, Fdbus_call_method_asynchronously):
602 (Fdbus_method_return_internal, Fdbus_method_error_internal):
603 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
604 (Fdbus_register_signal): Use SSDATA when the context wants char *.
605
606 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
607 if GCC considers string literals to be constants.
608 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
609
610 2011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
611
612 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
613 (print_preprocess, print_object): New macro to fix last change.
614
615 * print.c (print_preprocess): Don't forget font objects.
616
617 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
618
619 * emacs.c (USAGE3): Doc fixes.
620
621 2011-03-15 Andreas Schwab <schwab@linux-m68k.org>
622
623 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
624 structure.
625
626 2011-03-14 Juanma Barranquero <lekktu@gmail.com>
627
628 * lisp.h (VWindow_system, Qfile_name_history):
629 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
630 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
631 (w32_system_caret_x, w32_system_caret_y): Declare extern.
632
633 * w32select.c: Don't #include "keyboard.h".
634 (run_protected): Add extern declaration for waiting_for_input.
635
636 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
637 * w32console.c (detect_input_pending, read_input_pending)
638 (encode_terminal_code):
639 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
640 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
641 (w32_system_caret_y, Qfile_name_history):
642 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
643 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
644 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
645 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
646 * w32proc.c (Qlocal, report_file_error):
647 * w32term.c (Vwindow_system, updating_frame):
648 * w32uniscribe.c (initialized, uniscribe_font_driver):
649 Remove unneeded extern declarations.
650
651 2011-03-14 Chong Yidong <cyd@stupidchicken.com>
652
653 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
654
655 2011-03-13 Chong Yidong <cyd@stupidchicken.com>
656
657 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
658 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
659 These macros can no longer be used for assignment.
660
661 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
662 struct members directly, instead of using BUF_BEGV etc.
663 (record_buffer_markers, fetch_buffer_markers): New functions for
664 recording and fetching special buffer markers.
665 (set_buffer_internal_1, set_buffer_temp): Use them.
666
667 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
668
669 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
670
671 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
672 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
673
674 * xdisp.c (hscroll_window_tree):
675 (reconsider_clip_changes): Use PT instead of BUF_PT.
676
677 2011-03-13 Eli Zaretskii <eliz@gnu.org>
678
679 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
680 $(EMACS_ROOT)/lib/intprops.h.
681
682 2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
683
684 Fix more problems found by GCC 4.5.2's static checks.
685
686 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
687 to unsigned char * to avoid compiler diagnostic.
688 (xg_free_frame_widgets): Make it clear that a local variable is
689 needed only if USE_GTK_TOOLTIP.
690 (gdk_window_get_screen): Make it clear that this macro is needed
691 only if USE_GTK_TOOLTIP.
692 (int_gtk_range_get_value): New function, which avoids a diagnostic
693 from gcc -Wbad-function-cast.
694 (xg_set_toolkit_scroll_bar_thumb): Use it.
695 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
696 diagnostic from gcc -Wbad-function-cast.
697 (get_utf8_string, xg_get_file_with_chooser):
698 Rename locals to avoid shadowing.
699 (create_dialog): Move locals to avoid shadowing.
700
701 * xgselect.c (xg_select): Remove unused var.
702
703 * image.c (four_corners_best): Mark locals as initialized.
704 (gif_load): Initialize transparent_p to zero (Bug#8238).
705 Mark another local as initialized.
706 (my_png_error, my_error_exit): Mark with NO_RETURN.
707
708 * image.c (clear_image_cache): Now static.
709 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
710 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
711 (x_edge_detection): Remove unnecessary cast that
712 gcc -Wbad-function-cast diagnoses.
713 (gif_load): Fix pointer signedness.
714 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
715 (jpeg_load, gif_load): Rename locals to avoid shadowing.
716
717 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
718
719 Improve quality of tests for time stamp overflow.
720 For example, without this patch (encode-time 0 0 0 1 1
721 1152921504606846976) returns the obviously-bogus value (-948597
722 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
723 reports time overflow. See
724 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
725 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
726 * editfns.c: Include limits.h and intprops.h.
727 (TIME_T_MIN, TIME_T_MAX): New macros.
728 (time_overflow): Move earlier, to before first use.
729 (hi_time, lo_time): New functions, for an accurate test for
730 out-of-range times.
731 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
732 (Fget_internal_run_time): Don't assume time_t fits in int.
733 (make_time): Use list2 instead of Fcons twice.
734 (Fdecode_time): More accurate test for out-of-range times.
735 (check_tm_member): New function.
736 (Fencode_time): Use it, to test for out-of-range times.
737 (lisp_time_argument): Don't rely on undefined left-shift and
738 right-shift behavior when checking for time stamp overflow.
739
740 * editfns.c (time_overflow): New function, refactoring common code.
741 (Fformat_time_string, Fdecode_time, Fencode_time):
742 (Fcurrent_time_string): Use it.
743
744 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
745 * dired.c (make_time): Move to ...
746 * editfns.c (make_time): ... here.
747 * systime.h: Note the move.
748
749 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
750
751 * fringe.c (update_window_fringes): Remove unused variables.
752
753 * unexmacosx.c (copy_data_segment): Also copy __got section.
754 (Bug#8223)
755
756 2011-03-12 Eli Zaretskii <eliz@gnu.org>
757
758 * termcap.c [MSDOS]: Include "msdos.h".
759 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
760 Constify `char *' arguments and their references according to
761 prototypes in tparam.h.
762
763 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
764
765 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
766 Adapt all references accordingly.
767
768 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
769
770 2011-03-11 Tom Tromey <tromey@redhat.com>
771
772 * buffer.c (syms_of_buffer): Remove obsolete comment.
773
774 2011-03-11 Eli Zaretskii <eliz@gnu.org>
775
776 * termhooks.h (encode_terminal_code): Declare prototype.
777
778 * msdos.c (encode_terminal_code): Don't declare prototype.
779
780 * term.c (encode_terminal_code): Now external again, used by
781 w32console.c and msdos.c.
782
783 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
784 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
785
786 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
787
788 Fix some minor problems found by GCC 4.5.2's static checks.
789
790 * fringe.c (update_window_fringes): Mark locals as initialized
791 (Bug#8227).
792 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
793
794 * alloc.c (mark_fringe_data): Move decl from here ...
795 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
796 to check its interface.
797 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
798
799 * fontset.c (free_realized_fontset): Now static.
800 (Fset_fontset_font): Rename local to avoid shadowing.
801 (fontset_font): Mark local as initialized.
802 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
803
804 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
805
806 * xselect.c (x_disown_buffer_selections): Remove; not used.
807 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
808 (x_own_selection, Fx_disown_selection_internal): Rename locals
809 to avoid shadowing.
810 (x_handle_dnd_message): Remove local to avoid shadowing.
811
812 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
813 so that the caller can use some name other than gcpro1.
814 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
815 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
816 (Fx_backspace_delete_keys_p):
817 Use them to avoid shadowing, and rename vars to avoid shadowing.
818 (x_decode_color, x_set_name, x_window): Now static.
819 (Fx_create_frame): Add braces to silence GCC warning.
820 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
821 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
822 Remove unused locals.
823 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
824 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
825 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
826 macros.
827
828 * xterm.h (x_mouse_leave): New decl.
829
830 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
831 Remove unused functions.
832 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
833 (x_calc_absolute_position): Now static.
834 (XTread_socket): Don't define label "out" unless it's used.
835 Don't declare local "event" unless it's used.
836 (x_iconify_frame, x_free_frame_resources): Don't declare locals
837 unless they are used.
838 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
839 (x_fatal_error_signal): Remove; not used.
840 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
841 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
842 (x_error_catcher, x_connection_closed, x_error_handler):
843 (x_error_quitter, xembed_send_message, x_iconify_frame):
844 (my_log_handler): Rename locals to avoid shadowing.
845 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
846 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
847
848 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
849 or move locals to avoid shadowing.
850 (tty_defined_color, merge_face_heights): Now static.
851 (free_realized_faces_for_fontset): Remove; not used.
852 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
853 does not deduce is never used uninitialized.
854 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
855 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
856
857 * terminal.c (store_terminal_param): Now static.
858
859 * xmenu.c (menu_highlight_callback): Now static.
860 (set_frame_menubar): Remove unused local.
861 (xmenu_show): Rename parameter to avoid shadowing.
862 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
863 since they might point to immutable storage.
864 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
865 since it's unused otherwise.
866
867 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
868 Add a FIXME, since the code still doesn't look right. (Bug#8215)
869 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
870 avoids a gcc -Wuninitialized diagnostic.
871 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
872 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
873 does not deduce are never used uninitialized.
874
875 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
876
877 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
878 * window.c (window_loop, size_window):
879 (run_window_configuration_change_hook, enlarge_window): Likewise.
880
881 * window.c (display_buffer): Now static.
882 (size_window): Mark variables that gcc -Wuninitialized
883 does not deduce are never used uninitialized.
884 * window.h (check_all_windows): New decl, to forestall
885 gcc -Wmissing-prototypes diagnostic.
886 * dispextern.h (bidi_dump_cached_states): Likewise.
887
888 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
889 shadowing.
890 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
891 Include <limits.h>.
892 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
893 and to avoid gcc -Wuninitialized warning.
894 (load_charset_map): Mark variables that gcc -Wuninitialized
895 does not deduce are never used uninitialized.
896 (load_charset): Abort instead of using uninitialized var (Bug#8229).
897
898 * coding.c (coding_set_source, coding_set_destination):
899 Use "else { /* comment */ }" rather than "else /* comment */;"
900 for clarity, and to avoid gcc -Wempty-body warning.
901 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
902 a block, when the outer 'i' will do.
903 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
904 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
905 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
906 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
907 (Fdecode_sjis_char, Fdefine_coding_system_internal):
908 Rename locals to avoid shadowing.
909 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
910 * coding.c (emacs_mule_char, encode_invocation_designation):
911 Now static, since they're not used elsewhere.
912 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
913 (decode_coding_object, encode_coding_object, detect_coding_system):
914 (decode_coding_emacs_mule): Mark variables that gcc
915 -Wuninitialized does not deduce are never used uninitialized.
916 (detect_coding_iso_2022): Initialize a local variable that might
917 be used uninitialized. Leave a FIXME because it's not clear that
918 this initialization is needed. (Bug#8211)
919 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
920 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
921 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
922 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
923 Remove unused macros.
924
925 * category.c (hash_get_category_set): Remove unused local var.
926 (copy_category_table): Now static, since it's not used elsewhere.
927 * character.c (string_count_byte8): Likewise.
928
929 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
930 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
931
932 * chartab.c (copy_sub_char_table): Now static, since it's not used
933 elsewhere.
934 (sub_char_table_ref_and_range, char_table_ref_and_range):
935 Rename locals to avoid shadowing.
936 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
937
938 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
939 (BIDI_BOB): Remove unused macro.
940
941 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
942 deduce are never used uninitialized.
943 * term.c (encode_terminal_code): Likewise.
944
945 * term.c (encode_terminal_code): Now static. Remove unused local.
946
947 * tparam.h: New file.
948 * term.c, tparam.h: Include it.
949 * deps.mk (term.o, tparam.o): Depend on tparam.h.
950 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
951 Move these decls to tparam.h, and make them agree with what
952 is actually in tparam.c. The previous trick of using incompatible
953 decls in different modules does not conform to the C standard.
954 All callers of tparam changed to use tparam's actual API.
955 * tparam.c (tparam1, tparam, tgoto):
956 Use const pointers where appropriate.
957
958 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
959 * cm.h (struct cm): Likewise.
960 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
961 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
962 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
963 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
964 (turn_on_face, init_tty): Likewise.
965 * termchar.h (struct tty_display_info): Likewise.
966
967 * term.c (term_mouse_position): Rename local to avoid shadowing.
968
969 * alloc.c (mark_ttys): Move decl from here ...
970 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
971
972 2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
973
974 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
975
976 2011-03-09 Juanma Barranquero <lekktu@gmail.com>
977
978 * search.c (compile_pattern_1): Remove argument regp, unused since
979 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
980 (compile_pattern): Don't pass it.
981
982 2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
983
984 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
985 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
986 for ! HAVE_GTK3.
987 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
988
989 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
990
991 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
992 gdk_window_get_screen, gdk_window_get_geometry,
993 gdk_x11_window_lookup_for_display and GDK_KEY_g.
994 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
995 (xg_get_pixbuf_from_pixmap): New function.
996 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
997 to Pixmap, take frame as parameter, remove GdkColormap parameter.
998 Call xg_get_pixbuf_from_pixmap instead of
999 gdk_pixbuf_get_from_drawable.
1000 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1001 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1002 (xg_check_special_colors): Use GtkStyleContext and its functions
1003 for HAVE_GTK3.
1004 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1005 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1006 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
1007 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
1008 gtk_widget_get_preferred_size.
1009 (xg_frame_resized): gdk_window_get_geometry only takes 5
1010 parameters.
1011 (xg_win_to_widget, xg_event_is_for_menubar): Call
1012 gdk_x11_window_lookup_for_display.
1013 (xg_set_widget_bg): New function.
1014 (delete_cb): New function.
1015 (xg_create_frame_widgets): connect delete-event to delete_cb.
1016 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
1017 (xg_set_background_color): Call xg_set_widget_bg.
1018 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1019 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1020 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1021 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1022 if ! HAVE_GTK3.
1023 (update_frame_tool_bar): Call gtk_widget_hide.
1024 (xg_initialize): Use GDK_KEY_g.
1025
1026 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1027 if ! HAVE_GTK3
1028 (x_session_initialize): Call gdk_x11_set_sm_client_id.
1029
1030 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1031 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1032 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1033
1034 2011-03-08 Juanma Barranquero <lekktu@gmail.com>
1035
1036 * w32xfns.c (select_palette): Check success of RealizePalette against
1037 GDI_ERROR, not zero.
1038
1039 2011-03-07 Ben Key <bkey76@gmail.com>
1040
1041 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1042 (file_dialog_callback): Fix locating the window handle of the File Name
1043 text field. After disabling it, set focus on the list control.
1044 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1045 Name text field to "Current Directory" if it does not already have
1046 another value. (Bug#8181)
1047
1048 2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1049
1050 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1051 parameter for hbar cursors. Based on a patch by Ben Key
1052 <bkey76@gmail.com>.
1053
1054 2011-03-06 Chong Yidong <cyd@stupidchicken.com>
1055
1056 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1057 change.
1058
1059 2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1060
1061 current_column: Now returns EMACS_INT, fixing some iftc
1062 that was introduced in the 2002-06-02 change "temporarily"; see
1063 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
1064 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1065 * cmds.c (internal_self_insert): Likewise.
1066 * indent.c (Fcurrent_column): Likewise.
1067 * keymap.c (describe_command): Likewise.
1068 * minibuf.c (read_minibuf): Likewise.
1069 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1070 to int.
1071 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1072 Likewise.
1073 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1074 not int or double, if they might contain a column number.
1075 * indent.c (current_column, Findent_to, indented_beyond_p):
1076 (compute_motion, vmotion): Likewise.
1077 * keymap.c (describe_command): Likewise.
1078 * xdisp.c (pint2str): Likewise.
1079 * indent.c (last_known_column): Now EMACS_INT, not int.
1080 * minibuf.c (minibuf_prompt_width): Likewise.
1081 * indent.c (current_column, current_column_1, position_indentation):
1082 Return EMACS_INT, not double.
1083 * lisp.h (current_column): Likewise.
1084 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1085 All callers changed.
1086 * lisp.h (indented_beyond_p): Likewise.
1087
1088 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1089 from xdisp.c, and make static, since these are used only here.
1090 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1091 Remove decls.
1092
1093 * cmds.c (internal_self_insert): Reindent to match Emacs style.
1094 * xdisp.c (redisplay_window): Likewise.
1095
1096 * xdisp.c: Rename or move local decls to avoid shadowing.
1097 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1098 (message_dolog, message_with_string, redisplay_internal):
1099 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1100 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1101 (display_line, display_string, rows_from_pos_range):
1102 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1103 Rename or move local decls.
1104 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
1105 (produce_glyphless_glyph): Make a pointer "const"
1106 since it might point to immutable storage.
1107 (update_window_cursor): Now static, since it's not used elsewhere.
1108 (SKIP_GLYPHS): Removed unused macro.
1109
1110 2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1111
1112 * window.c (Fnext_window): Doc fix. (Bug#5567)
1113
1114 2011-03-05 Chong Yidong <cyd@stupidchicken.com>
1115
1116 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1117
1118 2011-03-02 Ken Brown <kbrown@cornell.edu>
1119
1120 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1121
1122 2011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1123
1124 Work around some portability problems with symlinks.
1125
1126 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1127 generate a special message for it. Suggested by Eli Zaretskii in
1128 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1129 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1130 Simplify the code by assuming that the readlink and symlink calls
1131 exist, even if they always fail on this host.
1132 (Ffile_readable_p): Likewise, for fifos.
1133 * config.in: Regenerate.
1134
1135 2011-02-27 Chong Yidong <cyd@stupidchicken.com>
1136
1137 * frame.c (store_frame_param): Don't store value directly in
1138 buffer_list and buried_buffer_list; copy the list and remove dead
1139 buffers (Bug#7898).
1140
1141 2011-02-27 Eli Zaretskii <eliz@gnu.org>
1142
1143 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1144
1145 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
1146
1147 * w32.c (symlink, readlink): New stub functions.
1148
1149 2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1150
1151 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1152 This avoids a gcc warning in some configurations.
1153
1154 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1155
1156 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1157 (set_menu_bar_lines, x_get_resource_string): New decls.
1158 * msdos.c (set_menu_bar_lines): Omit decl.
1159
1160 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1161 It's always given int values and used as an int. This suppresses
1162 a gcc "comparison of unsigned expression >= 0" warning in some
1163 configurations.
1164
1165 * dispnew.c: Rename locals to avoid shadowing.
1166 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1167
1168 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1169
1170 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1171 (copy_glyph_row_contents): Remove; not used.
1172 (frame_row_to_window, check_current_matrix_flags):
1173 (window_change_signal): Now static, since they're not used elsewhere.
1174 (check_current_matrix_flags): Surround with "#if 0", since its
1175 only use is in a comment. Maybe both the comment and the "#if 0"
1176 stuff should be removed?
1177
1178 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1179 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1180 contexts that actually need it.
1181
1182 2011-02-26 Eli Zaretskii <eliz@gnu.org>
1183
1184 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1185 (lstat): Define for DJGPP < 2.04.
1186
1187 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1188
1189 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1190 as per recent filemodestring API change. Reported by Jonas Öster in
1191 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1192
1193 2011-02-23 Ben Key <bkey76@gmail.com>
1194
1195 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1196 directly, for bar cursors.
1197
1198 2011-02-23 Chong Yidong <cyd@stupidchicken.com>
1199
1200 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1201 into the frame's cursor_width.
1202
1203 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1204
1205 * print.c (print_object): Never print old-style backquotes.
1206 Obey escapeflag for hash tables as well.
1207
1208 2011-02-23 Kenichi Handa <handa@m17n.org>
1209
1210 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
1211 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
1212
1213 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1214
1215 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1216
1217 2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1218
1219 * lread.c (openp): Correct Boolean typo in last commit.
1220
1221 2011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1222
1223 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
1224 key to Emacs, treat as unmodified (go to input manager processing).
1225
1226 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1227
1228 Assume S_ISLNK etc. work, since gnulib supports this.
1229 * config.in: Regenerate.
1230 * dired.c (lstat): Remove.
1231 (file_name_completion): Assume S_ISDIR works.
1232 (file_name_completion_stat): Assume S_ISLNK works.
1233 Do not bother calling stat unless lstat says it's a symlink.
1234 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1235 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1236 (check_writable, Ffile_writable_p, Fset_file_times):
1237 Assume S_ISDIR works.
1238 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1239 fifos exist.
1240 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
1241 * filelock.c (S_ISLNK): Remove.
1242 * lread.c (openp): Assume S_ISDIR works.
1243 * xrdb.c (S_ISDIR): Remove.
1244
1245 2011-02-21 Eli Zaretskii <eliz@gnu.org>
1246
1247 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
1248 lib/makefile.w32-in.
1249 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1250 (GLOBAL_SOURCES): Remove filemode.c.
1251 (OBJ1): Remove $(BLD)/filemode.$(O).
1252
1253 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1254
1255 Import filemode module from gnulib.
1256 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1257 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1258 (filemode.o): Remove; this is now in ../lib.
1259 * dired.c: Include <filemode.h>.
1260 (filemodestring): Remove now-redundant decl.
1261 * config.in: Regenerate.
1262
1263 2011-02-20 Eli Zaretskii <eliz@gnu.org>
1264
1265 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1266 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1267
1268 2011-02-20 Christoph Scholtes <cschol2112@gmail.com>
1269
1270 * makefile.w32-in: Remove md5.$(O).
1271 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1272 lib/makefile.w32-in.
1273
1274 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
1275
1276 Import crypto/md5 and stdint modules from gnulib.
1277 * Makefile.in (base_obj): Remove md5.o, since this file
1278 is in lib now.
1279 * config.in: Regenerate.
1280 * md5.h, md5.h: Move to ../lib.
1281 * deps.mk (md5.o): Remove.
1282 (fns.o): Depend on ../lib/md5.h, not md5.h.
1283
1284 2011-02-19 Eli Zaretskii <eliz@gnu.org>
1285
1286 * termcap.c (tputs): Don't declare baud_rate.
1287
1288 * s/msdos.h (strtold): Define to _strtold.
1289
1290 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1291
1292 * process.c (Fstart_process, Fmake_serial_process)
1293 (Fmake_network_process, server_accept_connection):
1294 Use empty_unibyte_string.
1295
1296 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1297
1298 * lread.c (Qdir_ok): New constant.
1299 (syms_of_lread): Initialize it.
1300 (openp): Don't ignore directories if the predicate returns dir-ok.
1301
1302 2011-02-18 Eli Zaretskii <eliz@gnu.org>
1303
1304 * xdisp.c (display_line): Fix the change made for bug#7939.
1305
1306 * terminal.c (create_terminal): Use default-keyboard-coding-system
1307 and default-terminal-coding-system to initialize coding systems of
1308 the new terminal. (Bug#7840)
1309
1310 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1311
1312 * lisp.h (BYTE_MARK_STACK): New macro.
1313 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1314
1315 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1316 (struct byte_stack): Only define `top' and `bottom' if used.
1317 (mark_byte_stack): Only define if used.
1318 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1319 is not set.
1320 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1321
1322 * term.c (OUTPUT_IF): Use OUTPUT.
1323
1324 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1325 redundantly scan byte-code stacks, catchlist, and handlerlist.
1326
1327 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1328
1329 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1330 (Fns_read_file_name): Replace B_ with BVAR.
1331
1332 * nsterm.m (ns_term_init): Use KVAR.
1333
1334 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1335
1336 * msdos.c (internal_terminal_init): Use KVAR.
1337
1338 * w32fns.c (Fx_create_frame): Use KVAR.
1339
1340 * w32term.c (w32_create_terminal): Use KVAR.
1341
1342 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
1343 (getloadavg): Declare prototype which was removed from lisp.h.
1344
1345 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1346
1347 * fileio.c (Finsert_file_contents, Fwrite_region):
1348 Remove references to buffer_file_type.
1349 (syms_of_fileio): Don't intern and staticpro
1350 find-buffer-file-type.
1351
1352 * callproc.c (syms_of_callproc): Remove references to
1353 buffer_file_type.
1354
1355 * buffer.c (reset_buffer_local_variables): Don't set
1356 buffer_file_type.
1357 (init_buffer_once): Likewise.
1358 (syms_of_buffer): Don't define buffer-file-type.
1359
1360 * buffer.h (struct buffer): Remove buffer_file_type.
1361
1362 2011-02-16 Tom Tromey <tromey@parfait>
1363
1364 * callint.c (Fcall_interactively): Update for change to field names.
1365 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1366 * cmds.c (Fself_insert_command): Update for change to field names.
1367 * keymap.c (Fcurrent_active_maps, Fkey_binding)
1368 (Fdescribe_buffer_bindings): Update for change to field names.
1369 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1370 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
1371 Update for change to field names.
1372 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1373 (echo_length, echo_truncate, cmd_error, command_loop_1)
1374 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1375 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1376 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1377 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
1378 Update for change to field names.
1379 * xfns.c (Fx_create_frame): Update for change to field names.
1380 * xterm.c (x_connection_closed, x_term_init): Update for change to
1381 field names.
1382 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
1383 Update for change to field names.
1384 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1385 Update for change to field names.
1386 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
1387 (delete_frame): Update for change to field names.
1388 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1389 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1390 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1391
1392 2011-02-16 Tom Tromey <tromey@redhat.com>
1393
1394 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1395
1396 2011-02-16 Tom Tromey <tromey@parfait>
1397
1398 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1399 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1400 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1401 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1402 (with_echo_area_buffer, setup_echo_area_for_printing)
1403 (set_message_1, update_menu_bar, update_tool_bar)
1404 (text_outside_line_unchanged_p, redisplay_internal)
1405 (try_scrolling, try_cursor_movement, redisplay_window)
1406 (try_window_reusing_current_matrix, row_containing_pos)
1407 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1408 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1409 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1410 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1411 BVAR.
1412 * window.c (window_display_table, unshow_buffer, window_loop)
1413 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1414 (select_window, Fforce_window_update, temp_output_buffer_show)
1415 (Fset_window_configuration, save_window_save): Replace B_ with
1416 BVAR.
1417 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1418 Replace B_ with BVAR.
1419 * undo.c (record_point, record_insert, record_delete)
1420 (record_marker_adjustment, record_first_change)
1421 (record_property_change, Fundo_boundary, truncate_undo_list)
1422 (Fprimitive_undo): Replace B_ with BVAR.
1423 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1424 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1425 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1426 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1427 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1428 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1429 (string_match_1, fast_looking_at, newline_cache_on_off)
1430 (search_command, search_buffer, simple_search, boyer_moore)
1431 (Freplace_match): Replace B_ with BVAR.
1432 * process.c (get_process, list_processes_1, Fstart_process)
1433 (Fmake_serial_process, Fmake_network_process)
1434 (read_process_output, send_process, exec_sentinel)
1435 (status_notify, setup_process_coding_systems): Replace B_ with
1436 BVAR.
1437 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1438 (strout, print_string, temp_output_buffer_setup, print_object):
1439 Replace B_ with BVAR.
1440 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
1441 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1442 Replace B_ with BVAR.
1443 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1444 (set_marker_both, set_marker_restricted_both, unchain_marker):
1445 Replace B_ with BVAR.
1446 * lread.c (readchar, unreadchar, openp, readevalloop)
1447 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1448 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1449 * keymap.c (Flocal_key_binding, Fuse_local_map)
1450 (Fcurrent_local_map, push_key_description)
1451 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1452 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1453 (read_key_sequence): Replace B_ with BVAR.
1454 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1455 * intervals.c (set_point_both, get_local_map): Replace B_ with
1456 BVAR.
1457 * insdel.c (check_markers, insert_char, insert_1_both)
1458 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1459 (adjust_after_replace, replace_range, del_range_2)
1460 (modify_region, prepare_to_modify_buffer)
1461 (Fcombine_after_change_execute): Replace B_ with BVAR.
1462 * indent.c (buffer_display_table, recompute_width_table)
1463 (width_run_cache_on_off, current_column, scan_for_column)
1464 (Findent_to, position_indentation, compute_motion, vmotion):
1465 Replace B_ with BVAR.
1466 * fringe.c (get_logical_cursor_bitmap)
1467 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1468 with BVAR.
1469 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1470 * font.c (font_at): Replace B_ with BVAR.
1471 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1472 Replace B_ with BVAR.
1473 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1474 (unlock_buffer): Replace B_ with BVAR.
1475 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1476 (Ffile_regular_p, Ffile_selinux_context)
1477 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1478 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1479 (Finsert_file_contents, choose_write_coding_system)
1480 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1481 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1482 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1483 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1484 (save_excursion_restore, Fprevious_char, Fchar_before)
1485 (general_insert_function, Finsert_char, Finsert_byte)
1486 (make_buffer_string_both, Finsert_buffer_substring)
1487 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1488 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1489 (Ftranslate_region_internal, save_restriction_restore)
1490 (Fchar_equal): Replace B_ with BVAR.
1491 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1492 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1493 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1494 * dired.c (directory_files_internal): Replace B_ with BVAR.
1495 * data.c (swap_in_symval_forwarding, set_internal)
1496 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1497 Replace B_ with BVAR.
1498 * composite.c (fill_gstring_header)
1499 (composition_compute_stop_pos, composition_adjust_point)
1500 (Ffind_composition_internal): Replace B_ with BVAR.
1501 * coding.c (decode_coding, encode_coding)
1502 (make_conversion_work_buffer, decode_coding_gap)
1503 (decode_coding_object, encode_coding_object)
1504 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1505 (Funencodable_char_position, Fcheck_coding_systems_region):
1506 Replace B_ with BVAR.
1507 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1508 with BVAR.
1509 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1510 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1511 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1512 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1513 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1514 * category.c (check_category_table, Fcategory_table)
1515 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1516 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1517 BVAR.
1518 * casefiddle.c (casify_object, casify_region): Replace B_ with
1519 BVAR.
1520 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1521 with BVAR.
1522 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1523 BVAR.
1524 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1525 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1526 with BVAR.
1527 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1528 (get_truename_buffer, Fget_buffer_create)
1529 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1530 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1531 (Fbuffer_local_value, buffer_lisp_local_variables)
1532 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1533 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1534 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1535 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1536 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1537 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1538 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1539 (record_overlay_string, overlay_strings, init_buffer_once)
1540 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1541
1542 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1543
1544 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1545 window is changed inside calls to do_pending_window_change.
1546 (Bug#8020)
1547
1548 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1549
1550 Remove no-longer needed getloadavg symbols.
1551 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1552 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1553 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1554 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1555 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1556 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1557 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1558 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1559 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1560 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1561 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1562 (LDAV_SYMBOL): Remove.
1563 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1564 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1565
1566 Import getloadavg module from gnulib.
1567 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1568 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1569 now does this.
1570 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1571 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1572 * config.in: Regenerate.
1573
1574 2011-02-15 Eli Zaretskii <eliz@gnu.org>
1575
1576 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1577
1578 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1579
1580 * print.c (float_to_string): Ensure that a decimal point is
1581 printed if using dtoastr (Bug#8033).
1582
1583 2011-02-14 Eli Zaretskii <eliz@gnu.org>
1584
1585 * msdos.c (IT_frame_up_to_date):
1586 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1587
1588 * dired.c (directory_files_internal):
1589 * fileio.c (Finsert_file_contents):
1590 * insdel.c (prepare_to_modify_buffer):
1591 * xdisp.c (pos_visible_p):
1592 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1593 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1594 Use B_ for the MS-Windows build.
1595
1596 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1597
1598 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1599 resource that specifies helvetica for menus and dialogs.
1600
1601 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1602 (apply_systemfont_to_menu): Set resources *menubar*font and
1603 *popup*font. Remove defflt.
1604 (set_frame_menubar, create_and_show_popup_menu):
1605 Call apply_systemfont_to_menu before lw_create_widget.
1606
1607 2011-02-14 Tom Tromey <tromey@redhat.com>
1608
1609 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1610
1611 * keyboard.h: Remove obsolete comment.
1612
1613 2011-02-14 Tom Tromey <tromey@parfait>
1614
1615 * composite.c (fill_gstring_header)
1616 (composition_compute_stop_pos, composition_adjust_point)
1617 (Ffind_composition_internal): Use B_.
1618 * intervals.c (set_point_both, get_local_map): Use B_.
1619 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1620 * process.c (get_process, list_processes_1, Fstart_process)
1621 (Fmake_serial_process, Fmake_network_process)
1622 (read_process_output, send_process, exec_sentinel)
1623 (status_notify, setup_process_coding_systems): Use B_.
1624 * bytecode.c (Fbyte_code): Use B_.
1625 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1626 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1627 (skip_syntaxes, scan_lists): Use B_.
1628 * lread.c (readchar, unreadchar, openp, readevalloop)
1629 (Feval_buffer, Feval_region): Use B_.
1630 * print.c (printchar, strout, print_string, PRINTDECLARE)
1631 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1632 (print_object): Use B_.
1633 * font.c (font_at): Use B_.
1634 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1635 Use B_.
1636 * callint.c (check_mark, Fcall_interactively): Use B_.
1637 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1638 (save_excursion_restore, Fprevious_char, Fchar_before)
1639 (general_insert_function, Finsert_char, Finsert_byte)
1640 (make_buffer_string_both, Finsert_buffer_substring)
1641 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1642 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1643 (Ftranslate_region_internal, save_restriction_restore)
1644 (Fchar_equal): Use B_.
1645 * data.c (swap_in_symval_forwarding, set_internal)
1646 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1647 Use B_.
1648 * undo.c (record_point, record_insert, record_delete)
1649 (record_marker_adjustment, record_first_change)
1650 (record_property_change, Fundo_boundary, truncate_undo_list)
1651 (Fprimitive_undo): Use B_.
1652 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1653 (string_match_1, fast_looking_at, newline_cache_on_off)
1654 (search_command, search_buffer, simple_search, boyer_moore)
1655 (Freplace_match): Use B_.
1656 * indent.c (buffer_display_table, recompute_width_table)
1657 (width_run_cache_on_off, current_column, scan_for_column)
1658 (Findent_to, position_indentation, compute_motion, vmotion):
1659 Use B_.
1660 * casefiddle.c (casify_object, casify_region): Use B_.
1661 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1662 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1663 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1664 (Ffile_regular_p, Ffile_selinux_context)
1665 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1666 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1667 (Finsert_file_contents, choose_write_coding_system)
1668 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1669 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1670 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1671 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1672 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1673 (set_marker_both, set_marker_restricted_both, unchain_marker):
1674 Use B_.
1675 * insdel.c (check_markers, insert_char, insert_1_both)
1676 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1677 (adjust_after_replace, replace_range, del_range_2)
1678 (modify_region, prepare_to_modify_buffer)
1679 (Fcombine_after_change_execute): Use B_.
1680 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1681 (unlock_buffer): Use B_.
1682 * keymap.c (Flocal_key_binding, Fuse_local_map)
1683 (Fcurrent_local_map, push_key_description)
1684 (Fdescribe_buffer_bindings): Use B_.
1685 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1686 (read_key_sequence): Use B_.
1687 * fringe.c (get_logical_cursor_bitmap)
1688 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1689 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1690 * xfaces.c (compute_char_face): Use B_.
1691 * character.c (chars_in_text, Fget_byte): Use B_.
1692 * category.c (check_category_table, Fcategory_table)
1693 (Fset_category_table, char_category_set): Use B_.
1694 * coding.c (decode_coding, encode_coding)
1695 (make_conversion_work_buffer, decode_coding_gap)
1696 (decode_coding_object, encode_coding_object)
1697 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1698 (Funencodable_char_position, Fcheck_coding_systems_region):
1699 Use B_.
1700 * charset.c (Ffind_charset_region): Use B_.
1701 * window.c (window_display_table, unshow_buffer, window_loop)
1702 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1703 (select_window, Fforce_window_update, temp_output_buffer_show)
1704 (Fset_window_configuration, save_window_save): Use B_.
1705 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1706 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1707 (with_echo_area_buffer, setup_echo_area_for_printing)
1708 (set_message_1, update_menu_bar, update_tool_bar)
1709 (text_outside_line_unchanged_p, redisplay_internal)
1710 (try_scrolling, try_cursor_movement, redisplay_window)
1711 (try_window_reusing_current_matrix, row_containing_pos)
1712 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1713 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1714 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1715 (get_window_cursor_type, note_mouse_highlight): Use B_.
1716 * frame.c (make_frame_visible_1): Use B_.
1717 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1718 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1719 (WINDOW_WANTS_MODELINE_P): Use B_.
1720 * syntax.h (Vstandard_syntax_table): Update.
1721 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1722 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1723 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1724 * character.h (FETCH_CHAR_ADVANCE): Update.
1725 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1726 * category.h (Vstandard_category_table): Update.
1727 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1728 names.
1729 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1730 * buffer.c (swapfield_): New macro.
1731 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1732 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1733 (Fget_buffer_create, clone_per_buffer_values)
1734 (Fmake_indirect_buffer, reset_buffer)
1735 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1736 (Fbuffer_local_value, buffer_lisp_local_variables)
1737 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1738 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1739 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1740 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1741 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1742 (Fbuffer_swap_text, Fset_buffer_multibyte)
1743 (swap_out_buffer_local_variables, record_overlay_string)
1744 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1745 Use B_.
1746 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1747 (BUFFER_INTERNAL_FIELD, B_): New macro.
1748 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1749
1750 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1751
1752 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1753 is null.
1754
1755 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1756
1757 * callproc.c (Fcall_process):
1758 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1759 comment.
1760
1761 2011-02-12 Martin Rudalics <rudalics@gmx.at>
1762
1763 * window.c (select_window): Check inhibit_point_swap argument when
1764 deciding whether to return immediately.
1765
1766 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
1767
1768 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1769 zero (Bug#7348).
1770
1771 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
1772
1773 * config.in (TERMINFO): New definition.
1774
1775 * s/netbsd.h: Use it to choose between terminfo and termcap
1776 (Bug#7642).
1777
1778 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1779
1780 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1781 The difference doesn't matter here, in practice, and sizeof is
1782 more portable to non-GCC compilers. Also, this makes the code
1783 match the already-existing comment.
1784
1785 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1786
1787 * process.c (create_process): Reset SIGPIPE handler in the child.
1788 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1789
1790 2011-02-12 Eli Zaretskii <eliz@gnu.org>
1791
1792 * xdisp.c <this_line_min_pos>: New variable.
1793 (move_it_in_display_line_to): Record in this_line_min_pos the
1794 smallest position iterated across.
1795 (display_line): Use this_line_min_pos to record the smallest
1796 position in the line even if it is not displayed due to
1797 hscrolling. (Bug#7939)
1798
1799 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1800
1801 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1802 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1803 (struct md5_ctx): Use it.
1804
1805 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1806 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1807 defined.
1808 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1809 FC_HINT_STYLE is supported.
1810
1811 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1812
1813 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1814 Make sure we don't do x_catch_errors twice.
1815
1816 2011-02-10 Glenn Morris <rgm@gnu.org>
1817
1818 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1819
1820 2011-02-09 Eli Zaretskii <eliz@gnu.org>
1821
1822 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1823 New macros.
1824 (globals.h, gl-stamp): New targets.
1825 (clean): Clean gl-stamp and globals.h.
1826
1827 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1828
1829 * Makefile.in (gl-stamp): Create globals.h here.
1830 (globals.h): Don't do it here.
1831 (mostlyclean): Clean globals.h and gl-stamp.
1832
1833 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1834
1835 * Makefile.in ($(otherobj)): Depend on globals.h.
1836 Otherwise 'make -j10' failed on my host, because the build lacked
1837 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1838
1839 2011-02-08 Tom Tromey <tromey@redhat.com>
1840
1841 * Makefile.in (NS_OBJC_OBJ): New variable.
1842 (base_obj): Rename from 'obj'.
1843 (obj): New variable.
1844 (globals.h, gl-stamp, $(obj)): New targets.
1845 (GLOBAL_SOURCES): New variable.
1846 * globals.h: Remove.
1847 * nsselect.m (Vselection_alist): Define. Reverts part of
1848 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1849 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1850 variable.
1851 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1852
1853 2011-02-08 Kenichi Handa <handa@m17n.org>
1854
1855 * font.c (Ffont_get): Do not cache :otf value.
1856
1857 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1858
1859 conform to C89 pointer rules
1860
1861 * dired.c (scmp, file_name_completion):
1862 Change types between char * and unsigned char *, to satisfy C89
1863 rules about pointer type compatibility.
1864 * casefiddle.c (casify_object, casify_region): Likewise.
1865 * search.c (Freplace_match, Fregexp_quote): Likewise.
1866 * alloc.c (make_string, make_specified_string, make_pure_string):
1867 Likewise.
1868 * data.c (Fstring_to_number): Likewise.
1869 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1870 (print_object): Likewise.
1871 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1872 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1873 (Fformat): Likewise.
1874 * callint.c (Fcall_interactively): Likewise.
1875 * fns.c (string_make_multibyte, string_to_multibyte):
1876 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1877 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1878 Likewise.
1879 * lread.c (read1, hash_string): Likewise.
1880 * process.c (read_process_output, send_process, Fprocess_send_region):
1881 Likewise.
1882 * callproc.c (Fcall_process): Likewise.
1883 * doprnt.c (doprnt): Likewise.
1884 * indent.c (compute_motion): Likewise.
1885 * xfont.c (xfont_decode_coding_xlfd): Likewise.
1886 * ralloc.c (resize_bloc): Likewise.
1887 * image.c (tiff_load): Likewise.
1888 * xml.c (make_dom, parse_region): Likewise.
1889 * character.c (strwidth): Make its argument const char *, not const
1890 unsigned char *, since more callers prefer it that way. All callers
1891 changed.
1892
1893 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1894
1895 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1896 Emacs assumes two's complement elsewhere, but the assumption is
1897 easy to remove here, and this suppresses a warning with Sun C 5.8.
1898
1899 conform to C89 pointer rules
1900
1901 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1902 (same_x_server, x_term_init):
1903 Change types between char * and unsigned char *, to satisfy C89
1904 rules about pointer type compatibility.
1905 * doc.c (get_doc_string, Fsnarf_documentation):
1906 (Fsubstitute_command_keys): Likewise.
1907 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1908 * bitmaps/gray.xbm (gray_bits): Likewise.
1909 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
1910 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1911 Likewise.
1912 * keymap.c (Ftext_char_description): Likewise.
1913 * minibuf.c (Fread_buffer): Likewise.
1914 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1915 (DRIVE_LETTER) [defined DOS_NT]:
1916 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1917 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1918 (search_embedded_absfilename, Fsubstitute_in_file_name):
1919 (barf_or_query_if_file_exists, Fmake_directory_internal):
1920 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1921 (Finsert_file_contents, Fwrite_region):
1922 Likewise.
1923 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1924 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1925 Likewise. This changes these functions' signatures, which is
1926 more convenient since most callers use char *. All remaining
1927 callers changed.
1928 * editfns.c (general_insert_function): Change signature to
1929 match changes to insert functions' signatures.
1930 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1931 Use explicit cast when converting between void * and function pointer
1932 types, as C89 requires this.
1933
1934 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1935
1936 don't ignore chdir failure
1937 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1938 failure and exit.
1939 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1940 remaining unchecked chdir calls in this function; some DOS/NT
1941 expert needs to fix them.
1942 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1943 in this function; some NextStep expert needs to fix them.
1944
1945 2011-02-05 Glenn Morris <rgm@gnu.org>
1946
1947 * xfaces.c (Finternal_set_lisp_face_attribute):
1948 Try to clarify some error messages. (Bug#2659)
1949
1950 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
1951
1952 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1953 current_column cache (bug#7946).
1954
1955 2011-02-05 Kenichi Handa <handa@m17n.org>
1956
1957 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1958
1959 * xftfont.c (xftfont_open): Likewise.
1960
1961 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
1962
1963 * window.c (Fselect_window): Add missing return value.
1964
1965 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1966
1967 xstrcasecmp: conform to C89 pointer rules
1968 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1969 to const char *, since they're usually low-level C strings, and
1970 this stays compatible with C89 pointer rules. All callers changed.
1971
1972 * charset.c: Conform to C89 pointer rules.
1973 (define_charset_internal): Switch between char * and unsigned char *.
1974
1975 * xmenu.c: Conform to C89 const rules.
1976 (xmenu_show, xdialog_show): Declare local var as char *, not
1977 const char *, to stay compatible with C89 const rules.
1978
1979 * xdisp.c: Conform to C89 pointer rules.
1980 (store_mode_line_noprop, display_string, reseat_to_string):
1981 (c_string_pos, number_of_chars, message_dolog):
1982 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1983 (display_mode_element, display_string):
1984 Switch between char * and unsigned char * to stay compatible wth
1985 C89 pointer rules.
1986
1987 * regex.c: Conform to C89 pointer rules.
1988 (re_wctype): Add cast, as C89 does not allow assigning between
1989 char * and unsigned char *.
1990 (regex_compile): Likewise.
1991
1992 sync from gnulib to remove HAVE_STDBOOL_H
1993 * config.in: Regenerate.
1994
1995 2011-02-04 Eli Zaretskii <eliz@gnu.org>
1996
1997 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1998 Replace all uses of lisp.h with $(LISP_H), and all uses of
1999 process.h with $(PROCESS_H).
2000 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2001 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2002
2003 * deps.mk: Update for recent changes: gnutls support, gnulib
2004 imports, addition of globals.h.
2005
2006 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2007 ../lib/ignore-value.h.
2008
2009 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
2010
2011 allow C code to suppress warnings about ignored return values
2012
2013 We need to go through the code and for each such warning, either
2014 fix the code to pay attention to the returned value, or tell GCC
2015 that we really do want to ignore the returned value. Here is one
2016 example of how to do the latter.
2017 * sysdep.c: Include <ignore-value.h>.
2018 (sys_subshell): Suppress an undesirable warning about not checking
2019 the returned value of 'write', as there's nothing useful one can
2020 do with that returned value.
2021
2022 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
2023
2024 * xterm.c (x_connection_closed): Remove all calls that calls
2025 XSync (Bug#7949).
2026
2027 2011-02-01 Eli Zaretskii <eliz@gnu.org>
2028
2029 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2030 TIFFClientOpen.
2031
2032 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
2033
2034 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2035 (x_session_check_input): Change args and return type so it can be used
2036 as argument to add_read_fd. Make static. Remove call to select.
2037 Call kbd_buffer_store_event for emacs_event.
2038 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2039 (ice_conn_watch_CB): Call add_read_fd.
2040
2041 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2042 x_session_check_input.
2043 (x_session_initialized): Remove definition.
2044 (x_initialize): Remove setting of x_session_initialized.
2045
2046 * xterm.h (x_session_check_input): Remove declaration.
2047
2048 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
2049
2050 format-time-string now supports subsecond time stamp resolution
2051 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
2052 for consistency with its new argument and with gnulib nstrftime.
2053 All callers changed. New argument NS.
2054 (Fformat_time_string): Check that the time argument's microseconds
2055 component, if any, is in range; this avoids integer overflow and
2056 also nstrftime needs this. Document %N.
2057
2058 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
2059
2060 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2061 of int. All uses adjusted.
2062 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2063 (svg_load_image): Remove casts.
2064
2065 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
2066
2067 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2068 function definitions for compiling with libpng-1.5.
2069 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2070 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2071 (Bug#7908).
2072
2073 2011-01-31 Eli Zaretskii <eliz@gnu.org>
2074
2075 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2076
2077 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2078 ($(BLD)/strftime.$(O)): Remove prerequisites.
2079
2080 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2081
2082 src/emacs.c now gets version number from configure.in
2083 * emacs.c (emacs_version): Set to VERSION so that it
2084 is determined automatically from ../configure.in.
2085
2086 2011-01-31 Jim Meyering <meyering@redhat.com>
2087
2088 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2089 Use xmalloc rather than malloc.
2090
2091 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2092
2093 strftime: import from gnulib
2094 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2095 * deps.mk (strftime.o): Remove.
2096 * editfns.c: Include <strftime.h>, supplied by gnulib.
2097 (emacs_strftimeu): Remove decl.
2098 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2099 emacs_strftimeu.
2100 * config.in: Regenerate.
2101 * strftime.c: Remove; we now use strftime from gnulib.
2102
2103 Use SSDATA when the context wants char *.
2104 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2105 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2106 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2107 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2108 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2109 Use SSDATA (not SDATA) when the context of the expression wants
2110 char * (not unsigned char *).
2111
2112 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2113
2114 * .gdbinit: Read global lisp variables as globals.f_V*.
2115
2116 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2117
2118 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2119 All uses changed.
2120 (PROP_SAVE): Likewise.
2121
2122 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
2123
2124 * keyboard.c (make_lispy_position): Fix typo in last change
2125 (Bug#7935).
2126
2127 2011-01-29 Eli Zaretskii <eliz@gnu.org>
2128
2129 * s/ms-w32.h (HAVE_MKTIME): Remove.
2130
2131 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2132 (GNULIB): New variable.
2133 (LIBS): Add $(GNULIB).
2134 $(TEMACS): Depend on $(GNULIB).
2135 <top-level>: Fix font-lock disrupted by a lone `"'.
2136
2137 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2138
2139 * nsselect.m (ns_string_from_pasteboard): Get length of string
2140 and use make_string instead of build_string (Bug#7934).
2141 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2142 instead of stringWithUTF8String (Bug#7934).
2143
2144 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
2145
2146 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2147 descenders would not become one pixel too tall (Bug#7887).
2148
2149 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
2150
2151 * keyboard.c (make_lispy_position): For clicks on right fringe or
2152 margin, compute text position using the X coordinate relative to
2153 the left of the text area (Bug#7839).
2154
2155 2011-01-28 Kenichi Handa <handa@m17n.org>
2156
2157 * ftfont.c (ftfont_spec_pattern): Check each extra property
2158 value.
2159
2160 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2161
2162 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2163
2164 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
2165
2166 * font.c (font_parse_fcname): Undefine a temporary macro.
2167
2168 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2169
2170 Let the debugger continue to the normal handler (bug#7825).
2171 * eval.c (maybe_call_debugger): Declare before new use.
2172 (find_handler_clause): Don't call debugger any more.
2173 Ignore Vstack_trace_on_error.
2174 Use XCAR/XCDR.
2175 (syms_of_eval): Remove Vstack_trace_on_error.
2176 (Fsignal): Only modify handlerlist when we know we need to do it.
2177 Call the debugger when necessary.
2178 * globals.h (Vstack_trace_on_error): Remove.
2179
2180 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
2181
2182 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2183
2184 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
2185
2186 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2187 the buffer's point-max (bug#7876).
2188
2189 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
2190
2191 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
2192 Remove unused case (Bug#6811).
2193
2194 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2195
2196 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2197 setFrameTopLeftPoint is constrained.
2198
2199 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2200
2201 Check return values of some library calls.
2202 * emacs.c (main): Check dup result.
2203 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2204 (frame_name_fnn_p): Check strtol result.
2205
2206 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
2207 when calling XpmCreatePixmapFromData.
2208
2209 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2210 * lisp.h (SSDATA): New macro.
2211 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2212 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2213 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2214 * xsmfns.c (SSDATA): Likewise.
2215
2216 2011-01-22 Martin Rudalics <rudalics@gmx.at>
2217
2218 * window.c (select_window): New function.
2219 (Fselect_window): Call it.
2220 (inhibit_point_swap): Variable deleted.
2221 (Fset_window_configuration): Call select_window directly.
2222
2223 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2224
2225 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2226
2227 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2228
2229 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2230 screen, not the window screen.
2231 (x_set_window_size): Remove constraints.
2232 Calculate origin.y only if zooming is 0 and without referring to a
2233 screen.
2234 (windowWillResize): Don't modify frameSize.
2235 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2236 (initFrameFromEmacs): Initialize ns_userRect.
2237 (windowShouldZoom): Set zooming to one. Remove all other code.
2238 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2239 Zero it after restore.
2240 (constrainFrameRect): New method for EmacsWindow.
2241 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2242 windowWillResize.
2243
2244 * nsterm.h (ns_output): Add dont_constrain and zooming.
2245 (EmacsView): Add ns_userRect.
2246
2247 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2248 if ns_alternate_modifier is none.
2249
2250 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2251
2252 * unexmacosx.c: Add comment about include order.
2253
2254 2011-01-20 Glenn Morris <rgm@gnu.org>
2255
2256 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2257 Give it a doc string.
2258 * globals.h: Add Vread_expression_history.
2259
2260 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2261 Give it a doc string.
2262 * globals.h: Add Vkbd_macro_termination_hook.
2263
2264 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
2265
2266 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2267
2268 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2269
2270 Fix X11 compilation failure.
2271 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2272 * xselect.c (Vselection_alist): Remove declaration, moving its
2273 documentation to globals.h. This fixes a compilation failure
2274 induced by the earlier change to globals.h today.
2275
2276 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2277
2278 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2279
2280 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2281 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2282 (ns_input_spi_name, ns_input_spi_arg)
2283 (ns_alternate_modifier, ns_right_alternate_modifier)
2284 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2285 (ns_right_control_modifier, ns_function_modifier)
2286 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2287 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2288 (x_underline_at_descent_line): Remove declaration.
2289 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2290
2291 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
2292 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2293 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2294
2295 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2296 Remove declaration.
2297
2298 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2299 globals.h.
2300 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2301
2302 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2303 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2304 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2305
2306 * globals.h (struct emacs_globals): Add f_ns_input_file,
2307 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2308 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2309 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2310 f_ns_right_alternate_modifier, f_ns_command_modifier,
2311 f_ns_right_command_modifier, f_ns_control_modifier,
2312 f_ns_right_control_modifier, f_ns_function_modifier,
2313 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2314 f_Vns_version_string, f_Vns_sent_selection_hooks,
2315 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2316 and corresponding defines.
2317
2318 2011-01-19 Sam Steingold <sds@gnu.org>
2319
2320 * w32.c (check_windows_init_file): Remove declarations of
2321 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
2322 * w32fns.c: Fix an error introduced by the previous patch.
2323
2324 2011-01-19 Tom Tromey <tromey@redhat.com>
2325
2326 * window.c: Fix error introduced by previous patch.
2327
2328 2011-01-18 Tom Tromey <tromey@parfait>
2329
2330 * globals.h: New file.
2331 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2332 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2333 (Vwindow_system_version): Remove declaration.
2334 * w32term.h (Vw32_enable_palette)
2335 (Vx_pixel_size_width_font_regexp): Remove declaration.
2336 * w32menu.c (Voverriding_local_map)
2337 (Voverriding_local_map_menu_flag): Remove declaration.
2338 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2339 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2340 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2341 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2342 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2343 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2344 (w32_use_full_screen_buffer): Remove declaration.
2345 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2346 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2347 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2348 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2349 (no_redraw_on_reenter, visible_bell): Remove declaration.
2350 * sysdep.c (Vsystem_name): Remove declaration.
2351 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2352 * menu.h (Vmenu_updating_frame): Remove declaration.
2353 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2354 Remove declaration.
2355 * lisp.h (Vafter_init_time, Vafter_load_alist)
2356 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2357 (Vcompletion_regexp_list, Vcurrent_load_list)
2358 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2359 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2360 (Vexec_directory, Vexec_path, Vexec_suffixes)
2361 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2362 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2363 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2364 (Vinstallation_directory, Vinvocation_directory)
2365 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2366 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2367 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2368 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2369 (Vscalable_fonts_allowed, Vselect_active_regions)
2370 (Vshell_file_name, Vstandard_input, Vstandard_output)
2371 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2372 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2373 (Vuser_login_name, Vwindow_scroll_functions)
2374 (Vwindow_system_version, Vx_no_window_manager)
2375 (Vx_resource_class, Vx_resource_name, baud_rate)
2376 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2377 (history_delete_duplicates, inhibit_x_resources)
2378 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2379 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
2380 (use_dialog_box, use_file_dialog): Remove declaration.
2381 Include globals.h.
2382 * keymap.h (Voverriding_local_map)
2383 (Voverriding_local_map_menu_flag, meta_prefix_char):
2384 Remove declaration.
2385 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2386 (Vinput_method_function, Vkey_translation_map)
2387 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2388 (do_mouse_tracking, extra_keyboard_modifiers)
2389 (num_nonmacro_input_events): Remove declaration.
2390 * intervals.h (Vchar_property_alias_alist)
2391 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2392 (Vtext_property_default_nonsticky): Remove declaration.
2393 * gtkutil.h (x_gtk_file_dialog_help_text)
2394 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2395 (x_gtk_whole_detached_tool_bar): Remove declaration.
2396 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2397 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2398 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2399 (focus_follows_mouse): Remove declaration.
2400 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2401 (Vignore_relative_composition, Votf_script_alist)
2402 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2403 Remove declaration.
2404 * font.h (Vfont_log): Remove declaration.
2405 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2406 (Vdos_windows_version, dos_codepage, dos_country_code)
2407 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
2408 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2409 Remove declaration.
2410 * disptab.h (Vglyph_table, Vstandard_display_table):
2411 Remove declaration.
2412 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2413 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2414 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2415 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2416 (inverse_video, mode_line_in_non_selected_windows)
2417 (tool_bar_button_relief, tool_bar_max_label_size)
2418 (underline_minimum_offset)
2419 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2420 Remove declaration.
2421 * composite.h (Vauto_composition_function)
2422 (Vcomposition_function_table): Remove declaration.
2423 * commands.h (Vexecuting_kbd_macro)
2424 (Vminibuffer_local_completion_map)
2425 (Vminibuffer_local_filename_completion_map)
2426 (Vminibuffer_local_filename_must_match_map)
2427 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2428 (Vminibuffer_local_ns_map, Vthis_command)
2429 (Vunread_command_events, cursor_in_echo_area)
2430 (last_command_event, last_nonmenu_event, unread_command_char):
2431 Remove declaration.
2432 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2433 (Vdefault_file_name_coding_system)
2434 (Vdefault_process_coding_system, Vfile_name_coding_system)
2435 (Vlast_coding_system_used, Vlocale_coding_system)
2436 (Vselect_safe_coding_system_function)
2437 (Vtranslation_table_for_input, coding_system_require_warning)
2438 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2439 (eol_mnemonic_unix, inherit_process_coding_system):
2440 Remove declaration.
2441 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2442 Remove declaration.
2443 * character.h (Vauto_fill_chars, Vchar_direction_table)
2444 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2445 (Vscript_representative_chars, Vtranslation_table_vector)
2446 (Vunicode_category_table): Remove declaration.
2447 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2448 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2449 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2450 (inhibit_modification_hooks): Remove declaration.
2451 * xterm.c (syms_of_xterm): Update.
2452 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2453 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2454 (x_mouse_click_focus_ignore_position)
2455 (x_underline_at_descent_line)
2456 (x_use_underline_position_properties): Remove.
2457 * xsmfns.c (syms_of_xsmfns): Update.
2458 (Vx_session_id, Vx_session_previous_id): Remove.
2459 * xsettings.c (syms_of_xsettings): Update.
2460 (Vxft_settings, use_system_font): Remove.
2461 * xselect.c (syms_of_xselect): Update.
2462 (Vselection_converter_alist, Vx_lost_selection_functions)
2463 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2464 * xfns.c (syms_of_xfns): Update.
2465 (Vgtk_version_string, Vmotif_version_string)
2466 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2467 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2468 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2469 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2470 (Vx_sensitive_text_pointer_shape)
2471 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2472 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2473 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2474 Remove.
2475 * xfaces.c (syms_of_xfaces): Update.
2476 (Vface_default_stipple, Vface_font_rescale_alist)
2477 (Vface_ignored_fonts, Vface_new_frame_defaults)
2478 (Vface_remapping_alist, Vfont_list_limit)
2479 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2480 * xdisp.c (syms_of_xdisp): Update.
2481 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2482 (Vdisplay_pixels_per_inch, Vfontification_functions)
2483 (Vframe_title_format, Vglobal_mode_string)
2484 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2485 (Vicon_title_format, Vinhibit_redisplay)
2486 (Vline_number_display_limit, Vline_prefix)
2487 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2488 (Vmenu_updating_frame, Vmessage_log_max)
2489 (Vmouse_autoselect_window, Vnobreak_char_display)
2490 (Voverlay_arrow_position, Voverlay_arrow_string)
2491 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2492 (Vresize_mini_windows, Vshow_trailing_whitespace)
2493 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2494 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2495 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2496 (Vwindow_text_change_functions, Vwrap_prefix)
2497 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2498 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2499 (highlight_nonselected_windows, hscroll_margin)
2500 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2501 (inhibit_menubar_update, inhibit_try_cursor_movement)
2502 (inhibit_try_window_id, inhibit_try_window_reusing)
2503 (line_number_display_limit_width)
2504 (make_cursor_line_fully_visible_p, message_truncate_lines)
2505 (mode_line_inverse_video, multiple_frames, overline_margin)
2506 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2507 (tool_bar_max_label_size, underline_minimum_offset)
2508 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2509 Remove.
2510 * window.c (syms_of_window): Update.
2511 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2512 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2513 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2514 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2515 (mode_line_in_non_selected_windows, next_screen_context_lines)
2516 (window_min_height, window_min_width): Remove.
2517 (scroll_margin): Remove declaration.
2518 * w32term.c (syms_of_w32term): Update.
2519 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2520 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2521 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2522 (w32_use_visible_system_caret, x_underline_at_descent_line)
2523 (x_use_underline_position_properties): Remove.
2524 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2525 Remove declaration.
2526 * w32select.c (syms_of_w32select): Update.
2527 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2528 * w32proc.c (syms_of_ntproc): Update.
2529 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2530 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2531 (Vw32_start_process_inherit_error_mode)
2532 (Vw32_start_process_share_console)
2533 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2534 (Vsystem_name): Remove declaration.
2535 * w32font.c (syms_of_w32font): Update.
2536 (Vw32_charset_info_alist): Remove.
2537 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2538 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2539 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2540 (Vw32_enable_palette, Vw32_lwindow_modifier)
2541 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2542 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2543 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2544 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2545 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2546 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2547 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2548 (Vx_sensitive_text_pointer_shape)
2549 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2550 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2551 (w32_mouse_move_interval)
2552 (w32_pass_extra_mouse_buttons_to_system)
2553 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2554 (w32_strict_fontnames, w32_strict_painting): Remove.
2555 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2556 (Vw32_recognize_altgr, Vwindow_system_version)
2557 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2558 Remove declaration.
2559 * w32console.c (syms_of_ntterm): Update.
2560 (w32_use_full_screen_buffer): Remove.
2561 (Vtty_defined_color_alist): Remove declaration.
2562 * w16select.c (syms_of_win16select): Update.
2563 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2564 * undo.c (syms_of_undo): Update.
2565 (Vundo_outer_limit, Vundo_outer_limit_function)
2566 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2567 Remove.
2568 * textprop.c (syms_of_textprop): Update.
2569 (Vchar_property_alias_alist, Vdefault_text_properties)
2570 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2571 Remove.
2572 * terminal.c (syms_of_terminal): Update.
2573 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2574 * term.c (syms_of_term): Update.
2575 (Vresume_tty_functions, Vsuspend_tty_functions)
2576 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2577 Remove.
2578 * syntax.c (syms_of_syntax): Update.
2579 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2580 (open_paren_in_column_0_is_defun_start)
2581 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2582 (words_include_escapes): Remove.
2583 * search.c (syms_of_search): Update.
2584 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2585 * process.c (syms_of_process): Update.
2586 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2587 (delete_exited_processes): Remove.
2588 * print.c (syms_of_print): Update.
2589 (Vfloat_output_format, Vprint_charset_text_property)
2590 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2591 (Vprint_length, Vprint_level, Vprint_number_table)
2592 (Vstandard_output, print_escape_multibyte)
2593 (print_escape_newlines, print_escape_nonascii, print_quoted):
2594 Remove.
2595 * msdos.c (syms_of_msdos): Update.
2596 (Vdos_unsupported_char_glyph): Remove.
2597 (unibyte_display_via_language_environment): Remove declaration.
2598 * minibuf.c (syms_of_minibuf): Update.
2599 (Vcompletion_regexp_list, Vhistory_add_new_input)
2600 (Vhistory_length, Vminibuffer_completing_file_name)
2601 (Vminibuffer_completion_confirm)
2602 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2603 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2604 (Vminibuffer_history_position, Vminibuffer_history_variable)
2605 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2606 (Vread_buffer_function, Vread_expression_map)
2607 (completion_ignore_case, enable_recursive_minibuffers)
2608 (history_delete_duplicates, minibuffer_allow_text_properties)
2609 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2610 Remove.
2611 * marker.c (syms_of_marker): Update.
2612 (byte_debug_flag): Remove.
2613 * macros.c (syms_of_macros): Update.
2614 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2615 * lread.c (syms_of_lread): Update.
2616 (Vafter_load_alist, Vbyte_boolean_vars)
2617 (Vbytecomp_version_regexp, Vcurrent_load_list)
2618 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2619 (Vload_history, Vload_path, Vload_read_function)
2620 (Vload_source_file_function, Vload_suffixes, Vobarray)
2621 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2622 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2623 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2624 (force_load_messages, load_convert_to_unibyte)
2625 (load_dangerous_libraries, load_force_doc_strings)
2626 (load_in_progress): Remove.
2627 * keymap.c (syms_of_keymap): Update.
2628 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2629 (Vminibuffer_local_completion_map)
2630 (Vminibuffer_local_filename_completion_map)
2631 (Vminibuffer_local_filename_must_match_map)
2632 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2633 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2634 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2635 Remove.
2636 * keyboard.c (syms_of_keyboard): Update.
2637 (Vauto_save_timeout, Vcommand_error_function)
2638 (Vcommand_hook_internal, Vdeactivate_mark)
2639 (Vdeferred_action_function, Vdeferred_action_list)
2640 (Vdisable_point_adjustment, Vdouble_click_time)
2641 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2642 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2643 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2644 (Vinput_method_function, Vinput_method_previous_message)
2645 (Vkey_translation_map, Vlast_event_frame)
2646 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2647 (Vminibuffer_message_timeout, Voverriding_local_map)
2648 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2649 (Vpre_command_hook, Vprefix_help_command)
2650 (Vsaved_region_selection, Vselect_active_regions)
2651 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2652 (Vthis_command, Vthis_command_keys_shift_translated)
2653 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2654 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2655 (Vtty_erase_char, Vunread_command_events)
2656 (Vunread_input_method_events, Vunread_post_input_method_events)
2657 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2658 (double_click_fuzz, extra_keyboard_modifiers)
2659 (inhibit_local_menu_bar_menus, last_command_event)
2660 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2661 (menu_prompting, meta_prefix_char, num_input_keys)
2662 (num_nonmacro_input_events, polling_period, unread_command_char):
2663 Remove.
2664 * insdel.c (syms_of_insdel): Update.
2665 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2666 * indent.c (syms_of_indent): Update.
2667 (indent_tabs_mode): Remove.
2668 * image.c (syms_of_image): Update.
2669 (Vimage_cache_eviction_delay, Vimage_types)
2670 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2671 (cross_disabled_images): Remove.
2672 * fringe.c (syms_of_fringe): Update.
2673 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2674 * frame.c (syms_of_frame): Update.
2675 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2676 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2677 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2678 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2679 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2680 Remove.
2681 * fontset.c (syms_of_fontset): Update.
2682 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2683 (Vfontset_alias_alist, Vignore_relative_composition)
2684 (Votf_script_alist, Vuse_default_ascent)
2685 (Vvertical_centering_font_regexp): Remove.
2686 * font.c (syms_of_font): Update.
2687 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2688 (Vfont_weight_table, Vfont_width_table): Remove.
2689 * fns.c (syms_of_fns): Update.
2690 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2691 * filelock.c (syms_of_filelock): Update.
2692 (Vtemporary_file_directory): Remove.
2693 * fileio.c (syms_of_fileio): Update.
2694 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2695 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2696 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2697 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2698 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2699 (Vwrite_region_annotate_functions)
2700 (Vwrite_region_annotations_so_far)
2701 (Vwrite_region_post_annotation_function)
2702 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2703 (Vw32_get_true_file_attributes): Remove declaration.
2704 * eval.c (syms_of_eval): Update.
2705 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2706 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2707 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2708 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2709 (max_lisp_eval_depth, max_specpdl_size): Remove.
2710 * emacs.c (syms_of_emacs): Update.
2711 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2712 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2713 (Vinstallation_directory, Vinvocation_directory)
2714 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2715 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2716 (Vsystem_configuration, Vsystem_configuration_options)
2717 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2718 (inhibit_x_resources, noninteractive1): Remove.
2719 * editfns.c (syms_of_editfns): Update.
2720 (Vbuffer_access_fontified_property)
2721 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2722 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2723 (Vuser_login_name, Vuser_real_login_name): Remove.
2724 * dosfns.c (syms_of_dosfns): Update.
2725 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2726 (dos_codepage, dos_country_code, dos_decimal_point)
2727 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2728 (dos_super_key, dos_timezone_offset): Remove.
2729 * doc.c (syms_of_doc): Update.
2730 (Vbuild_files, Vdoc_file_name): Remove.
2731 * dispnew.c (syms_of_display): Update.
2732 (Vglyph_table, Vinitial_window_system)
2733 (Vredisplay_preemption_period, Vstandard_display_table)
2734 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2735 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2736 * dired.c (syms_of_dired): Update.
2737 (Vcompletion_ignored_extensions): Remove.
2738 (Vw32_get_true_file_attributes): Remove declaration.
2739 * dbusbind.c (syms_of_dbusbind): Update.
2740 (Vdbus_debug, Vdbus_registered_buses)
2741 (Vdbus_registered_objects_table): Remove.
2742 * data.c (syms_of_data): Update.
2743 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2744 * composite.c (syms_of_composite): Update.
2745 (Vauto_composition_function, Vauto_composition_mode)
2746 (Vcompose_chars_after_function, Vcomposition_function_table):
2747 Remove.
2748 * coding.c (syms_of_coding): Update.
2749 (Vcharset_revision_table, Vcoding_category_list)
2750 (Vcoding_system_alist, Vcoding_system_for_read)
2751 (Vcoding_system_for_write, Vcoding_system_list)
2752 (Vdefault_process_coding_system, Venable_character_translation)
2753 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2754 (Vlast_coding_system_used, Vlatin_extra_code_table)
2755 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2756 (Vprocess_coding_system_alist)
2757 (Vselect_safe_coding_system_function)
2758 (Vstandard_translation_table_for_decode)
2759 (Vstandard_translation_table_for_encode)
2760 (Vtranslation_table_for_input, coding_system_require_warning)
2761 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2762 (eol_mnemonic_unix, inherit_process_coding_system)
2763 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2764 (inhibit_null_byte_detection): Remove.
2765 * cmds.c (syms_of_cmds): Update.
2766 (Vpost_self_insert_hook): Remove.
2767 * charset.c (syms_of_charset): Update.
2768 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2769 (inhibit_load_charset_map): Remove.
2770 * character.c (syms_of_character): Update.
2771 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2772 (Vchar_width_table, Vprintable_chars)
2773 (Vscript_representative_chars, Vtranslation_table_vector)
2774 (Vunicode_category_table): Remove.
2775 * ccl.c (syms_of_ccl): Update.
2776 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2777 (Vtranslation_hash_table_vector): Remove.
2778 * category.c (syms_of_category): Update.
2779 (Vword_combining_categories, Vword_separating_categories): Remove.
2780 * callproc.c (syms_of_callproc): Update.
2781 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2782 (Vexec_directory, Vexec_path, Vexec_suffixes)
2783 (Vinitial_environment, Vprocess_environment)
2784 (Vshared_game_score_directory, Vshell_file_name): Remove.
2785 * callint.c (syms_of_callint): Update.
2786 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2787 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2788 * bytecode.c (syms_of_bytecode): Update.
2789 (Vbyte_code_meter, byte_metering_on): Remove.
2790 * buffer.c (syms_of_buffer): Update.
2791 (Vafter_change_functions, Vbefore_change_functions)
2792 (Vchange_major_mode_hook, Vfirst_change_hook)
2793 (Vinhibit_read_only, Vkill_buffer_query_functions)
2794 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2795 * alloc.c (syms_of_alloc): Update.
2796 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2797 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2798 (cons_cells_consed, floats_consed, garbage_collection_messages)
2799 (gc_cons_threshold, gcs_done, intervals_consed)
2800 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2801 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2802
2803 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2804 (DEFVAR_INT): Assume global is in `globals'.
2805 * alloc.c (globals): Define.
2806
2807 2011-01-18 Tom Tromey <tromey@redhat.com>
2808
2809 * image.c (Vimagemagick_render_type): Remove redundant
2810 definition.
2811
2812 2011-01-18 Tom Tromey <tromey@redhat.com>
2813
2814 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2815 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2816 (redisplay_window): Update.
2817 (syms_of_xdisp): Update.
2818
2819 2011-01-18 Tom Tromey <tromey@redhat.com>
2820
2821 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2822 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2823 Declare.
2824 * gtkutil.c (xg_uses_old_file_dialog):
2825 (xg_get_file_with_chooser):
2826 (xg_tool_bar_detach_callback): Don't redeclare globals.
2827
2828 2011-01-18 Tom Tromey <tromey@redhat.com>
2829
2830 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2831 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2832
2833 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2834
2835 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2836 defined __GNUC__. ../configure now checks for this GCC feature,
2837 which is now also supported by IBM and Oracle compilers.
2838 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2839 since Solaris malloc returns mult-of-8.
2840
2841 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
2842
2843 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2844
2845 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
2846
2847 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2848 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2849 * data.c (Fnumber_to_string): Use it.
2850 * print.c (float_to_string, print_object): Likewise.
2851
2852 Include <unistd.h> unilaterally.
2853 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2854 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2855 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2856 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2857 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2858 * xterm.c:
2859 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2860 unistd.h is always present now, possibly supplied by gnulib.
2861
2862 * mktime.c: Remove; moving to ../lib.
2863
2864 Use gnulib's mktime module.
2865 * deps.mk (mktime.o): Remove rule.
2866
2867 Use gnulib's ftoastr module.
2868 * print.c: Include ftoastr.h.
2869 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2870 Remove; no longer needed.
2871 (float_to_string): Use dtoastr rather than rolling our own code,
2872 which had an off-by-one bug on non-IEEE hosts.
2873
2874 Automate syncing from gnulib.
2875 * Makefile.in (lib): New macro.
2876 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2877 ($(lib)/libgnu.a): New rule.
2878 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2879
2880 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2881 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2882 so change the type of 'ign' to unsigned int from int.
2883
2884 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2885
2886 * xterm.h (struct x_display_info): Remove stray semicolon.
2887 The extra semicolon didn't conform to the C standard.
2888 Problem reported by Sun cc.
2889
2890 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2891 These changes make compilation easier to follow with Sun cc.
2892 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2893 EMACS_INT values without provoking overflow diagnostics.
2894 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2895 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2896 diagnostic with signed left shift.
2897
2898 * fileio.c (make_temp_name): Remove unreachable code.
2899
2900 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2901 Previously it was marked by preceding it with "return;", but
2902 Sun cc complains about this.
2903
2904 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2905 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2906 which fixed Bug#2370. Caught by Sun cc.
2907
2908 2011-01-15 Martin Rudalics <rudalics@gmx.at>
2909
2910 * window.c (inhibit_point_swap): New variable.
2911 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2912 point this time.
2913 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2914 of setting selected_window to nil (Bug#7728).
2915
2916 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2917
2918 * image.c (imagemagick_load_image, Finit_image_library):
2919 Free intermediate image after creating a MagickWand from it.
2920 Terminate MagickWand environment after image loading.
2921
2922 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
2923
2924 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2925 unexpected return values.
2926 (Fdbus_register_method): Remove connection initialization.
2927
2928 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
2929
2930 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2931 used by Fdbus_register_service.
2932 (QCdbus_request_name_replace_existing): Likewise.
2933 (QCdbus_request_name_do_not_queue): Likewise.
2934 (QCdbus_request_name_reply_primary_owner): Likewise.
2935 (QCdbus_request_name_reply_in_queue): Likewise.
2936 (QCdbus_request_name_reply_exists): Likewise.
2937 (QCdbus_request_name_reply_already_owner): Likewise.
2938 (Fdbus_register_service): New function.
2939 (Fdbus_register_method): Use Fdbus_register_service to do the name
2940 registration.
2941 (syms_of_dbusbind): Add symbols dbus-register-service,
2942 :allow-replacement, :replace-existing, :do-not-queue,
2943 :primary-owner, :existing, :in-queue and :already-owner.
2944
2945 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
2946
2947 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2948 when removing extra buttons.
2949
2950 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
2951
2952 * fns.c (Fyes_or_no_p): Doc fix.
2953
2954 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2955
2956 * fns.c (Fyes_or_no_p): Add usage.
2957
2958 2011-01-08 Glenn Morris <rgm@gnu.org>
2959
2960 * makefile.w32-in ($(EMACS)):
2961 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2962
2963 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2964 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2965
2966 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2967
2968 * image.c (imagemagick_load_image): Fix some resource leaks and
2969 error handling.
2970
2971 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
2972
2973 * fns.c (Fyes_or_no_p): Accept format string args.
2974
2975 2011-01-07 Glenn Morris <rgm@gnu.org>
2976
2977 * emacs.c (no_site_lisp): New int.
2978 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2979 (main): Set no_site_lisp.
2980 (standard_args): Add --no-site-lisp.
2981 * lisp.h (no_site_lisp): New int.
2982 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2983 directories to Vload_path.
2984
2985 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2986
2987 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2988
2989 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2990
2991 * dbusbind.c (Fdbus_register_method): Add optional parameter
2992 dont_register_service. Updated docstring accordingly.
2993
2994 2011-01-04 Glenn Morris <rgm@gnu.org>
2995
2996 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2997
2998 2011-01-03 Eli Zaretskii <eliz@gnu.org>
2999
3000 * image.c (png_jmpbuf): Remove definition.
3001 (my_png_error, png_load): Don't use png_jmpbuf.
3002
3003 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3004
3005 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
3006
3007 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3008
3009 * image.c <Qlibpng_version>: New variable.
3010 (syms_of_image): Intern and staticpro it. Set its value to the
3011 version of PNG library we were compiled with.
3012 (my_png_error, png_load): Avoid GCC warnings about direct access
3013 to png_ptr->jmpbuf. (Bug#7716)
3014 (png_jmpbuf): New macro.
3015 (my_png_error, png_load): Use it instead of #ifdef'ing according
3016 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
3017
3018 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3019
3020 * .gdbinit (xgetptr): Fix the union+lsb case.
3021 (xbacktrace): Fix the union case.
3022
3023 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3024
3025 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3026 different from selected-window's.
3027
3028 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3029
3030 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
3031 equivalent of a menu item when the key sequence is given by the
3032 `:keys' attribute. (Bug#7662)
3033
3034 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3035 the basic faces are supported.
3036
3037 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
3038
3039 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3040
3041 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3042
3043 * xdisp.c (Fformat_mode_line): Fix last change.
3044
3045 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
3046
3047 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3048 faces (Bug#7587).
3049
3050 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3051
3052 * fileio.c (Fexpand_file_name): One more doc fix.
3053
3054 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
3055
3056 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3057 image or label in the container.
3058 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3059 (xg_show_toolbar_item): Function deleted.
3060 (xg_tool_item_stale_p): New function.
3061 (update_frame_tool_bar): Calculate tool-bar style once per call.
3062 Instead of hiding text labels, omit them. Don't use
3063 xg_show_toolbar_item; create new GtkToolItems from scratch if
3064 necessary, instead of trying to re-use them. This avoids an
3065 annoying animation when changing tool-bars.
3066
3067 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3068
3069 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3070 title and buffer filename only for RepresentedFilename.
3071 Handle bad UTF-8 in buffer name (Bug#7517).
3072
3073 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3074
3075 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3076
3077 * nsfns.m (ns_set_name_iconic): Remove.
3078 (ns_set_name_internal): New function (Bug#7517).
3079 (Vicon_title_format): Extern declare.
3080 (ns_set_name): Call ns_set_name_internal.
3081 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3082 (x_implicitly_set_name): Ditto.
3083 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3084 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3085
3086 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3087
3088 * window.c (syms_of_window): Add missing defsubr for
3089 window-use-time.
3090
3091 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3092
3093 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3094 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3095
3096 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3097
3098 * buffer.c: Remove unused declarations.
3099 * buffer.h: Likewise.
3100 * charset.h: Likewise.
3101 * composite.h: Likewise.
3102 * dispextern.h: Likewise.
3103 * dispnew.c: Likewise.
3104 * font.h: Likewise.
3105 * fontset.c: Likewise.
3106 * fontset.h: Likewise.
3107 * intervals.h: Likewise.
3108 * keymap.h: Likewise.
3109 * lisp.h: Likewise.
3110 * syntax.c: Likewise.
3111 * syntax.h: Likewise.
3112 * termhooks.h: Likewise.
3113 * window.h: Likewise.
3114 * xsettings.h: Likewise.
3115 * xterm.c: Likewise.
3116 * xterm.h: Likewise.
3117
3118 * chartab.c (sub_char_table_ref): Make static.
3119 * dispnew.c (line_hash_code, required_matrix_height)
3120 (required_matrix_width): Likewise.
3121 * eval.c (interactive_p, apply_lambda): Likewise.
3122 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3123 Likewise.
3124 * font.c (QCadstyle, QCregistry, font_make_spec)
3125 (font_parse_fcname, font_encode_char, font_at): Likewise.
3126 * frame.c (x_frame_get_arg): Likewise.
3127 * keymap.c (get_keyelt): Likewise.
3128 * lread.c (read_filtered_event): Likewise.
3129 * print.c (write_string_1): Likewise.
3130 * window.c (delete_window, window_height, window_width)
3131 (foreach_window): Likewise.
3132 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3133 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3134 (xembed_send_message): Likewise.
3135
3136 * eval.c (run_hook_list_with_args): Delete.
3137 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3138 * terminal.c (get_terminal_param): Likewise.
3139 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3140
3141 * scroll.c: Fix comment.
3142
3143 * dispnew.c (add_window_display_history)
3144 (add_frame_display_history, glyph_row_slice_p)
3145 (find_glyph_row_slice, flush_stdout)
3146 (check_matrix_pointer_lossage, matrix_row)
3147 (check_matrix_invariants, check_window_matrix_pointers)
3148 (check_matrix_pointers, window_to_frame_vpos)
3149 (window_to_frame_hpos): Prototize.
3150 * textprop.c (erase_properties): Likewise.
3151
3152 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3153
3154 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3155 (print_preprocess): Fix handling of uninterned symbols in last change.
3156
3157 * print.c (print, print_preprocess, print_object): Use a hash table
3158 rather than a linear table for Vprint_number_table.
3159
3160 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3161
3162 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3163
3164 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3165
3166 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3167 (parse_tool_bar_item): Use it to obtain image separators for
3168 displays not using native tool-bar separators.
3169
3170 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3171 specially, since this is now done in parse_tool_bar_item.
3172
3173 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3174
3175 Minor clean up to silence some gcc warnings.
3176 * window.c (Fset_window_buffer):
3177 * xterm.c (x_set_frame_alpha): Restructure code to silence
3178 compiler warning.
3179 (handle_one_xevent): Remove unused var `p'.
3180 (do_ewmh_fullscreen): Remove unused var `lval'.
3181 (xembed_set_info): Remove unused var `atom'.
3182 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3183 compiler warning.
3184 * fontset.c (fontset_id_valid_p, dump_fontset):
3185 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3186 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3187 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3188 label only when it's used.
3189 * image.c (x_create_bitmap_from_xpm_data):
3190 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3191 its callers.
3192 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3193 `consumed_chars'.
3194 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3195 (decode_coding_emacs_mule): Remove unused label `retry'.
3196 (detect_eol): Add parens to silence compiler warning.
3197 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3198 it's used to silence the compiler.
3199 (make_number): Modernize k&r declaration.
3200 (mark_char_table): Add parens to silence compiler warning.
3201
3202 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
3203
3204 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3205 tool-bar maps.
3206 (menu_separator_name_p): New function, from gtkutil.c.
3207 (separator_names): Move from gtkutil.c.
3208
3209 * keyboard.h (menu_separator_name_p): Add prototype.
3210
3211 * gtkutil.c (XG_BIN_CHILD): New macro.
3212 (xg_get_menu_item_label, xg_update_menubar)
3213 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3214 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3215 (separator_names, xg_separator_p): Move to keyboard.c.
3216 (create_menus, xg_update_submenu, update_frame_tool_bar):
3217 Use menu_separator_name_p.
3218
3219 * nsmenu.m (name_is_separator): Function deleted.
3220 (addItemWithWidgetValue): Use menu_separator_name_p.
3221
3222 * w32menu.c (name_is_separator): Function deleted.
3223 (add_menu_item): Use menu_separator_name_p.
3224
3225 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3226
3227 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3228 same as the background, use the face forground as cursor.
3229
3230 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3231
3232 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3233
3234 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3235
3236 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3237 (face_before_or_after_it_pos, next_element_from_string)
3238 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3239 calculations of maximum string length before calling
3240 string_char_and_length and STRING_CHAR_AND_LENGTH.
3241 (string_char_and_length): Update commentary: MAXLEN is no longer
3242 needed.
3243
3244 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3245
3246 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3247 as (Qsave_session arg).
3248
3249 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3250 (smc_die_CB): Make an event with arg Qt.
3251 (Fhandle_save_session): If event has Qt as argument,
3252 call Fkill_emacs (Bug#7552).
3253
3254 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3255
3256 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3257
3258 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3259
3260 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3261
3262 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3263
3264 * dispextern.h (struct it): New member overlay_strings_charpos.
3265
3266 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3267 charpos where we computed n_overlay_strings.
3268 (next_overlay_string): Load overlay strings at recorded position,
3269 which may not be the same as the iterator's charpos (Bug#7016).
3270
3271 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3272
3273 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3274 obscured due to a vscroll (Bug#7537).
3275
3276 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
3277
3278 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3279
3280 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3281 Use FRAME_TOOLBAR_HEIGHT.
3282 (x_set_offset): Handle XNegative and YNegative in
3283 f->size_hint_flags (Bug#7510).
3284
3285 2010-12-11 Eli Zaretskii <eliz@gnu.org>
3286
3287 * w32fns.c (Fx_show_tip): Call try_window with last argument
3288 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3289 solved. Round up the tip height to an integral multiple of the
3290 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3291 (Bug#7398)
3292
3293 2010-12-08 Glenn Morris <rgm@gnu.org>
3294
3295 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3296
3297 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3298
3299 * xml.c (parse_region): Ignore blank HTML nodes.
3300 (make_dom): Return CDATA sections (like <style>foo</style>) as
3301 text nodes.
3302
3303 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3304
3305 * lread.c (read1): Allow newstyle unquote outside of backquote.
3306 Disallow old-style backquotes inside new-style backquotes.
3307 Don't count unquotes to figure out when we're "syntactically inside
3308 but semantically outside of a backquote" any more.
3309 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3310 to all contexts.
3311
3312 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
3313
3314 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3315
3316 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3317
3318 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3319 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3320 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3321
3322 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3323
3324 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3325 bit-field.
3326 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3327 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3328 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3329 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3330 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3331 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3332 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3333 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3334 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3335 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3336 * m/hp800.h: Remove file.
3337 * m/mips.h: Remove file.
3338
3339 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3340
3341 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3342 with cursor color and draw a rectangle around the image (Bug#7412).
3343
3344 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3345
3346 * frame.c (x_set_font): Remove unused variable.
3347
3348 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3349
3350 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3351
3352 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3353 drawing text under filled box cursor (Bug#7479).
3354
3355 2010-11-27 Kenichi Handa <handa@m17n.org>
3356
3357 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3358 i.e. integer.
3359 (Fdefine_charset_internal): Adjust for the above change.
3360 (init_charset_once): Likewise.
3361
3362 * charset.h (emacs_mule_charset): Adjust the prototype.
3363 Delete duplicated extern.
3364
3365 * coding.c (emacs_mule_char): Adjust for the change of
3366 emacs_mule_charset.
3367
3368 * lread.c (read_emacs_mule_char): Adjust for the change of
3369 emacs_mule_charset.
3370
3371 2010-11-27 Eli Zaretskii <eliz@gnu.org>
3372
3373 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3374 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3375
3376 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3377
3378 * alloc.c (mark_terminals): Ensure that the image cache is marked
3379 even if the terminal object was marked earlier (Bug#6301).
3380
3381 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
3382
3383 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3384
3385 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
3386
3387 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3388 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
3389 Use 23 as menubar height if 0. (Bug#7425).
3390
3391 2010-11-26 Eli Zaretskii <eliz@gnu.org>
3392
3393 * xdisp.c (set_message_1): Force paragraph direction in echo area
3394 be left-to-right.
3395
3396 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3397 when the click is on the header or mode line.
3398
3399 2010-11-25 Eli Zaretskii <eliz@gnu.org>
3400
3401 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3402 `cursor' property of the first character in overlay strings.
3403 (Bug#7474) (Bug#7481)
3404
3405 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3406
3407 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3408 (NSLeftAlternateKeyMask): New defines.
3409 (keyDown): Parse left and right keys separately (Bug#7458).
3410 Compare Left key masks exactly (Bug#7458).
3411
3412 2010-11-23 Eli Zaretskii <eliz@gnu.org>
3413
3414 * intervals.c (temp_set_point_both): Define before calling, to
3415 avoid GCC warnings.
3416
3417 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3418
3419 * nsmenu.m: Use #include <config.h> instead of "config.h".
3420
3421 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
3422 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3423 Move declarations ...
3424 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
3425 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3426 ... here.
3427
3428 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3429 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3430 (gdb_pvec_type):
3431 * print.c (print_output_debug_flag):
3432 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3433 (safe_debug_print): New declaration.
3434
3435 * xterm.c:
3436 * systty.h:
3437 * sound.c: Include <sys/ioctl.h> unconditionally.
3438
3439 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3440
3441 * alloc.c (mark_maybe_object): Return early if given a Lisp
3442 integer (Bug#6301).
3443
3444 2010-11-21 Ken Brown <kbrown@cornell.edu>
3445
3446 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3447
3448 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3449
3450 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3451 Define (Bug#7458).
3452 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3453 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3454 NSRightControlKeyMask also (Bug#7458).
3455 (keyDown): Ditto (Bug#7458).
3456 (syms_of_nsterm): Defvar ns-right-command-modifier and
3457 ns-right-control-modifier (Bug#7458).
3458
3459 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3460
3461 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3462 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3463
3464 * intervals.h (temp_set_point, temp_set_point_both):
3465 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3466
3467 2010-11-20 Ken Brown <kbrown@cornell.edu>
3468
3469 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3470
3471 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3472
3473 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3474 \xNNNNNN for hex-code display of glyphless characters.
3475
3476 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3477
3478 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3479 Set important to ! vert_only.
3480 (xg_show_toolbar_item): Don't show label horizontally if
3481 tool item isn't important.
3482 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3483 xg_make_tool_item, or update important on existing tool item.
3484
3485 * keyboard.c (QCvert_only): New variable.
3486 (parse_tool_bar_item): Check for QCvert_only.
3487 (syms_of_keyboard): Initialize QCvert_only.
3488
3489 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3490
3491 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3492
3493 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3494 same in-line.
3495
3496 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3497
3498 * xfaces.c (lookup_face): Make static.
3499 * dispnew.c (copy_row_except_pointers): Likewise.
3500 * syntax.c (dec_bytepos): Likewise.
3501 (inc_bytepos): Remove.
3502 * dispextern.h (lookup_face): Remove declaration.
3503
3504 2010-11-19 Eli Zaretskii <eliz@gnu.org>
3505
3506 * xdisp.c (set_cursor_from_row): Display cursor after all the
3507 glyphs that come from an overlay. Don't overstep the last glyph
3508 when skipping glyphs from an overlay. (Bug#6687)
3509
3510 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3511
3512 * alloc.c (refill_memory_reserve): Move declaration ...
3513 * lisp.h (refill_memory_reserve): ... here.
3514
3515 * strftime.c (_strftime_copytm): Add declaration.
3516
3517 * callproc.c (syms_of_callproc): Use intern_c_string.
3518
3519 Move declarations from .c files to .h files.
3520 * process.c (timers_run):
3521 * minibuf.c (quit_char):
3522 * lread.c (read_emacs_mule_char):
3523 * keyboard.c (minibuf_level, message_enable_multibyte)
3524 (pending_malloc_warning):
3525 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3526 (Qonly): Remove declarations.
3527 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3528 (Vselect_active_regions):
3529 * keyboard.h (timers_run): Add declarations.
3530
3531 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3532 (tm_diff): Convert definitions to standard C.
3533 (extra_args_spec_iso): Remove, unused.
3534
3535 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
3536
3537 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3538
3539 * config.in (HAVE_G_TYPE_INIT): New symbol.
3540
3541 2010-11-18 Eli Zaretskii <eliz@gnu.org>
3542
3543 * lread.c (Fload): Mention `load-in-progress' and
3544 `load-file-name'. (Bug#7346)
3545
3546 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3547 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3548 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3549 subprocesses. Use buffer_free only ifdef subprocesses.
3550
3551 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3552 the subprocesses version, not in the non-subprocesses one.
3553
3554 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3555
3556 2010-11-17 Eli Zaretskii <eliz@gnu.org>
3557
3558 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3559 lines on text-mode terminals. (bug#7417)
3560
3561 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3562
3563 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3564 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3565
3566 2010-11-17 Kenichi Handa <handa@m17n.org>
3567
3568 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3569 change (set charset-ID list instead of charset-symbol list).
3570
3571 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
3572
3573 * keyboard.c (make_lispy_position): For text area clicks, record Y
3574 pixel position relative to the text area, excluding header line.
3575 Also change X and Y to Lisp_Objects, not pointers; don't return
3576 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3577 buffer_posn_from_coords counting from the start of the text area.
3578 (Fposn_at_x_y, make_lispy_event): Callers changed.
3579
3580 * window.c (coordinates_in_window): Change X and Y to ints rather
3581 than pointers; don't return coordinates via pointers.
3582 (struct check_window_data): Change X and Y from pointers to ints.
3583 (window_from_coordinates): Remove args WX and WY; don't return
3584 coordinates via pointers.
3585 (Fcoordinates_in_window_p, window_from_coordinates):
3586 (check_window_containing, Fwindow_at): Callers changed.
3587 (window_relative_x_coord): New function.
3588
3589 * window.h (window_from_coordinates, window_relative_x_coord):
3590 Update prototypes.
3591
3592 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3593 the start of the text area.
3594
3595 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3596 call. Use window_relative_x_coord.
3597 (note_mouse_highlight): Change window_from_coordinates call.
3598
3599 * w32term.c (w32_read_socket):
3600 * msdos.c (dos_rawgetc):
3601 * xterm.c (handle_one_xevent): Likewise.
3602
3603 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3604
3605 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3606 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3607 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3608 Convert definitions to standard C.
3609 * regex.c: Do not include <stdlib.h>, config.h does it.
3610 Include unistd.h.
3611 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3612 (regerror, regfree): Convert definitions to standard C.
3613 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3614 (__mktime_internal): Convert definitions to standard C.
3615
3616 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3617
3618 * w32proc.c:
3619 * w32inevt.c:
3620 * w32heap.c:
3621 * w32.c: Remove config.h include guards.
3622
3623 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3624 No code changes.
3625
3626 * process.c: Include <sys/ioctl.h> unconditionally,
3627 keyboard.c already does it.
3628
3629 * keyboard.c (pending_malloc_warning): Add const to match
3630 definition in alloc.c.
3631 (Fset_input_interrupt_mode): Simplify #ifdefs.
3632
3633 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3634
3635 Clean up systty.h macros.
3636 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3637 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3638 definition in all uses.
3639 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3640 * sysdep.c (discard_tty_input, child_setup_tty)
3641 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3642 * emacs.c (shut_down_emacs):
3643 * callproc.c (child_setup):
3644 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3645
3646 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3647
3648 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3649
3650 * w32fns.c (Fx_create_frame):
3651 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3652 resource here; it's now done at startup.
3653
3654 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3655
3656 * xterm.c (set_wm_state): Add Qnil to final cons.
3657
3658 * xselect.c (x_send_client_event): Remove unused variables cons and
3659 size.
3660
3661 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3662
3663 * keyboard.c (modify_event_symbol): Add const to array elements of
3664 arg NAME_TABLE.
3665 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3666 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3667 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3668 Add const to array elements.
3669 (scroll_bar_parts): Make static. Fix position of const.
3670
3671 * w32fns.c (lispy_function_keys): Add const to extern.
3672
3673 * w32inevt.c (lispy_function_keys): Likewise.
3674
3675 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3676
3677 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3678 resource here; it's now done at startup.
3679
3680 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3681
3682 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
3683
3684 Fix compilation on Solaris.
3685 * sysdep.c: Do not #include <term.h>.
3686 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3687
3688 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3689
3690 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3691
3692 * xterm.c (set_wm_state): Don't put Atom in cons, call
3693 make_fixnum_or_float on them first.
3694 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3695 Xatom_net_supported correctly.
3696
3697 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3698 (Fx_send_client_event): to here.
3699
3700 2010-11-13 Martin Rudalics <rudalics@gmx.at>
3701
3702 * window.c (Fwindow_use_time): New function.
3703
3704 2010-11-13 Eli Zaretskii <eliz@gnu.org>
3705
3706 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3707 zero-width characters.
3708
3709 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3710
3711 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3712 box before drawing the glyphs inside it.
3713
3714 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3715
3716 * dispextern.h (enum glyphless_display_method):
3717 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3718 All users changed.
3719
3720 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3721 Fix comments.
3722 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3723 whitespace in "[]", to simulate a box. Don't use uninitialized
3724 variable `width'.
3725
3726 2010-11-11 Julien Danjou <julien@danjou.info>
3727
3728 * xsettings.c (init_xsettings): Use already fetch atoms.
3729
3730 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3731 from dpyinfo.
3732
3733 * xselect.c (Fx_send_client_event): Split and create
3734 x_send_client_event.
3735
3736 * lisp.h: Do not EXFUN Fx_send_client_event.
3737
3738 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3739 from dpyinfo.
3740 (wm_supports): Use atoms from dpyinfo.
3741 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3742 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3743 (xembed_set_info): Use atoms from dpyinfo.
3744 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3745 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3746 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3747 Get all atoms in one round-trip.
3748 (set_wm_state): Use x_send_client_event rather than
3749 Fx_send_client_event, using Atom directly.
3750 (x_ewmh_activate_frame): Ditto.
3751 (x_set_sticky): Pass atoms to set_wm_state.
3752 (do_ewmh_fullscreen): Ditto.
3753
3754 * xterm.h (x_display_info): Add Xatom_net_supported,
3755 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3756 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3757
3758 * xfns.c (Fx_show_tip): Fix typo in docstring.
3759
3760 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3761
3762 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3763 it's not negative.
3764
3765 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3766
3767 * font.c (font_filter_properties): Add const to array elements of
3768 properties args.
3769
3770 * font.h (font_filter_properties): Likewise.
3771
3772 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3773 elements.
3774
3775 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3776
3777 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
3778
3779 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3780 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3781 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3782 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3783 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3784
3785 2010-11-10 Glenn Morris <rgm@gnu.org>
3786
3787 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3788
3789 2010-11-09 Eli Zaretskii <eliz@gnu.org>
3790
3791 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
3792
3793 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
3794
3795 * image.c (free_image): Don't garbage the frame here, since this
3796 function can be called while redisplaying (Bug#7210).
3797 (uncache_image): Garbage the frame here (Bug#6426).
3798
3799 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
3800
3801 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3802 parent is the root window. Check this after traversing window tree.
3803
3804 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
3805
3806 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
3807
3808 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3809 before traversing window tree (Bug#5721).
3810
3811 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3812
3813 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3814
3815 * xdisp.c (note_mode_line_or_margin_highlight):
3816 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
3817
3818 2010-11-06 Eli Zaretskii <eliz@gnu.org>
3819
3820 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3821 adjust width of tool-tip frame to the width of text, excluding the
3822 stretch glyph at the beginning of R2L glyph rows.
3823
3824 * w32fns.c (Fx_show_tip): Likewise.
3825
3826 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3827
3828 * nsfont.m: Include termchar for new mouse-highlight.
3829 (nsfont_draw): Use MOUSE_HL_INFO.
3830
3831 2010-11-05 Eli Zaretskii <eliz@gnu.org>
3832
3833 Unify mouse-highlight code for all GUI and TTY sessions.
3834
3835 * term.c: Remove static mouse_face_* variables. All users
3836 changed.
3837 (term_show_mouse_face, term_clear_mouse_face)
3838 (fast_find_position, term_mouse_highlight): Functions deleted.
3839 (tty_draw_row_with_mouse_face): New function.
3840 (term_mouse_movement): Call note_mouse_highlight instead of
3841 term_mouse_highlight.
3842
3843 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3844 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3845 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3846 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3847 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3848 Replace Display_Info with Mouse_HLInfo everywhere where
3849 mouse_face_* members were accessed for mouse highlight purposes.
3850
3851 * xterm.c (x_update_window_begin, x_update_window_end)
3852 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
3853 (handle_one_xevent, x_free_frame_resources, x_term_init):
3854 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
3855 members were accessed for mouse highlight purposes.
3856
3857 * w32term.c (x_update_window_begin, x_update_window_end)
3858 (x_update_end, w32_read_socket, x_free_frame_resources)
3859 (w32_initialize_display_info): Replace Display_Info with
3860 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3861 for mouse highlight purposes.
3862
3863 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3864 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3865 unless the frame is on a window-system.
3866 (get_tool_bar_item, handle_tool_bar_click)
3867 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3868 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3869 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3870 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3871 Replace Display_Info with Mouse_HLInfo everywhere where
3872 mouse_face_* members were accessed for mouse highlight purposes.
3873 (coords_in_mouse_face_p): Move prototype out of the
3874 HAVE_WINDOW_SYSTEM conditional.
3875 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3876 HAVE_WINDOW_SYSTEM block.
3877 (try_window_id) [HAVE_GPM || MSDOS]:
3878 Call x_clear_window_mouse_face.
3879 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
3880 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3881 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3882 calling draw_glyphs directly.
3883 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3884 (cursor_in_mouse_face_p, rows_from_pos_range)
3885 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3886 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3887 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3888 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3889 fragments.
3890 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3891 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3892 integer.
3893 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
3894 (x_consider_frame_title, tool_bar_lines_needed):
3895 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
3896 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3897 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3898 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3899 part.
3900
3901 * dispnew.c (mirror_make_current): Set Y coordinate of the
3902 mode-line and header-line rows.
3903 (init_display): Setup initial frame's output_data for text
3904 terminal frames.
3905
3906 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3907 its own definition on msdos.c.
3908
3909 * msdos.c (show_mouse_face, clear_mouse_face)
3910 (fast_find_position, IT_note_mode_line_highlight)
3911 (IT_note_mouse_highlight): Functions deleted.
3912 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3913 instead of IT_note_mouse_highlight.
3914 (draw_row_with_mouse_face, popup_activated): New functions.
3915 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3916 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3917 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3918 where mouse_face_* members were accessed for mouse highlight
3919 purposes.
3920
3921 * msdos.h (initialize_msdos_display): Add prototype.
3922
3923 * frame.h (MOUSE_HL_INFO): New macro.
3924
3925 * lisp.h (Mouse_HLInfo): New data type.
3926
3927 * xterm.h (struct x_display_info):
3928 * w32term.h (struct w32_display_info):
3929 * nsterm.h (struct ns_display_info):
3930 * termchar.h (struct tty_display_info): Use it instead of
3931 mouse_face_* members.
3932
3933 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3934 1st argument.
3935 (frame_to_window_pixel_xy, note_mouse_highlight)
3936 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3937 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3938 HAVE_WINDOW_SYSTEM conditional.
3939 (draw_row_with_mouse_face): Declare prototype.
3940 (tty_draw_row_with_mouse_face): Declare prototype.
3941
3942 2010-11-05 Eli Zaretskii <eliz@gnu.org>
3943
3944 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3945 Remove unused variables.
3946
3947 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3948
3949 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3950 logic pointed out by Eli Zaretskii.
3951
3952 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3953
3954 * coding.c (coding-category-list): Refer to set-coding-system-priority
3955 instead of the obsolete set-coding-priority in the doc string.
3956
3957 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3958
3959 * nsfont.m (nsfont_draw): Correct previous patch to return
3960 correct value.
3961 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3962 don't change the method signature, change the return.
3963
3964 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3965
3966 * nsfont.m (nsfont_draw)
3967 * nsimage.m (EmacsImage-setXBMColor:)
3968 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3969
3970 2010-11-03 Julien Danjou <julien@danjou.info>
3971
3972 * image.c (gif_load): Add support for transparency and specified
3973 :background.
3974
3975 2010-11-01 Kenichi Handa <handa@m17n.org>
3976
3977 * dispextern.h (lookup_glyphless_char_display): Extern it.
3978
3979 * termhooks.h (struct terminal): New member charset_list.
3980
3981 * coding.c (Fset_terminal_coding_system_internal): Set the
3982 `charset_list' member of struct terminal.
3983
3984 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
3985 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3986
3987 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3988 (lookup_glyphless_char_display): Set it->what at the end.
3989 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3990 (last_glyphless_glyph_merged_face_id): Make them non-static.
3991
3992 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3993 Fix the arg with_background for font->driver->draw.
3994
3995 2010-11-01 Kenichi Handa <handa@m17n.org>
3996
3997 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3998 Surround chp by parentheses.
3999
4000 2010-11-01 Kenichi Handa <handa@m17n.org>
4001
4002 Implement various display methods for glyphless characters.
4003
4004 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4005 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4006 (Qzero_width): New variables.
4007 (THIN_SPACE_WIDTH): New macro.
4008 (lookup_glyphless_char_display): New function.
4009 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4010 (last_glyphless_glyph_merged_face_id): New variables.
4011 (get_next_display_element): Check glyphless characters.
4012 (redisplay_internal): Initialize last_glyphless_glyph_frame and
4013 last_glyphless_glyph_face_id.
4014 (fill_glyphless_glyph_string): New function.
4015 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4016 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4017 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4018 (x_produce_glyphs): If a suitable font is not found, produce a
4019 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
4020 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4021 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4022 Qzero_width.
4023 (Vglyphless_char_display): Declare it as a Lisp variable.
4024
4025 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
4026 (struct glyph): Change the size of the member "type" to 3.
4027 Add glyphless to the union slice and u.
4028 (enum display_element_type): Add IT_GLYPHLESS.
4029 (enum glyphless_display_method): New enum.
4030 (struct it): New member glyphless_method.
4031 (Vglyphless_char_display): Extern it.
4032
4033 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4034 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4035
4036 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
4037 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4038
4039 * nsterm.m (ns_draw_glyph_string): Handle the case
4040 GLYPHLESS_GLYPH (the detail is not yet implemented).
4041
4042 2010-10-31 Glenn Morris <rgm@gnu.org>
4043
4044 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4045
4046 * frame.c (syms_of_frame) <tool-bar-mode>:
4047 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
4048
4049 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
4050
4051 * xterm.c (x_connection_closed): Print informative error message
4052 when aborting on GTK. This requires using shut_down_emacs
4053 directly instead of Fkill_emacs.
4054
4055 2010-10-29 Eli Zaretskii <eliz@gnu.org>
4056
4057 * emacs.c (main): Call syms_of_filelock unconditionally.
4058
4059 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4060 clause, but keep part of it conditioned on CLASH_DETECTION.
4061
4062 2010-10-29 Glenn Morris <rgm@gnu.org>
4063
4064 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4065 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4066 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4067 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4068 Sync docs between X, W32, NS.
4069
4070 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4071 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4072
4073 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
4074
4075 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4076 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4077
4078 2010-10-26 Eli Zaretskii <eliz@gnu.org>
4079
4080 * cmds.c (internal_self_insert): Don't insert if argument N is
4081 zero or negative. (Bug#7281)
4082
4083 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4084
4085 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4086
4087 2010-10-25 Glenn Morris <rgm@gnu.org>
4088
4089 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4090
4091 2010-10-24 Glenn Morris <rgm@gnu.org>
4092
4093 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4094 (Fx_window_property, Fx_file_dialog):
4095 * xfns.c (Fx_synchronize, Fx_change_window_property)
4096 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4097
4098 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
4099
4100 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4101
4102 2010-10-24 Eli Zaretskii <eliz@gnu.org>
4103
4104 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4105
4106 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4107 Deprecate use as a boolean flag.
4108
4109 2010-10-24 Jim Meyering <jim@meyering.net>
4110
4111 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4112
4113 2010-10-24 Glenn Morris <rgm@gnu.org>
4114
4115 * w16select.c (syms_of_win16select) <selection-coding-system>:
4116 <next-selection-coding-system>:
4117 * w32select.c (syms_of_w32select) <selection-coding-system>:
4118 <next-selection-coding-system>:
4119 Sync docs with select.el.
4120
4121 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4122 Lisp version.
4123
4124 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4125 Sync doc with the xterm.c version.
4126
4127 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4128 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4129
4130 2010-10-23 Glenn Morris <rgm@gnu.org>
4131
4132 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
4133 * frame.c (syms_of_frame) <menu-bar-mode>:
4134 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
4135 <hourglass-delay>: Sync docs with Lisp.
4136
4137 2010-10-23 Eli Zaretskii <eliz@gnu.org>
4138
4139 Implement mouse highlight for bidi-reordered lines.
4140
4141 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4142 (mouse_face_from_string_pos): New function, replaces
4143 fast_find_string_pos.
4144 (note_mouse_highlight): Call it instead of fast_find_string_pos.
4145 (note_mode_line_or_margin_highlight): Support bidi-reordered
4146 strings and R2L glyph rows. Fix comments.
4147 (note_mouse_highlight): When bidi reordering is turned on in a
4148 buffer, call next-single-property-change and
4149 previous-single-property-change with last argument nil.
4150 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
4151 glyph that stands for no text beyond the line end.
4152 (row_containing_pos): Don't return too early when CHARPOS is in a
4153 bidi-reordered continued line. Return immediately when the first
4154 hit is found in a line that is not continued, or when an exact
4155 match for CHARPOS is found.
4156 (rows_from_pos_range): New function.
4157 (mouse_face_from_buffer_pos): Use it instead of calling
4158 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4159 function to support mouse highlight in bidi-reordered lines and
4160 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4161 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4162 that the former is always above the latter or identical to it.
4163 (show_mouse_face): Support drawing highlighted R2L lines.
4164 (coords_in_mouse_face_p): New function, bidi-aware.
4165 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4166 Call it instead of comparing with mouse-face members of dpyinfo.
4167 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4168 usage of hpos and vpos.
4169
4170 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4171
4172 * xrdb.c: Include keyboard.h for MOTIF.
4173
4174 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4175 MOTIF (Bug#7263).
4176
4177 * xfns.c: Include Xm/TextF and Xm/List.
4178 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4179 Make ANSI prototypes.
4180
4181 2010-10-22 Glenn Morris <rgm@gnu.org>
4182
4183 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4184 Remove ccl and duplicate mouse.
4185
4186 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
4187
4188 * insdel.c (prepare_to_modify_buffer): Don't set
4189 saved-region-selection if modification hooks are disabled.
4190
4191 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
4192
4193 * cmds.c (Fdelete_char): Doc fix.
4194
4195 2010-10-19 Ken Brown <kbrown@cornell.edu>
4196
4197 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4198
4199 2010-10-19 Kenichi Handa <handa@m17n.org>
4200
4201 Fix incorrect font metrics when the same font is opened with
4202 different pixelsizes.
4203
4204 * xftfont.c: Include composite.h.
4205 (xftfont_shape): New function.
4206 (syms_of_xftfont): Set xftfont_driver.shape.
4207
4208 2010-10-18 Julien Danjou <julien@danjou.info>
4209
4210 * frame.c (Fframe_pointer_visible_p):
4211 Add `frame-pointer-visible-p' to get the pointer visibility.
4212
4213 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4214
4215 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4216 non-"EAGAIN"-like error to signal to Emacs that the socket should
4217 be closed.
4218
4219 2010-10-15 Eli Zaretskii <eliz@gnu.org>
4220
4221 * unexcoff.c (make_hdr): Fix prototype according to changes in
4222 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4223
4224 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4225
4226 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4227
4228 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4229 made building the X menu fail.
4230 (really-oldXMenu): Fix my previous fix.
4231
4232 2010-10-14 Damyan Pepper <damyanp@gmail.com>
4233
4234 Fix handling of font properties on Windows (bug#6303).
4235 * font.c (font_filter_properties): New function, refactored from
4236 ftfont_filter_properties.
4237 * font.h (font_filter_properties): Declare.
4238 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4239 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4240 (w32font_filter_properties): New function.
4241 (w32font_driver): Add w32font_filter_properties.
4242
4243 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4244
4245 * font.c (Ffont_variation_glyphs):
4246 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4247
4248 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4249
4250 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4251 * w32font.c (w32_generic_family):
4252 * w32inevt.c (key_event):
4253 * w32menu.c (fill_in_menu):
4254 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4255 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4256 * w32term.c (w32_read_socket): Make static.
4257
4258 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4259
4260 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4261 prototypes; all callers changed.
4262
4263 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4264
4265 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4266 (OBJ2): New macro.
4267 (WIN32OBJ, FONTOBJ): Remove.
4268 (OBJ1): Redistribute object files with OBJ2.
4269 (LIBS, $(TEMACS)): Use TLIB2.
4270 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4271 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4272
4273 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4274
4275 * emacs.c (Vdynamic_library_alist)
4276 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4277 Doc fix.
4278
4279 * lisp.h (Vdynamic_library_alist): Declare extern.
4280
4281 * image.c (Vimage_library_alist)
4282 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4283 (lookup_image_type): Use Vdynamic_library_alist.
4284 (Finit_image_library): Doc fix.
4285
4286 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4287
4288 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4289 (lispdir): Remove trailing /, update all uses.
4290
4291 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
4292
4293 * nsterm.m (Qleft): Declare.
4294 (ns_right_alternate_modifier): New variable.
4295 (NSRightAlternateKeyMask): New define.
4296 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4297 ns_right_alternate_modifier isn't Qleft.
4298 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4299 as emacs modifier for NSRightAlternateKeyMask.
4300 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4301
4302 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4303
4304 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4305 gnutls is ready, return EAGAIN as the errno.
4306
4307 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4308
4309 * vm-limit.c:
4310 * unexhp9k800.c:
4311 * unexelf.c:
4312 * unexaix.c:
4313 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4314
4315 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4316 (PROFILING_LDFLAGS): Remove, not needed anymore.
4317
4318 * Makefile.in: Use $(...) everywhere instead of ${...}.
4319 (CRT_DIR): Move near potential user.
4320 (START_FILE): Move near CRT_DIR, it might use it.
4321
4322 * sysdep.c (LPASS8): Remove, unused.
4323 (emacs_ospeed): Change from being a global to a local in the only
4324 user: init_baud_rate.
4325
4326 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4327
4328 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
4329 (emacs_gnutls_write): Remove the debuggin fsync call.
4330 (emacs_gnutls_read): Return -1 if we got an error from
4331 gnutls_read. This allows us to actually read lots of data from
4332 the GnuTLS stream.
4333 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4334 According to the documentation, this is correct, and it seems to
4335 make things work.
4336
4337 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
4338
4339 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4340
4341 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4342
4343 * keyboard.c: Revert last change; it was not intended to be
4344 synchronized with the trunk.
4345
4346 2010-10-08 Kenichi Handa <handa@m17n.org>
4347
4348 * coding.c (complement_process_encoding_system): Fix previous change.
4349
4350 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4351
4352 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4353 (Fdbus_init_bus): ... here. (Bug#7113)
4354
4355 2010-10-08 Glenn Morris <rgm@gnu.org>
4356
4357 * buffer.c (before-change-functions, after-change-functions):
4358 Three-year overdue doc fix following 2007-08-13 change.
4359
4360 2010-10-08 Kenichi Handa <handa@m17n.org>
4361
4362 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4363 eol-format, inherit from the system's default.
4364 (complement_process_encoding_system): Make a new coding system
4365 inherit the original eol-format.
4366
4367 2010-10-08 Kenichi Handa <handa@m17n.org>
4368
4369 * coding.c (complement_process_encoding_system): New function.
4370
4371 * coding.h (complement_process_encoding_system): Extern it.
4372
4373 * callproc.c (Fcall_process): Complement the coding system for
4374 encoding arguments.
4375 (Fcall_process_region): Complement the coding system for encoding
4376 the input to the process.
4377
4378 * process.c (Fstart_process): Complement the coding system for
4379 encoding arguments.
4380 (send_process): Complement the coding system for encoding what
4381 sent to the process.
4382
4383 2010-10-08 Kenichi Handa <handa@m17n.org>
4384
4385 * xfont.c (xfont_open): Fix setting of font->average_width from
4386 :avgwidth property (Bug#7123).
4387
4388 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4389
4390 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4391 is more portable.
4392
4393 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
4394 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
4395 has not defined SIGIO.
4396
4397 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
4398
4399 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4400 draw the outermost line using the black relief, for legibility.
4401 Omit drawing the four corner pixels.
4402
4403 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
4404
4405 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4406 (read_key_sequence): Inline echo_prompt.
4407 (echo_dash): Add a dash only if key is continued (Bug#7137).
4408
4409 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4410
4411 Remove O_RDONLY, O_WRONLY definitions, not needed.
4412 * unexcoff.c:
4413 * lread.c:
4414 * fileio.c:
4415 * doc.c:
4416 * callproc.c:
4417 * alloc.c:
4418 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4419
4420 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4421
4422 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4423
4424 * gnutls.c: Add property list symbol holders.
4425 (emacs_gnutls_handshake): Clarify how sockets are passed to
4426 GnuTLS.
4427 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4428 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4429 and keyfiles to be a list of file names. Default to "NORMAL" for
4430 the priority string. Improve logging.
4431
4432 2010-10-03 Glenn Morris <rgm@gnu.org>
4433
4434 * fileio.c (Vdirectory_sep_char): Remove.
4435
4436 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4437
4438 * termhooks.h: Remove #ifdef CONSP.
4439
4440 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4441
4442 Include <fcntl.h> unconditionally.
4443 * termcap.c:
4444 * sysdep.c:
4445 * lread.c:
4446 * keyboard.c:
4447 * filelock.c:
4448 * fileio.c:
4449 * doc.c:
4450 * callproc.c:
4451 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4452 does it.
4453
4454 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4455
4456 * sysdep.c (flush_pending_output): Remove code, does not do
4457 anything on any platform.
4458
4459 Remove unused code.
4460 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4461 Remove select emulation, all systems support select.
4462 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4463 * process.c (create_process): Remove #if 0 code.
4464
4465 Remove unused arguments for unexec.
4466 The third one is never used, and the last two are always passed as zero.
4467 * emacs.c (unexec): Add declaration.
4468 (Fdump_emacs): Only pass the first two arguments to unexec.
4469 Simplify #ifdef.
4470 * unexw32.c (unexec):
4471 * unexsol.c (unexec):
4472 * unexhp9k800.c (unexec):
4473 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4474 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4475 (find_section): Use const.
4476 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4477 (unexec_error): Declare it NO_RETURN.
4478 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4479 it as an argument, remove data_start and entry_address arguments, unused.
4480 (unexec): Remove bss_start, data_start and
4481 entry_address arguments.
4482 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4483 it as an argument, remove data_start and entry_address arguments, unused.
4484 (unexec): Remove bss_start, data_start and
4485 entry_address arguments.
4486
4487 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
4488
4489 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4490
4491 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4492 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4493 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4494 Fix typos in docstrings.
4495 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4496 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4497
4498 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
4499
4500 * keyboard.c (command_loop_1): Make sure the mark is really alive
4501 before using it (Bug#7044).
4502
4503 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
4504
4505 * makefile.w32-in (tags): Rename target to full-tags.
4506
4507 2010-10-02 Eli Zaretskii <eliz@gnu.org>
4508
4509 * emacs.c (main): Remove !WINDOWSNT conditional.
4510 (Fkill_emacs): Don't mention exemption on MS-Windows.
4511
4512 2010-10-02 Glenn Morris <rgm@gnu.org>
4513
4514 * character.c (Fchar_bytes): Remove obsolete function.
4515 (syms_of_character): Remove Schar_bytes.
4516
4517 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4518 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4519 in batch-mode.
4520 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4521 (kill-emacs-hook): Doc fix.
4522
4523 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4524
4525 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4526 (parse_region): Rework to take regions instead of strings, and
4527 renamed to reflect that these are the libxml functions.
4528
4529 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4530
4531 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4532 screen dimensions in tty->Wcm.
4533
4534 * xdisp.c (set_cursor_from_row): When the row is truncated and
4535 point is outside the range of displayed characters, position the
4536 cursor inside the scroll margin. (Bug#6349)
4537
4538 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4539
4540 Do not include stdlib.h and string.h, config.h does it.
4541 * xfont.c:
4542 * w32term.c:
4543 * w32reg.c:
4544 * w32inevt.c:
4545 * w32heap.c:
4546 * w32console.c:
4547 * w16select.c:
4548 * unexsol.c:
4549 * term.c:
4550 * sound.c:
4551 * scroll.c (m):
4552 * gtkutil.c:
4553 * font.c:
4554 * filelock.c:
4555 * fileio.c:
4556 * dosfns.c:
4557 * dbusbind.c:
4558 * bidi.c:
4559 * callproc.c:
4560 * process.c:
4561 * msdos.c:
4562 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4563
4564 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4565 defines it.
4566
4567 * process.c: Move #include <pty.h> earlier.
4568 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4569 (pty_name): Move definition later.
4570
4571 * nsselect.m (syms_of_nsselect):
4572 * nsmenu.m (syms_of_nsmenu):
4573 * nsfns.m (syms_of_nsfns):
4574 * msdos.c (syms_of_msdos):
4575
4576 * image.c (syms_of_image):
4577 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4578
4579 * point.h: Remove, unused.
4580
4581 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4582
4583 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4584 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4585 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4586
4587 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4588
4589 * xml.c (parse_string): Use const.
4590
4591 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4592
4593 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4594 Also only override Vprint_level if it isn't already bound, and increase
4595 the level to 8 to produce more useful backtraces for bug reports.
4596
4597 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4598
4599 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4600
4601 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
4602
4603 * w32console.c (vga_stdcolor_name): Remove unused function;
4604 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4605
4606 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4607
4608 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4609 (Fgnutls_boot): Start the handshake.
4610 (emacs_gnutls_read): Perform the handshake from the reader loop.
4611 (Fgnutls_boot): Remove some debugging messages.
4612 Change indentation throughout to use the Emacs style.
4613 (emacs_gnutls_handshake): Cast the fds to something that's
4614 possibly the expected length.
4615 (emacs_gnutls_write): Return -1 if we try to write before handshake.
4616
4617 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4618
4619 * process.c (make_process): Set the gnutls_p field to zero by
4620 default.
4621 (read_process_output): Always call the gnutls_read function if the
4622 stream is a gnutls stream.
4623 (send_process): Ditto for writes.
4624
4625 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4626 or write anything until the state is GNUTLS_STAGE_READY.
4627 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4628
4629 2010-09-29 Eli Zaretskii <eliz@gnu.org>
4630
4631 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4632 NEUTRAL_DIR.
4633 (handle_invisible_prop, iterate_out_of_display_property)
4634 (next_element_from_buffer): If bidi_it.first_elt is set, call
4635 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4636 (Bug#7128)
4637
4638 * print.c (print_object): Fix format string and argument types for
4639 printing a Lisp_Misc_Marker.
4640
4641 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4642 (load_overlay_strings, get_overlay_strings_1)
4643 (get_overlay_strings, forward_to_next_line_start)
4644 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4645 (get_next_display_element, next_element_from_string)
4646 (next_element_from_c_string, next_element_from_buffer)
4647 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4648 (message_dolog, message_log_check_duplicate, message2_nolog)
4649 (message3, message3_nolog, vmessage, set_message, set_message_1)
4650 (hscroll_window_tree, text_outside_line_unchanged_p)
4651 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4652 (find_last_unchanged_at_beg_row)
4653 (find_first_unchanged_at_end_row, row_containing_pos)
4654 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
4655 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4656 Use EMACS_INT for buffer and string positions.
4657
4658 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4659 (row_containing_pos): Adjust prototype.
4660
4661 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4662 (message2_nolog, set_message): Adjust prototypes.
4663
4664 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4665
4666 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4667 (Fgnutls_boot): Use SDATA.
4668 (Fgnutls_handshake): Remove unused var `max_log_level'.
4669
4670 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4671
4672 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
4673 (Bug#7113)
4674
4675 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4676
4677 * xgselect.c (xg_select): Clear file descriptors not set from
4678 rfds and wfds.
4679
4680 * process.c (wait_reading_process_output): Add missing FD_CLR
4681 for write_mask (must mirror connect_wait_mask).
4682
4683 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4684
4685 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4686 prefix.
4687 (Fgnutls_boot): Use changed process members. Use log level with a
4688 function parameter to set it. Bring back Emacs-level debugging
4689 messages at log level 1 and 2.
4690
4691 * process.c (make_process): Initialize gnutls_log_level.
4692
4693 * process.h: Add gnutls_log_level and rename x509_cred and
4694 anon_cred to have the gnutls_ prefix for consistency.
4695
4696 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4697
4698 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
4699
4700 * w32.c (g_b_init_get_sid_identifier_authority)
4701 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4702 Remove, not used.
4703 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4704 (init_winsock): Remove useless assignment.
4705 (open_process_token, get_token_information, lookup_account_sid)
4706 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4707 (get_security_descriptor_owner, get_security_descriptor_group)
4708 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4709 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4710 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4711 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4712 (unc_volume_file_attributes, convert_from_time_t)
4713 (create_toolhelp32_snapshot, process32_first, process32_next)
4714 (open_thread_token, impersonate_self, revert_to_self)
4715 (get_process_memory_info, get_process_working_set_size)
4716 (global_memory_status, global_memory_status_ex, socket_to_fd)
4717 (shutdown_handler): Make static.
4718
4719 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4720
4721 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4722 (xd_pending_messages): Functions removed.
4723 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4724 order to be compatible with add_read_fd. Determine bus from data,
4725 and call xd_read_message just for this bus.
4726 (xd_add_watch): Use xd_read_queued_messages as callback function.
4727 Add data.
4728
4729 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4730
4731 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4732
4733 * gnutls.c (gnutls_log_function): Add more debugging.
4734 (emacs_gnutls_read): Don't infloop while reading.
4735
4736 2010-09-27 Kenichi Handa <handa@m17n.org>
4737
4738 These changes are to remove restriction on the number of glyphs in
4739 one composition.
4740
4741 * dispextern.h (struct glyph): Change the member "slice" to union.
4742 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
4743 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4744
4745 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4746 instead of glyph->slice.
4747 (marginal_area_string): Likewise.
4748
4749 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4750 glyph->u.cmp.
4751 (append_composite_glyph): Likewise.
4752
4753 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4754 glyph->u.cmp.
4755 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4756 (append_composite_glyph): Likewise.
4757 (fill_image_glyph_string): Use glyph->slice.img instead of
4758 glyph->slice.
4759 (append_glyph, produce_image_glyph, append_stretch_glyph)
4760 (note_mouse_highlight): Likewise.
4761
4762 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4763
4764 * process.c (add_keyboard_wait_descriptor)
4765 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
4766 (wait_reading_process_output): Don't pass write_mask to select
4767 if SELECT_CANT_DO_WRITE_MASK is defined.
4768 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
4769
4770 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4771 (delete_write_fd): Declare.
4772
4773 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4774 (write_mask): New variable.
4775 (max_input_desc): Rename from max_keyboard_desc.
4776 (fd_callback_info): New variable.
4777 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4778 New functions.
4779 (Fmake_network_process): FD_SET write_mask.
4780 (deactivate_process): FD_CLR write_mask.
4781 (wait_reading_process_output): Connecting renamed to Writeok.
4782 check_connect removed. check_write is new. Remove references to gpm.
4783 Use Writeok/check_write unconditionally (i.e. no #ifdef
4784 NON_BLOCKING_CONNECT) instead of Connecting.
4785 Loop over file descriptors and call callbacks in fd_callback_info
4786 if file descriptor is ready for I/O.
4787 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4788 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4789 (keyboard_bit_set): Use max_input_desc.
4790 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4791 Remove #ifdef subprocesses. Use max_input_desc.
4792 (init_process): Initialize write_mask and fd_callback_info.
4793
4794 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4795
4796 * dbusbind.c: Include process.h.
4797 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4798 (xd_read_message_1): New functions.
4799 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4800 Handle watch for both read and write.
4801 (Fdbus_init_bus): Also register xd_toggle_watch.
4802 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4803 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4804 to dbus_connection_flush.
4805 (xd_read_message): Move most of the code to xd_read_message_1.
4806 Call xd_read_message_1 until status is COMPLETE.
4807
4808 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4809
4810 * term.c: Do not include sys/ioctl.h, not needed.
4811 (init_tty): Reorder code to reduce the number of #ifdefs.
4812 No code changes.
4813
4814 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4815
4816 * process.h: Set up GnuTLS support.
4817
4818 * process.c (make_process, Fstart_process)
4819 (read_process_output, send_process): Set up GnuTLS support for
4820 process input/output file descriptors.
4821
4822 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4823
4824 * gnutls.c: The source code for GnuTLS support in Emacs.
4825
4826 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4827
4828 * config.in: Set up GnuTLS support.
4829
4830 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4831 (obj, LIBES): Set up GnuTLS support.
4832
4833 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
4834
4835 * w32.c (get_emacs_configuration_options): Fix previous change.
4836
4837 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
4838
4839 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4840 alive before using it (Bug#6977).
4841
4842 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4843
4844 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4845
4846 * dispextern.h: EMACS_INT/int fixup.
4847
4848 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4849 fixup.
4850
4851 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4852
4853 2010-09-25 Eli Zaretskii <eliz@gnu.org>
4854
4855 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4856 (Fselect_window, window_scroll_pixel_based)
4857 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4858 Use EMACS_INT for buffer positions.
4859
4860 * textprop.c (validate_interval_range, interval_of)
4861 (property_change_between_p, Fadd_text_properties)
4862 (set_text_properties_1, Fremove_text_properties)
4863 (Fremove_list_of_text_properties, Ftext_property_any)
4864 (Ftext_property_not_all, copy_text_properties)
4865 (text_property_list, extend_property_ranges)
4866 (verify_interval_modification): Use EMACS_INT for buffer
4867 positions.
4868
4869 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4870 for buffer positions.
4871
4872 * process.c (read_process_output, send_process)
4873 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4874 and string positions and size.
4875
4876 * print.c (print_object, print_string, strout): Use EMACS_INT for
4877 string indices.
4878
4879 * minibuf.c (string_to_object): Use EMACS_INT for string position
4880 and size.
4881
4882 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4883
4884 * lread.c <read_from_string_index, read_from_string_index_byte>
4885 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4886 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4887 buffer positions and string length.
4888
4889 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4890 EMACS_INT.
4891 (echo_truncate, adjust_point_for_property, read_char)
4892 (gen_help_event, make_lispy_event, modify_event_symbol)
4893 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4894 for buffer positions and string length.
4895
4896 * keyboard.h (gen_help_event): Adjust prototype.
4897
4898 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4899
4900 * commands.h <last_point_position>: Declare EMACS_INT.
4901
4902 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4903 (truncate_echo_area): Accept EMACS_INT argument.
4904
4905 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4906
4907 * lisp.h (truncate_echo_area): Adjust prototype.
4908
4909 * composite.c (composition_adjust_point): Return EMACS_INT.
4910
4911 * composite.h (composition_adjust_point): Adjust prototype.
4912
4913 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
4914
4915 * process.c (Fmake_network_process): When arg :host is 'local,
4916 use address 127.0.0.1, not name "localhost". (Bug#6781)
4917
4918 2010-09-24 Eli Zaretskii <eliz@gnu.org>
4919
4920 * indent.c (Fcurrent_indentation, indented_beyond_p)
4921 (compute_motion): Use EMACS_INT for buffer position variables.
4922
4923 * lisp.h (indented_beyond_p): Adjust prototype.
4924
4925 * buffer.c (overlay_strings): Return EMACS_INT.
4926
4927 * buffer.h (overlay_strings): Adjust prototype.
4928
4929 * region-cache.c (pp_cache): Adjust format to arguments.
4930
4931 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4932 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4933 (verror): Use EMACS_INT for size of allocated buffer.
4934
4935 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4936 positions.
4937
4938 * xdisp.c (redisplay_internal, try_window_id)
4939 (set_cursor_from_row, find_first_unchanged_at_end_row):
4940 Use EMACS_INT for buffer positions.
4941
4942 * dispextern.h (set_cursor_from_row): Adjust prototype.
4943
4944 * dispnew.c (increment_matrix_positions)
4945 (increment_row_positions, copy_glyph_row_contents)
4946 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4947 positions.
4948
4949 * dispextern.h (mode_line_string, marginal_area_string)
4950 (increment_matrix_positions, increment_row_positions):
4951 Adjust prototypes.
4952
4953 * data.c (Faref, Faset): Use EMACS_INT for string length and
4954 positions.
4955
4956 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4957 characters to insert.
4958
4959 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4960 position and size.
4961
4962 * syntax.c (scan_words, update_syntax_table)
4963 (prev_char_comend_first, back_comment, skip_chars)
4964 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4965 Use EMACS_INT for buffer and string positions.
4966
4967 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4968
4969 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4970 positions.
4971
4972 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4973
4974 * scroll.c (calculate_scrolling, line_ins_del)
4975 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4976 conversion.
4977
4978 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4979 (region_cache_backward, region_cache_forward)
4980 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4981 conversion.
4982
4983 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4984
4985 * eval.c (verror): Fix EMACS_INT/int conversion.
4986
4987 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
4988 (print_preprocess, print_check_string_charset_prop)
4989 (print_object): Fix EMACS_INT/int conversion.
4990
4991 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4992
4993 2010-09-24 Eli Zaretskii <eliz@gnu.org>
4994
4995 * callproc.c (Fcall_process): Use EMACS_INT for count of
4996 characters read from the subprocess.
4997
4998 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4999 positions.
5000 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5001 positions.
5002
5003 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5004 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5005 length.
5006 (advance_to_char_boundary, Fset_buffer_multibyte)
5007 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5008 (overlay_touches_p, record_overlay_string, overlay_strings)
5009 (recenter_overlay_lists, fix_start_end_in_overlays)
5010 (modify_overlay, Fmove_overlay, report_overlay_modification)
5011 (evaporate_overlays): Use EMACS_INT for buffer positions.
5012
5013 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5014 Adjust prototypes.
5015
5016 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5017 positions.
5018
5019 * fns.c (Fcompare_strings, Fstring_lessp, concat)
5020 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5021 (Fsubstring_no_properties, substring_both, Ffillarray)
5022 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5023 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5024 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5025 (Fmd5): Use EMACS_INT for buffer and string positions and length
5026 variables and arguments.
5027
5028 * lisp.h (substring_both): Adjust prototype.
5029
5030 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
5031
5032 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5033 * w32fns.c (clipboard_sequence_fn): Don't declare.
5034 (globals_of_w32fns): Don't initialize it.
5035
5036 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
5037
5038 * syntax.c (back_comment): Detect the case where a 1-char comment
5039 starter is also the 2nd char of a 2-char comment ender.
5040
5041 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
5042
5043 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5044
5045 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5046
5047 * eval.c (verror): EMACS_INT/int cleanup.
5048
5049 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5050 unwind_protect more than 2GB worth of functions.
5051
5052 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5053
5054 * lisp.h: Have oblookup take EMACS_INT to allow interning big
5055 string and avoid compiler warnings.
5056 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5057 all users.
5058
5059 * lread.c (oblookup): EMACS_INT/int cleanup.
5060
5061 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5062
5063 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5064
5065 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5066
5067 * lisp.h (clip_to_bounds): Adjust prototype.
5068
5069 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5070
5071 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5072
5073 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5074
5075 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5076
5077 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5078 cleanup.
5079
5080 * lisp.h: Change the definition of all marker.c functions that
5081 take and return buffer stuff to be EMACS_INT instead of int.
5082
5083 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5084 (buf_charpos_to_bytepos, bytepos_to_charpos)
5085 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5086 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5087 for all buffer positions.
5088
5089 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
5090
5091 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5092 (split_interval_right, find_interval, next_interval)
5093 (delete_node, delete_interval, interval_deletion_adjustment)
5094 (adjust_intervals_for_deletion, merge_interval_right)
5095 (merge_interval_left, graft_intervals_into_buffer)
5096 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5097
5098 * intervals.h (traverse_intervals): Update prototype.
5099
5100 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5101
5102 * indent.c (compute_motion): Use EMACS_INT for arguments to
5103 region_cache_forward.
5104
5105 * region-cache.c (struct boundary, struct region_cache):
5106 Use EMACS_INT for positions.
5107 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5108 (delete_cache_boundaries, set_cache_region)
5109 (invalidate_region_cache, know_region_cache)
5110 (region_cache_forward, region_cache_backward, pp_cache):
5111 Use EMACS_INT for buffer positions.
5112
5113 * region-cache.h (know_region_cache, invalidate_region_cache)
5114 (region_cache_forward, region_cache_backward): Adjust prototypes.
5115
5116 * search.c (string_match_1, fast_c_string_match_ignore_case)
5117 (looking_at_1, scan_buffer, scan_newline)
5118 (find_next_newline_no_quit, find_before_next_newline)
5119 (search_command, trivial_regexp_p, search_buffer, simple_search)
5120 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5121 and string positions and length.
5122
5123 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5124 (find_before_next_newline): Adjust prototypes.
5125
5126 * editfns.c (transpose_markers, update_buffer_properties)
5127 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5128 (get_pos_property, Fconstrain_to_field)
5129 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5130 (Fchar_after, Fchar_before, Finsert_char)
5131 (Finsert_buffer_substring, Fcompare_buffer_substrings)
5132 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5133 Use EMACS_INT for buffer and string position variables.
5134 (Finsert_char): Protect against too large insertions.
5135
5136 * lisp.h (clip_to_bounds): Adjust prototype.
5137
5138 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5139 (balance_an_interval, split_interval_right, split_interval_left)
5140 (find_interval, next_interval, update_interval)
5141 (adjust_intervals_for_insertion, delete_node, delete_interval)
5142 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5143 (offset_intervals, merge_interval_right, merge_interval_left)
5144 (graft_intervals_into_buffer, adjust_for_invis_intang)
5145 (move_if_not_intangible, get_local_map, copy_intervals)
5146 (copy_intervals_to_string, compare_string_intervals)
5147 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
5148 and for interval tree size.
5149
5150 * intervals.h (traverse_intervals, split_interval_right)
5151 (split_interval_left, find_interval, offset_intervals)
5152 (graft_intervals_into_buffer, copy_intervals)
5153 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5154 (update_interval): Adjust prototypes.
5155
5156 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5157 Use EMACS_INT for buffer position variables and arguments.
5158
5159 * composite.c (get_composition_id, find_composition)
5160 (run_composition_function, compose_text)
5161 (composition_gstring_width, autocmp_chars)
5162 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5163 for buffer positions and string length variables and arguments.
5164
5165 * composite.h (get_composition_id, find_composition, compose_text)
5166 (composition_gstring_width): Adjust prototypes.
5167
5168 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5169
5170 * xdisp.c (store_mode_line_noprop, display_mode_element):
5171 Use EMACS_INT for string positions.
5172
5173 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5174 position arguments.
5175
5176 * intervals.h (get_property_and_range): Adjust prototype.
5177
5178 * character.c (parse_str_as_multibyte, str_as_multibyte)
5179 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5180 (string_count_byte8, string_escape_byte8, c_string_width)
5181 (strwidth, lisp_string_width, multibyte_chars_in_text):
5182 Use EMACS_INT for string length variables and arguments.
5183
5184 * character.h (parse_str_as_multibyte, str_as_multibyte)
5185 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5186 (c_string_width, strwidth, lisp_string_width):
5187 Adjust prototypes.
5188
5189 * font.c (font_intern_prop): Use EMACS_INT for string length
5190 variables.
5191
5192 * font.c (font_intern_prop): Use EMACS_INT for string length
5193 variables.
5194
5195 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5196 variables.
5197
5198 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5199 (Fmake_string): Protect against too large strings.
5200 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5201 (live_misc_p): Use ptrdiff_t instead of int for pointer
5202 differences.
5203 (string_bytes, check_sblock, check_string_free_list)
5204 (allocate_string_data, compact_small_strings, Fmake_string)
5205 (Fmake_bool_vector, make_string, make_unibyte_string)
5206 (make_multibyte_string, make_string_from_bytes)
5207 (make_specified_string_string, Fmake_list, Fmake_vector):
5208 Use EMACS_INT for string length variables and arguments.
5209 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5210 (Fpurecopy): Use EMACS_INT for string size.
5211 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5212 for vector size.
5213
5214 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5215 (make_string_from_bytes, make_specified_string_string)
5216 (make_pure_string, string_bytes, check_point_in_composition):
5217 Adjust prototypes.
5218
5219 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5220
5221 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5222 (check_translation): Use EMACS_INT for buffer positions and
5223 length.
5224
5225 * undo.c (record_marker_adjustment, record_delete)
5226 (record_change, record_point, record_insert)
5227 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5228 buffer positions.
5229
5230 * lisp.h (record_marker_adjustment, record_delete)
5231 (record_change, record_point, record_insert)
5232 (record_property_change, Fprimitive_undo): Adjust prototypes.
5233
5234 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
5235 Eli Zaretskii <eliz@gnu.org>
5236
5237 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5238
5239 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5240
5241 * minibuf.c (Fminibuffer_contents)
5242 (Fminibuffer_contents_no_properties)
5243 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5244 positions.
5245
5246 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5247 mark.
5248
5249 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5250 (allocate_string_data): Accept EMACS_INT for string length.
5251
5252 * editfns.c (Ffield_string, Ffield_string_no_properties)
5253 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5254 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5255 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5256 (Ffield_end): Use EMACS_INT for buffer positions.
5257
5258 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5259 point with mark.
5260
5261 * lisp.h (allocate_string_data, make_uninit_string)
5262 (make_uninit_multibyte_string, make_buffer_string)
5263 (make_buffer_string_both): Adjust prototypes.
5264
5265 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
5266
5267 * xml.c: Switch to GNU indentation.
5268 (make_dom): Change parse tree format to match xml.el.
5269 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5270 (Fxml_parse_string_internal): Rename from xml-parse-string.
5271
5272 2010-09-22 Kenichi Handa <handa@m17n.org>
5273
5274 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5275 only if we are not at a composition.
5276 (set_iterator_to_next): Give it->end_charpos to
5277 composition_compute_stop_pos.
5278 (set_iterator_to_next, next_element_from_buffer): Likewise.
5279
5280 * dispnew.c (buffer_posn_from_coords): Fix position when the
5281 current display element is a grapheme cluster in bidi-reordered
5282 region.
5283
5284 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5285
5286 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5287 the regions may overlap.
5288
5289 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
5290
5291 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5292
5293 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5294
5295 * emacs.c: Do not include sys/ioctl.h, not needed.
5296
5297 * doprnt.c: Do not include stdlib.h, config.h does it.
5298 Move #include before macro definition.
5299
5300 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5301
5302 * Makefile.in (temacs): Link using $(CC) not $(LD).
5303 (LD_FIRSTFLAG): Define using autoconf.
5304 (LD): Remove.
5305
5306 Remove HAVE_TERMIOS definitions.
5307 * s/usg5-4-common.h (HAVE_TERMIOS):
5308 * s/template.h (HAVE_TERMIOS):
5309 * s/gnu-linux.h (HAVE_TERMIOS):
5310 * s/darwin.h (HAVE_TERMIOS):
5311 * s/cygwin.h (HAVE_TERMIOS):
5312 * s/bsd-common.h (HAVE_TERMIOS):
5313 * s/aix4-2.h (HAVE_TERMIOS):
5314 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5315 defined on all non-MS platforms.
5316 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5317
5318 * xterm.c (xt_action_hook): Use const.
5319
5320 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
5321
5322 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5323 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5324 (gethostname) [!HAVE_SOCKETS]: Remove.
5325 (SOCK_REPLACE_HANDLE): Remove macro.
5326 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5327 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5328 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5329 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5330
5331 2010-09-18 Eli Zaretskii <eliz@gnu.org>
5332
5333 * deps.mk (xml.o): Add dependencies.
5334
5335 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5336 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
5337
5338 * bidi.c (bidi_paragraph_init): Accept an additional argument
5339 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5340 search back until a paragraph with a strong directional character
5341 is found, and use that to determine paragraph's base direction.
5342
5343 * dispextern.h (bidi_paragraph_init): Update prototype.
5344
5345 2010-09-17 Eli Zaretskii <eliz@gnu.org>
5346
5347 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5348 of w32api >= 3.15. (Bug#6989)
5349
5350 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5351
5352 * process.c (wait_reading_process_output): Don't message about
5353 accept-process-output unless the time limit really is zero.
5354
5355 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5356
5357 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5358 int/Lisp_Object mixup).
5359
5360 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5361
5362 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5363 not HELP.
5364
5365 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
5366
5367 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5368 bar's pixel width to Lisp (Bug#7048).
5369
5370 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5371
5372 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5373
5374 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5375
5376 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5377 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5378
5379 2010-09-17 Kenichi Handa <handa@m17n.org>
5380
5381 * ftfont.c (ftfont_check_otf): Fix previous change.
5382
5383 2010-09-14 Kenichi Handa <handa@m17n.org>
5384
5385 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5386 existence of GSUB or GPOS.
5387
5388 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5389
5390 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5391
5392 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5393
5394 * xml.c (parse_buffer): Rename to parse_string(), since that's
5395 what it does.
5396 (parse_string): Return nil when the document can't be parsed.
5397
5398 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5399
5400 * xterm.c (get_current_vm_state): New function.
5401 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5402 want_fullscreen so set_wm_state calls are few (Bug#7013).
5403 (x_handle_net_wm_state): Move code to get_current_vm_state and
5404 call that function.
5405
5406 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
5407
5408 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5409
5410 2010-09-14 Kenichi Handa <handa@m17n.org>
5411
5412 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5413 we may use designation or locking-shift.
5414
5415 2010-09-14 Kenichi Handa <handa@m17n.org>
5416
5417 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5418 sequence when the source is multibyte.
5419
5420 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5421
5422 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5423 Don't make first argument optional. Doc fix.
5424
5425 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5426
5427 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5428 parameters for the doc string.
5429
5430 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5431
5432 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5433
5434 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5435
5436 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5437 (syms_of_fns): Don't defsubr Sy_or_n_p.
5438 * lisp.h: Don't declare Fy_or_n_p.
5439 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5440
5441 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5442
5443 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5444
5445 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5446
5447 * xml.c: New file.
5448 (Fhtml_parse_buffer): New function to interface to the libxml2
5449 html parsing function.
5450
5451 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
5452
5453 * biditype.h: Regenerate.
5454
5455 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5456
5457 * nsimage.m (ns_load_image): Check argument types.
5458
5459 * image.c: Remove all uses of gcpro.
5460 (xpm_load): Check all lisp types.
5461 (pbm_load): Likewise.
5462 (png_load): Likewise.
5463 (jpeg_load): Likewise.
5464 (tiff_load): Likewise.
5465 (gif_load): Likewise.
5466 (imagemagick_load_image): Likewise.
5467 (imagemagick_load): Likewise.
5468 (svg_load): Likewise.
5469 (gs_load): Likewise.
5470
5471 2010-09-04 Eli Zaretskii <eliz@gnu.org>
5472
5473 * w32uniscribe.c (uniscribe_shape): Update commentary.
5474 Don't try to reorder grapheme clusters, since LGSTRING should always
5475 hold them in the logical order.
5476 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5477 return glyph codes in the logical order.
5478
5479 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5480
5481 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5482 (imagemagick_load_image): Fix type mismatch.
5483 (Fimagemagick_types): Likewise. Doc fix.
5484
5485 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5486
5487 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5488
5489 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5490
5491 * xselect.c: Remove declaration of cut-buffer objects and functions.
5492 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5493 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5494 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5495 (Fx_rotate_cut_buffers_internal): Remove.
5496 (syms_of_xselect): Remove defsubr of above.
5497 Remove intern of QCUT_BUFFERn.
5498
5499 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5500
5501 * cmds.c (Vblink_paren_function): Remove.
5502 (internal_self_insert): Make it insert N chars at a time.
5503 Don't call blink-paren-function.
5504 (Fself_insert_command): Adjust accordingly.
5505 (syms_of_cmds): Don't declare blink-paren-function.
5506
5507 2010-08-31 Kenichi Handa <handa@m17n.org>
5508
5509 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5510 characters.
5511
5512 * term.c (encode_terminal_code): Fix the previous change.
5513 (produce_glyphs): Don't set it->char_to_display here.
5514 Don't handle unibyte-display-via-language-environment here.
5515 (produce_special_glyphs): Set temp_it.char_to_display before
5516 calling produce_glyphs.
5517
5518 * xdisp.c (get_next_display_element): Set it->char_to_display
5519 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5520 characters.
5521 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5522 calling PRODUCE_GLYPHS.
5523 (append_space_for_newline): Save and store it->char_to_display.
5524 Set it->char_to_display before calling PRODUCE_GLYPHS.
5525 (extend_face_to_end_of_line): Set it->char_to_display before
5526 calling PRODUCE_GLYPHS.
5527 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5528 character to its byte value.
5529 (get_char_glyph_code): New function.
5530 (produce_stretch_glyph): Set it2.char_to_display too before
5531 calling x_produce_glyphs.
5532 (x_produce_glyphs): Simplify by using the same code for ASCII and
5533 non-ASCII characters. Don't set it->char_to_display here.
5534 Don't handle unibyte-display-via-language-environment here. For a
5535 character of no glyph, use font->space_width instead of FONT_WIDTH.
5536
5537 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5538
5539 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5540
5541 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
5542
5543 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5544
5545 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5546
5547 * marker.c (Fcopy_marker): Make the first arg optional.
5548
5549 2010-08-30 Kenichi Handa <handa@m17n.org>
5550
5551 * composite.c (composition_update_it): Fix computing of
5552 cmp_it->width.
5553
5554 2010-08-29 Kenichi Handa <handa@m17n.org>
5555
5556 * term.c (encode_terminal_code): Encode byte chars to the
5557 corresponding bytes.
5558
5559 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5560
5561 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5562
5563 2010-08-26 Kenichi Handa <handa@m17n.org>
5564
5565 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5566 on calling composition_compute_stop_pos.
5567
5568 2010-08-25 Kenichi Handa <handa@m17n.org>
5569
5570 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5571 :otf.
5572
5573 * composite.c (composition_compute_stop_pos): Don't break
5574 composition at PT.
5575 (composition_reseat_it): Likewise. Fix calculation of character
5576 position starting a composition.
5577 (Fcomposition_get_gstring): Don't limit the number of components
5578 for automatic composition.
5579
5580 2010-08-25 Kenichi Handa <handa@m17n.org>
5581
5582 * composite.c (composition_compute_stop_pos): In forward search,
5583 pay attention to the possibility that some character after ENDPOS
5584 will be composed with charactrs before ENDPOS.
5585
5586 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
5587
5588 * keyboard.c (command_loop_1): Don't clobber primary selection
5589 during handle-switch-frame (Bug#6872).
5590
5591 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
5592
5593 * dbusbind.c: Accept UNIX domain sockets as bus address.
5594 (Fdbus_close_bus): New function.
5595 (Vdbus_registered_buses): New variable.
5596 (xd_initialize): Implement string as bus address.
5597 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5598 (Fdbus_get_unique_name, Fdbus_call_method)
5599 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5600 (Fdbus_method_error_internal, Fdbus_send_signal)
5601 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5602 check. This is done in xd_initialize_bus. Adapt doc string, if
5603 necessary.
5604 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5605 Vdbus_registered_buses.
5606 (Vdbus_registered_objects_table): Create hash.
5607
5608 2010-08-22 Juri Linkov <juri@jurta.org>
5609
5610 * keyboard.c (Fexecute_extended_command): Move reading a command name
5611 with `completing-read' to a new Elisp function `read-extended-command'.
5612 Call it to read a command to `function' (bug#5364, bug#5214).
5613
5614 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5615
5616 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5617
5618 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
5619
5620 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5621 instead of SAFE_ALLOCA.
5622
5623 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5624
5625 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5626 (Bug#6214).
5627
5628 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5629
5630 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5631
5632 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5633
5634 * doc.c (Fsnarf_documentation): Initialize skip_file before
5635 build-files test.
5636
5637 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
5638
5639 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5640 New definitions.
5641 (HAVE_TERMIO): Remove.
5642
5643 2010-08-22 Eli Zaretskii <eliz@gnu.org>
5644
5645 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5646
5647 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5648 for w32.
5649
5650 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5651 it's done in nt/config.nt.
5652
5653 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5654
5655 * unexcoff.c (report_error, make_hdr, write_segment)
5656 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5657 Convert argument lists and prototypes to ANSI C.
5658 (make_hdr, write_segment): Remove unused variables.
5659 (unexec): Remove commented-out line. Initialize `new' to shut up
5660 compiler warnings.
5661
5662 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5663
5664 Simplify termio code.
5665 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5666 HAVE_TERMIO code is obsolete.
5667 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5668 * systty.h: Do not define HAVE_TCATTR.
5669 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5670 Do not define EMACS_HAVE_TTY_PGRP. Only define
5671 EMACS_GET_TTY_PGRP for !DOS_NT.
5672 * sysdep.c: Include sysselect.h unconditionally. Do not include
5673 sys/ioctl.h and termios.h, systty.h does it.
5674 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
5675 (init_baud_rate): Remove HAVE_TERMIO code.
5676 (child_setup_tty): Remove HAVE_TERMIO code.
5677 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5678 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5679 (new_ltchars, new_tchars): Remove, unused.
5680 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
5681 code. Remove special casing for __mips__, it was a no-op.
5682 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
5683 (init_sys_modes): Remove HPUX special case.
5684 * process.c: Include stdlib.h unconditionally. Do not include
5685 fcntl.h, systty.h does it. Remove conditional code for
5686 HAVE_SERIAL, it is always true.
5687 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5688 always true when SIGNALS_VIA_CHARACTERS is true.
5689 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5690 !WINDOWSNT means HAVE_TERMIOS.
5691 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5692 conditional, which is true for all HAVE_TERMIOS systems.
5693 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5694 instead of HAVE_TERMIOS.
5695 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5696 EMACS_HAVE_TTY_PGRP.
5697 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5698 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5699 anyway.
5700
5701 2010-08-21 Eli Zaretskii <eliz@gnu.org>
5702
5703 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5704 mirroring pixel positions.
5705
5706 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5707
5708 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5709 write only.
5710 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5711 malloc_sbrk_used, nothing uses them.
5712
5713 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5714 defined, unconditionally defined in lisp.h.
5715
5716 * term.c: Do not include <termios.h>, systty.h does it.
5717
5718 * s/unixware.h (HAVE_TCATTR):
5719 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5720 systty.h defines it when HAVE_TERMIOS is defined.
5721
5722 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5723
5724 * dispnew.c (buffer_posn_from_coords): Fix last change for text
5725 terminals: add one-character offset for R2L lines.
5726
5727 * emacs.c <emacs_version>: Add a comment regarding
5728 msdos/mainmake.v2's dependency on the syntax of this declaration.
5729
5730 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5731
5732 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5733 position for R2L lines by mirroring the pixel position wrt the
5734 text are box. Improve commentary.
5735
5736 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5737
5738 * image.c (imagemagick_clear_image): Remove debugging output.
5739
5740 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5741
5742 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5743 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5744 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5745 self-insert-face.
5746 (syms_of_cmds): Initialize the new vars.
5747
5748 2010-08-19 Jason Rumney <jasonr@gnu.org>
5749
5750 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5751
5752 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5753
5754 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5755
5756 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5757
5758 2010-08-18 Eli Zaretskii <eliz@gnu.org>
5759
5760 * xterm.c (x_draw_bar_cursor):
5761 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5762 R2L, draw the bar cursor on its right rather than on its left.
5763
5764 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5765
5766 * eval.c (Fdefmacro): Only obey one declaration.
5767
5768 * casefiddle.c (casify_region): Setup gl_state.
5769
5770 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5771
5772 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5773
5774 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5775
5776 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
5777
5778 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
5779
5780 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5781 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5782 QPRIMARY => NXPrimaryPboard.
5783 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5784 NXPrimaryPboard => QPRIMARY.
5785 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5786 NXSecondaryPboard = SecondarySelection.
5787 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5788
5789 2010-08-18 Joakim Verona <joakim@verona.se>
5790
5791 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5792 defined:
5793 (imagemagick_image_p): New function to test for ImageMagic image.
5794 (imagemagick_load): New function to load ImageMagick image.
5795 (imagemagick_load_image): New function, helper for imagemagick_load.
5796 (imagemagick-types): New function.
5797 (Qimagemagick): New Lisp_object.
5798 (imagemagick-render-type): New variable, decides which renderer to use.
5799
5800 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5801
5802 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5803 is a string.
5804
5805 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5806
5807 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5808 x_set_tool_bar_position handler.
5809
5810 2010-08-17 Eli Zaretskii <eliz@gnu.org>
5811
5812 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5813 x_set_tool_bar_position handler, needed to support changes from
5814 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5815
5816 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5817
5818 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
5819 declaration (Bug#6863).
5820 (syms_of_nsselect): Don't intern QPRIMARY.
5821
5822 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5823
5824 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5825
5826 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
5827
5828 * keyboard.c (command_loop_1): Avoid setting selection twice,
5829 since it's done in deactivate-mark as well.
5830 (Vselect_active_regions): Change default to t. Replace `lazy'
5831 with non-default value `only', meaning only set PRIMARY for
5832 temporarily active regions.
5833
5834 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5835 select-active-regions.
5836
5837 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5838
5839 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5840 isn't a string.
5841
5842 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5843
5844 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5845
5846 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5847
5848 * keyboard.c (parse_tool_bar_item): malloc buf.
5849 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5850 new_lbl (Bug#6855).
5851
5852 2010-08-14 Eli Zaretskii <eliz@gnu.org>
5853
5854 * xterm.c (x_draw_stretch_glyph_string):
5855 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5856 the cursor on the right edge of the stretch glyph.
5857
5858 * xdisp.c (window_box_right_offset, window_box_right):
5859 Fix commentary.
5860
5861 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5862 direction when point is inside a run of whitespace characters.
5863
5864 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5865
5866 2010-08-14 Jason Rumney <jasonr@gnu.org>
5867
5868 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5869
5870 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
5871
5872 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5873
5874 2010-08-13 Jason Rumney <jasonr@gnu.org>
5875
5876 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5877 (MessageBoxW_Proc): New function typedef.
5878 (unicode-message-box): New function pointer.
5879 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
5880
5881 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5882
5883 * frame.h (Qtool_bar_position): Declare.
5884
5885 * xfns.c (Fx_create_frame): Call x_default_parameter for
5886 Qtool_bar_position.
5887
5888 2010-08-13 Eli Zaretskii <eliz@gnu.org>
5889
5890 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5891 (report_error, report_error_1): Ditto.
5892 (write_segment): Remove "#if 0" unused code.
5893 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5894 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5895 (start_of_text): Remove unused function (was used only if NO_REMAP
5896 was NOT defined).
5897
5898 * msdos.c (IT_set_face): Fix format string to match argument
5899 types.
5900 (IT_write_glyphs, IT_note_mode_line_highlight)
5901 (IT_set_frame_parameters): Remove unused variables.
5902 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5903 (IT_set_terminal_modes): Disambiguate expression in if clause.
5904 (Fmsdos_remember_default_colors): Return Qnil.
5905 (IT_set_frame_parameters): Add parens to disambiguate boolean
5906 expression for logging the cursor type to termscript.
5907 (keyboard_layout_list, keypad_translate_map)
5908 (grey_key_translate_map): Add braces in inner initializers.
5909 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5910 (dos_rawgetc): Remove unused label.
5911 (XMenuActivate): Add braces to remove ambiguous `else'.
5912 (dos_ttraw): Always return a value.
5913 (spawnve): Declare.
5914 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5915
5916 * dosfns.h (x_set_title): Declare.
5917
5918 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5919 Remove unused variables.
5920
5921 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5922 variables.
5923 (init_dosfns): Declare get_lim_data.
5924 (system_process_attributes): Declare Fget_internal_run_time.
5925
5926 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5927 list to be consistent with menu.h.
5928
5929 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5930 warnings due to mixing of "char *" and "const char *".
5931
5932 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5933
5934 Introduce a new comment style "c" flag.
5935 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5936 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5937 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5938 (syntax_prefix_flag_p): New function.
5939 (Fstring_to_syntax): Understand new "c" flag.
5940 (Finternal_describe_syntax_value): Recognize new flag; use the
5941 SYNTAX_FLAGS_* macros.
5942 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5943 comment style to accomodate the new styles.
5944 (back_comment, forw_comment, Fforward_comment, scan_lists)
5945 (scan_sexps_forward): Update code to obey the new comment style flag.
5946
5947 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5948
5949 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5950
5951 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5952
5953 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5954 first.
5955 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
5956
5957 * gtkutil.h (xg_check_special_colors): Declare.
5958
5959 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5960 (xg_create_frame_widgets): Connect theme name changes to
5961 style_changed_cb.
5962
5963 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5964 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5965 (x_term_init): Use char[] display_opt and name_opt instead of
5966 string literal. file is const char*.
5967
5968 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5969 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5970 props. Free them at the end.
5971
5972 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5973
5974 * xrdb.c (get_system_app): Make path const and use char *p for
5975 non-const char.
5976
5977 * xmenu.c (Fx_popup_dialog): error_name is const char*.
5978 (xmenu_show): error parameter is const char **. pane_string is const
5979 char *.
5980 (button_names): Is const char *.
5981 (xdialog_show): error_name and pane_string is const.
5982
5983 * process.h (synch_process_death): Is const char*.
5984
5985 * w32menu.c (w32_menu_show):
5986 * nsmenu.m (ns_menu_show): error parameter is const char **.
5987
5988 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5989 is const char **.
5990
5991 * menu.c (Fx_popup_menu): error_name is const.
5992
5993 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5994 with unsigned char and XtPointer with void *.
5995
5996 * gtkutil.h: Replace widget_value with struct _widget_value.
5997 (enum button_type, struct _widget_value): Remove and use the one from
5998 keyboard.h.
5999
6000 * gtkutil.c (get_utf8_string): Always return an allocated string.
6001 Parameter is const.
6002 (create_dialog, xg_create_one_menuitem, create_menus)
6003 (xg_item_label_same_p, xg_update_menu_item): Free result from
6004 get_utf8_string.
6005 (xg_separator_p, xg_item_label_same_p): label is const.
6006
6007 * font.h (font_open_by_name): Make name const.
6008
6009 * font.c (font_open_by_name): Make name const.
6010
6011 * floatfns.c (matherr): Use a const char* variable for x->name.
6012
6013 * emacs.c (main): Pass char[] to putenv instead of literal.
6014
6015 * callproc.c (synch_process_death): Make const.
6016 (Fcall_process): Make signame const.
6017
6018 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6019 (addDisplayItemWithImage): Use const char*.
6020
6021 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6022 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6023
6024 * nsfont.m (ns_descriptor_to_entity): Use const char*.
6025
6026 * keyboard.h (_widget_value): name, value and key are const char*.
6027
6028 * unexmacosx.c (unexec_error): Use const char *.
6029
6030 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6031
6032 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6033 (font_parse_name, font_open_by_name):
6034 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6035 (font_parse_name, font_open_by_name): Remove const.
6036
6037 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
6038
6039 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6040 definition.
6041
6042 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6043 * m/amdx86-64.h: Likewise.
6044 * m/arm.h: Likewise.
6045 * m/hp800.h: Likewise.
6046 * m/ia64.h: Likewise.
6047 * m/ibmrs6000.h: Likewise.
6048 * m/ibms390.h: Likewise.
6049 * m/intel386.h: Likewise.
6050 * m/iris4d.h: Likewise.
6051 * m/m68k.h: Likewise.
6052 * m/macppc.h: Likewise.
6053 * m/mips.h: Likewise.
6054 * m/sh3.h: Likewise.
6055 * m/sparc.h: Likewise.
6056 * m/template.h: Likewise.
6057 * m/vax.h: Likewise.
6058 * m/xtensa.h: Likewise.
6059 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6060 WORDS_BIG_ENDIAN.
6061 * lisp.h: Likewise.
6062 * md5.c: Likewise.
6063 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6064
6065 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6066
6067 Use const char* instead of char*.
6068 Reduce the number of warnings with -Wwrite-strings.
6069 * xrdb.c (get_environ_db, get_system_name):
6070 * unexelf.c (find_section):
6071 * term.c (string_cost, string_cost_one_line, per_line_cost)
6072 (get_named_tty, init_tty):
6073 * sysdep.c (sys_subshell):
6074 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6075 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6076 * search.c (Freplace_match):
6077 * process.c (Fmake_network_process, send_process, init_process):
6078 * lread.c (Fload, init_lread):
6079 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6080 * keyboard.c (parse_tool_bar_item, struct event_head):
6081 * gtkutil.h (xg_get_font_name):
6082 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6083 (make_widget_for_menu_item, make_menu_item, create_menus)
6084 (xg_make_tool_item):
6085 * font.c (parse_matrix, font_parse_name):
6086 * floatfns.c (rounding_driver, float_error_fn_name):
6087 * filelock.c (get_boot_time_1, lock_file_1):
6088 * fileio.c (barf_or_query_if_file_exists, check_writable):
6089 * editfns.c (get_system_name, get_operating_system_release)
6090 (Fencode_time, Fset_time_zone_rule):
6091 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6092 * buffer.c (defvar_per_buffer): Use const.
6093
6094 2010-08-08 Kenichi Handa <handa@m17n.org>
6095
6096 * charset.c: Include <stdlib.h>.
6097 (struct charset_sort_data): New struct.
6098 (charset_compare): New function.
6099 (Fsort_charsets): New function.
6100 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6101
6102 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6103 number in CTEXT extended segment.
6104
6105 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6106
6107 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6108 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6109
6110 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6111
6112 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6113 (Fhash_table_size): Fix typos in docstrings.
6114 (Fmake_hash_table): Doc fix.
6115
6116 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6117
6118 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6119 Doc fix (bug#5625).
6120
6121 2010-08-08 Ken Brown <kbrown@cornell.edu>
6122
6123 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6124 the MSDOS definition.
6125
6126 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6127
6128 Use const char* instead of char*.
6129 * xterm.c (x_create_toolkit_scroll_bar):
6130 * xfont.c (xfont_list_pattern):
6131 * xfns.c (x_default_scroll_bar_color_parameter)
6132 (xic_create_fontsetname, x_default_font_parameter)
6133 (x_screen_planes):
6134 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6135 (store_mode_line_string, decode_mode_spec, display_string):
6136 * menu.c (digest_single_submenu):
6137 * keymap.h (initial_define_key, initial_define_lispy_key):
6138 * keymap.c (initial_define_key, initial_define_lispy_key):
6139 * image.c (image_error, image_keyword):
6140 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6141 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6142 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6143 (ftfont_list, ftfont_match):
6144 * frame.c (frame_parm_table):
6145 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6146 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6147 (font_add_log, font_deferred_log):
6148 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6149 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6150 (font_add_log, font_deferred_log):
6151 * emacs.c (argmatch):
6152 * dispextern.h (struct it):
6153 * coding.c (ENCODE_DESIGNATION):
6154 * charset.c (define_charset_internal): Use const.
6155
6156 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6157
6158 * xrdb.c: Remove include guard.
6159 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
6160 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6161 realloc->xrealloc instead of using #defines.
6162
6163 2010-08-08 Eli Zaretskii <eliz@gnu.org>
6164
6165 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
6166 * editfns.c (Fline_beginning_position, Fline_end_position):
6167 State in the doc strings that start and end of line are in the
6168 logical order.
6169
6170 * xdisp.c (display_line): Move the handling of overlay arrow after
6171 the call to find_row_edges. (Bug#6699)
6172
6173 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6174
6175 * keyboard.c (command_loop_1):
6176 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6177
6178 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6179
6180 * insdel.c (prepare_to_modify_buffer): Save active region text to
6181 Vsaved_region_selection.
6182
6183 * xselect.c (QPRIMARY): Move to keyboard.c.
6184
6185 * keyboard.c (Vselect_active_regions): Move from simple.el.
6186 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6187 (command_loop_1): Set window selection prior to deactivating the mark.
6188
6189 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
6190
6191 * alloc.c (lisp_malloc):
6192 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6193 * charset.h (emacs_mule_charset):
6194 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6195 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6196 (bitch_at_user):
6197 * lisp.h (Fcheck_coding_system, Fget_text_property)
6198 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6199 Remove duplicate declarations.
6200
6201 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6202
6203 * process.c: Simplify include logic.
6204
6205 * keyboard.h (quit_char): Add declaration.
6206 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
6207 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6208 Add declarations.
6209 * sysdep.c:
6210 * w32.c: Remove the above declarations.
6211
6212 Remove extern declarations in .c files, .h files have them.
6213 * xterm.c:
6214 * xdisp.c:
6215 * msdos.c:
6216 * image.c:
6217 * gtkutil.c:
6218 * fileio.c:
6219 * eval.c: Remove declarations.
6220
6221 * frame.c (frame_params): Make const.
6222
6223 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6224
6225 * emacs.c (emacs_copyright, emacs_version): Make static.
6226 (Vinitial_window_system, Vauto_save_list_file_name)
6227 (Vinhibit_redisplay): Remove declarations.
6228 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6229 for AIX.
6230
6231 Use const for some arrays and functions.
6232 * xterm.h (xg_set_icon_from_xpm_data):
6233 * xfns.c (xg_set_icon_from_xpm_data):
6234 * term.c (fkeys):
6235 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6236 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6237 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6238 (frame.c frame_parms):
6239 * emacs-icon.h (gnu_xpm_bits):
6240 * callint.c (callint_argfuns): Use const.
6241
6242 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6243
6244 * sysdep.c: Move include term.h last of includes (Bug#6812).
6245
6246 2010-08-06 Eli Zaretskii <eliz@gnu.org>
6247
6248 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6249
6250 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6251
6252 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6253
6254 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6255
6256 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6257
6258 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6259
6260 * xterm.h (x_get_focus_frame): Declare.
6261
6262 * keyboard.h (poll_for_input_1): Unconditionally declare.
6263
6264 * nsterm.h (x_set_menu_bar_lines): Declare.
6265
6266 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6267
6268 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6269
6270 * window.c: Include menu.h.
6271
6272 * unexmacosx.c (print_region_list, print_regions)
6273 (build_region_list, find_emacs_zone_regions)
6274 (unexec_regions_merge, read_load_commands, dump_it)
6275 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6276
6277 * term.c: Check HAVE_SYS_IOCTL_H.
6278
6279 * sysdep.c: Check HAVE_TERM_H.
6280
6281 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
6282
6283 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6284 (ns_ring_bell, ns_defined_color, hide_hourglass)
6285 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6286 Convert to ANSI C prototypes.
6287 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6288 before code.
6289
6290 * nsterm.h : Include sysselect.h.
6291 (x_sync, x_get_focus_frame, x_set_mouse_position)
6292 (x_set_mouse_pixel_position, x_make_frame_visible)
6293 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6294 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6295 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6296 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
6297 Declare.
6298
6299 * nsmenu.m (popup_activated, name_is_separator)
6300 (syms_of_nsmenu): Convert to ANSI C prototypes.
6301 (runMenuAt): Prototypes and move declarations before code.
6302
6303 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6304
6305 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6306 prototypes.
6307
6308 * nsfns.m (have_menus_p, ns_display_info_for_name)
6309 (x_set_cursor_type, ns_appkit_version_str)
6310 (ns_appkit_version_int, ns_do_applescript)
6311 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6312 (syms_of_nsfns): Convert to ANSI C prototypes.
6313
6314 * menu.h (x_set_menu_bar_line): Declare.
6315 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6316
6317 * lisp.h (fmod_float): Declare.
6318
6319 * image.c (xpm_scan, xpm_make_color_table_v)
6320 (xpm_put_color_table_v, xpm_get_color_table_v)
6321 (xpm_make_color_table_h, xpm_put_color_table_h)
6322 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6323 (xpm_load): Convert to ANSI C prototypes.
6324
6325 * emacs.c: Include nsterm.h if HAVE_NS.
6326
6327 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6328
6329 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6330
6331 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6332 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6333 (socket_options): Use const char* for name.
6334
6335 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6336
6337 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6338
6339 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6340 Don't declare xmalloc_widget_value and digest_single_submenu.
6341
6342 * w32font.c (Qlatin): Remove declaration.
6343
6344 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6345
6346 * dired.c (compile_pattern): Restore declaration.
6347
6348 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6349
6350 Remove extern declarations in .c files, .h files have them.
6351 * data.c:
6352 * dired.c:
6353 * editfns.c:
6354 * filelock.c:
6355 * fns.c:
6356 * font.c:
6357 * fontset.c:
6358 * frame.c:
6359 * fringe.c:
6360 * ftfont.c:
6361 * gtkutil.c:
6362 * indent.c:
6363 * keyboard.c:
6364 * keymap.c:
6365 * lread.c:
6366 * menu.c:
6367 * print.c:
6368 * search.c:
6369 * sound.c:
6370 * window.c:
6371 * xdisp.c:
6372 * xfaces.c:
6373 * xfns.c:
6374 * xfont.c:
6375 * xftfont.c:
6376 * xmenu.c:
6377 * xterm.c: Remove declarations.
6378
6379 Cleanup syssignal.h.
6380 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6381 (main_thread): Move down to remove #ifdef.
6382 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6383 Remove conditional definition following unconditional ones.
6384
6385 * lisp.h: Remove HAVE_SHM code, unused.
6386 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6387 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6388 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6389 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6390 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6391 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6392 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6393 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6394 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6395 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6396 (Qwindow_scroll_functions, Vafter_load_alist)
6397 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6398 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6399 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6400 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6401 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6402 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6403 (initial_argv, last_nonmenu_event, load_in_progress)
6404 (noninteractive_need_newline, scroll_margin): Add declarations.
6405
6406 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6407 Remove declarations, menu.h has them.
6408 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6409 (Vinput_method_function, Qinput_method_function)
6410 (Qevent_symbol_element_mask, last_event_timestamp):
6411 * dispextern.h (Voverflow_newline_into_fringe):
6412 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6413 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6414 (syms_of_w32font, syms_of_nsfont):
6415 * fontset.h (find_font_encoding, Qlatin):
6416 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6417 (Vtool_bar_mode, set_frame_menubar):
6418 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6419 * xterm.h (Qx_gtk_map_stock):
6420 * keymap.h (meta_prefix_char): Add declarations.
6421
6422 * term.c: Remove dead code.
6423
6424 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6425 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6426 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6427 which is what was there before BSD_PGRPS was removed.
6428
6429 2010-08-05 Eli Zaretskii <eliz@gnu.org>
6430
6431 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6432
6433 * unexcoff.c: Renamed from unexec.c.
6434
6435 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6436
6437 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6438
6439 2010-08-03 Johan Bockgård <bojohan@gnu.org>
6440
6441 * data.c (Flocal_variable_p): Handle variable aliases correctly.
6442 (Bug#6744)
6443
6444 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6445
6446 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6447 to TRUE if depth of screen is < 16.
6448
6449 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6450 USE_GTK_TOOLTIP.
6451 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6452 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
6453 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
6454 USE_GTK_TOOLTIP.
6455 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6456
6457 * xterm.h (USE_GTK_TOOLTIP): New define.
6458 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6459
6460 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6461 to Control-D (Bug#6771).
6462
6463 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
6464
6465 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6466 Wording by Drew Adams <drew.adams@oracle.com>.
6467
6468 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6469
6470 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6471 ttip_lbl.
6472
6473 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6474 calling gtk_widget_queue_draw.
6475 (x_free_frame_resources): Call xg_free_frame_widgets.
6476
6477 * xfns.c (x_gtk_use_system_tooltips): New variable.
6478 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6479 new gtkutil tooltip functions to show the tooltip.
6480 (Fx_hide_tip): Call xg_hide_tooltip.
6481 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6482
6483 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6484 (xg_show_tooltip, xg_hide_tooltip): Declare.
6485
6486 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6487 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6488 New functions.
6489 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6490 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6491 Remove code that is commented out.
6492
6493 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6494
6495 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6496
6497 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
6498
6499 * xselect.c (x_own_selection): Use list4.
6500
6501 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6502
6503 * buffer.c (Qwindow): Do not define, already defined in data.c.
6504 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6505
6506 2010-07-29 Chad Brown <yandros@mit.edu>
6507
6508 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6509 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6510 * config.in: Undef HAVE_DIRENT_H.
6511 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6512 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6513
6514 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6515
6516 Rename s/usg5-4.h -> s/usg5-4-common.h.
6517 * s/usg5-4.h: Rename file to ...
6518 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6519 * s/unixware.h:
6520 * s/sol2-6.h:
6521 * s/irix6-5.h: Update includes accordingly.
6522
6523 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6524
6525 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6526
6527 * xterm.h (struct x_output): Add toolbar_top_height,
6528 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6529 Remove toolbar_height.
6530 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6531 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6532 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6533 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6534
6535 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6536
6537 * xfns.c (x_set_tool_bar_position): New function.
6538 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6539 (x_frame_parm_handlers): Add x_set_tool_bar_position.
6540 (syms_of_xfns): If USE_GTK, provide move-toolbar.
6541
6542 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6543 and FRAME_TOOLBAR_LEFT_WIDTH.
6544
6545 * gtkutil.h (xg_change_toolbar_position): Declare.
6546
6547 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6548 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6549 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6550 (xg_create_frame_widgets): Create a hobox for placing widgets
6551 vertically. Use gtk_box_pack_start.
6552 (xg_height_or_width_changed): Rename from xg_height_changed.
6553 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6554 (xg_update_frame_menubar, free_frame_menubar): Change to
6555 xg_height_or_width_changed.
6556 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6557 size correctly. Remove hardcoded 4, instead use handlebox size -
6558 toolbar size.
6559 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
6560 size correctly. Use handlebox size + toolbar size as additional size.
6561 (xg_pack_tool_bar): POS is a new parameter.
6562 Set orientation of tool bar based on pos.
6563 Only make handlebox_widget if NULL.
6564 Check if tool bar goes to vbox or hbox depending on pos.
6565 (xg_update_tool_bar_sizes): New function.
6566 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
6567 height, call xg_update_tool_bar_sizes instead.
6568 (free_frame_tool_bar): Remove from hbox or vbox depending on
6569 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6570 (xg_change_toolbar_position): New function.
6571
6572 * frame.h (struct frame): Add tool_bar_position.
6573 (Qbottom): Declare.
6574
6575 * frame.c (Qtool_bar_position): New variable.
6576 (make_frame): Set tool_bar_position to Qtop.
6577 (frame_parms): Add tool-bar-position.
6578 (x_report_frame_params): Store tool_bar_position.
6579 (x_set_fringe_width): Reset wm size hint after fringe changes.
6580
6581 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6582
6583 Make lisp_time_argument declaration work on all systems.
6584 * lisp.h (lisp_time_argument): Move declaration ...
6585 * systime.h (lisp_time_argument): ... here
6586 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6587
6588 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6589
6590 * vm-limit.c (POINTER): Add typedef for it.
6591 (start_of_data): Change return type from POINTER to char *.
6592
6593 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6594 HAVE_WINDOW_SYSTEM.
6595
6596 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6597
6598 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6599 Remove reference to __osf__, unused.
6600
6601 * mem-limits.h: Remove duplicated includes.
6602 (NULL): Remove definition, unused.
6603 (POINTER): Remove definition.
6604 (start_of_data): Use char* in prototype, as the function
6605 definition does.
6606
6607 Remove extern declarations from .c files, and them to .h files.
6608 * keyboard.h (Qhelp_echo, waiting_for_input)
6609 (input_available_clear_time, ignore_mouse_drag_p)
6610 (Vdouble_click_time, real_this_command, Vthis_original_command):
6611 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6612 (Voverriding_local_map_menu_flag):
6613 * lisp.h (Qinteractive_form, use_file_dialog)
6614 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6615 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6616 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6617 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6618 (Qfunction, debug_on_next_call, Qfield)
6619 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6620 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6621 (Qfile_directory_p, Qinsert_file_contents)
6622 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6623 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6624 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6625 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6626 (Qminibuffer_prompt)
6627 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6628 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6629 (gray_bitmap_bits, xic_create_fontsetname):
6630 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6631
6632 * xsmfns.c (Vuser_login_name):
6633 * xrdb.c (Vdouble_click_time):
6634 * xfaces.c (xic_create_fontsetname):
6635 * w32select.c (waiting_for_input):
6636 * print.c (minibuffer_auto_raise):
6637 * msdos.c (Qhelp_echo):
6638 * macros.c (real_this_command):
6639 * keymap.c (Voverriding_local_map):
6640 * xterm.c (poll_for_input_1, gray_bitmap_width)
6641 (gray_bitmap_height, gray_bitmap_bits;
6642 * xmenu.c ( Voverriding_local_map)
6643 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6644 (use_file_dialog, Xt_app_con):
6645 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6646 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6647 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6648 (Qtool_bar_lines, ignore_mouse_drag_p):
6649 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6650 (Qrear_nonsticky, nconc2):
6651 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6652 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6653 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6654 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6655 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6656 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6657 (gc_in_progress):
6658 * doc.c (Voverriding_local_map, Qremap):
6659 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6660 (Vcompletion_regexp_list):
6661 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6662 (Qcompletion_ignore_case):
6663 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6664 (Vhistory_length, Vthis_original_command, real_this_command)
6665 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6666 * image.c (Qrisky_local_variable):
6667 * fontset.c (QCname):
6668 * fns.c (minibuffer_auto_raise, QCname):
6669 * dispnew.c (char_ins_del_cost):
6670 * composite.c (font_fill_lglyph_metrics):
6671 * cmds.c (Qface, Vtranslation_table_for_input):
6672 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6673 * ccl.c (charset_unicode):
6674 * callproc.c (Vtemporary_file_directory):
6675 * buffer.c (emacs_strerror): Remove extern declarations.
6676
6677 * data.c (Qwindow): Make non-static, used from other files too.
6678 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6679
6680 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6681 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6682 * s/usg5-4.h (COFF):
6683 * s/template.h:
6684 * s/msdos.h (COFF, NO_REMAP):
6685 * s/ms-w32.h (NO_REMAP):
6686 * s/hpux10-20.h (NO_REMAP):
6687 * m/sparc.h (SEGMENT_MASK):
6688 * m/m68k.h (NO_REMAP):
6689 * m/intel386.h (SEGMENT_MASK):
6690 * m/arm.h (NO_REMAP):
6691 * m/alpha.h (COFF):
6692 * m/template.h: Remove references to unused defines.
6693
6694 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6695
6696 * xsettings.c (Ftool_bar_get_system_style): Also check for
6697 Qtext_image_horiz.
6698
6699 * xdisp.c (Qtext_image_horiz): Define.
6700 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
6701 to documentation of tool-bar-style.
6702
6703 * lisp.h (Qtext_image_horiz): Declare.
6704
6705 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6706 style text_image_horiz.
6707
6708 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6709
6710 * emacs.c (Fkill_emacs): Remove return statement.
6711
6712 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6713 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
6714 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6715 Remove local extern declarations.
6716
6717 * xmenu.c: Do not included lwlib.h, not needed.
6718
6719 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6720
6721 * process.c: Move definitions earlier to minimize #ifdefs.
6722
6723 * xterm.h (x_get_customization_string, x_load_resources)
6724 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6725 (x_check_errors, x_property_data_to_lisp, defined_color)
6726 (xic_set_xfontset, x_defined_color): Use const.
6727
6728 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6729 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6730
6731 * xselect.c (selection_data_to_lisp_data)
6732 (x_property_data_to_lisp):
6733 * xrdb.c (x_get_string_resource, file_p)
6734 (x_get_customization_string, magic_file_p, search_magic_path)
6735 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6736 (x_get_string_resource): Use const.
6737
6738 * xfns.c: Include xlwmenu.h when USE_LUCID.
6739 (x_defined_color, xic_set_xfontset): Use const.
6740 (Fx_hide_tip): Remove local extern declaration.
6741
6742 * xfaces.c (Qmouse_face): Remove declaration.
6743 (face_color_gray_p, tty_defined_color, defined_color)
6744 (face_color_gray_p, face_color_supported_p): Add const.
6745
6746 * xdisp.c (do_mouse_tracking): Remove declaration.
6747 (add_to_log): Use const.
6748
6749 * minibuf.c (Qmouse_face): Remove declaration.
6750
6751 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6752
6753 * keyboard.h (do_mouse_tracking): Add declaration.
6754
6755 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6756 (QCdata, QCtype, Qcenter): Remove declarations.
6757
6758 * frame.c (x_get_resource_string, x_get_string_resource)
6759 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6760 (x_default_parameter): Use const.
6761
6762 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6763 (QCheight, QCsize, QCname): Remove declarations.
6764
6765 * emacs.c (main): Remove local extern declaration.
6766
6767 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6768 declarations.
6769
6770 * dispnew.c: Remove duplicate #include <unistd.h>.
6771 (update_window, update_frame_1, init_display): Remove local extern
6772 declarations.
6773
6774 * dispextern.h (add_to_log): Remove declaration.
6775 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6776 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6777
6778 * dired.c (scmp): Add const.
6779 (directory_files_internal): Remove local extern declaration.
6780
6781 * data.c (Finteractive_form): Use const.
6782
6783 * composite.c (syms_of_composite): Remove local extern declarations.
6784
6785 * charset.c (add_to_log): Remove declaration.
6786
6787 * character.c (strwidth, parse_str_to_multibyte): Add const.
6788
6789 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6790
6791 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6792
6793 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
6794 (Lisp_Subr): Make doc and intspec constant.
6795 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6796 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6797 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6798 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6799 (display_arg): Add declarations.
6800
6801 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
6802
6803 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6804
6805 * window.c (Fwindow_height): Doc fix (bug#6518).
6806
6807 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
6808
6809 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6810
6811 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6812
6813 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6814 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6815 functions.
6816
6817 * frame.h (Qtty_color_mode): Add declaration.
6818
6819 * lisp.h (Ftop_level, Fexit_recursive_edit)
6820 (Fabort_recursive_edit): Mark as NO_RETURN.
6821
6822 2010-07-26 Kenichi Handa <handa@m17n.org>
6823
6824 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
6825 number of glyphs gets smaller than the original length. (Bug#6621)
6826
6827 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
6828
6829 * lread.c (unreadpure, mapatoms_1): Make static.
6830
6831 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
6832
6833 * terminfo.c (tparam): Fix prototype of tparm.
6834
6835 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6836
6837 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6838 find start of text segment.
6839 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6840 is defined.
6841
6842 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6843
6844 2010-07-25 Ken Brown <kbrown@cornell.edu>
6845
6846 * vm-limit.c (check_memory_limits): Fix previous change;
6847 accidentally reverted an earlier change.
6848
6849 2010-07-25 Ken Brown <kbrown@cornell.edu>
6850
6851 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6852 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6853
6854 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
6855
6856 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6857 * dired.c (opendir, readdir): Fix prototypes.
6858 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6859 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6860 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6861 (telldir): Remove declaration.
6862 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6863 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6864 * syssignal.h (strsignal): Fix prototype.
6865 * term.c (tparam): Fix prototype.
6866 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6867 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6868 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6869 and __morecore.
6870 * w32gui.h (XParseGeometry): Fix prototype.
6871 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6872 * w32term.c (my_set_focus): Declare inside #if 0.
6873 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6874 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6875 (drain_message_queue, get_next_msg, post_msg, parse_button)
6876 (ClipboardSequence_Proc): Fix prototypes.
6877 (wait_for_sync): Remove declaration.
6878
6879 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
6880
6881 * w32fns.c (w32_to_x_color): Remove, unused.
6882
6883 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6884
6885 * lisp.h: Remove leftover P_.
6886
6887 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6888
6889 * ecrt0.c, unexalpha.c: Remove files, unused.
6890
6891 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6892
6893 * cmds.c (internal_self_insert): Make static.
6894 * lisp.h (internal_self_insert): Remove declaration.
6895
6896 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
6897
6898 * alloc.c (free_float):
6899 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6900 * frame.c (delete_frame_handler):
6901 * ralloc.c (reorder_bloc):
6902 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6903 Remove unused static functions.
6904
6905 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6906 it is called only from NS code.
6907
6908 * w32term.c (my_set_focus): #ifdef away; it is called only from
6909 "#ifdef 0" code.
6910
6911 * w32fns.c (x_edge_detection):
6912 * xfaces.c (may_use_scalable_font_p):
6913 Remove obsolete static declarations.
6914
6915 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
6916
6917 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6918 (emacs_blocked_realloc, uninterrupt_malloc):
6919 * fringe.c (w32_reset_fringes):
6920 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6921 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6922 * sound.c (be2hs, do_play_sound):
6923 * vm-limit.c (get_lim_data, ret_lim_data):
6924 * w32term.c (x_free_frame_resources):
6925 * xfaces.c (x_create_gc, x_free_gc):
6926 Convert definitions to standard C.
6927
6928 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6929
6930 * eval.c (Feval, Ffuncall): Use the new names.
6931
6932 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6933 (DEFUN): Add braces around the union initialisation and use ## to
6934 specify the right union alternative and avoid a cast.
6935
6936 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
6937
6938 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6939
6940 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
6941
6942 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6943
6944 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6945
6946 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6947 is related to the menu bar (Bug#6499).
6948 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
6949
6950 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6951
6952 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6953
6954 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6955
6956 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6957 i.e. don't put back ButtonRelease (Bug#6608).
6958
6959 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6960 instead of Window. Call xg_event_is_for_menubar when
6961 USE_GTK (Bug#6499).
6962
6963 * gtkutil.h (xg_event_is_for_menubar): Declare.
6964
6965 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6966
6967 2010-07-16 Eli Zaretskii <eliz@gnu.org>
6968
6969 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6970 when it's the same as the old foreground. (Bug#6609)
6971
6972 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6973
6974 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6975 widget is non-null (Bug#6645).
6976
6977 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6978
6979 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6980 Convert old-style definition.
6981
6982 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6983 timestamp argument.
6984
6985 2010-07-15 Eli Zaretskii <eliz@gnu.org>
6986
6987 * fringe.c (update_window_fringes): Restore mistakenly reverted
6988 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6989
6990 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6991
6992 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6993 (SET_SAVED_KEY_EVENT): Remove (not used).
6994 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6995 remove size parameter.
6996 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6997 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6998 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6999 ButtonRelease.
7000 (x_set_window_size_1): scroll_bar_actual_width is always
7001 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
7002
7003 * xdisp.c (pending_menu_activation): Remove extern declaration.
7004 (prepare_menu_bars): Remove setting of pending_menu_activation.
7005
7006 * xmenu.c (pending_menu_activation): Remove.
7007 (x_activate_menubar): Set popup_activated_flag for Xt also.
7008 Remove setting of pending_menu_activation.
7009 (set_frame_menubar): Remove check of pending_menu_activation.
7010 Declare menubar_size before code. Correct spelling in comment.
7011
7012 2010-07-14 Kenichi Handa <handa@m17n.org>
7013
7014 * font.c (font_open_entity): Cancel previous change.
7015 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7016
7017 2010-07-13 Eli Zaretskii <eliz@gnu.org>
7018
7019 Remove subprocesses #ifdefs.
7020 * process.c <inhibit_sentinels>: Move to the common part.
7021 (Fwaiting_for_user_input_p): Move to the common part; return nil
7022 if async subprocesses aren't supported.
7023 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7024 MS-DOS. Remove "#ifdef subprocesses".
7025 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7026 (gettimeofday): Remove "#ifdef subprocesses".
7027 (wait_without_blocking): Remove function.
7028 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7029 Remove "#ifdef subprocesses".
7030 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7031 compiled on MS-DOS.
7032 * callproc.c (Fcall_process) [!MSDOS]: Don't call
7033 wait_for_termination on MS-DOS.
7034 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7035 initialization of inhibit_sentinels.
7036 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7037 subprocesses" conditional.
7038 * callproc.c (Fcall_process) [!subprocesses]: Don't call
7039 wait_for_termination, since `buffer' cannot be an integer when
7040 async subprocesses are not supported
7041 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7042 for ifdefing away the call to Fprocess_status.
7043
7044 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7045 away the entire body of the function.
7046
7047 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7048
7049 Remove subprocesses #ifdefs from term.c.
7050 * process.c (add_keyboard_wait_descriptor)
7051 (delete_keyboard_wait_descriptor): Move to common section, do
7052 nothing when subprocesses is not defined.
7053 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7054 Remove subprocesses #ifdefs.
7055
7056 Convert maybe_fatal to standard C.
7057 * lisp.h (verror): Declare.
7058 * eval.c (verror): New function containing the code from ...
7059 (error): ... this. Call verror.
7060 * term.c (vfatal): New function containing the code from ...
7061 (fatal): ... this. Call vfatal.
7062 (maybe_fatal): Convert to standard C, use variable number of
7063 arguments. Declare as non-return.
7064 (init_tty): Fix maybe_fatal call.
7065
7066 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7067
7068 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7069 (_scroll_bar_note_movement): Convert definitions to standard C.
7070 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7071 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7072
7073 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7074
7075 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7076 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7077 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7078 (xaw_jump_callback, xaw_scroll_callback)
7079 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
7080 (x_wm_set_size_hint, x_activate_timeout_atimer):
7081 Convert definitions to standard C.
7082 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7083 (popup_activate_callback, popup_deactivate_callback)
7084 (menu_highlight_callback, menubar_selection_callback)
7085 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7086 (free_frame_menubar, popup_selection_callback, as)
7087 (create_and_show_popup_menu, dialog_selection_callback)
7088 (create_and_show_dialog):
7089 * xfns.c (hack_wm_protocols, x_window):
7090 * xfaces.c (x_update_menu_appearance):
7091 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7092 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7093 (set_frame_size, update_wm_hints, setup_frame_gcs)
7094 (update_various_frame_slots, update_from_various_frame_slots)
7095 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7096 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7097 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7098
7099 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7100
7101 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
7102
7103 2010-07-12 Eli Zaretskii <eliz@gnu.org>
7104
7105 * process.c (setup_process_coding_systems): Move to the part
7106 shared by non-subprocesses systems, and make its body empty when
7107 subprocesses is not defined.
7108 (close_process_descs): Move to the part shared by non-subprocesses
7109 systems.
7110 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7111 ANSI C.
7112
7113 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7114
7115 * editfns.c (transpose_markers): Convert old-style definition.
7116 * emacs.c (abort, shut_down_emacs, fixup_locale)
7117 (synchronize_system_time_locale)
7118 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7119 * floatfns.c (extract_float, matherr, init_floatfns)
7120 (syms_of_floatfns): Likewise.
7121 * fns.c (make_hash_table): Likewise.
7122 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7123 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7124 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7125 (ftfont_variation_glyphs): Likewise.
7126 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7127 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7128 * lread.c (read_filtered_event): Likewise.
7129 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7130 * process.c (wait_reading_process_output): Likewise.
7131 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7132 * search.c (search_buffer, boyer_moore): Likewise.
7133 * syntax.c (scan_sexps_forward): Likewise.
7134 * xdisp.c (try_scrolling): Likewise.
7135 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7136 (face_at_string_position): Likewise.
7137 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7138 * xselect.c (x_get_window_property, receive_incremental_selection)
7139 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7140 Likewise.
7141 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7142
7143 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7144
7145 * callproc.c (child_setup): Remove subprocesses conditional.
7146 Remove code dealing with SET_EMACS_PRIORITY, unused.
7147
7148 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
7149 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7150
7151 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7152 (__do_global_dtors, __main): Use void in definition.
7153 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7154 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7155 the only users from ...
7156 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7157 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7158 (HAVE_VOLATILE): Remove, unused.
7159
7160 Convert more function definitions to standard C.
7161 * xdisp.c (window_box_edges, handle_single_display_spec)
7162 (display_string): Convert definition to standard C.
7163 * scroll.c (do_direct_scrolling, scrolling_1):
7164 * dispnew.c (allocate_matrices_for_frame_redisplay)
7165 (mirrored_line_dance):
7166 * coding.c (code_convert_string):
7167 * charset.c (map_charset_chars):
7168 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7169 (Fregister_ccl_program, Fregister_code_conversion_map):
7170 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7171 (head_table): Make static and const.
7172
7173 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7174
7175 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7176 (PROFILING_LDFLAGS): Set from substitution.
7177 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7178 CFLAGS last.
7179
7180 2010-07-12 Kenichi Handa <handa@m17n.org>
7181
7182 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7183 (shortlisp): Likewise.
7184
7185 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7186
7187 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7188 of FONT_ENTITY_INDEX.
7189 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7190 property, get the property value dynamically.
7191 (Ffont_put): Accept font-entity and font-object too.
7192 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
7193 return value changed.
7194 (syms_of_font): Adjust for the above change.
7195
7196 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7197
7198 * blockinput.h: Remove obsolete comment.
7199
7200 * lisp.h: Include <stddef.h>.
7201 (OFFSETOF): Don't define.
7202 (VECSIZE): Use offsetof instead of OFFSETOF.
7203 (PSEUDOVECSIZE): Likewise.
7204 * process.c (conv_sockaddr_to_lisp): Likewise.
7205 * alloc.c: Don't include <stddef.h>.
7206 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7207
7208 * process.c: Remove obsolete comment.
7209
7210 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
7211
7212 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7213
7214 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7215
7216 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7217 index, rindex.
7218 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7219 * editfns.c (Fuser_full_name, Fformat): Likewise.
7220 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7221 * fileio.c (Ffile_symlink_p): Likewise.
7222 * filelock.c (current_lock_owner): Likewise.
7223 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7224 * fontset.c (fontset_pattern_regexp): Likewise.
7225 * lread.c (read1): Likewise.
7226 * sysdep.c (init_system_name): Likewise.
7227 * xfns.c (select_visual): Likewise.
7228 * s/hpux10-20.h (index, rindex): Don't define.
7229 * s/ms-w32.h (index): Likewise.
7230 * s/usg5-4.h: Likewise.
7231
7232 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7233
7234 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7235 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7236 (egetenv): Likewise.
7237 * doprnt.c (doprnt): Likewise.
7238 * editfns.c (set_time_zone_rule, format2): Likewise.
7239 * emacs.c (decode_env_path): Likewise.
7240 * eval.c (signal_error, error): Likewise.
7241 * insdel.c (replace_range_2): Likewise.
7242 * keyboard.c (cmd_error_internal): Likewise.
7243 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7244 * print.c (write_string, write_string_1, print_error_message):
7245 Likewise.
7246 * vm-limit.c (warn_function, memory_warnings): Likewise.
7247 * xdisp.c (message1, message1_nolog, message_with_string)
7248 (vmessage, message, message_nolog): Likewise.
7249 * emacs.c: Remove duplicate declaration.
7250 * keyboard.h: Likewise.
7251 * lisp.h: Update prototypes.
7252
7253 * eval.c: Fix indentation problem.
7254
7255 * keyboard.c: Include "process.h".
7256
7257 * eval.c: Remove obsolete noinline declaration.
7258 * fns.c: Likewise.
7259
7260 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
7261
7262 * doprnt.c (doprnt): Take a va_list argument instead of count and
7263 pointer.
7264 * eval.c (error): Change to a standard-C variadic function.
7265 * xdisp.c (vmessage): Rename from message, made static, and
7266 changed to take a va_list argument.
7267 (message): New variadic wrapper.
7268 (message_nolog): Now a variadic function, calling vmessage.
7269 * lisp.h: Include stdarg.h for va_list.
7270 (doprnt, error, message, message_nolog): Decls updated.
7271
7272 2010-07-11 Eli Zaretskii <eliz@gnu.org>
7273
7274 * process.c (syms_of_process) <delete-exited-processes>: Define
7275 even if !subprocesses.
7276 (delete_exited_processes): Ditto.
7277
7278 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7279 (delete_exited_processes): Don't define.
7280
7281 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7282
7283 * frame.c (make_frame): Initialize menu_bar_lines and
7284 tool_bar_lines members.
7285 (make_initial_frame, make_terminal_frame):
7286 Initialize menu_bar_lines using value of menu-bar-mode.
7287
7288 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7289
7290 2010-07-10 Eli Zaretskii <eliz@gnu.org>
7291
7292 * process.c: Reshuffle #include's. Condition some of the global
7293 and static variables on `subprocesses'.
7294 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7295 Leave only one implementation.
7296 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7297 (kill_buffer_processes, Flist_system_processes)
7298 (Fprocess_attributes, init_process, syms_of_process): Unify the
7299 implementations for with subprocesses and without them.
7300
7301 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7302
7303 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7304 correct size for Motif.
7305 (free_frame_menubar): Call x_set_window_size to update frame size.
7306
7307 * xfns.c (x_window): Set borderWidth to 0 for pane and
7308 EmacsFrame. Frame size calculation is wrong otherwise.
7309
7310 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
7311
7312 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7313 allows to suppress errors when polling in Emacs' main loop.
7314 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7315 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7316 (Fdbus_method_error_internal, Fdbus_send_signal)
7317 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7318 (Fdbus_register_method): Use it. (Bug#6579)
7319
7320 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7321
7322 * alloc.c: Convert DEFUNs to standard C.
7323 * buffer.c:
7324 * bytecode.c:
7325 * callint.c:
7326 * callproc.c:
7327 * casefiddle.c:
7328 * casetab.c:
7329 * category.c:
7330 * character.c:
7331 * charset.c:
7332 * chartab.c:
7333 * cmds.c:
7334 * coding.c:
7335 * composite.c:
7336 * data.c:
7337 * dbusbind.c:
7338 * dired.c:
7339 * dispnew.c:
7340 * doc.c:
7341 * dosfns.c:
7342 * editfns.c:
7343 * emacs.c:
7344 * eval.c:
7345 * fileio.c:
7346 * filelock.c:
7347 * floatfns.c:
7348 * fns.c:
7349 * font.c:
7350 * fontset.c:
7351 * frame.c:
7352 * fringe.c:
7353 * image.c:
7354 * indent.c:
7355 * insdel.c:
7356 * keyboard.c:
7357 * keymap.c:
7358 * lread.c:
7359 * macros.c:
7360 * marker.c:
7361 * menu.c:
7362 * minibuf.c:
7363 * msdos.c:
7364 * nsfns.m:
7365 * nsmenu.m:
7366 * nsselect.m:
7367 * print.c:
7368 * process.c:
7369 * search.c:
7370 * sound.c:
7371 * syntax.c:
7372 * term.c:
7373 * terminal.c:
7374 * textprop.c:
7375 * undo.c:
7376 * w16select.c:
7377 * w32console.c:
7378 * w32fns.c:
7379 * w32font.c:
7380 * w32menu.c:
7381 * w32proc.c:
7382 * w32select.c:
7383 * window.c:
7384 * xdisp.c:
7385 * xfaces.c:
7386 * xfns.c:
7387 * xmenu.c:
7388 * xselect.c:
7389 * xsettings.c:
7390 * xsmfns.c: Likewise.
7391
7392 2010-07-08 Eli Zaretskii <eliz@gnu.org>
7393
7394 * process.c (kbd_is_on_hold, hold_keyboard_input)
7395 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7396
7397 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7398
7399 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7400 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7401 unless USE_LUCID.
7402
7403 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7404
7405 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7406 declaration.
7407
7408 Clean up include guards.
7409 * tparam.c: Remove include guards for config.h, string.h and code
7410 that assumes #ifndef emacs.
7411 * termcap.c:
7412 * unexalpha.c:
7413 * sysdep.c:
7414 * filemode.c:
7415 * filelock.c:
7416 * bidi.c: Likewise.
7417
7418 Remove prefix-args.c
7419 * prefix-args.c: Remove file.
7420 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7421 * Makefile.in (temacs${EXEEXT}): Remove references to
7422 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7423 (mostlyclean): Remove reference to prefix-args.
7424 (prefix-args): Remove.
7425
7426 Simplify cstart_of_data, start_of_code and related code.
7427 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7428 (start_of_data): Merge into start_of_data function.
7429 * sysdep.c (start_of_text): Remove. Move simplified versions of
7430 it in the only users: unexaix.c and unexec.c.
7431 (read_input_waiting): Remove local declaration of quit_char.
7432 (start, etext): Remove declarations.
7433 (start_of_data): Merge with the version in mem-limits.h and move
7434 to vm-limits.c.
7435 * vm-limit.c (start_of_data): Merged and simplified version of the
7436 code formerly in mem-limits.h and sysdep.c.
7437 * unexec.c (start): New declaration, moved from sysdep.c.
7438 (start_of_text): Simplified version of the code formerly in sysdep.c.
7439 * unexaix.c (start_of_text): Simplified version of the code
7440 formerly in sysdep.c.
7441 * m/alpha.h (HAVE_TEXT_START): Remove.
7442 (TEXT_START): Move ...
7443 * unexalpha.c (TEXT_START): ... here.
7444 * s/hpux10-20.h (TEXT_START): Remove.
7445 * s/darwin.h (TEXT_START):
7446 * m/mips.h (TEXT_START):
7447 * m/macppc.h (HAVE_TEXT_START):
7448 * m/m68k.h (TEXT_START):
7449 * m/iris4d.h (TEXT_START):
7450 * m/intel386.h (TEXT_START):
7451 * m/ibmrs6000.h (TEXT_START):
7452 * m/ia64.h (HAVE_TEXT_START):
7453 * s/msdos.h (TEXT_START): Likewise.
7454
7455 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7456
7457 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7458 (overrun_check_free, xstrdup, allocate_string)
7459 (allocate_string_data, compact_small_strings, Fmake_string)
7460 (make_unibyte_string, make_multibyte_string)
7461 (make_string_from_bytes, make_specified_string, make_float)
7462 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7463 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7464 memcpy, memmove, memset, memcmp.
7465 * atimer.c (start_atimer, set_alarm): Likewise.
7466 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7467 (mmap_realloc, init_buffer_once): Likewise.
7468 * callint.c (Fcall_interactively): Likewise.
7469 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7470 (getenv_internal_1): Likewise.
7471 * casefiddle.c (casify_object): Likewise.
7472 * ccl.c (ccl_driver): Likewise.
7473 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7474 * charset.c (load_charset_map_from_file)
7475 (load_charset_map_from_file, load_charset_map_from_vector)
7476 (Fdefine_charset_internal): Likewise.
7477 * cm.c (Wcm_clear): Likewise.
7478 * coding.c (decode_eol, decode_coding_object)
7479 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7480 * data.c (Faset): Likewise.
7481 * dired.c (directory_files_internal, file_name_completion_stat):
7482 Likewise.
7483 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7484 (clear_glyph_row, copy_row_except_pointers)
7485 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7486 (save_current_matrix, restore_current_matrix)
7487 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7488 (mirror_line_dance, scrolling_window): Likewise.
7489 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7490 Likewise.
7491 * doprnt.c (doprnt): Likewise.
7492 * editfns.c (Fuser_full_name, make_buffer_string_both)
7493 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7494 * emacs.c (sort_args): Likewise.
7495 * eval.c (Fapply, Ffuncall): Likewise.
7496 * fileio.c (Ffile_name_directory, make_temp_name)
7497 (Fexpand_file_name, search_embedded_absfilename)
7498 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7499 (auto_save_error): Likewise.
7500 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7501 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7502 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7503 (Fmake_hash_table): Likewise.
7504 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7505 * ftfont.c (ftfont_text_extents): Likewise.
7506 * getloadavg.c (getloadavg): Likewise.
7507 * image.c (define_image_type, make_image, make_image_cache)
7508 (x_create_x_image_and_pixmap, xbm_image_p)
7509 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7510 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7511 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7512 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7513 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7514 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7515 Likewise.
7516 * indent.c (scan_for_column, compute_motion): Likewise.
7517 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7518 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7519 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7520 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7521 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7522 (store_user_signal_events, menu_bar_items, tool_bar_items)
7523 (process_tool_bar_item, append_tool_bar_item)
7524 (read_char_minibuf_menu_prompt, read_key_sequence)
7525 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7526 Likewise.
7527 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7528 Likewise.
7529 * lisp.h (STRING_COPYIN): Likewise.
7530 * lread.c (Fload, read1, oblookup): Likewise.
7531 * msdos.c (Frecent_doskeys): Likewise.
7532 * nsfns.m (Fx_create_frame): Likewise.
7533 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7534 Likewise.
7535 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7536 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7537 Likewise.
7538 * nsmenu.m (ns_update_menubar): Likewise.
7539 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7540 * print.c (print_unwind, printchar, strout, print_string)
7541 (print_error_message): Likewise.
7542 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7543 (Fmake_network_process, Fnetwork_interface_list)
7544 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7545 (init_process): Likewise.
7546 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7547 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7548 Likewise.
7549 * scroll.c (do_scrolling, do_direct_scrolling)
7550 (scrolling_max_lines_saved): Likewise.
7551 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7552 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7553 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7554 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7555 (emacs_set_tty): Likewise.
7556 * term.c (encode_terminal_code, calculate_costs)
7557 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7558 Likewise.
7559 * termcap.c (tgetst1, gobble_line): Likewise.
7560 * termhooks.h (EVENT_INIT): Likewise.
7561 * tparam.c (tparam1): Likewise.
7562 * unexalpha.c (unexec): Likewise.
7563 * unexec.c (write_segment): Likewise.
7564 * unexmacosx.c (unexec_write_zero): Likewise.
7565 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7566 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7567 * w32font.c (w32font_list_family, w32font_text_extents)
7568 (w32font_list_internal, w32font_match_internal)
7569 (w32font_open_internal, compute_metrics, Fx_select_font):
7570 Likewise.
7571 * w32menu.c (set_frame_menubar, add_menu_item)
7572 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7573 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7574 * w32uniscribe.c (uniscribe_list_family): Likewise.
7575 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7576 * window.c (make_window, replace_window, set_window_buffer)
7577 (Fsplit_window): Likewise.
7578 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7579 (add_to_log, message3, x_consider_frame_title)
7580 (append_space_for_newline, extend_face_to_end_of_line)
7581 (decode_mode_spec_coding, init_glyph_string): Likewise.
7582 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7583 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7584 (face_attr_equal_p, make_realized_face, make_face_cache)
7585 (free_realized_faces, lookup_named_face, smaller_face)
7586 (face_with_height, lookup_derived_face)
7587 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7588 (Finternal_set_font_selection_order, realize_default_face)
7589 (compute_char_face, face_at_buffer_position)
7590 (face_for_overlay_string, face_at_string_position, merge_faces):
7591 Likewise.
7592 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7593 (Fx_window_property, x_create_tip_frame)
7594 (Fx_backspace_delete_keys_p): Likewise.
7595 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7596 (xfont_text_extents): Likewise.
7597 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7598 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7599 * xselect.c (x_queue_event, x_get_window_property)
7600 (receive_incremental_selection): Likewise.
7601 * xsmfns.c (x_session_check_input): Likewise.
7602 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7603 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7604 Likewise.
7605 * character.h (BCOPY_SHORT): Removed.
7606 * config.in: Regenerate.
7607 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7608 * emacs.c (main) [PROFILING]: Don't declare
7609 dump_opcode_frequencies.
7610 * lisp.h (safe_bcopy): Remove declaration.
7611 (memset) [!HAVE_MEMSET]: Declare.
7612 (memcpy) [!HAVE_MEMCPY]: Likewise.
7613 (memmove) [!HAVE_MEMMOVE]: Likewise.
7614 (memcmp) [!HAVE_MEMCMP]: Likewise.
7615 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7616 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7617 Don't define.
7618 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7619 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7620 (BCOPY_DOWNWARD_SAFE): Don't define.
7621 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7622 (memcpy) [!HAVE_MEMCPY]: Define.
7623 (memmove) [!HAVE_MEMMOVE]: Define.
7624 (memcmp) [!HAVE_MEMCMP]: Define.
7625
7626 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7627
7628 * process.c (kbd_is_on_hold): New variable.
7629 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7630 New functions.
7631 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7632 select on empty input mask.
7633 (init_process): Initialize kbd_is_on_hold to 0.
7634
7635 * process.h (hold_keyboard_input, unhold_keyboard_input)
7636 (kbd_on_hold_p): Declare.
7637
7638 * keyboard.c (input_available_signal): Declare.
7639 (kbd_buffer_nr_stored): New function.
7640 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7641 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7642 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7643 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7644 (tty_read_avail_input): If input is on hold, return.
7645 Don't read more that free slots in kbd_buffer (Bug#6571).
7646
7647 2010-07-07 Eli Zaretskii <eliz@gnu.org>
7648
7649 * msdos.h:
7650 * msdos.c:
7651 * dosfns.c:
7652 * w16select.c: Convert function definitions to ANSI C.
7653
7654 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7655 Remove unused prototypes.
7656
7657 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7658
7659 * coding.c, sysdep.c: Convert some more functions to standard C.
7660
7661 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7662
7663 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7664 (encode_coding_object): Use SPECPDL_INDEX.
7665 (syms_of_coding): Use DOS_NT.
7666
7667 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7668
7669 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7670
7671 Make the function member of Lisp_Subr use standard C prototypes.
7672 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7673 (DECL_ALIGN): Add a cast for the function.
7674 * eval.c (Feval, Ffuncall): Use the proper type for each type
7675 function call.
7676
7677 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
7678
7679 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7680 fringe face id, so face-remapping-alist works (Bug#6091).
7681
7682 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
7683
7684 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7685 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7686 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7687
7688 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7689
7690 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7691 * lisp.h: Declare x_get_keysym_name.
7692 * keyboard.c (modify_event_symbol): Don't declare
7693 x_get_keysym_name here.
7694
7695 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7696
7697 * ecrt0.c: Revert conversion to standard C.
7698
7699 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7700
7701 * vm-limit.c (memory_warnings):
7702 * keyboard.c (modify_event_symbol):
7703 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7704 (round2, emacs_rint):
7705 * process.c (send_process, old_sigpipe): Convert function
7706 definitions and declarations to standard C.
7707
7708 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
7709
7710 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7711 * xdisp.c: Convert function definitions to standard C.
7712
7713 * cm.c (cmputc): Arg C is now int, not char.
7714 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7715
7716 2010-07-05 James Cloos <cloos@jhcloos.com>
7717
7718 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7719
7720 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7721 _NET_WM_ICON_NAME atoms.
7722
7723 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7724 and _NET_WM_ICON_NAME properties, too, matching what is
7725 done in the Gtk+ case.
7726
7727 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7728
7729 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7730
7731 * xsmfns.c (SSDATA): New macro.
7732 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7733 passed to strlen/strcpy/strcat.
7734 (create_client_leader_window): Surround with #ifndef USE_GTK.
7735 Cast 7:th arg to XChangeProperty to (unsigned char *).
7736
7737 * xsettings.c (something_changedCB, parse_settings)
7738 (apply_xft_settings): Reformat prototype.
7739 (something_changedCB, init_gconf): Remove unused variable i.
7740 (read_settings): Remove unused variable long_len.
7741
7742 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7743 (xg_get_image_for_pixmap, create_dialog)
7744 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7745 (menuitem_highlight_callback, make_menu_item)
7746 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7747 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7748 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7749 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7750 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7751 (xg_tool_bar_item_expose_callback): Reformat prototype.
7752 (xg_update_menubar): GList *group => GSList *group.
7753 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7754 before use.
7755 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7756 to GTK_IMAGE (wimage).
7757
7758 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7759
7760 * atimer.c: Use "" instead of <> for local includes for
7761 consistency with the rest of the code.
7762
7763 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7764 * xrdb.c (get_system_name):
7765 * window.c (shrink_windows):
7766 * syntax.c (forw_comment):
7767 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7768 (ins_del_costs):
7769 * mem-limits.h (start_of_data):
7770 * lread.c (readevalloop):
7771 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7772 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7773 * frame.c (x_get_focus_frame):
7774 * floatfns.c (fmod_float):
7775 * fileio.c (choose_write_coding_system):
7776 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7777 (malloc_initialize_hook, sort_args, synchronize_locale):
7778 * doprnt.c (doprnt):
7779 * dired.c (compile_pattern):
7780 * data.c (fmod_float):
7781 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7782 (map_char_table_for_charset):
7783 * charset.c (define_charset_internal):
7784 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7785 to standard C.
7786
7787 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
7788 Stefan Monnier <monnier@iro.umontreal.ca>
7789
7790 * lread.c (read1): Fix up last change to not mess up `c'.
7791
7792 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7793
7794 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7795
7796 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7797
7798 Fix prototypes.
7799
7800 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
7801 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
7802 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7803 arg, as required by internal_condition_case_1.
7804 * print.c (strout): Use const char* for arg PTR.
7805 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7806 (analyse_first): Fix "const const".
7807 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
7808 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
7809 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
7810
7811 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7812
7813 * alloc.c: Convert function definitions to standard C.
7814 * atimer.c:
7815 * bidi.c:
7816 * bytecode.c:
7817 * callint.c:
7818 * callproc.c:
7819 * casefiddle.c:
7820 * casetab.c:
7821 * category.c:
7822 * ccl.c:
7823 * character.c:
7824 * charset.c:
7825 * chartab.c:
7826 * cmds.c:
7827 * coding.c:
7828 * composite.c:
7829 * data.c:
7830 * dbusbind.c:
7831 * dired.c:
7832 * dispnew.c:
7833 * doc.c:
7834 * doprnt.c:
7835 * ecrt0.c:
7836 * editfns.c:
7837 * fileio.c:
7838 * filelock.c:
7839 * filemode.c:
7840 * fns.c:
7841 * font.c:
7842 * fontset.c:
7843 * frame.c:
7844 * fringe.c:
7845 * ftfont.c:
7846 * ftxfont.c:
7847 * gtkutil.c:
7848 * indent.c:
7849 * insdel.c:
7850 * intervals.c:
7851 * keymap.c:
7852 * lread.c:
7853 * macros.c:
7854 * marker.c:
7855 * md5.c:
7856 * menu.c:
7857 * minibuf.c:
7858 * prefix-args.c:
7859 * print.c:
7860 * ralloc.c:
7861 * regex.c:
7862 * region-cache.c:
7863 * scroll.c:
7864 * search.c:
7865 * sound.c:
7866 * strftime.c:
7867 * syntax.c:
7868 * sysdep.c:
7869 * termcap.c:
7870 * terminal.c:
7871 * terminfo.c:
7872 * textprop.c:
7873 * tparam.c:
7874 * undo.c:
7875 * unexelf.c:
7876 * window.c:
7877 * xfaces.c:
7878 * xfns.c:
7879 * xfont.c:
7880 * xftfont.c:
7881 * xgselect.c:
7882 * xmenu.c:
7883 * xrdb.c:
7884 * xselect.c:
7885 * xsettings.c:
7886 * xsmfns.c:
7887 * xterm.c: Likewise.
7888
7889 2010-07-03 Eli Zaretskii <eliz@gnu.org>
7890
7891 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7892 frames other than the initial one. Fix reversal of colors when
7893 `reverse' is specified in the frame parameters.
7894 Call update_face_from_frame_parameter instead of
7895 internal-set-lisp-face-attribute. Initialize screen colors from
7896 initial_screen_colors[] when f->default_face_done_p is zero,
7897 instead of depending on being called with default-frame-alist as
7898 the alist argument.
7899
7900 * xfaces.c (update_face_from_frame_parameter): Move out of
7901 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7902 with HAVE_WINDOW_SYSTEM.
7903
7904 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7905 to menu-bar-mode, if not set in the frame parameters or in
7906 default-frame-alist.
7907
7908 * w32console.c (sys_tputs): Adjust argument list to prototype in
7909 term.c.
7910
7911 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
7912
7913 * lisp.h (memory_warnings): Fix prototype.
7914
7915 * cm.h (evalcost): Fix prototype.
7916
7917 * cm.c (evalcost): Fix arg type.
7918
7919 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7920
7921 * term.c (term_clear_mouse_face, Fidentity):
7922 * syssignal.h (signal_handler_t):
7923 * lisp.h (memory_warnings):
7924 * coding.h (preferred_coding_system):
7925 * cm.h (evalcost):
7926 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7927
7928 2010-07-02 Eli Zaretskii <eliz@gnu.org>
7929
7930 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7931 from prototypes.
7932
7933 * msdos.h (load_pixmap): Don't define away.
7934
7935 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7936
7937 * lisp.h:
7938 * atimer.h: Remove define for P_.
7939
7940 * alloc.c: Remove __P and P_ from .c and .m files.
7941 * atimer.c:
7942 * buffer.c:
7943 * callint.c:
7944 * category.c:
7945 * charset.c:
7946 * chartab.c:
7947 * cm.c:
7948 * coding.c:
7949 * composite.c:
7950 * data.c:
7951 * dired.c:
7952 * dispnew.c:
7953 * doc.c:
7954 * editfns.c:
7955 * emacs.c:
7956 * eval.c:
7957 * fileio.c:
7958 * filelock.c:
7959 * fns.c:
7960 * font.c:
7961 * fontset.c:
7962 * frame.c:
7963 * ftfont.c:
7964 * ftxfont.c:
7965 * gmalloc.c:
7966 * gtkutil.c:
7967 * image.c:
7968 * indent.c:
7969 * intervals.c:
7970 * keyboard.c:
7971 * keymap.c:
7972 * lread.c:
7973 * marker.c:
7974 * menu.c:
7975 * minibuf.c:
7976 * print.c:
7977 * process.c:
7978 * scroll.c:
7979 * search.c:
7980 * sound.c:
7981 * strftime.c:
7982 * syntax.c:
7983 * sysdep.c:
7984 * term.c:
7985 * terminal.c:
7986 * textprop.c:
7987 * unexalpha.c:
7988 * w32console.c:
7989 * w32fns.c:
7990 * w32font.c:
7991 * w32menu.c:
7992 * w32term.c:
7993 * w32uniscribe.c:
7994 * window.c:
7995 * xdisp.c:
7996 * xfaces.c:
7997 * xfns.c:
7998 * xfont.c:
7999 * xftfont.c:
8000 * xmenu.c:
8001 * xselect.c:
8002 * xterm.c: Likewise.
8003
8004 Remove P_ and __P macros.
8005 * atimer.h: Remove P_ and __P macros.
8006 * buffer.h:
8007 * category.h:
8008 * ccl.h:
8009 * character.h:
8010 * charset.h:
8011 * cm.h:
8012 * coding.h:
8013 * composite.h:
8014 * dispextern.h:
8015 * disptab.h:
8016 * dosfns.h:
8017 * font.h:
8018 * fontset.h:
8019 * frame.h:
8020 * gtkutil.h:
8021 * indent.h:
8022 * intervals.h:
8023 * keyboard.h:
8024 * keymap.h:
8025 * lisp.h:
8026 * macros.h:
8027 * md5.h:
8028 * menu.h:
8029 * msdos.h:
8030 * nsterm.h:
8031 * puresize.h:
8032 * region-cache.h:
8033 * syntax.h:
8034 * syssignal.h:
8035 * systime.h:
8036 * termhooks.h:
8037 * w32font.h:
8038 * w32term.h:
8039 * widget.h:
8040 * window.h:
8041 * xgselect.h:
8042 * xsettings.h:
8043 * xterm.h: Likewise.
8044
8045 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8046
8047 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8048
8049 Cleanup old code.
8050 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8051 * syssignal.h: Remove code for Lynx, not supported anymore.
8052 * vm-limit.c: Remove unused code the depends on emacs not being
8053 defined and NO_LIM_DATA being defined.
8054 * mem-limits.h: Remove dead code.
8055
8056 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8057
8058 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8059
8060 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8061 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8062
8063 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8064 parameters, they are already absolute.
8065
8066 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8067 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
8068
8069 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
8070
8071 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8072 Update FRAME_TOOLBAR_HEIGHT.
8073
8074 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8075 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
8076
8077 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
8078
8079 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8080 Don't check default-frame-alist.
8081
8082 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8083
8084 * process.c (create_process): Avoid using invalid file descriptors.
8085
8086 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8087
8088 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8089
8090 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8091 Improve documentation. Return font regardless of use_system_font.
8092 (syms_of_xsettings): Improve documentation for font-use-system-font.
8093
8094 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
8095
8096 * xfaces.c (realize_face): Garbage the frame if a face is removed
8097 (Bug#6593).
8098
8099 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8100
8101 * keyboard.c: Remove duplicate <setjmp.h>.
8102 (read_key_sequence): Remove volatile qualifiers.
8103
8104 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8105
8106 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8107 (struct glyph_row): New members left_fringe_offset and
8108 right_fringe_offset.
8109
8110 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8111 specially.
8112 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8113 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8114
8115 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
8116 Take account of bitmap offset.
8117 (draw_window_fringes): Take account of window vscroll.
8118 (update_window_fringes): Likewise. Extend top-aligned top indicator
8119 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8120 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8121 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8122
8123 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8124
8125 * w32fns.c (Qtooltip): Declare.
8126 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8127
8128 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8129
8130 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8131 grab on just Press (Bug#6499).
8132
8133 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
8134
8135 * frame.c (Qtooltip): New var.
8136 (delete_frame): Use it. Fix faulty if statement. Don't update
8137 mode line for tooltip frames. Suggested by Martin Rudalics.
8138
8139 * xfns.c (x_create_tip_frame):
8140 * w32fns.c (x_create_tip_frame): Use it.
8141
8142 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
8143
8144 * xftfont.c (xftfont_open): Check font width one by one also when
8145 spacing is dual.
8146
8147 * ftfont.c (ftfont_open): Ditto.
8148
8149 2010-06-30 Glenn Morris <rgm@gnu.org>
8150
8151 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8152
8153 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8154
8155 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8156 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8157 * s/darwin.h (SYSTEM_MALLOC):
8158 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8159
8160 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8161
8162 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8163 (ns_get_screen): Don't assign integer to f.
8164 (Fx_display_color_cells): Declarations before statements.
8165
8166 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8167
8168 * xfns.c (x_default_font_parameter): Remove got_from_system
8169 (Bug#6526).
8170
8171 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
8172 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8173 New defines based on what configure finds.
8174
8175 * xterm.c (XTflash): Use gtk_widget_get_window.
8176 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8177 gtk_adjustment_get_page_size.
8178 (handle_one_xevent): Use gtk_widget_get_mapped.
8179 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8180 messages.
8181
8182 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8183
8184 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8185 HAVE_GTK_FILE_SELECTION_NEW.
8186
8187 * gtkutil.c (xg_display_open, xg_display_close):
8188 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
8189 (xg_display_open): Return type is void.
8190 (gtk_widget_set_has_window)
8191 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8192 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8193 (gtk_adjustment_set_page_increment)
8194 (gtk_adjustment_get_step_increment): #define these if not found
8195 by configure.
8196 (remove_submenu): New define based on Gtk+ version.
8197 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8198 Use gtk_widget_get_window.
8199 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8200 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8201 (create_dialog): Use gtk_dialog_get_action_area and
8202 gtk_dialog_get_content_area.
8203 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8204 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8205 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
8206 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8207 Use g_object_ref and g_object_unref.
8208 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8209 Use gtk_widget_get_sensitive.
8210 (xg_update_submenu): Use remove_submenu.
8211 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8212 properties instead to get old x and y position.
8213 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8214 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
8215 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
8216 (xg_get_tool_bar_widgets): New function.
8217 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8218 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8219 (toolbar_set_orientation): New #define based on if configure
8220 finds gtk_orientable_set_orientation.
8221 (xg_create_tool_bar): Call toolbar_set_orientation.
8222 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8223 instead of gtk_box_pack_start_defaults.
8224
8225 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
8226
8227 * cmds.c (Fdelete_backward_char): Move into Lisp.
8228
8229 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8230
8231 * s/freebsd.h (BSD4_2): Remove redundant definition.
8232 bsd-common.h defines it already.
8233
8234 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
8235
8236 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8237 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8238 tool-bar-mode, which are now set using these X resources at
8239 startup, to determine the defaults (Bug#2249).
8240
8241 * w32fns.c (Fx_create_frame):
8242 * nsfns.m (Fx_create_frame): Likewise.
8243
8244 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8245
8246 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
8247
8248 * gtkutil.c (xg_update_scrollbar_pos):
8249 Avoid C99 mid-block variable declaration.
8250
8251 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8252
8253 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8254
8255 * gtkutil.h (xg_show_scroll_bar): Remove.
8256
8257 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8258 if height is less than scroll bar min size.
8259 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8260
8261 * xfns.c (x_default_font_parameter): Try to open font from system
8262 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8263
8264 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
8265
8266 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8267
8268 2010-06-20 Eli Zaretskii <eliz@gnu.org>
8269
8270 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8271 most-positive-fixnum, be extra accurate when scrolling window
8272 start, to avoid missing the cursor line.
8273
8274 2010-06-19 Eli Zaretskii <eliz@gnu.org>
8275
8276 * xdisp.c (try_scrolling): Compute the limit for searching point
8277 in forward scroll from scroll_max, instead of an arbitrary limit
8278 of 10 screen lines.
8279 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
8280 and
8281 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8282 for details.
8283
8284 2010-06-16 Glenn Morris <rgm@gnu.org>
8285
8286 * editfns.c (Fbyte_to_string): Pacify compiler.
8287
8288 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8289
8290 * lread.c (read1): Phase out old-style backquotes a bit more.
8291
8292 2010-06-12 Eli Zaretskii <eliz@gnu.org>
8293
8294 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8295 bidimirror.h.
8296
8297 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8298
8299 * bidi.c (bidi_initialize): Remove explicit initialization of
8300 bidi_type_table; include biditype.h instead. Don't support
8301 entries whose second codepoint is zero. Initialize bidi_mirror_table.
8302 (bidi_mirror_char): Use bidi_mirror_table.
8303
8304 * biditype.h: New file.
8305
8306 * bidimirror.h: New file.
8307
8308 * window.c (syms_of_window): Doc fix (bug#6409).
8309
8310 2010-06-12 Romain Francoise <romain@orebokech.com>
8311
8312 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8313 ediff-hook.
8314
8315 2010-06-10 Glenn Morris <rgm@gnu.org>
8316
8317 * editfns.c (Fbyte_to_string): Pacify compiler.
8318
8319 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8320
8321 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8322
8323 * alloc.c (Fmake_byte_code): Don't access undefined argument
8324 (Bug#6517).
8325
8326 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
8327
8328 * xdisp.c (next_element_from_image): Ensure that after-strings are
8329 read the next time we hit handle_stop (Bug#1336).
8330
8331 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8332
8333 * lread.c (read1): Signal error if #s is not followed by paren.
8334
8335 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
8336
8337 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8338
8339 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8340
8341 2010-06-15 Glenn Morris <rgm@gnu.org>
8342
8343 * editfns.c (Fbyte_to_string): Pacify compiler.
8344
8345 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8346
8347 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8348 Check `object's type before accessing its guts.
8349
8350 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8351
8352 * s/usg5-4.h: Fix previous change.
8353 Suggested by Lawrence Mitchell <wence@gmx.li>
8354
8355 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8356
8357 * minibuf.c (Fall_completions): Add more checks.
8358
8359 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
8360
8361 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8362
8363 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8364
8365 * lread.c (X_OK): Remove, unused.
8366
8367 * dispnew.c: Remove obsolete comment.
8368
8369 Remove INCLUDED_FCNTL.
8370 * xterm.c (INCLUDED_FCNTL):
8371 * callproc.c (INCLUDED_FCNTL):
8372 * alloc.c (INCLUDED_FCNTL):
8373 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8374 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8375
8376 2010-06-07 Martin Rudalics <rudalics@gmx.at>
8377
8378 * window.c (Fselect_window): Move `record_buffer' up to the
8379 beginning of this function, so the buffer gets recorded
8380 even if the selected window does not change.
8381 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8382
8383 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
8384
8385 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8386 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8387
8388 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8389
8390 Remove BSTRING related code, all platforms define it.
8391 * s/usg5-4.h (BSTRING): Remove definition.
8392 * s/template.h (BSTRING):
8393 * s/msdos.h (BSTRING):
8394 * s/ms-w32.h (BSTRING):
8395 * s/hpux10-20.h (BSTRING):
8396 * s/gnu-linux.h (BSTRING):
8397 * s/darwin.h (BSTRING):
8398 * s/cygwin.h (BSTRING):
8399 * s/bsd-common.h (BSTRING):
8400 * s/aix4-2.h (BSTRING): Likewise.
8401 * sysdep.c: Remove code depending on BSTRING not being defined.
8402
8403 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
8404
8405 Remove obsolete macro BASE_LEADING_CODE_P.
8406 * character.h (BASE_LEADING_CODE_P): Remove.
8407 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8408 * buffer.c (Fset_buffer_multibyte):
8409 * indent.c (scan_for_column, compute_motion):
8410 * insdel.c (count_combining_before, count_combining_after):
8411 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8412
8413 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
8414
8415 Turn `directory-sep-char' into a noop.
8416
8417 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8418 (DIRECTORY_SEP): Define unconditionally.
8419
8420 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8421
8422 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8423 call dostounix_filename directly.
8424
8425 * fileio.c (CORRECT_DIR_SEPS): Remove.
8426 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8427 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8428 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8429 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8430
8431 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8432 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8433
8434 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8435
8436 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8437 (Bug#6346)
8438
8439 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8440
8441 * ccl.c (Fccl_program_p): Fix typo in docstring.
8442
8443 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8444
8445 Move UNEXEC definition to autoconf.
8446 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8447 * s/sol2-10.h (UNEXEC):
8448 * s/irix6-5.h (UNEXEC):
8449 * s/hpux10-20.h (UNEXEC):
8450 * s/gnu-linux.h (UNEXEC):
8451 * s/darwin.h (UNEXEC):
8452 * s/cygwin.h (UNEXEC):
8453 * s/bsd-common.h (UNEXEC):
8454 * s/aix4-2.h (UNEXEC):
8455 * m/alpha.h (UNEXEC): Likewise.
8456 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8457
8458 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8459
8460 Remove obsolete pre-unicode2 macros.
8461 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8462 * composite.c (composition_reseat_it):
8463 * data.c (Faset):
8464 * fns.c (Ffillarray):
8465 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8466 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8467
8468 2010-06-03 Juri Linkov <juri@jurta.org>
8469
8470 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8471 (Fswitch_to_buffer): Remove unused variable `err'.
8472
8473 2010-06-03 Glenn Morris <rgm@gnu.org>
8474
8475 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8476
8477 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8478 now that AH_BOTTOM does it.
8479
8480 * m/hp800.h (HAVE_ALLOCA):
8481 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8482
8483 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8484 Remove NOT_C_CODE tests, it is always true now.
8485
8486 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8487
8488 Fix config.h includes.
8489 * xsettings.c:
8490 * xgselect.c:
8491 * nsterm.m:
8492 * nsselect.m:
8493 * nsimage.m:
8494 * nsfont.m:
8495 * nsfns.m:
8496 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8497 other files do.
8498
8499 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8500
8501 * s/sol2-6.h: Remove obsolete comments.
8502
8503 Remove unnecessary alloca.h includes.
8504 * keymap.c: Do not include alloca.h, config.h does that.
8505 * sysdep.c: Likewise. Do not define fwrite, not used.
8506
8507 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8508
8509 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8510 the HAVE_TERMIO where it belongs (bug#6149).
8511
8512 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8513
8514 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8515 of bug#6305).
8516
8517 2010-05-30 Eli Zaretskii <eliz@gnu.org>
8518
8519 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8520 state is always cached (bug#6306).
8521
8522 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8523
8524 Fix cursor motion in bidi-reordered continued lines.
8525 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8526 only after finding point's row. Fix the logic. Rewrite the loop
8527 over continuation lines in bidi-reordered buffers.
8528 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8529 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8530
8531 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
8532
8533 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8534
8535 2010-05-28 Kenichi Handa <handa@m17n.org>
8536
8537 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8538 Don't sheck SPEC if it is nil.
8539 (font_list_entities): Call font_delete_unmatched if
8540 Vface_ignored_fonts is non-nil. (Bug#6287)
8541
8542 2010-05-28 Glenn Morris <rgm@gnu.org>
8543
8544 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8545
8546 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8547
8548 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8549 whether to trash.
8550 (internal_delete_file, Frename_file): Callers changed.
8551 (delete_by_moving_to_trash): Doc fix.
8552 (Fdelete_directory_internal): Don't move to trash.
8553
8554 * callproc.c (delete_temp_file):
8555 * buffer.c (Fkill_buffer): Callers changed.
8556
8557 * lisp.h: Update prototype.
8558
8559 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8560
8561 * xdisp.c (redisplay_window): After redisplay, check if point is
8562 still valid before setting it (Bug#6177).
8563
8564 2010-05-27 Glenn Morris <rgm@gnu.org>
8565
8566 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8567 Convert comments to Makefile format.
8568
8569 * Makefile.in (bootstrap-clean): No more Makefile.c.
8570
8571 2010-05-26 Glenn Morris <rgm@gnu.org>
8572
8573 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8574 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8575
8576 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8577 Remove.
8578 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8579
8580 2010-05-26 Kenichi Handa <handa@m17n.org>
8581
8582 * composite.c (composition_compute_stop_pos): Fix condition for
8583 backward scanning.
8584
8585 2010-05-25 Glenn Morris <rgm@gnu.org>
8586
8587 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8588 Move before TEMACS_LDFLAGS.
8589 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8590 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8591
8592 * Makefile.in (NOT_C_CODE): No longer define.
8593 (config.h): No longer include.
8594
8595 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8596 variables it may reference.
8597
8598 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8599 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8600
8601 2010-05-25 Kenichi Handa <handa@m17n.org>
8602
8603 * dispextern.h (struct composition_it): New members rule_idx and
8604 charpos.
8605
8606 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8607 that the character positions of IT point the last character of the
8608 current grapheme cluster.
8609 (next_element_from_composition): Don't change character positions
8610 of IT.
8611 (append_composite_glyph): Set glyph->charpos to
8612 it->cmp_it.charpos.
8613
8614 * composite.c (autocmp_chars): Change the first argument to RULE,
8615 and try composition with RULE only.
8616 (composition_compute_stop_pos): Record the index number of the
8617 composition rule in CMP_IT->rule_idx.
8618 (composition_reseat_it): Call autocmp_chars repeatedly until the
8619 correct rule of the composition is found.
8620 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8621 is at the last character of the current grapheme cluster when
8622 CMP_IT->reversed_p is nonzero.
8623
8624 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8625
8626 * editfns.c (Fbyte_to_string): New function.
8627
8628 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8629
8630 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8631 Suggested by Masatake YAMATO <yamato@redhat.com>.
8632
8633 2010-05-23 Eli Zaretskii <eliz@gnu.org>
8634
8635 * dispextern.h (init_iterator): Sync prototype with changed definition.
8636
8637 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8638
8639 * s/netbsd.h: If terminfo is found, use it in preference to
8640 termcap. (Bug#6190) [Backport from trunk]
8641
8642 2010-05-19 Eli Zaretskii <eliz@gnu.org>
8643
8644 Redesign and reimplement bidi-aware edge positions of glyph rows.
8645
8646 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8647 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8648 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8649 and maxpos members instead of start.pos and end.pos, respectively.
8650
8651 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8652 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8653 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
8654 (try_window_reusing_current_matrix, try_window_id):
8655 Use ROW->minpos rather than ROW->start.pos.
8656 (init_from_display_pos, init_iterator): Use EMACS_INT for
8657 character and byte positions.
8658 (find_row_edges): Rename from find_row_end. Accept additional
8659 arguments for minimum and maximum buffer positions seen by
8660 display_line for this row. Don't use iterator to find the
8661 position following the maximum one; instead, increment the
8662 position found by display_line directly. Fix logic; eol_pos
8663 should be tested before the rest. Handle the case of characters
8664 delivered from display vector (bug#6036). Fix tests related to
8665 it->method. Handle the truncated_on_right_p rows.
8666 (RECORD_MAX_MIN_POS): New macro.
8667 (display_line): Use it to record the minimum and maximum buffer
8668 positions for glyphs in the row being assembled. Record the
8669 position of the newline that terminates the line. If word wrap is
8670 in effect, restore minimum and maximum positions seen up to the
8671 wrap point, when iterator returns to it.
8672 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8673 row and cursor not already at point. Restore original pre-bidi
8674 code for unidirectional buffers.
8675
8676 * dispnew.c (increment_row_positions, check_matrix_invariants):
8677 Increment and check row->start.pos and row->end.pos, in addition
8678 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8679
8680 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8681 Display truncated_on_left_p and truncated_on_right_p flags.
8682 Formatting fixes.
8683 (pmtxrows): Display the ordinal number of each row. Don't display
8684 rows beyond the last one.
8685
8686 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8687 it is not copied by bidi_copy_it.
8688
8689 2010-05-22 Eli Zaretskii <eliz@gnu.org>
8690
8691 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8692 (Bug#6237)
8693
8694 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
8695
8696 * image.c (Fimage_flush): Rename from image-refresh.
8697
8698 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
8699
8700 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8701 just one window.
8702
8703 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8704 (clear_image_cache): If the number of cached images is unusually
8705 large, decrease the cache eviction delay (Bug#6230).
8706
8707 2010-05-21 Glenn Morris <rgm@gnu.org>
8708
8709 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8710 Move these rules to ns.mk.
8711 * ns.mk: New file.
8712
8713 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8714
8715 * Makefile.in (CANNOT_DUMP): New, set by configure.
8716 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8717
8718 2010-05-20 Juri Linkov <juri@jurta.org>
8719
8720 * fileio.c (Fdelete_file): Change interative spec to use
8721 `read-file-name' like in `find-file-read-args' where the default
8722 value is `default-directory' instead of `buffer-file-name'.
8723 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8724
8725 2010-05-20 Kevin Ryde <user42@zip.com.au>
8726
8727 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8728 (Voverriding_terminal_local_map, Vsystem_key_alist)
8729 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8730
8731 2010-05-20 Glenn Morris <rgm@gnu.org>
8732
8733 * Makefile.in (DEPDIR): New constant.
8734 (DEPFLAGS): Set with configure, not cpp.
8735 (MKDEPDIR): New, set by configure.
8736 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8737 (clean): Use $DEPDIR.
8738 (deps_frag): Include from configure.
8739 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8740 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8741
8742 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8743 Fix reallocation of the cache. (Bug#6210)
8744
8745 2010-05-19 Glenn Morris <rgm@gnu.org>
8746
8747 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8748
8749 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8750 (GNULIB_VAR): Remove.
8751 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8752
8753 * m/ibms390x.h (LINKER):
8754 * m/macppc.h (LINKER) [GNU_LINUX]:
8755 * s/aix4-2.h (ORDINARY_LINK):
8756 * s/cygwin.h (LINKER):
8757 * s/darwin.h (ORDINARY_LINK):
8758 * s/gnu.h (ORDINARY_LINK):
8759 * s/netbsd.h (LINKER):
8760 * s/usg5-4.h (ORDINARY_LINK):
8761 Move to configure.
8762
8763 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8764
8765 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
8766
8767 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8768 prevent stack overflow if number of arguments is too large
8769 (Bug#6214).
8770
8771 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
8772
8773 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8774
8775 2010-05-18 Glenn Morris <rgm@gnu.org>
8776
8777 * s/gnu-linux.h: Combine two conditionals.
8778
8779 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
8780 $(POST_ALLOC_OBJ).
8781
8782 * Makefile.in (RALLOC_OBJ): New, set by configure.
8783 (rallocobj): Replace with the previous variable.
8784 (otherobj): Use $RALLOC_OBJ.
8785
8786 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8787 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8788
8789 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8790 (gmallocobj, vmlimitobj): Replace with previous two variables.
8791 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8792
8793 2010-05-17 Glenn Morris <rgm@gnu.org>
8794
8795 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8796 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8797
8798 2010-05-16 Glenn Morris <rgm@gnu.org>
8799
8800 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8801
8802 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8803
8804 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8805 trailing "/".
8806
8807 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8808 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8809
8810 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8811 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8812 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8813 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8814 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8815
8816 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8817 Remove ${STARTFLAGS}, nothing ever sets it.
8818
8819 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8820
8821 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8822
8823 2010-05-16 Glenn Morris <rgm@gnu.org>
8824
8825 * Makefile.in (LIBX_BASE): Always define.
8826
8827 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8828
8829 * Makefile.in (LIBXT): Always define.
8830
8831 2010-05-15 Glenn Morris <rgm@gnu.org>
8832
8833 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
8834
8835 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8836 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8837
8838 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
8839
8840 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
8841 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8842
8843 * emacs.c (main): Initialize initial-environment and
8844 process-environment before generating from env, not after.
8845
8846 Handle --version reasonably in CANNOT_DUMP configuration.
8847 * emacs.c (emacs_version, emacs_copyright): New string variables.
8848 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8849 (syms_of_emacs): Defvar them, and initialize them from the C
8850 string variables.
8851 (main): If initialization hasn't been done, print initial version
8852 info from the C strings, instead of starting an interactive session.
8853
8854 2010-05-15 Eli Zaretskii <eliz@gnu.org>
8855
8856 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8857 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
8858 (bidi_paragraph_init): Remove redundant assertion that we are at
8859 the beginning of a line after call to bidi_find_paragraph_start.
8860
8861 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8862 (syms_of_xdisp): Defsubr it.
8863
8864 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8865
8866 * Makefile.in: Fix MSDOS-related comments.
8867
8868 2010-05-15 Glenn Morris <rgm@gnu.org>
8869
8870 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8871 (really-lwlib, really-oldXMenu): Always define.
8872 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8873
8874 * Makefile.in: Simplify cpp conditional.
8875
8876 * Makefile.in (${ns_appdir}): Simplify using umask.
8877
8878 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8879
8880 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8881
8882 * eval.c (specbind): Remove left-over duplicate test.
8883 Disallow let-binding frame-local vars. Add comment.
8884
8885 2010-05-14 Eli Zaretskii <eliz@gnu.org>
8886
8887 Make the cache of bidi iterator states dynamically allocated.
8888 * bidi.c (bidi_cache_shrink): New function.
8889 (bidi_init_it): Call it.
8890 (bidi_cache_iterator_state): Enlarge the cache if needed.
8891
8892 * bidi.c (bidi_move_to_visually_next): Rename from
8893 bidi_get_next_char_visually. All callers changed.
8894
8895 2010-05-14 Kenichi Handa <handa@m17n.org>
8896
8897 * dispextern.h (struct composition_it): New member reversed_p.
8898
8899 * composite.c (composition_compute_stop_pos): Search backward if
8900 ENDPOS < CHARPOS.
8901 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8902 Set CMP_IT->reversed_p.
8903 (composition_update_it): Pay attention to CMP_IT->reversed_p.
8904
8905 * xdisp.c (set_iterator_to_next):
8906 Call composition_compute_stop_pos with negative ENDPOS if we are
8907 scanning backward. Call composition_compute_stop_pos if scan
8908 direction is changed.
8909 (next_element_from_buffer): Call composition_compute_stop_pos with
8910 negative ENDPOS if we are scanning backward.
8911 (next_element_from_composition): Pay attention to
8912 IT->cmp_it.reversed_p.
8913
8914 2010-05-14 Kenichi Handa <handa@m17n.org>
8915
8916 * font.c (font_range): Return the range for the font found at first.
8917
8918 2010-05-14 Glenn Morris <rgm@gnu.org>
8919
8920 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8921
8922 * Makefile.in (mktime, X11, register): Move undefs to configure.
8923
8924 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8925 (MSDOS_X_OBJ): New variable.
8926 (MSDOS_SUPPORT_REAL): New constant.
8927 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8928 (obj): Use MSDOS_X_OBJ.
8929 (lisp): Use MSDOS_SUPPORT as a variable.
8930
8931 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8932 (GPM_MOUSE_SUPPORT): Now it's a constant.
8933 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8934 not cpp.
8935
8936 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
8937 (ns_appresdir): Remove, unused.
8938
8939 * Makefile.in (SHELL): Move outside cpp section.
8940
8941 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8942
8943 2010-05-13 Glenn Morris <rgm@gnu.org>
8944
8945 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8946 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8947
8948 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8949 HAVE_WINDOW_SYSTEM must be too.
8950
8951 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8952 (lisp): Remove WINNT_SUPPORT.
8953
8954 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8955 Let configure set these variables (to empty) in this case as well.
8956
8957 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8958 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8959
8960 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8961 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8962 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8963 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8964 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
8965 the values output by configure.
8966 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8967
8968 2010-05-12 Glenn Morris <rgm@gnu.org>
8969
8970 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8971 (LINKER_WAS_SPECIFIED): Remove.
8972
8973 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8974 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8975 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8976 * s/cygwin.h (LIB_GCC):
8977 * s/freebsd.h (LIB_GCC):
8978 * s/gnu-linux.h (LIB_GCC):
8979 * s/msdos.h (LIB_GCC):
8980 * s/netbsd.h (LIB_GCC):
8981 Move to configure.
8982
8983 2010-05-11 Karel Klíč <kklic@redhat.com>
8984
8985 * ftfont.c: Fix incorrect parentheses of #if condition for
8986 definining M17N_FLT_USE_NEW_FEATURE.
8987
8988 2010-05-11 Glenn Morris <rgm@gnu.org>
8989
8990 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8991 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8992
8993 2010-05-10 Eli Zaretskii <eliz@gnu.org>
8994
8995 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8996 unibyte buffers. See
8997 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8998
8999 2010-05-10 Glenn Morris <rgm@gnu.org>
9000
9001 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9002 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9003 (LIBES): Use LIBS_SYSTEM as a variable.
9004 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
9005 * s/aix4-2.h (LIBS_SYSTEM):
9006 * s/freebsd.h (LIBS_SYSTEM):
9007 * s/hpux10-20.h (LIBS_SYSTEM):
9008 * s/sol2-6.h (LIBS_SYSTEM):
9009 * s/unixware.h (LIBS_SYSTEM):
9010 Move to configure.
9011
9012 * s/aix4-2.h (MAIL_USE_LOCKF):
9013 * s/bsd-common.h (MAIL_USE_FLOCK):
9014 * s/darwin.h (MAIL_USE_FLOCK):
9015 * s/gnu-linux.h (MAIL_USE_FLOCK):
9016 * s/irix6-5.h (MAIL_USE_FLOCK):
9017 * s/template.h (MAIL_USE_FLOCK):
9018 Move to configure.
9019
9020 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
9021
9022 * Version 23.2 released.
9023
9024 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
9025
9026 * composite.c (autocmp_chars): Save point as marker before calling
9027 auto-composition-function (Bug#5984).
9028
9029 * lisp.h (restore_point_unwind): Add prototype.
9030
9031 * fileio.c (restore_point_unwind): Remove static attribute.
9032
9033 2010-05-08 Kenichi Handa <handa@m17n.org>
9034
9035 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9036 new feature of libotf and m17n-flt.
9037 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9038 Call OTF_check_features even if no specific feature is given.
9039 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9040 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9041 that OUT is NULL. Use OTF_drive_gsub_with_log and
9042 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9043 OTF_drive_gpos.
9044 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
9045 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9046 Setup mflt_enable_new_feature and mflt_try_otf.
9047
9048 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
9049
9050 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9051
9052 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9053 box and toolbar (Bug #6139).
9054 (xg_create_tool_bar): Remove comment (Bug #6139).
9055 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9056 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9057
9058 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
9059
9060 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9061 Update dependencies.
9062
9063 2010-05-08 Eli Zaretskii <eliz@gnu.org>
9064
9065 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9066 R2L lines.
9067
9068 2010-05-08 Glenn Morris <rgm@gnu.org>
9069
9070 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9071
9072 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9073 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9074 (termcapobj): Replace with TERMCAP_OBJ.
9075 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9076 (LIBES): Use LIBS_TERMCAP as a variable.
9077
9078 * s/freebsd.h (osreldate.h): No longer include, since this file
9079 does not use __FreeBSD_version any more.
9080
9081 * s/aix4-2.h (TERMINFO):
9082 * s/cygwin.h (TERMINFO):
9083 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9084 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9085 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9086 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9087 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9088 * s/irix6-5.h (TERMINFO):
9089 * s/netbsd.h (LIBS_TERMCAP):
9090 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9091 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9092 * s/usg5-4.h (TERMINFO):
9093 Move to configure.
9094
9095 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9096
9097 * eval.c (unbind_to): Don't unbind a local binding into the global
9098 binding when the local binding disappeared. Inversely, don't unbind
9099 a global binding into a newly created local binding.
9100 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9101 can specify the frame to use, when applicable. Adjust callers.
9102
9103 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
9104 Stefan Monnier <monnier@iro.umontreal.ca>
9105
9106 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9107
9108 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9109
9110 * w32fns.c: Include w32.h.
9111 (Fw32_shell_execute): Decode the error message before passing it
9112 to `error'. (Bug#6126)
9113
9114 * msdos.c (dos_set_window_size):
9115 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9116 instead of `XSYMBOL (foo)->value'.
9117
9118 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9119
9120 Fix the MS-DOS build, broken by autoconfiscation.
9121
9122 * Makefile.in: Don't use Make-style comments past the "start of
9123 cpp stuff" line.
9124 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9125
9126 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9127 edited directly by msdos/sed1v2.inp).
9128
9129 2010-05-07 Glenn Morris <rgm@gnu.org>
9130
9131 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9132 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9133 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9134 move out of cpp section.
9135 * s/freebsd.h (LD_SWITCH_SYSTEM):
9136 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9137 * s/netbsd.h (LD_SWITCH_SYSTEM):
9138 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9139
9140 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9141
9142 Define LIB_STANDARD and START_FILES using autoconf.
9143 * s/usg5-4.h (LIB_STANDARD):
9144 * s/netbsd.h (START_FILES):
9145 * s/irix6-5.h (LIB_STANDARD):
9146 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9147 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9148 * s/freebsd.h (START_FILES):
9149 * s/darwin.h (START_FILES):
9150 * s/cygwin.h (START_FILES):
9151 * s/aix4-2.h (LIB_STANDARD):
9152 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9153 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9154 autoconf, not cpp.
9155
9156 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9157
9158 Remove NEED_BSDTTY and NEED_UNISTD_H.
9159 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9160 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9161 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9162 <sys/ptyio.h> and <unistd.h>.
9163
9164 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9165
9166 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9167 * s/gnu.h (START_FILES): Remove empty definition.
9168
9169 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9170
9171 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9172
9173 2010-05-06 Glenn Morris <rgm@gnu.org>
9174
9175 * Makefile.in (CPP, LN_S): Remove unused variables.
9176
9177 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9178
9179 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9180
9181 2010-05-05 Lawrence Mitchell <wence@gmx.li>
9182
9183 * m/sparc.h: Fix typo in earlier change.
9184
9185 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9186
9187 Misc tweaks.
9188 * eval.c (Fdefvaralias): Remove unintended nested if.
9189 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9190
9191 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
9192
9193 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9194
9195 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9196
9197 Remove BSD_PGRPS.
9198 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9199 * s/gnu-linux.h (BSD_PGRPS): Remove.
9200 * term.c (dissociate_if_controlling_tty):
9201 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9202 (init_sys_modes, reset_sys_modes):
9203 * emacs.c (main):
9204 * callproc.c (Fcall_process, child_setup): Remove code depending
9205 on BSD_PGRPS.
9206
9207 Remove POSIX_SIGNALS.
9208 * s/usg5-4.h (POSIX_SIGNALS):
9209 * s/netbsd.h (POSIX_SIGNALS):
9210 * s/msdos.h (POSIX_SIGNALS):
9211 * s/ms-w32.h (POSIX_SIGNALS):
9212 * s/hpux11.h (POSIX_SIGNALS):
9213 * s/gnu.h (POSIX_SIGNALS):
9214 * s/gnu-linux.h (POSIX_SIGNALS):
9215 * s/freebsd.h (POSIX_SIGNALS):
9216 * s/darwin.h (POSIX_SIGNALS):
9217 * s/cygwin.h (POSIX_SIGNALS):
9218 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9219 * s/unixware.h:
9220 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9221 * process.c (create_process):
9222 * syssignal.h:
9223 * sysdep.c (wait_for_termination, init_signals):
9224 * process.c (create_process):
9225 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9226 remove all code that assumes the contrary.
9227
9228 2010-05-04 Glenn Morris <rgm@gnu.org>
9229
9230 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9231 variable.
9232 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9233 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9234 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9235 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9236 LD_SWITCH_SYSTEM_tmp.
9237 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9238 New variables, set by configure.
9239
9240 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9241 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9242 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9243 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9244 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9245
9246 * s/aix4-2.h (C_SWITCH_SYSTEM):
9247 * m/alpha.h (C_SWITCH_MACHINE):
9248 Move to configure.in.
9249 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9250 New variables, set by configure.
9251 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9252 $c_switch_machine and $c_switch_system.
9253
9254 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9255
9256 * s/hpux10-20.h (LIB_STANDARD): New definition.
9257 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9258 on it, not used anymore.
9259
9260 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
9261
9262 * eval.c (internal_condition_case_n): Rename from
9263 internal_condition_case_2.
9264 (internal_condition_case_2): New function.
9265
9266 * xdisp.c (safe_call): Use internal_condition_case_n.
9267
9268 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9269 (internal_delete_file, Frename_file): Callers changed.
9270
9271 * buffer.c (Fkill_buffer):
9272 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9273
9274 * lisp.h: Update prototypes.
9275
9276 2010-05-03 Glenn Morris <rgm@gnu.org>
9277
9278 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9279 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9280 (LIBXT): Set with configure, not cpp.
9281 (LIBX): Remove.
9282 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9283
9284 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9285
9286 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9287 The FreeBSD is not needed, the default works, Solaris version is
9288 not needed, and the remaining case is not supported by configure.
9289
9290 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9291
9292 * xsmfns.c (CHDIR_OPT): New define.
9293 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9294 restarting emacs.
9295
9296 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9297 shut_down_emacs.
9298
9299 * emacs.c (USAGE1): Mention --chdir.
9300 (main): Handle --chdir.
9301 (standard_args): Add --chdir.
9302 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9303 #5552).
9304
9305 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9306
9307 Remove LD_SWITCH_MACHINE.
9308 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9309 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9310
9311 Clean up IRIX code.
9312 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9313 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9314
9315 Clean up AIX code.
9316 * m/ibmrs6000.inp: Remove file, unused.
9317 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9318 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9319 definition ...
9320 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9321
9322 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9323 unused.
9324
9325 2010-05-01 Eli Zaretskii <eliz@gnu.org>
9326
9327 Emulate POSIX_SIGNALS on MS-Windows.
9328
9329 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9330 (SIG_SETMASK, SIG_UNBLOCK): Define.
9331
9332 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9333 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9334 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9335
9336 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9337 New stubs.
9338
9339 Miscellaneous fixes of bidi display.
9340
9341 * xdisp.c (find_row_end): New function, refactored from display_line.
9342 (display_line): Use it.
9343 (extend_face_to_end_of_line): In almost-filled rows, extend only
9344 if the row is R2L and not continued.
9345 (display_line): Fix prepending of truncation glyphs to R2L rows.
9346 Preserve overlay and string info in row->end.
9347 (insert_left_trunc_glyphs): Support addition of left truncation
9348 glyphs to R2L rows.
9349 (set_cursor_from_row): Don't place cursor on the vertical border
9350 glyph between adjacent windows. Fix a crash when a display string
9351 is continued to the next line. Don't return zero if cursor was
9352 found by `cursor' property of a display string.
9353 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9354 test for that explicitly.
9355
9356 2010-05-01 Glenn Morris <rgm@gnu.org>
9357
9358 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9359 for clarity.
9360 (OTHER_OBJ): Remove.
9361 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9362 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9363
9364 2010-05-01 Karel Klíč <kklic@redhat.com>
9365
9366 * fileio.c (Ffile_selinux_context): Context functions may return null.
9367
9368 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9369
9370 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
9371
9372 2010-04-30 Glenn Morris <rgm@gnu.org>
9373
9374 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9375 (OTHER_OBJ): Define as a separate variable, for clarity.
9376
9377 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9378
9379 * xsettings.c: Include limits.h and update file comment.
9380
9381 2010-04-30 Glenn Morris <rgm@gnu.org>
9382
9383 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9384 Set with configure, not cpp.
9385 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9386
9387 * Makefile.in (mallocobj): Remove.
9388 (otherobj): Simplify using @OTHER_OBJ@.
9389
9390 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9391 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9392 Don't bother making nsgui.h dependency platform-specific.
9393
9394 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9395
9396 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9397
9398 * process.c (read_process_output, exec_sentinel): Don't burp if the
9399 sentinel/filter kills the current buffer (bug#6060).
9400
9401 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
9402 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9403 Remove unused var `args'.
9404 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9405 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9406 * doc.c (store_function_docstring): Use XSETCAR.
9407
9408 2010-04-28 Glenn Morris <rgm@gnu.org>
9409
9410 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9411 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9412
9413 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9414
9415 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9416 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9417
9418 * Makefile.in (FONT_OBJ): New, set by configure.
9419 (FONT_DRIVERS): Use $FONT_OBJ.
9420
9421 * Makefile.in (LIBXMU): Set with configure, not cpp.
9422 * s/aix4-2.h (LIBXMU):
9423 * s/hpux10-20.h (LIBXMU):
9424 Remove definition, now set in configure.
9425
9426 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9427
9428 * m/amdx86-64.h [i386]: Move this test to configure.in.
9429
9430 2010-04-27 Glenn Morris <rgm@gnu.org>
9431
9432 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9433 * s/unixware.h (NEED_LIBW): Remove definition.
9434
9435 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9436 (TOOLKIT_LIBW): New, set by configure.
9437 (@X_TOOLKIT_TYPE@): No longer define it.
9438
9439 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9440 (MOTIF_LIBW): Set with configure, not cpp.
9441 * s/aix4-2.h (LIB_MOTIF):
9442 * s/gnu-linux.h (LIB_MOTIF):
9443 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9444
9445 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9446
9447 Reduce CPP usage.
9448 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9449 (obj): Use autoconf for unexec instead of cpp.
9450 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9451 Remove definitions and undefs. Inline definitions in the only user.
9452 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
9453
9454 2010-04-27 Glenn Morris <rgm@gnu.org>
9455
9456 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9457 since the defaults (set by the system file) are fine in most cases.
9458 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9459 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9460 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9461 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9462 Remove definitions, since they are set correctly in s/gnu-linux.h.
9463 * s/freebsd.h (START_FILES, LIB_STANDARD):
9464 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9465 * s/hpux10-20.h (START_FILES):
9466 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9467 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9468
9469 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9470 (MOTIF_LIBW): Use $LIBXP.
9471 (otherobj): Use $WIDGET_OBJ.
9472
9473 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9474
9475 * Makefile.in (LIBS_MACHINE): Remove, unused.
9476
9477 Use autoconf instead of cpp for LIB_MATH.
9478 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9479 * s/cygwin.h (LIB_MATH): Likewise.
9480 * Makefile.in (LIB_MATH): Do not define with cpp.
9481 (LIBES): Use autoconf for LIB_MATH.
9482
9483 2010-04-26 Kenichi Handa <handa@m17n.org>
9484
9485 * composite.c (Ffind_composition_internal): Fix the return value
9486 for an automatic composition.
9487
9488 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9489
9490 Remove all NO_ARG_ARRAY uses.
9491 * fns.c (concat2, concat3, nconc2):
9492 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9493 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9494 * m/xtensa.h (NO_ARG_ARRAY):
9495 * m/template.h (NO_ARG_ARRAY):
9496 * m/sparc.h (NO_ARG_ARRAY):
9497 * m/sh3.h (NO_ARG_ARRAY):
9498 * m/mips.h (NO_ARG_ARRAY):
9499 * m/macppc.h (NO_ARG_ARRAY):
9500 * m/iris4d.h (NO_ARG_ARRAY):
9501 * m/intel386.h (NO_ARG_ARRAY):
9502 * m/ibms390x.h (NO_ARG_ARRAY):
9503 * m/ibms390.h (NO_ARG_ARRAY):
9504 * m/ibmrs6000.h (NO_ARG_ARRAY):
9505 * m/ia64.h (NO_ARG_ARRAY):
9506 * m/hp800.h (NO_ARG_ARRAY):
9507 * m/arm.h (NO_ARG_ARRAY):
9508 * m/amdx86-64.h (NO_ARG_ARRAY):
9509 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9510
9511 2010-04-25 Eli Zaretskii <eliz@gnu.org>
9512
9513 * xdisp.c (display_line): Don't assume 2nd call to
9514 get_next_display_element cannot return zero. (Bug#6030)
9515 (iterate_out_of_display_property): New function, body from pop_it.
9516 (pop_it): Use it.
9517
9518 2010-04-24 Glenn Morris <rgm@gnu.org>
9519
9520 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9521 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9522 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9523 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9524
9525 2010-04-24 Eli Zaretskii <eliz@gnu.org>
9526
9527 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9528 use `get_next_display_element' and `set_iterator_to_next' to
9529 advance to the next character, when looking for the character that
9530 begins the next row.
9531
9532 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9533 definition of "struct Lisp_Symbol".
9534
9535 2010-04-24 Glenn Morris <rgm@gnu.org>
9536
9537 * Makefile.in (CRT_DIR): New variable, set by configure.
9538 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9539 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9540
9541 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9542
9543 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9544
9545 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9546
9547 Remove redundant flags.
9548 * s/freebsd.h (C_SWITCH_SYSTEM):
9549 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9550 * s/netbsd.h (C_SWITCH_SYSTEM):
9551 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9552 of these.
9553
9554 Simplify m/intel386.h.
9555 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9556 user: ecrt0.c.
9557 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9558 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9559 the only user: s/unixware.h.
9560 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9561 from m/intel386.h.
9562 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9563 Definitions moved here from m/intel386.h.
9564
9565 * m/mips.h: Remove #if 0 code.
9566
9567 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9568
9569 Fix display of composed characters from L2R scripts in bidi buffers.
9570 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9571 After advancing IT past the composition, resync the bidi iterator
9572 with IT's position. (Bug#5977)
9573
9574 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9575
9576 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9577 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9578
9579 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9580
9581 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9582
9583 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9584
9585 Support `display' text properties and overlay strings in bidi buffers.
9586 * xdisp.c (pop_it): When the stack is popped after displaying
9587 from a string, bidi-iterate to exit from the text portion covered
9588 by the `display' property or overlay. (Bug#5988, bug#5920)
9589
9590 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9591
9592 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9593 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9594
9595 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9596 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9597
9598 Simplify STARTFILES definition.
9599 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9600 relying on Makefile.in to define it.
9601 * s/cygwin.h (START_FILES): Likewise.
9602 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9603
9604 Clean up Solaris code.
9605 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9606 (LIB_MOTIF): Remove, configure takes care of this.
9607 (NOT_USING_MOTIF): Remove, unused.
9608 * xrdb.c: Remove #if 0-ed #include.
9609 (SYSV): Remove conditional for old SysV.
9610 * sysdep.c (closedir): Remove conditional code for Solaris,
9611 Solaris has closedir.
9612
9613 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9614
9615 * xsettings.c (read_and_apply_settings): Check if current_font is
9616 NULL before strcmp (Bug#6001).
9617
9618 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9619
9620 Clean up HP-UX files.
9621 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9622 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9623 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9624 * s/hpux10-20.h: ... to the only user, here.
9625
9626 2010-04-21 Eli Zaretskii <eliz@gnu.org>
9627
9628 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9629 use buffer-local values of paragraph-start and paragraph-separate.
9630 <paragraph_start_re, paragraph_separate_re>: Rename from
9631 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9632 (Bug#5992)
9633
9634 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9635
9636 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9637 current_tool_bar_style are new.
9638 (store_config_changed_event): Rename from store_font_changed_event.
9639 (XSETTINGS_TOOL_BAR_STYLE): New define.
9640 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9641 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9642 HAVE_XFT.
9643 (something_changedCB): store_font_changed_event is now
9644 store_config_changed_event.
9645 (parse_settings): Rename from parse_xft_settings.
9646 Read non-xft xsettings outside #ifdef HAVE_XFT.
9647 (read_settings): Rename from read_xft_settings.
9648 (apply_xft_settings): Take current settings as parameter. Do not
9649 call read_(xft)_settings.
9650 (read_and_apply_settings): New function.
9651 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9652 Call read_and_apply_settings if there are settings to be read.
9653 (init_xsettings): Rename from init_xfd_settings.
9654 Call read_and_apply_settings unconditionally.
9655 (xsettings_initialize): Call init_xsettings.
9656 (Ftool_bar_get_system_style): New function.
9657 (syms_of_xsettings): Define Qmonospace_font_name and
9658 Qtool_bar_style. Initialize current_tool_bar_style to nil.
9659 defsubr Stool_bar_get_system_style. Fprovide on
9660 dynamic-setting.
9661 Move misplaced HAVE_GCONF.
9662
9663 * xsettings.h (Ftool_bar_get_system_style): Declare.
9664
9665 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9666 Qtext, Qboth, Qboth_horiz are new.
9667 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9668 Vtool_bar_style, tool_bar_max_label_size.
9669
9670 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9671
9672 * keyboard.c: QClabel is new.
9673 (parse_tool_bar_item): Take out QClabel from tool bar items.
9674 Try to construct a label if ther is no QClabel.
9675 (syms_of_keyboard): Intern :label as QClabel.
9676
9677 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9678 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9679 New.
9680
9681 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9682 dynamic-setting.el.
9683
9684 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9685 (xg_make_tool_item, xg_show_toolbar_item): New function.
9686 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9687 Call xg_make_tool_item to make a tool bar item.
9688 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9689
9690 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9691 into account for toolbars.
9692
9693 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9694
9695 * data.c (make_blv): Declarations before code (Bug#5993).
9696
9697 2010-04-21 Glenn Morris <rgm@gnu.org>
9698
9699 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9700 Define using autoconf, not cpp.
9701 (LIBXSM): New variable, set by autoconf.
9702 (LIBXT): Use $LIBXSM.
9703
9704 2010-04-21 Dan Nicolaescu <local_user@dannlt>
9705
9706 Remove NOMULTIPLEJOBS, unused.
9707 * s/template.h (NOMULTIPLEJOBS):
9708 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9709
9710 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9711 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9712 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9713 detects -znocombreloc and passes it to the linker
9714 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9715
9716 2010-04-21 Glenn Morris <rgm@gnu.org>
9717
9718 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9719
9720 2010-04-21 Karel Klíč <kklic@redhat.com>
9721
9722 * Makefile.in (LIBSELINUX_LIBS): New.
9723 (LIBES): Add $LIBSELINUX_LIBS.
9724 * eval.c, lisp.h (call7): New function.
9725 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9726 (Ffile_selinux_context, Fset_file_selinux_context):
9727 New functions.
9728 (Fcopy_file): New parameter preserve-selinux-context.
9729 (Frename_file): Preserve selinux context when renaming by copy-file.
9730
9731 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
9732 Eli Zaretskii <eliz@gnu.org>
9733
9734 Don't depend on cm.c or termcap.c on Windows, use stubs.
9735 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9736 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9737 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9738 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9739 (sys_tputs, sys_tgetstr): New stubs.
9740 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9741 (tputs, tgetstr): New; define to sys_*.
9742
9743 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
9744
9745 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9746
9747 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9748
9749 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9750 Just signal a warning rather than an error when inside a let.
9751 (Fmake_variable_frame_local): Add the same test.
9752
9753 * font.c (syms_of_font): Make the style table vars read-only.
9754
9755 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9756 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9757
9758 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9759
9760 2010-04-20 Eli Zaretskii <eliz@gnu.org>
9761
9762 Fix R2L paragraph display on TTY.
9763
9764 * xdisp.c (unproduce_glyphs): New function.
9765 (display_line): Use it when produced glyphs are discarded from R2L
9766 glyph rows.
9767 (append_composite_glyph): In R2L rows, prepend the glyph rather
9768 than appending it.
9769
9770 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9771 rather than append it. Set up the resolved_level and bidi_type
9772 attributes of the appended glyph.
9773 (produce_special_glyphs): Mirror the backslash continuation
9774 character in R2L lines.
9775
9776 Implement display of R2L paragraphs in GUI sessions.
9777
9778 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9779 append_stretch_glyph.
9780 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9781 Fix off-by-one error in computing x at end of text in the row.
9782 (append_stretch_glyph): In reversed row, prepend the glyph rather
9783 than append it. Set resolved_level and bidi_type of the glyph.
9784 (extend_face_to_end_of_line): If the row is reversed, prepend a
9785 stretch glyph whose width is such that the rightmost glyph will be
9786 drawn at the right margin of the window. Fix off-by-one error on
9787 TTY frames in testing whether a line needs face extension.
9788 Fix face extension at ZV. If this is the last glyph row, use
9789 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9790 region face.
9791 (set_cursor_from_row, display_line):
9792 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
9793 row->continuation_lines_width.
9794 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9795 are at ZV. Fixes a crash when reseated to ZV by
9796 try_window_reusing_current_matrix.
9797 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9798 which happens with R2L glyph rows. Fixes a crash when inserting a
9799 character at end of an R2L line.
9800 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9801 treat them as having zero-width characters. Improve comments.
9802 Don't reverse pos_before and pos_after for reversed glyph rows.
9803 Set cursor.x to negative value when the cursor might be on the
9804 left fringe.
9805 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9806 left fringe, not the right one.
9807 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9808 (erase_phys_cursor): For reversed cursor_row, support cursor on
9809 the left fringe.
9810
9811 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9812 of continuation indicators on the fringes.
9813 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9814 left fringe.
9815
9816 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9817 draw cursor on the left fringe.
9818
9819 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9820 cursor on the left fringe.
9821
9822 * dispnew.c (update_text_area): Handle reversed desired rows when
9823 the cursor is on the left fringe.
9824 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9825 below, not by 0, for when the cursor is on the left fringe.
9826
9827 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9828
9829 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9830 widget is a scrollbar.
9831
9832 2010-04-20 Kenichi Handa <handa@m17n.org>
9833
9834 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9835 only when the arg CHARSET_LIST is nil.
9836
9837 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9838
9839 Make variable forwarding explicit rather the using special values.
9840 Basically, this makes the structure of buffer-local values and object
9841 forwarding explicit in the type of Lisp_Symbols rather than use
9842 special Lisp_Objects for that. This tends to lead to slightly more
9843 verbose code, but is more C-like, simpler, and makes it easier to make
9844 sure we handled all cases, among other things by letting the compiler
9845 help us check it.
9846 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9847 Removing forwarding objects.
9848 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9849 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9850 explicit rather than hiding them inside Lisp_Object "values".
9851 (XFWDTYPE): New macro.
9852 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9853 (XBUFFER_LOCAL_VALUE): Remove.
9854 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9855 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9856 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9857 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9858 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9859 Remove the Lisp_Misc_* header.
9860 (struct Lisp_Buffer_Local_Value): Redefine.
9861 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9862 (struct Lisp_Misc_Any): Add filler to get the right size.
9863 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9864 Lisp_Intfwd.
9865 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9866 (DEFVAR_KBOARD): Allocate a forwarding object.
9867 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9868 (let_shadows_global_binding_p): New function.
9869 (union Lisp_Val_Fwd): New type.
9870 (make_blv): New function.
9871 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9872 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9873 (swap_in_symval_forwarding, find_symbol_value, Fset)
9874 (let_shadows_buffer_binding_p, set_internal, default_value)
9875 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9876 (Fkill_local_variable, Fmake_variable_frame_local)
9877 (Flocal_variable_p, Flocal_variable_if_set_p)
9878 (Fvariable_binding_locus):
9879 * xdisp.c (select_frame_for_redisplay):
9880 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9881 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9882 * frame.c (store_frame_param):
9883 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9884 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9885 value structure.
9886 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9887 (clone_per_buffer_values): Only adjust markers into the current buffer.
9888 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9889 (Fbuffer_local_value, set_buffer_internal_1)
9890 (swap_out_buffer_local_variables):
9891 Adapt to the new symbol value structure.
9892 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9893 (defvar_per_buffer): Take a new arg for the fwd object.
9894 (buffer_lisp_local_variables): Return a proper alist (different fix
9895 for bug#4138).
9896 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9897 (Fgarbage_collect): Don't handle buffer_defaults specially.
9898 (mark_object): Handle new symbol value structure rather than the old
9899 special Lisp_Misc_* objects.
9900 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9901 * term.c (set_tty_color_mode):
9902 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9903 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9904 a buffer_local_flags.
9905 * print.c (print_object): Get rid of impossible forwarding objects.
9906
9907 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9908
9909 * bidi.c (bidi_get_type, bidi_get_category)
9910 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
9911 (bidi_type_of_next_char, bidi_level_of_next_char):
9912 Declare static. Use `INLINE' rather than `inline'.
9913
9914 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
9915
9916 * dired.c (Ffile_attributes): Fix typo in docstring.
9917
9918 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9919
9920 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9921 NSInteger (Bug#5811).
9922
9923 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9924
9925 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9926 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9927
9928 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9929
9930 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9931
9932 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
9933
9934 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9935 terminal frames (Bug#5837).
9936
9937 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9938
9939 * .gdbinit (xsubchartable): New command.
9940
9941 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9942
9943 * xdisp.c (display_line): Don't write beyond the last glyph row in
9944 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
9945 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9946 and
9947 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9948
9949 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9950
9951 * alloc.c (Fpurecopy): Hash-cons if requested.
9952 (syms_of_alloc): Update purify-flag docstring.
9953
9954 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9955
9956 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9957 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9958
9959 2010-04-17 Eli Zaretskii <eliz@gnu.org>
9960
9961 Fix a crash when an NSM character is inserted at BEGV.
9962
9963 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9964 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9965 NEUTRAL_B or UNKNOWN_BT.
9966
9967 2010-04-16 Eli Zaretskii <eliz@gnu.org>
9968
9969 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9970 other rows with cursor unless they are different from this row and
9971 this row is part of a continued line. (Bug#5943)
9972
9973 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9974
9975 * s/freebsd.h: Restore osreldate.h include.
9976 Suggested by Naohiro Aota.
9977
9978 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9979
9980 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9981
9982 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9983
9984 * s/cygwin.h: Avoid linking against static libgcc.
9985
9986 2010-04-15 Juri Linkov <juri@jurta.org>
9987
9988 * window.c: Add Qscroll_command.
9989 Remove Vscroll_preserve_screen_position_commands.
9990 (window_scroll_pixel_based, window_scroll_line_based): Check the
9991 `scroll-command' property on the last command instead of searching
9992 the last command in Vscroll_preserve_screen_position_commands.
9993 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9994 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9995 (scroll-preserve-screen-position): Doc fix.
9996 (Vscroll_preserve_screen_position_commands): Remove variable.
9997
9998 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9999
10000 * xdisp.c (message): Do not use NO_ARG_ARRAY.
10001
10002 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
10003
10004 Reduce cpp use in Makefile.in.
10005 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10006 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10007 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10008 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10009 (CRT0_COMPILE): Remove, inline it in the only user.
10010
10011 2010-04-14 Juri Linkov <juri@jurta.org>
10012
10013 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10014 `scroll-up-command' and `M-v' from `scroll-down' to
10015 `scroll-down-command'.
10016
10017 2010-04-14 Juri Linkov <juri@jurta.org>
10018
10019 * window.c (Vscroll_preserve_screen_position_commands): New variable
10020 with the default value as the list of Qscroll_down and Qscroll_up.
10021 (window_scroll_pixel_based, window_scroll_line_based): Search the
10022 last command in the list Vscroll_preserve_screen_position_commands
10023 instead of comparing with Qscroll_up and Qscroll_down.
10024
10025 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
10026
10027 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10028 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10029 does that.
10030
10031 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10032 to zero.
10033
10034 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10035
10036 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10037
10038 Try to solve the problem of spurious EOF chars in long lines of text
10039 sent to interactive subprocesses.
10040 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10041 (system_process_attributes): Remove unused var `ttotal'.
10042 * process.c (send_process): Don't bother breaking long line with EOF
10043 chars when talking to ttys any more.
10044 (wait_reading_process_output): Output a warning when called in such
10045 a way that it could block without being interruptible.
10046
10047 Try to detect file modification within the same second.
10048 * buffer.h (struct buffer): New field modtime_size.
10049 * buffer.c (reset_buffer): Initialize it.
10050 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10051 (Fverify_visited_file_modtime): Check it.
10052 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10053 (Fset_visited_file_modtime): Set (or clear) it.
10054
10055 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10056
10057 * process.c (status_notify): Remove unused var `ro'.
10058
10059 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10060
10061 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10062 more than one visual (Bug#5938).
10063
10064 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10065
10066 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10067 Undefine.
10068
10069 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10070
10071 Remove C_SWITCH_SYSTEM_TEMACS.
10072 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10073 (malloc, realloc, free): Use emacs, not temacs for conditional
10074 definition.
10075
10076 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10077 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10078
10079 Use autoconf, not cpp for some variables.
10080 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10081 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10082 (ALL_CFLAGS): Use them as make variables.
10083 (really-lwlib, really-oldXMenu): Do not pass them.
10084
10085 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10086
10087 * xmenu.c (apply_systemfont_to_dialog): New.
10088 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10089
10090 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10091
10092 * process.c (exec_sentinel): Preserve current-buffer.
10093
10094 * process.c (read_process_output): Move the save-current-buffer to
10095 apply to both the filter and the non-filter branches.
10096
10097 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10098
10099 * s/msdos.h (UNEXEC): New definition.
10100
10101 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10102
10103 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10104 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10105
10106 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10107 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10108 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10109 TRY_WINDOW_CHECK_MARGINS.
10110
10111 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
10112 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10113 width only when it is for padding.
10114
10115 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10116
10117 * xfns.c (Fx_show_tip): Call try_window in a loop until
10118 fonts_changed_p is zero (Bug#2423).
10119
10120 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10121
10122 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10123 the end of TEXT_AREA. (Bug#5856)
10124
10125 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10126
10127 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10128 HAVE_GCONF.
10129
10130 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10131
10132 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10133 prev.orig_type, for resolving type of NSM. (Bug#5858)
10134
10135 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10136
10137 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10138 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10139 in current_font.
10140 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
10141 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10142 New functions.
10143 (syms_of_xsettings): Initialize current_font.
10144 defsubr Sfont_get_system_normal_font.
10145
10146 * xsettings.h (Ffont_get_system_normal_font)
10147 (xsettings_get_system_normal_font): Declare.
10148
10149 * xfns.c (extern xlwmenu_default_font): Remove.
10150 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10151 to xlwmenu.c.
10152
10153 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10154 menu items in UTF-8.
10155
10156 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
10157 (apply_systemfont_to_menu): New function.
10158 (set_frame_menubar, create_and_show_popup_menu):
10159 Call apply_systemfont_to_menu.
10160
10161 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10162
10163 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10164 FRAME_LINE_TO_PIXEL_Y.
10165
10166 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10167 pixelwidth/height.
10168
10169 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10170
10171 Simplify code for HP machines.
10172 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10173 for GNU_LINUX, not needed.
10174 (UNEXEC, NEED_BSDTTY): Move definitions...
10175 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10176
10177 * m/iris4d.h (UNEXEC): Move definition ...
10178 * s/irix6-5.h (UNEXEC): ... here.
10179
10180 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10181
10182 * xfns.c (set_machine_and_pid_properties): New function.
10183 (Fx_create_frame): Call set_machine_and_pid_properties.
10184
10185 2010-04-03 Eli Zaretskii <eliz@gnu.org>
10186
10187 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10188 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
10189 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10190
10191 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10192 in this function. (Bug#5703)
10193
10194 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
10195
10196 * nsterm.h: Fix last change.
10197
10198 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10199
10200 * m/intel386.h (NO_REMAP): Move definition ...
10201 * s/msdos.h (NO_REMAP): ... here.
10202
10203 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10204
10205 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10206 used on those platforms.
10207
10208 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10209
10210 Remove extern errno declarations.
10211 * xterm.c:
10212 * xrdb.c:
10213 * w32term.c:
10214 * unexec.c:
10215 * unexaix.c:
10216 * sysdep.c:
10217 * process.c:
10218 * lread.c:
10219 * keyboard.c:
10220 * floatfns.c:
10221 * filelock.c:
10222 * fileio.c:
10223 * emacs.c (main):
10224 * ecrt0.c:
10225 * dispnew.c:
10226 * callproc.c:
10227 * buffer.c: Remove errno extern declarations.
10228 * s/netbsd.h (NEED_ERRNO): Remove.
10229
10230 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10231
10232 Remove all uses of LIBX11_SYSTEM.
10233 * Makefile.in (LIBX11_SYSTEM): Remove.
10234 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10235 instead.
10236
10237 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10238
10239 Remove support for DJGPP v1.x (bug#5813).
10240
10241 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
10242 * s/msdos.h:
10243 * unexec.c (make_hdr, copy_text_and_data):
10244 * sysdep.c (wait_for_termination, sys_subshell):
10245 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
10246 (IT_set_terminal_modes, __write, _rename, gethostname)
10247 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10248 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10249 the value of __DJGPP__.
10250 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10251 compatibility code.
10252 * lread.c:
10253 * gmalloc.c (memalign):
10254 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10255 * emacs.c (main):
10256 * dosfns.c (init_dosfns):
10257 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10258
10259 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10260
10261 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10262 string with `cursor' property comes from an `after-string'
10263 overlay. (Bug#5816)
10264
10265 2010-04-01 Glenn Morris <rgm@gnu.org>
10266
10267 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10268 Define as Makefile variables.
10269 (LIBX): Use above variables rather than directly using autoconf.
10270
10271 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10272
10273 Clean up BSD_SYSTEM use.
10274 * xterm.c:
10275 * process.c:
10276 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10277 for including <sys/ioctl.h>.
10278 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10279 code is only used for MSDOS.
10280
10281 2010-03-31 Juri Linkov <juri@jurta.org>
10282
10283 * image.c: Add `Qextension_data'.
10284 (syms_of_image): Initialize and staticpro `Qextension_data'.
10285 (Fimage_metadata): Rename from `Fimage_extension_data'.
10286 (gif_load): Put GIF extension data to the property
10287 `Qextension_data'.
10288
10289 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10290
10291 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10292 * nsterm.h: Fix prototype.
10293
10294 2010-03-31 Eli Zaretskii <eliz@gnu.org>
10295
10296 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10297 trailing whitespace in right-to-left rows.
10298
10299 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10300
10301 Get rid of the direct_output optimizations.
10302 * keyboard.c (nonundocount): Remove extern declaration.
10303 (command_loop_1): Remove brittle optimisation for cheap and
10304 common operations.
10305 * xdisp.c (redisplay_internal): Don't bother checking
10306 redisplay_performed_directly_p any more.
10307 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10308 any more.
10309 * dispnew.c (redisplay_performed_directly_p)
10310 (direct_output_for_insert, direct_output_forward_char):
10311 * dispextern.h (redisplay_performed_directly_p)
10312 (direct_output_for_insert, direct_output_forward_char): Remove.
10313 * cmds.c (nonundocount): Make it static.
10314
10315 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
10316
10317 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10318
10319 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
10320
10321 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10322 invisible (Bug#5766).
10323
10324 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
10325
10326 * xdisp.c (x_consider_frame_title, update_window_cursor):
10327 Remove HAVE_NS conditionals.
10328 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
10329
10330 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10331 filename for the title.
10332 (ns_set_doc_edited): Do nothing if the selected window is a
10333 minibuffer window.
10334
10335 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10336 ns_set_doc_edited.
10337
10338 * nsterm.m: Remove unneeded prototype.
10339
10340 2010-03-31 Glenn Morris <rgm@gnu.org>
10341
10342 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10343 in the DOC file. (Bug#5336)
10344
10345 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10346
10347 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10348
10349 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10350
10351 * window.c (keys_of_window): Remove redundant/overridden bindings.
10352
10353 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10354
10355 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10356 Restore original behavior when the iterator is not bidi_p.
10357
10358 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10359
10360 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10361
10362 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10363
10364 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10365 are outside the range of cached character positions.
10366
10367 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
10368
10369 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10370
10371 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10372
10373 Initial support for bidirectional editing.
10374
10375 * Makefile.in (obj): Include bidi.o.
10376 (bidi.o): New target.
10377
10378 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10379 ($(BLD)/bidi.$(O)): New target.
10380
10381 * bidi.c: New file.
10382
10383 * buffer.h (struct buffer): New members bidi_display_reordering
10384 and bidi_paragraph_direction.
10385
10386 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10387 and bidi_paragraph_direction.
10388 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10389 and bidi-paragraph-direction.
10390 (Fbuffer_swap_text): Swap the values of
10391 bidi_display_reordering and bidi_paragraph_direction.
10392
10393 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10394 (bidi_type_t, bidi_dir_t): New types.
10395 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10396 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10397 prev_stop, base_level_stop, and eol_pos.
10398 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10399 (IT_STACK_SIZE): Enlarge to 5.
10400 (struct glyph_row): New member reversed_p.
10401 <string_buffer_position>: Update prototype.
10402 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10403 glyph_row if bidi_it.paragraph_dir == R2L.
10404 (struct glyph): New members resolved_level and bidi_type.
10405
10406 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10407 processing or buffer's direction is right-to-left.
10408 (prepare_desired_row): Preserve the reversed_p flag.
10409 (row_equal_p): Compare the reversed_p attributes as well.
10410
10411 * xdisp.c (init_iterator): Initialize it->bidi_p.
10412 Call bidi_init_it and set it->paragraph_embedding from the current
10413 buffer's value of bidi_paragraph_direction.
10414 (reseat_1): Initialize bidi_it.first_elt.
10415 (set_iterator_to_next, next_element_from_buffer): Use the value of
10416 paragraph_embedding to determine the paragraph direction.
10417 (set_iterator_to_next): Under bidi reordering, call
10418 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10419 new_paragraph flag is set in the bidi iterator.
10420 (next_element_from_buffer): If bidi_it.first_elt is set,
10421 initialize paragraph direction and find the first character to
10422 display in the visual order. If reseated to a middle of a line,
10423 prime the bidi iterator starting at the line's beginning.
10424 Handle the situation where we overstepped stop_charpos due to
10425 non-linearity of the bidi iteration. Likewise for when we back up
10426 beyond the previous stop_charpos. When moving across stop_charpos,
10427 record it in prev_stop.
10428 (display_line): Set row->end and it->start for the next row to the
10429 next character in logical order. Always extend reversed_p rows to
10430 the end of line, even if they end at ZV. Copy the reversed_p flag
10431 to the next glyph row. Keep calling set_cursor_from_row for
10432 bidi-reordered rows even if we already have a possible candidate
10433 for cursor position. Set row_end after all the row's glyphs have
10434 been produced, by looping over the glyphs. Record the position
10435 after EOL in it->eol_pos, and use it to set end_pos of the last
10436 row produced for a continued line.
10437 <Qright_to_left, Qleft_to_right>: New variables.
10438 (syms_of_xdisp): Initialize and staticpro them.
10439 (string_buffer_position_lim): New function.
10440 (string_buffer_position): Most of code moved to
10441 string_buffer_position_lim. Last argument and return value are
10442 now EMACS_INT; all callers changed.
10443 (set_cursor_from_row): Rewritten to support bidirectional text and
10444 reversed glyph rows.
10445 (text_outside_line_unchanged_p, try_window_id):
10446 Disable optimizations if we are reordering bidirectional text and the
10447 paragraph direction can be affected by the change.
10448 (append_glyph, append_composite_glyph)
10449 (produce_image_glyph, append_stretch_glyph): Set the
10450 resolved_level and bidi_type members of each glyph.
10451 (append_glyph): If the glyph row is reversed, prepend the glyph
10452 rather than appending it.
10453 (handle_stop_backwards): New function.
10454 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
10455 (reseat): Call handle_stop_backwards to recompute prev_stop and
10456 base_level_stop for the new position.
10457 (handle_invisible_prop): Under bidi iteration, skip invisible text
10458 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10459 paragraph direction. Update IT->prev_stop after skipping
10460 invisible text.
10461 (move_it_in_display_line_to): New variables prev_method
10462 and prev_pos. Compare for strict equality in
10463 BUFFER_POS_REACHED_P.
10464 (try_cursor_movement): Examine all the candidate rows that occlude
10465 point, to return the best match. If rows are bidi-reordered
10466 and point moved backwards, back up to the row that is not a
10467 continuation line, and start looking for a suitable row from
10468 there.
10469
10470 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10471 rather than appending, if the glyph_row's reversed_p flag is set.
10472 Set the resolved_level and bidi_type members of each glyph.
10473
10474 * .gdbinit (pbiditype): New command.
10475 (pgx): Use it to display bidi level and type of the glyph.
10476 (pitx): Display some bidi information about the iterator.
10477 (prowlims, pmtxrows): New commands.
10478
10479 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10480
10481 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10482 * s/usg5-4.h (LIBS_DEBUG):
10483 * s/irix6-5.h (C_DEBUG_SWITCH):
10484 * s/gnu-linux.h (LIBS_DEBUG):
10485 * s/darwin.h (LIBS_DEBUG):
10486 * s/bsd-common.h (LIBS_DEBUG):
10487 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10488 * m/iris4d.h (LIBS_DEBUG):
10489 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10490
10491 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10492 (LIBS_DEBUG): Remove definition.
10493
10494 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
10495
10496 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10497 Windows.
10498
10499 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10500
10501 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10502 `connect' (Bug#5723).
10503
10504 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
10505
10506 * process.c (Fmake_network_process): Call `select' for interrupted
10507 `connect' rather than creating new socket (Bug#5173).
10508
10509 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
10510
10511 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10512
10513 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10514
10515 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10516
10517 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10518
10519 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10520 XLoadQueryFont.
10521
10522 2010-03-24 Kenichi Handa <handa@m17n.org>
10523
10524 * coding.c (decode_coding_ccl): Fix previous change for the
10525 multibyte case.
10526 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10527 case that the output buffer is fullfilled.
10528 (encode_coding): Setup ccl program here.
10529
10530 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10531
10532 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10533
10534 Simplify LIBS_MACHINE definitions.
10535 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10536 * m/iris4d.h (LIBS_MACHINE): Likewise.
10537 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10538 * s/aix4-2.h (LIBS_SYSTEM): ... here.
10539 * s/netbsd.h: Remove commented out code.
10540
10541 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10542
10543 Remove dead code dealing with POSIX_SIGNALS.
10544 * atimer.c (set_alarm): Remove dead code, all USG systems define
10545 POSIX_SIGNALS.
10546 * data.c (arith_error): Likewise.
10547 * keyboard.c (input_available_signal, handle_user_signal)
10548 (interrupt_signal): Likewise.
10549 * process.c (sigchld_handler): Likewise.
10550 (create_process): Remove if 0 code. Remove HPUX conditional when
10551 !defined (POSIX_SIGNALS), it cannot be true.
10552 * syssignal.h: Remove USG5_4 and USG conditionals when
10553 !POSIX_SIGNALS, they cannot be true.
10554
10555 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10556 NO_SOCK_SIGIO, not used anymore.
10557
10558 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10559
10560 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10561 support vax on BSDs.
10562
10563 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10564 * s/aix4-2.h (ORDINARY_LINK): ... here.
10565
10566 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10567
10568 * Makefile.in (abs_builddir): Define.
10569 (bootstrap_exe): Use it.
10570 (VPATH): Use $(srcdir) instead of @srcdir@.
10571
10572 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10573
10574 * Makefile.in (bootstrap_exe): Use an absolute name.
10575
10576 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10577
10578 Remove support for old GNU/Linux using libc version 5.
10579 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10580 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10581
10582 Consolidate redundant definitions in s/bsd-common.h.
10583 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10584 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10585 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10586 doing it in all files that include this one.
10587 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10588 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10589 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10590 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10591 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10592 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10593 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10594 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10595 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10596
10597 Consolidate redundant definitions.
10598 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10599 it's undefined in all files that include this one.
10600 (POSIX_SIGNALS): Define here instead of doing it in all files that
10601 include this one.
10602 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10603 (POSIX_SIGNALS): Do not define.
10604 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10605 (POSIX_SIGNALS): Do not define.
10606 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10607 (POSIX_SIGNALS): Do not define.
10608
10609 Remove support for old UNIX System V systems.
10610 * s/unixware.h: Add the contents of s/usg5-4-2.h.
10611 * s/usg5-4-2.h: Remove.
10612
10613 Remove support for Solaris on PPC and for old versions.
10614 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10615 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10616 that cancel each other.
10617 * s/sol2-3.h:
10618 * s/sol2-4.h:
10619 * s/sol2-5.h: Remove.
10620 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10621 (NO_REMAP): Remove, unused.
10622 (UNEXEC): Move definition ...
10623 * s/aix4-2.h (UNEXEC): ... here.
10624
10625 * s/openbsd.h: Remove support for non-ELF and for systems that do
10626 not support shared libraries.
10627 * s/netbsd.h:
10628 * s/freebsd.h: Likewise.
10629
10630 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10631
10632 Remove non-working support for lynxos 3.0.
10633 * s/lynxos.h: Remove file.
10634
10635 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10636 COFF_BSD_SYMBOLS, nothing defines it anymore.
10637
10638 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10639
10640 Remove obsolete uses of HAVE_SHM.
10641 * emacs.c (standard_args):
10642 (Fdump_emacs):
10643 (syms_of_emacs): Remove code depending on HAVE_SHM.
10644
10645 * alloc.c: Remove HAVE_SHM dependent definition.
10646
10647 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10648
10649 2010-03-18 Glenn Morris <rgm@gnu.org>
10650
10651 * emacs.c (USAGE4): Hard-code bug address.
10652 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10653 (bug_reporting_address): Remove.
10654 (main): Don't call bug_reporting_address.
10655
10656 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10657 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10658
10659 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
10660
10661 * xfns.c (Fx_create_frame):
10662 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10663 on left.
10664
10665 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10666
10667 * editfns.c (Fformat): Account for string precision when computing
10668 field width (Bug#5710).
10669
10670 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
10671
10672 * xfns.c (Fx_create_frame): Set default to Qright.
10673
10674 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10675 all window systems.
10676
10677 2010-03-12 Eli Zaretskii <eliz@gnu.org>
10678
10679 These changes remove termcap.c from the build on Posix platforms.
10680 * Makefile.in (termcapobj): Move termcap.o from here...
10681 (MSDOS_OBJ): ...to here.
10682 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10683 now identical to when LIBS_TERMCAP is defined.
10684
10685 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10686
10687 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10688
10689 * config.in: Regenerated. (See top-level ChangeLog.)
10690
10691 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
10692
10693 * Branch for 23.2.
10694
10695 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10696
10697 Cleanup setup of gl_state in various parts of the code.
10698 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10699 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10700 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10701 (skip_chars):
10702 * regex.c (regex_compile): Use it.
10703 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10704 it's now set in regex_compile when/if we need it.
10705
10706 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10707
10708 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10709 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10710 (QUIT): Use it to consolidate code and remove redundancy.
10711 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10712
10713 * regex.c (regex_compile): Setup gl_state as well.
10714
10715 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10716 (in_classes): Use CONSP before XCAR/XCDR.
10717
10718 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
10719
10720 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10721 definitions, so that keyboard macros are correctly handled
10722 (Bug#5481).
10723
10724 2010-03-02 Eli Zaretskii <eliz@gnu.org>
10725
10726 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10727 text that could be relocated inside the call to emacs_mule_char.
10728 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10729 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10730
10731 2010-03-02 Kenichi Handa <handa@m17n.org>
10732
10733 * character.c (parse_str_as_multibyte): Fix handling of the
10734 multibyte form of raw-bytes.
10735 (str_as_multibyte): Likewise.
10736
10737 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10738 form of raw-bytes.
10739
10740 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
10741
10742 * charset.c (load_charset_map_from_file)
10743 (load_charset_map_from_vector): Zero out allocated
10744 charset_map_entries before using them.
10745
10746 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10747
10748 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10749
10750 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
10751
10752 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10753 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
10754
10755 2010-02-26 Kenichi Handa <handa@m17n.org>
10756
10757 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10758
10759 * xdisp.c (reseat_to_string): Fix previous change.
10760
10761 2010-02-26 David Reitter <david.reitter@gmail.com>
10762
10763 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10764 Lisp_Object (Bug#4736).
10765
10766 2010-02-25 Kenichi Handa <handa@m17n.org>
10767
10768 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10769
10770 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10771
10772 * xterm.c (XTflash): Move declarations before statements.
10773
10774 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10775 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10776 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10777 (xg_create_tool_bar): Remove unused variables.
10778 (x_wm_set_size_hint): Move declarations before statements.
10779 (xg_create_frame_widgets): Remove variable grav.
10780
10781 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
10782
10783 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10784
10785 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10786
10787 * term.c (fatal): Add a final \n if needed (bug#5596).
10788
10789 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
10790
10791 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10792
10793 2010-02-18 Glenn Morris <rgm@gnu.org>
10794
10795 * callint.c (Finteractive): Doc fix.
10796
10797 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10798
10799 * coding.c (record_conversion_result):
10800 Handle CODING_RESULT_INSUFFICIENT_DST.
10801 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10802 memory allocation error.
10803
10804 2010-02-17 Kenichi Handa <handa@m17n.org>
10805
10806 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10807 Fix for the case that the output buffer is fullfilled.
10808 (decode_coding): Setup ccl program here. Keep looping when the
10809 decoder stopped because the output buffer is
10810 fullfilled (bug#5534).
10811
10812 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10813
10814 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10815
10816 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
10817 bug #5571.
10818 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
10819 overdrawn.
10820
10821 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10822
10823 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10824 doing_interact here.
10825 (ice_connection_closed): New function.
10826 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10827 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10828 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10829 returns I/O error.
10830 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10831 bug #5512.
10832
10833 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
10834
10835 * nsfont.m (nsfont_open): The system's value for the font descent
10836 is negative, so round it down to avoid clipping.
10837
10838 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
10839
10840 * charset.c (load_charset_map_from_file)
10841 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
10842 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
10843
10844 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
10845
10846 * charset.c (load_charset_map_from_file): Allocate large
10847 charset_map_entries structure on the heap rather than the stack.
10848 (Bug#5526).
10849
10850 2010-01-31 Kenichi Handa <handa@m17n.org>
10851
10852 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
10853 size in NAME is invalid, return -1 (Bug#5396).
10854
10855 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
10856
10857 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10858 <deactivated@gmail.com> (Bug#3605).
10859
10860 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
10861
10862 * fileio.c (Frename_file): Correctly rename symlinks to
10863 directories (Bug#5496).
10864
10865 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10866
10867 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10868
10869 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10870
10871 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10872
10873 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
10874
10875 * frame.c (DEFAULT_ROWS): Change default to 35.
10876
10877 * xfns.c (x_default_font_parameter): Change default XFT font to
10878 monospace-10 (Bug#3643).
10879
10880 2010-01-29 Eli Zaretskii <eliz@gnu.org>
10881
10882 * w32inevt.c (key_event): Remove unnecessary comparison of
10883 event->uChar.AsciiChar with 128.
10884
10885 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
10886
10887 * fileio.c (Frename_file): Fix last change (Bug#5487).
10888
10889 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10890
10891 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10892
10893 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10894
10895 * xfns.c (Fx_create_frame): Remove window size matching code from
10896 2010-01-15.
10897 (x_get_current_desktop, x_get_desktop_workarea): Remove.
10898
10899 2010-01-27 Jason Rumney <jasonr@gnu.org>
10900
10901 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
10902 (key_event): Use unicode for characters 128 and higher (Bug#4567).
10903
10904 2010-01-27 Kenichi Handa <handa@m17n.org>
10905
10906 * regex.c (analyse_first): Fix setting of fastmap for unibyte
10907 pattern string (Bug#4209).
10908
10909 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
10910
10911 * fileio.c (Frename_file): Call copy-directory and
10912 delete-directory for directories, in order to handle cross-device
10913 renaming (Bug#3353).
10914
10915 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10916
10917 * xfns.c (Fx_create_frame): If frame height is too big, try
10918 sizes 24 and 10. Bug #3643.
10919
10920 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10921
10922 Try and fix bug#788, hopefully for real this time.
10923 * keymap.c (shadow_lookup): Add `remap' arg.
10924 (describe_map, describe_vector): Update calls to shadow_lookup.
10925 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10926 `remapped' so this flag is applicable to `sequence'. Be careful to
10927 perform remapping during shadow_lookup check of remapped_sequences.
10928
10929 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10930
10931 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10932 png_check_sig, which has been removed in libpng 1.4.
10933
10934 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10935
10936 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10937 lacks this header file).
10938
10939 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10940
10941 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10942 as in Emacs 22.
10943
10944 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10945
10946 * lisp.h (make_pure_string): String pointer arg now points to const.
10947
10948 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10949 args now point to const.
10950
10951 2010-01-22 Eli Zaretskii <eliz@gnu.org>
10952
10953 * lread.c (Fload): Don't treat files without .elc extension as
10954 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10955 them. (bug#5303)
10956
10957 2010-01-20 Kenichi Handa <handa@m17n.org>
10958
10959 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10960 treat the source as actual byte sequence.
10961
10962 2010-01-19 Alan Mackenzie <acm@muc.de>
10963
10964 Fix spurious before-change-functions invocation from (insert ?\n).
10965 * textprop.c (set_text_properties): Rename parameter
10966 `signal_after_change_p' to `coherent_change_p', and make the
10967 invocation of `modify_region' conditional on it.
10968
10969 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10970
10971 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10972 for debug purpose.
10973 (syms_of_xsettings): Declare xft-settings.
10974
10975 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
10976
10977 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10978
10979 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10980
10981 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10982
10983 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
10984
10985 * emacs.c (standard_args): Adjust arg priorities to reflect how
10986 they are processed in startup.el.
10987
10988 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10989
10990 * Makefile.in (lisp, shortlisp): Update.
10991
10992 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10993
10994 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10995 code, link the new kboard into all_kboard before running Lisp code,
10996 and protect the new terminal with GCPRO (Bug#5365).
10997 (x_term_init): Remove unused var `atom'.
10998 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10999
11000 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
11001
11002 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11003 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11004 to find out usable size of the desktop. Don't make frames larger than
11005 this. Bug #3643.
11006
11007 2010-01-15 Kenichi Handa <handa@m17n.org>
11008
11009 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
11010
11011 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
11012
11013 * nsterm.m (Qnone): Define.
11014
11015 * nsfns.m (Qnone): Move definition to nsterm.m.
11016
11017 2010-01-14 Kenichi Handa <handa@m17n.org>
11018
11019 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11020 systems.
11021
11022 2010-01-14 Kenichi Handa <handa@m17n.org>
11023
11024 Make auto-composition work on all buffers even if they are
11025 fundamental mode.
11026
11027 * composite.c (Vauto_composition_mode): New variable.
11028 (composition_compute_stop_pos): Check Vauto_composition_mode
11029 instead of Vauto_composition_function.
11030 (composition_adjust_point, Ffind_composition_internal): Likewise.
11031 (syms_of_composite): Declare Lisp variable
11032 "auto-composition-mode" here.
11033
11034 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
11035
11036 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11037 during call to vendor-specific-keysyms (Bug#5365).
11038
11039 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11040
11041 * keyboard.c (input_available_signal) [SYNC_INPUT]:
11042 Call SIGNAL_THREAD_CHECK (Bug#5333).
11043
11044 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11045 Call SIGNAL_THREAD_CHECK.
11046
11047 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
11048
11049 Try to fix bug#5314. This is probably not the final word, tho.
11050 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11051 recent-auto-save-p as a side-effect.
11052 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11053 * buffer.c (Fkill_buffer, reset_buffer):
11054 * editfns.c (Fsubst_char_in_region):
11055 * fileio.c (Finsert_file_contents, Fdo_auto_save)
11056 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11057
11058 2010-01-13 Kenichi Handa <handa@m17n.org>
11059
11060 Display buffer name, etc. in mode line by composing correctly.
11061
11062 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11063 STRING is not nil.
11064 (display_mode_element): Adjust for the change of
11065 decode_mode_spec and display_line.
11066 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11067 (display_string): Handle the case that STRING is non-null and
11068 LISP_STRING is not nil.
11069
11070 * xterm.c (x_draw_composite_glyph_string_foreground):
11071 Pay attention to s->face->overstrike.
11072
11073 * composite.c (composition_reseat_it): Don't check PT if STRING is
11074 non nil.
11075
11076 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11077
11078 * keyboard.c (read_char): Don't apply previous change when current
11079 buffer is unchanged by command execution.
11080
11081 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11082
11083 * keyboard.c (read_char): Return after executing from special map.
11084
11085 2010-01-12 Glenn Morris <rgm@gnu.org>
11086
11087 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11088 bug-gnu-emacs rather than emacs-pretest-bug.
11089
11090 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
11091
11092 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11093 initializing the Lisp variables that depend on them.
11094
11095 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11096
11097 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11098 Clear areas that will not be updated after change of menu bar lines.
11099 Clear the menu bar window's current matrix when the window gets empty.
11100
11101 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
11102
11103 * intervals.h, textprop.c (extend_property_ranges): Return value
11104 and args changed. Discard properties that begin at or after the
11105 new end (Bug#5306).
11106
11107 * editfns.c (Fformat): Caller changed.
11108
11109 * nsterm.m (ns_set_default_prefs): Delete function.
11110 (syms_of_nsterm): Initialize ns_command_modifier,
11111 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11112 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11113
11114 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11115 position (Bug#4040).
11116
11117 2010-01-09 Eli Zaretskii <eliz@gnu.org>
11118
11119 * editfns.c (Ffloat_time): Doc fix.
11120
11121 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11122
11123 * xfns.c (Fx_create_frame): Don't create frame larger than display
11124 by default bug#3643.
11125
11126 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11127
11128 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11129 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11130 windows above internal border.
11131
11132 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11133 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11134 windows above internal border.
11135
11136 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11137 tool bar windows specially.
11138
11139 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11140
11141 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11142 specially.
11143 (XTflash): Take account of menu bar height.
11144
11145 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11146 specially.
11147
11148 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11149
11150 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
11151 also be true before we can return early (bug #5339).
11152
11153 2010-01-06 David Reitter <david.reitter@gmail.com>
11154
11155 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11156 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11157 (Bug#3233).
11158
11159 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11160
11161 * font.c (font_open_entity): Enable chache and call cached_font_ok
11162 for the driver if defined.
11163 (QCuser_spec): New symbol.
11164 (font_spec_from_name): Save name as user-spec.
11165 (font_load_for_lface): Keep user-spec instead of name.
11166 (font_open_by_name): Save name as user-spec.
11167 (syms_of_font): Initialize QCuser_spec.
11168 (font_clear_prop): Clear name if it exists in font (bug#5157).
11169
11170 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11171 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11172 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11173
11174 * font.h (struct font_driver): Add cached_font_ok.
11175
11176 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11177
11178 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11179
11180 * xterm.c (x_new_font): Move code for setting rows/cols before
11181 resizing ...
11182 (x_set_window_size): ... to here. Bug #2568.
11183
11184 * gtkutil.c (xg_clear_under_internal_border): New function.
11185 (xg_frame_resized, xg_frame_set_char_size):
11186 Call xg_clear_under_internal_border.
11187 (xg_update_scrollbar_pos): Clear under old scroll bar position.
11188
11189 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
11190
11191 * keyboard.c (read_key_sequence): Catch keyboard switch after
11192 making a new tty frame (Bug#5095).
11193
11194 2010-01-05 Kenichi Handa <handa@m17n.org>
11195
11196 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11197
11198 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11199
11200 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11201 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11202 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11203
11204 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
11205
11206 * dbusbind.c (xd_add_watch): Improve debug message.
11207 (xd_remove_watch): Improve debug message. If DATA is the session
11208 bus, unset D-Bus session environment.
11209 (Fdbus_init_bus): Pass the bus as argument to
11210 dbus_connection_set_watch_functions. (Bug#5283)
11211
11212 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
11213
11214 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11215
11216 * lread.c (syms_of_lread): Make it clearer that these are the
11217 names of loaded files (Bug#5068).
11218
11219 * eval.c (run_hook_with_args): Handle the case where the global
11220 value has the obsolete single-function form (Bug#5026).
11221
11222 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
11223
11224 * minibuf.c (Fall_completions): Minor optimization.
11225
11226 2009-12-26 Eli Zaretskii <eliz@gnu.org>
11227
11228 * .gdbinit (pgx): Fix display of composite glyphs.
11229 Display cmp.from and cmp.to as well.
11230 (pitx): Fix last change.
11231
11232 2009-12-25 Kenichi Handa <handa@m17n.org>
11233
11234 * composite.h (composition_adjust_point): Update prototype.
11235
11236 * composite.c (composition_reseat_it): Don't make a composition
11237 spanning over point.
11238 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11239 composable characters.
11240 (composition_adjust_point): New arg NEW_PT. Callers changed.
11241
11242 * keyboard.c (command_loop_1): Force redisplay if the last point
11243 was within a composition.
11244 (adjust_point_for_property): Don't adjust point for automatic
11245 composition when called after buffer modification.
11246
11247 2009-12-19 Eli Zaretskii <eliz@gnu.org>
11248
11249 * .gdbinit (pitx): Don't use enum names, use their values.
11250 Remove reference to non-existing value GET_FROM_COMPOSITION.
11251 (pgx): Don't use enum names, use their values.
11252 (pitmethod): New helper command.
11253 (pitx): Use it to display iteration method.
11254 (pgrowit): New command.
11255
11256 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11257
11258 Update dependencies in Makefile.in.
11259
11260 * Makefile.in (alloc.o): Depend on termhooks.h.
11261 (atimer.o): Depend on blockinput.h.
11262 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11263 and frame.h.
11264 (callint.o): Depend on systime.h, coding.h, and composite.h.
11265 (callproc.o): Depend on buffer.h.
11266 (casefiddle.o): Don't depend on charset.h.
11267 (casetab.o): Depend on character.h.
11268 (ccl.o): Depend on composite.h.
11269 (chartab.o): Depend on ccl.h.
11270 (cm.o): Depend on dispextern.h.
11271 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11272 (coding.o): Don't depend on $(INTERVALS_H).
11273 (composite.o): Don't depend on dispextern.h explicitly (it's in
11274 $(INTERVALS_H)). Depend on ccl.h.
11275 (data.o): Depend on systime.h, coding.h, composite.h,
11276 dispextern.h, font.h, and ccl.h.
11277 (dired.o): Depend on composite.h.
11278 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11279 composite.h (it's in $(INTERVALS_H)).
11280 (doc.o): Depend on systime.h, coding.h, and composite.h.
11281 (editfns.o): Don't depend explicitly on dispextern.h.
11282 (emacs.o): Depend on frame.h and coding.h.
11283 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11284 (fileio.o): Depend on frame.h and commands.h. Don't depend
11285 explicitly on dispextern.h.
11286 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11287 composite.h.
11288 (fns.o): Don't depend on termhooks.h.
11289 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11290 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11291 coding.h, $(INTERVALS_H), window.h, xterm.h.
11292 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11293 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11294 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11295 fontset.h, ccl.h, and ftfont.h.
11296 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11297 (gtkutil.o): Depend on dispextern.h and composite.h.
11298 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11299 termhooks.h, and ccl.h.
11300 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11301 (intervals.o): Depend on systime.h and coding.h.
11302 (keyboard.o): Depend on composite.h and coding.h.
11303 (keymap.o): Depend on coding.h and frame.h.
11304 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11305 (macros.o): Depend on systime.h, coding.h, and composite.h.
11306 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11307 and atimer.h.
11308 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11309 dispextern.h explicitly.
11310 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11311 Don't depend explicitly on dispextern.h and composite.h.
11312 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11313 (regex.o): Don't depend on charset.h.
11314 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11315 (search.o): Don't depend explicitly on composite.h.
11316 (sound.o): Depend on atimer.h and systime.h.
11317 (syntax.o): Don't depend explicitly on composite.h.
11318 (sysdep.o): Depend on coding.h and composite.h.
11319 (term.o): Depend on xterm.h and buffer.h.
11320 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11321 (textprop.o): Don't depend on dispextern.h explicitly.
11322 (undo.o): Depend on dispextern.h.
11323 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11324 dispextern.h and composite.h explicitly.
11325 (xdisp.o): Depend on ccl.h.
11326 (xfaces.o): Depend on coding.h and ccl.h.
11327 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11328 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11329 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11330 ftfont.h.
11331 (xgselect.o): New dependency.
11332 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11333 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11334 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11335 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11336 (xsmfns.o): Depend on frame.h and dispextern.h.
11337 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11338 sysselect.h.
11339
11340 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11341
11342 * font.c (Fclear_font_cache): Pass correct cache argument to
11343 font_clear_cache.
11344
11345 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11346
11347 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11348 twice.
11349
11350 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
11351
11352 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11353 calling file-remote-p. Reported by Jim Meyering.
11354
11355 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
11356
11357 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
11358 avoid compiler warnings. (Bug #5217)
11359
11360 2009-12-14 Kenichi Handa <handa@m17n.org>
11361
11362 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11363 in 8-bit encoding.
11364
11365 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
11366
11367 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11368 tooltip windows.
11369
11370 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11371
11372 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11373 Xatom_net_window_type.
11374
11375 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11376 Xatom_net_window_type.
11377
11378 * xterm.c (my_log_handler): New function.
11379 (x_term_init): Set my_log_handler as log handler during gtk_init
11380 so we can filter out buggy messages. (Bug #5120).
11381
11382 * xterm.c (xg_scroll_callback): Parameter list changed,
11383 use parameter GtkScrollType to determine scroll/line/page.
11384 Only allow dragging if a button < 4 is grabbed (bug #5177).
11385 (xg_end_scroll_callback): New function.
11386 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11387 xg_create_scroll_bar.
11388
11389 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11390 (scroll_end_callback): Remove.
11391 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11392 button-release-event. Replace value-changed event with change-value,
11393 bug #5177.
11394 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11395 bug #5177.
11396
11397 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11398 (xg_create_scroll_bar): Add GCallback end_callback.
11399
11400 * xftfont.c (QClcdfilter): New variable.
11401 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11402 (syms_of_xftfont): Initialize QClcdfilter.
11403
11404 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11405
11406 * xsettings.c (struct xsettings): Add member seen.
11407 (parse_xft_settings): Update member seen with what we have read.
11408 Return non-zero if Xft-settings have been parsed, 0 otherwise.
11409 (apply_xft_settings): Only update Xft settings with what member seen
11410 indicates as new.
11411
11412 2009-12-12 Eli Zaretskii <eliz@gnu.org>
11413
11414 * dispextern.h (struct text_pos): Use EMACS_INT.
11415 (struct glyph): Use EMACS_INT for charpos.
11416 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11417 region_beg_charpos, region_end_charpos,
11418 redisplay_end_trigger_charpos, and also for
11419 iterator_stack_entry.end_charpos and
11420 iterator_stack_entry.stop_charpos.
11421
11422 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11423
11424 * gtkutil.c (scroll_end_callback): New function (bug #5177).
11425 (xg_create_scroll_bar): Call scroll_end_callback on button release
11426 event (bug #5177).
11427 (xg_event_is_for_scrollbar): != replaced with ==.
11428
11429 2009-12-12 Kenichi Handa <handa@m17n.org>
11430
11431 * ftfont.c (struct ftfont_info): New member matrix.
11432 (ftfont_open): Setup xftfont_info->matrix.
11433 (MFLTFontFT): New member matrix.
11434 (FLOOR, CEIL, ROUND): New macros.
11435 (ftfont_get_metrics): Handle matrix transformation.
11436 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11437
11438 * xftfont.c (struct xftfont_info): New member matrix.
11439 (xftfont_open): Setup xftfont_info->matrix.
11440
11441 2009-12-10 Kenichi Handa <handa@m17n.org>
11442
11443 * xdisp.c (append_space_for_newline): Consider face-remapping.
11444
11445 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11446
11447 * xsettings.c: Include "keyboard.h".
11448
11449 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11450
11451 Fix implicit function declarations.
11452 * cmds.c: Include "frame.h".
11453 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11454 * frame.h: Move declaration of delete_frame outside of
11455 HAVE_WINDOW_SYSTEM.
11456
11457 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11458
11459 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11460
11461 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11462 GTK builds.
11463
11464 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11465
11466 * unexelf.c (unexec): Don't search for .data twice.
11467
11468 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
11469
11470 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11471 if push failed.
11472 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11473 of push_display_prop (Bug#5000).
11474
11475 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11476 value of font_list_entities (Bug#5085).
11477
11478 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
11479
11480 Fix `string-to-number' to deal consistently with integers and floats.
11481 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11482 trailing characters, not just whitespace.
11483 (read1): Pass new arg 0 to keep old behavior.
11484 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11485 trailing chars, as it is already done for integers. Doc fixes.
11486 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11487
11488 2009-12-04 Eli Zaretskii <eliz@gnu.org>
11489
11490 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11491 Delete unused enumeration value.
11492
11493 2009-12-03 Eli Zaretskii <eliz@gnu.org>
11494
11495 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11496
11497 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11498
11499 * process.c (Fmake_network_process): Fix up the tests for
11500 "connectionless socket", so they DTRT for seqpacket sockets as well.
11501
11502 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11503
11504 * process.c (Qseqpacket): New symbol.
11505 (HAVE_SEQPACKET): New macro.
11506 (Fmake_network_process): Accept new :type `seqpacket'.
11507 (init_process): Add `seqpacket' feature when applicable.
11508 (syms_of_process): Initialize Qseqpacket.
11509
11510 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11511
11512 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11513 if entity is Qnil.
11514
11515 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11516
11517 * print.c (print_preprocess): Preprocess the key_and_value table of
11518 hashtables, even tho they're "hidden" (bug#5082).
11519
11520 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11521
11522 * frame.c (frame_make_pointer_invisible)
11523 (frame_make_pointer_visible): Declare f before statements.
11524
11525 2009-11-28 Eli Zaretskii <eliz@gnu.org>
11526
11527 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11528 omitted dependencies on lisp.h.
11529
11530 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11531
11532 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11533 is NULL.
11534
11535 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11536
11537 * frame.c (frame_make_pointer_invisible)
11538 (frame_make_pointer_visible): Just return if there isn't any selected
11539 frame.
11540
11541 * search.c (simple_search): Remove warning by making *p const.
11542
11543 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11544
11545 * xdisp.c (power_letter): Remove duplicate const.
11546
11547 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11548
11549 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11550
11551 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
11552 defaults (bug #5025).
11553
11554 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11555
11556 * insdel.c (adjust_markers_for_delete): Move it in the
11557 right direction! (bug#4803)
11558
11559 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11560
11561 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11562
11563 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11564
11565 2009-11-24 Glenn Morris <rgm@gnu.org>
11566
11567 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11568
11569 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11570
11571 * Makefile.in: Must create deps for ecrt0.o in its rule.
11572
11573 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11574 because that is what Gtk+ font dialog understands.
11575
11576 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11577 of Fcopy_sequence.
11578 (font_open_by_name): Put name given into QCname for font-object returned.
11579
11580 * frame.c (x_set_font): Save original font name as frame parameter
11581 font-parameter.
11582
11583 * xsettings.c (set_default_xft_settings): New function.
11584 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11585 is found.
11586
11587 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11588
11589 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11590 searching backwards through multibyte buffer.
11591
11592 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11593
11594 * xterm.c: #include xgselect.h.
11595 (x_initialize): Call xgselect_initialize.
11596
11597 * xsettings.c (something_changedCB): C++ comments => C comments.
11598 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11599 does that now.
11600
11601 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11602 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11603 (scroll_bar_button_cb): Remove.
11604 (create_menus): C++ comments => C comments. Don't bind grab-notify
11605 event.
11606 (xg_create_scroll_bar): Don't bind button-press-event and
11607 button-release-event.
11608
11609 * process.c: Include xgselect.h if defined (USE_GTK) ||
11610 defined (HAVE_GCONF).
11611 (wait_reading_process_output): Call xg_select for the same condition.
11612
11613 * xgselect.c (xg_select): New function to better integrate with
11614 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11615
11616 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11617
11618 * Makefile.in (XOBJ): Add xgselect.o.
11619
11620 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11621
11622 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11623 Remove ignored second argument. All callers changed.
11624 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11625 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11626 * xdisp.c (string_char_and_length): Likewise.
11627
11628 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11629
11630 * xterm.c (x_new_font):
11631 * print.c (print_object):
11632 * cmds.c (Fself_insert_command): Move declarations before statements.
11633
11634 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11635
11636 * s/cygwin.h: Remove unneeded linker flags.
11637
11638 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11639
11640 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11641
11642 * xsettings.h: Declare xsettings_get_system_font.
11643
11644 * xsettings.c (xsettings_get_system_font): New function.
11645 (init_gconf): No use initiating gconf unless we have Xft also.
11646 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11647 HAVE_GCONF.
11648
11649 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11650 add a blank entry so it doesn't collapse into nothing.
11651
11652 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11653
11654 * lread.c (Funintern): Comment out last change.
11655
11656 2009-11-19 Richard Stallman <rms@gnu.org>
11657
11658 * lread.c (Funintern): Error if symbol is t or nil.
11659
11660 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11661
11662 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11663 representation of Lisp integers.
11664 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11665
11666 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11667
11668 * lisp.h: Remove declaration of Ffont_get_system_font.
11669 * xfns.c: Move include of "xsettings.h".
11670 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11671
11672 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11673
11674 * xsettings.c (something_changedCB, Ffont_get_system_font):
11675 Check use_system_font.
11676 (syms_of_xsettings): DEFVAR font-use-system-font.
11677
11678 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11679
11680 * xfns.c (x_default_font_parameter): Remove dead assignment.
11681
11682 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11683
11684 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11685
11686 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
11687 not have FC_LCD_*. #define them if not there.
11688
11689 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
11690
11691 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11692
11693 * xterm.c (handle_one_xevent): Call xft_settings_event for
11694 ClientMessage, PropertyNotify and DestroyNotify.
11695 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11696 Call xsettings_initialize.
11697
11698 * xftfont.c (xftfont_fix_match): New function.
11699 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11700 Call xftfont_fix_match after XftFontMatch.
11701
11702 * xfont.c (xfont_driver): Initialize all members.
11703
11704 * xfns.c (x_default_font_parameter):
11705 Try font from Ffont_get_system_font.
11706 Do not get font from x_default_parameter if we got one from
11707 Ffont_get_system_font.
11708 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
11709
11710 * w32font.c (w32font_driver): Initialize all members.
11711
11712 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11713
11714 * lisp.h: Declare syms_of_xsettings.
11715
11716 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11717 Handle CONFIG_CHANGED_EVENT.
11718
11719 * ftfont.c (ftfont_filter_properties): New function.
11720
11721 * frame.c (x_set_font): Remove unused variable lval.
11722
11723 * font.h (struct font_driver): Add filter_properties.
11724
11725 * font.c (font_put_extra): Don't return if val is nil, it means
11726 boolean option is off.
11727 (font_parse_fcname): Collect all extra properties in extra_props
11728 and call filter_properties for all drivers with extra_props and
11729 font as parameter.
11730 (font_open_entity): Do not use cache, it does not pick up new
11731 fontconfig settings like hinting.
11732 (font_load_for_lface): If spec had a name in it, store it in entity.
11733
11734 * emacs.c (main): Call syms_of_xsettings.
11735
11736 * config.in: HAVE_GCONF is new.
11737
11738 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11739 xsettings.o is new.
11740
11741 2009-11-17 Kenichi Handa <handa@m17n.org>
11742
11743 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11744 back to the default font in case that no suitable font is found.
11745
11746 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11747
11748 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11749 Suggested by Chad Brown <yandros@mit.edu>.
11750 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11751
11752 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11753
11754 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11755
11756 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11757
11758 * Makefile.in: Ignore errors from mkdir when creating deps directory.
11759
11760 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11761
11762 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11763 has a parent.
11764
11765 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
11766 dependency files in deps/. Include those files into Makefile.
11767
11768 * config.in: Generated (AUTO_DEPEND).
11769
11770 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
11771
11772 * dbusbind.c (Vdbus_registered_objects_table): Rename from
11773 Vdbus_registered_functions_table, because it contains also
11774 properties. Fix docstring.
11775 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
11776
11777 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11778
11779 * alloc.c (mark_object): Don't reprocess marked strings.
11780 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11781 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11782
11783 2009-11-13 Kenichi Handa <handa@m17n.org>
11784
11785 * category.c (word_boundary_p): Adjust for the change of the
11786 semantics of Vword_combining_categories.
11787 (Vword_combining_categories): Describe the slight change of the
11788 semantics.
11789
11790 2009-11-13 Eli Zaretskii <eliz@gnu.org>
11791
11792 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11793
11794 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11795
11796 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11797
11798 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11799
11800 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
11801
11802 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11803
11804 2009-11-11 David Reitter <david.reitter@gmail.com>
11805
11806 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11807 variables to fix 2009-11-09 change.
11808
11809 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11810
11811 * process.c (ifflag_def): Make flag_sym constant.
11812 (Fnetwork_interface_info): Use a constant pointer.
11813 (ifflag_table):
11814 * xfns.c (cursor_bits):
11815 * xdisp.c (power_letter):
11816 * termcap.c (speeds, esctab):
11817 * sysdep.c (baud_convert):
11818 * keyboard.c (lispy_accent_codes, modifier_names):
11819 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11820 (jpeg_format, tiff_format, gif_format, svg_format)
11821 (interlace_start, interlace_increment, gs_format):
11822 * gtkutil.c (separator_names):
11823 * fringe.c (swap_nibble):
11824 * fns.c (base64_value_to_char, base64_char_to_value):
11825 * fileio.c (make_temp_name_tbl):
11826 * coding.c (suffixes): Make constant.
11827
11828 * frame.c (make_initial_frame):
11829 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11830 build_string.
11831 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11832
11833 * s/freebsd.h:
11834 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11835
11836 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11837 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11838
11839 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11840 * xterm.c (syms_of_xterm):
11841 * xfaces.c (syms_of_xfaces):
11842 * xdisp.c (syms_of_xdisp):
11843 * lread.c (syms_of_lread):
11844 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11845 build_string.
11846
11847 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11848
11849 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11850
11851 * fns.c (Fplist_get): Merge the active and the commented out code.
11852
11853 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11854
11855 * keyboard.h: Declare timer_check.
11856
11857 * keyboard.c (timer_check_2): New function that does what the old
11858 timer_check did.
11859 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11860 returned, i.e. don't return -1 with timers pending.
11861
11862 * process.c: Remove extern declaration of timer_check.
11863
11864 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11865 even if timer_check returned -1.
11866
11867 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11868 xg_dialog_data.
11869 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11870 the event loop.
11871 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11872 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11873 Destroy the dialog after xg_dialog_run.
11874
11875 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11876
11877 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11878
11879 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11880
11881 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11882
11883 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
11884
11885 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11886
11887 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11888
11889 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11890 w32menu.c, and nsmenu.m.
11891 Simplify the obsolete case where position is nil.
11892 (cleanup_popup_menu): New function, moved from nsmenu.m.
11893 (struct skp): Remove slot `notreal'.
11894 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11895 adjust callers.
11896 (single_menu_item): Adjust call to parse_menu_item.
11897 (syms_of_menu): Defsubr x-popup-menu.
11898 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11899 (keymap_panes): Don't export any more.
11900 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11901 (xmenu_show): Declare.
11902 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11903 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11904 * keyboard.h (parse_menu_item): Update declaration.
11905 * xmenu.c (Fx_popup_menu): Remove.
11906 (syms_of_xmenu): Don't defsubr x-popup-menu.
11907 * w32menu.c (Fx_popup_menu): Remove.
11908 (syms_of_w32menu): Don't defsubr x-popup-menu.
11909 * nsmenu.m (cleanup_popup_menu): Remove.
11910 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11911 moved to menu.c's Fx_popup_menu.
11912 (Fx_popup_menu): Remove.
11913 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11914 menu_items (it's done in menu.c already).
11915
11916 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11917
11918 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11919 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11920
11921 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
11922
11923 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
11924 xmenu_show. Hide any tooltip before opening a menu.
11925 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11926 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11927
11928 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11929
11930 Let integers use up 2 tags to give them one extra bit and thus double
11931 their range.
11932 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11933 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11934 New macros.
11935 (enum Lisp_Type): Use them. Give explicit values.
11936 (Lisp_Type_Limit): Remove.
11937 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11938 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11939 Pay attention to USE_2_TAGS_FOR_INTS.
11940 (INTEGERP): Use LISP_INT_TAG_P.
11941 * fns.c (internal_equal): Simplify the default case.
11942 (sxhash): Use case_Lisp_Int.
11943 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11944 any more.
11945 (Ftype_of): Use case_Lisp_Int.
11946 (store_symval_forwarding): Take into account the fact that Ints can
11947 now have more than one tag.
11948 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
11949 (buffer_slot_type_mismatch):
11950 * xfaces.c (face_attr_equal_p):
11951 * print.c (print_object):
11952 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11953 Use case_Lisp_Int.
11954
11955 2009-11-06 Eli Zaretskii <eliz@gnu.org>
11956
11957 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11958
11959 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11960 warning.
11961
11962 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11963
11964 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11965
11966 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11967
11968 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11969 ButtonPressRelease and MotionNotify (bug#4870).
11970
11971 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11972
11973 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11974
11975 * xterm.c (syms_of_xterm):
11976 * xselect.c (syms_of_xselect):
11977 * xmenu.c (syms_of_xmenu):
11978 * xfns.c (syms_of_xfns):
11979 * xfaces.c (syms_of_xfaces):
11980 * xdisp.c (syms_of_xdisp):
11981 * window.c (syms_of_window):
11982 * w32fns.c (syms_of_w32fns):
11983 * undo.c (syms_of_undo):
11984 * textprop.c (syms_of_textprop):
11985 * terminal.c (syms_of_terminal):
11986 * syntax.c (syms_of_syntax):
11987 * sound.c (syms_of_sound):
11988 * search.c (syms_of_search):
11989 * print.c (syms_of_print):
11990 * minibuf.c (syms_of_minibuf):
11991 * macros.c (syms_of_macros):
11992 * keymap.c (syms_of_keymap, initial_define_key)
11993 (initial_define_lispy_key):
11994 * keyboard.c (syms_of_keyboard):
11995 * insdel.c (syms_of_insdel):
11996 * image.c (syms_of_image):
11997 * fringe.c (syms_of_fringe):
11998 * frame.c (syms_of_frame):
11999 * fontset.c (syms_of_fontset):
12000 * fns.c (syms_of_fns):
12001 * fns.c (syms_of_fns):
12002 * fileio.c (syms_of_fileio):
12003 * fileio.c (syms_of_fileio):
12004 * eval.c (syms_of_eval):
12005 * doc.c (syms_of_doc):
12006 * dispnew.c (syms_of_display):
12007 * dired.c (syms_of_dired):
12008 * dbusbind.c (syms_of_dbusbind):
12009 * data.c (syms_of_data):
12010 * composite.c (syms_of_composite):
12011 * coding.c (syms_of_coding):
12012 * cmds.c (syms_of_cmds):
12013 * charset.c (define_charset_internal, syms_of_character):
12014 * ccl.c (syms_of_ccl):
12015 * category.c (syms_of_category, init_category_once):
12016 * casetab.c (syms_of_casetab):
12017 * casefiddle.c (syms_of_casefiddle):
12018 * callint.c (syms_of_callint):
12019 * bytecode.c (syms_of_bytecode):
12020 * buffer.c (keys_of_buffer, syms_of_buffer):
12021 * alloc.c (syms_of_alloc):
12022 * process.c (syms_of_process, init_process):
12023 * lread.c (syms_of_lread, init_obarray):
12024 * font.c (build_style_table):
12025 * emacs.c (syms_of_emacs, main): Replace calls to intern with
12026 intern_c_string, calls to make_pure_string with
12027 make_pure_c_string. Use pure_cons instead of Fcons.
12028
12029 * process.c (socket_options): Make it const.
12030 (set_socket_option, init_process): Use a const pointer.
12031
12032 * lread.c (intern_c_string): New function.
12033 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12034 (defvar_int): Uset it. Make the name const char*.
12035
12036 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12037 (defvar_int): Update prototypes.
12038 (DEFUN, EXFUN): Support for prototypes is now required.
12039 (intern_c_string): New prototype.
12040 (struct Lisp_Subr): Make symbol_name constant.
12041
12042 * font.c (struct table_entry): Remove unused member. Make NAMES
12043 constant.
12044 (weight_table, slant_table, width_table): Make constant.
12045
12046 * emacs.c (struct standard_args): Make name and longname constant.
12047
12048 * character.h (DEFSYM): Use intern_c_string.
12049
12050 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12051
12052 * alloc.c (make_pure_c_string): New function.
12053
12054 * eval.c (Fautoload): Purecopy all arguments.
12055
12056 2009-11-05 Kenichi Handa <handa@m17n.org>
12057
12058 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12059 the buffer in case of replace.
12060
12061 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12062
12063 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12064
12065 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12066
12067 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12068 when applicable (bug#4851).
12069
12070 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12071 (P_): Support for prototypes is now required.
12072
12073 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
12074
12075 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12076 (Bug#4827).
12077
12078 2009-10-30 Eli Zaretskii <eliz@gnu.org>
12079
12080 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
12081
12082 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12083
12084 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12085
12086 * lread.c (Fload): Purecopy the file name when building
12087 Vpreloaded_file_list.
12088
12089 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12090
12091 * w32fns.c (syms_of_w32fns): Change default value of
12092 w32-scroll-lock-modifier to nil. (Bug#2827)
12093
12094 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12095
12096 * minibuf.c (Fall_completions): Fix typos in docstring.
12097
12098 2009-10-26 Andreas Schwab <schwab@redhat.com>
12099
12100 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12101
12102 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12103
12104 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12105 For delta < 0, skip check that only makes sense when the mini-window
12106 is going to be enlarged. (Bug#4534)
12107
12108 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
12109
12110 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12111 string in menu maps (Bug#4471).
12112
12113 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
12114
12115 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12116 FRAME_NS_VIEW on terminal frames (Bug#4765).
12117
12118 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12119
12120 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12121 DBUS_TYPE_UINTnn separately to get proper sign extension.
12122
12123 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12124 can properly handle unsigned types.
12125 (make_uid, make_gid): Remove.
12126
12127 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12128 types again.
12129
12130 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
12131 (system_process_attributes): Likewise.
12132
12133 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12134
12135 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12136
12137 * eval.c (Fautoload): Purecopy the filename. Simplify.
12138
12139 * category.c (Fdefine_category): Purecopy docstring.
12140
12141 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12142
12143 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12144
12145 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12146
12147 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
12148
12149 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12150 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12151 (Bug#4775).
12152
12153 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12154
12155 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12156 (init_fileio_once):
12157 * lisp.h (init_fileio_once): Remove.
12158 * emacs.c (main): Don't call init_fileio_once.
12159
12160 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12161
12162 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12163
12164 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12165
12166 * doprnt.c (doprnt): Fix overflow check.
12167
12168 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12169
12170 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12171
12172 * xterm.h (x_wait_for_event): Declare it.
12173
12174 * xterm.c (pending_event_wait): New variable.
12175 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12176 see pending_event_wait.eventtype.
12177 (handle_one_xevent): Don't change gravity when parent changes.
12178 (x_new_font): Call change_frame_size with new rows/columns before we
12179 try to resize the frame.
12180 (x_wait_for_event): New function.
12181 (x_set_window_size_1): Don't change gravity unless change_gravity
12182 is set.
12183 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12184 don't change frame size, instead wait for the ConfigureNotify.
12185 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12186 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12187 (x_initialize): Initialize pending_event_wait.
12188
12189 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12190 size.
12191
12192 * widget.c (EmacsFrameSetValues): Add comment.
12193 (EmacsFrameSetCharSize): Just call x_set_window_size.
12194
12195 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12196 x_wait_for_event.
12197 (flush_and_sync): Remove again.
12198 (xg_get_font_name): Suggest monospace if no previous font is known.
12199
12200 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12201
12202 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
12203 8th bit, since that only made sense in the ASCII world (bug#4751).
12204
12205 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12206
12207 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12208 processing pending events when event is filtered for input method.
12209 (Bug#3681)
12210
12211 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
12212
12213 * fns.c: Add #endif accidentally removed in previous change.
12214
12215 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12216
12217 * fns.c: Remove code for unsupported system: MAC_OS.
12218 * image.c: Likewise. Include setjmp.h.
12219
12220 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12221
12222 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12223 pixel -1 (bug #4742).
12224
12225 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12226
12227 * process.c (create_pty): Remove conditionals for no longer
12228 supported systems: UNIPLUS and RTU.
12229
12230 * xterm.c:
12231 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12232
12233 * alloc.c: Do not define struct catchtag.
12234 * eval.c: Move struct catchtag definition ...
12235 * lisp.h: ... here.
12236
12237 * image.c: Move png.h #include earlier to avoid warnings.
12238
12239 * xterm.c:
12240 * xsmfns.c:
12241 * xselect.c:
12242 * xrdb.c:
12243 * xmenu.c:
12244 * xftfont.c:
12245 * xfont.c:
12246 * xfns.c:
12247 * xfaces.c:
12248 * xdisp.c:
12249 * window.c:
12250 * widget.c:
12251 * w32xfns.c:
12252 * w32uniscribe.c:
12253 * w32term.c:
12254 * w32select.c:
12255 * w32reg.c:
12256 * w32proc.c:
12257 * w32menu.c:
12258 * w32inevt.c:
12259 * w32heap.c:
12260 * w32font.c:
12261 * w32fns.c:
12262 * w32console.c:
12263 * w32.c:
12264 * w16select.c:
12265 * vm-limit.c:
12266 * unexsol.c:
12267 * unexec.c:
12268 * unexcw.c:
12269 * unexaix.c:
12270 * undo.c:
12271 * tparam.c:
12272 * textprop.c:
12273 * terminfo.c:
12274 * terminal.c:
12275 * termcap.c:
12276 * term.c:
12277 * syntax.c:
12278 * sound.c:
12279 * sheap.c:
12280 * search.c:
12281 * scroll.c:
12282 * region-cache.c:
12283 * regex.c:
12284 * ralloc.c:
12285 * process.c:
12286 * print.c:
12287 * nsterm.m:
12288 * nsselect.m:
12289 * nsmenu.m:
12290 * nsimage.m:
12291 * nsfont.m:
12292 * nsfns.m:
12293 * msdos.c:
12294 * minibuf.c:
12295 * menu.c:
12296 * marker.c:
12297 * macros.c:
12298 * keymap.c:
12299 * keyboard.c:
12300 * intervals.c:
12301 * insdel.c:
12302 * indent.c:
12303 * gtkutil.c:
12304 * ftxfont.c:
12305 * ftfont.c:
12306 * fringe.c:
12307 * frame.c:
12308 * fontset.c:
12309 * font.c:
12310 * fns.c:
12311 * floatfns.c:
12312 * filelock.c:
12313 * fileio.c:
12314 * emacs.c:
12315 * editfns.c:
12316 * dosfns.c:
12317 * doprnt.c:
12318 * doc.c:
12319 * dispnew.c:
12320 * dired.c:
12321 * dbusbind.c:
12322 * data.c:
12323 * composite.c:
12324 * coding.c:
12325 * cmds.c:
12326 * cm.c:
12327 * chartab.c:
12328 * charset.c:
12329 * character.c:
12330 * ccl.c:
12331 * category.c:
12332 * casetab.c:
12333 * casefiddle.c:
12334 * callproc.c:
12335 * callint.c:
12336 * bytecode.c:
12337 * buffer.c:
12338 * atimer.c: Include setjmp.h. (Bug#4643)
12339
12340 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12341
12342 Remove leftover table unibyte_to_multibyte_table.
12343 * character.c (unibyte_to_multibyte_table): Remove.
12344 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12345 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12346 * character.h (UNIBYTE_TO_CHAR): New macro.
12347 (MAKE_CHAR_MULTIBYTE): Use it.
12348 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12349 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12350 (message_dolog, set_message_1):
12351 * search.c (Freplace_match):
12352 * editfns.c (Fcompare_buffer_substrings):
12353 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12354 (concat):
12355 * insdel.c (copy_text, count_size_as_multibyte):
12356 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12357 * term.c (produce_glyphs):
12358 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12359 * regex.c (RE_CHAR_TO_MULTIBYTE):
12360 * cmds.c (internal_self_insert):
12361 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12362
12363 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12364
12365 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12366
12367 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12368
12369 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
12370
12371 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12372
12373 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12374
12375 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12376 still needed under Tiger.
12377
12378 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12379
12380 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12381 __Apple__.
12382
12383 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12384
12385 2009-10-15 Kenichi Handa <handa@m17n.org>
12386
12387 * print.c (print_object): Escape a symbol like "2E10" too.
12388
12389 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
12390
12391 Cleanups and changes for 64-bit compile under Snow Leopard.
12392 Based on suggestions by Erik Charlebois.
12393
12394 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12395
12396 * nsfont.m (ns_char_width): Replace deprecated call.
12397 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12398 cast argument.
12399 (nsfont_open): Use ns_char_width() everywhere.
12400 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
12401
12402 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12403
12404 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12405 where appropriate.
12406
12407 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12408 where appropriate.
12409 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12410 Use stringWithUTF8String.
12411 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12412
12413 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12414 Add formal protocol mention to inheritance.
12415 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12416
12417 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12418 Fix printf format.
12419 (ns_query_color): Use CGFloat where appropriate.
12420 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
12421 (EmacsScroller-mouseDown:): Use long format in printf, and cast
12422 argument.
12423
12424 * config.in (NS_HAVE_NSINTEGER): Drop.
12425
12426 * dbusbind.c (dbus-method-return-internal)
12427 (dbus-method-error-internal): Use long format in printf, and cast
12428 argument.
12429
12430 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12431 in printf, and cast argument.
12432
12433 * process.c (list_processes_1): Use long format in printf, and
12434 cast argument.
12435
12436 2009-10-11 Glenn Morris <rgm@gnu.org>
12437
12438 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12439
12440 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12441
12442 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12443 menu bar with a small width so it doesn't enlarge the frame.
12444
12445 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
12446
12447 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12448
12449 2009-10-06 Glenn Morris <rgm@gnu.org>
12450
12451 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12452 SOME_MACHINE_LISP (this enters indirectly via DOC).
12453
12454 2009-10-05 Eli Zaretskii <eliz@gnu.org>
12455
12456 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12457
12458 2009-10-04 Eli Zaretskii <eliz@gnu.org>
12459
12460 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12461 Doc fix.
12462
12463 2009-10-03 Martin Rudalics <rudalics@gmx.at>
12464
12465 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12466
12467 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
12468
12469 * lisp.h (Qdelete_directory_internal): Remove, because it is not
12470 used anymore outside fileio.c.
12471
12472 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12473
12474 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
12475
12476 * lisp.h (Qdelete_directory_internal):
12477 Declare, instead of Qdelete_directory.
12478
12479 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12480
12481 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12482
12483 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12484
12485 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
12486
12487 * fileio.c (Fdelete_directory_internal): Rename from
12488 Fdelete_directory. It is not a command anymore. It has no file
12489 name handler.
12490
12491 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12492
12493 * xdisp.c (get_next_display_element): Use an enum in last change.
12494
12495 2009-09-28 Kenichi Handa <handa@m17n.org>
12496
12497 * xdisp.c (get_next_display_element): Pay attention to
12498 unibyte_display_via_language_environment in handling
12499 Vnobreak_char_display.
12500
12501 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12502
12503 * nsterm.h (ns_app_name): New extern variable.
12504
12505 * nsterm.m (ns_app_name): New variable.
12506 (ns_term_init): Set and use it.
12507 (ns_term_shutdown): Use it.
12508
12509 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12510 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12511
12512 * nsfns.m (ns_set_name_iconic, ns_set_name)
12513 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12514 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12515
12516 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12517 Remove double-casting in client_data comparison.
12518
12519 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12520
12521 * keyboard.c (make_lispy_event): Remember last wheel direction.
12522 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12523
12524 2009-09-26 Glenn Morris <rgm@gnu.org>
12525
12526 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12527 internal.elc. Add term/pc-win.elc.
12528 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12529 term/x-win.elc.
12530 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12531 term/w32-win.elc.
12532 (NS_SUPPORT): New.
12533 (lisp): Add NS_SUPPORT.
12534 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12535
12536 2009-09-25 David Reitter <david.reitter@gmail.com>
12537
12538 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12539 on Mac OS X 10.6+ (bug#4513).
12540
12541 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12542
12543 * frame.c (xrdb_get_resource): Return nil for empty string resources;
12544 some parts of Emacs code (like font selection) don't grok them.
12545 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12546
12547 2009-09-24 Andreas Schwab <schwab@redhat.com>
12548
12549 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12550
12551 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12552
12553 * dired.c (Fdirectory_files): Fix typo in docstring.
12554
12555 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12556
12557 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12558 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12559 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12560 under GNUstep.
12561 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12562
12563 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12564 glyph advancement.
12565
12566 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12567
12568 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
12569 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
12570
12571 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12572 deleted (bug #4492).
12573
12574 * nsfont.m (Vns_reg_to_script): New lisp variable.
12575 (syms_of_nsfont): Declare it.
12576 (ns_registry_to_script): New function.
12577 (ns_get_req_script): Call it.
12578 (ns_findfonts): Don't give up on non-unicode registry.
12579
12580 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12581
12582 2009-09-20 Tom Tromey <tromey@redhat.com>
12583
12584 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12585 batch mode (bug#4228).
12586
12587 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
12588
12589 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
12590 carefully. (Bug #4339)
12591
12592 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
12593
12594 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
12595
12596 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12597
12598 * emacs.c (inhibit_x_resources): Update doc string for NS.
12599 (main) [HAVE_NS]: Don't process --no-init-file option.
12600 Remove legacy code for -NXHost. Fix error printf in daemon case.
12601
12602 * nsterm.h (ns_no_defaults): Remove.
12603
12604 * nsterm.m (ns_no_defaults): Remove.
12605 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12606 (ns_use_qd_smoothing): Remove legacy variable.
12607 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12608 don't update the NSWindow itself.
12609 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12610 Improve state detection and store user rect ourselves. (Bug #3581)
12611
12612 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12613 ns_use_qd_smoothing.
12614
12615 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12616 platform versions. Drop support for emacs-20-style face specs.
12617 (x-close-connection): Drop PSFlush() under OS X.
12618 (x-focus-frame): Activate the app first. (Bug #4180)
12619
12620 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
12621
12622 * emacs.c (inhibit_x_resources): New variable.
12623 (main) [HAVE_NS]: Don't process --quick command line option.
12624 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12625
12626 * lisp.h (inhibit_x_resources): Declare it extern.
12627
12628 * w32reg.c (x_get_string_resource):
12629 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12630
12631 2009-09-17 Eli Zaretskii <eliz@gnu.org>
12632
12633 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12634 Add lisp/term/internal.elc.
12635
12636 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12637
12638 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12639 (bug#4461).
12640
12641 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12642
12643 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12644
12645 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12646 (OBJECTS_MACHINE): Remove, unused.
12647
12648 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12649
12650 * frame.c (x_get_resource_string): Remove unused.
12651
12652 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12653
12654 * xterm.c (x_new_font): Call change_frame_size before calling
12655 x_set_window_size, in case frame size won't change.
12656
12657 * frame.c (x_set_font): Remove dead code.
12658
12659 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12660
12661 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12662
12663 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12664
12665 * lread.c (Fload): Don't output a message after loading an obsolete
12666 package any more (done in Lisp now).
12667
12668 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
12669
12670 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12671
12672 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12673
12674 * keymap.c (Fwhere_is_internal): Use nconc2.
12675
12676 2009-09-11 Alan Mackenzie <acm@muc.de>
12677
12678 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12679 batch mode.
12680
12681 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12682
12683 * xdisp.c (display_mode_element): Detect cycles.
12684
12685 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12686
12687 * keymap.c (where_is_internal): Don't erroneously return nil right after
12688 filling the cache.
12689 (where_is_internal_1): Fix up typo.
12690
12691 2009-09-11 Glenn Morris <rgm@gnu.org>
12692
12693 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12694 share a common doc-string.
12695
12696 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12697
12698 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12699 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12700
12701 * keymap.c (QCadvertised_binding): New constant.
12702 (syms_of_keymap): Initialize it.
12703 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12704 if applicable.
12705
12706 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12707
12708 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12709 (parse_menu_item): Streamline since bindings are recomputed all the
12710 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12711 more and don't support lmenu's menu-alias any more either.
12712
12713 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12714 (where_is_internal): Strip it down to only traverse the keymaps.
12715 Move the cache handling from Fwhere_is_internal to here.
12716 (Fwhere_is_internal): Move the handling of remapping and the choice of
12717 the best binding from where_is_internal to here.
12718 Unify the cached/noncached paths, so remapping is also handled
12719 correctly when the cache is used, and so the cache can be used to
12720 speed up remap-handling when applicable.
12721 Give preference to non-remapped bindings.
12722 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12723 non-remapped bindings.
12724 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12725 command remapping.
12726
12727 * xdisp.c (display_mode_element): Move list length limit from 50 to
12728 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12729
12730 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
12731
12732 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12733
12734 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12735
12736 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12737 (Bug#4334)
12738
12739 * keymap.c (where_is_internal): Filter out shadowed remappings.
12740 Assume that where_is_internal returns unshadowed bindings to simplify
12741 the code and get rid of the gotos. Use ASIZE.
12742
12743 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12744
12745 * xterm.c (x_focus_changed): If we get a focusout and pointer
12746 is invisible, make it visible.
12747
12748 * xterm.h: Remove condition for declaration of
12749 x_*_window_to_frame.
12750
12751 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12752
12753 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12754 initial terminal as well.
12755
12756 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12757
12758 * xterm.h: Rename x_non_menubar_window_to_frame to
12759 x_menubar_window_to_frame.
12760
12761 * xterm.c: Remove declarations also in xterm.h.
12762 (XTmouse_position): Do not return valid positions
12763 for clicks in the menubar and the toolbar for Gtk+.
12764
12765 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12766 if the widget for the event has the same top level as a frame,
12767 return the frame.
12768 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12769 internal windows, bug #4122.
12770 (x_non_menubar_window_to_frame): Remove.
12771
12772 2009-09-02 Glenn Morris <rgm@gnu.org>
12773
12774 * buffer.c (default-major-mode): Move most of the doc from here...
12775 (major-mode): ... to here.
12776
12777 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
12778
12779 * process.c (wait_reading_process_output): Keep the descriptor
12780 when pty is used by a non-child process, e.g., in I/O buffer of
12781 GDB this allows inferior to be restarted.
12782
12783 2009-08-29 Eli Zaretskii <eliz@gnu.org>
12784
12785 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12786 both branches into one.
12787
12788 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12789
12790 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12791 (main): Use enable-multibyte-characters rather than
12792 default-enable-multibyte-characters. Output a warning message when
12793 running a unibyte session.
12794
12795 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12796
12797 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12798 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12799 (copy_data_segment): Also copy __program_vars section.
12800 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12801 (dump_it) [LC_DYLD_INFO]: Use it.
12802
12803 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12804
12805 2009-08-28 Eli Zaretskii <eliz@gnu.org>
12806
12807 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12808 $(SRC)/buildobj.h.
12809 (buildobj.h): Rename from $(SRC)/buildobj.h.
12810 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12811 $(SRC)/buildobj.h.
12812 (clean): Add buildobj.h.
12813
12814 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12815
12816 * print.c (print_object): Set escapeflag to 1 when printing
12817 hashtable keys and values.
12818
12819 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12820
12821 * lread.c (read_integer): Use doubles (and potentially return a float
12822 number) as we do in string-to-number.
12823 (read1): Use strtol to read integers, signal errors on strtol's
12824 overflow and use floats if strtol's output is too large for
12825 Elisp integers.
12826
12827 2009-08-27 Eli Zaretskii <eliz@gnu.org>
12828
12829 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12830 (make-buildobj-SH): Fix last change.
12831 (SRC): Move to before where it's first used.
12832
12833 2009-08-27 Kenichi Handa <handa@m17n.org>
12834
12835 * process.c (send_process): Use encode_coding_object instead of
12836 encode_coding_string to perform eol-conversion even if the string
12837 is unibyte.
12838
12839 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12840 character.
12841
12842 * cmds.c (Fself_insert_command): Avoid unnecessay
12843 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
12844
12845 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12846
12847 * callproc.c (Fcall_process): Remove always true #if.
12848
12849 * lisp.h: Replace #if 0 code for checking with text pointing to
12850 the --enable-checking configure flag.
12851
12852 * emacs.c (main): Mention the --enable-profiling configure flag
12853 instead of using CFLAGS.
12854
12855 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
12856
12857 * Makefile.in (buildobj.h): New target.
12858 (doc.o): Depend on it.
12859 (temacs${EXEEXT}): Don't generate buildobj.lst.
12860 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12861 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12862 ($(BLD)/doc.$(O)): Depend on it.
12863 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12864 provided by Eli Zaretskii.)
12865 ($(TEMACS)): Don't generate buildobj.lst.
12866 * doc.c: Include buildobj.h.
12867 (buildobj): New static variable.
12868 (Fsnarf_documentation): Use it, instead of opening and reading
12869 buildobj.lst.
12870
12871 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
12872
12873 * dbusbind.c (Fdbus_call_method)
12874 (Fdbus_call_method_asynchronously): Use English numeric format for
12875 timeout values in doc string.
12876
12877 2009-08-25 Kenichi Handa <handa@m17n.org>
12878
12879 * alloc.c (mark_char_table): New function.
12880 (mark_object): Use mark_char_table for a char-table.
12881
12882 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12883 (CHAR_TABLE_REF): Use it.
12884
12885 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
12886
12887 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12888 before invoking the newly build emacs to check for load-path
12889 shadowing.
12890
12891 2009-08-22 Glenn Morris <rgm@gnu.org>
12892
12893 * Makefile.in (bootstrap_exe): New variable.
12894 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12895 Use ${bootstrap_exe}.
12896
12897 2009-08-22 Eli Zaretskii <eliz@gnu.org>
12898
12899 * coding.h (encode_coding_string): Don't encode unibyte strings.
12900 (Bug#4047)
12901
12902 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
12903
12904 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12905
12906 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12907 intended as hotfix only.
12908 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12909
12910 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12911
12912 * nsterm.m (ns_get_color): Update documentation properly for last
12913 change, and clean up loose ends in the code left by it.
12914 Fix longstanding bug with 16-bit hex parsing, and add support for
12915 yet another X11 format (rgb:r/g/b) for compatibility.
12916 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12917 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12918
12919 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12920
12921 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12922
12923 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
12924
12925 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12926 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12927 (xd_initialize, xd_pending_messages): Check, whether
12928 $DBUS_SESSION_BUS_ADDRESS is set.
12929
12930 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12931
12932 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12933
12934 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12935
12936 2009-08-20 Glenn Morris <rgm@gnu.org>
12937
12938 * emacs.c (system-type): Doc fix.
12939
12940 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12941
12942 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12943 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12944
12945 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
12946
12947 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12948 New functions.
12949 (xd_initialize): Revert change from 2009-08-16.
12950
12951 2009-08-18 Kenichi Handa <handa@m17n.org>
12952
12953 * fontset.c (Ffontset_font): If a nil element is found in a
12954 font-group vector, return nil.
12955
12956 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
12957
12958 * process.c (status_notify): Don't perform redisplay.
12959 (Fdelete_process, list_processes_1, process_send_signal):
12960 Expliticly perform redisplay.
12961 (wait_reading_process_output): Always check process status, but
12962 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12963
12964 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
12965
12966 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
12967 (XFLOAT_INIT): New macro for storing a float value.
12968 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12969 * fns.c (sxhash): Copy out the value of a float in order to
12970 examine its bytes.
12971 * dbusbind.c (xd_append_arg): Likewise.
12972
12973 * emacs.c (main): Don't call syms_of_data twice.
12974
12975 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
12976
12977 * dbusbind.c (xd_initialize): Add connection file descriptor to
12978 input_wait_mask, in order to let select() detect, whether a new
12979 message has been arrived.
12980 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
12981
12982 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
12983
12984 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12985 New functions.
12986
12987 * lisp.h (xd_pending_messages): Declare.
12988
12989 * keyboard.c (readable_events): Call xd_pending_messages.
12990
12991 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
12992
12993 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
12994
12995 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12996
12997 * buffer.c (set_buffer_internal_1)
12998 (swap_out_buffer_local_variables): Check for unbound local
12999 variables (Bug#4138).
13000
13001 2009-08-14 Eli Zaretskii <eliz@gnu.org>
13002
13003 * process.c (create_pty): Fix last change.
13004
13005 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
13006
13007 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13008 (xbm_load_image): Caller changed.
13009 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
13010
13011 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
13012
13013 * process.c (create_pty): New function.
13014 (Fstart_process): Use it to allow Emacs to just associate a pty
13015 with the buffer. See associated change in gdb-mi.el.
13016 (list_processes_1): Deal with no program name.
13017 (start_process_unwind): Use pid == -2 to mean no process.
13018
13019 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
13020
13021 * cmds.c (nonundocount): New global variable.
13022 (keys_of_cmds): Initialize it.
13023 (Fself_insert_command): Use it to combine upto 20 sequential chars
13024 into a single undo entry, just like the Qself_insert_command code in
13025 keyboard.c does.
13026 Call frame_make_pointer_invisible, also like the Qself_insert_command
13027 code in keyboard.c does.
13028 * keyboard.c (command_loop_1): Use the new global nonundocount rather
13029 than its own local replacement for it.
13030
13031 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
13032
13033 * fns.c (concat): Don't re-set string length to its current value.
13034
13035 * coding.h (decode_coding_string, encode_coding_string):
13036 Use SBYTES macro.
13037
13038 * doprnt.c (doprnt_lisp): Delete unused function.
13039 (doprnt): Merge with doprnt1, discarding lispstrings code.
13040 * lisp.h (doprnt_lisp): Don't declare.
13041
13042 2009-08-07 Juri Linkov <juri@jurta.org>
13043
13044 * puresize.h (BASE_PURESIZE): Increase to 1270000.
13045
13046 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13047
13048 * print.c (syms_of_print): Undo previous change.
13049
13050 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
13051
13052 * lread.c (read1, syms_of_lread): Read hashtables back from the
13053 readable format.
13054
13055 * print.c (print_preprocess, print_object): Print hashtables fully
13056 and readably.
13057 (syms_of_print): Provide 'hashtable-print-readable.
13058
13059 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13060
13061 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13062 no family set.
13063 (nsfont_open): Handle case when entity has no family.
13064
13065 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13066
13067 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13068 element, not a list, for match case.
13069
13070 2009-07-28 Kenichi Handa <handa@m17n.org>
13071
13072 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13073 rigidly.
13074
13075 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13076 font_parse_xlfd. Check font properties more rigidly.
13077
13078 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13079
13080 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13081 bsd-common.h.
13082
13083 2009-07-27 Kenichi Handa <handa@m17n.org>
13084
13085 * xfaces.c (face_with_height): Call font_clear_prop.
13086
13087 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
13088
13089 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13090
13091 * xterm.c (x_term_init): Use Qx.
13092
13093 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13094
13095 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
13096 (ns_get_color): Revert 2009-07-16 change.
13097
13098 2009-07-25 Eli Zaretskii <eliz@gnu.org>
13099
13100 * lread.c (syms_of_lread) <force_load_messages>: New variable.
13101 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
13102
13103 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
13104
13105 * coding.h (decode_coding_string, encode_coding_string):
13106 Use SCHARS macro.
13107
13108 * lread.c: Rewrite 2009-07-21 changes.
13109 (load_depth): Delete.
13110 (Qload_in_progress): New variable.
13111 (load_unwind): Don't reference load_depth or load_in_progress.
13112 (Fload): Likewise; specbind Qload_in_progress instead.
13113 (init_lread): Don't initialize load_depth.
13114 (syms_of_lread): Initialize and protect Qload_in_progress.
13115
13116 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13117
13118 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13119
13120 2009-07-23 Yavor Doganov <yavor@gnu.org>
13121
13122 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13123
13124 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13125
13126 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
13127 Bugs 3792, 3720, 2402.
13128 (ns_lookup_indexed_color): Check for bad index.
13129 (ns_index_color): Init unused slot to 0.
13130 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13131 Bug 3714, possibly 3082.
13132
13133 2009-07-22 Jason Rumney <jasonr@gnu.org>
13134
13135 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13136 Position IME window at cursor (Bug#2570).
13137 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13138 (globals_of_w32fns): Dynamically load functions required above.
13139
13140 * w32term.c (w32_draw_window_cursor): Send message to reposition
13141 any IME window.
13142
13143 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13144
13145 * fileio.c: Revert 2009-07-16 changes.
13146 (Vauto_save_include_big_deletions): New variable.
13147 (Fdo_auto_save): Disable auto-save only if
13148 auto-save-include-big-deletions is nil.
13149
13150 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13151
13152 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13153 the overflowed pixels into account (Bug#3879).
13154
13155 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
13156
13157 * lread.c (load_depth): New variable.
13158 (Fload, load_unwind, init_lread): Set it to the load recursion
13159 depth; set load_in_progress as a simple boolean based on the
13160 current load_depth. (Bug#3892)
13161
13162 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13163
13164 * nsfont.m (ns_has_attribute): Remove.
13165 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13166
13167 2009-07-18 Juri Linkov <juri@jurta.org>
13168
13169 * process.c (Fset_process_query_on_exit_flag): Mention killing
13170 a buffer in docstring.
13171
13172 2009-07-17 Kenichi Handa <handa@m17n.org>
13173
13174 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13175
13176 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13177
13178 * nsfns.m (Fns_set_alpha): Remove function.
13179 (syms_of_nsfns): Don't defsubr it.
13180
13181 * nsterm.m (ns_get_color): Remove incompatible color formats.
13182 (ns_color_to_lisp): Generate #rrggbb color format string.
13183
13184 2009-07-16 Richard Stallman <rms@gnu.org>
13185
13186 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13187 (Fset_buffer_auto_saved): Handle save_length = -2.
13188
13189 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
13190
13191 * xterm.c (Qx_gtk_map_stock): New var.
13192
13193 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13194 of calling intern each time.
13195
13196 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13197
13198 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13199 does tiling.
13200
13201 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13202
13203 2009-07-14 Kenichi Handa <handa@m17n.org>
13204
13205 * font.c (font_vconcat_entity_vectors): New function.
13206 (struct font_sort_data): New member font_driver_preference.
13207 (font_compare): Check font_driver_preference.
13208 (font_sort_entities): The format of the first argument changed.
13209 (font_delete_unmatched): Likewise.
13210 (font_list_entities): The return type changed.
13211 (font_select_entity): The format of the second argument changed.
13212 (font_find_for_lface): Adjuste for the above changes.
13213 Don't suppress the checking of C even if the repertory supports it.
13214 (Flist_fonts): Adjust for the above changes.
13215
13216 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13217 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
13218 Reject a font who has adstyle property that is different from a
13219 langname derived from registry property.
13220 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
13221
13222 2009-07-13 Eli Zaretskii <eliz@gnu.org>
13223
13224 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13225 local copy of dirfilename.
13226
13227 2009-07-13 Kenichi Handa <handa@m17n.org>
13228
13229 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13230 against max_char.
13231
13232 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13233 calling XSYMBOL (sym).
13234
13235 2009-07-11 Eli Zaretskii <eliz@gnu.org>
13236
13237 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13238 New function.
13239 (directory_files_internal) [WINDOWSNT]:
13240 Bind w32-get-true-file-attributes to either t or nil, depending whether
13241 the filesystem of the directory is fast or slow.
13242
13243 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13244 file name.
13245 (is_slow_fs): New function.
13246 (stat): Use it to determine whether to issue more system calls to
13247 get accurate file attributes, when w32-get-true-file-attributes is
13248 `local'.
13249
13250 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13251
13252 * xfns.c (Fx_select_font): Remember last font selected in
13253 x_last_font_name and use that the next time. Also try the frame
13254 parameter font-parameter as default to the font dialog.
13255
13256 2009-07-10 Kenichi Handa <handa@m17n.org>
13257
13258 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13259
13260 2009-07-09 Eli Zaretskii <eliz@gnu.org>
13261
13262 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13263
13264 * w32.c (stat): Treat UNC file names as residing on remote
13265 drives. (Bug#3542)
13266
13267 2009-07-09 Kenichi Handa <handa@m17n.org>
13268
13269 * fontset.c (fontset_find_font): Fix previous change.
13270
13271 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
13272
13273 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13274 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13275 error flag.
13276
13277 2009-07-08 Kenichi Handa <handa@m17n.org>
13278
13279 * fontset.c (fontset_find_font): Fix the logic of handling
13280 charset_matched.
13281 (font_for_char): Delete unused var.
13282 (generate_ascii_font_name): Delete it.
13283
13284 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13285
13286 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13287 (encode_coding_sjis): Fix the code range check.
13288
13289 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
13290
13291 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13292 (Fexpand_file_name): Copy string data properly (Bug#3772).
13293
13294 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13295
13296 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13297 first MapNotify.
13298
13299 2009-07-07 Kenichi Handa <handa@m17n.org>
13300
13301 * character.h (unibyte_has_multibyte_table): Delete extern.
13302 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13303
13304 * charset.c (Fset_charset_priority): Update charset_unibyte.
13305 (syms_of_charset): Initialize charset_unibyte.
13306
13307 * character.c (unibyte_has_multibyte_table): Delete it.
13308 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13309 charset_unibyte.
13310 (multibyte_char_to_unibyte_safe): Likewise.
13311 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13312
13313 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
13314 (x_produce_glyphs): Likewise.
13315
13316 * .gdbinit (xcharset): Fix the treating $arg0.
13317
13318 2009-07-04 Eli Zaretskii <eliz@gnu.org>
13319
13320 Emulation of `getloadavg' on MS-Windows.
13321 * w32.c: Include float.h.
13322 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13323 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13324 (get_native_system_info, get_system_times): New functions.
13325 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13326 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13327 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13328 g_b_init_get_system_times, and num_of_processors.
13329
13330 2009-07-03 Jason Rumney <jasonr@gnu.org>
13331
13332 * w32term.c (w32_initialize): Use standard types.
13333
13334 2009-07-03 Eli Zaretskii <eliz@gnu.org>
13335
13336 * dired.c (Ffile_attributes): Decode user and group names by the
13337 locale's encoding. (Bug#3443)
13338
13339 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13340
13341 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13342 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13343
13344 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13345
13346 * term.c (init_tty): Remove spurious #ifdef.
13347
13348 * m/mips.h: Mention this file is also used for netbsd.
13349 * m/pmax.h: Remove file.
13350
13351 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13352
13353 * xterm.h (struct x_display_info): Add invisible_cursor.
13354 (struct x_output): Add current_cursor.
13355
13356 * xterm.c (XTtoggle_invisible_pointer): New function.
13357 (x_define_frame_cursor): Don't define cursor if invisible or the
13358 same as before. Set current_cursor.
13359 (x_create_terminal): Set toggle_invisible_pointer_hook.
13360
13361 * xfns.c (make_invisible_cursor): New function.
13362 (x_set_mouse_color): Call make_invisible_cursor.
13363 Set current_cursor.
13364 (x_window): Set current_cursor.
13365
13366 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13367
13368 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13369 inserting a character.
13370 (read_avail_input): Call frame_make_pointer_visible.
13371
13372 * frame.c (Vmake_pointer_invisible): New variable.
13373 (frame_make_pointer_invisible, frame_make_pointer_visible):
13374 New functions.
13375 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13376
13377 * frame.h: Declare frame_make_pointer_invisible and
13378 frame_make_pointer_visible.
13379 (struct frame): Add pointer_invisible.
13380
13381 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13382
13383 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13384 frame isn't visible.
13385 (xg_frame_resized): If width/height is -1, get size of window
13386 from X server.
13387
13388 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13389 for MapNotify.
13390
13391 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
13392 here or call change_frame_size. Just call flush_and_sync.
13393 (flush_and_sync): Reintroduce.
13394
13395 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
13396
13397 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
13398
13399 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13400 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13401
13402 * frame.h: Declare Qsticky.
13403
13404 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13405
13406 * nsfns.m (ns_frame_parm_handlers): Ditto.
13407
13408 * frame.c: Declare Qsticky.
13409 (frame_parms): Add sticky.
13410
13411 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13412
13413 * xterm.h: Declare x_set_sticky.
13414
13415 * xterm.c (x_set_sticky): New function.
13416
13417 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13418 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13419 xg_tool_bar_proxy_help_callback.
13420
13421 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13422
13423 * frame.c: Qmaximized is new.
13424 (x_set_frame_parameters): Do not handle fullscreen specially.
13425 Only set width and height if explicitly set.
13426 (x_set_fullscreen): Handle Qmaximized.
13427 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13428 (syms_of_frame): Initialize Qmaximized.
13429
13430 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13431 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
13432
13433 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
13434 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13435 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
13436 set gravity to NorthWestGravity when USE_GTK.
13437 (set_wm_state): New function.
13438 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
13439 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13440 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
13441 or the case when no window manager is running. That means remove calls
13442 to x_real_positions and x_fullscreen_adjust.
13443
13444 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13445 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13446 flush_and_sync.
13447 (xg_height_changed): New function.
13448 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
13449 and gtk_window_set_policy. Set frame gravity after parsing the
13450 geometry string.
13451 (xg_update_frame_menubar, free_frame_menubar)
13452 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13453 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13454 Remove calls to xg_frame_set_char_size.
13455
13456 2009-07-01 Kenichi Handa <handa@m17n.org>
13457
13458 * keyboard.c (decode_keyboard_code): New function.
13459 (tty_read_avail_input): Decode the input bytes if necessary.
13460
13461 * coding.c (setup_coding_system):
13462 Initialize coding->carryover_bytes to 0.
13463 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13464 use Qno_conversion.
13465
13466 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13467
13468 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13469
13470 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
13471
13472 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13473
13474 2009-06-30 Jason Rumney <jasonr@gnu.org>
13475
13476 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13477 is already loaded.
13478 Set user model ID if supported (bug#1849).
13479
13480 2009-06-29 Jim Meyering <meyering@redhat.com>
13481
13482 Remove useless if-before-xfree test.
13483 * nsfont.m (nsfont_close): Remove useless test.
13484 * term.c (delete_tty): Likewise.
13485 * w32.c (system_process_attributes): Likewise.
13486 * w32font.c (w32font_close): Likewise.
13487 * xfaces.c (x_free_gc): Likewise.
13488 * xselect.c (buffer): Likewise.
13489
13490 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13491
13492 * process.c (send_process): Keep decoded string in a local
13493 variable and protect it from GC. (Bug#3521)
13494
13495 2009-06-28 Eli Zaretskii <eliz@gnu.org>
13496
13497 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13498 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13499
13500 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
13501
13502 * xdisp.c (start_display, handle_face_prop)
13503 (move_it_vertically_backward, cursor_row_fully_visible_p)
13504 (redisplay_window, try_window_id, produce_image_glyph):
13505 Delete some #ifdef-ed out code chunks that are now obsolete.
13506
13507 * xterm.c (x_update_window_begin, x_new_focus_frame)
13508 (x_scroll_bar_handle_click, handle_one_xevent)
13509 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13510 (x_make_frame_visible, x_make_frame_invisible)
13511 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13512 code chunks that are now obsolete.
13513
13514 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
13515
13516 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13517 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13518 for hours, when optimzation is enabled.
13519 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13520 (xd_read_message): Make them static.
13521
13522 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13523
13524 * term.c (turn_on_face): Allow simultaneously bold and dim
13525 terminal faces (Bug#3530).
13526
13527 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
13528
13529 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13530
13531 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13532 truncation glyphs (Bug#3686).
13533
13534 2009-06-27 Glenn Morris <rgm@gnu.org>
13535
13536 * m/pmax.h: Restore file, with only netbsd portions.
13537
13538 2009-06-26 David Reitter <david.reitter@gmail.com>
13539
13540 * nsterm.m (keydown): Avoid infinite loop.
13541
13542 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13543
13544 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13545 the arg FORCE_SYMBOL.
13546
13547 2009-06-25 Kenichi Handa <handa@m17n.org>
13548
13549 * fontset.c (fontset_find_font): When a usable rfont_def is found
13550 in a fallback font-group, make it the first element of the group.
13551
13552 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
13553
13554 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13555
13556 2009-06-24 Kenichi Handa <handa@m17n.org>
13557
13558 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13559 set for C.
13560 (fontset_font): Record the availability of a font for C both in
13561 the realized fontsets of the current one and the default one.
13562
13563 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13564
13565 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13566 conditional, it is always defined on AIX.
13567
13568 2009-06-23 Miles Bader <miles@gnu.org>
13569
13570 * window.c (Vrecenter_redisplay): New variable.
13571 (syms_of_window): Initialize it.
13572 (Qtty): New extern declaration.
13573 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13574
13575 2009-06-23 Jim Meyering <meyering@redhat.com>
13576
13577 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13578 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
13579 pointer dereferences are guaranteed to be valid.
13580
13581 2009-06-23 Kenichi Handa <handa@m17n.org>
13582
13583 * emacs.c (main): Call init_font ().
13584
13585 * font.h (Vfont_log): Extern it.
13586 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13587
13588 * font.c (font_sort_entities, font_list_entities)
13589 (font_matching_entity, font_open_entity)
13590 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13591 (Vfont_log): Delete static.
13592 (font_log_env_checked): Delete this variable.
13593 (font_add_log): Don't check font_log_env_checked.
13594 (font_deferred_log): Check Vfont_log.
13595 (init_font): New function.
13596
13597 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13598
13599 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13600
13601 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13602
13603 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13604
13605 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13606 (face_for_char): Don't call font_deferred_log here.
13607 (font_for_char): Likewise.
13608
13609 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
13610
13611 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13612 rather than its background_width for drawing the overline and
13613 underline (Bug#489).
13614
13615 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13616 rather than its background_width for drawing the overline and
13617 underline (Bug#489).
13618 (xg_default_icon_file): New variable.
13619 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13620 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
13621
13622 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13623 (load_overlay_strings): Remove externs.
13624 (fast_find_position): Function deleted.
13625 (mouse_face_from_buffer_pos): New function, based on
13626 fast_find_position. Correctly handle before-strings,
13627 display-strings, and after-strings (Bug#1220).
13628 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13629
13630 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13631
13632 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
13633 (move_it_in_display_line_to, move_it_in_display_line_to)
13634 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13635
13636 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13637
13638 * Branch for 23.1.
13639
13640 2009-06-21 Jason Rumney <jasonr@gnu.org>
13641
13642 * w32term.c (keyboard_codepage): New static variable.
13643 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13644 (w32_read_socket) [WM_CHAR]: Use it to decode character
13645 input (bug#3237).
13646 (w32_initialize): Initialize it.
13647 (codepage_for_locale): New function.
13648
13649 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
13650
13651 * process.c (status_message): Pass Faset index argument as a lisp
13652 object, so as to work with USE_LISP_UNION_TYPE.
13653
13654 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13655
13656 * coding.c (Ffind_coding_systems_region_internal):
13657 Cache checked characters.
13658
13659 2009-06-18 Kenichi Handa <handa@m17n.org>
13660
13661 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
13662
13663 2009-06-18 Andreas Schwab <aschwab@redhat.com>
13664
13665 * xdisp.c (redisplay_internal): Check that the frame is still
13666 live after redisplay of its windows.
13667 (redisplay_windows): Check that the window is still live.
13668
13669 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13670
13671 * coding.c (detect_coding_utf_16): Fix previous change.
13672
13673 2009-06-16 Kenichi Handa <handa@m17n.org>
13674
13675 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13676 UTF-16 by checking the dispersion of Eth and Oth bytes.
13677
13678 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13679
13680 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13681
13682 2009-06-15 Kenichi Handa <handa@m17n.org>
13683
13684 * process.c (status_message): Fix previous change. Be sure to
13685 decode a localized string.
13686
13687 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13688
13689 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13690 add comment explaining why.
13691
13692 2009-06-14 Sidney Markowitz <sidney@sidney.com>
13693
13694 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
13695
13696 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13697
13698 * nsfont.m (ns_attribute_value): Remove.
13699 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13700 (ns_has_attribute): Shrink the normal range.
13701 (ns_findfonts): Don't worry about requested spec in determining
13702 need for synthItal.
13703 (ns_get_covering_families): Retain scriptToFamilies.
13704
13705 2009-06-14 Seiji Zenitani <zenitani@mac.com>
13706
13707 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13708
13709 2009-06-11 Kenichi Handa <handa@m17n.org>
13710
13711 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13712 overhang for the static composition case.
13713
13714 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13715
13716 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13717 overhang for the automatic composition case.
13718
13719 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13720 composition case.
13721
13722 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
13723
13724 * xdisp.c (get_next_display_element): When handling wrap-prefix
13725 and line-prefix, treat \n as a control character (bug#3502).
13726
13727 2009-06-10 Kenichi Handa <handa@m17n.org>
13728
13729 * font.c (font_parse_family_registry): Fix for one-char foundry.
13730 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13731
13732 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13733
13734 * process.c (status_message): Fix handling of multibyte signal
13735 string (Bug#3499).
13736
13737 2009-06-09 Jim Meyering <meyering@redhat.com>
13738
13739 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13740 color name is missing.
13741
13742 2009-06-09 Kenichi Handa <handa@m17n.org>
13743
13744 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13745 FROM-CODE and TO-CODE are codepoints of CHARSET.
13746
13747 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13748
13749 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13750
13751 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13752
13753 Changes to support :script/:lang/:otf in NS font driver.
13754 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13755 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13756 indicate not part of font driver interface, and change callers.
13757 (ns_get_family): Remove pointless null check.
13758 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13759 ns_spec_to_descriptor, ns_descriptor_to_entity.
13760 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13761 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13762 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13763 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13764 (ns_get_req_script, ns_accumulate_script_ranges)
13765 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13766 New functions.
13767 (nsfont_list, nsfont_match): Use ns_findfonts.
13768 (nsfont_open): Use font descriptor instead of traits.
13769 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13770 (dump_glyphstring): Rename to ns_dump_glyphstring.
13771
13772 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13773
13774 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13775
13776 * fontset.c (fontset_from_font): Remove NS-specific code.
13777
13778 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
13779
13780 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13781 nonactive windows.
13782
13783 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
13784
13785 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
13786
13787 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13788
13789 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13790
13791 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
13792
13793 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13794 account for the overflowing of newlines into the last glyph on the
13795 display line (Bug#3482).
13796
13797 2009-06-05 David Reitter <david.reitter@gmail.com>
13798
13799 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13800 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
13801 Fns_selection_exists_p, Fns_selection_owner_p.
13802
13803 2009-06-03 Jason Rumney <jasonr@gnu.org>
13804
13805 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13806 available. (Bug#3379)
13807
13808 2009-05-29 Kenichi Handa <handa@m17n.org>
13809
13810 * coding.c (get_translation_table):
13811 Check Venable_character_translation.
13812
13813 2009-05-26 David Reitter <david.reitter@gmail.com>
13814
13815 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13816 (x_make_frame_visible): Move frame to front rather than calling
13817 ns_raise_frame().
13818 (keyDown:): Do not swallow events that aren't re-sent if frame
13819 isn't key window.
13820 (drawRect:): Do not set visibility/iconified flags because
13821 drawRect may be called by NSView even if the frame is hidden.
13822
13823 * nsfns.m (Fx_create_frame): Follow other ports in
13824 determining visibility; default to t. Ensure async_visible is set.
13825
13826 2009-05-23 Eli Zaretskii <eliz@gnu.org>
13827
13828 * dired.c (Ffile_attributes): Doc fix.
13829
13830 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
13831
13832 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13833
13834 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13835
13836 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13837 and xfont_scratch_props.
13838 (syms_of_xfont): Do it here instead.
13839 (xfont_find_ccl_program): Delete, unused.
13840 (xfont_open): Delete unused var `i'.
13841
13842 2009-05-21 Kenichi Handa <handa@m17n.org>
13843
13844 * fontset.c (Qlatin): Don't make it static.
13845
13846 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13847 New functions.
13848 (xfont_scripts_cache, xfont_scratch_props): New variables.
13849 (Qlatin, Vscalable_fonts_allowed): Extern it.
13850 (xfont_list_pattern): Argument changed. Callers changed.
13851 Check Vscalable_fonts_allowed. Check the support of a script.
13852 (xfont_list): Don't reject a font spec with :script property.
13853 (xfont_has_char): Fix setting of encoding.
13854 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13855 xfont_scratch_props.
13856
13857 2009-05-19 Kenichi Handa <handa@m17n.org>
13858
13859 * font.c (font_sort_entities): Rename from font_sort_entites.
13860 Callers changed.
13861
13862 2009-05-18 Kenichi Handa <handa@m17n.org>
13863
13864 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13865
13866 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13867
13868 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13869 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13870
13871 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13872
13873 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13874 (x_delete_terminal): Dissociate resource database from display and
13875 then call XrmDestroyDatabase before closing display.
13876
13877 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13878
13879 * nsterm.m (ns_read_socket): Remove unused variable.
13880 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13881 whether selected frame is viable before raising it (based on patch
13882 by David Reitter), and improve commentary.
13883 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
13884
13885 2009-05-15 Kenichi Handa <handa@m17n.org>
13886
13887 * font.c (Ffont_spec): Check arguments.
13888
13889 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
13890
13891 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13892 weight when testing attributes (Bug#3282).
13893
13894 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13895
13896 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13897 what we expect to get in the next ConfigureNotify event.
13898
13899 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13900 before Xft one (Bug#1696).
13901
13902 2009-05-07 David Reitter <david.reitter@gmail.com>
13903
13904 * nsfns.m (Fx_display_planes): Compute bitplanes using
13905 NSBitsPerPixelFromDepth (Bug#3207).
13906
13907 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
13908
13909 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13910
13911 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
13912
13913 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13914
13915 2009-05-07 David Reitter <david.reitter@gmail.com>
13916
13917 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13918 Respect mouse face background.
13919
13920 2009-05-07 David Reitter <david.reitter@gmail.com>
13921
13922 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13923 Mouse movement/highlight: bracket drawing operations
13924 in ns_update_begin and ns_update_end.
13925
13926 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13927
13928 * nsfns.m (ns_get_screen): Rewrite.
13929 Don't presume selected-frame is of type `ns'.
13930
13931 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13932 all drivers.
13933
13934 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13935
13936 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13937
13938 * keyboard.h (add_user_signal): Fix typo in extern.
13939
13940 * lisp.h (add_user_signal): Remove extern.
13941
13942 * unexelf.c (unexec): Consider a section to precede the .bss section
13943 if its addresses overlap that of .bss.
13944 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13945 instead of dumping process.
13946
13947 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13948
13949 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13950
13951 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13952
13953 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13954
13955 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13956
13957 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13958 any statements.
13959
13960 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13961
13962 * process.c (read_process_output): Make sure the current buffer is
13963 always restored.
13964
13965 * coding.c (record_conversion_result): Don't modify
13966 Vlast_code_conversion_error for successful result.
13967 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13968
13969 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13970
13971 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
13972 (load_charset_map): Remove unnecessary code.
13973
13974 2009-04-30 David Reitter <david.reitter@gmail.com>
13975
13976 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
13977 through f24.
13978
13979 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
13980
13981 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13982
13983 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13984 face_at_buffer_position.
13985 (face_before_or_after_it_pos, get_next_display_element)
13986 (note_mouse_highlight): Update face_at_buffer_position call.
13987
13988 * term.c (term_mouse_highlight):
13989 * msdos.c (IT_note_mouse_highlight):
13990 * fontset.c (Finternal_char_font):
13991 * font.c (font_at, font_range): Update face_at_buffer_position call.
13992
13993 * dispextern.h (face_at_buffer_position): Update prototype.
13994
13995 2009-04-30 Kenichi Handa <handa@m17n.org>
13996
13997 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
13998
13999 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
14000
14001 * callproc.c (Fcall_process): Fix GC protection. Make sure
14002 current buffer is always restored.
14003
14004 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14005
14006 * atimer.c (init_atimer): Also clear stopped_atimers.
14007
14008 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14009
14010 * process.c (create_process): Clean up merger residues of
14011 2008-07-17 change.
14012
14013 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
14014
14015 * lread.c (Vread_circle): New variable.
14016 (read1): Disable recursive read if Vread_circle is nil.
14017
14018 2009-04-29 Kenichi Handa <handa@m17n.org>
14019
14020 * fontset.h (set_default_ascii_font): Delete extern.
14021
14022 * fontset.c (set_default_ascii_font): Delete this unused function.
14023
14024 * frame.c (x_set_font): When ARG is a font-object, check if the
14025 font-object matches with the ASCII font-spec of the frame's
14026 fontset. If not, create a new fontset for the frame. (Bug #3075)
14027
14028 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
14029
14030 * fns.c (Flocale_info): Protect vector from GC during decoding.
14031
14032 * process.c (Fstart_process): Protect argv strings from GC during
14033 encoding.
14034
14035 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
14036
14037 * sysdep.c: Include <ctype.h>.
14038
14039 2009-04-27 David Reitter <david.reitter@gmail.com>
14040
14041 * nsfont.m (nsfont_open): Remove unused variable shrink.
14042 Remove commented-out code.
14043
14044 2009-04-26 Johan Bockgård <bojohan@gnu.org>
14045
14046 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14047
14048 2009-04-25 Jason Rumney <jasonr@gnu.org>
14049
14050 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14051
14052 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14053
14054 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14055 Swap bytes in short integer if fringe bitmap width > 8.
14056
14057 2009-04-23 Kenichi Handa <handa@m17n.org>
14058
14059 * xfaces.c (Fx_list_fonts): If a font size is specified in
14060 PATTERN, set it in returned scalable fonts.
14061
14062 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
14063
14064 * keyboard.c (Fset_input_meta_mode): Doc fix.
14065
14066 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14067
14068 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
14069
14070 * coding.c (Fterminal_coding_system): Doc fix.
14071
14072 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14073 (Fx_display_pixel_height, Fx_display_planes)
14074 (Fx_display_color_cells, Fx_server_max_request_size)
14075 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14076 (Fx_display_mm_height, Fx_display_mm_width)
14077 (Fx_display_backing_store, Fx_display_visual_class)
14078 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14079 Doc fixes, replacing "terminal id" with "terminal object".
14080 (check_x_display_info): Handle terminal objects instead of
14081 terminal ids.
14082
14083 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14084 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
14085 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14086 Doc fixes, replacing "terminal id" with "terminal object".
14087
14088 2009-04-21 Kenichi Handa <handa@m17n.org>
14089
14090 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
14091 (font_score): Check AVGWIDTH too.
14092
14093 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14094 worst case.
14095 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14096 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
14097
14098 2009-04-19 Jason Rumney <jasonr@gnu.org>
14099
14100 The following changes fix Bug#3005 for wide glyphs on each platform,
14101 without reintroducing Bug#1258 for stretch glyphs.
14102
14103 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14104 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14105 get_phys_cursor_geometry.
14106
14107 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
14108 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14109 using get_phys_cursor_geometry.
14110
14111 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14112 correctly calculated.
14113
14114 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14115
14116 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14117 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
14118 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14119 is deprecated.
14120
14121 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14122
14123 * font.c (font_put_frame_data): Use xfree instead of free.
14124
14125 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
14126
14127 * w32font.c (Qja, Qko): Remove declarations.
14128 (syms_of_w32font): Don't DEFSYM them.
14129
14130 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
14131
14132 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14133
14134 * font.h (Qja, Qko): Extern them.
14135
14136 * ftfont.c (Qja, Qko): Remove declarations.
14137
14138 * xfont.c (Qja, Qko): Remove declarations.
14139
14140 2009-04-17 Kenichi Handa <handa@m17n.org>
14141
14142 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14143 string from a vector to handle Latin-1 characters correctly.
14144
14145 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14146 entity even if the cache hits.
14147
14148 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14149
14150 * search.c (boyer_moore): Use zero as marker value for a possible
14151 match instead of depending on overflow behavior. (Bug#2844)
14152
14153 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14154 * lisp.h: Adjust prototypes.
14155
14156 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
14157
14158 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14159 change (Bug#3003).
14160
14161 2009-04-16 Kenichi Handa <handa@m17n.org>
14162
14163 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
14164
14165 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14166 adstyle.
14167
14168 * ftfont.c (Qja, Qko): Don't make them static.
14169 (enum ftfont_cache_for): New enum.
14170 (fc_charset_table): Undo the previous change.
14171 (ftfont_get_latin1_charset): Delete it.
14172 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14173 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
14174 non-scarable font, try to get AVERAGE_WIDTH.
14175 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14176 Change ft_face_cache from a list of a hash-table. Don't check
14177 `ja' and `ko' adstyle here.
14178 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14179 FTFONT_CACHE_FOR_CHARET.
14180 (ftfont_get_charset): Undo the previous change.
14181 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
14182 (ftfont_close): Likewise.
14183 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14184
14185 * font.c (font_sort_entites): Change the meaning of the arg
14186 BEST-ONLY. Don't optimize for VEC of lenght 1.
14187 (font_select_entity): Just return the value of font_sort_entites.
14188
14189 * xfaces.c (merge_face_vectors): Reflect font properties in
14190 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14191 font_clear_prop if a face attribute doesn't change.
14192
14193 * charset.h (charset_ksc5601): Extern it.
14194
14195 * charset.c (charset_ksc5601): New variable.
14196 (Fdefine_charset_internal): Set charset_ksc5601.
14197 (init_charset_once): Initialize charset_ksc5601 to -1.
14198
14199 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14200
14201 * fileio.c (history_delete_duplicates): Remove unused declaration.
14202
14203 * callint.c (history_delete_duplicates): New declaration.
14204 (Fcall_interactively): Remove command history duplicates when
14205 history_delete_duplicates is true.
14206
14207 2009-04-14 Eli Zaretskii <eliz@gnu.org>
14208
14209 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14210
14211 2009-04-14 Kenichi Handa <handa@m17n.org>
14212
14213 * font.c (Ffont_info): Fix docstring. Fix the second element of
14214 the returned value (bug#2949).
14215
14216 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
14217
14218 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14219
14220 2009-04-14 Kenichi Handa <handa@m17n.org>
14221
14222 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14223 encoding charset is ascii_compatible.
14224
14225 * charset.c (Fdefine_charset_internal): Make charset
14226 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14227 code_offset is 0, and covers all ASCII characters.
14228
14229 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14230
14231 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14232 (ns_string_to_pasteboard_internal):
14233 * nsmenu.m (process_dialog):
14234 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14235 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14236 * lisp.h (Fx_load_color_file): Declare.
14237
14238 2009-04-13 Kenichi Handa <handa@m17n.org>
14239
14240 * font.c (font_delete_unmatched): Preserve the order of list elements.
14241 (font_select_entity): Suppress the code to optimize for the same
14242 kind of fonts.
14243 (font_load_for_lface): Get a font that supports at least ASCII
14244 characters.
14245
14246 * ftfont.c (Qja, Qko): New variables.
14247 (fc_charset_table): Delete uniquifier data for iso8859-1.
14248 (ftfont_get_latin1_charset): New function.
14249 (get_adstyle_property): New function.
14250 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14251 bitmap fonts.
14252 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14253 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14254 `ko' or `ja'.
14255 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
14256 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
14257 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14258 property.
14259 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14260 (syms_of_ftfont): DEFSYM Qja and Qko.
14261
14262 2009-04-09 Kenichi Handa <handa@m17n.org>
14263
14264 * charset.c (map_charset_chars): For a charset of `superset'
14265 method, fix calculation of code range.
14266
14267 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14268 from the list of extra properties.
14269 (font_clear_prop): Be sure to delete `:name' font property.
14270
14271 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14272
14273 * dispnew.c (redraw_overlapping_rows): Fix detection of
14274 overlapping for topmost and bottommost rows.
14275
14276 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
14277
14278 2009-04-06 Jason Rumney <jasonr@gnu.org>
14279
14280 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14281
14282 2009-04-06 Kenichi Handa <handa@m17n.org>
14283
14284 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14285
14286 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14287
14288 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14289
14290 * ftfont.c (ftfont_open): Fix checking of the return value of
14291 FT_Load_Char. Fix setting font->underline_thickness.
14292
14293 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
14294
14295 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14296 (Fterminal_parameters, Fterminal_parameter)
14297 (Fset_terminal_parameter): In doc string, refer to terminal
14298 objects rather than terminal ids.
14299
14300 2009-04-04 Eli Zaretskii <eliz@gnu.org>
14301
14302 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14303 ret_lim_data. (Bug#2867)
14304
14305 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
14306
14307 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14308 so they don't get wider than the window, matching 2006-01-23
14309 change to the partner function in xdisp.c (Bug#2800).
14310
14311 2009-04-03 Kenichi Handa <handa@m17n.org>
14312
14313 * print.c (print_object): Make each lowest sub_char_table start a
14314 new line (Bug#2866).
14315
14316 2009-04-02 Kenichi Handa <handa@m17n.org>
14317
14318 * fontset.c (fontset_font): Record no-font when a fontset
14319 explicitly tells not to try another font-specs.
14320
14321 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14322
14323 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14324
14325 2009-03-30 Kenichi Handa <handa@m17n.org>
14326
14327 * fontset.c (fontset_from_font): Specify only registry in a
14328 font-spec for all characters supported by that registry.
14329
14330 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14331 even if HAVE_M17N_FLT is not defined.
14332
14333 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14334
14335 * ftfont.c: Conditionalize prototyping and use of
14336 ftfont_variation_glyphs.
14337
14338 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14339
14340 * frame.c (delete_frame): Work around compiler bug.
14341
14342 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14343 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14344 Some more EMACS_INT.
14345 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14346
14347 * xdisp.c (dump_glyph): Fix typo.
14348
14349 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14350 (adjust_markers_gap_motion, adjust_markers_for_delete)
14351 (adjust_markers_for_insert, adjust_point)
14352 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14353 (make_gap, copy_text, count_size_as_multibyte, insert)
14354 (insert_and_inherit, insert_before_markers)
14355 (insert_before_markers_and_inherit, insert_1)
14356 (count_combining_before, count_combining_after, insert_1_both)
14357 (insert_from_string, insert_from_string_before_markers)
14358 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14359 (insert_from_buffer_1, adjust_after_replace)
14360 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14361 (replace_range_2, del_range, del_range_1, del_range_byte)
14362 (del_range_both, del_range_2, modify_region)
14363 (prepare_to_modify_buffer, signal_before_change)
14364 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14365 for buffer positions and sizes.
14366 * lisp.h: Adjust prototypes accordingly.
14367
14368 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14369 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14370 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14371
14372 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14373
14374 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14375
14376 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14377 lines and columns so we keep the same pixel height and width.
14378
14379 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14380 the property _NET_WM_STATE has changed.
14381 (x_handle_net_wm_state): New function to update frame parameter
14382 fullscreen.
14383 (x_term_init): Initialize atoms for _NET_WM_STATE.
14384
14385 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14386
14387 2009-03-27 Kevin Ryde <user42@zip.com.au>
14388
14389 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14390 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14391 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14392 (Fgpm_mouse_stop): Pass that new parameter.
14393 * termhooks.h (close_gpm): Adjust prototype.
14394
14395 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14396
14397 * lisp.h (Fx_focus_frame): Declare.
14398
14399 * callint.c (Fcall_interactively): For '^' just delegate the work to
14400 handle-shift-selection.
14401 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14402
14403 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
14404
14405 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14406
14407 * data.c (Qinteractive_form): New variable.
14408 (Finteractive_form): Use it.
14409
14410 * eval.c (Fcommandp): Use Qinteractive_form.
14411
14412 2009-03-24 Jason Rumney <jasonr@gnu.org>
14413
14414 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14415 Calculate total size precisely. Decode environment variables
14416 before substituting. (Bug#38)
14417
14418 2009-03-24 Kenichi Handa <handa@m17n.org>
14419
14420 * font.c (find_font_encoding): Return Qnil for unsupported
14421 encoding (Bug#2722).
14422
14423 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14424
14425 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14426 that gdpy is set.
14427
14428 2009-03-22 Alan Mackenzie <acm@muc.de>
14429
14430 * callint.c (Finteractive): Clarify the doc string - even
14431 promptless elements need \n separators.
14432
14433 2009-03-22 Jason Rumney <jasonr@gnu.org>
14434
14435 * w32term.c (syms_of_w32term): Doc fix for
14436 x-use-underline-position-properties.
14437
14438 2009-03-21 Eli Zaretskii <eliz@gnu.org>
14439
14440 * w32.c (getpwuid): Change argument type to unsigned.
14441 (struct w32_id): Change type of `rid' member to unsigned.
14442 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14443 argument ID to unsigned. All callers changed.
14444 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14445
14446 2009-03-20 Eli Zaretskii <eliz@gnu.org>
14447
14448 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14449 negative, produce a float value.
14450
14451 * dired.c (make_uid, make_gid): New functions.
14452 (Ffile_attributes): Use them to avoid negative UID and GID.
14453
14454 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
14455
14456 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14457 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14458 Fix typos in docstrings.
14459
14460 2009-03-19 Kenichi Handa <handa@m17n.org>
14461
14462 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14463 changed, use font_load_for_lface to get a new font object.
14464 Call free_realized_fontset after handling ASCII font change.
14465
14466 * frame.c (x_set_font): Handle the case that ARG is a cons.
14467
14468 2009-03-19 Glenn Morris <rgm@gnu.org>
14469
14470 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14471
14472 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
14473
14474 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14475
14476 2009-03-19 Kenichi Handa <handa@m17n.org>
14477
14478 * charset.c (load_charset_map_from_file): When a mapfile can't be
14479 loaded, signal an error.
14480
14481 2009-03-18 Eli Zaretskii <eliz@gnu.org>
14482
14483 * dired.c (Ffile_attributes): Make sure UID and GID are always
14484 positive, even if the value is too large for a positive EMACS_INT.
14485 Doc fix.
14486
14487 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14488
14489 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14490
14491 * xmenu.c (xdialog_show): Move Fredisplay call ...
14492 (Fx_popup_dialog): ... here.
14493
14494 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14495
14496 * dired.c (file_name_completion): Disable the first optimization just
14497 installed, since it is not implemented correctly.
14498
14499 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14500
14501 * dired.c (file_name_completion): Check completion-ignored-extensions
14502 only if the entry can affect bestmatch.
14503 Stop the search early, as Ftry_completion already does.
14504
14505 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
14506
14507 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14508
14509 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
14510
14511 * keyboard.c (parse_menu_item): Don't display remappings as menu
14512 equivalent bindings (Bug#788).
14513
14514 2009-03-15 Jason Rumney <jasonr@gnu.org>
14515
14516 * w32term.h (WM_EMACS_PAINT): New message.
14517 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14518 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14519 before passing to lisp thread. (Bug#950)
14520
14521 2009-03-14 David Reitter <david.reitter@gmail.com>
14522
14523 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14524 variable as it was never reset.
14525 (ns_term_init): Remove initialization of Lisp-settable defaults
14526 and ns_expand_space.
14527 (-setPanelFromDefaultValues): Remove ns_expand_space.
14528 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14529 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14530 i.e. no additional spacing, similar to Carbon port.
14531
14532 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14533 * nsfns.m (ns-popup-prefs-panel): Remove.
14534
14535 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14536
14537 * sound.c (alsa_configure): Remove call to deprecated
14538 snd_pcm_sw_params_set_xfer_align.
14539
14540 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
14541
14542 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14543 after clicking in a detached tool bar.
14544 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14545
14546 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14547
14548 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14549 int/Lisp_Object mixup).
14550
14551 2009-03-13 Kenichi Handa <handa@m17n.org>
14552
14553 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14554 Handle NAME nil and t correctly. Callers changed.
14555 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14556 (set_fontset_font): Change ARG to a vector. Handle range_list in
14557 ARG correctly.
14558 (Fset_fontset_font): Fix the case that TARGET is both a script
14559 name and charset name. Adjust the arg to set_fontset_font for
14560 the above change.
14561 (fontset_from_font): Fix previous change.
14562 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
14563 entry. If FONTSET is the default fontset, don't set the extra
14564 slot of the returning char-table.
14565
14566 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
14567
14568 * nsfns.m (Fx_close_connection): Doc fix.
14569 (Fns_do_applescript): Reflow docstring.
14570 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14571 (Fx_display_pixel_width, Fx_display_pixel_height)
14572 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14573 Fix typos in docstrings.
14574 (Fns_set_alpha): Fix typos in error messages.
14575
14576 2009-03-12 David Reitter <david.reitter@gmail.com>
14577
14578 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
14579 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14580 were used for such events.
14581
14582 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14583 (toggleToolbar, performDragOperation, runHelp): Use it.
14584
14585 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
14586 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14587
14588 2009-03-11 Kenichi Handa <handa@m17n.org>
14589
14590 * font.h (font_open_by_spec): Extern it.
14591
14592 * font.c (font_open_by_spec): New function.
14593 (font_open_by_name): Use font_open_by_spec.
14594
14595 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14596 fontset of the frame.
14597
14598 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14599 modify the default font of frames that use this fontset.
14600 (num_auto_fontsets): New variable.
14601 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14602 name. Be sure to set FONTSET_ASCII to the correct font name.
14603 (update_auto_fontset_alist): New function.
14604
14605 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
14606
14607 * makefile.w32-in: Update dependencies.
14608
14609 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14610
14611 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14612
14613 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14614
14615 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14616
14617 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
14618
14619 * lread.c (Feval_buffer): Doc fix.
14620
14621 2009-03-09 Kenichi Handa <handa@m17n.org>
14622
14623 * charset.c (Qfile_name_handler_alist): Extern it.
14624 (load_charset_map_from_file): Temporarily bind
14625 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14626
14627 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
14628
14629 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14630 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
14631
14632 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14633
14634 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14635 (x_set_window_size): Change back to calculated method of setting
14636 toolbar height under Cocoa. (Bug#2546)
14637 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14638 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14639
14640 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14641
14642 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14643 accelerator in parens under GNUstep.
14644
14645 2009-03-06 Kenichi Handa <handa@m17n.org>
14646
14647 These changes are to detect incorrect composition sequence without
14648 looking ahead the source. (Bug#2370)
14649
14650 * coding.h: Include "composite.h".
14651 (enum compisition_state): New enum.
14652 (struct compisition_status): New struct.
14653 (struct iso_2022_spec): New member cmp_status.
14654 (struct emacs_mule_spec): New struct.
14655 (struct coding_system): New members ctext_extended_segment_len and
14656 embedded_utf_8. Change the union member
14657 spec.emacs_mule_full_support to spec.emacs_mule.
14658
14659 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14660 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
14661 (MAX_ANNOTATION_LENGTH): Define to 5.
14662 (ADD_COMPOSITION_DATA): New arg nbytes.
14663 (emacs_mule_char): New arg cmp_status.
14664 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14665 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14666 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14667 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14668 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14669 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14670 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14671 (EMACS_MULE_COMPOSITION_END): New macro.
14672 (emacs_mule_finish_composition): New function.
14673 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14674 (decode_coding_emacs_mule): Avoid long looking ahead while
14675 handling composition.
14676 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14677 (ENCODE_COMPOSITION_RULE): New macro.
14678 (finish_composition): New function.
14679 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14680 (DECODE_COMPOSITION_START): New implementation.
14681 (DECODE_COMPOSITION_END): Likewise.
14682 (STORE_COMPOSITION_RULE): New macro.
14683 (decode_coding_iso_2022): Avoid long looking ahead while handling
14684 composition, CTEXT extended segment, and embedded UTF-8.
14685 (setup_coding_system): For a coding of type iso-2022, reset
14686 CODING_ISO_EXTSEGMENT_LEN (coding) and
14687 CODING_ISO_EMBEDDED_UTF_8 (coding).
14688 (get_translation): Delete arguments last_block, from_nchars,
14689 to_nchars. Callers changed.
14690 (produce_chars): Don't modify charbuf. Adjusted for the change of
14691 get_translation.
14692 (produce_composition): Adjust for the new annotation sequence.
14693 (handle_composition_annotation): Likewise.
14694 (consume_chars): Adjust for the change of get_translation.
14695
14696 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14697
14698 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
14699
14700 2009-03-05 Kenichi Handa <handa@m17n.org>
14701
14702 * font.c (font_select_entity): New function.
14703 (font_find_for_lface): Use font_select_entity to select a font.
14704
14705 * fontset.c (fontset_find_font): If a font found without
14706 restricting to the characters C doesn't support C, try to find a
14707 font with C restriction.
14708
14709 2009-03-04 Nikolaj Schumacher <me@nschum.de>
14710
14711 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
14712
14713 2009-03-04 Jason Rumney <jasonr@gnu.org>
14714
14715 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
14716 characters that have already been read. (Bug#2569)
14717
14718 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14719 Log an error message if check_image_size failed.
14720 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
14721 (gs_load): Mention max-image-size in size error message. (Bug#2560)
14722
14723 2009-03-02 Eli Zaretskii <eliz@gnu.org>
14724
14725 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14726 when decoding process output.
14727
14728 2009-03-01 Richard M Stallman <rms@gnu.org>
14729
14730 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14731
14732 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14733
14734 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14735
14736 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14737 (decode_coding_emacs_mule, decode_coding_iso_2022)
14738 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14739 (decode_coding_raw_text, decode_coding_charset)
14740 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14741 Honor inhibit-eol-conversion. (Bug #2186)
14742
14743 2009-02-28 Jason Rumney <jasonr@gnu.org>
14744
14745 * coding.c (detect_coding_charset): If not checking latin extra,
14746 fail on characters between 0x80 and 0xA0. (Bug#2354)
14747
14748 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14749
14750 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
14751 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
14752
14753 2009-02-27 Glenn Morris <rgm@gnu.org>
14754
14755 * callint.c (Finteractive): Doc fix.
14756
14757 2009-02-27 Kenichi Handa <handa@m17n.org>
14758
14759 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14760
14761 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
14762
14763 * font.c (font_style_to_value): Set value for unknown symbols to
14764 100 instead of 255.
14765 (weight_table, slant_table, width_table): Treat "unspecified" as
14766 the default value.
14767
14768 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
14769
14770 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14771
14772 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
14773
14774 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14775 error as soon as a recursive load is detected.
14776
14777 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14778
14779 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14780 before caching.
14781
14782 2009-02-24 Kenichi Handa <handa@m17n.org>
14783
14784 * fontset.c (fontset_find_font): Fix the condition for checking
14785 unavailable font.
14786
14787 2009-02-24 Glenn Morris <rgm@gnu.org>
14788
14789 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14790 whitespace that confuses documentation.
14791
14792 2009-02-23 Miles Bader <miles@gnu.org>
14793
14794 * process.c (Flist_system_processes, Fprocess_attributes)
14795 (syms_of_process): Rename `system-process-attributes' to
14796 `process-attributes'.
14797
14798 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14799
14800 * coding.h (struct coding_system): Make safe_charsets a pointer to
14801 unsigned char.
14802 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14803 being 255.
14804 (SAFE_CHARSET_P): Likewise.
14805 (setup_iso_safe_charsets): Properly setup safe_charsets.
14806 (Fdefine_coding_system_internal): Likewise.
14807 (setup_coding_system): Likewise. Remove unneeded casts.
14808 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
14809 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14810 Remove unneeded casts.
14811
14812 * insdel.c (del_range_2): Don't modify gap contents when called
14813 from decode_coding_object. (Bug#1809)
14814
14815 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
14816
14817 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14818 Qfont_object.
14819 (Ftype_of): Recognize font objects.
14820
14821 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14822
14823 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14824 Definitions moved to data.c.
14825
14826 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14827
14828 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14829 async_iconified. Based on a patch by Christian Lynbech
14830 <christian.lynbech@tieto.com>.
14831 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14832
14833 2009-02-20 Glenn Morris <rgm@gnu.org>
14834
14835 * syntax.c (Fskip_chars_forward): Fix doc typo.
14836
14837 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
14838
14839 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14840
14841 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
14842
14843 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14844
14845 2009-02-19 Kenichi Handa <handa@m17n.org>
14846
14847 * coding.c (detect_coding): Preserve coding->mode.
14848 Don't overflow coding->carryover. (Bug#2370)
14849
14850 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14851
14852 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14853
14854 2009-02-18 Kenichi Handa <handa@m17n.org>
14855
14856 * font.c (font_check_otf_features): Fix handling of `nil' element.
14857 (Ffont_spec): Describe :lang and :otf in the docstring.
14858
14859 2009-02-16 Andreas Schwab <schwab@suse.de>
14860
14861 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14862 string.
14863
14864 2009-02-16 Kenichi Handa <handa@m17n.org>
14865
14866 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
14867 (Bug#1723)
14868
14869 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
14870
14871 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
14872
14873 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14874 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14875
14876 2009-02-14 Eli Zaretskii <eliz@gnu.org>
14877
14878 * msdos.c (MAX_SCREEN_BUF): New macro.
14879 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14880 Encode the entire run of glyphs sharing the same face, instead of
14881 doing that one glyph at a time (fixes a bug with displaying
14882 double-size characters).
14883
14884 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14885
14886 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14887
14888 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14889 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
14890 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
14891
14892 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
14893 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
14894
14895 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14896
14897 * keyboard.c (adjust_point_for_property): Allow stopping between two
14898 invisible areas.
14899
14900 2009-02-12 Jason Rumney <jasonr@gnu.org>
14901
14902 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14903 (add_font_entity_to_list): Call check_face_name even when family
14904 is unspecified.
14905
14906 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14907 Release DC when finished. Use NULL window to refer to desktop.
14908 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
14909
14910 * w32font.c (add_font_entity_to_list): Fix check for substituted
14911 raster fonts. (Bug#2219)
14912
14913 2009-02-12 Kenichi Handa <handa@m17n.org>
14914
14915 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14916 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14917 (autocmp_chars): Use fast_looking_at. Don't compose more
14918 characters than MAX_COMPOSITION_COMPONENTS.
14919 (find_automatic_composition): While looking forward and backward,
14920 check static composition. Fix where to stop looking forward.
14921 (composition_adjust_point): Fix checking of static composition.
14922 (Fcomposition_get_gstring): Pay attention to
14923 MAX_COMPOSITION_COMPONENTS.
14924
14925 * lisp.h (fast_looking_at): Extern it.
14926
14927 * search.c (fast_looking_at): New function.
14928
14929 * term.c (encode_terminal_code): Adjust for the change of
14930 <struct glyph>.u.cmp.to.
14931 (append_composite_glyph): Likewise.
14932
14933 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
14934 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14935 composition.
14936 (append_composite_glyph): Adjust for the change of
14937 <strcut glyph>.u.cmp.to.
14938
14939 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
14940
14941 * casetab.c (init_casetab_once):
14942 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14943 * font.c (font_update_lface):
14944 * fontset.c (Fnew_fontset):
14945 * ftfont.c (ftfont_drive_otf):
14946 * xfont.c (xfont_open):
14947 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14948
14949 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14950
14951 * fileio.c (Fwrite_region): !NILP -> CONSP.
14952
14953 2009-02-10 Andreas Schwab <schwab@suse.de>
14954
14955 * process.c (send_process): Properly relocate pointer into data
14956 when using encoded data. (Bug#2272)
14957
14958 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14959
14960 * coding.c (detect_coding_charset): Fix previous change.
14961
14962 2009-02-08 Jason Rumney <jasonr@gnu.org>
14963
14964 * w32fns.c (w32_hide_hourglass): Handle case where frame
14965 disappeared while hourglass was displayed. (Bug #2193)
14966
14967 2009-02-07 Andreas Schwab <schwab@suse.de>
14968
14969 * unexelf.c (unexec): Fix error message.
14970
14971 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14972
14973 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
14974 when modal window is active. (Bug #2152)
14975 (applicationShouldTerminate:): Remove now-unneeded while loop
14976 around NSRunAlertPanel.
14977
14978 * nsmenu.m (popupSession): New file-global variable.
14979 (pop_down_menu): End the popupSession before closing dialog.
14980 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14981 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14982 don't query NSApp for events (just sleep instead).
14983
14984 2009-02-07 Eli Zaretskii <eliz@gnu.org>
14985
14986 * coding.c (syms_of_coding) <translation-table-for-input>:
14987 Modify doc string to discourage use for character code unification.
14988
14989 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14990
14991 * atimer.c (run_timers): Update pending_atimers.
14992
14993 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
14994
14995 * image.c (svg_load_image): Fix last change.
14996
14997 * xfns.c (Fx_create_frame): Signal an error if no font is
14998 found (Bug#2147).
14999
15000 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
15001
15002 * character.c (syms_of_character) <script-representative-chars>:
15003 Fix typo in docstring.
15004
15005 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15006
15007 * nsmenu.m (pop_down_menu): New function.
15008 (ns_popup_dialog): Call it on unwind.
15009 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15010 call timer_check() (Bug#2154).
15011 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15012 handling_signal is set.
15013 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15014
15015 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
15016
15017 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15018
15019 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15020
15021 * keyboard.c (poll_for_input_1, handle_async_input):
15022 Set handling_signal under HAVE_NS.
15023
15024 2009-02-04 Glenn Morris <rgm@gnu.org>
15025
15026 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15027
15028 2009-02-04 Kenichi Handa <handa@m17n.org>
15029
15030 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15031
15032 * charset.c (Fchar_charset): New optional arg restriction.
15033
15034 * coding.h (coding_system_charset_list): Extern it.
15035
15036 * coding.c (coding_system_charset_list): New function.
15037
15038 * composite.c: Include coding.h and termhooks.h.
15039 (composition_gstring_p): Fix for the terminal case.
15040 (composition_gstring_width): Likewise.
15041 (fill_gstring_body): Likewise.
15042 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15043 the frame.
15044 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15045 is within a composition.
15046 (Fcomposition_get_gstring): Fix the terminal case.
15047
15048 * term.c (encode_terminal_code): Fix handling of composition.
15049 (produce_composite_glyph): For static composition, get pixel_width
15050 from struct composition.
15051
15052 2009-02-02 Andreas Schwab <schwab@suse.de>
15053
15054 * unexelf.c (unexec): Handle unaligned bss offset.
15055
15056 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15057
15058 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15059 XT,w32read_socket changes to ns_read_socket.
15060
15061 * keyboard.c (handle_interrupt): Don't call
15062 quit_throw_to_read_char() under NS.
15063
15064 * blockinput.h: Remove NS-specific code.
15065
15066 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15067
15068 * dispnew.c (window_change_signal): Don't try to get the size of a
15069 suspended tty frame.
15070 * term.c (Fresume_tty): Resize if the size has changed while the
15071 tty was suspended.
15072
15073 * alloc.c (mark_stack): Properly conditionalize previous change.
15074
15075 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15076
15077 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15078 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15079 Remove; this code is not used on Windows.
15080
15081 2009-01-30 Eli Zaretskii <eliz@gnu.org>
15082
15083 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15084 EOLs that also has stray ^M characters.
15085
15086 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15087
15088 * atimer.c (run_timers, alarm_signal_handler):
15089 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15090 * w32inevt.c (w32_console_read_socket):
15091 * w32term.c (w32_read_socket):
15092 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15093
15094 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
15095
15096 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15097 Initialize it as a relative filename pattern.
15098 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15099 (Fcall_process_region): Simplify temp file creation using
15100 temporary-file-directory.
15101
15102 2009-01-29 Eli Zaretskii <eliz@gnu.org>
15103
15104 * msdos.c: Rename pending_signals to msdos_pending_signals.
15105 (sig_suspender, sigprocmask): Adjust.
15106
15107 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
15108
15109 * keyboard.c (pending_signals): New var.
15110 (poll_for_input, input_available_signal, init_keyboard): Set it.
15111 (process_pending_signals): New function.
15112
15113 * lisp.h (QUIT): Check pending_signals instead of
15114 interrupt_input_pending. Use process_pending_signals.
15115
15116 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
15117
15118 * process.c (wait_reading_process_output): Use process_pending_signals.
15119
15120 * sysdep.c (emacs_write): Use process_pending_signals.
15121
15122 * xterm.c (XTread_socket): Update pending_signals.
15123
15124 * w32term.c (w32_read_socket): Update pending_signals.
15125
15126 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15127
15128 2009-01-29 Kenichi Handa <handa@m17n.org>
15129
15130 * xftfont.c (xftfont_has_char): New function.
15131 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15132
15133 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15134
15135 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15136 under GNUstep.
15137 (ns_query_color): New declaration.
15138
15139 * nsterm.m (ns_confirm_quit): New variable.
15140 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15141 (EmacsApp-applicationShouldTerminate:): Use it.
15142 (EmacsPrefsController): Let user set it.
15143 (ns_query_color): New function.
15144 (ns_defined_color): Use it.
15145 (ns_initialize): Drop.
15146 (ns_term_init): Add two lines from ns_initialize(), and set
15147 input_interrupt_mode to nil.
15148
15149 * image.c (svg_load_image): Don't right-shift background RGB when
15150 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
15151
15152 2009-01-28 Kenichi Handa <handa@m17n.org>
15153
15154 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15155 (fontset_get_font_group): Remember that no font-group is specified
15156 for C.
15157
15158 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
15159
15160 * fns.c (concat): Check for string overflow (bug#1787).
15161
15162 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15163 Quadruple undo limits (bug#1501).
15164
15165 2009-01-27 Kenichi Handa <handa@m17n.org>
15166
15167 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15168 directly use GT_Get_Char_index.
15169
15170 * xftfont.c (struct xftfont_info): New member `index'.
15171
15172 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15173 (Ffontset_font): Adjust for the change of fontset entry.
15174
15175 2009-01-26 Kenichi Handa <handa@m17n.org>
15176
15177 * fontset.c (fontset_find_font): Fix handling of non-cons return
15178 value of fontset_get_font_group.
15179 (fontset_font): Revert last change.
15180
15181 2009-01-26 Jason Rumney <jasonr@gnu.org>
15182
15183 * w32font.c (w32font_list_internal): Return quickly if registry is
15184 unknown. Simplify final return.
15185 (add_font_entity_to_list): Break complex logic down into more
15186 manageable chunks. Move unknown registry check to
15187 w32font_list_internal.
15188
15189 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15190
15191 Changes to remove Feval calls from GUI under NS.
15192
15193 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15194 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
15195 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15196
15197 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15198 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15199 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15200 instead of NON_ASCII_KEYSTROKE_EVENT.
15201 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15202 (EmacsApp-applicationShouldTerminate:): Query user.
15203 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15204 instead of Feval.
15205
15206 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15207
15208 * keyboard.c (kbd_buffer_get_event): Check for it.
15209 (keys_of_keyboard): Define lispy keys for
15210 ns-put/unput-working-text.
15211
15212 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15213 versions.
15214 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15215
15216 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
15217
15218 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
15219 setting current_buffer directly. (Bug#2044)
15220
15221 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
15222
15223 * fontset.c (fontset_font): If we know there is no font, don't do
15224 any work. (Bug#1952, bug#1990).
15225
15226 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
15227
15228 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15229
15230 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
15231 (ns_no_defaults): New declaration.
15232 (main): Use it.
15233
15234 * nsterm.h (ns_no_defaults): New declaration.
15235
15236 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
15237
15238 * nsterm.m (ns_no_defaults): New variable.
15239 (ns_initialize): Don't read defaults when ns_no_defaults.
15240 (EmacsView-readSelectionFromPasteboard:)
15241 (writeSelectionToPasteboard:types:): New stubbed-out methods for
15242 NSServicesRequests protocol. (Bug#1435)
15243 (ns_dumpglyphs_stretch): New function.
15244 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
15245 of 2008-11-15 to other terms. (Bug#615)
15246
15247 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15248
15249 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15250
15251 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15252 call for Sparc64.
15253
15254 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15255
15256 * nsfns.m:
15257 * nsgui.h:
15258 * nsmenu.m:
15259 * nsselect.m:
15260 * nsterm.h:
15261 * nsterm.m: Remove '23' comments that indicated code added during
15262 update from emacs-20 -> emacs-23.
15263
15264 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15265
15266 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
15267 ns_alternate_modifier. (Bug#1217)
15268
15269 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15270 Display all shortcuts, including those w/o super modifier.
15271
15272 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15273
15274 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
15275
15276 * fileio.c (Vwrite_region_post_annotation_function)
15277 (Vwrite_region_annotation_buffers): New vars.
15278 (build_annotations_unwind): Just reset
15279 Vwrite_region_annotation_buffers.
15280 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15281 Call write-region-post-annotation-function.
15282 (build_annotations): Add to Vwrite_region_annotation_buffers if
15283 buffer changes.
15284
15285 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15286
15287 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15288 Tiger.
15289 * nsfns.m (ns_do_applescript):
15290 Conditionalize typeUTF16ExternalRepresentation on Tiger.
15291
15292 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15293
15294 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15295
15296 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15297
15298 * nsmenu.m (NSMENUPROFILE): Change #if style.
15299
15300 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15301
15302 * nsterm.m (x_set_frame_alpha): Add prototype.
15303 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15304 handle Ctrl-tab. (Bug#1841)
15305 (ns_get_color): Use unsigned long long for scanned hex string value.
15306 (ns_term_shutdown): Abort on non SIGTERM signals.
15307 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
15308 (EmacsPrefsController-setPanelFromDefaultValues): New function.
15309 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
15310 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
15311 (ns_defined_color): Fix settings of the XColor variable fields:
15312 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
15313
15314 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
15315 DPI. (Bug#1316)
15316 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15317 values in onTiger section.
15318
15319 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
15320
15321 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15322 Check return value of font_spec_from_name.
15323 (Fx_list_fonts): Doc fix. (Bug#1951)
15324
15325 * font.c (font_spec_from_name): Return Qnil if font name could not
15326 be parsed.
15327 (font_parse_name): Treat a `?' character as part of an XLFD.
15328
15329 * fns.c (Fsubstring): Doc fix.
15330
15331 2009-01-19 Kenichi Handa <handa@m17n.org>
15332
15333 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
15334 (ftfont_list): Likewise.
15335
15336 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
15337
15338 * dbusbind.c (Fdbus_register_signal):
15339 * process.c (conv_sockaddr_to_lisp):
15340 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15341
15342 * callproc.c (Fgetenv_internal): Doc fix.
15343
15344 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
15345
15346 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15347 it is not even used.
15348
15349 2009-01-16 Glenn Morris <rgm@gnu.org>
15350
15351 * font.c (Ffont_variation_glyphs): Silence compiler.
15352
15353 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
15354
15355 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15356 Reported by David Robinow <drobinow@gmail.com>.
15357
15358 2009-01-15 Kenichi Handa <handa@m17n.org>
15359
15360 * coding.c (detect_coding_system): Fix handling of null_byte_found.
15361
15362 2009-01-14 Jason Rumney <jasonr@gnu.org>
15363
15364 * frame.c (x_set_font): Always store a font to the font parameter,
15365 never a fontset. (Bug#1562)
15366
15367 2009-01-14 Kenichi Handa <handa@m17n.org>
15368
15369 * coding.c (TWO_MORE_BYTES): New macro.
15370 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
15371
15372 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
15373
15374 * font.c (font_clear_prop): If clearing the family, clear the font
15375 width index too.
15376
15377 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
15378
15379 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
15380
15381 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15382 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15383 functions, use sizeof.
15384
15385 2009-01-12 Martin Rudalics <rudalics@gmx.at>
15386
15387 * keyboard.c (read_char): Fix case where last_nonmenu_event
15388 returned a bad value with submenus. (Bug#447)
15389
15390 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
15391
15392 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15393 family, clear the font width index too.
15394
15395 2009-01-11 Jason Rumney <jasonr@gnu.org>
15396
15397 * keyboard.c (cmd_error_internal): Exit when errors occur before
15398 frame creation and not in daemon mode. (Bug#1836)
15399
15400 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
15401
15402 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15403 of a display vector, backtrack.
15404 (try_window_reusing_current_matrix): Check glyph type before
15405 referencing charpos member.
15406
15407 2009-01-10 Eli Zaretskii <eliz@gnu.org>
15408
15409 Fix Bug #876:
15410
15411 * coding.c (inhibit_null_byte_detection): New variable.
15412 (detect_coding, detect_coding_system): Don't pay attention to null
15413 bytes if inhibit_null_byte_detection is non-zero.
15414 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
15415 <inhibit-iso-escape-detection>: Doc fix.
15416
15417 2009-01-09 Jason Rumney <jasonr@gnu.org>
15418
15419 * w32font.c (add_font_entity_to_list): Don't report unknown
15420 Windows charset as any unrecognized registry. (Bug#1548)
15421 Only report Unicode Plane 2 fonts as unicode-sip.
15422
15423 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
15424
15425 * xfaces.c (Fx_font_family_list): Delete function.
15426 Move compatibility version to faces.el.
15427
15428 * font.c (Ffont_family_list): Return a list of strings, not symbols.
15429
15430 2009-01-09 Martin Rudalics <rudalics@gmx.at>
15431
15432 * frame.c (x_set_frame_parameters): Remember requested value for
15433 fullscreen before it's reset by the parameter handler.
15434
15435 2009-01-09 Glenn Morris <rgm@gnu.org>
15436
15437 * keyboard.c (last_command_char): For clarity, rename to...
15438 (last_command_event): ... and update all users.
15439 (last_input_char): For clarity, rename to...
15440 (last_input_event): ... and update all users.
15441 (last-command-char, last-input-char): Move to subr.el as aliases.
15442 * cmds.c, commands.h: Update for last_command_char rename.
15443
15444 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
15445
15446 * font.c (font_open_for_lface): Handle unspecified height attribute.
15447
15448 2009-01-08 Jason Rumney <jasonr@gnu.org>
15449
15450 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15451 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15452 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15453 Don't declare.
15454 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
15455 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15456
15457 2009-01-07 Kenichi Handa <handa@m17n.org>
15458
15459 * fileio.c (Finsert_file_contents): In the case of replace,
15460 remember the coding system used for decoding in
15461 coding_system (Bug#1039).
15462
15463 * coding.c (decode_coding_utf_8): Check byte_after_cr before
15464 breaking the loop. (Bug#870)
15465 (decode_coding_utf_16, decode_coding_emacs_mule)
15466 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15467 (decode_coding_charset): Likewise.
15468
15469 2009-01-05 Martin Rudalics <rudalics@gmx.at>
15470
15471 * frame.c (x_set_frame_parameters): Make sure height (width) get
15472 applied when fullwidth (fullheight) is set. (Bug#1522)
15473
15474 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
15475
15476 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15477 (utc_base): Declare as ULONGLONG, not long double.
15478 (convert_time_raw): Delete.
15479 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15480 (initialize_utc_base): New function.
15481 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15482 (convert_from_time_t): Use initialize_utc_base; compute result with
15483 64-bit arithmetic.
15484 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15485
15486 2009-01-03 Eli Zaretskii <eliz@gnu.org>
15487
15488 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15489 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15490 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15491 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15492 [!subprocesses]: Define.
15493 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15494 (Flist_system_processes, Fsystem_process_attributes)
15495 [!subprocesses]: Call list_system_processes and
15496 system_process_attributes instead of returning Qnil.
15497
15498 * dosfns.c (system_process_attributes, list_system_processes):
15499 New functions.
15500
15501 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15502
15503 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15504 Don't use the default (no-op) implementation.
15505
15506 2009-01-03 Jason Rumney <jasonr@gnu.org>
15507
15508 * keyboard.c (parse_modifiers_uncached): Wheel events are
15509 clicks (bug#687).
15510
15511 * w32term.c (x_query_colors, x_query_color): New functions.
15512
15513 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15514 (svg_load_image): Cast returned pointers from dynamically loaded
15515 functions. Eliminate W32 specific code.
15516
15517 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15518
15519 * nsfns.m (x_set_foreground_color, x_set_background_color)
15520 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15521 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15522 x_ prefix instead of ns_. Update references.
15523 (syms_of_nsfns): Add a FIXME comment.
15524
15525 * nsterm.m (x_set_cursor_type): New prototype.
15526 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15527
15528 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15529 for Solaris instead of incorrectly providing Qutime and Qcutime.
15530
15531 2009-01-02 Eli Zaretskii <eliz@gnu.org>
15532
15533 * w32.c (process_times): Compute sum of utime and stime.
15534 (system_process_attributes): Add Qtime to the alist.
15535
15536 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15537 and add them to the alist.
15538
15539 * process.c (top level) <Qtime, Qctime>: New variables.
15540 (syms_of_process): staticpro them.
15541 (Fsystem_process_attributes): Add their documentation to the doc
15542 string.
15543
15544 * process.h: Declare Qtime and Qctime.
15545
15546 2009-01-02 Jason Rumney <jasonr@gnu.org>
15547
15548 * image.c (Qgobject): New symbol.
15549 (syms_of_image): Initialize it.
15550 (init_svg_functions): Load some functions from gobject library.
15551
15552 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15553
15554 * frame.c (make_terminal_frame): Remove redundant code and useless
15555 block.
15556
15557 2009-01-01 Andreas Schwab <schwab@suse.de>
15558
15559 * process.c (conv_sockaddr_to_lisp): Add workaround for
15560 getsockname bug on BSD.
15561
15562 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
15563
15564 * xfns.c (x_create_tip_frame): Set border width of the X window.
15565
15566 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
15567
15568 2009-01-01 Jason Rumney <jasonr@gnu.org>
15569
15570 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
15571 Don't block input, as per earlier xterm.c changes.
15572
15573 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15574
15575 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15576 (ns_appkit_version_int): New function.
15577 (x-server-version): Use ns_appkit_version_int and follow 21+
15578 convention of returning 3 integers.
15579
15580 2008-12-30 Kenichi Handa <handa@m17n.org>
15581
15582 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15583 (CHAR_SURROGATE_PAIR_P): New macro.
15584
15585 * font.h (struct font_driver): New member get_variation_glyphs.
15586
15587 * font.c (font_range): Don't require a font for a variation selector.
15588 (Ffont_variation_glyphs): New function.
15589 (syms_of_font): Defsubr it.
15590
15591 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15592 ftfont_variation_glyphs.
15593 (setup_otf_gstring): New function.
15594 (ftfont_drive_otf): Use it.
15595 (ftfont_shape_by_flt): Handle variation selector.
15596 (ftfont_variation_glyphs): New function.
15597
15598 2008-12-30 Martin Rudalics <rudalics@gmx.at>
15599
15600 * frame.c (Vemacs_iconified): Remove.
15601
15602 2008-12-30 Jason Rumney <jasonr@gnu.org>
15603
15604 * frame.c (store_frame_param, x_get_arg): Enable newer code on
15605 WINDOWSNT too, as related changes have already been synced. (Bug#117)
15606
15607 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
15608
15609 * indent.c (Fvertical_motion): Don't advance iterator if we have
15610 reseated to the desired position.
15611
15612 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15613 checking for pos match.
15614
15615 2008-12-30 Kenichi Handa <handa@m17n.org>
15616
15617 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15618 just get the low 8-bit of the code.
15619
15620 * font.c (font_intern_prop): Validate str as multibyte.
15621
15622 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15623
15624 * dispextern.h (struct face): Move lface and hash from the middle
15625 of bitfields.
15626
15627 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15628
15629 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15630
15631 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15632 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15633 instead of intervals.h.
15634
15635 2008-12-26 Andreas Schwab <schwab@suse.de>
15636
15637 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15638 cons.
15639
15640 2008-12-26 Martin Rudalics <rudalics@gmx.at>
15641
15642 * textprop.c (Qminibuffer_prompt): New variable.
15643 (syms_of_textprop): Initialize it.
15644 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15645 in minibuffer-prompt face. (Bug#1662)
15646
15647 2008-12-25 Jason Rumney <jasonr@gnu.org>
15648
15649 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15650
15651 2008-12-24 Jason Rumney <jasonr@gnu.org>
15652
15653 * ralloc.c (r_alloc_reset_variable): New function.
15654
15655 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
15656 record of what points where. (Bug#716)
15657
15658 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15659
15660 * minibuf.c (read_minibuf): Follow the non-interactive case when
15661 running as a daemon, before detaching.
15662
15663 2008-12-22 Andreas Schwab <schwab@suse.de>
15664
15665 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15666 * gtkutil.c (free_widget_value): Use xfree instead of free.
15667
15668 2008-12-22 Martin Rudalics <rudalics@gmx.at>
15669
15670 * frame.c (delete_frame): New function derived from
15671 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15672 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15673 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15674 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15675 * frame.h: Extern delete_frame.
15676 * window.c (window_loop):
15677 * terminal.c (delete_terminal):
15678 * xterm.c (x_connection_closed):
15679 * xfns.c (Fx_hide_tip):
15680 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
15681
15682 2008-12-21 Jason Rumney <jasonr@gnu.org>
15683
15684 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15685 when character maps to .notdef character.
15686
15687 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15688
15689 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15690
15691 2008-12-20 Jason Rumney <jasonr@gnu.org>
15692
15693 * frame.c (Fmake_terminal_frame): Raise an error when called from
15694 a graphical frame on Windows. (Bug#1325)
15695
15696 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15697
15698 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15699
15700 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
15701
15702 * minibuf.c (Fread_buffer): Doc fix.
15703
15704 2008-12-20 Jason Rumney <jasonr@gnu.org>
15705
15706 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
15707 server name in UNC paths. (Bug#719)
15708
15709 * coding.c (decode_coding): Clear chars_at_source flag when using
15710 charbuf. (Bug#1035)
15711
15712 2008-12-19 Daniel Engeler <engeler@gmail.com>
15713
15714 * sysdep.c (serial_configure): Fix typo.
15715
15716 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15717
15718 * sysdep.c: Include alloca.h.
15719 (system_process_attributes): Add implementation for Solaris.
15720
15721 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
15722
15723 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15724
15725 Reorganize implementation of Flist_system_processes and
15726 Fsystem_process_attributes. No functional changes.
15727 * process.c: Don't #include pwd.h, grp.h and limits.h.
15728 (Flist_system_processes): Just call list_system_processes.
15729 (Fsystem_process_attributes): Just call system_process_attributes.
15730 (procfs_list_system_processes, time_from_jiffies)
15731 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15732 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15733
15734 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15735 (list_system_processes): Rename from
15736 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15737 Provide a do nothing implementation.
15738 (system_process_attributes): Rename from
15739 procfs_list_system_processes.
15740 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15741 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
15742
15743 * w32.c (list_system_processes): Rename from
15744 w32_list_system_processes.
15745 (system_process_attributes): Rename from
15746 w32_system_process_attributes.
15747
15748 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15749
15750 * process.h (w32_list_system_processes)
15751 (w32_system_process_attributes): Remove.
15752 (list_system_processes, system_process_attributes):
15753 New prototypes.
15754
15755 2008-12-19 Kenichi Handa <handa@m17n.org>
15756
15757 * xfont.c (xfont_decode_coding_xlfd): New function.
15758 (xfont_encode_coding_xlfd): New function.
15759 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15760 (xfont_list): Decode and encode XLFD by iso-8859-1.
15761 (xfont_match): Likewise.
15762 (xfont_list_family): Likewise.
15763 (xfont_open): Likewise.
15764
15765 * ftfont.c (ftfont_open): Generate a multibyte string if given
15766 names are utf-8.
15767
15768 * xftfont.c (xftfont_open): Generate a multibyte string if given
15769 names are utf-8.
15770
15771 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15772
15773 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15774 changed.
15775 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15776 clicked on a detached tool bar button.
15777
15778 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15779
15780 * emacs.c (main): Print and error and exit when no data is read
15781 from the pipe.
15782
15783 2008-12-17 Jason Rumney <jasonr@gnu.org>
15784
15785 * w32font.c (w32font_has_char): Always return -1.
15786
15787 2008-12-16 Kenichi Handa <handa@m17n.org>
15788
15789 * font.c (font_open_entity): Fix previous change.
15790
15791 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15792
15793 * process.c: Include <limits.h>.
15794
15795 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
15796
15797 * font.c (font_update_drivers): Fix mistake in reconstructing the
15798 driver list.
15799
15800 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
15801
15802 * font.c (font_clear_cache): Fix format of font cache data.
15803
15804 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
15805
15806 * xftfont.c (xftfont_open): Free Xft font pattern if
15807 XftFontOpenPattern fails.
15808
15809 * xterm.c (x_free_frame_resources): Remove extraneous call to
15810 free_frame_faces.
15811
15812 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15813
15814 * xterm.c (x_delete_display): Move xim_close_dpy call to
15815 x_delete_terminal.
15816 (x_delete_terminal): Call xim_close_dpy.
15817
15818 2008-12-13 Jason Rumney <jasonr@gnu.org>
15819
15820 * w32font.c (intern_font_name): New function.
15821 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15822 (w32font_open_internal, Fx_select_font): Decode font name.
15823 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15824
15825 * w32font.h (intern_font_name): Declare new function.
15826
15827 * w32uniscribe.c (add_opentype_font_name_to_list):
15828 Use intern_font_name.
15829
15830 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15831
15832 * frame.c (Fdelete_frame): Call free_font_driver_list.
15833
15834 * font.c (free_font_driver_list): Implement missing function.
15835
15836 * w32term.c (w32_term_init): Don't initialize the image cache
15837 here; it will be done in init_frame_faces.
15838
15839 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
15840 (struct x_display_info): Remove unused member null_pixel.
15841 New member xim_callback_data.
15842
15843 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15844 (xim_initialize): Save pointer to callback function data.
15845 (xim_close_dpy): Free callback function data. Call XCloseIM,
15846 reverting 2008-11-04 change by David Smith.
15847 (x_term_init): Don't initialize the image cache here; it will be
15848 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15849 (x_delete_display): Free x_dnd_atoms member.
15850
15851 2008-12-13 Kenichi Handa <handa@m17n.org>
15852
15853 * font.c (font_rescale_ratio): Move from xfaces.c.
15854 Argument type changed. Handle a font-spec too.
15855 (font_score): Check Vface_font_rescale_alist.
15856 (font_open_entity): Likewise. (Bug#1547)
15857
15858 * xfaces.c (font_rescale_ratio): Move to font.c.
15859
15860 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15861
15862 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15863
15864 2008-12-12 Jason Rumney <jasonr@gnu.org>
15865
15866 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15867 Set Vwindow_system_version to the real w32 major version.
15868
15869 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15870
15871 * term.c (init_tty): Move setting the terminal name before the
15872 potential user: maybe_fatal.
15873
15874 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
15875
15876 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
15877 all callers changed. Call free_frame_faces to free the face cache.
15878
15879 2008-12-11 Jason Rumney <jasonr@gnu.org>
15880
15881 * w32font.c (fill_in_logfont): Don't assume symbol script means
15882 SYMBOL_CHARSET. (Bug#547)
15883
15884 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
15885 size for surrogates. (Bug#1096, bug#872)
15886
15887 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15888
15889 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15890
15891 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15892
15893 * process.c (Fsystem_process_attributes, syms_of_process):
15894 Fix typo in name of Ssystem_process_attributes.
15895 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15896
15897 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15898
15899 * syntax.c (Fmodify_syntax_entry): Doc fix.
15900
15901 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
15902
15903 * font.c (Ffont_spec): Move usage to end of docstring.
15904
15905 2008-12-10 Jason Rumney <jasonr@gnu.org>
15906
15907 * w32font.c (Qcham): New symbol.
15908 (font_supported_scripts): Add cham, and comments for other new
15909 scripts in bitfield from OpenType spec.
15910 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15911 contain characters beyond the bmp.
15912
15913 2008-12-10 Kenichi Handa <handa@m17n.org>
15914
15915 * ftfont.c (fc_charset_table): Add "unicode-sip".
15916 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
15917 Qunicode_sip.
15918
15919 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
15920
15921 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15922 (Fcoding_system_put): Use QCdefault_char.
15923 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15924
15925 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
15926
15927 * xftfont.c (syms_of_xftfont): Fix typo.
15928
15929 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
15930
15931 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15932
15933 * emacs.c (main): Close daemon_pipe on exec.
15934
15935 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
15936
15937 * termchar.h (struct tty): New members termcap_term_buffer and
15938 termcap_strings_buffer.
15939
15940 * term.c (encode_terminal_code): Free any previous memory blocks
15941 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
15942 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15943 All callers changed.
15944 (init_tty): Store termcap data and string buffers in new struct
15945 tty members termcap_term_buffer and termcap_strings_buffer.
15946 (delete_tty): Free them.
15947 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
15948
15949 2008-12-07 Seiji Zenitani <zenitani@mac.com>
15950
15951 * nsfns.m (ns_set_background_color): Remove code duplication.
15952 It was a substitute for face-transparency on OS X 10.3.
15953
15954 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
15955
15956 * coding.c (make_conversion_work_buffer): Disable buffer
15957 modification hooks in the work buffer.
15958
15959 2008-12-05 Eli Zaretskii <eliz@gnu.org>
15960
15961 * process.c (procfs_system_process_attributes): If `nread' has a
15962 negative value, assign zero to it.
15963
15964 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
15965
15966 * eval.c (Vdebug_on_error): Doc fix.
15967
15968 2008-12-05 Kenichi Handa <handa@m17n.org>
15969
15970 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15971 second character is a combining character.
15972
15973 2008-12-05 Eli Zaretskii <eliz@gnu.org>
15974
15975 * process.c (procfs_system_process_attributes): Don't use cmd,
15976 cmdsize, and q without initializing them first.
15977
15978 2008-12-04 Jason Rumney <jasonr@gnu.org>
15979
15980 * w32font.c (w32font_draw): Initialize orig_clip before getting
15981 it, and delete it when finished.
15982
15983 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15984
15985 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15986 case when running as a daemon before detaching.
15987
15988 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
15989
15990 * w32.c (init_environment): Don't unload library shell32.dll.
15991
15992 2008-12-03 Kenichi Handa <handa@m17n.org>
15993
15994 * font.c (font_at): Set `multibyte' at first.
15995
15996 * coding.c (decode_coding_charset): Check type of an element of
15997 vector VALIDS.
15998 (encode_coding_emacs_mule): Be sure to set `code'.
15999
16000 * fontset.c (face_for_char): Handle invalid charset property correctly.
16001 (font_for_char): Likewise.
16002
16003 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
16004
16005 * font.c (Fopen_font): Compute pixel size correctly.
16006 (font_update_lface): Handle fonts with corrupted size specs,
16007 i.e. non-int and non-float.
16008
16009 * ftfont.c (ftfont_match): Initialize entity variable.
16010 (ftfont_resolve_generic_family): Avoid using uninitialized var.
16011 (ftfont_list_family): Initialize list var earlier.
16012
16013 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16014
16015 * xterm.c (x_draw_glyph_string): Fall back on
16016 underline_minimum_offset for underline position.
16017
16018 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
16019
16020 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16021
16022 * character.c (c_string_width): Specify the type for LEN.
16023
16024 2008-12-03 Kenichi Handa <handa@m17n.org>
16025
16026 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
16027 (decode_coding_utf_8): Likewise.
16028 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
16029 (produce_chars): Initialize consumed_chars to 0.
16030
16031 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16032
16033 * keyboard.c (make_lispy_position): Only use PT if the selected
16034 window is current.
16035
16036 2008-12-02 Andreas Schwab <schwab@suse.de>
16037
16038 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16039
16040 * doprnt.c (doprnt1): Fix size of charbuf.
16041
16042 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16043
16044 * keyboard.c (timer_check): Revert last change.
16045
16046 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
16047
16048 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16049
16050 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
16051
16052 * makefile.w32-in: Update dependencies.
16053 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16054
16055 2008-12-01 Andreas Schwab <schwab@suse.de>
16056
16057 * font.c (register_font_driver): Use xmalloc.
16058 (font_put_frame_data): Likewise.
16059
16060 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
16061
16062 * xfaces.c (realize_x_face): Make abort condition clearer.
16063
16064 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16065
16066 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
16067
16068 * keyboard.c (timer_check): After a timer runs, ensure that the
16069 selected window's buffer is current.
16070
16071 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
16072
16073 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16074 It was accidentally restored by the Unicode merge.
16075
16076 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16077
16078 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
16079
16080 * w32proc.c: Include "coding.h".
16081 (Fw32_short_file_name): Encode filename passed to Windows API.
16082 (Fw32_long_file_name): Encode filename passed to Windows API and
16083 decode back the result. (Bug#1433)
16084
16085 2008-11-29 Kenichi Handa <handa@m17n.org>
16086
16087 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16088 not before accessing it.
16089
16090 * charset.c (Fdefine_charset_internal): After calculating
16091 min_char, max_char, and fastmap, copy the charset structure again.
16092 (encode_char): Fix the previous change.
16093
16094 2008-11-28 Seiji Zenitani <zenitani@mac.com>
16095
16096 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16097
16098 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16099
16100 * nsterm.m (x_set_frame_alpha): New function.
16101
16102 2008-11-27 Eli Zaretskii <eliz@gnu.org>
16103
16104 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16105
16106 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
16107
16108 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16109 pointer to check_face_name.
16110
16111 2008-11-27 Kenichi Handa <handa@m17n.org>
16112
16113 * category.h (SET_CATEGORY_SET): Call set_category_set.
16114 (set_category_set): Extern it.
16115
16116 * category.c (hash_get_category_set): New function.
16117 (Fmodify_category_entry): Adjust for the change of
16118 char_table_ref_and_range. Call hash_get_category_set to get a
16119 category set to store in the table.
16120
16121 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16122 Funify_charset.
16123
16124 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
16125 (DECODE_CHAR): Check if the decoder vector is ready.
16126 (ENCODE_CHAR): Check if the encoder char-table is ready.
16127 (maybe_unify_char): Extern it.
16128
16129 * charset.c (Vchar_unified_charset_table): Delete it.
16130 (inhibit_load_charset_map): New variable.
16131 (temp_charset_work): New variable.
16132 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16133 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16134 New macros.
16135 (load_charset_map): Meaning of control_flag changed.
16136 If inhibit_load_charset_map is nonzero, setup a table in
16137 temp_charset_work.
16138 (load_charset): New argument control_flag.
16139 (map_charset_for_dump): New function.
16140 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16141 map_charset_for_dump.
16142 (Fdefine_charset_internal): If the charset method is MAP, load
16143 mapping tables by calling load_charset.
16144 (Funify_charset): Don't load a mapping table but directly set
16145 Vchar_unify_table.
16146 (maybe_unify_char): New function.
16147 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16148 Handle the case of inhibit_load_charset_map being nonzero.
16149 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16150 Handle the case of inhibit_load_charset_map being nonzero.
16151 (Fclear_charset_maps): Just free temp_charset_work.
16152 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16153 variable.
16154
16155 * chartab.c (sub_char_table_ref_and_range): Adjust for the
16156 change of char_table_ref_and_range.
16157 (char_table_ref_and_range): Change the meaning of argument FROM
16158 and TO. Now the caller must provide initial values for *FROM
16159 and *TO.
16160
16161 * fontset.c (fontset_add): Adjust for the change of
16162 char_table_ref_and_range.
16163 (fontset_get_font_group): Likewise.
16164 (Ffontset_info): Likewise.
16165
16166 * keymap.c (describe_vector): Adjust for the change of
16167 char_table_ref_and_range. For char-table, put boundary between
16168 non-ASCII and 8-bit characters.
16169
16170 * print.c (print_object): For bool-vector, delete unnecessary
16171 check of ASCII_BYTE_P.
16172
16173 2008-11-26 Jason Rumney <jasonr@gnu.org>
16174
16175 * w32font.c (w32font_open_internal): Don't include external
16176 leading in font height. (Bug#879)
16177
16178 2008-11-26 Glenn Morris <rgm@gnu.org>
16179
16180 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16181 redefinition with ifdef. (Bug#1383)
16182
16183 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16184
16185 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16186
16187 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
16188
16189 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16190 New EmacsView methods.
16191 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16192 Fixes bug #1048,1357,1414.
16193
16194 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16195
16196 Fix bug #1362.
16197 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16198 is not an indexed color.
16199 * nsterm.m (free_indexed_color): Add argument checking.
16200 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16201
16202 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
16203
16204 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16205 Document confirm-after-completion value for
16206 minibuffer-completion-confirm.
16207
16208 2008-11-24 Jason Rumney <jasonr@gnu.org>
16209
16210 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16211 warning.
16212
16213 2008-11-23 Jason Rumney <jasonr@gnu.org>
16214
16215 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16216 restored before returning.
16217
16218 * w32font.c (check_face_name): New function.
16219 (add_font_entity_to_list): Use it to filter out common substituted
16220 fonts. (Bug#642)
16221
16222 2008-11-22 Martin Rudalics <rudalics@gmx.at>
16223
16224 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16225 confirm-nonexistent-file-or-buffer in doc-string.
16226
16227 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16228
16229 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16230 Fix copy/paste typo. Add checks.
16231
16232 2008-11-21 Kenichi Handa <handa@m17n.org>
16233
16234 * coding.c (detect_coding_iso_2022): Reject invalid composition
16235 sequence.
16236 (DECODE_COMPOSITION_START): If the current source is the last
16237 block, and the current composition doesn't end, regard this
16238 sequence as invalid.
16239 (decode_coding_iso_2022): Handle invalid composition sequence.
16240
16241 2008-11-20 Martin Rudalics <rudalics@gmx.at>
16242
16243 * window.c (coordinates_in_window): Don't return
16244 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16245 line when the window is not the rightmost one. (Bug#1372)
16246
16247 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16248
16249 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16250
16251 2008-11-15 Eli Zaretskii <eliz@gnu.org>
16252
16253 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16254 and bright_bg if noninteractive is non-zero.
16255
16256 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16257
16258 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16259 x_draw_glyph_string_background.
16260
16261 * w32term.c (x_draw_glyph_string): Likewise.
16262
16263 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
16264
16265 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16266 the next glyph string once past the overhang width.
16267
16268 * nsterm.m (ns_draw_glyph_string): Likewise.
16269
16270 * w32term.c (x_draw_glyph_string): Likewise.
16271
16272 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16273
16274 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16275 double file close.
16276
16277 2008-11-14 Martin Rudalics <rudalics@gmx.at>
16278
16279 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16280 dedicated status of window before attempting to display another
16281 buffer in it.
16282
16283 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
16284
16285 * msdos.c (Fmsdos_long_file_names):
16286 (syms_of_msdos) <dos-unsupported-char-glyph>:
16287 * dosfns.c (Fint86): Fix typos in docstrings.
16288
16289 2008-11-14 Eli Zaretskii <eliz@gnu.org>
16290
16291 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16292
16293 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16294
16295 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16296
16297 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16298
16299 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16300
16301 * frame.h: Negative alpha means "don't touch".
16302
16303 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16304
16305 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16306
16307 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16308
16309 * hftctl.c:
16310 * chpdef.h:
16311 * acldef.h: Remove files used only for systems no longer supported.
16312
16313 * Makefile.in: Fix .o alphabetical ordering.
16314 (hftctl.o): Remove dependency, file removed.
16315 (keymap.o, print.o): Depend on charset.h.
16316
16317 2008-11-10 Kenichi Handa <handa@m17n.org>
16318
16319 * character.c (Fget_byte): Fix and make it faster for unibyte target.
16320
16321 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
16322
16323 * dired.c (file_name_completion): If completion_ignore_case is
16324 enabled, ignore case when checking completion-regexp-list.
16325
16326 2008-11-08 Eli Zaretskii <eliz@gnu.org>
16327
16328 * vm-limit.c (get_lim_data): Fix last change.
16329
16330 2008-11-08 Kenichi Handa <handa@m17n.org>
16331
16332 * character.c (Fget_byte): New function.
16333 (syms_of_character): Defsubr Fget_byte.
16334
16335 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
16336
16337 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16338 cursor position is valid after scrolling.
16339
16340 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
16341
16342 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16343
16344 2008-11-06 Glenn Morris <rgm@gnu.org>
16345
16346 * xterm.c (handle_one_xevent): Don't let popup menus cause
16347 mouse-autoselect-window related window switching. (Bug#1261)
16348
16349 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16350
16351 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16352
16353 2008-11-04 Andreas Schwab <schwab@suse.de>
16354
16355 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16356
16357 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
16358
16359 * xfns.c (Fx_wm_set_size_hint): New function.
16360
16361 2008-11-03 Martin Rudalics <rudalics@gmx.at>
16362
16363 * textprop.c (Fprevious_single_char_property_change): Return 0
16364 when there's no change in a string. (Bug#1301)
16365
16366 2008-11-02 Martin Rudalics <rudalics@gmx.at>
16367
16368 * frame.c (do_switch_frame): New argument NORECORD passed to
16369 Fselect_window.
16370 (Fselect_frame): New argument NORECORD passed to
16371 do_switch_frame.
16372 (Fset_frame_selected_window): New argument NORECORD passed to
16373 Fselect_frame.
16374 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16375 in call of do_switch_frame.
16376 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16377 Handle NORECORD argument in call of Fselect_frame.
16378 * lisp.h (do_switch_frame, Fselect_frame)
16379 (Fset_frame_selected_window): Adjust declarations.
16380 * window.c (select_frame_norecord): New function.
16381 (run_window_configuration_change_hook): Use it and call
16382 Fselect_frame with NORECORD set.
16383 (Fselect_window): Pass NORECORD to Fselect_frame.
16384 (Fset_window_configuration): Handle NORECORD argument in call of
16385 do_switch_frame.
16386 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16387 Fset_frame_selected_window.
16388 * keyboard.c (command_loop_1): Handle NORECORD in call of
16389 Fselect_frame (currently ifdefd).
16390
16391 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16392
16393 * emacs.c (USAGE2): Untabify.
16394
16395 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16396
16397 * composite.c (fill_gstring_header): Fix copy/paste typo.
16398
16399 2008-10-31 Martin Rudalics <rudalics@gmx.at>
16400
16401 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16402 (Fother_window): Rename argument and rewrite doc-string.
16403 (select_window_norecord): Fix return value. (Bug#1276)
16404
16405 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
16406
16407 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16408 new frames overriding foreground for tooltips. Based on similar patch
16409 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16410
16411 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
16412
16413 * emacs.c (Fdaemon_initialized): Initialize nfd.
16414
16415 2008-10-29 Martin Rudalics <rudalics@gmx.at>
16416
16417 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16418 (Fwindow_text_height): Clarify doc-strings.
16419 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16420 doc-string of window-scroll-functions.
16421
16422 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16423
16424 * category.c (syms_of_category): Fix typo in docstring.
16425
16426 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
16427
16428 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16429 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16430 Fix typos in docstrings.
16431
16432 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16433
16434 * emacs.c (daemon_pipe): Make non-static.
16435 (IS_DAEMON): Move definition ...
16436 * lisp.h (IS_DAEMON): ... here.
16437 (daemon_pipe): Declare.
16438 (is_daemon): Remove.
16439 * dispnew.c (init_display): Use IS_DAEMON.
16440
16441 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16442
16443 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16444 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16445
16446 * emacs.c (is_daemon): Remove.
16447 (main): Don't set is_daemon.
16448 (IS_DAEMON): New macro.
16449 (Fdaemonp, Fdaemon_initialized): Use it.
16450 (Fdaemon_initialized): Write a char into the pipe to make sure the
16451 parent exits.
16452 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16453
16454 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
16455
16456 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16457 over-sized glyph, draw it with the default glyph width.
16458
16459 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16460 glyph, draw it with the default glyph width.
16461
16462 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16463 glyph, draw it with the default glyph width.
16464
16465 * xdisp.c (try_scrolling): When computing the distance from the
16466 scroll margin to PT, try moving some distance past the window
16467 bottom before giving up.
16468
16469 2008-10-27 Martin Rudalics <rudalics@gmx.at>
16470
16471 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16472 (Fset_window_buffer): Explain in doc-string that a window can be
16473 "strongly" dedicated to its buffer.
16474
16475 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16476
16477 * emacs.c (daemon_name): New variable.
16478 (main): Deal with --daemon=SERVER_NAME.
16479 (Fdaemonp): Return a name if one was passed to --daemon.
16480
16481 2008-10-26 Romain Francoise <romain@orebokech.com>
16482
16483 * emacs.c (daemon_pipe): New variable.
16484 (main): Create a pipe before forking, make the parent exit only after
16485 the child has closed its end of the pipe. Move closing the
16486 descriptors ...
16487 (Fdaemon_initialized): ... here. New function.
16488
16489 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16490
16491 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16492 the previous unoptimized table.
16493
16494 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16495 the distinction between non-nil and non-t value of `dedicated'.
16496
16497 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
16498
16499 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16500 read_char_minibuf_menu_text is large enough to hold the menu string.
16501
16502 2008-10-25 Martin Rudalics <rudalics@gmx.at>
16503
16504 * window.c (Fget_buffer_window, Fdelete_windows_on)
16505 (Freplace_buffer_in_windows): Make buffer argument optional and
16506 rename to buffer_or_name.
16507
16508 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
16509
16510 * xdisp.c (handle_single_display_spec, handle_display_prop):
16511 Undo 2005-05-16 change.
16512 (handle_stop): Pop iterator if it's loaded with an empty string.
16513 (get_overlay_strings_1): Don't save iterator if it's loaded with
16514 an empty string (bug#1201).
16515
16516 2008-10-24 Kenichi Handa <handa@m17n.org>
16517
16518 * ftfont.c (ftfont_otf_features): Fix previous change.
16519 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16520 calling ftfont_otf_features.
16521
16522 2008-10-24 Kenichi Handa <handa@m17n.org>
16523
16524 * font.c (font_match_p): Fix for the case that a vector of
16525 characters is in script-representative-chars.
16526
16527 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
16528
16529 * dbusbind.c (xd_in_read_queued_messages): New variable.
16530 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
16531 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16532 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16533 macro. (Bug#1186)
16534
16535 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
16536
16537 * s/sol2-10.h: New file.
16538
16539 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16540
16541 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16542 poor beast has survived 9+ years and the jump from xterm.c!).
16543
16544 2008-10-23 Martin Rudalics <rudalics@gmx.at>
16545
16546 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16547 Reword doc-string.
16548 (Fbury_buffer): In doc-string say what happens to the buffer's window.
16549
16550 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16551
16552 * character.c (syms_of_character) <script-representative-chars>:
16553 <unicode-category-table>: Doc fixes.
16554
16555 2008-10-23 Noah Friedman <friedman@splode.com>
16556
16557 * coding.c (make_conversion_work_buffer): Check that
16558 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16559 Fget_buffer_create.
16560
16561 2008-10-23 Kenichi Handa <handa@m17n.org>
16562
16563 * font.c (font_add_log): Check the values of extra properties.
16564
16565 2008-10-22 Martin Rudalics <rudalics@gmx.at>
16566
16567 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16568 Reword doc-string.
16569 (Fset_window_parameter): Use NILP.
16570 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
16571 (Frecenter): Use "selected" instead of "current" window in doc-strings.
16572
16573 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16574
16575 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16576
16577 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16578
16579 * nsfns.m (ns_appkit_version): New function.
16580 (x-server-version): Use it.
16581 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16582 (x-server-vendor): Don't check_ns().
16583
16584 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16585
16586 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16587
16588 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16589 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16590
16591 2008-10-22 Kenichi Handa <handa@m17n.org>
16592
16593 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16594 scripts.
16595
16596 * category.c (word_boundary_p): Check scripts instead of charset.
16597 Handle nil value in word-separating-categories and
16598 word-combining-categories.
16599 (syms_of_category): Fix docstrings of word-separating-categories
16600 and word-combining-categories.
16601
16602 2008-10-21 Eli Zaretskii <eliz@gnu.org>
16603
16604 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16605 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16606
16607 2008-10-21 Martin Rudalics <rudalics@gmx.at>
16608
16609 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16610 Rename arg "buffer" to "buffer_or_name".
16611 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16612 it optional.
16613 (no_switch_window): Remove since the return value is not used.
16614 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
16615 Consider window as dedicated when Fwindow_dedicated_p returns a
16616 non-nil value.
16617 * lisp.h: Remove prototype for no_switch_window.
16618
16619 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16620
16621 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
16622 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
16623
16624 2008-10-21 Kenichi Handa <handa@m17n.org>
16625
16626 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16627 check Vlatin_extra_code_table.
16628
16629 2008-10-20 Eli Zaretskii <eliz@gnu.org>
16630
16631 * fileio.c (Fset_file_modes): Doc fix.
16632
16633 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
16634
16635 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16636 in arrays.
16637
16638 2008-10-19 Martin Rudalics <rudalics@gmx.at>
16639
16640 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16641 Mention kill-buffer in doc-string.
16642 (Fset_window_buffer): Reinsert tem check removed in last commit.
16643 (Fenlarge_window, Fshrink_window): Have argument names and
16644 doc-string follow Elisp manual more closely.
16645
16646 2008-10-18 Eli Zaretskii <eliz@gnu.org>
16647
16648 * fileio.c (Fset_file_modes): Doc fix.
16649
16650 2008-10-18 Martin Rudalics <rudalics@gmx.at>
16651
16652 * window.c (Fwindow_width, Fset_window_start)
16653 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
16654 (Fdelete_windows_on, Freplace_buffer_in_windows):
16655 Make doc-strings follow code and Elisp manual more closely.
16656 (Fwindow_dedicated_p): Make window argument optional.
16657 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16658 (Fset_window_buffer): Respect any non-nil dedicated value for
16659 window. Rename "buffer" argument to "buffer_or_name".
16660
16661 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
16662
16663 * m/sh3.h: New file, machine description for SuperH.
16664
16665 2008-10-17 Martin Rudalics <rudalics@gmx.at>
16666
16667 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16668
16669 2008-10-17 Kenichi Handa <handa@m17n.org>
16670
16671 * ftfont.c (ftfont_otf_features): Fix indexing
16672 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16673
16674 2008-10-16 Magnus Henoch <mange@freemail.hu>
16675
16676 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16677 (Fdbus_call_method_asynchronously): Ditto.
16678 This change makes C-h f display the argument list.
16679
16680 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
16681
16682 * fileio.c (Fexpand_file_name): Doc fix.
16683
16684 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16685 of :foreground and :background equivalent to unspecified (20.x
16686 compatibility).
16687
16688 2008-10-15 Eli Zaretskii <eliz@gnu.org>
16689
16690 * buffer.c (syms_of_buffer): Doc fix.
16691
16692 2008-10-14 Kenichi Handa <handa@m17n.org>
16693
16694 * font.c (font_clear_prop): When clearing font width, clear the
16695 average width field too.
16696
16697 2008-10-12 Andreas Schwab <schwab@suse.de>
16698
16699 * ftfont.c (ftfont_shape_by_flt): Make static.
16700 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16701
16702 * font.c: Don't include <m17n-flt.h>.
16703
16704 2008-10-10 Eli Zaretskii <eliz@gnu.org>
16705
16706 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16707
16708 2008-10-09 Eli Zaretskii <eliz@gnu.org>
16709
16710 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16711 away code.
16712
16713 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
16714
16715 * dispnew.c (update_text_area): Avoid looping due to large glyph
16716 overhangs (bug#1070).
16717
16718 2008-10-09 Kenichi Handa <handa@m17n.org>
16719
16720 * fontset.c (face_for_char): If face->fontset is negative, just
16721 return ascii_face.
16722
16723 * font.c (font_delete_unmatched): Fix previous change.
16724 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
16725
16726 2008-10-09 Martin Rudalics <rudalics@gmx.at>
16727
16728 * frame.c (Fraise_frame): On text-only terminals select frame in
16729 order to make it visible. (Bug#1061)
16730
16731 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
16732
16733 * fontset.c (fontset_find_font): Check frame validity.
16734
16735 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
16736
16737 * gtkutil.c (xg_display_open): Reset default display if none exists.
16738 (xg_display_close): Allow Emacs to close all displays (bug#985).
16739
16740 2008-10-06 Andreas Schwab <schwab@suse.de>
16741
16742 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
16743
16744 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
16745
16746 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
16747
16748 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
16749
16750 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16751 during initialization.
16752
16753 2008-10-04 Eli Zaretskii <eliz@gnu.org>
16754
16755 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16756 whole thing on MSDOS frames as well as on a TTY.
16757
16758 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16759 well as for TTY.
16760 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16761 well as on a TTY.
16762
16763 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16764 as well as for TTY.
16765
16766 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16767
16768 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16769 MSDOS frames as well.
16770
16771 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16772
16773 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16774 correct arguments.
16775 * menu.c (find_and_return_menu_selection): Add cast.
16776
16777 2008-10-03 Glenn Morris <rgm@gnu.org>
16778
16779 * emacs.c (USAGE1): Add --daemon.
16780
16781 2008-10-02 Eli Zaretskii <eliz@gnu.org>
16782
16783 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16784 100, so it's in percents as advertised.
16785
16786 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16787
16788 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16789 (ns_output.current_cursor, ns_output.desired_cursor)
16790 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16791 (FRAME_NEW_CURSOR_COLOR): Remove.
16792
16793 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
16794 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
16795 enumeration (HOLLOW_BOX_CURSOR, etc.).
16796
16797 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16798 (draw_window_cursor): Simplify code.
16799 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16800 Don't change cursor type. In latter, call rehighlight instead of doing
16801 updates manually.
16802 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16803 Use core Emacs cursor types.
16804
16805 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
16806
16807 2008-10-02 Martin Rudalics <rudalics@gmx.at>
16808
16809 * process.c (Faccept_process_output): Fix doc-string.
16810
16811 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16812
16813 * gmalloc.c (__sbrk): Also define for uClibc.
16814
16815 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16816 for uClibc.
16817
16818 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16819
16820 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16821 styles.
16822 (nsfont_open): Reenable the cache.
16823
16824 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16825
16826 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16827 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16828
16829 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16830
16831 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16832 a suspended terminal.
16833
16834 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
16835
16836 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16837
16838 2008-09-30 Eli Zaretskii <eliz@gnu.org>
16839
16840 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16841
16842 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
16843
16844 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16845 in a continued line coincides with a line beginning.
16846
16847 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16848
16849 * nsfont.m (nsfont_trait_distance): Fix bug.
16850 (nsfont_list): Return a list rather than a vector (syncs with Handa
16851 changes of 2008-05-14).
16852 (nsfont_open): Improve logging.
16853
16854 2008-09-29 Andreas Schwab <schwab@suse.de>
16855
16856 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16857
16858 2008-09-28 Martin Rudalics <rudalics@gmx.at>
16859
16860 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16861 name as char-resolve-modifiers.
16862 Reported by: Markus Triska <markus.triska@gmx.at>
16863
16864 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16865
16866 * dispnew.c (init_display): Return earlier when running as a daemon.
16867
16868 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16869
16870 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16871
16872 2008-09-27 Eli Zaretskii <eliz@gnu.org>
16873
16874 * composite.c (Fcomposition_get_gstring)
16875 (Fcompose_region_internal, Fcompose_string_internal)
16876 (Ffind_composition_internal): Doc fix.
16877 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16878 (syms_of_composite) <auto-composition-function>: Doc fix.
16879 (syms_of_composite) <composition-function-table>: Doc fix.
16880
16881 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
16882
16883 * search.c (wordify): New argument for lax word-ends.
16884 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16885
16886 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16887
16888 * lisp.h (is_daemon): Declare.
16889 * dispnew.c (init_display): Do not try to initialize the terminal
16890 when running as a daemon.
16891
16892 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
16893
16894 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16895 x_display_pixel_height.
16896
16897 2008-09-22 Martin Rudalics <rudalics@gmx.at>
16898
16899 * undo.c (record_point): Don't call Fundo_boundary for first
16900 change. (Bug#731)
16901
16902 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
16903
16904 * emacs.c (Fdaemonp): Doc fix.
16905
16906 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16907
16908 * emacs.c (main): Place #ifdef in the proper place.
16909
16910 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16911
16912 * emacs.c (standard_args): Add --daemon.
16913 (main): Disconnect from the terminal when --daemon is passed.
16914 (is_daemon): New variable.
16915 (Fdaemonp): New function.
16916 (syms_of_emacs): Defsubr it.
16917
16918 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
16919
16920 * xdisp.c (get_next_display_element): Handle string display
16921 correctly when checking for the end of a box run.
16922
16923 2008-09-20 Glenn Morris <rgm@gnu.org>
16924
16925 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16926 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16927 (Frename_file): Avoid copying to trash if a rename involves
16928 a delete. (Bug#964).
16929
16930 2008-09-20 Eli Zaretskii <eliz@gnu.org>
16931
16932 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16933 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16934 frames as well as termcap frames.
16935 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16936 get_named_tty.
16937
16938 2008-09-19 Eli Zaretskii <eliz@gnu.org>
16939
16940 * process.c (procfs_system_process_attributes): Fix cmdline in
16941 case /proc/PID/cmdline is empty.
16942
16943 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16944 x_display_pixel_height.
16945
16946 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
16947
16948 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16949
16950 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16951 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16952
16953 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16954
16955 * dispextern.h (struct it): Move line_wrap away from the middle of
16956 bitfields. Move voffset in struct iterator_stack_entry after the
16957 bitfields. Move tab_width near after another short.
16958
16959 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16960
16961 * frame.h (struct frame): Move alpha from the middle of bitfields.
16962
16963 * window.h (struct window): Move frozen_window_start_p after the
16964 rest of the bitfields to reduce padding.
16965
16966 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
16967
16968 * xterm.h (x_display_info): Remove `height' and `width' members.
16969
16970 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16971
16972 * w32term.h (w32_display_info): Remove `height', `width',
16973 `height_in', and `width_in' members.
16974
16975 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16976 New functions.
16977 (x_calc_absolute_position): Use them.
16978 (x_term_init): Omit removed `height' and `width' members.
16979
16980 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16981 New functions.
16982 (w32_read_socket, x_calc_absolute_position): Use them.
16983 (w32_initialize_display_info, w32_term_init): Omit removed members
16984 of w32_display_info.
16985
16986 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16987 New functions.
16988 (ns_initialize_display_info): Omit removed members of ns_display_info.
16989
16990 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16991 New functions.
16992 (x_calc_absolute_position): Use them.
16993 (x_term_init): Omit removed `height' and `width' members.
16994
16995 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16996 (compute_tip_xy):
16997 * frame.c (x_fullscreen_adjust):
16998 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16999 x_display_pixel_width.
17000
17001 2008-09-18 Kenichi Handa <handa@m17n.org>
17002
17003 * composite.c (fill_gstring_header): Don't check FROM and TO here.
17004 (composition_compute_stop_pos): Fix handling of static composition.
17005 (Fcomposition_get_gstring): Check FROM and TO at first.
17006
17007 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
17008
17009 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
17010 mixup (YAILOM).
17011
17012 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
17013
17014 * indent.c (Fvertical_motion): Use position reported by iterator
17015 instead of PT for determining screen motion (bug#943).
17016
17017 2008-09-17 Romain Francoise <romain@orebokech.com>
17018
17019 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17020
17021 2008-09-17 Kenichi Handa <handa@m17n.org>
17022
17023 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17024
17025 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17026 if necessary.
17027
17028 2008-09-16 Kenichi Handa <handa@m17n.org>
17029
17030 * coding.c (make_conversion_work_buffer): Avoid calling
17031 Fget_buffer_create if it is not necessary.
17032
17033 2008-09-15 Martin Rudalics <rudalics@gmx.at>
17034
17035 * window.c (Fselect_window): Don't update window_select_count and
17036 use_time when norecord is not nil.
17037
17038 2008-09-14 Kenichi Handa <handa@m17n.org>
17039
17040 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17041 specpdl_ptr.
17042
17043 2008-09-12 Kenichi Handa <handa@m17n.org>
17044
17045 * indent.c (scan_for_column): Don't handle automatic composition
17046 if the current buffer is not associated with a window.
17047
17048 * composite.c (composition_reseat_it): If the current buffer is
17049 not associated with a window, ignore the automatic composition.
17050 (find_automatic_composition): Likewise.
17051
17052 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17053
17054 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17055 (Fgpm_mouse_stop): Use it.
17056 * termhooks.h (close_gpm): Declare.
17057 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17058 connection if Gpm_GetEvent fails.
17059
17060 * window.c (set_window_buffer): Always preserve current-buffer.
17061
17062 2008-09-12 Glenn Morris <rgm@gnu.org>
17063
17064 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17065
17066 2008-09-11 Glenn Morris <rgm@gnu.org>
17067
17068 * charset.c (charset-map-path): Doc fix.
17069
17070 2008-09-10 Kenichi Handa <handa@m17n.org>
17071
17072 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17073
17074 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17075 compose a grapheme cluster with the preceding base glyph.
17076
17077 * composite.c (composition_compute_stop_pos): Fix previous change.
17078 Reset cmp_it->id to -1 at first.
17079
17080 2008-09-10 Glenn Morris <rgm@gnu.org>
17081
17082 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17083
17084 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
17085
17086 * keyboard.c (read_key_sequence): Reapply translation maps when
17087 switching keyboards.
17088
17089 2008-09-09 Kenichi Handa <handa@m17n.org>
17090
17091 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17092 characters.
17093
17094 * composite.c (FORWARD_CHAR): Fix calculation
17095 of (POSITION).pos_byte.
17096 (composition_compute_stop_pos): Limit the search of composition to
17097 at most 500 characters ahead. If we reach the limit or find a
17098 newline, set cmp_it->ch to -2 and return 0.
17099 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17100
17101 2008-09-08 Kenichi Handa <handa@m17n.org>
17102
17103 * indent.c (Fvertical_motion): Be sure to set
17104 it_overshoot_expected if it.cmp_it.id is non-negative.
17105
17106 2008-09-07 Andreas Schwab <schwab@suse.de>
17107
17108 * callproc.c (Fcall_process): Don't hold references to string data
17109 across garbage collection. Move initialisation of new_argv down
17110 to avoid compiler bug.
17111
17112 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17113
17114 * process.c (Fsystem_process_attributes): Doc fix.
17115
17116 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
17117
17118 * callproc.c (Fcall_process): Canonicalize current directory name.
17119
17120 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17121 iterator advances to the next line if the current line ends in a
17122 continued tab.
17123
17124 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17125
17126 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17127 member to point to cmp_from.
17128
17129 * xdisp.c: Doc fix for references to gidx data member.
17130
17131 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17132
17133 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17134
17135 2008-09-07 Kenichi Handa <handa@m17n.org>
17136
17137 * composite.c (FORWARD_CHAR): Check STOP after
17138 incrementing (POSITION).pos.
17139
17140 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17141
17142 * process.c (Fsystem_process_attributes): Doc fix.
17143
17144 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
17145
17146 * keyboard.c (Ftop_level): Doc fix.
17147
17148 2008-09-06 Eli Zaretskii <eliz@gnu.org>
17149
17150 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17151 minibuffer, don't let lower part of menu invade the echo area.
17152
17153 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17154 "char *q" to access menu text and advance through it. Revert the
17155 change that displayed ">" instead of ASCII character 0x10.
17156
17157 2008-09-05 Eli Zaretskii <eliz@gnu.org>
17158
17159 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17160 toggle boxes and radio buttons on MS-DOS as well.
17161
17162 2008-09-05 Kenichi Handa <handa@m17n.org>
17163
17164 * composite.c (autocmp_chars): Check lookback count.
17165 (composition_compute_stop_pos): Set cmp_it->lookback.
17166 (composition_reseat_it): Check lookback count.
17167 (struct position_record): New struct.
17168 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17169 (find_automatic_composition): New function.
17170 (composition_adjust_point): Use find_automatic_composition.
17171
17172 * dispextern.h (struct composition_it): New member lookback.
17173
17174 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
17175
17176 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17177 if moving by a single line.
17178
17179 2008-09-02 Andreas Schwab <schwab@suse.de>
17180
17181 * xterm.c (x_delete_display): Fix merge error.
17182
17183 * fileio.c (Fexpand_file_name): Remove unused variables.
17184
17185 2008-09-02 Eli Zaretskii <eliz@gnu.org>
17186
17187 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17188 storage on all platforms, not just on DOS_NT.
17189
17190 2008-09-02 Jason Rumney <jasonr@gnu.org>
17191
17192 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17193 Ensure mouse is not grabbed after menu is finished.
17194
17195 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
17196
17197 * xfaces.c (Finternal_set_alternative_font_family_alist)
17198 (Finternal_set_alternative_font_registry_alist): Properly copy
17199 entire alist structure.
17200
17201 2008-09-01 Kenichi Handa <handa@m17n.org>
17202
17203 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
17204 representative chars of the script is a vector.
17205 (ftfont_list): Handle the case where the representative chars of
17206 the script is a vector.
17207
17208 * character.c (syms_of_character): Docstring of
17209 script-representative-chars fixed.
17210
17211 2008-08-31 Eli Zaretskii <eliz@gnu.org>
17212
17213 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17214 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17215 the menu. Allocate larger buffer for `text', to account for
17216 possible ^C characters.
17217
17218 2008-08-31 Martin Rudalics <rudalics@gmx.at>
17219
17220 * xdisp.c (prepare_menu_bars): Don't call
17221 Vwindow_size_change_functions with arg Qt.
17222
17223 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17224
17225 * font.h (font_range):
17226 * fileio.c (report_file_error):
17227 * composite.c (composition_update_it): Yet another int/Lisp_Object
17228 mixup (YAILOM).
17229
17230 2008-08-30 Glenn Morris <rgm@gnu.org>
17231
17232 * data.c (Fmake_variable_frame_local): Doc fix.
17233
17234 * frame.c (Fmodify_frame_parameters): Doc fix.
17235
17236 2008-08-30 Eli Zaretskii <eliz@gnu.org>
17237
17238 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17239 needed by GetTokenInformation.
17240 (w32_system_process_attributes): Check return values of all system
17241 APIs.
17242
17243 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17244 only when the state changes.
17245 (IT_update_begin, IT_update_end): Add termscript trace.
17246
17247 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17248 clipboard is unavailable. Set dst to NULL if it doesn't point to
17249 malloc'ed data.
17250 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17251 passing random values to xfree.
17252
17253 * dispnew.c (init_display): Set `tty's association in frame's
17254 parameters alist to the name of the terminal device, if that is known.
17255
17256 2008-08-29 Jason Rumney <jasonr@gnu.org>
17257
17258 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17259
17260 2008-08-29 Eli Zaretskii <eliz@gnu.org>
17261
17262 * composite.c (fill_gstring_body): Avoid compiler warnings.
17263
17264 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17265 LGLYPH_SET_CODE to avoid compiler warnings.
17266
17267 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
17268
17269 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17270
17271 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17272 LGLYPH_SET_CODE.
17273
17274 2008-08-29 Kenichi Handa <handa@m17n.org>
17275
17276 * fileio.c (report_file_error): Don't downcase the first character
17277 of errstring if it is still unibyte.
17278
17279 2008-08-29 Kenichi Handa <handa@m17n.org>
17280
17281 These changes are to re-implement the automatic composition so
17282 that it doesn't use text properties.
17283
17284 * Makefile.in (ftfont.o): Depend on composite.h.
17285 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17286
17287 * character.h (Vunicode_category_table): Extern it.
17288
17289 * character.c (Vunicode_category_table): New variable.
17290 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17291
17292 * chartab.c (optimize_sub_char_table): Perform more greedy
17293 optimization.
17294
17295 * composite.h (enum composition_method):
17296 Delete COMPOSITION_WITH_GLYPH_STRING.
17297 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17298 (Vcomposition_function_table): Extern it.
17299 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17300 (composition_gstring_put_cache, composition_gstring_from_id)
17301 (composition_gstring_p, composition_gstring_width)
17302 (composition_compute_stop_pos, composition_reseat_it)
17303 (composition_update_it, composition_adjust_point): Extern them.
17304 (Fcomposition_get_gstring): EXFUN it.
17305
17306 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
17307 (Vcomposition_function_table)
17308 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
17309 (gstring_hash_table, gstring_work, gstring_work_headers):
17310 New variables.
17311 (gstring_lookup_cache, composition_gstring_put_cache)
17312 (composition_gstring_from_id, composition_gstring_p)
17313 (composition_gstring_width, fill_gstring_header)
17314 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17315 (composition_reseat_it, composition_update_it)
17316 (composition_adjust_point, Fcomposition_get_gstring): New functions.
17317 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17318 and gstring_work_headers. DEFVAR_LISP composition-function-table.
17319 Defsubr composition_get_gstring.
17320
17321 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17322 cmp_id.
17323 (struct glyph_string): Delete the member gidx. New members
17324 cmp_id, cmp_from, and cmp_to.
17325 (enum it_method): Delete GET_FROM_COMPOSITION.
17326 (struct composition_it): New struct.
17327 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17328 Delete c, len, cmp_id, cmp_len in u.comp.
17329
17330 * font.h (enum lgstring_indices): Delete it.
17331 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
17332 (enum lglyph_indices): Likewise.
17333 (font_range): Adjust extern.
17334 (font_fill_lglyph_metrics): Extern it.
17335
17336 * font.c (QCf): New variable.
17337 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17338 (font_prepare_composition): Delete this function.
17339 (font_range): Type and arguments changed.
17340 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17341 (font_fill_lglyph_metrics): New function.
17342 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
17343 (syms_of_font): DEFSYM QCf. Delete defsubr for
17344 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17345 Defsubr Sfont_shape_gstring.
17346
17347 * fontset.h (font_for_char): Extern it.
17348
17349 * fontset.c (font_for_char): New function.
17350
17351 * ftfont.c: Include composite.h.
17352 (ftfont_resolve_generic_family): Add langset "en" to pattern.
17353 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17354
17355 * indent.c: Include composite.h and dispextern.h.
17356 (check_composition): Delete this function.
17357 (scan_for_column): Handle composition by
17358 composition_compute_stop_pos, composition_reseat_it, and
17359 composition_update_it.
17360 (compute_motion): Likewise.
17361 (Fvertical_motion): Fix checking of composition.
17362
17363 * keyboard.c (adjust_point_for_property): Check composition by
17364 composition_adjust_point.
17365
17366 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
17367 struct glyph_string.
17368
17369 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17370 (append_composite_glyph): Adjust for the change of struct it and
17371 struct glyph.
17372 (produce_composite_glyph): Likewise.
17373
17374 * w32term.c (x_draw_composite_glyph_string_foreground):
17375 Adjust for the change of struct glyph_string.
17376 (x_draw_glyph_string): Likewise.
17377
17378 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17379 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17380
17381 * xdisp.c: Include font.h.
17382 (it_props): Delete the entry for Qauto_composed.
17383 (init_iterator): Initialize it->cmp_it.id to -1.
17384 (compute_stop_pos): Call composition_compute_stop_pos.
17385 (face_before_or_after_it_pos): Adjust for the change of struct it.
17386 (handle_auto_composed_prop): Delete it.
17387 (handle_composition_prop): Handle only static composition.
17388 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17389 from xassert. Initialize it->cmp_it.stop_pos.
17390 (push_it): Adjust for the change of struct it.
17391 (pop_it): Likewise.
17392 (get_next_element): Delete next_element_from_composition.
17393 (CHAR_COMPOSED_P): New macro.
17394 (get_next_display_element): For automatic composition, get a face
17395 from the font in the glyph-string.
17396 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
17397 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
17398 (next_element_from_string): Check if the character at the current
17399 position is composed by CHAR_COMPOSED_P.
17400 (next_element_from_buffer): Likewise.
17401 (next_element_from_composition): Adjust for the change of struct it.
17402 Update it->cmp_it.
17403 (dump_glyph): Adjust for the change of struct glyph.
17404 (fill_composite_glyph_string): Adjust for the change of struct
17405 it and struct glyph. Don't handle automatic composition here.
17406 (fill_gstring_glyph_string): New function.
17407 (x_get_glyph_overhangs): Handle automatic composition.
17408 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
17409 (BUILD_GSTRING_GLYPH_STRING): New macro.
17410 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17411 automatic composition.
17412 (append_composite_glyph): Adjust for the change of struct it and
17413 struct glyph.
17414 (x_produce_glyphs): Adjust for the change of struct it.
17415
17416 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17417 the change of struct glyph_string.
17418 (x_draw_glyph_string): Likewise.
17419
17420 2008-08-29 Glenn Morris <rgm@gnu.org>
17421
17422 * buffer.c (word-wrap): Doc fix.
17423 * xdisp.c (truncate-partial-width-windows): Doc fix.
17424 Increase default to 50.
17425
17426 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
17427
17428 * xdisp.c (update_tool_bar_unwind): New function.
17429 (update_tool_bar): Temporarily set selected frame before building
17430 tool-bar items.
17431
17432 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
17433
17434 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17435 snprintf, respectively.
17436 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17437
17438 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
17439
17440 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17441 LDFLAGS to GNUstep CC invocation.
17442
17443 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
17444
17445 * indent.c (Fvertical_motion): Revert last change. Handle the
17446 general case where we are moving forward, and PT spans multiple
17447 screen lines.
17448
17449 * eval.c (find_handler_clause): Temporarily increase
17450 max-lisp-eval-depth while printing the backtrace buffer, to
17451 guarantee that help-mode code can run.
17452
17453 2008-08-27 Eli Zaretskii <eliz@gnu.org>
17454
17455 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17456 colors under -rv.
17457 (IT_set_frame_parameters): Don't swap foreground and background
17458 colors if `(reverse . t)' is present in the frame properties.
17459 (internal_terminal_init): Call init_frame_faces only for the
17460 initial frame.
17461
17462 2008-08-27 Andreas Schwab <schwab@suse.de>
17463
17464 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17465
17466 2008-08-27 Andreas Schwab <schwab@suse.de>
17467
17468 * search.c (search_buffer): Set char_base to zero only at the end.
17469
17470 2008-08-27 Kenichi Handa <handa@m17n.org>
17471
17472 * fileio.c (report_file_error): Fix handling of multibyte error string.
17473
17474 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17475
17476 * xterm.c (x_term_init): Temporarily hide the partially
17477 initialized terminal while calling vendor-specific-keysyms.
17478
17479 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17480
17481 * msdos.c (internal_terminal_init): Most initializations done only
17482 once, especially initial_screen_colors[] and termscript open.
17483
17484 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17485
17486 * eval.c (Fcondition_case): Doc fix.
17487
17488 * widgetprv.h (EmacsFramePart): Change font member to the new font
17489 struct.
17490
17491 * widget.c: Include character.h and font.h for XSETFONT.
17492 (setup_frame_gcs): Compute X font id from font struct, just once.
17493
17494 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17495
17496 * term.c (get_named_tty): Fix last change.
17497
17498 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17499
17500 * indent.c (Fvertical_motion): If moving forward starting from a
17501 multi-line string, move the iterator to the last line of that string.
17502
17503 2008-08-25 Eli Zaretskii <eliz@gnu.org>
17504
17505 * frame.c (do_switch_frame): Mark previously displayed frame as
17506 obscured for FRAME_MSDOS_P frames as well.
17507
17508 2008-08-24 Eli Zaretskii <eliz@gnu.org>
17509
17510 * frame.c (make_terminal_frame): Initialize f->terminal,
17511 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17512 Set the top frame to newly created frame.
17513 (Fmake_terminal_frame): Reuse the_only_display_info.
17514
17515 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17516 estimating available memory.
17517
17518 2008-08-23 David Reitter <david.reitter@gmail.com>
17519
17520 * nsterm.m (ns_draw_window_cursor): Don't call
17521 NSDisableScreenUpdates and NSEnableScreenUpdates on
17522 non-NS_IMPL_COCOA systems.
17523
17524 2008-08-23 Andreas Schwab <schwab@suse.de>
17525
17526 * process.c (procfs_system_process_attributes): Fix use of
17527 uninitialized variables.
17528
17529 2008-08-23 Eli Zaretskii <eliz@gnu.org>
17530
17531 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17532
17533 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17534 calling tty-set-up-initial-frame-faces.
17535
17536 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17537 Allow MSDOS frames along with X frames.
17538
17539 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17540 addition to output_termcap.
17541
17542 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17543
17544 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17545 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17546 highlight.
17547
17548 * process.c [!subprocesses]: Define QCname.
17549 (syms_of_process): Intern and staticpro it.
17550
17551 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17552 Adjust for changes in encoding/decoding routines.
17553 Use encode_coding_object and decode_coding_object instead of
17554 encode_coding and decode_coding.
17555
17556 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17557
17558 * dosfns.c: Include frame.h before termhooks.h.
17559 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17560 variable termscript.
17561
17562 * s/msdos.h (USER_FULL_NAME): Define.
17563 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17564
17565 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17566 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17567 pw->pw_gecos.
17568
17569 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17570 SELECTED_FRAME as additional (1st) argument.
17571 (tty_read_avail_input): Handle output_msdos_raw in
17572 addition to output_termcap.
17573
17574 * msdos.c: Include frame.h before termhooks.h.
17575 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17576 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17577 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17578 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17579 (IT_set_terminal_modes, IT_reset_terminal_modes)
17580 (IT_set_frame_parameters): Use tty->termscript instead of a global
17581 variable termscript.
17582 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17583 global variable terminal_coding. Don't refer to
17584 Vnonascii_translation_table.
17585 (internal_terminal_init): Set Vwindow_system in current_kboard.
17586 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17587 Announce date and time of session start, if termscript is open.
17588 Don't zero out the_only_display_info (it is done in
17589 term.c:init_tty). Open termscript only of not already open.
17590 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
17591 here instead of dos_ttraw. Don't initialize display if this is an
17592 initial tty. Don't set FRAME_FONT.
17593 (Vwindow_system_version): Bump to 23.
17594 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17595 is available, set up mouse_position_hook.
17596 (dos_ttraw, IT_set_terminal_modes): If called with initial
17597 terminal, do nothing.
17598 (IT_set_frame_parameters): Handle the Qtty_type frame
17599 parameter by calling internal_terminal_init.
17600 (dos_set_window_size, show_mouse_face)
17601 (clear_mouse_face, IT_note_mode_line_highlight)
17602 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17603 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17604 (initialize_msdos_display): New function.
17605 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17606 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17607 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17608 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
17609 Accept additional argument: a pointer to a frame. Update all callers.
17610 (request_sigio, unrequest_sigio): Don't define, now defined on
17611 sysdep.c.
17612 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17613
17614 * term.c [MSDOS]: Include msdos.h.
17615 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17616 conditional to DOS_NT. Allow only one call to this function in a
17617 session. Don't allocate a new struct tty_display_info; instead,
17618 reuse the_only_display_info. Call get_tty_size to get screen
17619 dimensions. Call init_baud_rate to set bad_rate.
17620 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17621 (Fsuspend_tty) [MSDOS]: Don't close input and output.
17622 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
17623 (get_tty_terminal, get_named_tty, Ftty_type)
17624 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17625 output_termcap.
17626 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17627 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
17628 only when subprocesses are supported.
17629
17630 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17631 f->output_data.x.
17632 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17633 terminal devices.
17634
17635 * msdos.h: Remove definition of struct x_display_info and struct
17636 x_output.
17637 (FRAME_FONT): Use output_data.tty.
17638 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
17639 (struct x_display_info): Rename from display_info. Update all users in
17640 msdos.c.
17641 (struct x_output): Remove background_pixel and foreground_pixel.
17642 (the_only_display_info): Rename from the_only_x_display.
17643 (dos_ttraw): Update prototype.
17644
17645 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17646 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17647
17648 2008-08-23 Jason Rumney <jasonr@gnu.org>
17649
17650 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17651 (fn_TIFFSetDirectory): New library function used.
17652 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17653 (tiff_load): Use :index to select among multiple images. Set count
17654 property when multiple images exist.
17655 (gif_format): Use :index, not :image.
17656
17657 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
17658
17659 * xdisp.c (try_scrolling): Check INT_MAX instead of
17660 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17661 to obtain INT_MAX.
17662
17663 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17664
17665 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17666
17667 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17668
17669 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17670 GNUstep library location.
17671
17672 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
17673
17674 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17675 before using it.
17676
17677 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17678
17679 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17680
17681 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17682 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17683 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17684 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17685 (EmacsApp-cursor_blink_handler): Remove declaration.
17686 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17687 match 01 Feb 2008 changes in xterm.c.
17688 (ns_read_socket): Add cast to avoid warning.
17689 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17690 GNUstep.
17691
17692 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
17693
17694 * xselect.c (x_get_foreign_selection): Return nil if desired
17695 selection could not be obtained, instead of signalling an error.
17696
17697 2008-08-20 David Reitter <david.reitter@gmail.com>
17698
17699 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17700 * nsterm.m: Remove ns-specific code for cursor blinking.
17701 (ns_draw_window_cursor): Clear cursor properly rather than
17702 redrawing the area. Respect width of bar cursors.
17703 These changes enable the use of generic blink-cursor-mode and
17704 generic cursor types in NS and support smooth cursor movements (do
17705 not blink off after command).
17706 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17707 Nextstep, too.
17708
17709 2008-08-19 Kenichi Handa <handa@m17n.org>
17710
17711 * font.c (Vfont_log_deferred): New variable.
17712 (font_add_log): Check Vfont_log_deferred.
17713 (font_deferred_log): New function.
17714
17715 * font.h (font_deferred_log): Extern it.
17716
17717 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17718 for sorting.
17719 (face_for_char): Use deferred log.
17720
17721 2008-08-18 Kenichi Handa <handa@m17n.org>
17722
17723 * fontset.c (face_for_char): Add font log.
17724
17725 * font.c (font_add_log): Add the font properties :script, :lang,
17726 and :otf in the log.
17727
17728 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
17729
17730 * xdisp.c: Remove dead code.
17731 (handle_invisible_prop, next_overlay_string): Defer call to
17732 setup_for_ellipsis.
17733 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17734
17735 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
17736
17737 * xfaces.c (lookup_derived_face): Properly handle possible zero
17738 return value of get_lface_attributes.
17739 (merge_faces): Don't tell lookup_derived_face to signal an error
17740 if face is not found.
17741
17742 * dired.c (Fdirectory_files): Doc fix.
17743
17744 * process.c (make_process): Initialize kill_without_query struct
17745 member.
17746
17747 2008-08-15 Eli Zaretskii <eliz@gnu.org>
17748
17749 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17750 Alternative calculation of totphys for Visual Studio 6.
17751
17752 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17753
17754 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17755 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17756 All users changed.
17757 (stat): Only root directory passed to GetDriveType. Allow RAM
17758 disk as well as local fixed disk when w32-get-true-file-attributes
17759 is set to `local'.
17760 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17761 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17762 (w32_cached_id, w32_add_to_cache): New functions.
17763 (get_name_and_id): Look account names in the cache before calling
17764 lookup_account_sid.
17765 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17766 New initialization flags.
17767 (globals_of_w32): Initialize them to zero.
17768 (w32_system_process_attributes): Use w32_cached_id and
17769 w32_add_to_cache.
17770
17771 2008-08-14 Lawrence Mitchell <wence@gmx.li>
17772
17773 * lread.c (Fread_char, Fread_char_exclusive): If no character
17774 event is read before timeout is reached, return nil, rather than
17775 converting to a number.
17776
17777 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
17778
17779 * fns.c (use_dialog_box): Doc fix.
17780
17781 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17782 on OS X.
17783
17784 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
17785
17786 * frame.c (Qns_parse_geometry): New var.
17787 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17788
17789 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
17790
17791 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17792 space character in calculating tabs.
17793
17794 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17795
17796 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17797
17798 2008-08-10 Glenn Morris <rgm@gnu.org>
17799
17800 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17801 silence gcc "limited range of data type" warnings in some
17802 make_fixnum_or_float calls.
17803
17804 2008-08-09 Eli Zaretskii <eliz@gnu.org>
17805
17806 * w32.c (w32_system_process_attributes): If the process does not
17807 exist, return nil.
17808
17809 * w32.c: Include thelp32.h, psapi.h and coding.h.
17810 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17811 declarations.
17812 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17813 (Process32Next_Proc): New typedefs.
17814 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17815 (g_b_init_process32_next, g_b_init_open_thread_token)
17816 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17817 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17818 (g_b_init_get_process_working_set_size)
17819 (g_b_init_global_memory_status_ex): New static variables.
17820 (globals_of_w32): Initialize them.
17821 (create_toolhelp32_snapshot, process32_first, process32_next)
17822 (open_thread_token, impersonate_self, revert_to_self)
17823 (get_process_memory_info, get_process_working_set_size)
17824 (global_memory_status, global_memory_status_ex): New wrapper
17825 functions.
17826 (w32_list_system_processes, w32_system_process_attributes)
17827 (enable_privilege, restore_privilege, ltime, process_times):
17828 New functions.
17829 (convert_time_raw): New function.
17830 (convert_time): Remove conversion of FILETIME into time in 100
17831 nsec units, call convert_time_raw instead.
17832
17833 * process.h (w32_list_system_processes, w32_system_process_attributes):
17834 Add prototypes.
17835 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17836 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17837 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17838 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17839
17840 * process.c (Fsystem_process_attributes): Doc fix.
17841
17842 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
17843
17844 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17845 a continued multi-char glyph; if so, advance to the actual glyph.
17846
17847 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17848
17849 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17850
17851 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17852 (.m.o): Use it.
17853 * config.in: Regenerate.
17854
17855 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
17856
17857 * xdisp.c (redisplay_window): Revert last change.
17858 (try_window): Check bottom scroll margin too.
17859
17860 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17861
17862 * config.in: Regenerate.
17863
17864 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17865 -list-load-path-shadows'.
17866 (nsgui.h): Reduce number of things depending on it.
17867
17868 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
17869
17870 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17871 instead of window-end which does the wrong thing at eob.
17872 (try_cursor_movement): Minor optimization.
17873 (redisplay_window): If scroll margin is defined, don't assume
17874 window doesn't need scrolling.
17875
17876 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17877
17878 * config.in: Regenerate.
17879
17880 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17881 (mostlyclean): Don't delete *.d under NS.
17882
17883 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17884
17885 2008-08-06 Kenichi Handa <handa@m17n.org>
17886
17887 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17888
17889 2008-08-06 Andreas Schwab <schwab@suse.de>
17890
17891 * config.in: Regenerate.
17892
17893 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
17894
17895 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17896 forcing a window start.
17897
17898 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17899 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17900
17901 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17902
17903 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17904 argument.
17905
17906 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
17907
17908 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17909 <scroll-down-aggressively, before-change-functions>:
17910 <after-change-functions>: Reflow docstrings.
17911
17912 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17913 Ken Raeburn <raeburn@gnu.org>
17914
17915 Dock menu customization, based on a patch by Ken Raeburn, plus some
17916 other fixes.
17917 * nsmenu.m (dockMenu): New variable.
17918 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17919
17920 * nsterm.h (dockMenu): Declare.
17921
17922 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17923 (ns_term_init): Initialize dockMenu.
17924 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17925 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17926 left.
17927
17928 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17929
17930 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
17931
17932 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17933
17934 * config.in: Regenerate.
17935
17936 2008-08-04 Seiji Zenitani <zenitani@mac.com>
17937
17938 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17939
17940 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
17941
17942 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17943
17944 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17945
17946 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17947
17948 * keyboard.h: Comment an #endif.
17949
17950 * lisp.h (have_menus_p): Adjust comment.
17951
17952 * menu.c (find_and_return_menu_selection): Fix comparison with
17953 client_data.
17954
17955 * nsmenu.m (popup_activated_flag): New variable.
17956 (popup_activated): New function.
17957 (menu-or-popup-active-p): New exported lisp definition.
17958 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17959 when popup done.
17960 (ns_popup_dialog): Set popup_activated_flag.
17961
17962 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17963 version for GNUstep (handled by conditional typedef in nsterm.m).
17964 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17965 in rgb.txt).
17966
17967 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17968
17969 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17970
17971 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17972
17973 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17974 shortcircuit if popup_activated like GTK and X toolkit.
17975
17976 * m/inter386.h: Change DARWIN to DARWIN_OS.
17977
17978 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17979 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
17980 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17981 Expand comment on NO_SOCK_SIGIO.
17982
17983 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
17984
17985 * nsterm.m (windowDidResize): Remove stopModal call.
17986
17987 2008-08-03 Andreas Schwab <schwab@suse.de>
17988
17989 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17990 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17991
17992 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
17993
17994 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17995 Don't use uninitialized pointer variable when using getrlimit.
17996
17997 2008-08-02 Jason Rumney <jasonr@gnu.org>
17998
17999 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18000
18001 2008-08-02 Eli Zaretskii <eliz@gnu.org>
18002
18003 * alloc.c (NSTATICS): Bump to 0x640.
18004
18005 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18006
18007 * lisp.h: Add prototype for directory_files_internal.
18008
18009 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18010 New functions.
18011 (syms_of_process): Defsubr them. Add initializations for various
18012 Q* symbols used in procfs_system_process_attributes.
18013 (procfs_list_system_processes, procfs_system_process_attributes)
18014 [HAVE_PROCFS]: New functions.
18015 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18016 (procfs_get_total_memory): New functions.
18017
18018 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18019
18020 * xfaces.c (Fx_load_color_file): Fix previous change;
18021 it is #ifdef WINDOWSNT, not WINDOWS_NT.
18022
18023 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
18024
18025 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18026
18027 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18028
18029 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18030
18031 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
18032
18033 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18034
18035 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18036 define NSApplicationDelegateReplySuccess.
18037 (EmacsView -converstationIdentifier): Use long instead of
18038 NSInteger for GNUstep, since it doesn't have NSInteger.
18039
18040 * xmenu.c: Revert last change.
18041
18042 * keyboard.h: Fix last change.
18043
18044 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18045
18046 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18047 on Windows.
18048
18049 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18050
18051 Warning clearing and clean-up in NS port.
18052 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18053 Add prototypes.
18054 * nsgui.h (FACE_DEFAULT): Remove, unused.
18055 (XGCValues): Change colors to unsigned long.
18056 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18057 nsterm.m.
18058 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18059 (ns_list_fonts): Remove, unused.
18060 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18061 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18062 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18063 (nsfont_draw): Compare face colors to 0, not nil.
18064 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18065 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18066 (-addSubmenuWithTitle:): Use NSMenuItem class.
18067 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18068 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18069 (ns_clip_to_row): Make gc arg a BOOL.
18070 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18071 ns_clip_to_row() call.
18072 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18073 used). Cast FRAME_FONT assignments.
18074 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18075 (ns_string_to_lispmod): Change arg to const char.
18076 (ns_term_init): Use NSMenuItem class.
18077 (EmacsApp -openFile:): Move to different section of file.
18078 (EmacsApp -application:openFiles:): Don't return a value, call
18079 -replyToOpenOrPrint:.
18080 (EmacsView -keyDown:): Fix up cast.
18081 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18082 (EmacsView -menuDown:): Cast tag in call to
18083 find_and_call_menu_selection().
18084 (ns_list_fonts): Remove, unused.
18085 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18086 (ns_fontname_to_xlfd): Make static.
18087 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18088 Remove prototypes (now in keyboard.h).
18089 (next_menubar_widget_id): Remove, unused.
18090 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18091 Remove prototypes (now in keyboard.h).
18092 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18093
18094 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18095
18096 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18097 (floatfns.o): Depend on syssignal.h.
18098 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18099
18100 * systty.h: Fix previous change that removed BSD_TERMIOS.
18101 Add comments to #ifdefs.
18102
18103 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18104
18105 * w32fns.c (w32-load-color-file): Remove.
18106 (x-open-connection): Use renamed Fx_load_color_file.
18107 * xfaces.c (x-load-color-file): Add.
18108 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18109 Emacs.clr.
18110 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18111
18112 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
18113
18114 * dbusbind.c (Fdbus_call_method_asynchronously)
18115 (Fdbus_method_error_internal): New defuns.
18116 (xd_read_message): Handle also reply messages.
18117 (Vdbus_registered_functions_table): Extend docstring.
18118
18119 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
18120
18121 * keyboard.c (gobble_input): Fix previous change.
18122
18123 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18124
18125 * bitmaps/README:
18126 * xfns.c:
18127 * termcap.c:
18128 * term.c:
18129 * syswait.h:
18130 * systty.h:
18131 * systime.h:
18132 * syssignal.h:
18133 * sysdep.c:
18134 * process.h:
18135 * process.c:
18136 * print.c:
18137 * ndir.h:
18138 * lread.c:
18139 * keyboard.c:
18140 * getpagesize.h:
18141 * floatfns.c:
18142 * fileio.c:
18143 * emacs.c:
18144 * doc.c:
18145 * dispnew.c:
18146 * dired.c:
18147 * data.c:
18148 * callproc.c:
18149 * buffer.c:
18150 * README:
18151 * Makefile.in:
18152 * s/template.h:
18153 * s/msdos.h:
18154 * m/vax.h: Remove VMS support.
18155 * s/vms.h:
18156 * vlimit.h:
18157 * uaf.h:
18158 * temacs.opt:
18159 * param.h:
18160 * ioctl.h: Remove file.
18161
18162 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18163
18164 * s/ms-w32.h (MULTI_KBOARD): Remove.
18165 * xterm.c:
18166 * xselect.c:
18167 * xfns.c:
18168 * window.c:
18169 * w32term.c:
18170 * w32fns.c:
18171 * terminal.c:
18172 * termhooks.h:
18173 * term.c:
18174 * sysdep.c:
18175 * keyboard.h:
18176 * keyboard.c:
18177 * frame.h:
18178 * frame.c:
18179 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18180 * config.in: Regenerate.
18181
18182 2008-07-30 Jason Rumney <jasonr@gnu.org>
18183
18184 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18185
18186 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18187 (w32font_open_internal): Get unicode version of textmetrics.
18188 Don't enable or disable glyph indices here.
18189 (w32font_open): Disable use of glyph indices.
18190
18191 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18192
18193 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
18194
18195 * minibuf.c (Vread_buffer_function): Doc fix.
18196
18197 2008-07-30 John Paul Wallington <jpw@pobox.com>
18198
18199 * minibuf.c (read_buffer_completion_ignore_case): New var.
18200 (Fread_buffer): Use it.
18201
18202 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18203
18204 * systty.h (sensemode): Remove empty #if. Remove reference to
18205 BSD_TERMIOS, unused.
18206
18207 * sysdep.c: Remove reference to DGUX.
18208 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18209
18210 * config.in: Regenerate.
18211
18212 2008-07-30 Jason Rumney <jasonr@gnu.org>
18213
18214 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18215
18216 2008-07-29 Jason Rumney <jasonr@gnu.org>
18217
18218 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18219 is populated.
18220 (uniscribe_encode_char): Always use uniscribe.
18221 Avoid using context if cache is populated.
18222
18223 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18224
18225 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18226 open menu.
18227
18228 * gtkutil.c (menu_nav_ended): Remove.
18229 (create_menus): Remove signal connect for menu_nav_ended.
18230
18231 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
18232
18233 * xdisp.c (redisplay_window): Check return value of
18234 compute_window_start_on_continuation_line before forcing a window
18235 start.
18236
18237 2008-07-28 Jason Rumney <jasonr@gnu.org>
18238
18239 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18240
18241 * w32term.c (w32_enable_unicode_output, cleartype_active):
18242 Remove obsolete display options.
18243 (x_draw_glyph_string_background): Don't use old cleartype_active
18244 workaround.
18245 (w32_initialize): Remove cleartype_active initialization.
18246 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18247
18248 2008-07-28 Andreas Schwab <schwab@suse.de>
18249
18250 * lisp.h (init_weak_hash_tables, syms_of_font)
18251 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18252 (remove_hash_entry): Don't declare.
18253 * eval.c (maybe_call_debugger): Make static and move before use.
18254 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18255 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18256 * xterm.h (x_set_frame_alpha): Declare.
18257
18258 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18259
18260 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18261 (create_menus): Connect selection-done to menu_nav_ended.
18262
18263 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18264
18265 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18266 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18267 parameter with read of 'alpha' one.
18268 (Qns_frame_parameter): Remove.
18269 * nsselect.m (selection-coding-system)
18270 (next-selection-coding-system, Vselection_coding_system)
18271 (Vnext_selection_coding_system): Drop.
18272
18273 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18274
18275 * nsfns.m (do-applescript, do_applescript): Rename to
18276 ns-do-applescript, ns_do_applescript, and move within file.
18277
18278 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18279
18280 Remove support for Mac Carbon.
18281 * mactoolbox.c:
18282 * macterm.h:
18283 * macterm.c:
18284 * macselect.c:
18285 * macmenu.c:
18286 * macgui.h:
18287 * macfns.c:
18288 * mac.c: Remove file.
18289 * s/darwin.h:
18290 * m/intel386.h:
18291 * xfaces.c:
18292 * xdisp.c:
18293 * window.c:
18294 * tparam.c:
18295 * termhooks.h:
18296 * termcap.c:
18297 * term.c:
18298 * syssignal.h:
18299 * sysselect.h:
18300 * sysdep.c:
18301 * process.c:
18302 * lread.c:
18303 * lisp.h:
18304 * keyboard.c:
18305 * image.c:
18306 * fringe.c:
18307 * frame.h:
18308 * frame.c:
18309 * fontset.c:
18310 * font.h:
18311 * font.c:
18312 * fns.c:
18313 * fileio.c:
18314 * emacs.c:
18315 * dispnew.c:
18316 * dispextern.h:
18317 * config.in:
18318 * atimer.c:
18319 * Makefile.in: Remove code for Carbon.
18320
18321 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18322
18323 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18324
18325 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18326
18327 * macterm.h (kCGBitmapByteOrder32Host): New define for
18328 non-universal SDKs.
18329
18330 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18331 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18332
18333 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18334 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18335
18336 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18337
18338 * w32inevt.c: Include dispextern.h.
18339
18340 2008-07-26 Andreas Schwab <schwab@suse.de>
18341
18342 * print.c (print_object): Fix off-by-one in last change.
18343
18344 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
18345
18346 * term.c (syms_of_term): Don't initialize default_orig_pair,
18347 default_set_foreground and default_set_background on Windows.
18348
18349 2008-07-25 Jason Rumney <jasonr@gnu.org>
18350
18351 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18352 ScriptItemize. Clean up return value checking. Remove unused
18353 variables.
18354 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18355 shaping engine.
18356
18357 * w32font.c (w32font_has_char): Handle the case where we can't
18358 determine the script for a character.
18359
18360 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18361
18362 * term.c (syms_of_term): Initialize default_orig_pair,
18363 default_set_foreground, and default_set_background.
18364
18365 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18366 clash (bug#86).
18367 (getloadavg): Callers changed.
18368
18369 * image.c (svg_load_image): Fix last change.
18370 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18371 image size is valid. Use g_object_unref instead of deprecated
18372 rsvg_handle_free to free rsvg handle.
18373 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18374
18375 2008-07-25 Jason Rumney <jasonr@gnu.org>
18376
18377 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18378 surrogates before looking up glyph index.
18379 (w32font_text_extents): Encode as surrogates if falling back to
18380 functions that need UTF-16 wide chars.
18381
18382 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18383 BMP as surrogates before looking up glyph index.
18384
18385 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18386
18387 * image.c (svg_load_image): Check for failure in return value of
18388 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18389
18390 2008-07-25 Jason Rumney <jasonr@gnu.org>
18391
18392 * w32font.c (Fx_select_font): Reverse sense of second arg.
18393
18394 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18395
18396 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18397 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18398
18399 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18400 (PURESIZE): Use it.
18401
18402 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18403
18404 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18405 * m/alpha.h (TEXT_END):
18406 * m/ibmrs6000.h (TEXT_END):
18407 * m/macppc.h (TEXT_END):
18408 * s/darwin.h (TEXT_END):
18409 * s/msdos.h (TEXT_END): Remove, unused.
18410 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18411 * s/cygwin.h: Remove comment.
18412
18413 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18414 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18415 * m/intel386.h (DOT_GLOBAL_START):
18416 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18417 (USG): Remove, file not used on USG platforms.
18418
18419 * Makefile.in (HAVE_X11): Remove empty #else.
18420
18421 2008-07-24 Andreas Schwab <schwab@suse.de>
18422
18423 * fileio.c (Finsert_file_contents): Properly adjust undo list
18424 after format conversion.
18425
18426 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18427
18428 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18429 (menu_nav_ended): Remove.
18430 (create_menus): Remove signal connect for menu_nav_ended.
18431 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18432 create_menus.
18433 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18434
18435 2008-07-23 Jason Rumney <jasonr@gnu.org>
18436
18437 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18438 with opened font.
18439 (w32font_open): Set font type to gdi.
18440
18441 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18442
18443 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18444
18445 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18446 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18447 defines it.
18448 * unexec.c (ADDR_CORRECT): Define unconditionally.
18449
18450 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18451
18452 * unexec.c: Remove code depending on !COFF and USG, the file is
18453 not used for such systems.
18454
18455 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18456 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18457 (LD_SWITCH_SYSTEM_1): Remove, update users.
18458
18459 * s/darwin.h (DATA_END):
18460 * m/intel386.h (DATA_END):
18461 * m/ibmrs6000.h (DATA_END):
18462 * m/alpha.h (DATA_END): Remove, unused.
18463
18464 * config.in: Regenerate.
18465 * s/ms-w32.h (subprocesses): Define unconditionally.
18466 * s/template.h (subprocesses): Update comment.
18467 * s/vms.h (subprocesses):
18468 * s/usg5-4.h (subprocesses):
18469 * s/hpux10-20.h (subprocesses):
18470 * s/gnu-linux.h (subprocesses):
18471 * s/cygwin.h (subprocesses):
18472 * s/bsd-common.h (subprocesses):
18473 * s/aix4-2.h (subprocesses):
18474 * s/darwin.h (subprocesses): Do not define, defined by default now.
18475
18476 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18477 Remove all references.
18478 (temacs): Add GNUstep specific ld flags.
18479
18480 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18481 similarly to what X does.
18482
18483 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18484
18485 * nsfns.m (x-list-fonts): Remove.
18486 (syms_of_nsfns): Drop the x-list-fonts declaration.
18487 * nsterm.m: Get rid of remaining "//" comments.
18488
18489 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
18490
18491 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18492
18493 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18494 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18495 (Fns_own_selection_internal, Fx_disown_selection_internal)
18496 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18497
18498 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18499 ... */' style of docstrings. Doc fixes.
18500
18501 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18502
18503 * terminfo.c (UP, BC, PC): Undo previous change.
18504
18505 * nsfns.m: Rename ns prefixed functions/variables to the
18506 corresponding x versions. Update references.
18507
18508 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18509
18510 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18511
18512 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18513
18514 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18515 Remove forwarding functions.
18516 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18517 non-static.
18518 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18519 non-static.
18520 (ns_frame_parm_handlers): Use the new names.
18521 (syms_of_nsfns): Move to the end of file.
18522
18523 * nsterm.m (syms_of_nsterm): Move to the end of file.
18524
18525 * dispnew.c (init_display): Remove code for X10.
18526
18527 2008-07-22 Jason Rumney <jasonr@gnu.org>
18528
18529 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18530 bare drive.
18531
18532 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18533
18534 * nsterm.m (syms_of_nsterm): Remove debugging println.
18535
18536 2008-07-22 David Reitter <david.reitter@gmail.com>
18537
18538 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18539 Carbon implementation of the same functionality: execute arbitrary
18540 AppleScript code.
18541
18542 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18543
18544 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18545 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18546 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18547 (Fx_display_mm_height, Fx_display_mm_width)
18548 (Fx_display_backing_store, Fx_display_visual_class)
18549 (Fx_display_save_under, Fx_open_connection)
18550 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18551 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18552 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18553 (Fx_display_pixel_width, Fx_display_pixel_height)
18554 (Fx_display_usable_bounds, Fx_display_planes)
18555 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18556 ... */' style of docstrings.
18557
18558 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18559
18560 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18561 on this platform.
18562 (mips):
18563 * m/iris4d.h (mips): Do not define.
18564 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18565
18566 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18567
18568 * image.c:
18569 * nsfns.m:
18570 * nsselect.m:
18571 * nsterm.h:
18572 * nsterm.m: Rename ns prefixed functions/variables to the
18573 corresponding x versions. Update references.
18574
18575 * m/ibms390x.h (NO_REMAP): Do not undefine.
18576
18577 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18578
18579 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
18580
18581 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18582 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18583 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18584 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18585 (Fns_display_mm_height, Fns_display_mm_width)
18586 (Fns_display_backing_store, Fns_display_visual_class)
18587 (Fns_display_save_under, Fns_open_connection)
18588 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18589 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18590 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18591 (Fns_display_pixel_width, Fns_display_pixel_height)
18592 (Fns_display_usable_bounds, Fx_display_planes)
18593 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18594
18595 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18596
18597 * print.c (print_object): Check print_depth before searching for
18598 circularities.
18599
18600 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
18601
18602 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18603 only sprintf.
18604
18605 2008-07-21 Kenichi Handa <handa@m17n.org>
18606
18607 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18608
18609 2008-07-20 Andreas Schwab <schwab@suse.de>
18610
18611 * syntax.c (find_start_pos, find_start_value)
18612 (find_start_value_byte, find_start_begv, find_defun_start)
18613 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18614
18615 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18616
18617 * s/sol2-3.h: Insert contents of s/sol2.h.
18618 (LD_SWITCH_SYSTEM): Remove redundant definition.
18619 * s/sol2.h: Remove, unused.
18620
18621 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18622
18623 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18624
18625 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18626
18627 * Makefile.in (ns_appdir): Fix typo in find command.
18628
18629 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18630
18631 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18632
18633 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18634 added not supported anymore.
18635
18636 * s/usg5-4-2.h (LIBS_SYSTEM):
18637 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18638
18639 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18640 * s/lynxos.h (GETPGRP_NO_ARG):
18641 * s/hpux10-20.h (NO_SIOCTL_H):
18642 * s/gnu.h (GETPGRP_NO_ARG):
18643 * s/gnu-linux.h (NO_SIOCTL_H):
18644 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18645 * s/cygwin.h (GETPGRP_NO_ARG):
18646 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18647 (C_DEBUG_SWITCH): Remove duplicate definition.
18648
18649 * m/ibms390.h: Remove boilerplate comments.
18650
18651 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18652
18653 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18654 (wait_reading_process_output): Remove code for SunOS, platform not
18655 supported anymore. Use SOLARIS2 instead of sun.
18656
18657 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18658
18659 * font.c (font_open_by_name): Under NS, default lface height to zero.
18660 (font_open_for_lface): Under NS, set size based on frame fontsize.
18661 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18662 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18663
18664 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18665
18666 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18667 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18668 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18669 YES/NO.
18670 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18671 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18672 * Makefile.in (clean): Clear out build destination dir.
18673
18674 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18675
18676 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18677 xterm, xselect.
18678 * lisp.h: Remove declaration of hash_remove.
18679 * nsgui.h: Remove redefinitions of hash_remove.
18680 * fns.c (hash_remove): Rename to hash_remove_from_table.
18681
18682 2008-07-19 Seiji Zenitani <zenitani@mac.com>
18683
18684 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18685 strdup() the family UTF8String before modifying it.
18686
18687 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18688
18689 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18690 NS_FACE_BACKGROUND with 0 instead of nil.
18691 * nsfont.m (nsfont_draw): Same.
18692
18693 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
18694
18695 * nsfns.m (ns_set_background_color): Fix crash.
18696
18697 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
18698
18699 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18700
18701 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18702
18703 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18704
18705 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18706
18707 * gtkutil.c: Include <config.h> instead of "config.h".
18708
18709 * lisp.h (Foverlay_buffer): Add EXFUN.
18710
18711 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18712 child process to complete child_setup. Undo 2005-09-21 change.
18713
18714 * s/darwin.h: Mention setsid after vfork.
18715
18716 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18717
18718 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18719 Depend on macgui.h.
18720
18721 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18722 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18723
18724 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18725 and f19.
18726 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18727
18728 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18729 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18730 Remove enumerators.
18731
18732 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18733 Check if FACE_FROM_ID returns NULL.
18734
18735 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18736
18737 * w32inevt.c (change_frame_size): Remove extern declaration.
18738 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18739 change_frame_size.
18740
18741 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18742
18743 * getloadavg.c: Revert last change (2008-07-15).
18744
18745 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18746
18747 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
18748 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
18749 from configure.
18750
18751 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18752
18753 * s/sol2.h:
18754 * s/sol2-4.h: Reorganize conditionals.
18755
18756 * ecrt0.c: Remove code depending on m68000, not used anymore.
18757
18758 * fns.c (hash_remove): Make static.
18759 * lisp.h (hash_remove): Don't prototype.
18760
18761 * m/ibmrs6000.h:
18762 * m/ibms390x.h:
18763 * m/macppc.h: Remove boilerplate comments.
18764
18765 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18766 Solaris, which does not need them.
18767
18768 * m/vax.h: Remove comments about unsupported systems.
18769
18770 * s/darwin.h: Reorganize ifdefs.
18771
18772 2008-07-17 Andreas Schwab <schwab@suse.de>
18773
18774 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18775
18776 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18777
18778 Use SDATA. Follow coding convention of placing operators at
18779 beginning of next line rather than end of previous line, and placing
18780 spaces around infix operators.
18781
18782 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18783 in case it was defined already.
18784 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18785 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18786 ns_default.
18787 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18788 Lisp_Objects.
18789 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18790 (ns_defined_color, ns_color_to_lisp): Declare.
18791 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18792 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18793 it's accepted even with USE_LISP_UNION_TYPE.
18794 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18795 (update_frame_tool_bar): Remove apparently obsolete tests for
18796 non-integerness of f->tool_bar_lines.
18797 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18798 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18799 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18800 (nsfont_open): Don't confuse NULL for Qnil.
18801 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18802 * menu.h (find_and_call_menu_selection):
18803 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18804 (find_and_return_menu_selection): Always return something.
18805 * frame.h: Include dispextern.h for Display_Info.
18806 (display_x_get_resource): Declare.
18807
18808 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18809
18810 * syntax.c: Remove stdio.h include accidentally introduced in
18811 Emacs.app commit.
18812 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18813 NS_IMPL_COCOA.
18814 * keyboard.c (handle_async_input, input_available_signal): Remove
18815 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18816
18817 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18818
18819 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18820 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18821 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18822 Use SDATA.
18823
18824 * keymap.c: Remove all NS-specific code.
18825 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18826 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18827 where_is_preferred_modifier, return a different value depending on how
18828 preferred is the binding.
18829 (where_is_internal): Adjust accordingly.
18830 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18831 Adjust to new preferred_sequence_p.
18832 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18833 * keyboard.c (parse_solitary_modifier): Not static any more.
18834 * keyboard.h (parse_solitary_modifier): Declare.
18835
18836 2008-07-16 Andreas Schwab <schwab@suse.de>
18837
18838 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18839 of easymenu.
18840
18841 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
18842
18843 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18844 that we don't move off the line.
18845
18846 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18847
18848 * keyboard.c (Qsuper): Remove.
18849 (parse_menu_item): Don't call where_is_internal specially for NS.
18850
18851 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18852
18853 * s/gnu-linux.h: Remove boilerplate comments.
18854
18855 * m/alpha.h (__ELF__): Consolidate conditions.
18856
18857 * m/m68k.h (linux): Use GNU_LINUX instead.
18858 Remove boilerplate comments.
18859
18860 * m/intel386.h: Undo refactoring from previous change.
18861 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18862 too, remove dead code.
18863 (linux): Use GNU_LINUX instead.
18864
18865 2008-07-16 Jason Rumney <jasonr@gnu.org>
18866
18867 * w32gui.h: Repeat 26 June changes lost by last change.
18868
18869 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18870
18871 * systty.h: Remove code for Aix on 386, unsupported platform.
18872
18873 * s/ms-w32.h: Remove boilerplate comments.
18874 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18875
18876 * s/gnu-linux.h (TERM): Remove support.
18877 (HAVE_SYSVIPC): Remove, unused.
18878 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18879 for this system.
18880
18881 * process.c: Remove support for IRIS, unused.
18882 Remove support for TERM, not relevant anymore.
18883
18884 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18885 used with the definition.
18886
18887 * s/aix4-2.h (static): Do not undef.
18888
18889 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18890 only used on Aix.
18891 (HAVE_SYSVIPC): Remove, unused.
18892
18893 * m/hp800.h (CANNOT_DUMP): Do not undef.
18894
18895 * m/alpha.h: Fix comment.
18896
18897 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18898 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18899 used by this configuration.
18900 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18901 * unexec.c: Remove code depending on HPUX and
18902 USG_SHARED_LIBRARIES, not used with this file. Remove code
18903 depending on IRIS, unused. Remove if 0-ed code.
18904
18905 * s/template.h: Remove comments about static.
18906
18907 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18908 Remove if 0-ed code.
18909 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18910 were the same as the default.
18911 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18912 Remove boilerplate comments.
18913 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18914 (HAVE_SYSVIPC): Remove, unused.
18915 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18916
18917 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18918 Remove boilerplate comments.
18919 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18920 Remove boilerplate comments.
18921 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18922 Remove boilerplate comments.
18923 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18924
18925 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18926 USG systems which do not use DATA_SEG_BITS.
18927 Refactor code. Remove boilerplate comments.
18928
18929 * m/ibms390.h:
18930 * m/m68k.h:
18931 * s/bsd-common.h:
18932 * s/cygwin.h:
18933 * s/darwin.h:
18934 * s/freebsd.h:
18935 * s/gnu.h:
18936 * s/msdos.h: Remove boilerplate comments.
18937
18938 * m/iris4d.h: Remove boilerplate comments and code for systems that
18939 do not use this file.
18940 (IRIS_4D): Remove, unused.
18941
18942 * m/mips.h: Remove boilerplate comments and code for systems that
18943 do not use this file.
18944 (SIGN_EXTEND_CHAR):
18945 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18946 * unexmips.c: Remove file, unused.
18947
18948 * editfns.c (Fuser_full_name): Replace the only use of
18949 USER_FULL_NAME with its value.
18950 * config.in: Regenerate.
18951
18952 2008-07-16 David Reitter <david.reitter@gmail.com>
18953
18954 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18955 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18956
18957 2008-07-16 Glenn Morris <rgm@gnu.org>
18958
18959 * emacs.c (system-type): Doc fix.
18960
18961 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18962
18963 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18964 If the cache doesn't work, let's fix it, rather than work around it.
18965
18966 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18967
18968 * Makefile.in: Correct additions for nsfont.o in last commit.
18969 * nsfont.m: New file (forgot last commit).
18970
18971 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18972
18973 * callproc.c (set_initial_environment):
18974 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
18975 batch-compiling for bootstrap).
18976
18977 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18978 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18979
18980 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18981 CANNOT_DUMP case -- fix crash due to different init order.
18982
18983 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18984
18985 Changes and additions for NeXTstep windowing system (Cocoa and
18986 GNUstep) support.
18987
18988 * Makefile.in:
18989 * config.in: Support defines and build commands for NS port.
18990 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18991 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18992 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18993 windowing.
18994 (struct face): Add synth_ital field.
18995 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18996 (init_display): Initialize Vinitial_window_system to "ns" when so
18997 compiled.
18998 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18999 (display_arg): Use under NS.
19000 (main): Under NS, allocate autorelease pool and handle command line
19001 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19002 (standard_args): Add NS-specific args.
19003 (shut_down_emacs): Shut down NS terminal if compiled under NS.
19004 * font.c (DEFAULT_ENCODING): New variable.
19005 (font_find_for_lface): Use it.
19006 (syms_of_font): Load syms_of_nsfont under NS.
19007 * font.h: Declare nsfont_driver when compiled under NS.
19008 * fontset.c: When compiling under NS, include nsterm.h.
19009 (fontset_from_font): Autoconstruct fontset under NS.
19010 * frame.c (various): Under NS, include nsterm.h, add Qns window system
19011 symbol, document and use it.
19012 (do_switch_frame): When for_deletion under Cocoa, add
19013 Fraise_frame(Qnil).
19014 (x_set_frame_parameters): Ensure font attribute changes are picked up.
19015 (x_get_arg): Allow "yes" and "no" as boolean values.
19016 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
19017 Qright under Cocoa.
19018 (focus-follows-mouse): Default to 0 under NS.
19019 * frame.h (enum output_method): Add output_ns.
19020 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19021 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19022 (FRAME_WINDOW_P): NS-specific definition.
19023 * fringe.c (max_used_fringe_bitmap): Make public.
19024 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19025 (getloadavg): Use NeXT code under descendant OS's.
19026 * image.c (includes and header section, x_create_bitmap_from_data)
19027 (x_create_bitmap_from_file, free_bitmap_record, image_background)
19028 (image_background_transparent, x_clear_image_1)
19029 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19030 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19031 (x_to_xcolors, x_from_xcolors, x_disable_image)
19032 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19033 other GUIs, including XPM support using code originally written for
19034 Carbon GUI.
19035 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19036 using NS API.
19037 (image_ascent): Use font metrics macros instead of direct struct field
19038 access.
19039 * keyboard.c (includes): Add nsterm.h when compiling under NS.
19040 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19041 Also, handle NS as GTK for menu bar purposes.
19042 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19043 toolkit where they differ.
19044 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
19045 use cachelist, still needed under NS.
19046 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19047 (struct widget_value): Define it here for menu.c.
19048 * keymap.c (includes): Include modifier internals.
19049 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19050 NS.
19051 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19052 support for preferring sequences using certain modifiers, specified by
19053 the FIRSTONLY argument.
19054 * lisp.h (hash_remove): Rename to avoid name clash when compiling
19055 under NS GNUstep implementation.
19056 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19057 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19058 * menu.c: Include nsterm.h under NS.
19059 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19060 (free_menubar_widget_tree_value, update_submenu_strings)
19061 (find_and_call_menu_selection): Treat NS as X and NT.
19062 (find_and_return_menu_selection): New function, used for popup menus.
19063 * nsgui.h:
19064 * nsterm.h:
19065 * nsfns.m:
19066 * nsimage.m:
19067 * nsmenu.m:
19068 * nsselect.m:
19069 * nsterm.m: New files.
19070 * process.c (wait_reading_process_output): Under NS, call ns_select()
19071 instead of plain select().
19072 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19073 beginning of buffer.
19074 * sysselect.h (init_process): Rename when compiling under Cocoa to
19075 avoid name conflict.
19076 * termhooks.h (display_info): Add ns_display_info to union.
19077 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19078 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19079 COCOA environment.
19080 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19081 unexec() signature. (Note, this will dump, but the resulting file
19082 crashes; unexosx is used instead; keeping around for reference and
19083 possible aid in getting dump working under GNUstep.)
19084 * w32gui.h (button_type, widget_value): Remove definitions (now in
19085 keyboard.h).
19086 * window.c: Include nsterm.h when compiling under NS.
19087 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19088 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19089 other GUI windowing systems.
19090 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19091 GTK.
19092 (x_consider_frame_title): Under NS, set icon type and frame
19093 modified-state indicator; use ns_set_name_as_filename() when using
19094 formatted title.
19095 (update_window_cursor): Make public when compiling under NS.
19096 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19097 (hourglass_atimer, Vhourglass_delay
19098 * xfaces.c (header section, init_frame_faces, clear_font_table)
19099 (defined_color, unload_color, x_face_list_fonts)
19100 (prepare_face_for_display): Add NS support parallel to other GUIs.
19101 Emulate GCs like other non-X GUIs.
19102 (split_font_name): Don't lowercase font name under NS.
19103 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19104 under NS.
19105 * s/darwin.h: Add support for compilation under NS.
19106
19107 2008-07-15 Jason Rumney <jasonr@gnu.org>
19108
19109 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19110 (w32_show_hourglass): Rename from show_hourglass.
19111 (w32_hide_hourglass): Rename from hide_hourglass.
19112 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19113 (Vhourglass_delay): Declare extern.
19114 (hourglass_started): Remove.
19115
19116 * xdisp.c (Vhourglass_delay): Remove static.
19117 (hourglass_started, start_hourglass, cancel_hourglass):
19118 Don't include these versions on WINDOWSNT.
19119
19120 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19121
19122 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19123 variables (formerly in xfns.c).
19124 (show_hourglass, hide_hourglass): New prototypes (same).
19125 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19126 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19127 in xfns.c).
19128 (syms_of_xdisp): Declare/initialize display-hourglass,
19129 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19130 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19131 formerly in xfns.c.
19132 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19133 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19134 (start_hourglass, cancel_hourglass): Remove.
19135 (show_hourglass, hide_hourglass): Remove prototypes and static
19136 modifiers.
19137 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19138 hourglass_atimer, hourglass_shown_p declaration/initialization.
19139 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19140 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19141 (start_hourglass, cancel_hourglass): Remove.
19142 (show_hourglass, hide_hourglass): Remove prototypes and static
19143 modifiers.
19144 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19145 hourglass_atimer, hourglass_shown_p declaration/initialization.
19146 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19147 (DEFAULT_HOURGLASS_DELAY): Remove.
19148 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19149 hourglass_shown_p declaration/initialization.
19150
19151 2008-07-14 Jason Rumney <jasonr@gnu.org>
19152
19153 * w32fns.c (w32_get_arg): Remove wrapper function.
19154 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19155 directly.
19156 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19157
19158 2008-07-14 Kenichi Handa <handa@m17n.org>
19159
19160 * xfont.c (xfont_open): Add workaround for X's bug.
19161
19162 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19163
19164 * fontset.c: Include <stdio.h> unconditionally.
19165
19166 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
19167
19168 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19169 for filtering.
19170
19171 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19172
19173 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19174
19175 * m/macppc.h:
19176 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19177
19178 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
19179 (SPECIAL_EMACS_INT):
19180 * m/ia64.h (SPECIAL_EMACS_INT):
19181 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19182 * s/gnu.h (NLIST_STRUCT):
19183 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19184 * s/gnu-linux.h (LINUX):
19185 * s/msdos.h (HAVE_FACES):
19186 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19187
19188 * systty.h:
19189 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19190 anymore.
19191
19192 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19193
19194 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19195 always defined as int.
19196
19197 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19198 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19199 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19200 * s/freebsd.h (HAVE_WAIT_HEADER):
19201 * s/bsd-common.h (HAVE_UNION_WAIT):
19202 * s/aix4-2.h (HAVE_WAIT_HEADER):
19203 * m/mips.h (HAVE_UNION_WAIT):
19204 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19205 (COFF, static): Do not define, they are undefined later in the file.
19206
19207 * process.c (update_status): Don't use a union.
19208 (status_convert):
19209 (sigchld_handler): Use int instead of WAITTYPE.
19210
19211 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
19212
19213 * indent.c (Fvertical_motion): Restore hscroll before moving to
19214 goal column.
19215
19216 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19217
19218 * lisp.h: Remove left over code.
19219
19220 2008-07-11 Andreas Schwab <schwab@suse.de>
19221
19222 * lisp.h: Fix logic in last change.
19223
19224 * menu.h: New file.
19225 * menu.c: Include it.
19226 * xmenu.c: Likewise.
19227 * Makefile.in: Update dependencies.
19228
19229 2008-07-11 Kenichi Handa <handa@m17n.org>
19230
19231 * fontset.c (fontset_from_font): Cancel the previous change.
19232
19233 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19234
19235 * lisp.h:
19236 * w32heap.c:
19237 * emacs.c:
19238 * alloc.c: Replace all references of NO_UNION_TYPE with
19239 USE_LISP_UNION_TYPE.
19240
19241 * m/xtensa.h (NO_UNION_TYPE):
19242 * m/vax.h (NO_UNION_TYPE):
19243 * m/template.h (NO_UNION_TYPE):
19244 * m/sparc.h (NO_UNION_TYPE):
19245 * m/mips.h (NO_UNION_TYPE):
19246 * m/macppc.h (NO_UNION_TYPE):
19247 * m/m68k.h (NO_UNION_TYPE):
19248 * m/iris4d.h (NO_UNION_TYPE):
19249 * m/intel386.h (NO_UNION_TYPE):
19250 * m/ibms390x.h (NO_UNION_TYPE):
19251 * m/ibms390.h (NO_UNION_TYPE):
19252 * m/ibmrs6000.h (NO_UNION_TYPE):
19253 * m/ia64.h (NO_UNION_TYPE):
19254 * m/hp800.h (NO_UNION_TYPE):
19255 * m/arm.h (NO_UNION_TYPE):
19256 * m/amdx86-64.h (NO_UNION_TYPE):
19257 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19258 defining it the same.
19259
19260 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
19261
19262 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19263
19264 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19265
19266 * fileio.c:
19267 * sysdep.c:
19268 * systty.h:
19269 * m/ibmrs6000.h:
19270 * m/iris4d.h:
19271 * s/aix4-2.h:
19272 * s/freebsd.h:
19273 * s/gnu-linux.h:
19274 * s/hpux10-20.h:
19275 * s/hpux11.h:
19276 * s/netbsd.h:
19277 * s/sol2-3.h:
19278 * s/sol2-4.h:
19279 * s/sol2.h:
19280 * s/usg5-4.h:
19281 * s/vms.h: Remove references to unused variables.
19282
19283 2008-07-10 Andreas Schwab <schwab@suse.de>
19284
19285 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19286 pattern before matching the generic family.
19287
19288 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19289
19290 * unexec.c:
19291 * s/vms.h:
19292 * s/usg5-4-2.h:
19293 * s/sol2-5.h:
19294 * s/freebsd.h:
19295 * s/darwin.h: Remove dead code.
19296
19297 * m/template.h:
19298 * m/sparc.h:
19299 * m/mips.h:
19300 * m/m68k.h:
19301 * m/iris4d.h:
19302 * m/intel386.h:
19303 * m/ibms390x.h:
19304 * m/ibms390.h:
19305 * m/ia64.h:
19306 * m/hp800.h:
19307 * m/arm.h:
19308 * m/amdx86-64.h: Remove dead code and references to unused
19309 and compiler defined symbols.
19310
19311 * unexmips.c:
19312 * unexelf.c: Remove references to desupported systems.
19313
19314 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19315
19316 * m/powermac.h: Remove boilerplate comments.
19317 (NO_REMAP): Remove unused definition.
19318
19319 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19320 define them.
19321
19322 2008-07-10 Kenichi Handa <handa@m17n.org>
19323
19324 * xfont.c (xfont_open): Log the reason of failure.
19325
19326 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19327
19328 * fontset.c (fontset_get_font_group):
19329 * font.c (font_check_otf): Specify argument types.
19330
19331 2008-07-09 Kenichi Handa <handa@m17n.org>
19332
19333 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19334 non-ASCII char is found.
19335
19336 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19337 (reorder_font_vector): Change the arg preferred_family to font.
19338 Prefer the spec matching with font.
19339 (fontset_get_font_group): New function.
19340 (fontset_find_font): Change the format of an element of a realized
19341 fontset. Use fontset_get_font_group.
19342 (fontset_font): Try the current fontset, the default fontset, the
19343 fallbacks of the current fontset, and the fallbacks of the default
19344 fontset in this order.
19345 (face_for_char): Delete the shortcut to use the current font.
19346 (fontset_from_font): Don't set fonts for Latin in the fontset.
19347
19348 * font.h (font_make_object, font_match_p): Adjust prototypes.
19349
19350 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19351
19352 * font.c (font_make_object): New arg entity and pixelsize.
19353 (font_check_otf_features, font_check_otf): New functions.
19354 (font_match_p): Check :lang, :script, and :otf properties.
19355
19356 * xfont.c (xfont_open): Adjust it for the change of
19357 font_make_object.
19358 (xfont_text_extents): Fix initial setting of metrics.
19359
19360 * ftfont.c (struct ftfont_info): New member index, delete member
19361 fc_charset_idx. Make the member order compatible with struct
19362 xftfont_info.
19363 (fc_charset_table): Change charset names to registry names.
19364 (ftfont_pattern_entity): Delete the args registry and
19365 fc_charset_idx. Change the value of :font-entity property
19366 to (FONTNAME . INDEX). Always set :registry property to
19367 `iso10646-1'.
19368 (struct ftfont_cache_data): New struct.
19369 (ftfont_lookup_cache): New arg for_face.
19370 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19371 (ftfont_driver): Set the member otf_capability.
19372 (ftfont_get_charset): Adjust it for the change of
19373 fc_charset_table.
19374 (OTF_TAG_SYM): New macro.
19375 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19376 for the change of fc_charset_table.
19377 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19378 ftfont_pattern_entity. Add FC_INDEX to objset.
19379 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19380 and ftfont_pattern_entity.
19381 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19382 font_make_object, struct ftfont_info.
19383 (ftfont_has_char): Use ftfont_get_fc_charset.
19384 (ftfont_otf_features, ftfont_otf_capability): New functions.
19385 (ftfont_shape): Use ftfont_get_otf.
19386 (ftfont_text_extents): Fix initial setting of metrics.
19387
19388 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19389 member order compatible with struct ftfont_info.
19390 (xftfont_open): Add FC_CHARSET to the pattern.
19391 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
19392 properties if appropriate.
19393 (xftfont_close): Unlock the face.
19394 (xftfont_anchor_point, xftfont_shape): Deleted.
19395 (syms_of_xftfont): Don't set members anchor_point and shape of
19396 xftfont_driver.
19397
19398 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19399 font_make_object.
19400
19401 * w32font.c (w32font_open): Adjust it for the change of
19402 font_make_object.
19403 (w32font_open_internal): Don't set properties of font_object here.
19404
19405 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
19406
19407 * macfns.c (x_create_tip_frame):
19408 * w32fns.c (x_create_tip_frame):
19409 * xfns.c (x_create_tip_frame): Pass parameter argument to
19410 face-set-after-frame-default.
19411
19412 * xfaces.c (Finternal_merge_in_global_face): Save merged
19413 attributes for the default face back into the face vector.
19414
19415 2008-07-08 Andreas Schwab <schwab@suse.de>
19416
19417 * fontset.h: Declare fontset_from_font. Don't declare
19418 new_fontset_from_font and fontset_from_font_name.
19419 * xterm.c: Include "fontset.h".
19420 * Makefile.in (xterm.o): Update dependencies.
19421
19422 2008-07-08 Glenn Morris <rgm@gnu.org>
19423
19424 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19425 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19426
19427 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
19428
19429 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19430 (x_set_frame_parameters): Don't bind it.
19431
19432 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
19433
19434 * w32fns.c (map_w32_filename): Declare extern.
19435
19436 2008-07-07 Jason Rumney <jasonr@gnu.org>
19437
19438 * w32term.c (WS_EX_LAYERED): Define if not already.
19439
19440 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
19441
19442 * xfaces.c (set_font_frame_param): Don't try to set the font
19443 parameter if it is still unspecified in the lface.
19444
19445 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19446
19447 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19448 face if it didn't already exist.
19449
19450 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19451
19452 2008-07-05 Andreas Schwab <schwab@suse.de>
19453
19454 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19455
19456 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19457
19458 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19459 word-wrapping.
19460 (IT_DISPLAYING_WHITESPACE): New macro.
19461 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19462 when word-wrapping. Simplify word-wrapping logic. Use correct
19463 pixel positions when saving copies of the iterator.
19464 (display_line): Use proper wrap point if the last character on a
19465 line was preceded by whitespace.
19466
19467 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19468
19469 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19470
19471 2008-07-04 Kenichi Handa <handa@m17n.org>
19472
19473 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19474
19475 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19476
19477 2008-07-02 Jason Rumney <jasonr@gnu.org>
19478
19479 * xfns.c (syms_of_xfns): Only define x-select-font when both
19480 HAVE_FREETYPE and USE_GTK.
19481
19482 * xdisp.c (next_element_from_display_vector): Move assignment out
19483 of if statement.
19484
19485 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19486
19487 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19488
19489 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19490 (syms_of_fileio): Initialize and export them.
19491 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19492
19493 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19494 (Fsystem_move_file_to_trash): New function.
19495 (syms_of_w32fns): Export it to lisp.
19496
19497 2008-07-01 Jason Rumney <jasonr@gnu.org>
19498
19499 * w32font.c (w32font_text_extents): Don't count overhang as part
19500 of width.
19501
19502 2008-06-30 Miles Bader <miles@gnu.org>
19503
19504 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19505 Add `avoid_cursor_p' field.
19506
19507 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19508 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19509 (append_glyph, append_composite_glyph, produce_image_glyph)
19510 (append_stretch_glyph): Initialize avoid_cursor_p.
19511 (get_it_property): Rename from `get_line_height_property'.
19512 (x_produce_glyphs): Use get_it_property.
19513 (handle_line_prefix, push_display_prop): New functions.
19514 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19515 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19516 New variables.
19517 (syms_of_xdisp): Initialize them.
19518
19519 2008-06-30 Kenichi Handa <handa@m17n.org>
19520
19521 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19522 XftDefaultSubstitute (they are called in XftFontMatch).
19523 (xftfont_open): Fix args to ftfont_font_format.
19524
19525 * ftfont.c (fc_charset_table): New member lang.
19526 (ftfont_resolve_generic_family): New arg pattern.
19527 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19528 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19529 (ftfont_open): Fix args to ftfont_font_format.
19530 (ftfont_font_format): New arg filename.
19531
19532 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
19533
19534 * xfaces.c (Finternal_merge_in_global_face): If default face was
19535 modified, realize it again. Update the font face attribute.
19536
19537 2008-06-29 Jason Rumney <jasonr@gnu.org>
19538
19539 * w32term.c (x_set_frame_alpha): Fix logic.
19540
19541 2008-06-29 Kenichi Handa <handa@m17n.org>
19542
19543 * fontset.c (Finternal_char_font): Return font-object instead of
19544 font-name.
19545
19546 * composite.c (get_composition_id): Fix the width calculation for TAB.
19547
19548 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19549
19550 * indent.c (Fvertical_motion): Properly handle float column arg.
19551
19552 2008-06-28 Jason Rumney <jasonr@gnu.org>
19553
19554 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19555 (pfnSetLayeredWindowAttributes): New function pointer.
19556 (w32_initialize): Initialize it when supported.
19557 (x_set_frame_alpha): New function.
19558
19559 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19560 (w32_frame_parm_handlers): Set alpha handler.
19561
19562 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19563
19564 2008-06-27 Jason Rumney <jasonr@gnu.org>
19565
19566 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19567 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19568 (w32_to_x_charset, x_to_w32_charset)
19569 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19570 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19571 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19572 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19573 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19574 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19575 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19576 (Qw32_charset_unicode): Remove.
19577 (syms_of_w32fns): Update for above changes.
19578
19579 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19580 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19581 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19582 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19583 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19584 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19585 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19586 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19587 (syms_of_w32font): Update for above changes.
19588
19589 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19590
19591 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19592 removed #if.
19593 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19594
19595 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19596 Eli Zaretskii <eliz@gnu.org>
19597
19598 * makefile.w32-in (LOCAL_FLAGS):
19599 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19600
19601 * sysdep.c (_spawnlp, _getpid):
19602 Declare with explicit _cdecl instead of _CRTAPI1.
19603
19604 * editfns.c (Fget_internal_run_time):
19605 Check for WINDOWSNT with #ifdef, not #if.
19606
19607 2008-06-26 Jason Rumney <jasonr@gnu.org>
19608
19609 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19610
19611 * w32term.c (x_draw_glyph_string_foreground)
19612 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19613 Use FONT_HANDLE macro.
19614 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19615
19616 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19617 (uniscribe_encode_char): Use FONT_HANDLE macro.
19618
19619 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19620 (w32font_text_extents): Use precast w32_font.
19621 (w32font_close): Free cached metrics.
19622 (w32font_open_internal): Allocate space for name on stack.
19623
19624 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
19625
19626 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19627
19628 2008-06-26 Jason Rumney <jasonr@gnu.org>
19629
19630 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19631 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19632
19633 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19634
19635 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19636
19637 2008-06-26 Jason Rumney <jasonr@gnu.org>
19638
19639 * w32bdf.c, w32bdf.h: Remove obsolete files.
19640
19641 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19642
19643 * w32gui.h: Don't include w32bdf.h.
19644 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19645 Remove obsolete font support.
19646
19647 * w32font.h (struct w32font_info): Remove compat_w32_font.
19648 Add hfont member.
19649 (FONT_COMPAT): Remove obsolete macro.
19650
19651 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19652 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19653 (w32font_open_internal): Remove compat code. Set new hfont member.
19654 (Fx_select_font): Use new hfont member.
19655
19656 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19657 (uniscribe_encode_char): Use new hfont member.
19658
19659 * w32term.c (x_draw_glyph_string_foreground)
19660 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19661 (x_draw_glyph_string): Use metrics in w32font_info.
19662
19663 2008-06-26 Kenichi Handa <handa@m17n.org>
19664
19665 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19666
19667 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19668
19669 * unexnext.c:
19670 * m/ews4800.h:
19671 * m/hp9000s300.h:
19672 * m/ibm370aix.h:
19673 * m/mips-siemens.h:
19674 * m/ncr386.h:
19675 * m/next.h:
19676 * m/pmax.h:
19677 * m/powerpcle.h:
19678 * m/tandem-s2.h:
19679 * s/386bsd.h:
19680 * s/bsd386.h:
19681 * s/bsd4-1.h:
19682 * s/bsd4-2.h:
19683 * s/bsdos2-1.h:
19684 * s/bsdos2.h:
19685 * s/bsdos3.h:
19686 * s/bsdos4.h:
19687 * s/nextstep.h:
19688 * s/ultrix4-3.h:
19689 * s/usg5-0.h:
19690 * s/usg5-2-2.h:
19691 * s/usg5-2.h:
19692 * s/usg5-4-3.h:
19693 * s/ux4800.h:
19694 * s/uxpds.h:
19695 * s/uxpv.h: Remove support for obsolete systems.
19696 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
19697 Remove, insert contents in s/hpux10-20.h.
19698 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19699 Remove, insert contents in s/aix4-2.h.
19700 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19701 * s/bsd4-3.h: Rename to ...
19702 * s/bsd-common.h: ... this.
19703 * data.c:
19704 * doc.c:
19705 * ecrt0.c:
19706 * emacs.c:
19707 * fileio.c:
19708 * floatfns.c:
19709 * keyboard.c:
19710 * mem-limits.h:
19711 * print.c:
19712 * process.c:
19713 * sysdep.c:
19714 * syssignal.h:
19715 * systty.h:
19716 * syswait.h:
19717 * term.c:
19718 * unexec.c:
19719 * unexelf.c:
19720 * unexhp9k800.c:
19721 * m/hp800.h:
19722 * m/ibmrs6000.h:
19723 * m/mips.h:
19724 * m/vax.h:
19725 * s/darwin.h:
19726 * s/freebsd.h:
19727 * s/gnu.h:
19728 * s/ms-w32.h:
19729 * s/msdos.h:
19730 * s/netbsd.h:
19731 * s/template.h: Remove references to obsolete variables.
19732
19733 * Makefile.in: Add dependencies for all unexec files.
19734 (admindir): Remove unused variable.
19735 (UNEXEC_SRC): Remove references.
19736
19737 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
19738
19739 * xfns.c (x_default_font_parameter): If Xft is available, first
19740 try Monospace-12 for the default font.
19741
19742 2008-06-25 Jason Rumney <jasonr@gnu.org>
19743
19744 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19745
19746 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19747
19748 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19749
19750 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19751
19752 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
19753
19754 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19755 <scroll-conservatively>: Fix typo in docstring.
19756
19757 * xselect.c (Fx_send_client_event): Doc fix.
19758
19759 2008-06-25 Kenichi Handa <handa@m17n.org>
19760
19761 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19762
19763 * font.c (font_parse_fcname): Remove unused variables.
19764 (font_sort_entites): Delete the arg SPEC. Caller changed.
19765 Fix for the case of ! best_only.
19766 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19767
19768 * lisp.h (Fstring_to_unibyte): EXFUN it.
19769
19770 * character.h (str_to_unibyte): Extern it.
19771
19772 * character.c (str_to_unibyte): New function.
19773
19774 * fns.c (Fstring_to_unibyte): New function.
19775 (syms_of_fns): Defsubr it.
19776
19777 2008-06-24 Kenichi Handa <handa@m17n.org>
19778
19779 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19780 DPI too.
19781 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19782
19783 2008-06-24 Andreas Schwab <schwab@suse.de>
19784
19785 * Makefile.in (${lispsource}loaddefs.el): Rename from
19786 ../lisp/loaddefs.el.
19787 (bootstrap-clean): Do what distclean does but don't remove
19788 Makefile.
19789 (distclean): Depend on bootstrap-clean and remove Makefile.
19790
19791 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
19792
19793 * buffer.h (struct buffer): New member word_wrap.
19794
19795 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19796 word-wrap.
19797 (init_buffer_once): Initialize them.
19798
19799 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19800 line_wrap enum possessing three possible values.
19801
19802 * termopts.h: Replace truncate_partial_width_windows with
19803 Vtruncate_partial_width_windows.
19804
19805 * dispnew.c (direct_output_for_insert): Avoid direct output when
19806 inserting a space with word wrap on.
19807
19808 * indent.c (compute_motion): Obey integer values of
19809 truncate-partial-width-windows.
19810
19811 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19812 replacing truncate_partial_width_windows.
19813 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19814 truncate only if the window width is below that integer.
19815 (start_display, resize_mini_window, produce_stretch_glyph)
19816 (display_string, move_it_in_display_line_to): Use line_wrap.
19817 (back_to_previous_visible_line_start, reseat_1):
19818 Reset string_from_display_prop_p.
19819 (display_line): Extend default face to end of line when wrapping.
19820
19821 2008-06-24 Kim F. Storm <storm@cua.dk>
19822
19823 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19824 to wrap continued lines at word boundaries.
19825
19826 2008-06-24 Jason Rumney <jasonr@gnu.org>
19827
19828 * font.c (Ffont_face_attributes): Multiply pixel size before point
19829 conversion to avoid multiplying rounding error.
19830
19831 2008-06-23 Jason Rumney <jasonr@gnu.org>
19832
19833 * w32term.c (x_draw_glyph_string_background)
19834 (x_draw_glyph_string): Remove old bdf font code.
19835
19836 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19837
19838 2008-06-22 Kenichi Handa <handa@m17n.org>
19839
19840 * font.c (font_find_for_lface): Try the adstyle specified in
19841 the property of LFACE_FONT of LFACE (if any).
19842
19843 2008-06-21 Seiji Zenitani <zenitani@mac.com>
19844 Ryo Yoshitake <ryo@shiftmode.net>
19845
19846 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19847
19848 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19849
19850 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19851 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19852 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19853 (witness-emacs): Remove.
19854 (lisp, shortlisp): Move loaddefs.el earlier.
19855 (mostlyclean): Forget about witness-emacs.
19856
19857 2008-06-22 Glenn Morris <rgm@gnu.org>
19858
19859 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19860 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19861
19862 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19863
19864 * Makefile.in (PRECOMP): Remove.
19865 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19866 (witness-emacs): Run `compile-first'.
19867 (.el.elc): Use the new compile-onefile target.
19868
19869 2008-06-21 Kenichi Handa <handa@m17n.org>
19870
19871 * xftfont.c (xftfont_open): Handle QCembolden only when
19872 FC_EMBOLDEN is defined.
19873
19874 2008-06-21 Andreas Schwab <schwab@suse.de>
19875
19876 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19877 (.el.elc): Likewise.
19878
19879 2008-06-21 Miles Bader <miles@gnu.org>
19880
19881 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19882 build dir, not the lisp source dir.
19883
19884 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19885
19886 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19887 (bootstrapclean): Remove.
19888 (.el.elc): New rule.
19889 (PRECOMP): New var.
19890 (../lisp/subdirs.el): Remove.
19891 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19892 (witness-emacs): New target.
19893 (mostlyclean): Remove witness-emacs as well.
19894 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19895 Add witness-emacs dependency.
19896
19897 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
19898
19899 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19900 defined by the font.
19901
19902 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19903
19904 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19905 (bootstrap-clean): New target that keeps TAGS around.
19906 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19907 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19908
19909 2008-06-20 Jason Rumney <jasonr@gnu.org>
19910
19911 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19912 Remove obsolete font code.
19913
19914 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19915 to determine language support.
19916
19917 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19918
19919 * sysdep.c (cfsetspeed): New fun extracted from the code.
19920 (cfmakeraw): Move before first use.
19921
19922 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19923
19924 * sysdep.c (cfmakeraw): Provide fallback implementation.
19925 (serial_configure): Provide fallback implementation of cfsetspeed.
19926
19927 2008-06-20 Kenichi Handa <handa@m17n.org>
19928
19929 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19930 the pattern.
19931
19932 * fontset.c (fontset_from_font): Copy font_spec before changing
19933 the elements.
19934
19935 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19936
19937 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19938
19939 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19940 for explicit `font' parameters.
19941
19942 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19943
19944 2008-06-19 Kenichi Handa <handa@m17n.org>
19945
19946 * frame.c: Include <ctype.h>.
19947 (x_set_font_backend): Allow spacing characters in the X resource
19948 for FontBackend.
19949
19950 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19951
19952 * w32fns.c, xfns.c (Qfont_param): New var.
19953 (syms_of_w32fns): Initialize it.
19954 (x_default_font_parameter): Record explicit `font' into
19955 `font-parameter'.
19956
19957 2008-06-18 Kenichi Handa <handa@m17n.org>
19958
19959 * font.c (font_parse_xlfd): Fix previous change.
19960 (font_parse_fcname): Don't use :fc-unknown-spec.
19961 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19962 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19963 (font_add_log): Prepend the driver name to the resulting fonts.
19964
19965 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19966 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19967 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19968
19969 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19970 (QCembolden): New variables.
19971 (syms_of_xftfont): DEFSYM them.
19972 (xftfont_open): Call XftFontMatch. Don't trust the result of
19973 XftTextExtents8 if the pixel_size is less than 5.
19974
19975 2008-06-18 Andreas Schwab <schwab@suse.de>
19976
19977 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19978 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19979
19980 2008-06-18 Jason Rumney <jasonr@gnu.org>
19981
19982 * w32font.c (w32font_list, w32font_match): Add logging.
19983
19984 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19985
19986 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
19987
19988 * font.c (font_parse_fcname): Store divider characters for
19989 unknown-spec list. For known key symbols, intern using correct
19990 symbol name.
19991
19992 2008-06-17 Kenichi Handa <handa@m17n.org>
19993
19994 * xfaces.c (realize_default_face): If the frame is not on window
19995 system, set the fontset of face to nil.
19996
19997 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19998
19999 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20000
20001 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20002
20003 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20004 (build_font_name_from_vector): Delete externs.
20005
20006 * xfaces.c (struct font_name): Don't declare.
20007
20008 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
20009
20010 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20011
20012 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20013
20014 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20015
20016 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20017
20018 * font.c (Ffont_spec): Fix usage in docstring.
20019 (Ffont_face_attributes): Doc fix.
20020
20021 2008-06-16 Andreas Schwab <schwab@suse.de>
20022
20023 * font.c (Ffont_face_attributes): Fix definition.
20024
20025 2008-06-16 Jason Rumney <jasonr@gnu.org>
20026
20027 * font.h (font_style_symbolic_from_value): Remove.
20028
20029 * font.c (font_style_symbolic_from_value): Remove.
20030 (font_style_symbolic): Revert to pre 2008-06-13 version.
20031
20032 * w32font.c (w32_to_fc_weight): New function.
20033 (w32font_full_name, logfont_to_fcname): Use it.
20034
20035 2008-06-16 Kenichi Handa <handa@m17n.org>
20036
20037 * font.c (font_check_object): Delete it.
20038 (font_clear_cache): Check if a font-object is alive.
20039 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
20040 font-object to nil.
20041 (font_close_object): Don't check FONT_CLOSE_OBJECT.
20042 (font_at): Don't call font_check_object.
20043 (Ffont_get): Return a symbol for :weight, :slant, and :width.
20044
20045 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
20046
20047 * puresize.h (BASE_PURESIZE): Increase to 1230000.
20048
20049 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20050
20051 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20052
20053 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
20054
20055 * font.c (font_parse_fcname): Only one decimal point.
20056 (font_unparse_fcname): Handle data in family and foundry indices
20057 as symbols, not strings.
20058 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20059
20060 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20061
20062 * font.h (font_unparse_gtkname): Add prototype.
20063
20064 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20065
20066 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20067
20068 2008-06-15 Andreas Schwab <schwab@suse.de>
20069
20070 * font.c (font_update_drivers): Fix crash when no drivers match.
20071
20072 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20073
20074 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20075 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20076
20077 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20078
20079 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20080
20081 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20082
20083 * process.c (Fserial_process_configure, Fprocess_send_eof):
20084 Use EQ to compare Lisp_Objects.
20085
20086 2008-06-13 Jason Rumney <jasonr@gnu.org>
20087
20088 * w32fns.c (Fw32_select_font): Remove old font API function.
20089
20090 * w32font.c (logfont_to_fcname): New function.
20091 (Fx_select_font): New font dialog function compatible with
20092 GTK/fontconfig version.
20093
20094 * font.c (font_style_symbolic_from_value): New function.
20095 (font_style_symbolic): Use it.
20096
20097 * font.h (font_style_symbolic_from_value): Declare new function.
20098
20099 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
20100
20101 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20102 <font-width-table>: Fix typos in docstrings.
20103
20104 2008-06-13 Daniel Engeler <engeler@gmail.com>
20105
20106 These changes add serial port access.
20107 * process.c: Add HAVE_SERIAL.
20108 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20109 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20110 (list_processes_1, select_wrapper, Fstop_process)
20111 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20112 (status_notify): Modify to handle serial processes.
20113 [HAVE_SERIAL] (Fserial_process_configure)
20114 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20115 New functions.
20116 * process.h (struct Lisp_Process): Add `type'.
20117 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20118 New functions.
20119 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20120 serial ports.
20121 (serial_open, serial_configure): New functions.
20122 * w32.h: Add FILE_SERIAL.
20123 (struct _child_process): Add ovl_read, ovl_write.
20124
20125 2008-06-13 Kenichi Handa <handa@m17n.org>
20126
20127 * dispextern.h (enum lface_attribute_index): New member
20128 LFACE_FOUNDRY_INDEX.
20129
20130 * font.c (font_score): Delete arg alternate_families. Check only
20131 weight, slant, width, and size. Ignore the difference of alias
20132 style symbols.
20133 (font_sort_entites): Adjust for the above change. Reflect the
20134 order of font-driver to scores.
20135 (font_list_entities): Don't check alternate_familes here.
20136 (font_clear_prop): Handle foundry.
20137 (font_update_lface): Don't parse "foundry-family" form here.
20138 Handle FONT_FOUNDRY_INDEX.
20139 (font_find_for_lface): Likewise. Handle alternate families here.
20140 If registry is nil, try iso8859-1 and ascii-0.
20141 (font_open_for_lface): Pay attention to size in ENTITY.
20142 (font_open_by_name): Simplify by calling font_load_for_lface.
20143 (free_font_driver_list): Delete it.
20144 (font_update_drivers): Preserve the order of backends.
20145 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20146 of font_score and font_sort_entites.
20147 (font_update_sort_order): Likewise.
20148
20149 * xfaces.c (LFACE_FOUNDRY): New macro.
20150 (check_lface_attrs): Check foundry.
20151 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20152 (merge_face_vectors): Check foundry.
20153 (merge_face_ref): Likewise.
20154 (Finternal_set_lisp_face_attribute): Likewise.
20155 (x_update_menu_appearance): Likewise.
20156 (Finternal_get_lisp_face_attribute): Likewise.
20157 (lface_hash): Likewise.
20158 (lface_same_font_attributes_p): Likewise.
20159 (x_supports_face_attributes_p): Likewise.
20160 (tty_supports_face_attributes_p): Likewise.
20161 (Finternal_set_alternative_font_family_alist): Intern strings.
20162 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20163 (realize_default_face): Set LFACE_FOUNDRY (lface).
20164
20165 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20166 font-driver at first.
20167
20168 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20169
20170 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20171
20172 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20173
20174 2008-06-12 Jim Meyering <meyering@redhat.com>
20175
20176 Make unexec_free handle NULL the same way free does.
20177 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20178
20179 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20180
20181 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20182 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20183 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20184 (WEAK_ALIAS): Simplify.
20185 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20186 when searching a unibyte buffer.
20187
20188 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
20189
20190 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20191
20192 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
20193
20194 * w32font.c: Include ctype.h.
20195
20196 2008-06-11 Jason Rumney <jasonr@gnu.org>
20197
20198 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20199 misreported as space.
20200 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20201 as aliases for registry iso10646-1.
20202
20203 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20204
20205 * buffer.c (clone_per_buffer_values): Skip `name'.
20206
20207 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
20208
20209 * font.c (font_parse_fcname): Fix last change; accept decimal
20210 points in font size.
20211
20212 2008-06-10 Jason Rumney <jasonr@gnu.org>
20213
20214 * w32uniscribe.c (add_opentype_font_name_to_list):
20215 Skip non unicode fonts.
20216
20217 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20218
20219 * xfns.c (Fx_font_dialog): New function.
20220
20221 * gtkutil.c (xg_dialog_response_cb): Rename from
20222 xg_file_response_callback.
20223 (pop_down_dialog): Rename from pop_down_file_dialog.
20224 (xg_get_file_name): Callers changed.
20225 (xg_get_font_name): New function.
20226
20227 * gtkutil.h (xg_get_font_name): Insert prototype.
20228
20229 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20230
20231 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20232 x_underline_minimum_display_offset.
20233 (syms_of_xdisp): Declare it here rather than in xterm.c.
20234 * dispextern.h (underline_minimum_offset): Declare it.
20235 * w32term.c (x_draw_glyph_string): Use it.
20236 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20237 (syms_of_xterm): Don't declare it any more.
20238 (x_draw_glyph_string): Adjust to the new name.
20239
20240 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
20241
20242 * xterm.c (x_underline_minimum_display_offset): New var.
20243 (x_draw_glyph_string): Use it.
20244 (syms_of_xterm): Declare it.
20245
20246 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20247
20248 * font.c (font_parse_fcname): Accept GTK-style font names too.
20249
20250 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20251
20252 * dired.c (file_name_completion): Don't return t if the match is exact
20253 but with different capitalization.
20254 * minibuf.c (Ftry_completion): Simplify.
20255
20256 * window.c (Vwindow_point_insertion_type): New var.
20257 (set_window_buffer): Use it.
20258 (syms_of_window): Init and export it to Lisp.
20259
20260 2008-06-10 Kenichi Handa <handa@m17n.org>
20261
20262 * font.h (font_intern_prop): Prototype adjusted.
20263
20264 * font.c (font_intern_prop): New arg force_symbol.
20265 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20266 Adjust for the change of font_intern_prop.
20267
20268 * ftfont.c (ftfont_pattern_entity):
20269 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20270 (w32_registry):
20271 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20272 the change of font_intern_prop.
20273
20274 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
20275
20276 * w32menu.c (digest_single_submenu): Declare extern.
20277
20278 2008-06-09 Jason Rumney <jasonr@gnu.org>
20279
20280 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20281
20282 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20283 (parse_single_submenu): Remove.
20284 (digest_single_submenu): Remove.
20285 (syms_of_w32menu): Don't initialise variables that have moved
20286 to menu.c.
20287 (set_frame_menubar): Sync with version in xmenu.c.
20288 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20289
20290 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20291 Make static again.
20292
20293 2008-06-09 Jason Rumney <jasonr@gnu.org>
20294
20295 Changes to w32 files related to the move of common menu code
20296 to menu.c on 2008-06-08 by Chong Yidong.
20297
20298 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20299 defs to w32gui.h.
20300 (single_keymap_panes, push_menu_item, push_menu_pane):
20301 Make globally visible.
20302
20303 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20304 (local_free, malloc_widget_value, free_widget_value)
20305 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20306 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20307 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20308 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20309 (menu_items, menu_items_allocated, menu_items_used)
20310 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20311 (init_menu_items, finish_menu_items, discard_menu_items)
20312 (grow_menu_items, push_submenu_start, push_submenu_end)
20313 (push_left_right_boundary, push_menu_pane, push_menu_item)
20314 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20315 (free_menubar_widget_tree_value, parse_single_submenu)
20316 (update_submenu_strings): Remove functions.
20317 (xmalloc_widget_value): Remove and declare extern.
20318
20319 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20320 (OBJ1): Build it.
20321
20322 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20323 (local_heap, local_alloc, local_free, malloc_widget_value)
20324 (free_widget_value): Define here.
20325
20326 2008-06-09 Kenichi Handa <handa@m17n.org>
20327
20328 * font.h (Qascii_0): Extern it.
20329
20330 * font.c (Qascii_0): New variable.
20331 (syms_of_font): DEFSYM it.
20332 (font_open_by_name): If the registry "iso8859-1" fails, try also
20333 "ascii-0".
20334
20335 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20336
20337 2008-06-08 Kenichi Handa <handa@m17n.org>
20338
20339 * .gdbinit (xfont): New command.
20340
20341 2008-06-08 Andreas Schwab <schwab@suse.de>
20342
20343 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20344 * Makefile.in (menu.o): Update dependencies.
20345
20346 * Makefile.in (obj): Always add menu.o.
20347 * emacs.c (main): Always call syms_of_menu.
20348 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20349
20350 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
20351
20352 * Makefile.in: Compile menu.c.
20353
20354 * lisp.h: Declare syms_of_menu.
20355
20356 * emacs.c (main): Call syms_of_menu.
20357
20358 * keyboard.h: Relocate platform-independent menu definitions from
20359 xmenu.c.
20360
20361 * menu.c: New file. Relocate platform-independent menu
20362 definitions from xmenu.c. Suggested by Adrian Robert.
20363
20364 * xmenu.c: Remove platform-independent menu definitions.
20365 (menu_items, menu_items_inuse, menu_items_allocated)
20366 (menu_items_used, menu_items_n_panes)
20367 (menu_items_submenu_depth): Move to keyboard.h.
20368 (init_menu_items, finish_menu_items, unuse_menu_items)
20369 (discard_menu_items, restore_menu_items, save_menu_items)
20370 (grow_menu_items, push_submenu_start, push_submenu_end)
20371 (push_left_right_boundary, push_menu_pane, push_menu_item)
20372 (keymap_panes, single_keymap_panes, single_menu_item)
20373 (list_of_panes, list_of_items, find_and_call_menu_selection)
20374 (xmalloc_widget_value, free_menubar_widget_value_tree)
20375 (parse_single_submenu, digest_single_submenu)
20376 (update_submenu_strings): Move to menu.c.
20377
20378 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20379
20380 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20381
20382 2008-06-06 Miles Bader <miles@gnu.org>
20383
20384 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20385 face, not frame default.
20386
20387 2008-06-05 Martin Rudalics <rudalics@gmx.at>
20388
20389 * window.c (pop_up_windows, pop_up_frames)
20390 (display_buffer_reuse_frames, Vpop_up_frame_function)
20391 (Vdisplay_buffer_function, Veven_window_heights)
20392 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20393 (Vspecial_display_function, Vsame_window_buffer_names)
20394 (Vsame_window_regexps, split_height_threshold)
20395 (Vsplit_window_preferred_function): Move those vars to window.el.
20396 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20397 (Fdisplay_buffer): Move those functions to window.el.
20398 (syms_of_window): Remove corresponding declarations.
20399 (display_buffer): New function.
20400 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20401 * dispnew.c (Flast_nonminibuf_frame): New function.
20402 * buffer.c (Fpop_to_buffer): Move to window.el.
20403
20404 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20405
20406 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20407
20408 2008-06-05 Kenichi Handa <handa@m17n.org>
20409
20410 * coding.c (detect_coding): Fix previous change.
20411 (detect_coding_system): Likewise.
20412
20413 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20414
20415 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20416
20417 * keymap.c (Vminibuffer_local_filename_must_match_map):
20418 Rename from Vminibuffer_local_must_match_filename_map.
20419 (syms_of_keymap):
20420 * minibuf.c (Fcompleting_read): Adjust accordingly.
20421 * commands.h: Rename declaration as well.
20422
20423 2008-06-05 Kenichi Handa <handa@m17n.org>
20424
20425 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20426 family name.
20427 (Ffont_put): Likewise.
20428
20429 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20430 current font-spec.
20431
20432 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20433 is unspecified.
20434
20435 * xfaces.c (realize_x_face): If the font-related face attributes
20436 are the same as those of default face, realize a new fontset from
20437 default->fontset.
20438 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20439
20440 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20441
20442 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20443 (move_it_in_display_line): New wrapper.
20444
20445 * window.c (window_scroll_pixel_based_preserve_x)
20446 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20447 (window_scroll_pixel_based, window_scroll_line_based):
20448 Use them to preserve column positions.
20449 (syms_of_window): Initialize them.
20450
20451 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20452 (HPOS . VPOS) pair.
20453
20454 * dispextern.h (move_it_in_display_line): Declare.
20455
20456 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
20457
20458 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20459 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20460 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20461
20462 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
20463
20464 * window.c (Fset_window_parameter): Doc fix.
20465 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20466
20467 2008-06-04 Joakim Verona <joakim@verona.se>
20468
20469 * window.h (struct window): Add new member window_parameters.
20470
20471 * window.c (Fwindow_parameters, Fwindow_parameter)
20472 (Fset_window_parameter): New defuns.
20473 (syms_of_window): Defsubr the new defuns.
20474 (make_window): Initialize window_parameters to nil.
20475
20476 2008-06-04 John Paul Wallington <jpw@pobox.com>
20477
20478 * eval.c (Fdefmacro): Doc fix.
20479
20480 2008-06-04 Kenichi Handa <handa@m17n.org>
20481
20482 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20483 Be sure to call setup_coding_system when we find a proper coding system.
20484 (detect_coding_system): Fix handling of coding->head_ascii.
20485
20486 2008-06-03 Andreas Schwab <schwab@suse.de>
20487
20488 * font.c (font_prop_validate_spacing): Fix last change.
20489
20490 2008-06-03 Kenichi Handa <handa@m17n.org>
20491
20492 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20493 (font_parse_fcname): Fix handling of unknown key.
20494
20495 * xfont.c (xfont_list): Try an alias.
20496
20497 * charset.c (char_charset): Return NULL if the arg charset_list is
20498 specified and C doesn't belong to any of them.
20499
20500 2008-06-02 Chip Coldwell <coldwell@redhat.com>
20501
20502 * font.c (font_pixel_size): Don't take cdr of an integer.
20503
20504 2008-06-02 Jim Meyering <meyering@redhat.com>
20505
20506 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20507 * alloc.c (xfree): Return right away for a NULL arg.
20508 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20509 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20510 * mac.c (create_apple_event_from_event_ref): Likewise.
20511 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20512 Likewise.
20513 * doprnt.c (doprnt1): Likewise.
20514 * frame.c (frame): Likewise.
20515 * keyboard.c (wipe_kboard): Likewise.
20516 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20517 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20518 * term.c (tty_default_color_capabilities, maybe_fatal)
20519 (delete_tty): Likewise.
20520 * w16select.c (string): Likewise.
20521 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20522 * w32bdf.c (w32_free_bdf_font): Likewise.
20523 * w32fns.c (w32_unload_font): Likewise.
20524 * w32font.c (w32font_close): Likewise.
20525 * window.c (size_window): Likewise.
20526 * xselect.c (receive_incremental_selection): Likewise.
20527 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20528 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20529 * w32.c (stat): Likewise.
20530
20531 Remove useless if-before-free tests.
20532 * editfns.c (Fset_time_zone_rule): Likewise.
20533 * lread.c (nosuffix): Likewise.
20534 * ralloc.c (get_bloc): Likewise.
20535 * regex.c (reg_free): Likewise.
20536 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20537 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20538 * xsmfns.c (smc_save_yourself_CB): Likewise.
20539
20540 2008-06-02 Kenichi Handa <handa@m17n.org>
20541
20542 * font.c (font_find_for_lface): Handle float font size.
20543 (font_open_for_lface): Likewise.
20544
20545 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20546 comparing the properties.
20547
20548 2008-06-01 Jason Rumney <jasonr@gnu.org>
20549
20550 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20551 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20552 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20553 Don't add empty script list.
20554 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20555
20556 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20557
20558 * Makefile.in (dot, dotdot): Remove, update users.
20559 ".." has been used elsewhere in the file for a long time.
20560 (LIBXT_STATIC): Remove conditional based on unused variable.
20561
20562 2008-06-01 Miles Bader <miles@gnu.org>
20563
20564 * xfaces.c (Vface_remapping_alist): New variable.
20565 (syms_of_xfaces): Initialize it.
20566 (enum named_merge_point_kind): New type.
20567 (struct named_merge_point): Add `named_merge_point_kind' field.
20568 (push_named_merge_point): Make cycle detection respect different
20569 named-merge-point kinds.
20570 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20571 Remove face-name alias resolution.
20572 (lface_from_face_name): New definition using
20573 `lface_from_face_name_no_resolve'.
20574 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20575 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20576 (get_lface_attributes): New definition that layers face-remapping on
20577 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20578 (lookup_basic_face): New function.
20579 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20580 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20581 `get_lface_attributes'.
20582 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20583 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20584 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20585
20586 * xdisp.c (init_iterator): Pass base_face_id through
20587 `lookup_basic_face' when we actually use it as a face-id.
20588 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20589 DEFAULT_FACE_ID.
20590
20591 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20592 lookup the initial face-id.
20593
20594 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20595
20596 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
20597
20598 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20599 (Fremove_text_properties): Fix typos in docstrings.
20600
20601 2008-05-31 Kenichi Handa <handa@m17n.org>
20602
20603 * font.c (font_list_entities): Fix the car part of data to be
20604 stored in the cache.
20605
20606 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20607
20608 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20609
20610 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20611 Add a `test' argument so another predicate than `equal' can be used.
20612 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20613 (map_char_table): Remove unused vars `c' and `i'.
20614 * lisp.h (Foptimize_char_table): Adjust declaration.
20615 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20616
20617 2008-05-30 Kenichi Handa <handa@m17n.org>
20618
20619 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20620 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20621 defined.
20622
20623 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20624
20625 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20626 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20627 frame-local settings for the same variable.
20628
20629 2008-05-30 Kenichi Handa <handa@m17n.org>
20630
20631 * fontset.c (Ffont_info): Move to font.c.
20632 (syms_of_fontset): Delete defsubr of Sfont_info.
20633
20634 * font.c (font_style_to_value, font_score): Delete casting of the
20635 args to xstcasecmp.
20636 (register_font_driver): Increment num_font_drivers only when
20637 registering the driver globally.
20638 (Ffont_info): Move from fontset.c. Handle a font object too.
20639 (syms_of_font): Defsubr Sfont_info.
20640
20641 2008-05-29 Kenichi Handa <handa@m17n.org>
20642
20643 * coding.h (enum define_coding_utf8_arg_index): New enum.
20644 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20645 coding_attr_utf_bom.
20646 (enum utf_bom_type): Rename from utf_16_bom_type.
20647 (struct utf_16_spec): Adjust for the above change.
20648 (struct coding_system): Add utf_8_bom in `spec' union.
20649
20650 * coding.c (CODING_UTF_8_BOM): New macro.
20651 (enum coding_category): Delete coding_category_utf_8, add
20652 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20653 coding_category_utf_8_sig.
20654 (CATEGORY_MASK_UTF_8): Delete it.
20655 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20656 (CATEGORY_MASK_UTF_8_SIG): New macros.
20657 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20658 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20659 CATEGORY_MASK_UTF_8_SIG.
20660 (CATEGORY_MASK_UTF_8): New macro.
20661 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20662 (detect_coding_utf_8): Check BOM.
20663 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20664 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20665 (encode_coding_utf_16): Likewise.
20666 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20667 (detect_coding, detect_coding_system): Handle utf-8-auto.
20668 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20669 (syms_of_coding): Fix setting up of Vcoding_category_table.
20670
20671 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20672
20673 * process.c (Faccept_process_output): If `millisec' is non-nil,
20674 `seconds' default to 0.
20675 (wait_reading_process_output): Also return non-nil if we read output
20676 from a non-running process.
20677
20678 2008-05-29 Jason Rumney <jasonr@gnu.org>
20679
20680 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20681 `raster' specified.
20682 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20683 in the uniscribe backend, but disallow any font that has no
20684 unicode subrange support.
20685
20686 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
20687
20688 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20689 Fix typos in docstrings.
20690
20691 2008-05-29 Kenichi Handa <handa@m17n.org>
20692
20693 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20694 (Fx_family_fonts): Set frame correctly.
20695
20696 2008-05-28 Jason Rumney <jasonr@gnu.org>
20697
20698 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20699
20700 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20701
20702 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20703 calling build_annotations.
20704
20705 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
20706
20707 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20708 (Fencode_coding_string):
20709 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20710 <latin-extra-code-table>: Fix typos in docstrings.
20711 (syms_of_coding) <coding-system-alist>: Doc fix.
20712 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20713
20714 2008-05-28 Kenichi Handa <handa@m17n.org>
20715
20716 * fontset.c (Ffont_info): Don't call font_close_object.
20717
20718 * font.c (font_parse_family_registry): Use Ffont_put to validate
20719 foundry and family.
20720 (font_delete_unmatched): Don't check spacing.
20721 (font_list_entities): Add spacing to the spec to list fonts.
20722
20723 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20724 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20725
20726 * coding.c (encode_coding_raw_text): Fix previous change.
20727 (encode_coding_object): When the dst_object is a buffer and is
20728 different from src_object, move gap to PT.
20729
20730 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20731
20732 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20733
20734 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20735
20736 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20737 all branches. Compute it differently.
20738
20739 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20740
20741 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
20742
20743 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20744 into "else if () ... else ...".
20745
20746 2008-05-27 Jason Rumney <jasonr@gnu.org>
20747
20748 * w32font.c (w32font_open_internal): Determine if glyph indices
20749 are likely to work here.
20750
20751 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20752
20753 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20754 draw overlap glyphs with appropriate highlighting.
20755
20756 2008-05-27 Kenichi Handa <handa@m17n.org>
20757
20758 * xfont.c (xfont_open): Fix calculation of font->average_width.
20759
20760 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20761
20762 * casefiddle.c (casify_object): Try to guess better whether the
20763 argument is a byte or a char.
20764
20765 2008-05-26 Andreas Schwab <schwab@suse.de>
20766
20767 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20768 Always send multiples of format size.
20769
20770 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20771
20772 2008-05-26 Jason Rumney <jasonr@gnu.org>
20773
20774 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20775 (compute_metrics): Don't set failure if we just cleared the cache.
20776 (w32_weight_table): Remove unused variable.
20777 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20778 backwards compatibility.
20779
20780 2008-05-25 Kenichi Handa <handa@m17n.org>
20781
20782 * w32term.c (x_draw_glyph_string):
20783 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20784
20785 * xfaces.c: Delete unused function prototypes.
20786 (xstrlwr, font_frame): Delete them.
20787 (clear_face_cache): Delete unused variable.
20788
20789 * xftfont.c (xftfont_open): Delete unused variable.
20790 If underline_thickness is not 1, adjust underline_position.
20791
20792 * ftxfont.c (ftxfont_open): Delete unused variable.
20793
20794 * fontset.c (face_for_char): Optimize for the case of no charset
20795 property.
20796
20797 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20798 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20799 (otf_open, font_otf_capability, generate_otf_features)
20800 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20801 Comment out by surrounding "#if 0" and "#endif" for the moment.
20802 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20803 (syms_of_font): Codes for accessing above commented out.
20804
20805 2008-05-24 Eli Zaretskii <eliz@gnu.org>
20806
20807 * w32proc.c: Include dispextern.h.
20808
20809 * w32.c: Include dispextern.h.
20810
20811 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
20812
20813 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20814 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20815 Fix typos in docstrings.
20816
20817 2008-05-23 Jason Rumney <jasonr@gnu.org>
20818
20819 * xsmfns.c: Remove includes that are already included by config.h.
20820
20821 2008-05-23 Kenichi Handa <handa@m17n.org>
20822
20823 * charset.c (Qemacs, charset_emacs): New variables.
20824 (char_charset): Fix for non-Unicode characters.
20825 (syms_of_charset): Define charset_emacs.
20826
20827 * w32term.c (x_draw_glyph_string): Be sure to update
20828 s->underline_thickness and s->underline_position. Be sure to draw
20829 underline within the current line area.
20830
20831 * xterm.c (x_draw_glyph_string): Be sure to update
20832 s->underline_thickness and s->underline_position. Be sure to draw
20833 underline within the current line area.
20834
20835 * fontset.c: Delete unused variables and add casting for char *
20836 throughout the file.
20837 (fontset_font): Try the fallback fonts of the current fontset
20838 before consulting the default fontset.
20839
20840 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20841
20842 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20843
20844 2008-05-22 Jason Rumney <jasonr@gnu.org>
20845
20846 * font.c: Don't include strings.h.
20847
20848 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20849
20850 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20851 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20852 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20853 to call xstrcasecmp.
20854
20855 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20856
20857 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20858
20859 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20860
20861 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20862
20863 2008-05-22 Kenichi Handa <handa@m17n.org>
20864
20865 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20866
20867 * font.c (font_prop_validate_style): Adjust for the format
20868 change of font_style_table.
20869
20870 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20871 two args.
20872
20873 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20874 two args.
20875
20876 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20877
20878 * minibuf.c (keys_of_minibuf): Delete.
20879 * lisp.h (keys_of_minibuf): Delete.
20880 * emacs.c (main): Don't call keys_of_minibuf.
20881
20882 2008-05-22 Kenichi Handa <handa@m17n.org>
20883
20884 * ftfont.c (ftfont_resolve_generic_family): Rename from
20885 ftfont_list_generic_family. Return a single family for each
20886 generic family.
20887 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20888 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20889 Call font_add_log.
20890 (ftfont_match): Call font_add_log.
20891
20892 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20893 (FONT_DEBUG): Define it.
20894 (font_add_log): Extern it.
20895 (font_assert): Rename from xassert.
20896
20897 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20898 (xfont_list_family): Call font_add_log.
20899 (xfont_match): Likewise.
20900 (memq_no_quit): Delete.
20901
20902 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20903 call of Ffont_xlfd_name.
20904
20905 * xfaces.c (struct table_entry, slant_table, weight_table)
20906 (swidth_table): Move to font.c.
20907
20908 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20909 xassert are changed to font_assert. Delete many unused variables.
20910 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20911 New variables.
20912 (struct table_entry): Move from xfaces.c and modified.
20913 (weight_table, slant_table, width_table): Move from xfaces.c and
20914 contents adjusted for the change of struct table_entry.
20915 (font_style_to_value, font_style_symbolic): Adjust for the
20916 format change of font_style_table.
20917 (font_parse_family_registry): Don't overwrite existing foundry and
20918 family of font_spec.
20919 (font_score): Fix calculation of diff for sizes.
20920 (font_sort_entites): Call font_add_log.
20921 (font_delete_unmatched): Return a newly created list.
20922 (font_list_entities): Fix previous change. Call font_add_log.
20923 (font_matching_entity, font_open_entity, font_close_entity):
20924 Call font_add_log.
20925 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20926 (Finternal_set_font_style_table): Delete.
20927 (BUILD_STYLE_TABLE): New macro.
20928 (build_style_table): New function.
20929 (Vfont_log, font_log_env_checked): New variables.
20930 (font_add_log): New function.
20931 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20932 Declare Lisp variables "font-weight-table", "font-slant-table",
20933 "font-width-table", and "font-log". Initialize font_style_table.
20934
20935 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20936
20937 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20938
20939 2008-05-21 Seiji Zenitani <zenitani@mac.com>
20940 Ryo Yoshitake <ryo@shiftmode.net>
20941
20942 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20943 (Vframe_alpha_lower_limit): New variable.
20944 (x_set_alpha): New function.
20945
20946 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20947
20948 * xfns.c (x-create-frame, Qalpha):
20949 Initialize the frame parameter `alpha'.
20950 * xterm.c (OPAQUE, OPACITY): New.
20951 (x_set_frame_alpha): New function.
20952 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20953
20954 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20955 * w32fns.c (w32_frame_parm_handlers): Likewise.
20956
20957 2008-05-20 Jason Rumney <jasonr@gnu.org>
20958
20959 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20960 truetype fonts to opentype list.
20961
20962 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
20963
20964 * fontset.c (Ffontset_info): Doc fix.
20965 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20966 <ignore-relative-composition>: Fix typos in docstrings.
20967
20968 * font.c (syms-of-font) <font-encoding-alist>:
20969 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20970 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20971 (Ffont_otf_alternates): Doc fixes.
20972
20973 2008-05-20 Kenichi Handa <handa@m17n.org>
20974
20975 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20976 font.h through out the file.
20977 (FONT_DRIVERS): Rename from FONTOBJ.
20978 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20979 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20980
20981 * emacs.c (main): Call syms_of_font unconditionally.
20982
20983 * font.h (find_font_encoding): Extern it.
20984
20985 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20986 fontset.c.
20987 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
20988 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20989 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20990 only when HAVE_WINDOW_SYSTEM is defined.
20991 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20992 when HAVE_WINDOW_SYSTEM is defined.
20993
20994 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20995 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20996
20997 * xfaces.c: Include font.h unconditionally.
20998 (merge_face_ref, merge_face_vectors)
20999 (Finternal_set_lisp_face_attribute): Cancel the previous change.
21000
21001 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
21002
21003 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21004 indirect_variable.
21005 * eval.c (lisp_indirect_variable): New fun.
21006 (Fuser_variable_p): Use it.
21007
21008 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21009
21010 * lisp.h (indirect_variable):
21011 * data.c (indirect_variable, let_shadows_buffer_binding_p):
21012 Use Lisp_Symbol pointers rather than Lisp_Object.
21013 Adjust callers.
21014 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21015 To this end, change calling-convention.
21016
21017 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21018 if some non-hidden buffers are selected by string&pred.
21019
21020 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
21021
21022 * process.c (wait_reading_process_output): Always check status
21023 when in batch mode.
21024
21025 2008-05-19 Kenichi Handa <handa@m17n.org>
21026
21027 * font.c (font_list_entities): Fix handling of cache.
21028 (font_matching_entity): Likewise.
21029
21030 * ftfont.c (cs_iso8859_1): Delete.
21031 (ft_face_cache): New variable.
21032 (struct ftfont_info): New member fc_charset_idx.
21033 (ftfont_build_basic_charsets): Delete.
21034 (fc_charset_table): New variable.
21035 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
21036 . FC_CHARSET_IDX) as :font-entity property in the font entity.
21037 Callers changed.
21038 (ftfont_lookup_cache, ftfont_get_charset): New functions.
21039 (ftfont_spec_pattern): New argument fc_charset_idx.
21040 Check registry more rigidly. Change callers.
21041 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21042 change of :font-entity property of the font.
21043
21044 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21045 property of the font.
21046
21047 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
21048
21049 * coding.c (Fcoding_system_p): Rename argument to match docstring.
21050 (Funencodable_char_position, Fcheck_coding_systems_region)
21051 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21052 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21053 (Ffind_operation_coding_system, Fset_coding_system_priority)
21054 (Fcoding_system_eol_type): Doc fixes.
21055
21056 2008-05-17 Glenn Morris <rgm@gnu.org>
21057
21058 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21059
21060 2008-05-16 Eli Zaretskii <eliz@gnu.org>
21061
21062 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21063 and st_gid.
21064
21065 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21066 HAVE_WINDOW_SYSTEM is not defined.
21067
21068 * xfaces.c (merge_face_ref, merge_face_vectors)
21069 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21070 HAVE_WINDOW_SYSTEM is defined.
21071 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21072
21073 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21074
21075 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21076
21077 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21078
21079 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21080
21081 2008-05-15 Kenichi Handa <handa@m17n.org>
21082
21083 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21084 preference.
21085
21086 2008-05-15 Glenn Morris <rgm@gnu.org>
21087
21088 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21089
21090 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
21091
21092 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21093 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21094
21095 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21096
21097 2008-05-15 Kenichi Handa <handa@m17n.org>
21098
21099 * ftfont.c (ftfont_list): Downcase family name to check generic
21100 families.
21101
21102 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21103 font-spec for QCfont value.
21104
21105 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21106 buffer. Check the return value of it.
21107
21108 2008-05-14 Jason Rumney <jasonr@gnu.org>
21109
21110 * w32term.c (w32_get_glyph_overhangs): Remove.
21111 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21112
21113 2008-05-14 Kenichi Handa <handa@m17n.org>
21114
21115 * font.c (font_prop_validate): Make nil a valid value.
21116 (font_clear_cache): Check if the cached vector of entities is nil
21117 or not.
21118
21119 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21120
21121 * emacs.c (main_thread): Conditionalize on
21122 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21123 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21124
21125 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21126 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21127 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21128
21129 2008-05-14 Kenichi Handa <handa@m17n.org>
21130
21131 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21132 has no corresponding coding system.
21133
21134 2008-05-14 Jason Rumney <jasonr@gnu.org>
21135
21136 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21137
21138 * w32font.h (w32font_open_internal): Update declaration.
21139
21140 * w32font.c (w32font_open_internal): Change last argument from
21141 w32font_info struct to font object. Fill in font object from
21142 font_entity. Get Outline metrics if possible. Use them to
21143 calculate underline position and thickness. Use xlfd name as name
21144 property. Don't set codepage.
21145 (w32font_open): Pass font_object to w32font_open_internal. Don't
21146 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21147 (w32font_draw): Use s->font.
21148 (clear_cached_metrics): Don't clear non-existent blocks.
21149
21150 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21151 font was not found.
21152 (x_draw_glyph_string): Use underline position and thickness from font.
21153
21154 * w32uniscribe.c (uniscribe_open): Pass font_object to
21155 w32font_open_internal.
21156
21157 2008-05-14 Kenichi Handa <handa@m17n.org>
21158
21159 These changes are to delete all legacy font-handling codes, and
21160 make Emacs use only font-backends.
21161
21162 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21163 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21164
21165 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21166
21167 * charset.h (Vcharset_non_preferred_head)
21168 (Vcurrent_iso639_language): Extern them.
21169
21170 * charset.c (Vcharset_non_preferred_head): New variable.
21171 (Vcurrent_iso639_language): New variable.
21172 (syms_of_charset): Declare it as a Lisp variable.
21173 (char_charset): Don't check non preferred charsets. As a last
21174 resort, return charset_unicode.
21175 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21176
21177 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21178 conditionals. Don't check enable_font_backend. Delete all codes
21179 used only when USE_FONT_BACKEND is not defined.
21180
21181 * dispextern.h (struct glyph_string): Change type of `font' to
21182 `struct font *'.
21183 (struct glyph_string): New member underline_position and
21184 underline_thickness.
21185 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
21186 (struct face): Change type of `font' to `struct font *'.
21187 Remove members `font_name', `font_info_id'.
21188 (per_char_metric, encode_char): Delete externs.
21189 (calc_pixel_width_or_height): Adjust the prototype.
21190
21191 * emacs.c (enable_font_backend): Delete extern.
21192 (main): Don't set enable_font_backend. Don't check the command
21193 line argument "-disable-font-backend".
21194
21195 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21196 (enum font_property_index): New members FONT_DPI_INDEX,
21197 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21198 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21199 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21200 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21201 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21202 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21203 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21204 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21205 (struct font_spec, struct font_entity): New structs.
21206 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
21207 (struct font): Many members from old "struct font_info" moved to
21208 here. Members font and entity deleted.
21209 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21210 the new font-related objects.
21211 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21212 (CHECK_FONT_GET_OBJECT): Likewise.
21213 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
21214 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
21215 (struct font_driver): New members case_sensitive anc check.
21216 Type of the member list and open changed.
21217 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21218 (font_symbolic_width, font_find_object, font_get_spec)
21219 (font_set_lface_from_name): Delete extern.
21220 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21221
21222 * font.c: Include <strings.h>.
21223 (enable_font_backend): Delete it.
21224 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21225 (CHECK_VALIDATE_FONT_SPEC): Delete it.
21226 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
21227 (null_string): Delete it.
21228 (null_vector): Make it static.
21229 (font_family_alist): Delete it.
21230 (Qnormal): Extern it.
21231 (QCextra, QClanguage): Delete it.
21232 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21233 (font_make_spec, font_make_entity, font_make_object)
21234 (font_intern_prop): Rename from intern_downcase. Don't downcase
21235 the string. Callers changed.
21236 (font_pixel_size): Adjust for the format change of font-related
21237 objects.
21238 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21239 (font_style_to_value, font_style_symbolic): New function.
21240 (build_font_family_alist): Delete it.
21241 (font_registry_charsets): Use Fassoc_string instead of
21242 assq_no_quit.
21243 (font_prop_validate_symbol): Don't return null_string.
21244 (font_prop_validate_style): Adjust for the change of
21245 style-related values in a font vector.
21246 (font_property_table): Delete entries for QClanguage and
21247 QCantialias, add entries for QCavgwidth.
21248 (get_font_prop_index): Delete the 2nd argument FROM.
21249 (font_prop_validate): Arguments changed.
21250 (font_put_extra): Adjust for the change of font-related objects.
21251 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21252 (font_parse_fcname, font_unparse_fcname)
21253 (font_prepare_composition): Likewise.
21254 (font_parse_family_registry): Rename from font_merge_old_spec.
21255 (otf_open): Delete the 1st arg entity.
21256 (font_otf_capability): Adjust for the above change.
21257 (font_score): New arg alternate_families. Adjusted for the change
21258 of font-related objects.
21259 (font_sort_entites): New arg best_only.
21260 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21261 Delete them.
21262 (font_match_p): Check alternate families.
21263 (font_find_object): Delete it.
21264 (font_check_object): New function.
21265 (font_clear_cache): Adjust for the change of font-related objects.
21266 (font_delete_unmatched): New arg.
21267 (font_list_entities): Call font_driver->list with a spec that
21268 doesn't specify style-related properties.
21269 (font_matching_entity): Arguments changed. Caller changed.
21270 (font_open_entity): Adjust for the change of font-related objects.
21271 (font_close_object, font_has_char, font_encode_char)
21272 (font_get_name, font_get_spec): Likewise.
21273 (font_spec_from_name, font_clear_prop, font_update_lface):
21274 New functions.
21275 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21276 (font_prepare_for_face, font_done_for_face, font_open_by_name)
21277 (font_at): Adjust for the change of font-related objects.
21278 (font_range): New function.
21279 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
21280 (Ffont_xlfd_name): Adjust for the change of font-related objects.
21281 (Fcopy_font_spec, Fmerge_font_spec): New function.
21282 (Ffont_family_list): Rename from list-families.
21283 (Finternal_set_font_style_table): Arguments changed.
21284 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
21285 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
21286 change of font-related objects.
21287 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21288
21289 * fontset.h (struct font_info): Delete it. Most members go to
21290 struct font.
21291 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
21292 (enum FONT_SPEC_INDEX): Delete it.
21293 (font_info, list_fonts_func, load_font_func, query_font_func)
21294 (set_frame_fontset_func, find_ccl_program_func)
21295 (get_font_repertory_func, new_fontset_from_font_name):
21296 Delete externs.
21297 (fontset_from_font_name): Extern it.
21298 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21299 (FONT_INFO_FROM_FACE): Deleted.
21300 (face_for_font): Adjust prototype.
21301
21302 * fontset.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.
21305 (get_font_info_func, list_font_func, load_font_func)
21306 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21307 (get_font_repertory_func): Delete them.
21308 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21309 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21310 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21311 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21312 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21313 (fontset_compare_rfontdef): New function.
21314 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21315 rfont-defs by qsort. Adjusted for the change of font-group vector.
21316 (load_font_get_repertory): Deleted.
21317 (fontset_find_font): Use new macros to ref/set elements of
21318 font-def and rfont-def.
21319 (fontset_font): Fix the timing of remembering that no font for C.
21320 (free_face_fontset): Do nothing if the face has no fontset.
21321 (face_suitable_for_char_p): Use new macros to ref/set elements of
21322 rfont-def.
21323 (face_for_char): Likewise. Call face_for_char with font_object.
21324 (fs_load_font): Delete. Delete #pragma surrounding it.
21325 (fs_query_fontset): Use strcasecmp instead of strcmp.
21326 (generate_ascii_font_name): Adjust for the format change of
21327 font-spec.
21328 (Fset_fontset_font): Likewise. Use new macros to set elements of
21329 font-def.
21330 (Fnew_fontset): Use font_unparse_xlfd to generate
21331 FONTSET_ASCII (fontset).
21332 (new_fontset_from_font_name): Deleted.
21333 (fontset_from_font): Rename from new_fontset_from_font. Check if
21334 a fontset is already created for the font. FIx updating of
21335 Vfontset_alias_alist.
21336 (fontset_ascii_font): Deleted.
21337 (Ffont_info): Adjust for the format change of font-spec.
21338 (Finternal_char_font): Likewise.
21339 (Ffontset_info): Likewise.
21340 (syms_of_fontset): Don't check load_font_func.
21341
21342 * fns.c (internal_equal): Handle PREV_FONT.
21343
21344 * frame.h: Delete USE_FONT_BACKEND conditional.
21345
21346 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21347 conditionals. Don't check enable_font_backend. Delete all codes
21348 used only when USE_FONT_BACKEND is not defined.
21349 (x_set_font): Call x_new_font, not x_new_fontset2.
21350 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21351 already set for the frame.
21352
21353 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21354 Make a font-entity by font_make_entity. Use font_intern_prop instead
21355 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21356 font property. If a font is scalable, set avgwidth property to 0.
21357 Set font-entity property by font_put_extra.
21358 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
21359 (ffont_driver): Adjust for the change of struct font_driver.
21360 (ftfont_spec_pattern): New function.
21361 (ftfont_list): Return a list, not vector.
21362 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21363 (ftfont_list_family): Don't downcase names.
21364 (ftfont_free_entity): Deleted.
21365 (ftfont_open): Return a font-object. Adjusted for the change of
21366 struct font. Get underline_thickness and underline_position from
21367 font property. Don't update dpyinfo->smallest_font_height and
21368 dpyinfo->smallest_char_width.
21369 (ftfont_close): Don't free `struct font'.
21370 (ftfont_has_char): Adjust for the format change of font-entity.
21371 (ftfont_encode_char, ftfont_text_extents): Likewise.
21372
21373 * ftxfont.c (ftxfont_list): Return a list, not vector.
21374 (ftxfont_open): Return a font-object. Adjusted for the change of
21375 struct font. Get underline_thickness and underline_position from
21376 font property. Don't update dpyinfo->smallest_font_height and
21377 dpyinfo->smallest_char_width.
21378 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
21379 (ftxfont_draw): Adjust for the change of struct font.
21380
21381 * image.c (image_ascent): Don't include "charset.h".
21382 Include "character.h" and "font.h".
21383
21384 * lisp.h (enum pvec_type): New member PREV_FONT.
21385 (Fassoc_string): EXFUN it.
21386
21387 * print.c: Include font.h.
21388 (print_object): Handle font-related objects.
21389
21390 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21391 conditionals. Don't check enable_font_backend. Delete all codes
21392 used only when USE_FONT_BACKEND is not defined.
21393 (handle_auto_composed_prop): Do nothing if it->f is not on a
21394 window system. Check how many following characters can be
21395 displayed by the same font.
21396 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21397 'struct font *'.
21398 (get_char_face_and_encoding): Assign the whole encoding task to
21399 the `encode-char' method of a font driver.
21400 (fill_composite_glyph_string): Adjust for the change of `struct
21401 face' and `struct glyph_string'.
21402 (fill_glyph_string): Likewise.
21403 (get_per_char_metric): Arguments changed.
21404 (x_get_glyph_overhangs): Adjust for the change of `struct face'
21405 and `struct glyph_string'.
21406 (produce_stretch_glyph, calc_line_height_property)
21407 (x_produce_glyphs): Likewise.
21408
21409 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21410 conditionals. Don't check enable_font_backend. Delete all codes
21411 used only when USE_FONT_BACKEND is not defined.
21412 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
21413 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21414 (Qp): Extern them.
21415 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21416 Deleted.
21417 (struct font_name): Deleted.
21418 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
21419 (compare_fonts_by_sort_order): New function.
21420 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21421 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21422 Deleted.
21423 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21424 compare_fonts_by_sort_order.
21425 (Fx_font_family_list): Call Ffont_family_list.
21426 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21427 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21428 (face_symbolic_slant, face_symbolic_swidth)
21429 (split_font_name_into_vector, build_font_name_from_vector)
21430 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21431 (font_rescale_ratio, split_font_name, build_font_name)
21432 (free_font_names, sort_fonts, x_face_list_fonts)
21433 (face_font_available_p, sorted_font_list, cmp_font_names)
21434 (font_list_1, concat_font_list, font_list, remove_duplicates):
21435 Deleted.
21436 (Fx_list_fonts): Use Ffont_list.
21437 (LFACE_AVGWIDTH): Deleted.
21438 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21439 by FONTP.
21440 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21441 (set_lface_from_font_name): Delete it.
21442 (set_lface_from_font): Rename from
21443 set_lface_from_font_and_fontset. Caller changed. Don't set
21444 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21445 for face.
21446 (merge_face_vectors): Copy font-spec if necessary.
21447 Clear properties of the font-spec if necessary.
21448 (merge_face_ref): Clear properties of the font-spec if necessary.
21449 (Finternal_set_lisp_face_attribute): Likewise.
21450 (set_font_frame_param): Use font_load_for_lface to load a
21451 font-object, and call Fmodify_frame_parameters with it.
21452 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21453 font name by Ffont_xlfd_name.
21454 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21455 QCslant, and QCwidth.
21456 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21457 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21458 Compare fonts by EQ.
21459 (lookup_non_ascii_face): Deleted.
21460 (face_for_font): The 2nd argument changed.
21461 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21462 Check atomic font properties by case insensitive.
21463 (realize_non_ascii_face): Set face->overstrike correctly.
21464 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21465 (dump_realized_face): Get font name from
21466 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21467
21468 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21469 conditionals. Don't check enable_font_backend. Delete all codes
21470 used only when USE_FONT_BACKEND is not defined.
21471 (xic_create_xfontset): Original code deleted and renamed from
21472 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21473 (x_make_gc): Don't set GCFont in GCs.
21474 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21475 opened by "fixed".
21476 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21477 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21478 get_font_repertory_func.
21479
21480 * xfont.c: Include <stdlib.h> and "ccl.h".
21481 (struct xfont_info): New structure.
21482 (xfont_query_font): Deleted.
21483 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21484 moved from xterm.c.
21485 (xfont_driver): Adjust for the change of struct font_driver.
21486 (compare_font_names): New function.
21487 (xfont_list_pattern): Sort font names case insensitively.
21488 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
21489 (xfont_list): Return a list, not vector.
21490 (xfont_match): If the font doesn't have QCname property, generate
21491 a name from the other font properties.
21492 (xfont_open): Return a font-object. Adjusted for the change of
21493 struct font. Get underline_thickness and underline_position from
21494 font property. Don't update dpyinfo->smallest_font_height and
21495 dpyinfo->smallest_char_width.
21496 (xfont_close): Don't free struct font.
21497 (xfont_prepare_face): Adjust for the change of struct font.
21498 (xfont_done_face): Deleted.
21499 (xfont_has_char): Adjust for the change of struct font.
21500 (xfont_encode_char, xfont_draw): Likewise.
21501 (xfont_check): New function.
21502
21503 * xftfont.c (xftfont_list): Adjust for the change of `list'
21504 callback function.
21505 (xftfont_match): Adjust for the format change of font-entity.
21506 (xftfont_open): Adjust for the format change of font-entity and
21507 font-object. Adjusted for the change of struct font. Return a
21508 font-object. Don't update dpyinfo->smallest_font_height and
21509 dpyinfo->smallest_char_width.
21510 (xftfont_close): Block input while calling XftFontClose.
21511 (xftfont_prepare_face): Don't block input while calling
21512 xftfont_get_colors. Adjusted for the change of struct font.
21513 (xftfont_shape): Return value of error case fixed.
21514
21515 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21516
21517 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21518 conditionals.
21519 (FONT_WIDTH): Return (f)->max_width.
21520 (struct x_display_info): Delete member `font'.
21521 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21522 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21523 (struct x_output): Change type of `font' to `struct font *'.
21524
21525 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21526 conditionals. Don't check enable_font_backend. Delete all codes
21527 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21528 (x_per_char_metric, x_encode_char): Deleted.
21529 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21530 (x_compute_glyph_string_overhangs): Adjust for the change of
21531 `struct face'.
21532 (x_draw_glyph_string_foreground)
21533 (x_draw_composite_glyph_string_foreground): Likewise.
21534 (x_draw_glyph_string): Likewise. Use font->underline_position and
21535 font->underline_thickness.
21536 (x_new_font): Rename from x_new_fontset2.
21537 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21538 (x_check_font): Call `check' method of a font driver.
21539 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21540 (x_query_font, x_get_font_repertory): Deleted.
21541 (x_find_ccl_program): Rename and moved to xfont.c.
21542 (x_redisplay_interface): Adjust for the change of `struct
21543 redisplay_interface'.
21544
21545 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21546 conditionals. Don't check enable_font_backend. Delete all codes
21547 used only when USE_FONT_BACKEND is not defined. Surround non-used
21548 code by "#ifdef OLD_FONT" and "endif".
21549 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21550
21551 * w32font.h (struct w32font_info): New member.
21552 (FONT_COMPAT): New macro.
21553 (w32font_open_internal): Prototype adjusted.
21554
21555 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21556 OLD_FONT" and "endif".
21557
21558 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21559 conditionals. Don't check enable_font_backend. Delete all codes
21560 used only when USE_FONT_BACKEND is not defined.
21561 (w32font_open): Return a font-object. Make a font-object by
21562 font_make_object. Adjusted for the change of struct w32font_info.
21563 (w32font_close): Don't free struct font. Adjusted for the change
21564 of struct w32font_info.
21565 (w32font_encode_char, w32font_text_extents, w32font_draw):
21566 Adjust for the change of struct w32font_info.
21567 (w32font_draw): Likewise.
21568 (w32font_list_internal): Return a list, not vector.
21569 (w32font_open_internal): Change the 4th arg to font-object.
21570 Adjusted for the change of struct w32font_info and font-object format.
21571 (add_font_name_to_list): Don't downcase names.
21572 (w32_enumfont_pattern_entity): Make a font-entity by
21573 font_make_entity. Adjusted for the format change of font-entity.
21574 Use FONT_SET_STYLE to set a style-related font property. If a
21575 font is scalable, set avgwidth property to 0. Set font-entity
21576 property by font_put_extra.
21577 (font_matches_spec): Adjust for the format change of font-entity.
21578 (w32_weight_table, w32_decode_weight): New variables.
21579 (w32_encode_weight): New function.
21580 (fill_in_logfont): Adjust for the format change of font-spec.
21581 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21582 weight value.
21583 (w32font_driver): Adjust for the change of struct font_driver.
21584
21585 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21586 conditionals. Don't check enable_font_backend. Surround non-used
21587 code by "#ifdef OLD_FONT" and "endif".
21588 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
21589 (FONT_AVG_WIDTH): Adjust for the change of struct font.
21590
21591 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21592 conditionals. Don't check enable_font_backend. Delete all codes
21593 used only when USE_FONT_BACKEND is not defined. Surround non-used
21594 code by "#ifdef OLD_FONT" and "endif".
21595
21596 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21597 (uniscribe_open): Return value changed to font-object.
21598 Adjusted for the format change of font-object.
21599 (uniscribe_otf_capability): Adjust for the change of struct font.
21600 (add_opentype_font_name_to_list): Don't downcase names.
21601 (uniscribe_font_driver): Adjust for the change of struct
21602 font_driver.
21603
21604 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
21605
21606 * dispnew.c (update_frame_1): Check if tty output is still valid
21607 before flushing it.
21608
21609 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21610
21611 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21612 to Gtk+ menus.
21613
21614 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21615
21616 * dired.c (file_name_completion): Tweak the code so as to always do it
21617 in a single pass. Tighten the scope of some variables.
21618
21619 * dired.c (Qdefault_directory): New var.
21620 (file_name_completion): Use it instead of Fexpand_file_name.
21621 (syms_of_dired): Initialize it.
21622
21623 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21624
21625 * fileio.c (double_dollars): Remove dead code.
21626
21627 2008-05-10 Eli Zaretskii <eliz@gnu.org>
21628
21629 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21630 Mention w32-get-true-file-attributes in doc string.
21631
21632 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21633
21634 2008-05-09 Glenn Morris <rgm@gnu.org>
21635
21636 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21637 2008-04-23.
21638
21639 2008-05-09 Eli Zaretskii <eliz@gnu.org>
21640
21641 Support for reporting owner and group of each file on MS-Windows:
21642 * dired.c (stat_uname, stat_gname): New functions, with special
21643 implementation for w32.
21644 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21645
21646 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21647 (dflt_group_name): New static variable.
21648 (dflt_group): Rename from the_group.
21649 (init_user_info): Init dflt_group fields. Get user's group name
21650 from LookupAccountSid.
21651 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21652 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21653 New initialization states.
21654 (globals_of_w32): Initialize them to zero. Initialize the default
21655 group name to "None".
21656 (GetFileSecurity_Name): New global var, the name of the function
21657 to call for GetFileSecurity.
21658 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21659 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21660 (get_file_security, get_security_descriptor_owner)
21661 (get_security_descriptor_group, is_valid_sid)
21662 (get_file_security_desc, get_rid, get_name_and_id)
21663 (get_file_owner_and_group): New functions.
21664 (stat): Use get_file_security_desc and get_file_owner_and_group to
21665 report the owner and primary group of each file. Don't ignore the
21666 high 32 bits of file's size, now that st_size is 64-bit wide.
21667 Fix test when to get true file attributes.
21668 (init_user_info): Use get_rid instead of equivalent inline code.
21669 (fstat): Don't ignore the high 32 bits of file's size.
21670
21671 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
21672
21673 * image.c (png_load): Use correct bit-depth for setting background
21674 color.
21675
21676 2008-05-08 Eli Zaretskii <eliz@gnu.org>
21677
21678 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21679 epa-hook.elc.
21680
21681 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
21682
21683 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21684
21685 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21686
21687 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21688 because the original parameters are in pure storage now.
21689 (mac_window): Remove unused params. Update callers.
21690
21691 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21692
21693 * lread.c (substitute_object_recurse): Use lower-level primitives.
21694 Don't signal errors when traversing sub-char-tables.
21695 Don't loop over all the possible characters when traversing char-tables.
21696
21697 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21698 just like we do in print.c.
21699
21700 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21701
21702 * minibuf.c (Ftry_completion): Remove code left over from when we used
21703 scmp instead of Fcompare_strings.
21704
21705 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
21706
21707 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21708
21709 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21710
21711 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21712 Create bitmap context in native byte order.
21713
21714 * macterm.c (XDrawLine)
21715 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21716 context in native byte order.
21717
21718 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21719
21720 * config.in: Regenerate.
21721
21722 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21723 New definitions for Image I/O support.
21724 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21725 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21726 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21727 (mac_data_provider_release_data, image_load_image_io)
21728 [USE_MAC_IMAGE_IO]: New functions.
21729 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21730 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21731 (init_image_func_pointer) [MAC_OSX]: Remove function.
21732 (image_load_quartz2d) [MAC_OSX]: Check availability of
21733 CGImageCreateWithPNGDataProvider at compile time.
21734 Use lowercase `false' for boolean constant.
21735 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21736 Use image_load_image_io.
21737 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21738 Don't check MyCGImageCreateWithPNGDataProvider.
21739 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21740 Don't call init_image_func_pointer.
21741
21742 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21743
21744 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21745 Make variable non-static.
21746 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21747 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21748
21749 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21750 (RED_FROM_ULONG): Mask off higher bits.
21751 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21752
21753 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21754 Include AvailabilityMacros.h.
21755 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21756 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21757
21758 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21759
21760 * chartab.c (Fset_char_table_range): If range is t, really set all
21761 chars to that value.
21762
21763 2008-05-03 Eli Zaretskii <eliz@gnu.org>
21764
21765 * dired.c (Ffile_attributes): Don't allow the device number become
21766 negative.
21767
21768 2008-05-02 Daiki Ueno <ueno@unixuser.org>
21769
21770 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21771
21772 2008-05-02 Juri Linkov <juri@jurta.org>
21773
21774 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21775 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21776 DEFAULT argument as a list of default values in docstrings.
21777
21778 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
21779
21780 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21781
21782 2008-05-01 Martin Rudalics <rudalics@gmx.at>
21783
21784 * dispnew.c (change_frame_size_1): Preserve small windows when
21785 shrinking frames by calling set_window_height|width with third
21786 arg 2.
21787
21788 * window.h (struct window): Replace field too_small_ok by field
21789 resize_proportionally.
21790
21791 * window.c (make_window): Initialize resize_proportionally.
21792 (enlarge_window): Temporarily set resize_proportionally to make
21793 sure that shrink_windows does scale the window proportionally.
21794 (shrink_windows): When window has resize_proportionally set try
21795 to shrink it proportionally by stealing from other windows.
21796 (struct saved_window, Fset_window_configuration)
21797 (compare_window_configurations): Handle resize_proportionally.
21798 (WINDOW_TOTAL_SIZE): New macro.
21799 (window_min_size, shrink_windows, size_window): Use it.
21800 (check_min_window_sizes): Remove. Invalid values of
21801 window-min-height|width are handled by window_min_size_2 now.
21802 (size_window, Fsplit_window, enlarge_window)
21803 (adjust_window_trailing_edge, grow_mini_window): Don't call
21804 check_min_window_sizes.
21805 (window_min_size_2, window_min_size_1, window_min_size):
21806 New argument safe_p for retrieving "safe" minimum sizes.
21807 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21808 (adjust_window_trailing_edge, grow_mini_window):
21809 Adjust arguments of window_min_size... functions.
21810 (shrink_windows): Argument min_size removed. New argument
21811 safe_p allows shrinking windows to their safe minimum sizes.
21812 Calculate minimum size and decide whether a window shall be
21813 deleted for each window individually.
21814 (size_window): When nodelete_p equals 2, tell shrink_windows to
21815 delete windows only if their new minimum size is no more safe.
21816 (shrink_window_lowest_first): Call window_min_size_1 to make
21817 sure to preserve modeline of bottom-most window when resizing
21818 the minibuffer.
21819 (Fset_window_configuration, Fcurrent_window_configuration)
21820 (compare_window_configurations): Do not handle
21821 window-min-height|width any more.
21822 (syms_of_window): Clarify window-min-height|width doc-strings.
21823
21824 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21825
21826 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21827 some more. Copy some of the code from Ftry_completions.
21828 Remove special case code that dates back to initial revision when the
21829 slash was only added when necessary and that can't trigger nowadays.
21830
21831 2008-04-27 Kenichi Handa <handa@m17n.org>
21832
21833 * font.c (font_prop_validate): Signal `error' instead of `font'.
21834
21835 2008-04-29 Jason Rumney <jasonr@gnu.org>
21836
21837 * w32fns.c (Fw32_battery_status): New defun.
21838 (syms_of_w32fns): Defsubr it.
21839
21840 2008-04-28 Andreas Schwab <schwab@suse.de>
21841
21842 * dired.c (file_name_completion): Fix another mixing of encoded
21843 and decoded names.
21844
21845 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
21846
21847 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21848
21849 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
21850
21851 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21852
21853 2008-04-27 Andreas Schwab <schwab@suse.de>
21854
21855 * dired.c (file_name_completion): Fix inappropriate mixing of
21856 encoded and decoded names.
21857
21858 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21859
21860 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21861
21862 2008-04-26 Eli Zaretskii <eliz@gnu.org>
21863
21864 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21865 2008-03-31, it's not needed anymore with `struct stat' definition
21866 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21867 for the same reasons.
21868
21869 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21870
21871 * m/sparc.h: Additional redefinitions for GNU/Linux.
21872
21873 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21874
21875 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21876 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21877 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21878 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21879 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21880 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21881 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21882 Likewise.
21883
21884 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21885 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21886 (mac_ax_number_of_characters): Add externs.
21887 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21888 [USE_MAC_TSM]: Likewise.
21889 (mac_handle_text_input_event) [MAC_OSX]:
21890 Handle kEventTextInputOffsetToPos for no active input area case.
21891 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21892 (mac_handle_document_access_event)
21893 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21894 (install_application_handler) [MAC_OSX]: Register handlers for
21895 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21896 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21897 Register mac_handle_document_access_event.
21898
21899 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21900 Make functions non-static.
21901
21902 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21903
21904 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21905 (read_file_name_completion_ignore_case, insert_default_directory)
21906 (Qdefault_directory): Move to minibuffer.el.
21907 (Fread_file_name): Call the new `read-file-name' instead.
21908
21909 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21910
21911 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21912 Make function non-static.
21913 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21914 Remove function.
21915 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21916 Move to mactoolbox.c.
21917 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21918
21919 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21920 (mac_rect_make): New macro.
21921
21922 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21923 instead of float.
21924 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21925 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21926 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21927 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21928 CGRectMake.
21929 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21930 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21931 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21932 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21933 instead of WindowRef in argument type.
21934 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21935 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21936 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21937 instead of DISPLAY. All uses changed.
21938 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21939 (x_calc_absolute_position): Simplify so as not to use
21940 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21941
21942 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21943 instead of WindowRef in argument type.
21944 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21945 [TARGET_API_MAC_CARBON]: Remove externs.
21946 (create_apple_event, mac_event_parameters_to_lisp)
21947 [TARGET_API_MAC_CARBON]: Add externs.
21948
21949 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21950 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21951 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21952 is clicked.
21953 (x_activate_menubar): Remove extern for saved_menu_event_location.
21954 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21955 Move from mac.c.
21956
21957 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21958
21959 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21960 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21961
21962 2008-04-23 Jason Rumney <jasonr@gnu.org>
21963
21964 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21965 attributes only for local files.
21966
21967 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21968 default to Qlocal.
21969
21970 2008-04-22 Juri Linkov <juri@jurta.org>
21971
21972 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21973 read-buffer-to-switch instead of using the letter "B".
21974
21975 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21976
21977 * fileio.c (Qdefault_directory): New variable.
21978 (Fread_file_name): Use it to pass `dir' to the completion functions.
21979
21980 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
21981
21982 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21983
21984 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21985
21986 * keyboard.c (Vpre_help_message): Remove.
21987 (show_help_echo): Remove default C code.
21988
21989 * dired.c (directory_files_internal, file_name_completion):
21990 Only call ENCODE_FILE if the string is indeed decoded.
21991
21992 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21993
21994 * Makefile.in (TOOLKIT_DEFINES): Remove.
21995 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21996
21997 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21998
21999 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22000 (mactoolbox.o): New target.
22001
22002 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22003 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22004
22005 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22006 Use mac_set_frame_window_background instead of XSetWindowBackground.
22007 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22008 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22009 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22010 instead of SetWindowTitleWithCFString.
22011 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22012 Move function to mactoolbox.c.
22013 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22014 Use mac_set_window_modified instead of SetWindowModified.
22015 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22016 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22017 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22018 FrontNonFloatingWindow. Use mac_activate_window instead of
22019 ActivateWindow. Use mac_active_non_floating_window instead of
22020 ActiveNonFloatingWindow.
22021 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22022 Use mac_show_hourglass and mac_hide_hourglass.
22023 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22024 instead of GetGlobalMouse.
22025 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22026 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22027 Use mac_bring_window_to_front instead of BringToFront.
22028 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22029 mactoolbox.c.
22030 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22031 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
22032 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22033 mactoolbox.c.
22034
22035 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22036 (XtPointer): Move typedef from macmenu.c.
22037 (enum button_type): Move enum from macmenu.c.
22038 (widget_value): Move typedef from macmenu.c.
22039 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22040 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22041 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22042 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22043 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22044 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22045 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22046 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22047 (Selection): Move typedef from macselect.c.
22048 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22049 macterm.c.
22050 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22051 (mac_is_window_collapsed, mac_bring_window_to_front)
22052 (mac_send_window_behind, mac_hide_window, mac_show_window)
22053 (mac_collapse_window, mac_front_non_floating_window)
22054 (mac_active_non_floating_window, mac_activate_window)
22055 (mac_move_window_structure, mac_move_window, mac_size_window)
22056 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22057
22058 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22059 (enum mac_menu_kind): Move enum to mactoolbox.c.
22060 (min_menu_id): Move variable to mactoolbox.c.
22061 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22062 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22063 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22064 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22065 [TARGET_API_MAC_CARBON]: Likewise.
22066 (XtPointer): Move typedef to macgui.h.
22067 (enum button_type): Move enum to macgui.h.
22068 (widget_value): Move typedef to macgui.h.
22069 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22070 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22071 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22072 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22073 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22074 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22075 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22076 (popup_activated_flag): Make variable non-static.
22077 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22078 (add_menu_item, fill_menu, dispose_menus):
22079 Move functions to mactoolbox.c.
22080 (restore_show_help_function, menu_target_item_handler)
22081 (install_menu_target_item_handler, mac_handle_dialog_event)
22082 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22083 [TARGET_API_MAC_CARBON]: Likewise.
22084 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22085 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22086 (find_and_call_menu_selection, name_is_separator): Make function
22087 non-static.
22088 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22089 to mactoolbox.c.
22090 (set_frame_menubar): Don't call install_menu_quit_handler.
22091 (menu_item_selection): New variable.
22092 (mac_menu_show): Use create_and_show_popup_menu.
22093 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22094 selection but set variable menu_item_selection. All uses changed.
22095 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22096 Call install_menu_quit_handler. Move to mactoolbox.c.
22097
22098 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22099 (Selection): Move typedef to macgui.h.
22100 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22101 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22102 Make variables non-static.
22103 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22104 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22105 Make functions non-static.
22106 (Vmac_service_selection) [MAC_OSX]: Likewise.
22107 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22108 (mac_valid_selection_target_p, mac_clear_selection)
22109 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22110 (mac_put_selection_value, mac_selection_has_target_p)
22111 (mac_get_selection_value, mac_get_selection_target_list)
22112 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22113 Move functions to mactoolbox.c.
22114 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22115 Likewise.
22116 (copy_scrap_flavor_data, mac_handle_service_event)
22117 (install_service_handler) [MAC_OSX]: Likewise.
22118 (syms_of_macselect) <Vmac_dnd_known_types>:
22119 Use mac_dnd_default_known_types.
22120
22121 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22122 Move to mactoolbox.c.
22123 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22124 (Fx_selection_owner_p): Add EXFUN.
22125 (install_window_handler, remove_window_handler, XSetWindowBackground):
22126 Remove externs.
22127 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22128 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22129 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22130 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22131 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22132 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22133 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22134 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22135 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22136 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22137 (mac_valid_selection_target_p, mac_clear_selection)
22138 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22139 (mac_put_selection_value, mac_selection_has_target_p)
22140 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22141 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22142 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22143 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22144 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22145 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22146 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22147 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22148 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22149
22150 * mactoolbox.c: New file.
22151
22152 2008-04-18 Jason Rumney <jasonr@gnu.org>
22153
22154 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22155
22156 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22157
22158 * character.c (Fmultibyte_char_to_unibyte):
22159 Return latin1 chars unchanged.
22160
22161 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22162 relocated if it points to `name'.
22163
22164 2008-04-17 Kenichi Handa <handa@m17n.org>
22165
22166 * data.c (Faset): Allow setting a multibyte character in an
22167 ASCII-only unibyte string.
22168
22169 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22170
22171 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22172
22173 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22174 done in config.h.
22175
22176 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
22177
22178 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22179 (Fchar_direction): Add usage in the docstring.
22180
22181 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
22182
22183 * keyboard.c (read_key_sequence): Remove always-true checks.
22184
22185 2008-04-14 Jason Rumney <jasonr@gnu.org>
22186
22187 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22188 compatibility struct, for better underline positioning.
22189
22190 2008-04-13 David Hansen <david.hansen@gmx.net>
22191
22192 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22193 string.
22194
22195 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22196
22197 * m/hp800.h (XUINT, XSET): Remove.
22198
22199 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
22200
22201 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22202 previous change.
22203
22204 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22205
22206 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22207 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22208
22209 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22210
22211 * keymap.h (map_keymap_canonical): Declare.
22212 * xmenu.c (single_keymap_panes): Use it.
22213
22214 2008-04-11 Glenn Morris <rgm@gnu.org>
22215
22216 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22217 set the target's value to that of the alias.
22218
22219 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22220
22221 * term.c (set_tty_color_mode): Left over typo.
22222
22223 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
22224
22225 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22226 only after check for file name handler functions. Signal, when
22227 native functionality is not supported.
22228 (syms_of_fileio): Declare it unconditionally.
22229
22230 2008-04-10 Jason Rumney <jasonr@gnu.org>
22231
22232 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22233 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22234
22235 * w32.c (logon_network_drive): Also logon to remote drives that
22236 are mapped to drive letters.
22237
22238 2008-04-10 Glenn Morris <rgm@gnu.org>
22239
22240 * xdisp.c (truncate-partial-width-windows): Doc fix.
22241
22242 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22243
22244 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22245 Move functions to minibuffer.el.
22246 (syms_of_fileio): Don't declare them.
22247
22248 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22249
22250 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22251 (syms_of_minibuf): Remove its initialization.
22252
22253 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22254
22255 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
22256
22257 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22258
22259 2008-04-09 Jason Rumney <jasonr@gnu.org>
22260
22261 * makefile.w32-in (distclean): Delete makefile too.
22262 (maintainer-clean): New target.
22263
22264 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22265
22266 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22267 for new font backend and composite cases.
22268
22269 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22270
22271 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22272 Most of the code moved to run_timers.
22273 (do_pending_atimers): Call run_timers.
22274 (run_timers): New function.
22275
22276 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22277 run atimers.
22278
22279 * process.c (wait_reading_process_output): The same as above.
22280
22281 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22282
22283 * minibuf.c (last_exact_completion): Remove variable.
22284 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22285 (complete_and_exit_1, complete_and_exit_2)
22286 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22287 (Fdisplay_completion_list, display_completion_list_1)
22288 (Fminibuffer_completion_help, Fself_insert_and_exit)
22289 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22290 minibuffer.el.
22291 (syms_of_minibuf): Remove corresponding initializations.
22292
22293 * keyboard.c (Qdeactivate_mark): New var.
22294 (command_loop_1): Use it to call `deactivate-mark'.
22295 (syms_of_keyboard): Initialize it.
22296
22297 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22298 to another frame.
22299 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22300 Don't call set_tty_color_mode.
22301 (store_frame_param): Reset previous_frame rather than call
22302 set_tty_color_mode.
22303 * term.c (set_tty_color_mode): Rewrite.
22304 * dispextern.h (set_tty_color_mode): New type.
22305 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22306
22307 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22308
22309 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22310 for generic chars, which do not exist any more in emacs-unicode.
22311
22312 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
22313
22314 * coding.c (detect_coding_emacs_mule)
22315 (Ffind_operation_coding_system): Fix typo.
22316
22317 2008-04-08 Jason Rumney <jasonr@gnu.org>
22318
22319 * w32uniscribe.c (SNAME): Extract only symbol name.
22320
22321 * w32font.h (struct w32_metric_cache): New struct.
22322 (w32font_info): Use it.
22323 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22324 (CACHE_BLOCKSIZE): New constants.
22325
22326 * w32font.c (Qja, Qko, Qzh): New symbols.
22327 (syms_of_w32font): Initialise them.
22328 (font_matches_spec): Use them to filter by language.
22329 (recompute_cached_metrics): Remove function.
22330 (compute_metrics, clear_cached_metrics): New functions.
22331 (w32font_encode_char): Use them to manage metric cache.
22332 (w32font_text_extents): Cache metrics for all glyphs on demand.
22333 Delay converting glyph indices to WORD until needed.
22334 (w32font_open_internal): Initialize metric cache to empty.
22335 (registry_to_w32_charset): Charset should always be a symbol.
22336 (fill_in_logfont, list_all_matching_fonts): Family should
22337 always be a symbol.
22338
22339 2008-04-06 Jason Rumney <jasonr@gnu.org>
22340
22341 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22342 Give up if glyph indices not supported. Use uniscribe obtained
22343 ABC widths for individual metrics. Map glyph clusters back to
22344 characters using fClusterStart flag. Return number of glyphs
22345 produced, not chars processed.
22346 (uniscribe_shape): Map char at FROM to current glyph.
22347
22348 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22349
22350 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22351 Use SetMenuItemHierarchicalMenu.
22352
22353 2008-04-05 Jason Rumney <jasonr@gnu.org>
22354
22355 * image.c (pbm_load): Allow color values up to 65535.
22356 Throw an error if max_color_idx is outside the supported range.
22357 Report an error when image size is invalid.
22358 Read two bytes at a time when raw images have max_color_idx above 255.
22359
22360 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22361
22362 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22363 append "CCL: Quitted" when the CCL program is quitted.
22364 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22365
22366 * ccl.h (struct ccl_program): New member quit_silently.
22367
22368 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
22369
22370 * search.c (compile_pattern_1): Treat non-nil and non-string of
22371 search-spaces-regexp as nil.
22372
22373 * minibuf.c (Fassoc_string): Tweak docstring.
22374
22375 2008-04-05 Eli Zaretskii <eliz@gnu.org>
22376
22377 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22378 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22379 2008-03-14 to force inode be positive.
22380
22381 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22382 _S_* ones, since we now use our own sys/stat.h.
22383 (stat, fstat): Don't mangle the inode number.
22384 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22385
22386 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22387
22388 * frame.h (struct frame): Give one more bit to `visible' since we use
22389 values larger than 1 to indicate obscured frames on ttys.
22390
22391 * keymap.c (Qkeymap_canonicalize): New var.
22392 (Fmap_keymap_internal): New fun.
22393 (describe_map): Use keymap-canonicalize.
22394
22395 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22396 (Fundo_boundary): Set them.
22397 (syms_of_undo): Initialize them.
22398 (record_point): Use them instead of last_point_position*.
22399 (last_undo_buffer): Change type.
22400
22401 2008-04-04 Jason Rumney <jasonr@gnu.org>
22402
22403 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22404 (recompute_cached_metrics): Don't set ascent and descent per char.
22405
22406 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22407 (uniscribe_check_otf): Add GC protection before consing.
22408 Rearrange loop for counting features.
22409
22410 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22411
22412 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22413 buffer with byte-size of source buffer.
22414
22415 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
22416
22417 * callint.c (Fcall_interactively): Handle temporary region even
22418 when shift-select-mode is off.
22419
22420 2008-04-03 Jason Rumney <jasonr@gnu.org>
22421
22422 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22423
22424 2008-04-03 Kenichi Handa <handa@m17n.org>
22425
22426 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22427 (CATEGORY_MASK_UTF_16): Likewise.
22428 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22429 binary file.
22430 (detect_coding): Add null-byte detection for a binary file.
22431 (detect_coding_system): Likewise.
22432
22433 2008-04-03 Jason Rumney <jasonr@gnu.org>
22434
22435 * w32uniscribe.c: New file.
22436
22437 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22438
22439 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22440
22441 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22442 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22443 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22444 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22445 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22446 (Qphonetic): New symbols.
22447 (syms_of_w32font): Initialize them.
22448 (font_supported_scripts): Use them.
22449 (w32font_list_family): List all charsets.
22450 (w32font_text_extents, recompute_cached_metrics): Fix metric
22451 calculations.
22452 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22453 Give opentype fonts their own format.
22454 (font_matches_spec): New arguments backend and logfont.
22455 Handle :otf spec for uniscribe backend.
22456 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22457 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22458
22459 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22460 font backend.
22461 (globals_of_w32fns): Initialize uniscribe font backend.
22462
22463 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22464 dependencies.
22465 (w32uniscribe.$(O)): New file to build.
22466 (FONT_OBJ): Include w32uniscribe.$(O).
22467 (LIBS): Add uniscribe libraries.
22468
22469 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22470
22471 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
22472
22473 * callint.c (Vshift_select_mode): New var.
22474 (Finteractive): Document new ^ spec.
22475 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22476 is present.
22477
22478 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22479 (command_loop_1): Avoid running the direct display versions of
22480 forward-char and backward-char if shift-selection may occur.
22481 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22482 shift-translation takes place.
22483
22484 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22485 avoid clobbering by define-minor-mode.
22486
22487 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22488 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22489
22490 * syntax.c (Fforward_word): Add ^ interactive spec.
22491
22492 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22493 (Fscroll_right): Add ^ interactive spec.
22494
22495 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22496
22497 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22498
22499 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22500
22501 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22502
22503 2008-03-31 Juri Linkov <juri@jurta.org>
22504
22505 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22506
22507 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22508
22509 * gtkutil.c (xg_set_geometry): Fix indentation.
22510 (xg_resize_outer_widget): Remove.
22511 (x_wm_size_hint_off): Fix indentation.
22512 (xg_frame_set_char_size): Call flush_and_sync after
22513 gtk_window_resize.
22514 (x_wm_set_size_hint): Pass NULL as geometry window to
22515 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22516 Add menu bar and tool bar height to base height.
22517 (xg_update_frame_menubar, free_frame_menubar)
22518 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22519 (update_frame_tool_bar, free_frame_tool_bar):
22520 Change xg_resize_outer_widget to xg_frame_set_char_size.
22521
22522 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
22523
22524 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22525 (Fdbus_call_method): New parameter TIMEOUT.
22526 (dbus-send-signal): Optimize UNGCPRO call.
22527
22528 2008-03-29 Juri Linkov <juri@jurta.org>
22529
22530 * window.c (Fdisplay_buffer): Move call to
22531 Vsplit_window_preferred_function out of conditions that check
22532 if window is eligible for vertical splitting.
22533 When Vsplit_window_preferred_function is non-nil, call it and use
22534 its non-nil return value as window. Otherwise, continue doing
22535 vertical splitting using Fsplit_window with arg horflag=nil.
22536 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22537 default value from `split-window' to nil.
22538
22539 2008-03-29 Juri Linkov <juri@jurta.org>
22540
22541 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22542 for interactive code letters 'b' and 'B'.
22543
22544 2008-03-29 Eli Zaretskii <eliz@gnu.org>
22545
22546 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22547 multibyte string.
22548
22549 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22550
22551 * keyboard.c (pending_funcalls): New var.
22552 (timer_check): Run it.
22553 (syms_of_keyboard): Initialize it.
22554 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22555 (Vdelete_terminal_functions): New vars.
22556 (syms_of_terminal): Initialize them.
22557 (Fdelete_terminal): Run delete-terminal-functions.
22558 * xdisp.c (safe_eval): Rewrite.
22559 (safe_call2): New fun.
22560 * frame.c (Qdelete_frame_functions): New var.
22561 (syms_of_frame): Initialize it.
22562 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22563 * lisp.h (safe_call2, pending_funcalls): Declare.
22564
22565 2008-03-28 Andreas Schwab <schwab@suse.de>
22566
22567 * indent.c (Fmove_to_column): Move declaration before statements.
22568
22569 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22570
22571 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22572 (struct frame): Use bit fields for boolean vars.
22573
22574 * process.c (server_accept_connection): Simplify naming.
22575 (emacs_get_tty_pgrp): Use SDATA.
22576
22577 * coding.c (decode_coding_object): Fix last change.
22578
22579 2008-03-27 Jason Rumney <jasonr@gnu.org>
22580
22581 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22582
22583 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22584
22585 * charset.c (Fdefine_charset_internal): Change the way of
22586 registering charsets in Vcharset_order_list.
22587 (syms_of_charset): Make the charset `eight-bit' supplementary.
22588
22589 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22590
22591 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22592 operations, to avoid having the difference between pointers
22593 overflow.
22594
22595 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22596
22597 * indent.c (check_display_width): New fun.
22598 (scan_for_column): Use it.
22599
22600 * data.c (syms_of_data): Mark most-positive-fixnum and
22601 most-negative-fixnum as constants.
22602
22603 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22604
22605 * indent.c (scan_for_column): Extract from current_column_1.
22606 Merge with the same code from Fmove_to_column.
22607 (current_column_1, Fmove_to_column): Use it.
22608
22609 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22610
22611 * keymap.c (map_keymap_internal): New fun.
22612 (map_keymap): Use it.
22613 (Fmap_keymap_internal): New fun.
22614 (Fmap_keymap): Remove left-out test from before make_save_value.
22615
22616 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22617
22618 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22619 Use XCAR/XCDR.
22620
22621 * process.h (struct Lisp_Process): Remove filter_multibyte.
22622 * process.c (QCfilter_multibyte): Remove.
22623 (setup_process_coding_systems): Don't use filter_multibyte.
22624 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22625 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22626 (Fset_process_filter_multibyte): Change the coding-system to
22627 approximate the previous behavior.
22628 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22629 coding-system.
22630
22631 * coding.c (decode_coding_object): When not decoding into a buffer,
22632 obey the coding system's preference of (uni|multi)byte.
22633
22634 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22635
22636 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22637 every char is changed and has a different byte-length.
22638 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22639 Fix int -> EMACS_INT.
22640
22641 2008-03-23 David Hansen <david.hansen@gmx.net>
22642
22643 * dbusbind.c (xd_read_message): Remove extra copying of message
22644 strings. Check for NULL `interface' or `member'.
22645
22646 2008-03-22 Eli Zaretskii <eliz@gnu.org>
22647
22648 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22649 cFileName a file name that includes `?' characters, use the 8+3
22650 alias in cAlternateFileName instead.
22651
22652 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22653
22654 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22655
22656 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22657
22658 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22659 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22660 work on current_buffer only instead (that was already the case
22661 for some of the code anyway).
22662 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22663 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22664 (SET_PT, SET_PT_BOTH): Adjust.
22665 * intervals.h (set_point, temp_set_point, set_point_both)
22666 (temp_set_point_both): Remove redundant declarations.
22667
22668 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22669
22670 * fileio.c (Finsert_file_contents):
22671 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22672 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22673 when buffer != current_buffer anyway.
22674
22675 2008-03-20 Andreas Schwab <schwab@suse.de>
22676
22677 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22678 as default.
22679
22680 2008-03-19 Jason Rumney <jasonr@gnu.org>
22681
22682 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22683 (syms_of_w32fns): Initialize them.
22684 (HOURGLASS_ID): New constant.
22685 (x_window_to_frame): Don't check hourglass_window.
22686 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22687 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22688 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22689 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22690 Only change the cursor if hourglass is not active.
22691 (Fx_create_frame): Initialize frame's current_cursor.
22692 (hourglass_atimer): Remove.
22693 (hourglass_started): New function.
22694 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22695 (show_hourglass): Adapt to w32, changing argument to frame.
22696
22697 * w32term.h (struct w32_output): Remove hourglass_window.
22698 Add current_cursor.
22699
22700 * eval.c (call_debugger, Fsignal):
22701 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22702 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22703 (Fexecute_extended_command, cancel_hourglass_unwind):
22704 * minibuf.c (read_minibuf):
22705 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22706
22707 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22708
22709 * window.c (run_funs): New fun.
22710 (run_window_configuration_change_hook): Use it to run the buffer-local
22711 and the global part of the hook.
22712
22713 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22714 (unwind_format_mode_line): Restore selected window.
22715 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22716
22717 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22718
22719 * editfns.c (Fchar_equal): Check they are valid characters.
22720
22721 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22722
22723 2008-03-17 Andreas Schwab <schwab@suse.de>
22724
22725 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22726 against a charset.
22727
22728 * lisp.h (Fbuffer_list): Declare.
22729
22730 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
22731
22732 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22733 handlebox_widget is != 0.
22734
22735 2008-03-16 Juri Linkov <juri@jurta.org>
22736
22737 * callint.c (Fcall_interactively): For interactive code letters
22738 'b' and 'B' put the buffer list into the list of default "future"
22739 values of the minibuffer.
22740
22741 2008-03-16 Andreas Schwab <schwab@suse.de>
22742
22743 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22744 modifiers.
22745
22746 * regex.c (re_match_2_internal): Correct matching of a charset
22747 against latin-1 characters.
22748
22749 2008-03-16 Kenichi Handa <handa@m17n.org>
22750
22751 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22752 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22753 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22754 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22755 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22756 CHAR_STRING_ADVANCE.
22757 (produce_chars): Fix for the case that the source and the
22758 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22759 instead of CHAR_STRING_ADVANCE.
22760 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22761 STRING_CHAR_ADVANCE.
22762
22763 2008-03-15 Andreas Schwab <schwab@suse.de>
22764
22765 * regex.c (re_match_2_internal): Correct matching of eight bit
22766 characters in unibyte strings.
22767
22768 2008-03-15 Martin Rudalics <rudalics@gmx.at>
22769
22770 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22771 at end of range when it coincides with the end of the buffer.
22772
22773 2008-03-14 Eli Zaretskii <eliz@gnu.org>
22774
22775 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22776
22777 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22778
22779 2008-03-14 Jason Rumney <jasonr@gnu.org>
22780
22781 * editfns.c (initial_tz): New variable.
22782 (syms_of_editfns): Initialize it.
22783 (Fset_time_zone_rule): Set it when first called.
22784 Use it when TZSTRING is nil.
22785
22786 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22787 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22788 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22789 (globals_of_w32fns): Initialize them.
22790 (compute_tip_xy): Use them to position tooltips.
22791
22792 2008-03-14 Glenn Morris <rgm@gnu.org>
22793
22794 * emacs.c (main): Revert previous change.
22795 (standard_args): Revert -internal-script back to -scriptload,
22796 and remove the long-option form.
22797
22798 2008-03-13 Glenn Morris <rgm@gnu.org>
22799
22800 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22801 Remove option -enable-font-backend.
22802
22803 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22804
22805 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22806
22807 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22808
22809 * xterm.c (x_connection_closed): For GTK: If this is the last
22810 terminal just exit without closing the display.
22811
22812 2008-03-11 Jason Rumney <jasonr@gnu.org>
22813
22814 * w32font.c (w32font_full_name): Use floor to round.
22815
22816 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22817
22818 * sound.c (alsa_configure): Declare vol at beginning of block.
22819
22820 * fontset.c (Ffontset_info): Remove extra semicolon.
22821
22822 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22823
22824 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22825 size of resulting string.
22826
22827 2008-03-10 Jason Rumney <jasonr@gnu.org>
22828
22829 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22830
22831 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22832
22833 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22834 Don't pretend as if characters with display property haven't been
22835 consumed for string-replacing-string case.
22836
22837 2008-03-08 Kim F. Storm <storm@cua.dk>
22838
22839 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22840 (get_next_display_element, next_element_from_string)
22841 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22842
22843 2008-03-08 Andreas Schwab <schwab@suse.de>
22844
22845 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22846
22847 2008-03-06 Jason Rumney <jasonr@gnu.org>
22848
22849 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22850 when charset not specified. Only translate ANSI to unicode when
22851 font_type is truetype.
22852 (w32font_coverage_ok): New function.
22853 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22854
22855 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22856
22857 * lread.c (Fread_char): Resolve modifiers.
22858 (Fread_char_exclusive): Likewise.
22859
22860 * character.c (char_resolve_modifier_mask): New function.
22861 (char_string): Use char_resolve_modifier_mask.
22862 (Fchar_resolve_modifiers): New function.
22863 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22864 function.
22865
22866 2008-03-04 Jason Rumney <jasonr@gnu.org>
22867
22868 * makefile.w32-in: Always include w32font.c in the build.
22869 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22870
22871 2008-03-04 Andreas Schwab <schwab@suse.de>
22872
22873 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22874 (versionclean): Likewise.
22875
22876 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
22877
22878 * .cvsignore: Add oo.
22879
22880 2008-03-03 Andreas Schwab <schwab@suse.de>
22881
22882 * coding.c (decode_coding_object): Inhibit gap shrinking while
22883 decoding in place.
22884
22885 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22886
22887 * w32term.c: Remove unused include "gnu.h".
22888 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22889
22890 * gnu.h: Rename to ...
22891 * emacs-icon.h: ... this.
22892 * xterm.c: Use emacs-icon.h instead of gnu.h.
22893 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22894
22895 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
22896
22897 * w32font.c: Include math.h.
22898
22899 2008-03-03 Jason Rumney <jasonr@gnu.org>
22900
22901 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22902 Compute options separately.
22903 (w32font_open_internal): Set glyph_idx before caching metrics.
22904
22905 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22906 Define if system headers don't.
22907 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22908 (w32font_encode_char): Don't declare here.
22909
22910 * w32font.c (Quniscribe, QCformat): New symbols.
22911 (syms_of_w32font): Define them.
22912 (w32font_has_char): Indicate uncertainty.
22913 (w32font_encode_char): Encode as glyph point. Make static.
22914 (recompute_cached_metrics): New function.
22915 (w32font_open_internal): Use it. Set font to use glyph points
22916 initially. Set format based on type of font.
22917 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22918 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22919 on it. Set format based on information available here.
22920 (add_font_entity_to_list): Identify backend based on opentype_only.
22921
22922 2008-03-02 Andreas Schwab <schwab@suse.de>
22923
22924 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22925
22926 * coding.c (decode_coding_big5, produce_chars):
22927 Fix typos in last change.
22928
22929 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22930
22931 * gnu.h: New icon.
22932
22933 2008-03-02 Kenichi Handa <handa@m17n.org>
22934
22935 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22936 `dos', don't decode '\r' if that is the last in the source.
22937 (decode_coding_utf_16, decode_coding_emacs_mule)
22938 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22939 (decode_coding_raw_text, decode_coding_charset): Likewise.
22940 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22941
22942 2008-03-01 Jason Rumney <jasonr@gnu.org>
22943
22944 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22945
22946 2008-03-01 Kim F. Storm <storm@cua.dk>
22947
22948 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22949
22950 2008-03-01 Jason Rumney <jasonr@gnu.org>
22951
22952 * w32font.c (w32font_full_name): New function.
22953 (w32font_open_internal): Use it.
22954
22955 2008-03-01 Kim F. Storm <storm@cua.dk>
22956
22957 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22958
22959 2008-03-01 Jason Rumney <jasonr@gnu.org>
22960
22961 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22962
22963 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22964
22965 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22966 xg_frame_resized when the event is for the edit widget.
22967
22968 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
22969
22970 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22971 set_char_size.
22972 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
22973 operations on widgets here. Just set frame size if needed.
22974 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22975 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22976 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22977 the whole frame.
22978 (xg_create_tool_bar): Move attachment of the tool bar to
22979 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22980 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22981
22982 2008-03-01 Jason Rumney <jasonr@gnu.org>
22983
22984 * w32fns.c (w32_msg_pump): Disable debug code.
22985
22986 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22987
22988 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22989
22990 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
22991
22992 * xdisp.c (next_overlay_string): Don't set
22993 overlay_strings_at_end_processed_p if we're currently reading from
22994 a display string.
22995
22996 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22997
22998 * xdisp.c (get_overlay_strings_1): Fix typo.
22999
23000 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23001
23002 * xdisp.c (get_overlay_strings_1): Add missing argument type.
23003
23004 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
23005
23006 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23007
23008 * xdisp.c (display_mode_element): Cancel the previous change.
23009 (decode_mode_spec): Likewise.
23010 (handle_auto_composed_prop): Don't make composition if it->string
23011 is a string.
23012
23013 2008-02-27 Kim F. Storm <storm@cua.dk>
23014
23015 * lisp.h (GLYPH): Change type from int to struct with separate char
23016 and face_id members.
23017 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23018 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23019 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23020 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
23021 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
23022 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23023 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23024 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23025 handle new Lisp glyph code encoding, either an integer or a cons.
23026
23027 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23028 (GLYPH_ALIAS): Delete.
23029 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23030 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23031 (GLYPH_FROM_CHAR): Replace macro by ...
23032 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
23033
23034 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23035 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23036 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
23037 (GLYPH_INVALID_P): New macro.
23038 (spec_glyph_lookup_face): Update prototype.
23039
23040 * dispnew.c (line_draw_cost): Adapt to new glyph type.
23041 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23042 new glyph code encoding.
23043 (spec_glyph_lookup_face): No return value; update passed glyph instead.
23044 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23045
23046 * xdisp.c (get_next_display_element, next_element_from_display_vector):
23047 Adapt to new glyph type and new glyph code encoding.
23048
23049 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23050
23051 * indent.c (current_column, current_column_1, Fmove_to_column)
23052 (compute_motion): Adapt to new glyph code encoding.
23053
23054 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23055
23056 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
23057
23058 * process.c (wait_reading_process_output): Check for window
23059 changes caused by timers.
23060 Suggested by Johan Bockgård.
23061
23062 2008-02-27 Glenn Morris <rgm@gnu.org>
23063
23064 * emacs.c (USAGE1): Add `--disable-font-backend'.
23065
23066 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23067
23068 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23069 is made to the buffer.
23070
23071 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23072
23073 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23074 (face_at_string_position):
23075 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23076 (face_at_string_position):
23077 * xdisp.c (display_string, next_overlay_change):
23078 * buffer.h (overlays_at):
23079 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23080 Update callers.
23081
23082 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
23083
23084 * editfns.c (Fformat): Doc fix.
23085
23086 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
23087
23088 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23089 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23090 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23091
23092 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23093
23094 * buffer.c (Fbuffer_swap_text): New function.
23095 (syms_of_buffer): Defsubr it.
23096
23097 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
23098
23099 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23100
23101 2008-02-25 Jason Rumney <jasonr@gnu.org>
23102
23103 * w32font.c (w32font_draw): Draw one character at a time when padding.
23104
23105 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23106
23107 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23108 Handle a nil arg. Use run_window_configuration_change_hook.
23109 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23110 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23111 Use run_window_configuration_change_hook.
23112
23113 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23114
23115 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23116 1-pixel width.
23117
23118 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23119
23120 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23121 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23122 if the glyph in the font is zero pixel with.
23123
23124 * dispextern.h (struct glyph_string): New member padding_p.
23125
23126 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23127
23128 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23129
23130 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23131
23132 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23133
23134 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23135
23136 2008-02-25 Jason Rumney <jasonr@gnu.org>
23137
23138 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23139
23140 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23141
23142 Allow fine-grained image-cache flushing.
23143 * dispextern.h (struct image): Add `dependencies' field.
23144 (clear_image_caches): Change arg to Lisp_Object.
23145 * image.c (make_image): Initialize `dependencies' field.
23146 (clear_image_cache): Change arg to allow fine-grained flushing.
23147 Perform the flush even if image-cache-eviction-delay is nil.
23148 (clear_image_caches): Change arg to Lisp_Object.
23149 (Fclear_image_cache): Expand meaning of the argument.
23150 (mark_image): Mark `dependencies' field.
23151 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23152 (lface_hash): Use XHASH rather than XFASTINT.
23153 (face_at_buffer_position): Fix int -> EMACS_INT position.
23154 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23155 (select_frame_for_redisplay): Remove code duplication.
23156 (redisplay_internal): Adapt arg to call to clear_image_caches.
23157
23158 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23159
23160 * s/vms4-0.h:
23161 * s/vms4-2.h:
23162 * s/vms4-4.h:
23163 * s/vms5-5.h: Remove, unused.
23164
23165 * s/irix5-2.h:
23166 * s/irix6-0.h:
23167 * s/riscos5.h:
23168 * s/mach-bsd4-3.h:
23169 * m/mips4.h: Remove files for obsolete systems.
23170
23171 * Makefile.in:
23172 * filelock.c:
23173 * unexmips.c:
23174 * m/hp9000s300.h:
23175 * m/iris4d.h:
23176 * s/aix3-1.h:
23177 * s/hpux.h:
23178 * s/msdos.h:
23179 * s/usg5-0.h:
23180 * s/usg5-2-2.h:
23181 * s/usg5-2.h:
23182 * s/usg5-3.h: Remove references to obsolete variables.
23183
23184 * s/irix5-0.h: Remove, move all the contents ...
23185 * s/irix6-5.h: ... here. Simplify.
23186 * config.in: Regenerate.
23187
23188 2008-02-24 Jason Rumney <jasonr@gnu.org>
23189
23190 * w32term.c (x_draw_glyph_string_background): Clear the background
23191 manually when cleartype is in use.
23192 (x_draw_glyph_string_foreground): Draw text transparently when
23193 cleartype is in use.
23194
23195 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23196 a font into it unless we have to.
23197
23198 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23199
23200 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23201 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
23202
23203 2008-02-18 Jason Rumney <jasonr@gnu.org>
23204
23205 * w32fns.c (Fw32_shell_execute): Encode parameters.
23206
23207 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23208
23209 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23210
23211 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
23212
23213 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23214
23215 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23216
23217 * xterm.c (x_set_offset): Don't change the gravity if
23218 CHANGE_GRAVITY is -1.
23219
23220 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
23221
23222 * fileio.c (auto_save_error_occurred): New var.
23223 (auto_save_error): Set it.
23224 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23225 error occurred.
23226
23227 2008-02-23 Eli Zaretskii <eliz@gnu.org>
23228
23229 * w32.c (globals_of_w32): Add initializations for
23230 g_b_init_get_sid_sub_authority and
23231 g_b_init_get_sid_sub_authority_count.
23232
23233 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23234
23235 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23236 (font_parse_xlfd): Use them for sanity check.
23237 (Finternal_set_font_style_table): Make sure the table is bijective.
23238
23239 Consolidate the image_cache to the terminal struct.
23240 * termhooks.h (P_): Remove redundant def.
23241 (struct terminal): New field `image_cache'.
23242 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23243 of FRAME_X_IMAGE_CACHE.
23244 * xterm.h (struct x_display_info): Remove image_cache field.
23245 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23246 * w32term.h (struct w32_display_info): Remove image_cache field.
23247 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23248 * macterm.h (struct mac_display_info): Remove image_cache field.
23249 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23250 * xterm.c (x_term_init):
23251 * w32term.c (w32_term_init):
23252 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23253 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23254 Remove declarations.
23255 (clear_image_caches, mark_image_cache): New declarations.
23256 * xfaces.c (clear_face_cache):
23257 * xdisp.c (redisplay_internal): Use clear_image_caches.
23258 * image.c (clear_image_cache): Don't check that a frame is on
23259 a window-system before checking if it shares the same cache.
23260 (clear_image_caches): New function.
23261 (Fclear_image_cache): Use it.
23262 (mark_image): Move from allo.c.
23263 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23264 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23265 (mark_object): Don't call mark_image_cache for frames.
23266 (mark_terminals): Call mark_image_cache.
23267
23268 * lisp.h (Fdelete_terminal): Declare.
23269
23270 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23271 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23272 wrong_type_argument.
23273
23274 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23275
23276 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23277 malayalam.el, and tamil.el. Add sinhala.el.
23278
23279 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23280
23281 * xterm.c (x_connection_closed): Consolidate identical tests.
23282 (x_delete_terminal): Don't crash if called via x_connection_closed.
23283
23284 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23285
23286 * xdisp.c (decode_mode_spec): New arg string.
23287 (display_mode_element): Adjust for the above change.
23288
23289 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23290
23291 * callint.c (Fcall_interactively): Use AREF.
23292
23293 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23294
23295 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23296
23297 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23298
23299 * xfns.c (Fx_show_tip): Set string to " " if empty.
23300
23301 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23302
23303 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23304 with Qt.
23305
23306 2008-02-17 Kenichi Handa <handa@m17n.org>
23307
23308 * ftfont.c (ftfont_shape): Return Lispy number.
23309
23310 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23311 for GCs.
23312 (Finternal_set_font_selection_order): Call font_update_sort_order
23313 only when enable_font_backend is set.
23314 (realize_x_face): Set face->font_info to that of default face only
23315 when enable_font_backend is set.
23316
23317 * xdisp.c (handle_composition_prop): Set it->c to the fist
23318 character of the composed region.
23319 (fill_composite_glyph_string): Set base_face->font_info to
23320 s->font_info. Get a face for ascii from base_face->ascii_face.
23321 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23322 with a face already decided.
23323 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23324 non-negative.
23325 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23326 call font_prepare_composition unconditionally.
23327
23328 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23329
23330 * xterm.h (struct x_display_info): New member font.
23331
23332 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23333 (x_set_mouse_face_gc, x_new_font): Likewise.
23334 (x_term_init): Setup display_info->font.
23335 (x_delete_terminal): Free display_info->font.
23336
23337 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23338
23339 * ftxfont.c (ftxfont_default_fid): Delete it.
23340 (ftxfont_open): Set xfont->fid to 0.
23341 (ftxfont_end_for_frame): Clear data specific to the frame and the
23342 font-driver.
23343
23344 * xftfont.c (xftfont_default_fid): Delete it.
23345 (xftfont_open): Set xfont->fid to 0.
23346
23347 * fontset.c (FONTSET_OBJLIST): New macro.
23348 (fontset_find_font): Update font-object list of the fontset.
23349 (free_realized_fontset): New function.
23350 (free_face_fontset): Call free_realized_fontset.
23351 (Ffont_info): Call font_close_object only when enable_font_backend
23352 is set.
23353
23354 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23355 [HAVE_NTGUI]: Include w32term.h.
23356 [MAC_OS]: Include macterm.ch.
23357 (font_otf_ValueRecord): Use make_number.
23358 (font_finish_cache): Fix handling of reference count.
23359 (font_clear_cache): Update num_fonts.
23360 (font_open_entity): Update smallest_char_width and
23361 smallest_font_height of the frame.
23362 (font_close_object): Update num_fonts.
23363 (Fclear_font_cache): Fix finding the target cache data.
23364
23365 2008-02-16 Glenn Morris <rgm@gnu.org>
23366
23367 * fontset.c (Finternal_char_font): Fix compilation warning.
23368
23369 2008-02-16 Eli Zaretskii <eliz@gnu.org>
23370
23371 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23372 instead of char arrays. Enlarge the size of array passed to
23373 get_token_information.
23374
23375 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23376 warnings.
23377
23378 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23379
23380 * .gdbinit: Don't set `args', it breaks gdb --args.
23381
23382 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23383
23384 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23385 within a narrowed buffer.
23386
23387 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23388
23389 * coding.c (decode_coding_object, encode_coding_object):
23390 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23391
23392 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23393
23394 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23395 hardcoding 1.
23396 (detect_coding_system):
23397 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23398 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23399 * insdel.c (insert_from_gap):
23400 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23401 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23402 (string_to_multibyte):
23403 * character.c (chars_in_text, multibyte_chars_in_text):
23404 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23405
23406 * character.h (FETCH_STRING_CHAR_ADVANCE)
23407 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23408 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23409 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23410
23411 * casefiddle.c (casify_region): Only call after-change and composition
23412 functions on the part of the region that was changed.
23413
23414 * keyboard.c (read_avail_input):
23415 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23416
23417 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23418
23419 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23420 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23421
23422 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
23423
23424 * w32menu.c (push_submenu_start, push_submenu_end)
23425 (push_left_right_boundary, push_menu_pane, push_menu_item):
23426 * keyboard.c (read_key_sequence): Don't pass args with side effects
23427 to AREF, it fails when compiling with -DENABLE_CHECKING.
23428
23429 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23430
23431 * Makefile.in (${lispsource}international/charprop.el):
23432 Delete this target.
23433
23434 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23435 emacs-unicode-2.
23436
23437 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23438
23439 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23440
23441 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23442
23443 * frame.c (Qnoelisp): New symbol.
23444 (syms_of_frame): Initialize it.
23445 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23446 harmless Elisp code, from a strong `force' from x_connection_closed.
23447 * frame.h (Qnoelisp): Declare.
23448 * xterm.c (x_connection_closed): Pass `noelisp'.
23449
23450 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23451 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23452 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23453 rather than `int' for the type of `type'.
23454
23455 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23456
23457 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23458
23459 * Makefile.in (GNUC): Remove support for gcc-1.x.
23460
23461 2008-02-10 Richard Stallman <rms@gnu.org>
23462
23463 * lisp.h (ASET): Use AREF, not ASLOT.
23464
23465 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23466
23467 * lisp.h (ASET): Check bounds.
23468
23469 2008-02-10 Glenn Morris <rgm@gnu.org>
23470
23471 * buffer.c (mode-name): Doc fix.
23472
23473 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23474
23475 * Makefile.in:
23476 * emacs.c:
23477 * gmalloc.c:
23478 * keyboard.c:
23479 * lisp.h:
23480 * m/ibm370aix.h:
23481 * process.c:
23482 * regex.c:
23483 * s/hpux.h:
23484 * sysdep.c:
23485 * sysselect.h:
23486 * systty.h:
23487 * unexec.c:
23488 * w32term.c:
23489 * xsmfns.c:
23490 * xterm.c: Remove code that deals with obsolete variables.
23491
23492 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23493
23494 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23495 nothing else needs it anymore.
23496
23497 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23498
23499 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23500 instead of unibyte_char_to_multibyte.
23501
23502 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23503
23504 * s/gnu-linux.h: Remove commented out code.
23505
23506 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23507
23508 * Makefile.in: Update what RMS says about using autoconf.
23509 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23510 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23511 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23512 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23513
23514 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23515
23516 * keymap.c (Fkey_description): Move side effect outside of macro call.
23517
23518 * xfaces.c (Finternal_make_lisp_face):
23519 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23520
23521 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23522 (syms_of_fontset): Use ASET.
23523
23524 * fns.c (concat): Move side effect outside of macro call.
23525 (hash_clear): Use ASET.
23526
23527 2008-02-08 Richard Stallman <rms@gnu.org>
23528
23529 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23530 If FORCE, and frame has a surrogate minibuffer for another frame,
23531 delete the other frame first.
23532
23533 2008-02-07 Timo Savola <timo.savola@iki.fi>
23534
23535 * xterm.c (x_detect_focus_change): Handle embed client message.
23536 (handle_one_xevent): Ditto.
23537 (handle_one_xevent): If embedded and we get a button press/release,
23538 request focus.
23539 (xembed_set_info, xembed_send_message): New functions.
23540 (x_make_frame_visible): Call xembed_set_info if embedded.
23541 (x_make_frame_invisible): Call xembed_set_info if embedded.
23542 (x_term_init): Initialize Xatom_XEMBED.
23543 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23544 (x_iconify_frame): Ditto.
23545
23546 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23547 (enum xembed_info, enum xembed_message, enum xembed_focus)
23548 (enum xembed_modifier, enum xembed_accelerator): New.
23549 (xembed_set_info, xembed_send_message): Declare.
23550 (FRAME_X_EMBEDDED_P): New.
23551
23552 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23553 gtk_plug_new.
23554
23555 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23556 window ID of a frame.
23557 (x_window): Reparent frame if embedded.
23558 (Fx_create_frame): Don't set border width if embedded.
23559
23560 * emacs.c (USAGE3): Add --parent-id.
23561 (standard_args): Ditto.
23562
23563 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23564
23565 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23566
23567 2008-02-07 Jim Meyering <meyering@redhat.com>
23568
23569 Use "do...while (0)", not "if (1)...else" in macro definitions.
23570 The latter provokes a warning from gcc about the empty else, when
23571 followed by ";". Also, without that trailing semicolon, it would
23572 silently swallow up any following statement.
23573 * syntax.h (SETUP_SYNTAX_TABLE)
23574 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23575 * buffer.h (DECODE_POSITION): Likewise.
23576 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23577 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23578 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23579 (FETCH_CHAR_ADVANCE): Likewise.
23580 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23581
23582 2008-02-07 Jim Meyering <meyering@redhat.com>
23583
23584 * lread.c [lint]: Don't include <sys/inode.h>.
23585
23586 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23587
23588 * xselect.c (x_handle_dnd_message):
23589 * xmenu.c (digest_single_submenu, xmenu_show):
23590 * xdisp.c (with_echo_area_buffer_unwind_data)
23591 (format_mode_line_unwind_data, unwind_format_mode_line)
23592 (display_menu_bar):
23593 * eval.c (Ffetch_bytecode):
23594 * doc.c (store_function_docstring):
23595 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23596 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23597 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23598
23599 2008-02-07 Kenichi Handa <handa@m17n.org>
23600
23601 * ftxfont.c (ftxfont_open): Don't set
23602 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23603
23604 * ftfont.c (ftfont_open): Fix previous change.
23605
23606 2008-02-06 Jason Rumney <jasonr@gnu.org>
23607
23608 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23609 Use cached metrics for ASCII characters.
23610 (w32font_open_internal): Don't set font's owning_frame.
23611 Cache metrics for ASCII characters.
23612
23613 * w32font.h (struct w32font_info): Add ascii_metrics.
23614 Remove owning_frame.
23615
23616 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23617
23618 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23619 to negative value.
23620
23621 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23622
23623 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23624
23625 * charset.c (syms_of_charset): Set QCtest and Qeq.
23626
23627 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23628
23629 * process.c (Fstart_process):
23630 * callproc.c (Fcall_process): Handle the case where
23631 Funhandled_file_name_directory returns nil.
23632
23633 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23634 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23635 * font.c (check_gstring): Use them and AREF to access the vector before
23636 we know it's really a gstring.
23637 (Ffont_shape_text): Fix typo.
23638 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
23639
23640 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23641 Declare.
23642
23643 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23644
23645 2008-02-05 Jason Rumney <jasonr@gnu.org>
23646
23647 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23648 Set smallest_font_height and smallest_char_width in display info.
23649
23650 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23651
23652 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23653
23654 2008-02-05 Miles Bader <miles@gnu.org>
23655
23656 * xfaces.c (get_lface_attributes, merge_named_face)
23657 (lookup_named_face, lookup_derived_face, realize_named_face):
23658 Revert 2008-02-01 change by cyd@stupidchicken.com.
23659
23660 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23661
23662 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23663 fallback fonts.
23664 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23665
23666 2008-02-04 Jason Rumney <jasonr@gnu.org>
23667
23668 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23669 set full_name.
23670 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23671
23672 2008-02-03 Jason Rumney <jasonr@gnu.org>
23673
23674 * makefile.w32-in (OBJ1): Include font.o here.
23675 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23676
23677 2008-02-02 Jason Rumney <jasonr@gnu.org>
23678
23679 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23680
23681 2008-02-01 Jason Rumney <jasonr@gnu.org>
23682
23683 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23684
23685 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23686
23687 2008-02-01 Andreas Schwab <schwab@suse.de>
23688
23689 * Makefile.in (shortlisp, lisp): Update for rename of
23690 ../lisp/language/myanmar.el.
23691
23692 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
23693
23694 * xfaces.c (get_lface_attributes): Delete function.
23695 (merge_named_face, lookup_named_face, lookup_derived_face)
23696 (realize_named_face): Call lface_from_face_name directly, and use
23697 the fact that merge_face_vectors does not alter its FROM argument.
23698
23699 2008-02-01 Jason Rumney <jasonr@gnu.org>
23700
23701 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23702 input in the default locale. Handle non-Unicode multibyte input.
23703
23704 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23705
23706 * fontset.c (reorder_font_vector): Exclude nil elements from the
23707 font group. Don't try multiple fonts.
23708 (fontset_font): Adjust for the above change.
23709 (Finternal_char_font): Return nil if the found font doesn't
23710 contain the character ch.
23711
23712 * Makefile.in (lisp, shortlisp): Add cham.el.
23713
23714 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23715
23716 * font.h (FONTP): Make it return 1 also for a font-object.
23717
23718 * .gdbinit (xfontset): New function.
23719
23720 * font.c (font_find_for_lface): Check if the character C is
23721 supported or not only for the first font.
23722
23723 * fontset.c (reorder_font_vector): Fix typo.
23724 (fontset_find_font): Don't add a font-spec specifying a script.
23725 Use 0 (not Qt) for the indication of empty font-group. Change the
23726 format of RFONT-DEF. Return Qt if no font in the font-group
23727 support the character.
23728 (fontset_font): Adjust for the above change. If no font was
23729 found the character, remember that.
23730 (face_for_char): Adjust for the change of RFONT-DEF.
23731 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23732 no font for the target.
23733 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23734
23735 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23736
23737 * font.c (font_load_for_face): Handle the case that the font in
23738 face->lface is a string.
23739
23740 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23741
23742 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23743
23744 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23745
23746 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23747 Fix previous change. If the frame is not on a window system,
23748 signal an error.
23749
23750 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23751
23752 * coding.c (decode_coding_object, encode_coding_object):
23753 Adjust marker positions after conversion.
23754
23755 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23756
23757 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23758
23759 * font.c (font_find_for_lface): Fix the handling of the return
23760 value of font_has_char.
23761 (Ffont_shape_text): Fix previous change.
23762
23763 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23764 (fontset_ref_and_range): Delete it.
23765 (fontset_find_font): Call char_table_ref_and_range instead of
23766 FONTSET_REF_AND_RANGE.
23767 (make_fontset): Don't setup font groups of Latin here.
23768 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23769 (new_fontset_from_font): Make the specified font the default for
23770 all Latin characters.
23771
23772 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23773
23774 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23775 is on a window system before accessing the fontset of the frame.
23776
23777 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23778
23779 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23780
23781 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23782 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23783
23784 * font.c (Ffont_shape_text): If the font driver doesn't have a
23785 shaper function, make zero-width glyphs to have at least one-pixel
23786 width. Fix setting of `to' field of glyphs.
23787
23788 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23789
23790 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23791 glyphs.
23792
23793 * font.h (struct font_driver): Improve docstring of member `shape'.
23794
23795 2008-02-01 Kenichi Handa <handa@m17n.org>
23796
23797 * composite.c (syms_of_composite): Fix docstring of
23798 auto-composition-function.
23799
23800 * font.h (LGLYPH_SIZE): New macro.
23801
23802 * font.c (Ffont_fill_gstring): Stop filling when a character not
23803 supported by the font is found.
23804 (Ffont_shape_text): When a shape callback function returns nil,
23805 try at most two more times with larger gstring.
23806 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23807
23808 * xdisp.c (handle_auto_composed_prop): Change the argument to
23809 auto-composition-function.
23810
23811 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23812 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23813 Lispy glyph and store it in the lgstring.
23814
23815 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23816
23817 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23818
23819 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23820
23821 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23822
23823 * fontset.c (Vfont_encoding_charset_alist): New variable.
23824 (syms_of_fontset): DEFVAR it.
23825 (reorder_font_vector, fontset_find_font): Optimize for the case of
23826 no need of reordering.
23827 (face_for_char): Map the charset property by
23828 Vfont_encoding_charset_alist.
23829
23830 2008-02-01 Jason Rumney <jasonr@gnu.org>
23831
23832 * w32font.c (logfonts_match): Don't check adstyle here.
23833 (font_matches_spec): Check here against physical font instead.
23834 (add_font_entity_to_list): Avoid some substitutions.
23835
23836 * font.c (font_parse_fcname): Default weight and slant to normal.
23837 (font_score): Prefer normal fonts if weight or slant unspecified.
23838 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23839 match freetype scores.
23840
23841 2008-02-01 Jason Rumney <jasonr@gnu.org>
23842
23843 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23844 font, as it may have been deleted.
23845 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23846 most common hyphenless variation.
23847 (logfonts_match): Check generic family.
23848 (font_matches_spec): Don't check generic family here.
23849 (fill_in_logfont): Set generic family based on adstyle.
23850
23851 * w32font.h (w32font_get_cache): Update declaration.
23852
23853 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23854
23855 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23856
23857 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23858 If none of the new drivers are available, call font_update_drivers
23859 with the old drivers.
23860
23861 * w32font.c (w32font_get_cache): Adjust the argument type.
23862
23863 * xfont.c (xfont_get_cache): Adjust the argument type.
23864
23865 * font.h (struct font_driver): Change argument type of get_cache.
23866
23867 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23868
23869 * font.c (Ffont_get): Fix arguments to Fassoc.
23870 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23871 (font_clear_cache): New function.
23872 (font_list_entities, font_matching_entity): Use font_get_cache.
23873 (font_update_drivers): Call font_clear_cache when finishing a driver.
23874
23875 * fontset.c (fontset_find_font): Fix previous change.
23876
23877 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23878
23879 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23880 dpyinfo->font_table.
23881 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23882 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23883
23884 * font.c (font_at): Handle the case that the arg C is negative.
23885 Handle the unibyte case.
23886 (Ffont_at): Call font_at with the arg C -1.
23887
23888 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23889 the position here, and call font_at with the arg C -1.
23890 Don't check the range of the existing composition at the point.
23891
23892 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23893
23894 * fontset.c (fontset_add): New args charset_id and family.
23895 Change caller.
23896 (load_font_get_repertory, fontset_find_font): Assume that
23897 font_spec is always a font-spec object.
23898 (Fset_fontset_font): Always store a font-spec object in a fontset.
23899
23900 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23901 instead of get_property_and_range.
23902
23903 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23904
23905 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23906 (xftfont_open): Don't keep locking face.
23907 (xftfont_close): Don't unlock face.
23908 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23909
23910 * fontset.c (fontset_find_font): Don't prefer a font of
23911 supplementary charset.
23912
23913 2008-02-01 Kenichi Handa <handa@m17n.org>
23914
23915 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23916 script, langsys_tag to langsys, new member script.
23917 (OTF_TAG_STR): Terminate by '\0'.
23918 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
23919 listing to the script specified in that property. Fix arg to
23920 OTF_check_features.
23921
23922 2008-02-01 Jason Rumney <jasonr@gnu.org>
23923
23924 * w32font.h: New file.
23925
23926 * w32font.c: Include it.
23927 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23928 (w32font_open): Set owning_frame.
23929 (w32font_text_extents): Use owning_frame.
23930 (struct font_callback_data): Add opentype_only field.
23931 (add_font_entity_to_list): Use it to filter fonts.
23932 Don't check against full name.
23933 (w32font_list_internal): New function.
23934 (w32font_list): Use it.
23935 (w32font_match_internal): New function.
23936 (w32font_match): Use it.
23937 (w32font_open_internal): New function.
23938 (w32font_open): Use it.
23939 (w32font_get_cache, w32font_close, w32font_has_char)
23940 (w32font_encode_char, w32font_text_extents, w32font_draw):
23941 Make non-static.
23942
23943 * makefile.w32-in (w32font.o): Depend on w32font.h.
23944
23945 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23946
23947 * charset.c (Fdefine_charset_internal): Record a supplementary
23948 charset at the tail of Vcharset_order_list.
23949
23950 * font.c (Ffont_shape_text): Fix the return value.
23951
23952 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23953
23954 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23955
23956 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23957
23958 * ftfont.c (struct OpenTypeSpec): New struct.
23959 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23960 (ftfont_get_open_type_spec): New function.
23961 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23962
23963 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23964
23965 2008-02-01 Jason Rumney <jasonr@gnu.org>
23966
23967 * w32font.c (add_font_entity_to_list): Compare only the beginning
23968 of full name.
23969
23970 2008-02-01 Kenichi Handa <handa@m17n.org>
23971
23972 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23973 Never return HANDLED_RECOMPUTE_PROPS.
23974
23975 2008-02-01 Kenichi Handa <handa@m17n.org>
23976
23977 * font.c (font_gstring_produce): Delete it.
23978
23979 * composite.h (COMPOSITION_METHOD):
23980 Handle COMPOSITION_WITH_GLYPH_STRING.
23981
23982 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23983
23984 * xfont.c (Qx): Delete.
23985 (syms_of_xfont): Don't initialize Qx.
23986
23987 * composite.h (enum composition_method):
23988 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23989
23990 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23991
23992 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23993 (choose_face_font): Accept new form of font-spec.
23994
23995 * frame.h (font_driver_list): Declare it unconditionally.
23996 (struct frame): Define members font_driver_list and font_data_list
23997 unconditionally.
23998
23999 * fontset.c: Include "font.h" unconditionally.
24000 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24001 (Fset_fontset_font): Accept a font-spec object.
24002
24003 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24004 PIXEL_SIZE part a wild card.
24005
24006 * dispextern.h (struct glyph_string): Define members clip and
24007 num_clips unconditionally.
24008 (struct face): Define members font_info and extra unconditionally.
24009
24010 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24011 ftfont_info only when HAVE_LIBOTF is defined.
24012
24013 2008-02-01 Andreas Schwab <schwab@suse.de>
24014
24015 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24016 and end.
24017
24018 2008-02-01 Jason Rumney <jasonr@gnu.org>
24019
24020 * w32font.c (w32font_driver): Add new fields.
24021
24022 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24023
24024 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24025 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24026 (LIBES): Add @M17N_FLT_CFLAGS@.
24027
24028 * composite.c (compose_text): Don't treat the new style
24029 composition specially.
24030
24031 * emacs.c (main): Call syms_of_font unconditionally.
24032
24033 * font.h (FONT_ENTITY_NOT_LOADABLE)
24034 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24035 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24036 (struct font_driver): New member shape.
24037 (font_registry_charsets): Extern it.
24038 (font_find_for_lface, font_prepare_composition): Adjust prototype.
24039 (font_otf_capability, font_drive_otf): Delete their externs.
24040
24041 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24042 (font_charset_alist, font_registry_charsets): Move from xfont.c
24043 and rename.
24044 (font_prop_validate_otf): New function.
24045 (font_property_table): Register it for QCotf.
24046 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24047 (font_drive_otf): Delete.
24048 (font_prepare_composition): New arg F. Adjust for the change of
24049 lispy gstring.
24050 (font_find_for_lface): New arg C.
24051 (font_load_for_face): Adjust for the change of font_find_for_lface.
24052 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24053 lispy gstring.
24054 (Ffont_shape_text): New function.
24055 (Fopen_font): If the font size is not given, use 12-pixel.
24056 (Ffont_at): New arg STRING.
24057 (syms_of_font): Initialize font_charset_alist.
24058 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24059 conditionally.
24060
24061 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24062 fonts of the same font-spec. Change the format of RFONT-DEF.
24063 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24064 Adjust for the change of RFONT-DEF.
24065 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24066
24067 * ftfont.h: New file.
24068
24069 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24070 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24071 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24072 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24073 font_otf_capability and font_drive_otf, set ftfont_shape.
24074 (ftfont_list): Adjust for the change of :otf property value.
24075 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24076 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24077 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24078 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24079 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24080 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24081
24082 * w32term.c (x_draw_composite_glyph_string_foreground):
24083 Adjust for the change of lispy gstring.
24084
24085 * xdisp.c (handle_composition_prop): Adjust for the change of
24086 lispy gstring. Call a function for auto-composition with the
24087 third arg it->window.
24088 (fill_composite_glyph_string): Adjust for the change of lispy string.
24089 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24090
24091 * xfaces.c (set_font_frame_param): Adjust for the change of
24092 font_find_for_lface.
24093
24094 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24095 (xfont_registry_charsets): Likewise. Change caller.
24096 (syms_of_xfont): Don't handle x_font_charset_alist.
24097
24098 * xftfont.c: Include "ftfont.h".
24099 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24100 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24101 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24102 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24103 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24104 Set xftfont_driver.shape to xftfont_shape.
24105
24106 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24107 the change of lispy gstring.
24108
24109 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24110
24111 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24112
24113 2008-02-01 Jason Rumney <jasonr@gnu.org>
24114
24115 * w32font.c (w32font_draw): Fill background manually.
24116
24117 2008-02-01 Jason Rumney <jasonr@gnu.org>
24118
24119 * font.c (Qfontp): Remove unused symbol.
24120 (QCantialias): New symbol.
24121 (syms_of_font): Define it.
24122 (font_property_table): Set a validator for QCantialias.
24123
24124 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24125 Define if not already.
24126 (QCfamily): Share with xfaces.c.
24127 (Qstandard, Qsubpixel, Qnatural): New symbols.
24128 (syms_of_w32font): Define them. Don't define QCfamily here.
24129 (w32_antialias_type, lispy_antialias_type): New functions.
24130 (w32_enumfont_pattern_entity): New arg requested_font.
24131 Set antialias parameter if non-default was requested.
24132 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24133
24134 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24135
24136 * lread.c (read1): Undo the previous change.
24137
24138 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24139
24140 * frame.c (Fdelete_frame): Call font_update_drivers only when
24141 USE_FONT_BACKEND is defined.
24142
24143 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24144
24145 * font.h (struct font_bitmap): New member bits_per_pixel.
24146 (struct font_driver): New members start_for_frame and end_for_frame.
24147 (struct font_data_list): New struct.
24148 (font_put_frame_data, font_get_frame_data): Extern them.
24149
24150 * frame.h (struct frame): New member font_data_list.
24151
24152 * font.c (font_update_drivers): Call driver->start_for_frame and
24153 driver->end_for_frame at proper timings.
24154 (font_put_frame_data, font_get_frame_data): New functions.
24155 (Ffont_spec): Add usage in the docstring.
24156
24157 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24158 (Fdelete_frame): Call font_update_drivers.
24159
24160 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24161 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24162 (xftfont_get_xft_draw): New function.
24163 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24164 (xftfont_end_for_frame): New function.
24165 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24166
24167 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24168 Change argument. Cache GCs in the per-frame data.
24169 (struct ftxfont_frame_data): New struct.
24170 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24171 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24172 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24173 (ftxfont_end_for_frame): New function.
24174 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24175
24176 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24177
24178 2008-02-01 Kenichi Handa <handa@m17n.org>
24179
24180 * xselect.c (Vselection_coding_system)
24181 (Vnext_selection_coding_system): Delete them.
24182 (syms_of_xselect): Don't declare selection-coding-system and
24183 next-selection-coding-system. They are declared in select.el.
24184
24185 2008-02-01 Jason Rumney <jasonr@gnu.org>
24186
24187 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24188
24189 * w32fns.c: Include imm.h.
24190 (get_composition_string_fn, get_ime_context_fn): New optional
24191 system functions.
24192 (globals_of_w32fns): Load them from imm32.dll.
24193 (ignore_ime_char): New flag.
24194 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24195 WM_IME_ENDCOMPOSITION messages.
24196
24197 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24198 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24199
24200 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24201
24202 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24203 (READCHAR_REPORT_MULTIBYTE): New macro.
24204 (readchar): New 2nd arg MULTIBYTE.
24205 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24206 Make symbol's name multibyte according to the multibyteness of the
24207 source.
24208
24209 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24210
24211 * xfaces.c (face_for_overlay_string): Call lookup_face with
24212 correct arguments (fix of synching with the trunk).
24213
24214 2008-02-01 Kenichi Handa <handa@m17n.org>
24215
24216 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24217 (font_prop_validate_non_neg, font_prop_validate_spacing):
24218 Delete argument prop_index.
24219 (font_property_table): Change arguments to validater. Change Callers.
24220 (font_lispy_object): Delete.
24221 (font_at): Use font_find_object instead fo font_lispy_object.
24222
24223 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24224
24225 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24226 and file names.
24227
24228 2008-02-01 Jason Rumney <jasonr@gnu.org>
24229
24230 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24231 (font_matches_spec): Remove debug output.
24232 (add_font_entity_to_list): Avoid using substituted fonts.
24233
24234 2008-02-01 Jason Rumney <jasonr@gnu.org>
24235
24236 * doc.c (Fsnarf_documentation):
24237 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24238
24239 2008-02-01 Miles Bader <miles@gnu.org>
24240
24241 * dispextern.h (struct glyph_row): Only define "clip" field if
24242 HAVE_WINDOW_SYSTEM is defined.
24243
24244 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24245
24246 Fix up multi-tty merge.
24247
24248 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24249 and indentation.
24250
24251 * xfaces.c (free_realized_face, clear_face_gcs):
24252 Include font_done_for_face in the input_blocked section, just in case.
24253
24254 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24255 (get_char_face_and_encoding): Undo last change and remove the *other*
24256 duplicate definition (i.e. keep the one that's better scoped and that
24257 includes code for the font-backend).
24258
24259 * terminal.c (create_terminal): Default keyboard_coding to
24260 `no-conversion' and terminal_coding to `undecided'.
24261
24262 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24263
24264 * fontset.c (free_realized_fontsets): Check that the table entry does
24265 contain a fontset before trying to compare it to `base'.
24266
24267 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24268 syms_of_charset, and syms_of_coding earlier because init_window_once
24269 now needs Vcoding_system_hash_table to be setup.
24270
24271 * coding.h (default_buffer_file_coding): Remove.
24272
24273 * coding.c (default_buffer_file_coding): Remove.
24274 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24275 than ->symbol, and use the terminal-local coding system.
24276 (syms_of_coding): Don't setup the coding-systems that are not
24277 terminal-local.
24278 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24279
24280 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24281 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24282
24283 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24284 in chartab.c and were re-added here by mistake.
24285 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24286
24287 * doc.c (Fsnarf_documentation):
24288 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24289 src to etc.
24290
24291 * ChangeLog.10: Add mistakenly removed entry.
24292
24293 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24294
24295 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24296
24297 2008-02-01 Miles Bader <miles@gnu.org>
24298
24299 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24300 Add extra args to FACE_FOR_CHAR.
24301
24302 2008-02-01 Kenichi Handa <handa@m17n.org>
24303
24304 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24305 in sequence.
24306
24307 * chartab.c (map_sub_char_table, map_char_table): If the range
24308 contains just one character, call the function with that character
24309 even if the depth is not 3.
24310
24311 2008-02-01 Jason Rumney <jasonr@gnu.org>
24312
24313 * w32font.c (w32font_text_extents): Calculate metrics for the
24314 whole string.
24315
24316 2008-02-01 Jason Rumney <jasonr@gnu.org>
24317
24318 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24319
24320 2008-02-01 Jason Rumney <jasonr@gnu.org>
24321
24322 * w32term.c (x_set_glyph_string_clipping):
24323 Use get_glyph_string_clip_rects.
24324 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24325 Adjust for the change of struct glyph_string.
24326
24327 * w32font.c (w32font_draw): Do clipping here.
24328
24329 2008-02-01 Kenichi Handa <handa@m17n.org>
24330
24331 * xftfont.c (xftfont_draw): Adjust for the change of struct
24332 glyph_string.
24333
24334 * xterm.c (x_set_glyph_string_clipping):
24335 Use get_glyph_string_clip_rects.
24336 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24337 Adjust for the change of struct glyph_string.
24338
24339 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24340 the resulting clip(s}.
24341 (expose_overlaps): Add arg r. Change callers. Set it to
24342 row->clip temporarily.
24343 (expose_window): Redraw rows overlapping the exposed area.
24344
24345 * dispextern.h (struct glyph_row): New member clip.
24346 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24347 clip_height, new member clip, and num_clips.
24348
24349 2008-02-01 Kenichi Handa <handa@m17n.org>
24350
24351 * data.c (Fchar_or_string_p): Fix docstring.
24352
24353 2008-02-01 Kenichi Handa <handa@m17n.org>
24354
24355 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24356 create a temporary XftDraw object.
24357
24358 2008-02-01 Kenichi Handa <handa@m17n.org>
24359
24360 * font.c (Ffontp): Fix docstring.
24361
24362 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24363 strong evidence of ISO-2022.
24364
24365 2008-02-01 Kenichi Handa <handa@m17n.org>
24366
24367 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24368 SYNTAX_ENTRY_FOLLOW_PARENT.
24369
24370 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24371
24372 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24373 its type.
24374 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24375 Update to the new type of weak_hash_tables and next_weak.
24376
24377 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24378 a plain C pointer to Lisp_Hash_Table.
24379
24380 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24381 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24382 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24383 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24384 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24385 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24386 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24387 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24388 (GC_EQ): Remove since they've been identical to their non-GC_
24389 alter-egos ever since the markbit was eradicated.
24390
24391 * alloc.c:
24392 * buffer.c:
24393 * buffer.h:
24394 * data.c:
24395 * fileio.c:
24396 * filelock.c:
24397 * fns.c:
24398 * frame.h:
24399 * lisp.h:
24400 * macterm.c:
24401 * print.c:
24402 * process.c:
24403 * w32fns.c:
24404 * w32menu.c:
24405 * w32term.c:
24406 * xfns.c:
24407 * xmenu.c:
24408 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24409
24410 2008-02-01 Kenichi Handa <handa@m17n.org>
24411
24412 * chartab.c (map_sub_char_table): Make it work for the top-level
24413 char-table. Fix handling of parent char-table.
24414 (map_char_table): Adjust for the above change.
24415
24416 2008-02-01 Jason Rumney <jasonr@gnu.org>
24417
24418 * w32font.c (Qgdi): Rename from Qw32.
24419
24420 2008-02-01 Jason Rumney <jasonr@gnu.org>
24421
24422 * w32bdf.c (get_quoted_string): Make function static.
24423
24424 2008-02-01 Kenichi Handa <handa@m17n.org>
24425
24426 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24427 bigger ascent and descent than those of the font, use them as
24428 font's ascent and descent.
24429
24430 2008-02-01 Kenichi Handa <handa@m17n.org>
24431
24432 * Makefile.in (${lispsource}international/charprop.el): Move this
24433 target within "#ifdef HAVE_UNIDATA" and "#endif".
24434
24435 2008-02-01 Kenichi Handa <handa@m17n.org>
24436
24437 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24438 (shortlisp): Add ../lisp/language/tai-viet.el.
24439
24440 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
24441
24442 * Makefile.in (${lispsource}international/charprop.el): Depend on
24443 temacs${EXEEXT}.
24444
24445 2008-02-01 Jason Rumney <jasonr@gnu.org>
24446
24447 * w32font.c (w32font_close): Delete the GDI font object.
24448
24449 * w32menu.c: Include character.h.
24450
24451 * w32proc.c: Likewise.
24452
24453 * w32select.c: Likewise.
24454
24455 * makefile.w32-in (w32proc.o): Depend on character.h.
24456
24457 2008-02-01 Jason Rumney <jasonr@gnu.org>
24458
24459 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24460
24461 * w32menu.c (syms_of_w32menu): Likewise.
24462
24463 * w32proc.c (syms_of_ntproc): Likewise.
24464
24465 * w32select.c (syms_of_w32select): Likewise.
24466
24467 * w32term.c (syms_of_w32term): Likewise.
24468
24469 2008-02-01 Jason Rumney <jasonr@gnu.org>
24470
24471 * w32font.c (w32font_draw): Delete brush after using it.
24472
24473 2008-02-01 Jason Rumney <jasonr@gnu.org>
24474
24475 * w32font.c (w32font_open): Don't set font_idx.
24476 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24477 to font settings.
24478 (w32font_draw): Fill background explicitly.
24479
24480 2008-02-01 Jason Rumney <jasonr@gnu.org>
24481
24482 * w32term.c (w32_initialize): Don't call w32font_initialize.
24483
24484 * w32font.c (w32font_info): Remove subranges.
24485 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24486 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24487 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24488 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24489 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24490 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24491 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24492 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24493 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24494 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24495 New symbols.
24496 (font_callback_data): New struct.
24497 (w32font_list, w32font_match): Use it.
24498 (w32font_open): Don't populate subranges.
24499 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24500 (w32font_encode_char): Always return unicode code-point as-is.
24501 (w32font_text_extents): Supply a transformation matrix to
24502 GetGlyphOutline. Never look up by glyph index. Avoid looping
24503 twice. Use unicode version of GetTexExtentPoint32 instead of
24504 glyph index version.
24505 (set_fonts_frame): Remove.
24506 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24507 set frame parameter. Use backward compatible fake foundries.
24508 Save generic family in extra slot under QCfamily. Make width slot
24509 constant. Save QCspacing value. Save list of scripts instead of
24510 binary subranges.
24511 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24512 (add_font_entity_to_list): Use font_callback_data struct.
24513 Filter unwanted fonts.
24514 (add_one_font_entity_to_list): Use font_callback_data struct.
24515 (w32_registry): Default to iso10646_1.
24516 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24517 string font registries. Don't fill in font name if it is a generic
24518 family name, fill family instead. Use spacing, family and script
24519 extra info to fill pitch, family and charset fields.
24520 (list_all_matching_fonts): Use font_callback_data struct.
24521 (unicode_range_for_char): Remove.
24522 (font_supported_scripts): New function.
24523 (w32font_initialize): Remove.
24524 (syms_of_w32font): Update which symbols are defined.
24525
24526 2008-02-01 Jason Rumney <jasonr@gnu.org>
24527
24528 * font.c (font_pixel_size): Reverse assq_no_quit args.
24529
24530 * w32term.h (FONT_WIDTH): Report max width, not average.
24531 (FONT_MAX_WIDTH): Remove.
24532 (FONT_AVG_WIDTH): New macro.
24533
24534 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24535 redefinition of FONT_WIDTH.
24536
24537 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24538 (w32_cache_char_metrics): Use FONT_WIDTH.
24539
24540 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24541
24542 2008-02-01 Jason Rumney <jasonr@gnu.org>
24543
24544 * w32font.c (w32font_open): Make lfHeight negative.
24545
24546 * w32fns.c (x_default_font_parameter): Use new style font name.
24547 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24548
24549 2008-02-01 Jason Rumney <jasonr@gnu.org>
24550
24551 * w32font.c (QCsubranges): New symbol.
24552 (w32font_open, w32font_has_char): Get subranges from subproperty
24553 of extra.
24554 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24555 (syms_of_w32font): Define :subranges symbol.
24556
24557 * font.c (font_put_extra): Expose externally.
24558
24559 * font.h (font_put_extra): Move declaration from font.c.
24560
24561 * font.c (Ffont_get): Use font driver to determine otf capability.
24562 (adjust_anchor): Check if driver defines anchor_point before using.
24563
24564 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24565 (w32font_draw): Use options.
24566 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24567 Fix detection of truetype fonts.
24568 (registry_to_w32_charset): Handle charsets other than iso8859-1
24569 expressed as lisp symbols.
24570 (w32_registry): Express charset as lisp symbol.
24571 (fill_in_logfont): Reverse pixel and point height logic.
24572 Don't set width here. Set quality to default.
24573
24574 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24575 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24576
24577 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24578 Remove redundant loop and allocation.
24579
24580 * makefile.w32-in (font.o, w32font.o): New objects.
24581 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24582 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24583
24584 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24585 STORE_XCHARB a valid l-value.
24586
24587 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24588 calculations for non-Truetype fonts.
24589 (x_draw_glyph_string): Sync with xterm.c.
24590 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24591 Remove redundant code.
24592 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24593
24594 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24595 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24596
24597 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24598 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24599
24600 * w32font.c: New file for w32 font backend.
24601
24602 2008-02-01 Kenichi Handa <handa@m17n.org>
24603
24604 * term.c: Don't include "buffer.h" twice.
24605
24606 2008-02-01 Kenichi Handa <handa@m17n.org>
24607
24608 * character.c (Funibyte_string): New function.
24609 (syms_of_character): Defsubr it.
24610
24611 2008-02-01 Jason Rumney <jasonr@gnu.org>
24612
24613 * w32term.c [USE_FONT_BACKEND]:
24614 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24615 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24616 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24617 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24618 (x_free_frame_resources): Sync with xterm.c.
24619
24620 2008-02-01 Andreas Schwab <schwab@suse.de>
24621
24622 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24623 char-table size.
24624
24625 2008-02-01 Kenichi Handa <handa@m17n.org>
24626
24627 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24628
24629 2008-02-01 Kenichi Handa <handa@m17n.org>
24630
24631 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24632 font_otf_gpos, add font_drive_otf.
24633
24634 * fontset.c (fontset_find_font): Pay attention to font size
24635 specified for a font.
24636 (reorder_font_vector): Check contents of font_def.
24637
24638 * font.c (struct otf_list): Delete it.
24639 (otf_list): Make it a lisp variable.
24640 (otf_open): Use lispy otf_list.
24641 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24642 (check_otf_features): New function.
24643 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24644 New functions.
24645 (font_drive_otf): New function merging font_otf_gsub and
24646 font_otf_gpos.
24647 (font_open_for_lface): New arg spec. Change argument order.
24648 (font_load_for_face): Adjust for the change of font_open_for_lface.
24649 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24650 Ffont_otf_gpos.
24651 (syms_of_font): Staticpro otf_list. Delete defsubr of
24652 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24653
24654 * xfaces.c (set_font_frame_param): Adjust for the change of
24655 font_open_for_lface.
24656
24657 * font.h (font_open_for_lface): Adjust prototype.
24658 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24659 member otf_drive.
24660 (font_otf_gsub, font_otf_gpos): Delete externs.
24661 (font_drive_otf): Extern it.
24662
24663 2008-02-01 Kenichi Handa <handa@m17n.org>
24664
24665 * font.c (font_at): If the window W is not on a window system,
24666 return Qnil.
24667
24668 * coding.c (produce_chars, encode_coding): Don't call
24669 insert_from_gap if no characters to produce.
24670
24671 2008-02-01 Kenichi Handa <handa@m17n.org>
24672
24673 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24674 Fclear_face_cache.
24675
24676 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24677
24678 2008-02-01 Miles Bader <miles@gnu.org>
24679
24680 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24681 Parse "--disable-font-backend" option.
24682 (standard_args): Add "--disable-font-backend" option.
24683
24684 2008-02-01 Kenichi Handa <handa@m17n.org>
24685
24686 * fontset.c (fontset_find_font): New function.
24687 (fontset_font): Use fontset_find_font.
24688 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24689 Register the specified font for all Latin characters.
24690 (new_fontset_from_font): Register the specified font for all Latin
24691 characters.
24692 (dump_fontset): For a realized fontset, include the base fontset
24693 name in the returned vector.
24694
24695 2008-02-01 Kenichi Handa <handa@m17n.org>
24696
24697 * character.h (CHAR_STRING): Cast C to unsigned on calling
24698 char_string.
24699
24700 * character.c (char_string): Type of arg C changed to unsigned.
24701 Signal an error if C is an invalid character code.
24702
24703 * editfns.c (general_insert_function, Fchar_to_string):
24704 Use CHARACTERP, not INTEGERP.
24705
24706 2008-02-01 Kenichi Handa <handa@m17n.org>
24707
24708 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24709 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24710
24711 * regex.c (analyse_first): Fix for multibyte characters in "case
24712 charset:" and "case categoryspec:".
24713
24714 2008-02-01 Andreas Schwab <schwab@suse.de>
24715
24716 * Makefile.in (LIBES): Move standard libraries to the end.
24717
24718 2008-02-01 Kenichi Handa <handa@m17n.org>
24719
24720 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24721 nonzero, don't shrink the buffer nextb.
24722
24723 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24724
24725 * coding.c (coding_alloc_by_making_gap): New arg offset.
24726 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24727 offset.
24728 (decode_coding_iso_2022): Update coding->safe_charsets.
24729 (decode_coding_gap): Temporarily set
24730 current_buffer->text->inhibit_shrinking to 1.
24731
24732 2008-02-01 Kenichi Handa <handa@m17n.org>
24733
24734 * xterm.c (x_draw_composite_glyph_string_foreground):
24735 Fix indexing into elements of s->cmp and s->char2b.
24736
24737 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
24738
24739 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24740
24741 2008-02-01 Kenichi Handa <handa@m17n.org>
24742
24743 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24744 target_multibyte instead of multibyte.
24745 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24746 (bcmp_translate): Change the argument name from multibyte to
24747 target_multibyte.
24748
24749 2008-02-01 Kenichi Handa <handa@m17n.org>
24750
24751 These changes are to compile a regexp into a pattern that can be
24752 used both for multibyte and unibyte targets.
24753
24754 * Makefile.in (search.o): Depend on charset.h.
24755
24756 * character.c (multibyte_char_to_unibyte_safe): New function.
24757
24758 * search.c: Include "charset.h".
24759 (compile_pattern_1): Delete argument multibyte. Don't set
24760 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24761 (compile_pattern): Don't compare cp->buf.target_multibyte.
24762 Compare cp->buf.charset_unibyte.
24763 (compile_pattern): Set cp->buf.target_multibyte.
24764
24765 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24766
24767 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24768
24769 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24770 multibyte. Change callers.
24771 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24772 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24773 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24774 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24775 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24776 (regex_compile): Make the compiled pattern usable both for
24777 multibyte and unibyte targets.
24778 (analyse_first): Make the fastmap usable both for multibyte and
24779 unibyte targets.
24780 (TRANSLATE_VIA_MULTIBYTE): Delete.
24781 (re_match_2_internal): Pay attention to the case that the
24782 multibyteness of bufp and target may be different.
24783
24784 2008-02-01 Kenichi Handa <handa@m17n.org>
24785
24786 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24787 empty box occupy at least one column width.
24788
24789 2008-02-01 Miles Bader <miles@gnu.org>
24790
24791 * Makefile.in: Remove redundant HAVE_XFT clause.
24792
24793 2008-02-01 Kenichi Handa <handa@m17n.org>
24794
24795 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24796
24797 2008-02-01 Kenichi Handa <handa@m17n.org>
24798
24799 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24800 being nil.
24801
24802 2008-02-01 Kenichi Handa <handa@m17n.org>
24803
24804 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24805
24806 2008-02-01 Kenichi Handa <handa@m17n.org>
24807
24808 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24809
24810 2008-02-01 Kenichi Handa <handa@m17n.org>
24811
24812 * search.c (simple_search): Fix previous change.
24813
24814 2008-02-01 Kenichi Handa <handa@m17n.org>
24815
24816 * xftfont.c (ftfont_font_format): Extern declaration.
24817
24818 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24819
24820 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24821 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24822
24823 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24824 (ftfont_font_format): Fix previous change.
24825
24826 * font.h (Ffont_xlfd_name): EXFUN it.
24827
24828 * font.c (font_parse_xlfd): Fix the array size of `f'.
24829 (register_font_driver): Use EQ to compare driver->type.
24830
24831 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24832 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24833 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24834
24835 2008-02-01 Kenichi Handa <handa@m17n.org>
24836
24837 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24838 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24839
24840 2008-02-01 Kenichi Handa <handa@m17n.org>
24841
24842 * xfont.c (xfont_open): Set font->format.
24843
24844 * xftfont.c (xftfont_open): Set font->format.
24845
24846 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24847 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24848 (ftfont_open): Set font->format.
24849 (ftfont_font_format): New function.
24850
24851 * font.h (struct font): New member format.
24852
24853 * font.c (Qopentype): New variable.
24854 (syms_of_font): Defsym it.
24855 (Fquery_font): Change the format of the last element of the return
24856 value.
24857
24858 2008-02-01 Kenichi Handa <handa@m17n.org>
24859
24860 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24861 last resort.
24862
24863 2008-02-01 Kenichi Handa <handa@m17n.org>
24864
24865 * coding.c (detect_coding_charset): Fix detection of multi-byte
24866 charset.
24867
24868 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24869
24870 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24871
24872 2008-02-01 Kenichi Handa <handa@m17n.org>
24873
24874 * xdisp.c (get_next_display_element): Set it->face_id for the
24875 first component of a composition.
24876 (x_produce_glyphs): Check if the font is changed or not for composition.
24877
24878 2008-02-01 Kenichi Handa <handa@m17n.org>
24879
24880 * fontset.c (Qlatin): New variable.
24881 (syms_of_fontset): Define it as a lisp symbol.
24882 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24883
24884 2008-02-01 Kenichi Handa <handa@m17n.org>
24885
24886 * font.c (font_unparse_fcname): Pay attention to the case that
24887 some of font property is a null string.
24888
24889 2008-02-01 Kenichi Handa <handa@m17n.org>
24890
24891 * term.c: Include "composite.h".
24892 (encode_terminal_code): Output all components of composition.
24893 Check the size of encode_terminal_src.
24894 (produce_glyphs): For composition, call produce_composite_glyph.
24895 (append_composite_glyph, produce_composite_glyph): New functions.
24896
24897 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24898 is not found, get font_info from the current ascii face.
24899
24900 2008-02-01 Kenichi Handa <handa@m17n.org>
24901
24902 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24903 buffer-file-name to Qnil before calling insert_from_buffer.
24904
24905 * font.c (font_unparse_fcname): Pay attention to the case that
24906 foundry is a null string.
24907
24908 2008-02-01 Kenichi Handa <handa@m17n.org>
24909
24910 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24911
24912 * font.c (Qunicode_sip): New variable.
24913 (syms_of_font): Declare it as a Lisp symbol.
24914
24915 * font.h (Qunicode_sip): Extern it.
24916
24917 2008-02-01 Kenichi Handa <handa@m17n.org>
24918
24919 * composite.c (get_composition_id): Pay attention to TAB component.
24920
24921 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24922 TAB. Adjust for the change of s->char2b which always points to
24923 the first element of allocated memory.
24924
24925 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24926
24927 * xdisp.c (handle_composition_prop): Set it->c to the first
24928 non-TAB component.
24929 (fill_composite_glyph_string): Change argument.
24930 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24931 (x_produce_glyphs): Fix handling of left/right padding.
24932
24933 2008-02-01 Kenichi Handa <handa@m17n.org>
24934
24935 * coding.c (detect_coding_system): Fix for handling off
24936 inhibit_iso_escape_detection. Fix for the case that no coding
24937 system is defined for a specific coding category.
24938
24939 2008-02-01 Kenichi Handa <handa@m17n.org>
24940
24941 * font.c (font_matching_entity): Delete unused local var.
24942
24943 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24944 opening a font.
24945
24946 * fileio.c (Finsert_file_contents): On recovering a file, assume
24947 Unix-like eol.
24948 (choose_write_coding_system): On auto-saving a file, force
24949 Unix-like eol.
24950
24951 * coding.c (setup_coding_system): Fix setting of
24952 coding->common_flags based on eol_type.
24953 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24954 inherit from it.
24955
24956 2008-02-01 Kenichi Handa <handa@m17n.org>
24957
24958 * alloc.c (NSTATICS): Increas to 0x600.
24959
24960 2008-02-01 Kenichi Handa <handa@m17n.org>
24961
24962 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24963 (ftfont_list): Don't check :name property.
24964 (ftfont_match): New function.
24965 (ftfont_pattern_entity): If the pattern doesn't contain
24966 FC_SPACING, don't assume FC_MONO.
24967
24968 * font.h (struct font_driver): New member `match'.
24969 (font_update_drivers): Adjust prototype.
24970
24971 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24972 property of FONT.
24973 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24974 Define them unconditionally.
24975 (font_matching_entity): New function.
24976 (font_open_by_name): Try font_matching_entity if exact match is
24977 not found.
24978 (font_update_drivers): Delete the arg FONT. Return a list of
24979 actually used backends. Don't free faces, font caches here.
24980 Don't store data in frame parameters. Don't call x_set_font.
24981 (Ffont_spec): Store :name property as is.
24982 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24983 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24984 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24985 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24986 Call font->driver->otf_gsub instead of font_otf_gsub.
24987
24988 * frame.c (x_set_font_backend): Do more works that were done in
24989 font_update_drivers before.
24990
24991 * xfont.c (xfont_match): New function.
24992 (xfont_driver): Set xfont_driver.match to xfont_match.
24993 (xfont_draw): Set font in GC if necessary.
24994
24995 * ftxfont.c (ftxfont_match): New function.
24996 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24997
24998 * xftfont.c (xftfont_match): New function.
24999 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25000
25001 2008-02-01 Kenichi Handa <handa@m17n.org>
25002
25003 * font.h (struct font): New member scalable.
25004 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25005 (font_otf_gsub): Adjust prototype.
25006
25007 * font.c (font_otf_capability): Fix handling of the default langsys.
25008 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
25009 Check the contents of SPEC.
25010 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25011 (check_gstring): New function.
25012 (REPLACEMENT_CHARACTER): New macro.
25013 (font_otf_gsub): New arg alternate_subst. Be sure to set all
25014 glyph codes of GSTRING.
25015 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25016 (font_prepare_composition): Set cmp->glyph_len.
25017 (font_open_entity): Set font->scalable.
25018 (Ffont_get): Handle :otf property.
25019 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25020 New functions.
25021 (Fquery_font): Use font->font.full_name.
25022 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25023 Sfont_otf_alternates.
25024
25025 * ftfont.c (ftfont_open): Set font->font.full_name and
25026 font->font.name properly. Fix calculation of font->font.height
25027 and font->min_width.
25028
25029 * ftxfont.c (ftxfont_create_gcs): New function.
25030 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25031 (ftxfont_draw_backgrond): Fix filling region.
25032 (ftxfont_default_fid): New function.
25033 (ftxfont_open): Set xfont->fid to the return value of
25034 ftxfont_default_fid.
25035 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25036 (ftxfont_done_face): Free only GCs that are created by
25037 ftxfont_create_gcs.
25038 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25039
25040 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25041 Clip to src->width, etc (not src->clip_XXX).
25042
25043 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25044 FontBackend frame parameter.
25045
25046 2008-02-01 Kenichi Handa <handa@m17n.org>
25047
25048 * font.h (struct font_driver_list): New member `on'.
25049 (Fclear_font_cache): EXFUN it.
25050 (font_update_drivers): Extern it.
25051
25052 * font.c (font_unparse_fcname): Fix typo (swidth->width).
25053 (font_list_entities): Check driver_list->on.
25054 (register_font_driver): Initialize `on' member to 0.
25055 (font_update_drivers): New function.
25056 (Fclear_font_cache): Check driver_list->on.
25057
25058 * frame.h (Qfont_backend): Extern it.
25059 (x_set_font_backend): Extern it.
25060
25061 * frame.c (Qfont_backend): New variable.
25062 (frame_parms): New element for font-backend.
25063 (x_set_font_backend): New function.
25064
25065 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25066 FontBackend frame parameter.
25067 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25068 x_set_font_backend.
25069
25070 * xfont.c (xfont_list): Don't try listing by :name property if the
25071 name is not for XLFD.
25072
25073 2008-02-01 Kenichi Handa <handa@m17n.org>
25074
25075 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25076 (LGLYPH_SET_TO): New macros.
25077 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25078 element of G is vector or not.
25079 (font_at): Extern it.
25080
25081 * font.c: Include window.h.
25082 (font_lispy_object): New function.
25083 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25084 end of valid glyph.
25085 (font_close_object): Fix getting (struct font *).
25086 (font_at): New function.
25087 (Ffont_get): If FONT is a font-object, get entity from it.
25088 (Ffont_make_gstring): Initialize elements of glyphs with nil.
25089 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25090 Fix range check.
25091 (Ffont_at): New function.
25092 (syms_of_font): Defsubr Sfont_at.
25093
25094 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25095 before the entry for Qcomposition.
25096 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25097 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25098 the font in gstring.
25099 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25100 LGLYPH_FORM (g) to detect the end of valid glyph.
25101 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25102 we are composing with gstring.
25103
25104 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25105 Check if adjustment is vector or not.
25106
25107 * Makefile.in (font.o): Make it depends on window.h.
25108
25109 2008-02-01 Kenichi Handa <handa@m17n.org>
25110
25111 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25112 adjustment is vector or not.
25113
25114 2008-02-01 Miles Bader <miles@gnu.org>
25115
25116 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25117
25118 2008-02-01 Kenichi Handa <handa@m17n.org>
25119
25120 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
25121 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
25122 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25123
25124 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25125 (DEVICE_DELTA): Fix typo.
25126 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25127 LGLYPH format.
25128
25129 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25130 the change of LGLYPH format.
25131
25132 2008-02-01 Kenichi Handa <handa@m17n.org>
25133
25134 * ftfont.c (ftfont_list): Fix typo.
25135 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25136
25137 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25138
25139 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25140
25141 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25142 xftface_info is non-NULL.
25143
25144 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25145
25146 * ftfont.c (ftfont_list): Move misplaced #endif.
25147
25148 2008-02-01 Kenichi Handa <handa@m17n.org>
25149
25150 * ftfont.c (ftfont_list): Pay attention to the case that
25151 FC_CAPABILITY is not defined.
25152
25153 2008-02-01 Kenichi Handa <handa@m17n.org>
25154
25155 * xftfont.c (xftfont_open): Set charset related members to -1.
25156
25157 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25158 QCname.
25159 (ftfont_open): Set charset related members to -1.
25160
25161 * fontset.c (Votf_script_alist): New variable.
25162 (syms_of_fontset): Initialize it.
25163 (fontset_font): Delete unused variable.
25164
25165 * fontset.h (Votf_script_alist): Extern it.
25166
25167 * font.c (font_find_for_lface): Optimize code.
25168
25169 * font.h (font_close_object, font_merge_old_spec): Extern them.
25170
25171 2008-02-01 Kenichi Handa <handa@m17n.org>
25172
25173 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25174 (syms_of_font): Initialize them.
25175 (font_pixel_size): Allow float value in dpi.
25176 (font_prop_validate_type): Delete.
25177 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25178 Change caller.
25179 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25180 (font_prop_validate_extra): Delete.
25181 (font_prop_validate_spacing): New function.
25182 (font_property_table): Add elements for all known properties.
25183 (get_font_prop_index): Rename from check_font_prop_name.
25184 New argument FROM. Change caller.
25185 (font_prop_validate): Validate all known properties.
25186 (font_put_extra): Delete argument force. Change caller.
25187 (font_expand_wildcards): Make it static. Fix the way of shrinking
25188 the possible range.
25189 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25190 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25191 Change caller.
25192 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25193 (font_parse_fcname): Delete argument merge. Fix parsing of point
25194 size. Don't validate properties values here. Change caller.
25195 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25196 (font_open_by_name): Delete unused variable.
25197 (Ffont_spec): Likewise. Validate property values.
25198 (Ffont_match_p): New function.
25199
25200 * font.h (QCscalable): Extern it.
25201 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25202
25203 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25204
25205 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25206 (xfont_list_pattern): New function.
25207 (xfont_list): Use xfont_list_pattern.
25208
25209 2008-02-01 Kenichi Handa <handa@m17n.org>
25210
25211 * font.h (Flist_fonts): EXFUN it.
25212
25213 2008-02-01 Jason Rumney <jasonr@gnu.org>
25214
25215 * w32term.c (w32_initialize): Add back smoothing_type and
25216 smoothing_enabled definitions.
25217
25218 2008-02-01 Kenichi Handa <handa@m17n.org>
25219
25220 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25221 s->face->font on determining underline position.
25222
25223 2008-02-01 Kenichi Handa <handa@m17n.org>
25224
25225 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25226 (font_has_char): Accept font-object too.
25227 (font_find_for_lface): Try at first with a size specified in face.
25228
25229 2008-02-01 Kenichi Handa <handa@m17n.org>
25230
25231 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25232 font_open_by_name.
25233
25234 2008-02-01 Kenichi Handa <handa@m17n.org>
25235
25236 * font.h (QCspacing, QCdpi): Extern them.
25237 (enum font_spacing): New enum.
25238 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25239
25240 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25241 (QCspacing, QCdpi): New variables.
25242 (syms_of_font): Initialize them.
25243 (font_pixel_size): New function.
25244 (font_put_extra): New function.
25245 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25246 in FONT_EXTRA.
25247 (font_parse_fcname): Handle enumerated values (e.g. bold).
25248 Fix handling font size. Add QCname property that contains only
25249 unknown properties.
25250 (font_score): Change argument. Change caller. Pay attention to
25251 FONT_PIXEL_SIZE_QUANTUM.
25252 (font_sort_entites, font_list_entities, font_find_for_lface)
25253 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25254 (Ffont_spec): Add QCname property that contains only unknown properties.
25255
25256 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25257 Don't include weight in listing pattern, instead check weight of each
25258 listed font. Don't include scalable in pattern. Pay attention to
25259 FONT_PIXEL_SIZE_QUANTUM.
25260
25261 2008-02-01 Kenichi Handa <handa@m17n.org>
25262
25263 * font.c (font_parse_fcname): Fix parsing of point-size.
25264 (font_unparse_fcname): Produce symbolic names for style properties.
25265 (font_list_entities): Handle float size correctly.
25266 (font_open_by_name): Prefer `normal' property values if the name
25267 doesn't specify them.
25268
25269 * fontset.c (Finternal_char_font): Use font_get_name, not
25270 Ffont_xlfd_name.
25271
25272 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25273 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25274 pattern. Don't force scalable.
25275
25276 * xftfont.c (xftfont_open): For generating a name, start from
25277 96-byte buffer.
25278
25279 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25280
25281 * frame.h (x_new_fontset2): Fix prototype.
25282
25283 2008-02-01 Kenichi Handa <handa@m17n.org>
25284
25285 * font.h (struct font_driver): Delete member parse_name.
25286 (font_match_p, font_get_spec, font_parse_fcname)
25287 (font_unparse_fcname): Extern them.
25288 (font_get_name): Adjust prototype.
25289
25290 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25291 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
25292 (font_expand_wildcards): Fix handling ENCODING field.
25293 Avoid unnecessary checks for weight, slant, and swidth.
25294 (font_parse_fcname): New function.
25295 (font_unparse_fcname): New function.
25296 (font_parse_name): New function.
25297 (font_match_p): New function.
25298 (font_get_name): Change return value to Lisp string.
25299 (font_get_spec): New function.
25300 (Qunspecified, Qignore_defface): Don't extern them.
25301 (font_find_for_lface): Assume that LFACE is fully specified.
25302 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25303 object, use it for FACE.
25304 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25305 driver->parse_name.
25306 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25307
25308 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25309 prototype.
25310
25311 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25312 argument F. Don't call Fnew_fontset. Instead, directly call
25313 make_fontset.
25314
25315 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25316
25317 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25318 of x_new_fontset2.
25319
25320 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25321 (Qsans__serif): New variables.
25322 (ftfont_generic_family_list): New variable.
25323 (syms_of_ftfont): Initialize the above variables.
25324 (ftfont_pattern_entity): Delete argument NAME.
25325 (ftfont_list_generic_family): New function.
25326 (ftfont_parse_name): Delete this function.
25327 (ftfont_list): Try generic family only when FcFontList found no font.
25328 (ftfont_list_family): Fix args to FcObjectSetBuild.
25329
25330 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25331 object in attrs[LFACE_FONT_INDEX].
25332 (set_lface_from_font_name): Cancel all changes for font-backend.
25333 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25334 function.
25335 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25336 font object in QCfont attribute.
25337 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25338 (realize_default_face) [USE_FONT_BACKEND]: Call
25339 set_lface_from_font_and_fontset.
25340
25341 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25342 "fixed", and signal error here if no suitable font was found.
25343
25344 * xfont.c (xfont_parse_name): Delete this function.
25345
25346 * xftfont.c (xftfont_open): Change coding style of error
25347 handling. Generate fontconfig's fontname pattern.
25348
25349 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25350 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25351
25352 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25353 Both args FONTSET and FONT_OBJECT must be existing ones.
25354
25355 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25356
25357 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25358
25359 2008-02-01 Kenichi Handa <handa@m17n.org>
25360
25361 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25362
25363 * font.h (struct font): Fix typo.
25364
25365 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25366 XLFD_XXX_INDEX.
25367 (enum xlfd_field_mask): New enum.
25368 (intern_font_field): Change argument. Change caller. If digits
25369 are followed by non-digits, return a symbol.
25370 (font_expand_wildcards): New function.
25371 (font_parse_xlfd): Fix wildcard handling.
25372 (Ffont_spec): If :name is specified, reflect the info in the other
25373 properties.
25374
25375 * ftfont.c (ftfont_pattern_entity): Fix typo.
25376 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25377 locale.
25378
25379 2008-02-01 Kenichi Handa <handa@m17n.org>
25380
25381 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25382
25383 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25384 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25385 registry doesn't specify encoding part.
25386 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25387 (font_open_by_name): At first try parsing the name.
25388 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25389 as Lisp symbols.
25390
25391 * fontset.c (reorder_font_vector): Pay attention to the case that
25392 the 3rd element of font_def is nil.
25393 (fontset_font): For the default fontset, append one more fontset
25394 elements for a script-based font specification. Don't add script
25395 attribute on finding a font.
25396 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25397 font name.
25398 (fontset_ascii_font): If a font can't be opened, return nil.
25399
25400 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25401 (ftfont_pattern_entity): New function.
25402 (ftfont_get_cache): Assume that freetype_font_cache is already
25403 initialized.
25404 (ftfont_list): Handle the case that a file is specified in font
25405 name. Use ftfont_pattern_entity to generate entities.
25406 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25407 (syms_of_ftfont): Initialize freetype_font_cache.
25408
25409 * xftfont.c (xftfont_open): Make the font name fontconfig's
25410 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25411 (xftfont_close): Free font->font.name if not NULL.
25412
25413 * xfont.c (xfont_list): If script is specified for a font, return
25414 null_vector.
25415 (xfont_list_family): Declare argument type.
25416
25417 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25418 name, set LFACE_FONT (lface) to nil.
25419
25420 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25421 return Qnil.
25422
25423 2008-02-01 Kenichi Handa <handa@m17n.org>
25424
25425 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25426 (standard_args): Add "-enable-font-backend".
25427
25428 2008-02-01 Kenichi Handa <handa@m17n.org>
25429
25430 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25431 (struct xftdraw_list, xftdraw_list): Delete them.
25432 (register_xftdraw, check_xftdraw): Delete them.
25433 (xftfont_prepare_face): Don't call register_xftdraw.
25434 (xftfont_done_face): Don't call check_xftdraw.
25435 (xftfont_draw): Get background color only when with_background is
25436 nonzero.
25437
25438 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25439
25440 2008-02-01 Kenichi Handa <handa@m17n.org>
25441
25442 These changes are for the new font handling codes.
25443
25444 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25445 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25446 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25447 (FONTSRC, FONTOBJ): New variables.
25448 (obj): Add $(FONTOBJ).
25449 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25450 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25451 @LIBOTF_LIBS@.
25452 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25453 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25454
25455 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25456
25457 * character.h (Vscript_representative_chars): Extern it.
25458
25459 * character.c (Vscript_representative_chars): New variable.
25460 (syms_of_character): Declare it as a Lisp variable.
25461
25462 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25463 enable_font_backend is nonzero, accept the composition method
25464 COMPOSITION_WITH_GLYPH_STRING.
25465
25466 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25467 enumeration COMPOSITION_WITH_GLYPH_STRING.
25468
25469 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25470 members clip_x, clip_y, clip_width, and clip_height.
25471 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25472
25473 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25474 --enable-font-backend. Call syms_of_font.
25475
25476 * fns.c (assoc_no_quit): New function.
25477
25478 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25479 (face_for_font, new_fontset_from_font)
25480 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25481
25482 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25483 (fontset_font, fontset_ascii, face_for_char)
25484 (make_fontset_for_ascii_face, Ffont_info)
25485 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25486 is nonzero, use font-backend mechanism.
25487 (find_font_encoding): Make it non-static.
25488 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25489 New functions.
25490
25491 * frame.h (struct frame): New members resx and resy.
25492 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25493 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25494
25495 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25496 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25497
25498 * lisp.h (assoc_no_quit): Extern it.
25499
25500 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25501 Through out the file, use FONT_INFO_FROM_FACE instead of
25502 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25503 rif->per_char_metric.
25504 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25505 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25506 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25507 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25508 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25509 nonzero, use font-backend mechanism.
25510 (get_per_char_metric): New function.
25511
25512 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25513 (set_lface_from_font_name)
25514 (set_font_frame_param, free_realized_face)
25515 (prepare_face_for_display, clear_face_gcs)
25516 (Finternal_set_font_selection_order, realize_x_face)
25517 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25518 font-backend mechanism.
25519 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25520 (load_face_font) [USE_FONT_BACKEND]: Abort.
25521 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25522 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25523
25524 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25525 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25526 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25527 nonzero, register all available font drivers.
25528 Call x_default_font_parameter for deciding a font.
25529 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25530
25531 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25532 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25533 (x_set_glyph_string_clipping_exactly)
25534 (x_compute_glyph_string_overhangs)
25535 (x_draw_glyph_string_foreground)
25536 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25537 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25538 enable_font_backend is nonzero, use font-backend mechanism.
25539 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25540
25541 2008-02-01 Kenichi Handa <handa@m17n.org>
25542
25543 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25544 system_eol_type.
25545 (syms_of_coding): Initialize system_eol_type.
25546
25547 * process.c (Fset_process_coding_system): Inherit system's eol
25548 format if necessary.
25549
25550 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25551
25552 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25553
25554 2008-02-01 Kenichi Handa <handa@m17n.org>
25555
25556 * coding.c (decode_eol): Pay attention to buffer relocation in
25557 del_range_2.
25558 (decode_coding): Call decode_eol before restoring undo_list.
25559
25560 2008-02-01 Kenichi Handa <handa@m17n.org>
25561
25562 * charset.c (Fdefine_charset_internal): Fix setting of
25563 emacs_mule_bytes.
25564
25565 2008-02-01 Kenichi Handa <handa@m17n.org>
25566
25567 * keyboard.c (read_char): Check if C is a character or not before
25568 looking up Vkeyboard_translate_table.
25569
25570 2008-02-01 Kenichi Handa <handa@m17n.org>
25571
25572 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25573 Fix condition to terminate the loop.
25574
25575 2008-02-01 Kenichi Handa <handa@m17n.org>
25576
25577 * coding.c (produce_composition): Compare charbuf[i] instead of
25578 args[i] against 0.
25579 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25580
25581 2008-02-01 Kenichi Handa <handa@m17n.org>
25582
25583 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25584 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25585 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25586 detect_coding.
25587 (emacs_mule_char): Handle old style (Emacs 20) component character
25588 of a composition.
25589 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25590 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25591 composition rule.
25592 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25593
25594 2008-02-01 Kenichi Handa <handa@m17n.org>
25595
25596 * coding.c (encode_coding_ccl): Allocate destination dynamically
25597 when necessary.
25598
25599 2008-02-01 Kenichi Handa <handa@m17n.org>
25600
25601 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25602 the loop. When quitted, show a proper error message.
25603
25604 2008-02-01 Kenichi Handa <handa@m17n.org>
25605
25606 * xterm.c (x_set_glyph_string_clipping_exactly):
25607 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
25608
25609 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25610 character sequence.
25611 (Fccl_execute_on_string): Use ASET, not XSET.
25612
25613 2008-02-01 Kenichi Handa <handa@m17n.org>
25614
25615 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25616
25617 2008-02-01 Kenichi Handa <handa@m17n.org>
25618
25619 * coding.c (decode_coding): Fix the condition of terminating the
25620 decoding loop.
25621
25622 2008-02-01 Kenichi Handa <handa@m17n.org>
25623
25624 * data.c (Faset): On setting a character bigger than 255 in a
25625 unibyte string, signal an error instead of make the string multibyte.
25626
25627 2008-02-01 Kenichi Handa <handa@m17n.org>
25628
25629 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25630 made by a mapping table.
25631
25632 2008-02-01 Kenichi Handa <handa@m17n.org>
25633
25634 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25635 not.
25636 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25637 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25638
25639 * xterm.c (x_draw_composite_glyph_string_foreground):
25640 Check s->face is NULL or not.
25641
25642 2008-02-01 Kenichi Handa <handa@m17n.org>
25643
25644 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25645 (x_draw_glyph_string): Fix drawing of right_overhang and
25646 left_overhang around/on cursor.
25647
25648 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25649
25650 2008-02-01 Kenichi Handa <handa@m17n.org>
25651
25652 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25653
25654 2008-02-01 Kenichi Handa <handa@m17n.org>
25655
25656 * coding.c (Fdefine_coding_system_internal)
25657 (Fdefine_coding_system_alias): Avoid a duplicated element in
25658 Vcoding_system_alist.
25659
25660 2008-02-01 Kenichi Handa <handa@m17n.org>
25661
25662 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25663
25664 * coding.c (Qcoding_system_define_form): New variable.
25665 (syms_of_coding): Intern and staticpro it.
25666 (Fcoding_system_p): Check Qcoding_system_define_form.
25667 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25668
25669 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25670 Fcoding_system_p.
25671 (CHECK_CODING_SYSTEM): If ID is not available, call
25672 Fcheck_coding_system.
25673 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25674 Try also Fcheck_coding_system.
25675
25676 2008-02-01 Kenichi Handa <handa@m17n.org>
25677
25678 * coding.c (code_conversion_restore): GCPRO arg.
25679
25680 2008-02-01 Kenichi Handa <handa@m17n.org>
25681
25682 * character.c (lisp_string_width): Check multibyteness of STRING.
25683
25684 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25685
25686 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25687 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25688 (decode_mac_font_name): Use decode_coding_c_string instead of
25689 decode_coding.
25690 (x_load_font): Initialize fontp->fontset to -1.
25691 Set fontp->encoding_type.
25692
25693 2008-02-01 Kenichi Handa <handa@m17n.org>
25694
25695 * search.c (search_buffer): Give up BM search on case-fold-search
25696 if one of a target character has a case-equivalence of different
25697 byte length even if that target character is an ASCII.
25698 (simple_search): Fix calculation of byte length of matched text.
25699 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25700
25701 2008-02-01 Kenichi Handa <handa@m17n.org>
25702
25703 * coding.c (decode_coding): Fix handling of invalid bytes.
25704
25705 2008-02-01 Kenichi Handa <handa@m17n.org>
25706
25707 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25708 Unicode characters.
25709
25710 2008-02-01 Kenichi Handa <handa@m17n.org>
25711
25712 * coding.c (encode_coding_object): If a pre-write-conversion
25713 function makes a new buffer, kill it.
25714
25715 2008-02-01 Kenichi Handa <handa@m17n.org>
25716
25717 * coding.c (QCascii_compatible_p): New variable.
25718 (syms_of_coding): Initialize it.
25719 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25720 calling string_char.
25721 (record_conversion_result): Add `default:' case.
25722 (coding_charset_list): Delete unused variable `coding_type'.
25723 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25724 property in the plist of the coding system.
25725 (Fcoding_system_put): Check QCascii_compatible_p.
25726
25727 2008-02-01 Miles Bader <miles@gnu.org>
25728
25729 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25730 removed calculation of frame `f', as it's now used.
25731
25732 2008-02-01 Kenichi Handa <handa@m17n.org>
25733
25734 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25735 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25736 (UNIDATA): New variable.
25737 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
25738 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25739 Run $(RUN_TEMACS) unconditionally.
25740
25741 2008-02-01 Kenichi Handa <handa@m17n.org>
25742
25743 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25744 (admindir): New variable.
25745 ($(lispsource)international/charprop.el): New target.
25746
25747 2008-02-01 Miles Bader <miles@gnu.org>
25748
25749 * character.c (chars-in-region): Remove obsolete function.
25750 (syms_of_character): Remove its initialization.
25751
25752 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25753
25754 * w32select.c (validate_coding_system)
25755 (setup_windows_coding_system): New functions.
25756 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25757 Use setup_windows_coding_system.
25758 (setup_config, Fw32_get_clipboard_data):
25759 Use validate_coding_system.
25760 (Fx_selection_exists): Move call to setup_config to a place
25761 where signals are allowed.
25762
25763 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25764 (Fcheck_coding_system): Add declarations.
25765
25766 2008-02-01 Kenichi Handa <handa@m17n.org>
25767
25768 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25769
25770 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25771
25772 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25773 string as the second argument for x_new_fontset.
25774
25775 2008-02-01 Kenichi Handa <handa@m17n.org>
25776
25777 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25778 (encode_coding_object): Use safe_call instead of call2.
25779
25780 2008-02-01 Kenichi Handa <handa@m17n.org>
25781
25782 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25783
25784 * Makefile.in (lisp): Include charprop.el.
25785
25786 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25787
25788 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25789 Not sure if it's unnecessary.
25790
25791 2008-02-01 Steven Tamm <steventamm@mac.com>
25792
25793 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25794 some possibly unnecessary fontset checking code that crashed
25795 when creating a new frame.
25796
25797 2008-02-01 Kenichi Handa <handa@m17n.org>
25798
25799 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25800 lookup_face.
25801
25802 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25803
25804 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25805
25806 2008-02-01 Kenichi Handa <handa@m17n.org>
25807
25808 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25809 (coding_charset_list): New function.
25810
25811 * coding.h (coding_charset_list): Extern it.
25812
25813 2008-02-01 Kenichi Handa <handa@m17n.org>
25814
25815 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25816 concatenation of family and registry.
25817
25818 2008-02-01 Kenichi Handa <handa@m17n.org>
25819
25820 * character.h (BYTE8_STRING): Fix typo.
25821
25822 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25823 string to multibyte (sync to HEAD).
25824
25825 * casefiddle.c (casify_region): Handle changes in byte-length
25826 using replace_range_2 (sync to HEAD).
25827
25828 2008-02-01 Andreas Schwab <schwab@suse.de>
25829
25830 * chartab.c (map_char_table): GCPRO table and arg.
25831
25832 2008-02-01 Kenichi Handa <handa@m17n.org>
25833
25834 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25835 already at limit.
25836
25837 2008-02-01 Kenichi Handa <handa@m17n.org>
25838
25839 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25840 instead of fast_c_string_match_ignore_case.
25841 (find_font_encoding): Change argument to Lisp_Object.
25842 Use fast_string_match_ignore_case instead of
25843 fast_c_string_match_ignore_case. Change caller.
25844
25845 2008-02-01 Kenichi Handa <handa@m17n.org>
25846
25847 * xdisp.c (get_next_display_element): In unibyte case, decide to
25848 display in octal form by checking a character by
25849 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25850
25851 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25852
25853 * character.c (unibyte_has_multibyte_table): New variable.
25854
25855 * character.h (unibyte_has_multibyte_table): Extern it.
25856 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25857
25858 2008-02-01 Kenichi Handa <handa@m17n.org>
25859
25860 * coding.c (encode_coding_iso_2022): Fix handling of charset
25861 annotation.
25862
25863 2008-02-01 Kenichi Handa <handa@m17n.org>
25864
25865 * coding.c (setup_coding_system): If coding_system is nil, use
25866 Qundecided.
25867 (Fterminal_coding_system): Return nil if terminal coding system is
25868 `undecided'.
25869 (syms_of_coding): Define coding-system `undecided' here.
25870 Setup terminal_coding as `undecided'.
25871
25872 2008-02-01 Kenichi Handa <handa@m17n.org>
25873
25874 * xdisp.c (message_dolog, set_message_1):
25875 Call unibyte_char_to_multibyte with arg type int.
25876
25877 * lread.c (read1): Fix reading of a char-table.
25878
25879 * print.c (print_object): Include sub char-table in circularities
25880 detection.
25881
25882 2008-02-01 Kenichi Handa <handa@m17n.org>
25883
25884 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25885 Append the found sequences in car of ARGS instead of prepending.
25886
25887 2008-02-01 Kenichi Handa <handa@m17n.org>
25888
25889 * fileio.c (report_file_error): Make a unibyte string from
25890 strerror (errorno).
25891 (Fsubstitute_in_file_name): Fix the arg to
25892 unibyte_char_to_multibyte. It is evaluated twice.
25893
25894 2008-02-01 Kenichi Handa <handa@m17n.org>
25895
25896 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25897
25898 2008-02-01 Kenichi Handa <handa@m17n.org>
25899
25900 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25901 BOM is not found.
25902 (detect_coding, detect_coding_system): Optimization for ISO-2022
25903 when no 8-bit data is found.
25904
25905 2008-02-01 Jason Rumney <jasonr@gnu.org>
25906
25907 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25908
25909 2008-02-01 Kenichi Handa <handa@m17n.org>
25910
25911 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25912 CHARS.
25913
25914 2008-02-01 Steven Tamm <steventamm@mac.com>
25915
25916 * macterm.c (mac_encode_char): Add charset argument and update
25917 to use encoding_type.
25918 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25919 switch to pure fontset.
25920 (decode_mac_font_name): Temporarily remove decoding.
25921 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25922 (x_load_font): Temporarily remove encoding.
25923
25924 2008-02-01 Kenichi Handa <handa@m17n.org>
25925
25926 * xfaces.c (Fface_font): If frame is not on a window system,
25927 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25928 refer to face->font.
25929 (split_font_name_into_vector, build_font_name_from_vector)
25930 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25931 when HAVE_WINDOW_SYSTEM is defined.
25932
25933 2008-02-01 Kenichi Handa <handa@m17n.org>
25934
25935 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25936 (x_produce_glyphs): Fix setting of members of cmp in case
25937 cmp->glyph_len is zero.
25938
25939 * fontset.c (Fset_fontset_font): Fix docstring.
25940 (Ffontset_info): Make it backward compatible. New arg ALL.
25941
25942 2008-02-01 Kim F. Storm <storm@cua.dk>
25943
25944 * process.c (read_process_output): Grow decoding_buf when needed;
25945 this could cause a crash in allocate_string and compact_small_strings.
25946
25947 2008-02-01 Kenichi Handa <handa@m17n.org>
25948
25949 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25950
25951 2008-02-01 Kenichi Handa <handa@m17n.org>
25952
25953 * coding.c (setup_coding_system): Set coding->common_flags
25954 correctly for raw-text.
25955 (consume_chars): On encoding unibyte text by raw-text, don't check
25956 multibyte form.
25957 (encode_coding): On encoding by raw-text, never use translation tables.
25958
25959 * fileio.c (e_write): Short cut for the case of no encoding.
25960
25961 2008-02-01 Kenichi Handa <handa@m17n.org>
25962
25963 * coding.c (detect_coding, detect_coding_system): Delete unused
25964 variables.
25965
25966 2008-02-01 Kenichi Handa <handa@m17n.org>
25967
25968 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25969 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25970
25971 2008-02-01 Kenichi Handa <handa@m17n.org>
25972
25973 * coding.c (Ffind_coding_systems_region_internal):
25974 Include raw-text and no-conversion in the result.
25975
25976 2008-02-01 Kenichi Handa <handa@m17n.org>
25977
25978 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25979 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25980 FONT_DEF.
25981 (font_def_arg, add_arg, from_arg, to_arg): New args.
25982 (set_fontset_font): Change argument.
25983 (Fset_fontset_font): Fix for the case that TARGET is a script
25984 name and charset name.
25985 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25986
25987 2008-02-01 Kenichi Handa <handa@m17n.org>
25988
25989 * fontset.c (fontset_font): Rename from fontset_face. Change return
25990 value.
25991 (face_suitable_for_char_p, face_for_char): Adjust for the change
25992 of fontset_font.
25993 (make_fontset_for_ascii_face): Fix setting of the fontset element
25994 for ASCII.
25995 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25996 to get a font name.
25997 (Ffontset_info): Adjust for the change of fontset_font.
25998
25999 * coding.c (emacs_mule_char): Check invalid code more rigidly.
26000
26001 * character.h (LEADING_CODE_LATIN_1_MIN)
26002 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26003
26004 2008-02-01 Kenichi Handa <handa@m17n.org>
26005
26006 * editfns.c (check_translation): New function.
26007 (Ftranslate_region_internal): Handle M:N mapping.
26008
26009 2008-02-01 Kenichi Handa <handa@m17n.org>
26010
26011 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26012
26013 2008-02-01 Kenichi Handa <handa@m17n.org>
26014
26015 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26016 goto invalid_code.
26017 (decode_coding_iso_2022): Fix handling of invalid designation.
26018
26019 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26020 after calling code_conversion_save.
26021
26022 2008-02-01 Kenichi Handa <handa@m17n.org>
26023
26024 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26025
26026 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26027
26028 * fontset.c: Include "intervals.h".
26029 (fontset_face): Fix comparing of Lisp_Objects.
26030 (free_face_fontset, new_fontset_from_font_name):
26031 Fix Lisp_Object/int mixup.
26032
26033 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26034
26035 * coding.c: Add many prototypes for static functions.
26036 (get_translation_table): Allow max_lookup to be NULL.
26037 (decode_coding, Ffind_coding_systems_region_internal)
26038 (Funencodable_char_position, Fcheck_coding_systems_region):
26039 Call get_translation_table with max_lookup NULL.
26040
26041 2008-02-01 Kenichi Handa <handa@m17n.org>
26042
26043 * coding.c (get_translation_table): Declare it as Lisp_Object.
26044 (LOOKUP_TRANSLATION_TABLE): New macro.
26045 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26046 instead of CHAR_TABLE_REF.
26047
26048 2008-02-01 Kenichi Handa <handa@m17n.org>
26049
26050 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26051 annotation data format.
26052 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26053 Change arguments FROM and TO to single argument NCHARS. Change caller.
26054 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26055 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26056 (decode_coding_ccl, decode_coding_charset): Pay attention to
26057 coding->charbuf_used.
26058 (get_translation): New function.
26059 (produce_chars): New arguments translation_table and last_block.
26060 Translate characters here. Return number of carryover chars.
26061 Change caller.
26062 (produce_composition): New argument pos. Change caller.
26063 Adjust for the change of annotation data format.
26064 (produce_charset, produce_annotation): Likewise.
26065 (decode_coding, encode_coding): Don't call translate_chars.
26066 (consume_chars): New arg translation_table. Change caller.
26067 (translate_chars): Delete.
26068 (syms_of_coding): Make translation-table's number of extra slots 2.
26069
26070 2008-02-01 Kenichi Handa <handa@m17n.org>
26071
26072 * search.c (simple_search): Fix setting this_pos_byte in backward
26073 search.
26074
26075 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26076 byte sequence.
26077 (detect_coding_ccl): Fix setting of the variable valids.
26078
26079 2008-02-01 Kenichi Handa <handa@m17n.org>
26080
26081 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26082
26083 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26084
26085 * editfns.c (Ftranslate_region_internal): Rename from
26086 Ftranslate_region. Accept a char-table in TABLE.
26087 (syms_of_editfns): Defsubr Stranslate_region_internal.
26088
26089 * xfaces.c (set_lface_from_font_name): If a font is specified for
26090 a frame, generate a fontset from the font.
26091 (build_scalable_font_name): If the scalable font is requested for
26092 a specific size, don't change that size.
26093 (try_font_list): Try a scalable font also in the case that a
26094 pattern string is specified.
26095
26096 2008-02-01 Kenichi Handa <handa@m17n.org>
26097
26098 * xfaces.c (Fface_font): New optional arg CHARACTER.
26099
26100 2008-02-01 Kenichi Handa <handa@m17n.org>
26101
26102 * charset.h (CHARSET_OFFSET): New macro.
26103
26104 2008-02-01 Kenichi Handa <handa@m17n.org>
26105
26106 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26107
26108 * fontset.c (fontset_face): Handle the case that repertory is a
26109 char-table.
26110 (find_font_encoding): Return nil for unknown encoding.
26111 (Fset_fontset_font): Ignore a font of unknown encoding.
26112
26113 2008-02-01 Kenichi Handa <handa@m17n.org>
26114
26115 * keymap.c (describe_vector): Handle default value of a char table.
26116
26117 * fontset.c (fontset_face): Handle fallback fonts correctly.
26118 (Ffontset_info): Return infomation about fallback fonts.
26119
26120 2008-02-01 Kenichi Handa <handa@m17n.org>
26121
26122 * fontset.c (FONTSET_DEFAULT): New macro.
26123 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26124 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26125 the case that it is nil.
26126 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26127 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26128
26129 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26130 subset or superset.
26131
26132 2008-02-01 Kenichi Handa <handa@m17n.org>
26133
26134 * emacs.c (main): Call init_charset after syms_of_XXX.
26135
26136 * charset.c (Vcharset_map_directory): Delete.
26137 (Vcharset_map_path): New variable.
26138 (load_charset_map_from_file): Use Vcharset_map_path instead.
26139 (init_charset): Initialize Vcharset_map_path.
26140 (syms_of_charset): Delete declaration of "charset-map-directory",
26141 add declaration of "charset-map-path".
26142
26143 2008-02-01 Kenichi Handa <handa@m17n.org>
26144
26145 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26146 ASCII only string.
26147
26148 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26149
26150 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26151 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26152
26153 2008-02-01 Kenichi Handa <handa@m17n.org>
26154
26155 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26156
26157 * coding.c (QCmnemonic, QCdefalut_char)
26158 (QCdecode_translation_table, QCencode_translation_table)
26159 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26160 (get_translation_table): Return a list of translation tables if
26161 necessary.
26162 (decode_coding): Call get_translation_table with ENCODEP 0.
26163 (char_encodable_p): If translation_table is non-nil, always call
26164 translate_char.
26165 (Fdefine_coding_system_internal): Accept list of translation
26166 tables as :encode-translation-table and :decode-translation-table.
26167 (Fcoding_system_put): New function.
26168 (syms_of_coding): Declare new symbols.
26169 Defsubr Scoding_system_put.
26170 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26171 typically JISX0212.
26172
26173 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26174 when the charset is superset type.
26175
26176 * character.c (translate_char): Accept list of translation tables.
26177
26178 2008-02-01 Kenichi Handa <handa@m17n.org>
26179
26180 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26181 (CODING_ATTR_TRANS_TBL): New macro.
26182
26183 * coding.c (get_translation_table): New function.
26184 (translate_chars): Fix the bug of skipping annotation data.
26185 (decode_coding, encode_coding): Utilize get_translation_table.
26186 (char_encodable_p, Funencodable_char_position): Translate char if
26187 necessary.
26188 (Ffind_coding_systems_region_internal)
26189 (Fcheck_coding_systems_region): Setup translation table for encode
26190 in a coding system attribute vector in advance.
26191 (Fdefine_coding_system_internal): Allow a symbol as translation
26192 table. For shift-jis type coding system, allow 4th charset.
26193
26194 2008-02-01 Kenichi Handa <handa@m17n.org>
26195
26196 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26197
26198 * xdisp.c (get_next_display_element): Pass -1 as POS to
26199 FACE_FOR_CHAR if displaying a C-string.
26200
26201 2008-02-01 Kenichi Handa <handa@m17n.org>
26202
26203 * composite.c (get_composition_id): Handle xoff and yoff in a
26204 composition rule.
26205
26206 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26207 (struct composition): New member lbearing and rbearing.
26208
26209 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26210 (x_get_glyph_overhangs): Handle a composition glyph.
26211 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26212
26213 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26214 composition glyph.
26215
26216 2008-02-01 Kenichi Handa <handa@m17n.org>
26217
26218 * print.c: Include charset.h.
26219 (Vprint_charset_text_property): New variable.
26220 (Qdefault): Extern it.
26221 (PRINT_STRING_NON_CHARSET_FOUND)
26222 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26223 (print_check_string_result): New variable.
26224 (print_check_string_charset_prop): New function.
26225 (print_prune_charset_plist): New variable.
26226 (print_prune_string_charset): New function.
26227 (print_object): Call print_prune_string_charset if
26228 Vprint_charset_text_property is not t.
26229 (print_interval): Print nothing if interval->plist is nil.
26230 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26231 variable. Init and staticpro print_prune_charset_plist.
26232
26233 2008-02-01 Kenichi Handa <handa@m17n.org>
26234
26235 * fontset.c (new_fontset_from_font_name): Use the specified font
26236 for all characters in the new fontset.
26237
26238 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26239 OBJECT args.
26240
26241 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26242 OBJECT args for composition too.
26243
26244 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26245 OBJECT args.
26246
26247 2008-02-01 Kenichi Handa <handa@m17n.org>
26248
26249 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26250
26251 * fontset.c (reorder_font_vector): Adjust for the change of
26252 FONT_DEF format.
26253 (fontset_face): New arg id. Change caller.
26254 (face_for_char): New args pos and object.
26255 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26256 (fs_query_fontset): Check NAME by Fassoc too.
26257 (Fset_fontset_font): Allow non-XLFD font name.
26258 (Ffontset_info): Adjust for the change of FONT_DEF format.
26259
26260 * fontset.h (face_for_char): Adjust prototype.
26261
26262 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26263 (append_space, extend_face_to_end_of_line)
26264 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26265 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26266
26267 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26268 POS and OBJECT args.
26269
26270 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26271 POS and OBJECT args.
26272
26273 2008-02-01 Jason Rumney <jasonr@gnu.org>
26274
26275 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26276 of GlobalAlloc'ed memory.
26277
26278 2008-02-01 Kenichi Handa <handa@m17n.org>
26279
26280 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26281
26282 * charset.h (charset_table_used): Delete extern.
26283
26284 * charset.c (charset_table_used): Make it static.
26285 (map_charset_chars): Fix args to c_function with.
26286
26287 * chartab.c (map_sub_char_table_for_charset): Fix args to
26288 c_function with.
26289
26290 * coding.h (enum coding_result_code):
26291 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
26292
26293 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26294 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26295 (Vlast_code_conversion_error): New variables.
26296 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26297 (ONE_MORE_BYTE): Record error if any instead of signaling an
26298 error. If non-ASCII multibyte char is found, return the negative
26299 value of the code. All callers changed to check it.
26300 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26301 (record_conversion_result): New function. Change all codes setting
26302 coding->result to call this function.
26303 (detect_coding_utf_8, decode_coding_utf_8)
26304 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26305 Don't use the local variable incomplete.
26306 (emacs_mule_char): Change the second arg to `const'.
26307 (decode_coding): Fix of flushing out unprocessed data.
26308 (make_conversion_work_buffer): Fix making of a work buffer.
26309 (decode_coding_object): Return coding->dst_object.
26310
26311 * fontset.c (set_fontset_font): Fix args.
26312
26313 * lisp.h (CHARACTERBITS): Define as 22.
26314
26315 * process.c (send_process): Be sure to set coding->src_multibyte.
26316
26317 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26318
26319 2008-02-01 Kenichi Handa <handa@m17n.org>
26320
26321 * xdisp.c (handle_auto_composed_prop): Give limit to
26322 Fnext_single_char_property_change.
26323
26324 2008-02-01 Kenichi Handa <handa@m17n.org>
26325
26326 * composite.c (syms_of_composite): Don't make the composition hash
26327 table weak.
26328
26329 * fontset.c (Fset_fontset_font): Fix docstring.
26330
26331 * lisp.h (detect_coding_system): Adjust prototype.
26332
26333 * fileio.c (kill_workbuf_unwind): Delete this function.
26334 (Finsert_file_contents): Adjust the call of detect_coding_system.
26335 Get conversion_buffer by code_conversion_save. Use the macro
26336 CODING_MAY_REQUIRE_DECODING. After decoding, update
26337 coding_system.
26338
26339 * coding.h (make_conversion_work_buffer): Delete extern.
26340 (code_conversion_save): Extern it.
26341
26342 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26343 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26344 (decode_coding_utf_8): Don't do eol converion.
26345 (detect_coding_utf_16): Check coding->src_chars, not
26346 coding->src_bytes. Add heuristics for those that have no signature.
26347 (decode_coding_emacs_mule, decode_coding_iso_2022)
26348 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26349 Don't do eol converion.
26350 (adjust_coding_eol_type): Return a new coding system.
26351 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26352 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26353 each change.
26354 (decode_coding): Pay attention to undo_list. Do eol conversion for
26355 all types of coding-systems (if necessary).
26356 (Vcode_conversion_work_buf_list): Delete it.
26357 (Vcode_conversion_reused_workbuf): Rename from
26358 Vcode_conversion_reused_work_buf.
26359 (Vcode_conversion_workbuf_name): New variable.
26360 (reused_workbuf_in_use): New variable.
26361 (make_conversion_work_buffer): Delete the arg DEPTH.
26362 (code_conversion_restore): Change argument to cons.
26363 (code_conversion_save): Delete the argument BUFFER. Change callers.
26364 (detect_coding_system): New argument src_chars. Change callers.
26365 Fix for utf-16 detection.
26366 (init_coding_once): Don't use ISO_carriage_return.
26367 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26368 reused_workbuf_in_use.
26369
26370 2008-02-01 Kenichi Handa <handa@m17n.org>
26371
26372 * keymap.c (store_in_keymap): Pay attention to the case that idx
26373 is a cons specifying a character range.
26374
26375 2008-02-01 Kenichi Handa <handa@m17n.org>
26376
26377 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26378 HANDLED_RECOMPUTE_PROPS.
26379
26380 * coding.c (Fdefine_coding_system_internal): Fix checking of
26381 ascii compatibility.
26382
26383 2008-02-01 Kenichi Handa <handa@m17n.org>
26384
26385 * charset.c (find_charsets_in_text): Delete unused locale variable.
26386 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26387
26388 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26389 Resync charset_list to Vemacs_mule_charset_list.
26390
26391 * keymap.c (store_in_keymap): Pay attention to the case that idx
26392 is a cons specifying a character range.
26393
26394 2008-02-01 Kenichi Handa <handa@m17n.org>
26395
26396 * composite.c (update_compositions): Bind inhibit-read-only, etc
26397 to t before calling remove-list-of-text-properties.
26398
26399 * print.c (print_object): Always print ASCII chars as is.
26400
26401 2008-02-01 Kenichi Handa <handa@m17n.org>
26402
26403 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26404
26405 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26406 is a char table.
26407
26408 2008-02-01 Kenichi Handa <handa@m17n.org>
26409
26410 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26411
26412 2008-02-01 Kenichi Handa <handa@m17n.org>
26413
26414 * xfaces.c (set_lface_from_font_name): Fix for the case that
26415 FONTNAME is not fontset name.
26416
26417 2008-02-01 Kenichi Handa <handa@m17n.org>
26418
26419 * fns.c (base64_encode_1): Fix previous change.
26420
26421 2008-02-01 Kenichi Handa <handa@m17n.org>
26422
26423 * fontset.c (set_fontset_font): New function.
26424 (Fset_fontset_font): If a font is specified for a charset, use
26425 map_charset_chars to store the font spec in a fontset.
26426
26427 2008-02-01 Kenichi Handa <handa@m17n.org>
26428
26429 * fontset.c (fontset_face): Create a fallback fontset on demand.
26430 (make_fontset): Don't create a fallback fontset here.
26431 (free_face_fontset): Free a fallback fontset (if any) too.
26432 (n_auto_fontsets): Delete this variable.
26433 (auto_fontset_alist): New variable.
26434 (new_fontset_from_font_name): Check auto_fontset_alist.
26435 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26436 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26437 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26438 Defsubr Sfontset_list_all.
26439
26440 2008-02-01 Kenichi Handa <handa@m17n.org>
26441
26442 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26443
26444 2008-02-01 Kenichi Handa <handa@m17n.org>
26445
26446 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26447
26448 2008-02-01 Kenichi Handa <handa@m17n.org>
26449
26450 * editfns.c (Fgoto_char): Fix docstring.
26451
26452 2008-02-01 Kenichi Handa <handa@m17n.org>
26453
26454 * insdel.c (insert_from_gap): Adjust intervals correctly.
26455
26456 2008-02-01 Jason Rumney <jasonr@gnu.org>
26457
26458 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26459 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26460 (w32_initialize): Try to load it.
26461 (x_get_font_repertory): Use it if available.
26462 (w32_encode_char): Add shortcut for unicode output.
26463
26464 * w32fns.c (w32_load_system_font): Default charset to -1.
26465 (x_to_w32_charset): Match all fonts for unicode.
26466 (w32_to_x_charset): New parameter matching. Don't return partial
26467 or wildcard charsets.
26468 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26469 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26470 (w32_to_x_font): Match charset to real charset.
26471 (enum_font_cb2): Always list unicode versions.
26472
26473 * makefile.w32-in (temacs): Increase EMHEAP.
26474
26475 2008-02-01 Jason Rumney <jasonr@gnu.org>
26476
26477 * w32term.c (w32_encode_char): New charset parameter.
26478 font_info.encoding becomes encoding_type.
26479 (x_get_font_repertory): New function. Warning: stub only!
26480 (x_new_font): Return quickly if font already set.
26481 (x_new_fontset): fontsetname parameter is Lisp_Object.
26482 Use new fs_query_fontset. Try new_fontset_from_font_name.
26483 Use fontset_name for return value.
26484
26485 * w32term.h: Declare x_get_font_repertory.
26486
26487 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26488 place of find_charset_in_text. Use encode_coding_object in place
26489 of encode_coding.
26490 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26491 decode_coding.
26492
26493 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26494 of x_new_fontset.
26495 (w32_load_system_font): Initialize charset as unicode.
26496 font_info.encoding becomes encoding_type.
26497 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26498 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26499 (syms_of_w32fns): Set get_font_repertory_func.
26500
26501 * w32console.c: Include character.h. Use terminal_encode_buffer
26502 from term.c.
26503 (write_glyphs): Use new version of encode_terminal_code.
26504 Use encode_coding_object in place of encode_coding.
26505
26506 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26507 encoding becomes encoding_type.
26508
26509 * term.c (terminal_encode_buffer): Make externally visible.
26510
26511 * makefile.w32-in: Add character.h dependancies.
26512 (character.o, chartab.o): New targets.
26513
26514 2008-02-01 Kenichi Handa <handa@m17n.org>
26515
26516 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26517 CODING_ID_EOL_TYPE.
26518
26519 2008-02-01 Andreas Schwab <schwab@suse.de>
26520
26521 * coding.c (produce_chars): Revert last change.
26522
26523 2008-02-01 Kenichi Handa <handa@m17n.org>
26524
26525 * charset.h (charset_unicode): Extern it.
26526
26527 * charset.c (string_xstring_p): Check by (C >= 0x100).
26528 (find_charsets_in_text): Change format of the arc CHARSETS.
26529 New arg MULTIBYTE.
26530 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26531 change of find_charsets_in_text.
26532 (Fsplit_char): Fix doc. Never return unknown.
26533
26534 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26535
26536 * coding.c (Fdefine_coding_system_alias):
26537 Update Vcoding_system_list.
26538
26539 * fontset.c (load_font_get_repertory): Pay attention to the case
26540 that ENCODING of a font is specified by a char-table.
26541
26542 * xterm.c (x_get_font_repertory): Handle the case that the
26543 encoding of font is other than Unicode.
26544
26545 2008-02-01 Kenichi Handa <handa@m17n.org>
26546
26547 * term.c (encode_terminal_code): Don't handle glyph-table.
26548 Check if a character is encodable by the terminal coding system.
26549 If not, produces proper number of `?'s. Update
26550 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26551 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26552
26553 2008-02-01 Kenichi Handa <handa@m17n.org>
26554
26555 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26556 New variables.
26557 (encode_terminal_code): Change argument. Encode multiple
26558 characters at once. Store the result of encoding in
26559 terminal_encode_buffer.
26560 (write_glyphs, insert_glyphs): Adjust for the change of
26561 encode_terminal_code.
26562 (term_init): Initialize terminal_encode_buffer and
26563 terminal_encode_buf_size.
26564
26565 * coding.c (consume_chars): If coding->src_object is nil, don't
26566 check annotation.
26567
26568 2008-02-01 Kenichi Handa <handa@m17n.org>
26569
26570 * character.c (char_string): Use ASCII_CHAR_P instead of
26571 SINGLE_BYTE_CHAR_P.
26572
26573 2008-02-01 Kenichi Handa <handa@m17n.org>
26574
26575 * xdisp.c (handle_auto_composed_prop): Check if the last
26576 characters of auto-composed region is newly composed with the
26577 following characters.
26578 (handle_composition_prop): Fix checking of point being inside
26579 composition.
26580
26581 2008-02-01 Kenichi Handa <handa@m17n.org>
26582
26583 * fns.c (concat): Don't change multibyteness of the result by
26584 concatenating an 8-bit character.
26585
26586 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26587 multibyteness of the result when newelt is an 8-bit character.
26588
26589 2008-02-01 Dave Love <fx@gnu.org>
26590
26591 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26592 EMACS_INT.
26593
26594 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26595
26596 * xfaces.c (face_numeric_value): Declare dim size_t.
26597 (Finternal_lisp_face_equal_p): Remove unused f.
26598
26599 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26600 (MATRIX_ROW): Remove unused vars.
26601 (draw_glyphs, x_insert_glyphs, fast_find_position)
26602 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26603 byte/char counts.
26604
26605 * regex.c (regex_compile): Remove unused var.
26606
26607 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26608
26609 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26610 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26611
26612 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26613
26614 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26615
26616 * fileio.c (Fwrite_region): Remove unused var.
26617
26618 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26619 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26620
26621 * composite.c (Fremove_list_of_text_properties): Declare.
26622
26623 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26624 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26625 (coding_inherit_eol_type): Remove unused attrs.
26626 (detect_coding): Cast arg of detect_eol.
26627
26628 * charset.c (syms_of_charset): Remove unused var p.
26629 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26630 byte/char counts.
26631
26632 * casetab.c (set_case_table): Remove unused var.
26633
26634 * window.c (Fdisplay_buffer, Fframe_selected_window):
26635 Remove unused vars.
26636
26637 2008-02-01 Dave Love <fx@gnu.org>
26638
26639 * xterm.c (x_bitmap_mask): Declare.
26640
26641 2008-02-01 Dave Love <fx@gnu.org>
26642
26643 * xterm.c (x_term_init): Fix type error.
26644
26645 * lisp.h: Add Funibyte_char_to_multibyte.
26646
26647 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26648 (Fset_coding_system_priority): Doc fix.
26649
26650 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26651
26652 * indent.c (check_composition): Make start and end EMACS_INT.
26653
26654 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26655
26656 * xdisp.c (handle_composition_prop, check_point_in_composition):
26657 Make buffer positions EMACS_INT.
26658
26659 * composite.c (find_composition, run_composition_function)
26660 (update_compositions, Ffind_composition_internal): Make buffer
26661 positions EMACS_INT.
26662
26663 * composite.h (find_composition, update_compositions):
26664 Make position args EMACS_INT.
26665
26666 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26667
26668 * intervals.c (get_property_and_range):
26669 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26670
26671 * unexalpha.c: Don't include varargs.h.
26672
26673 2008-02-01 Dave Love <fx@gnu.org>
26674
26675 * coding.h (ENCODE_UTF_8): New.
26676
26677 * Makefile.in (gtkutil.o): Depend on coding.h.
26678
26679 * coding.c (Fset_coding_system_priority): Doc fix.
26680
26681 2008-02-01 Kenichi Handa <handa@m17n.org>
26682
26683 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26684 the case of auto saving.
26685
26686 2008-02-01 Andreas Schwab <schwab@suse.de>
26687
26688 * chartab.c (map_char_table, map_char_table_for_charset):
26689 Protect `range' from GC.
26690
26691 2008-02-01 Kenichi Handa <handa@m17n.org>
26692
26693 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26694
26695 2008-02-01 Kenichi Handa <handa@m17n.org>
26696
26697 * fileio.c (choose_write_coding_system): Return a decided coding system.
26698 (Fwrite_region): Set Vlast_coding_system_used to the return value
26699 of choose_write_coding_system.
26700
26701 2008-02-01 Kenichi Handa <handa@m17n.org>
26702
26703 * charset.c (Fset_charset_priority): Pay attention to duplicated
26704 arguments.
26705
26706 * coding.c (QCcategory): New variable.
26707 (syms_of_coding): Defsym it. Set all elements of
26708 Vcoding_category_table and their symbol values.
26709 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26710 coding-category-XXX, and coding-category-list.
26711 (Fdefine_coding_system_internal): Add category in the plist.
26712
26713 2008-02-01 Kenichi Handa <handa@m17n.org>
26714
26715 * callproc.c (Fcall_process): Handle carryover correctly.
26716
26717 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26718 (raw_text_coding_system): Check NILP (coding_system).
26719 (coding_inherit_eol_type): Check NILP (coding_system) and
26720 NILP (parent).
26721 (consume_chars): Fix for the case of raw-text.
26722
26723 * process.c (read_process_output): Handle carryover correctly.
26724
26725 2008-02-01 Dave Love <fx@gnu.org>
26726
26727 * regex.c (re_search_2): Fix last change.
26728
26729 2008-02-01 Kenichi Handa <handa@m17n.org>
26730
26731 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26732 target_multibyte. Even in a unibyte case, return a converted
26733 multibyte char.
26734 (GET_CHAR_AFTER): New macro.
26735 (PATFETCH): Translate via multibyte char.
26736 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26737 (SETUP_MULTIBYTE_RANGE): New macro.
26738 (regex_compile): Setup compiled code so that its multibyteness
26739 matches that of a target. Fix the handling of "[X-YZ]" using
26740 SETUP_MULTIBYTE_RANGE.
26741 (analyse_first) <charset>: For filling fastmap for all multibyte
26742 characters, don't check by BASE_LEADING_CODE_P.
26743 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26744 the same as RE_MULTIBYTE_P (bufp) now.
26745 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26746 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26747 (TRANSLATE_VIA_MULTIBYTE): New macro.
26748 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26749 It is the same as RE_MULTIBYTE_P (bufp) now.
26750 <exactn>: Translate via multibyte.
26751 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26752 Don't translate it.
26753 <charset, charset_not>: Fetch a character by
26754 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26755 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26756 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26757 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26758 by GET_CHAR_AFTER.
26759 (bcmp_translate): Likewise.
26760
26761 * search.c (compile_pattern): Check the member target_multibyte,
26762 not the member multibyte of buf.
26763
26764 * lread.c (read1): While reading a string, set force_singlebyte
26765 and force_multibyte correctly.
26766
26767 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26768 up of unibyte_to_multibyte_table.
26769
26770 2008-02-01 Kenichi Handa <handa@m17n.org>
26771
26772 * coding.c (setup_coding_system): If coding has
26773 post-read-conversion or pre-write-conversion, set
26774 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26775 respectively.
26776 (decode_coding_gap): Run post-read-conversion if any.
26777
26778 * fileio.c (Finsert_file_contents): Even if we read into a
26779 unibyte buffer, check if we must decode the result or not.
26780
26781 2008-02-01 Kenichi Handa <handa@m17n.org>
26782
26783 * coding.c (make_conversion_work_buffer): Change the work buffer
26784 name to the same one as that of Emacs 21.
26785
26786 2008-02-01 Kenichi Handa <handa@m17n.org>
26787
26788 * coding.h (make_conversion_work_buffer): Adjust prototype.
26789 (code_conversion_restore): Don't extern it.
26790
26791 * coding.c (detected_mask): Delete unused variable.
26792 (decode_coding_iso_2022): Pay attention to the byte sequence of
26793 CTEXT extended segment, and retain those bytes as is.
26794 (decode_coding_ccl): Delete unused variable `valids'.
26795 (setup_coding_system): Delete unused variable `category'.
26796 (consume_chars): Delete unused variable `category'. Make it work
26797 for non-multibyte case.
26798 (make_conversion_work_buffer): Change argument.
26799 (saved_coding): Delete unused variable.
26800 (code_conversion_restore): Don't check saved_coding->destination.
26801 (code_conversion_save): New function.
26802 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26803 instead of record_unwind_protect.
26804 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26805 (detect_coding_system): Delete unused variable `mask'.
26806 (Fdefine_coding_system_internal): Delete unused variable id.
26807
26808 * fileio.c (kill_workbuf_unwind): New function.
26809 (Finsert_file_contents): On replacing, call
26810 make_conversion_work_buffer with correct args, and call
26811 record_unwind_protect with the first arg kill_workbuf_unwind.
26812
26813 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26814
26815 2008-02-01 Kenichi Handa <handa@m17n.org>
26816
26817 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26818 (fontset_add): Fix for the case that TO is less than TO1.
26819 (Ffontset_info): Don't use fallback fontset on checking the
26820 default fontset.
26821 (dump_fontset): New function for debugging.
26822
26823 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26824 coding_type is Qcharset.
26825
26826 2008-02-01 Kenichi Handa <handa@m17n.org>
26827
26828 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26829 (map_char_table): Don't inherit the value from the parent on
26830 initializing VAL. Adjust for the above change.
26831
26832 2008-02-01 Kenichi Handa <handa@m17n.org>
26833
26834 * coding.c (Qsignature, Qendian): Delete these variables.
26835 (syms_of_coding): Don't initialize them.
26836 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26837 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26838 detect_info->found.
26839 (decode_coding_utf_16): Don't detect BOM here.
26840 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26841 is NOT utf_16_without_bom.
26842 (setup_coding_system): For a coding system of type utf-16, check
26843 if the attribute :endian is Qbig or not (not nil or not), and set
26844 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26845 (detect_coding): If coding type is utf-16 and BOM detection is
26846 required, detect it.
26847 (Fdefine_coding_system_internal): For a coding system of type
26848 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26849
26850 2008-02-01 Kenichi Handa <handa@m17n.org>
26851
26852 * coding.c (coding_set_source): Fix for the case that the current
26853 buffer is different from coding->src_object.
26854 (decode_coding_object): Don't use the conversion work buffer if
26855 DST_OBJECT is a buffer.
26856
26857 2008-02-01 Dave Love <fx@gnu.org>
26858
26859 * lread.c (read_emacs_mule_char) [len==2]: Index
26860 emacs_mule_charset correctly.
26861
26862 2008-02-01 Dave Love <fx@gnu.org>
26863
26864 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26865 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26866 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26867 treated specially.)
26868 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26869 (detected_mask): Remove Big5 bits.
26870
26871 2008-02-01 Kenichi Handa <handa@m17n.org>
26872
26873 The following changes are to make the font rescaling facility
26874 compatible with Emacs 21.
26875
26876 * xfaces.c (Vface_font_rescale_alist): Rename from
26877 Vface_resizing_fonts.
26878 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26879 (font_rescale_ratio): Rename from font_resizing_ratio.
26880 (split_font_name): Set font->rescale_ratio.
26881 (better_font_p): Pay attention to font->rescale_ratio.
26882 (build_scalable_font_name): Likewise. Change RESX, and RESY
26883 fields.
26884 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26885
26886 2008-02-01 Kenichi Handa <handa@m17n.org>
26887
26888 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26889 (Qutf_16_le): Remove these variables.
26890 (syms_of_coding): Don't DEFSYM them.
26891 (decode_coding_utf_16): Fix handling of BOM.
26892 (encode_coding_utf_16): Fix handling of BOM.
26893
26894 2008-02-01 Kenichi Handa <handa@m17n.org>
26895
26896 * fileio.c (Finsert_file_contents): On replacing, before decoding
26897 the file into the work buffer, set point of the work buffer to the end.
26898
26899 2008-02-01 Dave Love <fx@gnu.org>
26900
26901 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26902
26903 2008-02-01 Dave Love <fx@gnu.org>
26904
26905 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26906 and fix C types.
26907
26908 2008-02-01 Kenichi Handa <handa@m17n.org>
26909
26910 * xdisp.c (SKIP_GLYPHS): New macro.
26911 (set_cursor_from_row): Pay attention to string display properties.
26912
26913 * category.c (copy_category_entry): Fix for the case that RANGE
26914 is an integer.
26915
26916 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26917
26918 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26919
26920 2008-02-01 Kenichi Handa <handa@m17n.org>
26921
26922 * charset.c (Fcharset_id_internal): New function.
26923 (syms_of_charset): Defsubr it.
26924
26925 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26926 with the last arg charset_list acquired from coding.
26927 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26928 the attribute coding_attr_ccl_valids.
26929
26930 * coding.h (enum define_coding_ccl_arg_index): Set the first
26931 member coding_arg_ccl_decoder to coding_arg_max.
26932
26933 * ccl.h (ccl_driver): Adjust prototype.
26934
26935 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26936 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
26937 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
26938 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26939 last arg Qnil.
26940
26941 2008-02-01 Kenichi Handa <handa@m17n.org>
26942
26943 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26944 call encode_char.
26945
26946 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26947
26948 2008-02-01 Dave Love <fx@gnu.org>
26949
26950 * composite.c (syms_of_composite): Make composition_hash_table weak.
26951
26952 2008-02-01 Kenichi Handa <handa@m17n.org>
26953
26954 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26955 (font_name_registry): Don't extern them.
26956 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26957
26958 * fontset.h (Qfontset): Don't extern it.
26959 (new_fontset_from_font_name): Extern it.
26960
26961 * fontset.c: Give 8 extra slots to fontset objects.
26962 (Qfontset_info): New variable.
26963 (syms_of_fontset): Defsym it.
26964 (FONTSET_FALLBACK): New macro.
26965 (fontset_face): Try also the default fontset.
26966 (make_fontset): Realize a fallback fontset from the default fontset.
26967 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26968 using split_font_name_into_vector and build_font_name_from_vector.
26969 (Fset_fontset_font): Access the elements of font_spec by enum
26970 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26971 name by using split_font_name_into_vector.
26972 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
26973 generate a proper font name from the fontset name.
26974 Update Vfontset_alias_alist.
26975 (n_auto_fontsets): New variable.
26976 (new_fontset_from_font_name): New function.
26977 (Ffont_info): Store the information about fonts generated from the
26978 default fontset in the first extra slot of the returned char-table.
26979
26980 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26981 (font_name_registry): Delete function.
26982 (split_font_name_into_vector): New function.
26983 (build_font_name_from_vector): New function.
26984 (font_list): The argument REGISTRY is now a list of registry names.
26985 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26986 specifies an explicit font name, return the name as is. Make a
26987 list of registy names.
26988
26989 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26990 of x_new_fontset.
26991 (Fx_create_frame): Don't call x_new_fontset here. Just use
26992 x_list_fonts to check the existence of fonts.
26993
26994 * xterm.h (x_new_fontset): Adjust prototype.
26995
26996 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26997 string. Use new_fontset_from_font_name to create a fontset from a
26998 font name.
26999
27000 2008-02-01 Kenichi Handa <handa@m17n.org>
27001
27002 * syntax.c (Vfind_word_boundary_function_table): New name for
27003 Vnext_word_boundary_function_table.
27004 (find-word-boundary-function-table): New name for
27005 next-word-boundary-function-table.
27006
27007 2008-02-01 Dave Love <fx@gnu.org>
27008
27009 * Makefile.in: Fix some dependencies.
27010
27011 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27012 set it to nil before returning.
27013
27014 * composite.c (update_compositions): Fix type error.
27015
27016 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27017
27018 2008-02-01 Kenichi Handa <handa@m17n.org>
27019
27020 * xterm.c (x_new_font): Optimize for the case that the font is
27021 already set for the frame.
27022
27023 2008-02-01 Kenichi Handa <handa@m17n.org>
27024
27025 * chartab.c (char_table_ascii): Check if the char table contents
27026 is sub-char-table or not.
27027 (char_table_set, char_table_set_range): Fix argument to
27028 char_table_ascii.
27029
27030 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27031 (detect_coding_utf_8, detect_coding_utf_16)
27032 (detect_coding_emacs_mule, detect_coding_iso_2022)
27033 (detect_coding_sjis, detect_coding_big5)
27034 (detect_coding_ccl, detect_coding_charset): Change argument MASK
27035 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
27036 sequence is valid in this coding system. Change callers.
27037 (MAX_ANNOTATION_LENGTH): New macro.
27038 (ADD_ANNOTATION_DATA): New macro.
27039 (ADD_COMPOSITION_DATA): Change argument. Change callers.
27040 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
27041 (ADD_CHARSET_DATA): New macro.
27042 (emacs_mule_char): New argument ID. Change callers.
27043 (decode_coding_emacs_mule, decode_coding_iso_2022)
27044 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27045 Produce charset annotation data in coding->charbuf.
27046 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27047 to charset annotation data in coding->charbuf.
27048 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27049 coding->common_flags if the coding system is iso-2022 based and
27050 uses designation.
27051 (produce_composition): Adjust for the new annotation data format.
27052 (produce_charset): New function.
27053 (produce_annotation): Handle charset annotation.
27054 (handle_composition_annotation, handle_charset_annotation):
27055 New functions.
27056 (consume_chars): Handle charset annotation. Utilize the above two
27057 functions.
27058 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27059 buffer, get the deleted text as a string and set
27060 coding->src_object to that string.
27061 (detect_coding, detect_coding_system): Use the new struct
27062 coding_detection_info.
27063
27064 * coding.h (struct coding_detection_info): New structure.
27065 (struct coding_system): Adjust prototype of the member `detector'.
27066 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27067
27068 2008-02-01 Kenichi Handa <handa@m17n.org>
27069
27070 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27071
27072 2008-02-01 Dave Love <fx@gnu.org>
27073
27074 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27075 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27076 to new local and nullify apropos_accumulate before returning.
27077 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27078
27079 2008-02-01 Kenichi Handa <handa@m17n.org>
27080
27081 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27082 correctly.
27083
27084 2008-02-01 Dave Love <fx@gnu.org>
27085
27086 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27087
27088 2008-02-01 Kenichi Handa <handa@m17n.org>
27089
27090 The following changes are to make character composition happen
27091 automatically on displaying.
27092
27093 * Makefile.in (lisp, shortlisp): Add composite.elc.
27094
27095 * composite.h (Qauto_composed, Vauto_composition_function)
27096 (Qauto_composition_function): Extern them.
27097
27098 * composite.c (Vcomposition_function_table)
27099 (Qcomposition_function_table): Delete variables.
27100 (Qauto_composed, Vauto_composition_function)
27101 (Qauto_composition_function): New variables.
27102 (run_composition_function): Don't call
27103 compose-chars-after-function.
27104 (update_compositions): Clear `auto-composed' text property.
27105 (compose_chars_in_text): Delete this function.
27106 (syms_of_composite): Staticpro Qauto_composed and
27107 Qauto_composition_function. Declare Vauto_composition_function as
27108 a Lisp variable.
27109
27110 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27111
27112 * xdisp.c (it_props): Add an entry for Qauto_composed.
27113 (handle_auto_composed_prop): New function.
27114
27115 * xselect.c (selection_data_to_lisp_data): Don't call
27116 compose_chars_in_text.
27117
27118 2008-02-01 Dave Love <fx@gnu.org>
27119
27120 * keyboard.c (read_char): Modify checking around use of
27121 Vkeyboard_translate_table.
27122
27123 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27124 and fix C types.
27125
27126 2008-02-01 Kenichi Handa <handa@m17n.org>
27127
27128 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27129 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27130 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27131 the case that the last byte is '\r' correctly.
27132 (decode_coding): Flush out the unprocessed data correctly.
27133 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27134
27135 2008-02-01 Dave Love <fx@gnu.org>
27136
27137 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27138 Add XK_ISO... case.
27139 (xaw_scroll_callback): Revert last change.
27140
27141 2008-02-01 Kenichi Handa <handa@m17n.org>
27142
27143 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27144
27145 2008-02-01 Kenichi Handa <handa@m17n.org>
27146
27147 * xfaces.c (Vface_resizing_fonts): New variable.
27148 (struct font_name): New member `resizing_ratio'.
27149 (font_resizing_ratio): New function.
27150 (split_font_name): Set font->resizing_ratio.
27151 (better_font_p): Pay attention to font->resizing_ratio.
27152 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27153 RESX, and RESY fields.
27154 (try_alternative_families): Try scalable fonts if
27155 Vscalable_fonts_allowed is not Qt.
27156 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27157
27158 2008-02-01 Dave Love <fx@gnu.org>
27159
27160 * xterm.c (xaw_scroll_callback): Cast correctly.
27161
27162 2008-02-01 Dave Love <fx@gnu.org>
27163
27164 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27165 (lispy_kana_keys): Comment out.
27166 (make_lispy_event) [XK_kana_A]: Comment out.
27167
27168 * xterm.c (xaw_scroll_callback): Cast call_data.
27169 (XTread_socket): Deal with ASCII keysyms.
27170 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27171
27172 2008-02-01 Dave Love <fx@gnu.org>
27173
27174 * xterm.c (Vx_keysym_table): New.
27175 (syms_of_xterm): Initialize it.
27176 (XTread_socket): Use it.
27177 From head: Eliminate incorrect optimization that tried to avoid
27178 decoding the output of X*LookupString.
27179 (x_get_font_repertory): Delete charset declaration.
27180
27181 2008-02-01 Kenichi Handa <handa@m17n.org>
27182
27183 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27184 return 0.
27185 (Fdefine_coding_system_internal):
27186 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
27187
27188 2008-02-01 Dave Love <fx@gnu.org>
27189
27190 * coding.c (Fcheck_coding_system): Doc fix.
27191
27192 * editfns.c (Finsert_byte): Return a proper value.
27193
27194 2008-02-01 Kenichi Handa <handa@m17n.org>
27195
27196 * coding.c (decode_coding): Fix args to translate_chars.
27197 Pay attention to Vstandard_translation_table_for_decode.
27198 (encode_coding): Fix args to translate_chars. Pay attention to
27199 Vstandard_translation_table_for_encode.
27200
27201 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27202 SINGLE_BYTE_CHAR_P.
27203
27204 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27205 not by SINGLE_BYTE_CHAR_P.
27206
27207 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27208 SINGLE_BYTE_CHAR_P.
27209
27210 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27211 SINGLE_BYTE_CHAR_P.
27212
27213 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27214 by SINGLE_BYTE_CHAR_P.
27215
27216 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27217 SINGLE_BYTE_CHAR_P.
27218
27219 2008-02-01 Dave Love <fx@gnu.org>
27220
27221 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27222
27223 2008-02-01 Dave Love <fx@gnu.org>
27224
27225 * fns.c (Flanginfo): Fix typo.
27226
27227 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27228
27229 2008-02-01 Kenichi Handa <handa@m17n.org>
27230
27231 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27232 (detect_coding_emacs_mule, detect_coding_iso_2022)
27233 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27234 incomplete byte sequence. Don't update *mask when correctly detected.
27235 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27236 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27237 (detect_coding, detect_coding_system): Adjust for the changes above.
27238
27239 2008-02-01 Kenichi Handa <handa@m17n.org>
27240
27241 * character.c (char_string): Rename from
27242 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27243 (string_char): Rename from string_char.
27244
27245 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27246 if C is greater than MAX_3_BYTE_CHAR.
27247 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27248 Call string_char instead of string_char_with_unification.
27249
27250 2008-02-01 Dave Love <fx@gnu.org>
27251
27252 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27253
27254 2008-02-01 Kenichi Handa <handa@m17n.org>
27255
27256 * keymap.c (push_key_description): Pay attention to force_multibyte.
27257
27258 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27259
27260 2008-02-01 Dave Love <fx@gnu.org>
27261
27262 * charset.c (define_charset_internal): Rename `supprementary'.
27263
27264 * Makefile.in (lisp, shortlisp): Remove latin-N.
27265
27266 2008-02-01 Dave Love <fx@gnu.org>
27267
27268 * xfns.c (x_window, x_window): Use use_xim.
27269
27270 * xterm.c (use_xim): Initialize.
27271 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27272 (x_term_init): Maybe set use_xim.
27273
27274 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27275
27276 2008-02-01 Kenichi Handa <handa@m17n.org>
27277
27278 * search.c (search_buffer): Fix case-fold-search of multibyte
27279 characters.
27280 (boyer_moore): Rename the last argument to char_high_bits.
27281
27282 2008-02-01 Kenichi Handa <handa@m17n.org>
27283
27284 * xdisp.c (display_string): Fix for the case of zero width glyph.
27285
27286 * xfns.c (x_set_font): Change the error message of the case that
27287 x_new_fontset returns Qt.
27288
27289 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27290 (Finternal_set_lisp_face_attribute): Use signal_error for the
27291 error of invalid fontset.
27292
27293 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27294 fontset, return Qt.
27295
27296 2008-02-01 Dave Love <fx@gnu.org>
27297
27298 * unexelf.c (unexec): Make .got handling not SGI-specific.
27299
27300 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27301
27302 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27303
27304 * keyboard.c (read_key_sequence): Fix type error.
27305
27306 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27307 Fix type error.
27308
27309 * fontset.c (fontset_add): Return Lisp_Object.
27310
27311 2008-02-01 Dave Love <fx@gnu.org>
27312
27313 * charset.h (charset_ordered_list_tick): Declare extern.
27314
27315 2008-02-01 Kenichi Handa <handa@m17n.org>
27316
27317 The following changes (and some of 2008-02-01 changes of mine) are
27318 for handling syntax, category, and case conversion for unibyte
27319 characters by converting them to multibyte on the fly. With these
27320 changes, we don't have to setup syntax and case tables for unibyte
27321 characters in each language environment.
27322
27323 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27324 multibyte if necessary.
27325
27326 * bytecode.c (Fbyte_code): Likewise.
27327
27328 * character.h (LEADING_CODE_LATIN_1_MIN)
27329 (LEADING_CODE_LATIN_1_MAX): New macros.
27330 (unibyte_to_multibyte_table): Extern it.
27331 (unibyte_char_to_multibyte): New macro.
27332 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27333 (CHAR_LEADING_CODE): New macro.
27334 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27335
27336 * character.c (unibyte_to_multibyte_table): New variable.
27337 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27338 (multibyte_char_to_unibyte): If C is an eight-bit character,
27339 convert it to the corresponding byte value.
27340
27341 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27342 not 1, signals an error. Update the elements of
27343 unibyte_to_multibyte_table.
27344 (init_charset_once): Initialize unibyte_to_multibyte_table.
27345 (syms_of_charset): Define the charset `iso-8859-1'.
27346
27347 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27348 as is without converting it to unibyte. In a unibyte buffer,
27349 convert C to multibyte before checking the syntax.
27350
27351 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27352
27353 * minibuf.c (Fminibuffer_complete_word): Use the macro
27354 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27355
27356 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27357
27358 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
27359 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27360 If that is zero, convert an eight-bit char to multibyte.
27361 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27362 non-emacs case.
27363 (PATFETCH): Convert an eight-bit char to multibyte.
27364 (HANDLE_UNIBYTE_RANGE): New macro.
27365 (regex_compile): Setup the compiled pattern for multibyte chars
27366 even if the given regex string is unibyte. Use PATFETCH_RAW
27367 instead of PATFETCH in many places. To handle `charset'
27368 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27369 only for ASCII chars.
27370 (analyse_first) <exactn>: Simplify because the compiled pattern
27371 is multibyte.
27372 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27373 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27374 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27375 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27376 multibyte always 1.
27377 (re_search_2): In emacs, set the locale variable multibyte to 1,
27378 otherwise to 0. New local variable target_multibyte. Check it
27379 to decide the multibyteness of STR1 and STR2.
27380 If target_multibyte is zero, convert unibyte chars to multibyte
27381 before translating and checking fastmap.
27382 (TARGET_CHAR_AND_LENGTH): New macro.
27383 (re_match_2_internal): In emacs, set the locale variable multibyte
27384 to 1, otherwise to 0. New local variable target_multibyte.
27385 Check it to decide the multibyteness of STR1 and STR2.
27386 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
27387 <charset, charset_not>: If multibyte is nonzero, check fastmap
27388 only for ASCII chars. Call bcmp_translate with
27389 target_multibyte, not with multibyte.
27390 <begline>: Declare the local variable C as `unsigned'.
27391 (bcmp_translate): Change the last arg name to target_multibyte.
27392
27393 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27394 the regexp pattern and the matching target. Set cp->buf.multibyte
27395 to the multibyteness of the regexp pattern. Set
27396 cp->but.target_multibyte to the multibyteness of the matching target.
27397 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27398 FETCH_STRING_CHAR_ADVANCE.
27399 (Freplace_match): Convert unibyte chars to multibyte.
27400
27401 * syntax.c (char_quoted, back_comment, scan_words)
27402 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27403 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27404 unibyte chars to multibyte.
27405 (skip_chars): Delete the arg syntaxp, and move the code for
27406 handling syntaxes to skip_syntaxes. Change callers.
27407 Fix the case that the multibyteness of STRING and the current
27408 buffer doesn't match.
27409 (skip_syntaxes): New function.
27410 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27411 SINGLE_BYTE_CHAR_P.
27412
27413 2008-02-01 Kenichi Handa <handa@m17n.org>
27414
27415 * xfaces.c (QCfontset): New variable.
27416 (LFACE_FONTSET): New macro.
27417 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27418 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27419 (Finternal_set_lisp_face_attribute)
27420 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27421 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27422 check also LFACE_FONTSET_INDEX.
27423 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27424 attrs[LFACE_FONT_INDEX].
27425 (syms_of_xfaces): Intern and staticpro QCfontset.
27426
27427 * dispextern.h (enum lface_attribute_index): New member
27428 LFACE_FONTSET_INDEX.
27429
27430 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27431
27432 2008-02-01 Kenichi Handa <handa@m17n.org>
27433
27434 * coding.c (coding_set_destination): Fix coding->destination for
27435 the case converting a region.
27436 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27437 (encode_coding_object): Fix coding->dst_pos and
27438 coding->dst_pos_byte for the case converting a region.
27439
27440 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27441
27442 * character.h (BYTE8_STRING): New macro.
27443
27444 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27445
27446 2008-02-01 Kenichi Handa <handa@m17n.org>
27447
27448 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27449 characters by octal form.
27450
27451 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27452
27453 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27454 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27455 _fetch_multibyte_char_len.
27456 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27457
27458 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27459
27460 * casefiddle.c (casify_object): Simplify. Handle the case that
27461 the case conversion change the byte length.
27462 (casify_region): Likewise.
27463
27464 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27465
27466 * character.c (_fetch_multibyte_char_len): Delete this variable.
27467 (syms_of_character): Setup Vprintable_chars.
27468
27469 * editfns.c (Fchar_equal): Fix for the unibyte case.
27470 (Finsert_byte): New function.
27471 (syms_of_editfns): Defsubr it.
27472
27473 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27474 of direct code 0x3ffff.
27475
27476 * search.c (Freplace_match): Fix for the unibyte case.
27477
27478 2008-02-01 Kenichi Handa <handa@m17n.org>
27479
27480 * lread.c (safe_to_load_p): Fix the logic.
27481
27482 * syntax.c (scan_words): Don't treat characters belonging to
27483 different scripts as constituting a word.
27484
27485 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27486
27487 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27488
27489 * emacs.c (main): In the case of --unibyte, instead of aborting on
27490 finding non-empty buffer, make it unibyte.
27491
27492 2008-02-01 Kenichi Handa <handa@m17n.org>
27493
27494 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27495 to create a fontset.
27496
27497 2008-02-01 Dave Love <fx@gnu.org>
27498
27499 * character.c (Funibyte_char_to_multibyte): Doc fix.
27500
27501 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27502
27503 2008-02-01 Kenichi Handa <handa@m17n.org>
27504
27505 * fontset.c (fontset_add): Make the type `int'.
27506 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27507
27508 * character.c (unibyte_char_to_multibyte)
27509 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27510 charset_unibyte, not charset_primary.
27511
27512 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27513
27514 * charset.c (charset_unibyte): Rename from charset_primary.
27515 (Funibyte_charset): Rename from Fprimary_charset.
27516 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27517 (syms_of_charset): Adjust for the above changes.
27518
27519 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27520 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27521 it->multibyte_p is zero.
27522
27523 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27524 Delete extern.
27525
27526 2008-02-01 Kenichi Handa <handa@m17n.org>
27527
27528 * coding.c (Fdefine_coding_system_internal): Fix category setting
27529 for a coding system of type iso-2022.
27530
27531 2008-02-01 Kenichi Handa <handa@m17n.org>
27532
27533 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27534
27535 2008-02-01 Kenichi Handa <handa@m17n.org>
27536
27537 * syntax.c (Vnext_word_boundary_function_table): New variable.
27538 (next-word-boundary-function-table): Declare it as a Lisp variable
27539 in syms_of_syntax.
27540 (scan_words): Call functions in Vnext_word_boundary_function_table
27541 if any.
27542
27543 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27544
27545 * fontset.c (fs_load_font): If fontp->charset is not negative,
27546 return fontp without setting its members.
27547
27548 2008-02-01 Dave Love <fx@gnu.org>
27549
27550 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27551
27552 * m/sparc.h (HAVE_ALLOCA): Delete.
27553
27554 * s/irix6-5.h: Don't include strings.h.
27555 (bcopy, bzero, bcmp): Don't undef.
27556
27557 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27558
27559 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27560 (TIOCSIGSEND): Don't test IRIX6.
27561 (bcopy, bzero, bcmp): Define conditionally.
27562
27563 2008-02-01 Kenichi Handa <handa@m17n.org>
27564
27565 * buffer.c (Qas, Qmake, Qto): New variables.
27566 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27567 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27568
27569 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27570 we are inserting a process output into a multibyte buffer.
27571
27572 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27573 multibyte_char_to_unibyte.
27574
27575 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27576 by the primary charset, make it eight-bit char.
27577 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27578
27579 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27580 (charset_8_bit__control, charset_8_bit_graphic)
27581 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27582 (define_charset_internal): New function.
27583 (syms_of_charset): Call define_charset_internal for pre-defined
27584 charsets.
27585
27586 * charset.h (charset_8_bit): Extern it.
27587
27588 * coding.c (make_conversion_work_buffer): Adjust for the change
27589 of Fset_buffer_multibyte.
27590 (encode_coding_raw_text): Increment p0 in the loop.
27591
27592 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27593
27594 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27595 Adjust for the change of Fset_buffer_multibyte.
27596
27597 * fns.c (Fstring_to_multibyte): New function.
27598 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27599
27600 2008-02-01 Dave Love <fx@gnu.org>
27601
27602 * xfns.c (x_put_x_image): Declare args.
27603
27604 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27605 (try_font_list): Declare an arg.
27606
27607 * xdisp.c (message2_nolog, set_message): Declare an arg.
27608
27609 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27610
27611 * syntax.c (scan_sexps_forward): Declare an arg.
27612
27613 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27614 Declare an arg.
27615
27616 * lisp.h (Fnew_fontset): Declare.
27617
27618 * keymap.c (push_key_description): Call CHARACTERP correctly.
27619
27620 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27621 (face_for_char): Delete unused vars.
27622 (Fset_fontset_font): Doc fix. Delete unused vars.
27623
27624 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27625
27626 * composite.c (update_compositions): Declare arg.
27627
27628 * cm.c (calccost, cmgoto): Declare args.
27629
27630 * charset.c: Remove `emacs' conditional. Doc fixes.
27631 (map_char_table_for_charset): Declare.
27632
27633 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27634
27635 * ccl.c: Remove `emacs' conditional.
27636
27637 2008-02-01 Kenichi Handa <handa@m17n.org>
27638
27639 The following changes are to allow specifying multiple font
27640 patterns for a character range (specified by script or charset).
27641
27642 * Makefile.in (abbrev.o): Depend on syntax.h.
27643 (xfaces.o): Depend on charset.h.
27644
27645 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27646 SINGLE_BYTE_CHAR_P.
27647
27648 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27649
27650 * character.h (Vchar_script_table): Extern it.
27651
27652 * character.c (Vscript_alist): Delete.
27653 (Vchar_script_table, Qchar_script_table): New variable.
27654 (syms_of_character): Declare Vchar_script_table as a lisp variable
27655 and initialize it.
27656
27657 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27658 have property char-table-extra-slots, make no extra slot.
27659
27660 * dispextern.h (struct face): Delete member `charset'.
27661 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27662 SINGLE_BYTE_CHAR_P.
27663 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27664 Add prototypes.
27665 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27666 (generate_ascii_font_name): Rename from generate_ascii_font.
27667
27668 * fontset.h (get_font_repertory_func): New prototype.
27669 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27670 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27671
27672 * fontset.c (Qprepend, Qappend): New variables.
27673 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27674 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27675 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27676 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27677 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27678 (load_font_get_repertory): New functions.
27679 (fontset_set): Delete.
27680 (fontset_face): New arg FACE. Return face ID, not face.
27681 Complete re-write to handle new fontset structure. Change caller.
27682 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27683 (face_for_char): Don't call lookup_face.
27684 (make_fontset_for_ascii_face): New arg FACE.
27685 (fs_load_font): New arg CHARSET_ID. Don't check
27686 Vfont_encoding_alist here.
27687 (find_font_encoding): New function.
27688 (list_fontsets): Use STRINGP, not ! NILP.
27689 (accumulate_script_ranges): New function.
27690 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27691 Completely re-written to handle new fontset structure.
27692 (Ffontset_font): Return a copy of element.
27693 (syms_of_fontset): Define symbols Qprepend and Qappend.
27694 Fix docstring of font-encoding-alist.
27695
27696 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27697 (Fset_fotset_font): Fix arguments to 5.
27698
27699 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27700
27701 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27702 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27703 (highlight_trailing_whitespace): Adjust for the change of
27704 lookup_named_face.
27705
27706 * xfaces.c: Include charset.h.
27707 (load_face_font): Delete argument C. Change caller.
27708 (generate_ascii_font_name): Rename from generate_ascii_font.
27709 (font_name_registry): New function.
27710 (cache_face): Store ascii faces before non-ascii faces in buckets.
27711 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27712 Lookup only ascii faces.
27713 (lookup_non_ascii_face): New function.
27714 (lookup_named_face): Delete argument C. Change caller.
27715 (lookup_derived_face): Delete argument C. Change caller.
27716 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27717 a string, just call font_list with it.
27718 (choose_face_font): Delete arguments FACE and C. New arg
27719 FONT_SPEC. Change caller.
27720 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27721 Change caller.
27722 (realize_non_ascii_face): New function.
27723 (realize_x_face): Call load_face_font here.
27724 (realize_tty_face): Delete argument C. Change caller.
27725 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27726 get a face ID.
27727 (dump_realized_face): Don't print charset of FACE.
27728
27729 * xfns.c (x_set_font): Always call x_new_fontset and
27730 store_frame_parameter.
27731 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27732 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27733
27734 * xterm.h (x_get_font_repertory): Extern it.
27735
27736 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27737 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27738 it->multibyte_p is zero.
27739 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27740 (x_new_fontset): If FONTSETNAME doesn't match any existing
27741 fontsets, create a new one.
27742 (x_get_font_repertory): New function.
27743
27744 2008-02-01 Kenichi Handa <handa@m17n.org>
27745
27746 * coding.c (Ffind_coding_systems_region_internal): Detect an
27747 ASCII only string correctly.
27748
27749 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27750 version is 0.
27751
27752 2008-02-01 Kenichi Handa <handa@m17n.org>
27753
27754 * lread.c: Include "coding.h".
27755 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27756 (load_each_byte, unread_char): New variables.
27757 (readchar_backlog): Delete.
27758 (readchar): Return a character unless load_each_byte is nonzero.
27759 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27760 cons. If unread_char is not -1, simply return it.
27761 (unreadchar): Handle the case that readcharfun is
27762 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27763 (read_multibyte): Delete.
27764 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27765 (read_emacs_mule_char): New functions.
27766 (Fload): Even if the file doesn't have the extension ".elc", if
27767 safe_to_load_p returns a positive version number, assume that the
27768 file contains bytecompiled code. If the version is less than 22,
27769 load the file while decoding multibyte sequences by emacs-mule.
27770 (readevalloop): Don't use readchar_backlog.
27771 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27772 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27773 (read_escape): Delete the arg BYTEREP.
27774 (read1): Set load_each_byte to 1 temporarily while handling
27775 #@NUMBER. Don't call read_multibyte.
27776 (read_vector): Call Fread with a cons. If readcharfun is
27777 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27778 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27779 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27780 and Qload_force_doc_strings.
27781
27782 2008-02-01 Kenichi Handa <handa@m17n.org>
27783
27784 * xdisp.c (face_before_or_after_it_pos):
27785 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
27786
27787 2008-02-01 Kenichi Handa <handa@m17n.org>
27788
27789 * character.h (TRAILING_CODE_P): New macro.
27790 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27791 (string_char_with_unification): Fix prototype.
27792 (Vscript_alist): Extern it.
27793
27794 * character.c (Vscript_alist): New variable.
27795 (string_char_with_unification, str_as_unibyte)
27796 (string_escape_byte8): Add `const' to local variables.
27797 (syms_of_character): Declare script-alist as a Lisp variable.
27798
27799 * charset.h (Vcharset_ordered_list): Extern it.
27800 (charset_ordered_list_tick): Extern it.
27801 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27802 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27803 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27804 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27805 (Funify_charset): Adjust for the change of Funify_charset.
27806
27807 * charset.c (charset_ordered_list_tick): New variable.
27808 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27809 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
27810 deunify instead of unify a charset.
27811 (string_xstring_p): Add `const' to local variables.
27812 (find_charsets_in_text): Add `const' to arguments and local variables.
27813 (encode_char): Adjust for the change of Funify_charset.
27814 Fix detecting of invalid code.
27815 (Fset_charset_priority): Increment charset_ordered_list_tick.
27816 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27817 and TO_CODE.
27818
27819 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27820 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27821 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27822 (decode_coding_ccl, consume_chars)
27823 (Ffind_coding_systems_region_internal)
27824 (Fcheck_coding_systems_region): Add `const' to local variables.
27825
27826 * print.c (print_object): Use octal form for printing the
27827 contents of a bool vector.
27828
27829 2008-02-01 Dave Love <fx@gnu.org>
27830
27831 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27832 <version == 20>: Refuse to load.
27833
27834 2008-02-01 Dave Love <fx@gnu.org>
27835
27836 * fns.c: Move coding.h.
27837 (Qcodeset, Qdays, Qmonths): New.
27838 (concat): Use CHARACTERP instead of INTEGERP.
27839 (Flocale_codeset): Delete.
27840 (Flanginfo): New function.
27841 (syms_of_fns): Change accordingly.
27842
27843 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27844
27845 2008-02-01 Dave Love <fx@gnu.org>
27846
27847 * casetab.c (init_casetab_once, init_casetab_once):
27848 Fix CHAR_TABLE_SET call.
27849
27850 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27851
27852 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27853
27854 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27855 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27856 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27857
27858 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27859
27860 * coding.c (ENCODE_DESIGNATION, decode_eol)
27861 (make_conversion_work_buffer, code_conversion_restore)
27862 (Fdefine_coding_system_internal): Convert Lisp types.
27863 (code_conversion_restore): Use EQ, not ==.
27864 (Fencode_coding_string): Fix code_convert_string call.
27865
27866 * coding.h (code_convert_region): Fix prototype.
27867
27868 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27869
27870 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27871 (Ffontset_info): Convert Lisp types.
27872
27873 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27874
27875 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27876
27877 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27878
27879 * chartab.c: Include "...h", not <...h> in some cases.
27880
27881 * callproc.c (Fcall_process): Remove unused variables.
27882
27883 2008-02-01 Dave Love <fx@gnu.org>
27884
27885 * coding.c (Fset_coding_system_priority): Allow null arg list.
27886
27887 2008-02-01 Dave Love <fx@gnu.org>
27888
27889 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27890 (Fself_insert_and_exit): Use CHARACTERP.
27891
27892 * callproc.c (Fcall_process): Remove unused vars.
27893
27894 * xterm.c (XTread_socket): Add extra dead keysyms.
27895
27896 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27897
27898 * dispextern.h: Remove prototypes for redraw_frame,
27899 redraw_garbaged_frames.
27900
27901 * cmds.c (Fself_insert_command): Use CHARACTERP.
27902
27903 * chartab.c (make_sub_char_table): Remove unused var.
27904 (Fset_char_table_default, Fmap_char_table): Doc fix.
27905
27906 * keymap.c (access_keymap): Remove generic char code.
27907 (push_key_description): Use CHARACTERP.
27908
27909 2008-02-01 Dave Love <fx@gnu.org>
27910
27911 * charset.c: Doc fixes.
27912 (Funify_charset): Extra checking.
27913
27914 2008-02-01 Dave Love <fx@gnu.org>
27915
27916 * lread.c: Remove some unused variables.
27917 (safe_to_load_p): If safe, return the magic number version byte.
27918 (Fload): Maybe use load-with-code-conversion.
27919
27920 2008-02-01 Kenichi Handa <handa@m17n.org>
27921
27922 * category.c (Fmodify_category_entry): Don't modify the contents
27923 of category_set for characters out of the range.
27924 Avoid unnecessary modification.
27925
27926 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27927 Vchar_unify_table. The default value of the table is now nil.
27928
27929 * character.c (syms_of_character): Setup Vchar_width_table for
27930 eight-bit-control and raw-byte chars.
27931
27932 * charset.h (enum define_charset_arg_index):
27933 Delete charset_arg_parents and add charset_arg_subset and
27934 charset_arg_superset.
27935 (enum charset_attr_index): Delete charset_parents and add
27936 charset_subset and charset_superset.
27937 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27938 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27939 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27940 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27941 (CHARSET_SUPERSET): New macros.
27942 (charset_work): Extern it.
27943 (ENCODE_CHAR): Use charset_work.
27944 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27945 (map_charset_chars): Extern it.
27946
27947 * charset.c (load_charset_map): Set the default value of encoder
27948 and deunifier char-tables to nil.
27949 (map_charset_chars): Change argument. Change callers.
27950 Use map_char_table_for_charset instead of map_char_table.
27951 (Fmap_charset_chars): New optional args from_code and to_code.
27952 (Fdefine_charset_internal): Adjust for the change of
27953 `define-charset' (:parents -> :subset or :superset).
27954 (charset_work): New variable.
27955 (encode_char, syms_of_charset): Adjust for the change of
27956 Fdefine_charset_internal.
27957 (Ffind_charset_string): Setup the vector `charsets' correctly.
27958
27959 * chartab.c (sub_char_table_ref_and_range): New arg default.
27960 Fix the previous change.
27961 (char_table_ref_and_range): Adjust for the above change.
27962 (map_sub_char_table_for_charset): New function.
27963 (map_char_table_for_charset): New function.
27964
27965 * keymap.c (describe_vector): Handle a char-table directly here.
27966 (describe_char_table): Delete.
27967
27968 * lisp.h (map_charset_chars): Delete.
27969
27970 2008-02-01 Dave Love <fx@gnu.org>
27971
27972 * fns.c (count_combining): Comment out (unused).
27973 (Flocale_codeset): New.
27974 (syms_of_fns): Defsubr it.
27975
27976 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27977 (size_t): Remove.
27978
27979 2008-02-01 Dave Love <fx@gnu.org>
27980
27981 * Makefile.in (chartab.o): Depend on charset.h.
27982
27983 2008-02-01 Kenichi Handa <handa@m17n.org>
27984
27985 * character.c (syms_of_character): Set the default value of
27986 Vprintable_chars to Qnil.
27987
27988 2008-02-01 Dave Love <fx@gnu.org>
27989
27990 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27991
27992 2008-02-01 Kenichi Handa <handa@m17n.org>
27993
27994 * charset.c (load_charset_map): Handle the case that from < to
27995 correctly.
27996
27997 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27998 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27999 Pay attention to raw-8-bit chars.
28000
28001 2008-02-01 Kenichi Handa <handa@m17n.org>
28002
28003 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28004 It is not bytecompiled now.
28005
28006 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28007 (charset_jisx0208): New variables.
28008 (Fdefine_charset_internal): Setup them if appropriate.
28009 (init_charset_once): Initialize them to -1.
28010
28011 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28012 (charset_jisx0208): Extern them.
28013
28014 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28015 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28016 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28017 (setup_iso_safe_charsets): Fix arguments to Fassq.
28018 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28019 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28020 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28021 (encode_coding_iso_2022): Change the 1st arg to
28022 ENCODE_ISO_CHARACTER to a variable.
28023
28024 2008-02-01 Kenichi Handa <handa@m17n.org>
28025
28026 * charset.h (enum define_charset_arg_index): New enums
28027 charset_arg_min_code and charset_arg_max_code.
28028 (struct charset): New member char_index_offset.
28029
28030 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28031 Take charset->char_index_offset into account.
28032 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28033 args[charset_arg_max_code]. Setup charset.char_index_offset.
28034 (syms_of_charset): Fix args to Fdefine_charset_internal.
28035
28036 2008-02-01 Dave Love <fx@gnu.org>
28037
28038 * coding.c (decode_coding_utf_8): Reject overlong sequences.
28039
28040 2008-02-01 Dave Love <fx@gnu.org>
28041
28042 * coding.c: Doc fixes.
28043 (Fcoding_system_aliases): Fix return value.
28044 (Qmac): Remove (duplicated) definition.
28045
28046 2008-02-01 Dave Love <fx@gnu.org>
28047
28048 * charset.c (Fcharset_priority_list, Fset_charset_priority):
28049 New functions.
28050
28051 * character.c (Fstring): Doc fix.
28052
28053 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28054
28055 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
28056 (font-encoding-alist): Doc fix.
28057
28058 2008-02-01 Dave Love <fx@gnu.org>
28059
28060 * term.c (costs_set): Declare static, non-initialized for pcc.
28061 (encode_terminal_code): Remove unused var.
28062
28063 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28064 for K&R.
28065
28066 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28067
28068 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28069 (suffixes): Move out of make_subsidiaries for K&R.
28070
28071 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28072
28073 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28074
28075 2008-02-01 Dave Love <fx@gnu.org>
28076
28077 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28078
28079 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28080
28081 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28082
28083 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28084
28085 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28086
28087 2008-02-01 Kenichi Handa <handa@m17n.org>
28088
28089 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28090 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28091
28092 2008-02-01 Kenichi Handa <handa@m17n.org>
28093
28094 * coding.c (decode_coding_charset): Adjust for the change of
28095 Fdefine_coding_system_internal.
28096 (Fdefine_coding_system_internal): For a coding system of
28097 `charset' type, store a list of charset IDs in
28098 `charset_attr_charset_valids' element of coding attributes.
28099
28100 2008-02-01 Kenichi Handa <handa@m17n.org>
28101
28102 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
28103 (emacs_mule_char): New arg src. Delete arg `composition'.
28104 Change caller. Handle 2-byte and 3-byte charsets correctly.
28105 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28106 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28107 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
28108 (DECODE_EMACS_MULE_21_COMPOSITION):
28109 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
28110 sequence.
28111 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28112 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28113 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28114 and alt&rule composition.
28115 (decode_coding_iso_2022): Handle composition correctly.
28116 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28117
28118 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28119 re-defining a charset. If the charset has :emacs-mule-id, setup
28120 emacs_mule_bytes.
28121 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28122
28123 2008-02-01 Kenichi Handa <handa@m17n.org>
28124
28125 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28126 (encode_coding_big5, encode_coding_charset): If coding requires safe
28127 encoding, produce a character specified by
28128 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28129
28130 2008-02-01 Dave Love <fx@gnu.org>
28131
28132 * xterm.c (XSetIMValues): Declare.
28133
28134 * process.c: Conditionally include sys/wait.h, pty.h.
28135
28136 * print.c (print_object): Fix print format for 64-bit systems.
28137
28138 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28139
28140 * buffer.c (emacs_strerror): Declare.
28141
28142 * fontset.c (Fclear_face_cache): Declare.
28143 (accumulate_font_info): Comment-out (unused).
28144 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28145 variables.
28146
28147 * character.h (string_escape_byte8): Declare.
28148
28149 * charset.c (load_charset_map, load_charset_map_from_file):
28150 Remove unused vars.
28151 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28152 (Fmap_charset_chars): Doc fix.
28153
28154 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28155 (Fset_coding_system_priority, Fset_coding_system_priority)
28156 (Fdefine_coding_system_internal): Doc fix.
28157
28158 2008-02-01 Dave Love <fx@gnu.org>
28159
28160 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28161
28162 2008-02-01 Kenichi Handa <handa@m17n.org>
28163
28164 * character.c (string_escape_byte8): Make multibyte string with
28165 correct size.
28166
28167 * charset.c (Fmake_char): Delete unnecessary code.
28168
28169 2008-02-01 Kenichi Handa <handa@m17n.org>
28170
28171 * xfns.c (x_encode_text): Allocate coding.destination here, and
28172 call encode_coding_object with dst_object Qnil.
28173
28174 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28175 multibyte form correctly.
28176
28177 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28178 against Vfont_encoding_alist.
28179
28180 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28181 handling of charset list.
28182 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28183 (decode_coding_object): Move point to coding->dst_pos before
28184 calling post-read-conversion function.
28185 (encode_coding_object): Give correct arguments to
28186 pre-write-conversion. Ignore the return value of
28187 pre-write-conversion function. Pay attention to the case that
28188 pre-write-conversion changes the current buffer. If dst_object is
28189 Qt, even if coding->src_bytes is zero, allocate at least one byte
28190 to coding->destination.
28191
28192 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28193
28194 * charset.c (Fmake_char): Make it more backward compatible.
28195 (Fmap_charset_chars): Fix docstring.
28196
28197 2008-02-01 Dave Love <fx@gnu.org>
28198
28199 * coding.c: Doc fixes.
28200 (Fdefine_coding_system_alias): Use names, not symbols, in
28201 coding-system-alist.
28202
28203 2008-02-01 Kenichi Handa <handa@m17n.org>
28204
28205 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28206 of calling free_realized_face.
28207
28208 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28209
28210 * charset.c (read_hex): Don't treat SPC as a comment starter.
28211 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28212 (Fdecode_char): Fix typo.
28213
28214 2008-02-01 Kenichi Handa <handa@m17n.org>
28215
28216 * charset.h (struct charset): New member `code_space_mask'.
28217
28218 * coding.c (coding_set_source): Delete the local variable beg_byte.
28219 (encode_coding_charset, Fdefine_coding_system_internal):
28220 Delete the local variable charset.
28221 (Fdefine_coding_system_internal):
28222 Setup attrs[coding_attr_charset_valids] correctly.
28223
28224 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28225 member to check if CODE is valid or not.
28226 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28227 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28228 is within the range of charset->min_code and carset->max_code.
28229
28230 2008-02-01 Dave Love <fx@gnu.org>
28231
28232 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28233
28234 * dispextern.h (generate_ascii_font): Fix return type.
28235
28236 * xfaces.c (generate_ascii_font): Fix arg declaration.
28237
28238 * coding.c (coding_inherit_eol_type)
28239 (Fset_terminal_coding_system_internal)
28240 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28241
28242 2008-02-01 Kenichi Handa <handa@m17n.org>
28243
28244 * coding.c (decode_coding_charset, encode_coding_charset):
28245 Handle multiple charsets correctly.
28246
28247 2008-02-01 Kenichi Handa <handa@m17n.org>
28248
28249 * search.c (boyer_moore): Fix handling of multibyte character
28250 translation.
28251
28252 * xdisp.c (display_mode_element): When the variable `elt' is
28253 changed, update `this' and `lisp_string'.
28254
28255 2008-02-01 Kenichi Handa <handa@m17n.org>
28256
28257 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28258
28259 * callproc.c (Fcall_process): Be sure to give the current buffer
28260 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28261
28262 * charset.c (struct charset_map_entries): New struct.
28263 (load_charset_map): Rename from parse_charset_map. New args
28264 entries and n_entries. Change caller.
28265 (load_charset_map_from_file): Rename from load_charset_map.
28266 Change caller. New arg control_flag. Call load_charset_map at
28267 the tail.
28268 (load_charset_map_from_vector): New function.
28269 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28270 (encode_char): If the charset is compact, change a character index
28271 to a code point.
28272
28273 * coding.c (coding_alloc_by_making_gap): Check the case that the
28274 source and destination are the same correctly.
28275 (decode_coding_raw_text): Set coding->consumed_char and
28276 coding->consumed to 0.
28277 (produce_chars): If coding->chars_at_source is nonzero, update
28278 coding->consumed_char and coding->consumed before calling
28279 alloc_destination.
28280 (Fdefine_coding_system_alias): Register ALIAS in
28281 Vcoding_system_alist.
28282 (syms_of_coding): Define `no-conversion' coding system at the tail.
28283
28284 * fileio.c (Finsert_file_contents): Set coding_system instead of
28285 val. If the current buffer is multibyte, always call
28286 decode_coding_gap.
28287
28288 * xfaces.c (try_font_list): Give higher priority to fontset's
28289 family than face's family.
28290
28291 2008-02-01 Kenichi Handa <handa@m17n.org>
28292
28293 * callproc.c (Fcall_process): Be sure to give the current buffer
28294 to decode_coding_c_string.
28295
28296 * xfaces.c (try_font_list): Give a family specified in a fontset
28297 higher priority than a family specified in a face.
28298
28299 2008-02-01 Kenichi Handa <handa@m17n.org>
28300
28301 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28302 Fix arguments to insert_from_buffer.
28303
28304 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28305
28306 2008-02-01 Kenichi Handa <handa@m17n.org>
28307
28308 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28309 (decode_coding_gap): Set coding->dst_multibyte correctly.
28310
28311 2008-02-01 Kenichi Handa <handa@m17n.org>
28312
28313 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28314 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28315 (encode_coding_utf_16): Substitute coding->default_char for
28316 non-Unicode characters.
28317 (decode_coding): Don't call record_insert here.
28318 (setup_coding_system): Initialize `surrogate' of
28319 coding->spec.utf_16 to 0.
28320 (EMIT_ONE_BYTE): Fix for multibyte case.
28321
28322 * insdel.c (insert_from_gap): Call record_insert.
28323
28324 2008-02-01 Kenichi Handa <handa@m17n.org>
28325
28326 * casefiddle.c (casify_region): Fix multibyte case.
28327
28328 * character.c (c_string_width): Add return type `int'.
28329 (char_string_with_unification): Delete arg ADVANCED.
28330
28331 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28332 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28333 (CHAR_STRING_ADVANCE): Make it do-while statement.
28334
28335 * chartab.c (sub_char_table_set_range): Optimize for the case
28336 DEPTH == 3. Add workaround code for a GCC optimization bug.
28337
28338 * charset.c (parse_charset_map): Remove an unused variable.
28339
28340 * coding.c: Delete unused variables.
28341
28342 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28343 earlier. If inserted is zero and the coding system doesn't
28344 require flushing, don't call decode_coding_gap.
28345
28346 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28347
28348 2008-02-01 Kenichi Handa <handa@m17n.org>
28349
28350 The following changes are for using Unicode as an internal
28351 character model, and use UTF-8 format for buffer/string
28352 representation.
28353
28354 * .gdbinit (xchartable): Adjust for the change of char table structure.
28355 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28356
28357 * Makefile.in (obj): Add character.o and chartab.o.
28358 (lisp, shortlisp): Remove utf-8.elc.
28359 (*.o): For many files, change dependency on charset.h to
28360 character.h, and add dependency on character.h.
28361 (character.o, chartab.o): New targets.
28362
28363 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28364 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28365 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28366 of "charset.h".
28367
28368 * dired.c, filelock.c: Include "character.h".
28369
28370 * alloc.c: Include "character.h" instead of "charset.h".
28371 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28372 (syms_of_alloc): Remove defsubr for Smake_char_table.
28373
28374 * buffer.c: Include "character.h" instead of "charset.h", don't
28375 include "coding.h".
28376 (Fset_buffer_multibyte): Adjust for UTF-8.
28377
28378 * buffer.h: EXFUN Fbuffer_live_p.
28379
28380 * callproc.c: Include "character.h" instead of "charset.h".
28381 (Fcall_process): Big change for the new code-conversion APIs.
28382
28383 * casetab.c: Include "character.h" instead of "charset.h".
28384 (set_canon, set_identity, shuffle): Adjust for the new
28385 map_char_table spec.
28386 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28387 accessing the char table structure.
28388
28389 * chartab.c: New file that implements char table.
28390
28391 * category.c: Include "character.h".
28392 (copy_category_entry): New function.
28393 (copy_category_table): Call map_char_table and copy_category_entry.
28394 (Fmake_category_table): Initialize all top-level slots.
28395 (char_category_set): New function.
28396 (modify_lower_category_set): Delete.
28397 (Fmodify_category_entry): Call char_table_ref_and_range.
28398
28399 * category.h (CATEGORY_SET): Just call char_category_set.
28400
28401 * ccl.c: Include "character.h".
28402 (Qccl, Qcclp): New variables.
28403 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28404 it's less than 256.
28405 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28406 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28407 and DST type.
28408 (ccl_driver): Change types of argument, adjust code accordingly.
28409 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28410 ccl_driver.
28411 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28412
28413 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28414 New members src_multibyte, dst_multibyte, consumed, and produced.
28415 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28416 (CODING_SPEC_CCL_PROGRAM): New macro.
28417 (ccl_driver): Update prototype.
28418 (Qccl, Qcclp, Fccl_program_p): Extern them.
28419 (CHECK_CCL_PROGRAM): New macro.
28420
28421 * character.c, character.h, chartab.c: New files.
28422
28423 * charset.c: Mostly re-written. Move character and multibyte sequence
28424 handling codes to character.c.
28425
28426 * charset.h: Mostly re-written. Move character and multibyte sequence
28427 handling codes to character.h.
28428
28429 * coding.c, coding.h: Mostly re-written.
28430
28431 * composite.c: Include "character.h" instead of "charset.h".
28432 (CHAR_WIDTH): Move to character.h.
28433 (HASH_KEY, HASH_VALUE): Delete.
28434
28435 * composite.h (enum composition_method): Change order of enumeration
28436 symbols.
28437
28438 * data.c: Include "character.h" instead of "charset.h".
28439 (Faref): Call CHAR_TABLE_REF for a char table.
28440 (Faset): Call CHAR_TABLE_SET for a char table.
28441
28442 * dispextern.h (free_realized_face, check_face_attribytes)
28443 (generate_ascii_font): Extern them.
28444 (free_realized_multibyte_face): Delete extern.
28445
28446 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28447 table structure.
28448
28449 * editfns.c: Include "character.h" instead of "charset.h".
28450 (Fchar_to_string): Always call CHAR_STRING.
28451
28452 * emacs.c (main): Call init_charset_once, init_charset,
28453 syms_of_chartab, and syms_of_character.
28454
28455 * fileio.c: Include "character.h" instead of "charset.h".
28456 (Finsert_file_contents): Big change for the new code-conversion API.
28457 (choose_write_coding_system, Fwrite_region): Likewise.
28458 (build_annotations_2): Delete.
28459 (e_write): Big change for the new code-conversion API.
28460
28461 * fns.c: Include "character.h" instead of "charset.h".
28462 (copy_sub_char_table): Move to chartab.c.
28463 (Fcopy_sequence): Call copy_char_table for a char table.
28464 (concat): Delete codes calling count_multibyte.
28465 (string_char_to_byte, string_byte_to_char): Adjust for the new
28466 multibyte form.
28467 (internal_equal): Adjust for the change of char table structure.
28468 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28469 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28470 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28471 (char_table_translate, optimize_sub_char_table)
28472 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28473 chartab.c.
28474 (char_table_ref_and_index): Delete.
28475 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28476 (Fmd5): Call preferred_coding_system instead of accessing
28477 Vcoding_category_list. Adjust for the new code-conversion API.
28478 (syms_of_fns): Move defsubr for char table related functions to
28479 chartab.c.
28480
28481 * fontset.c: Mostly re-written.
28482
28483 * fontset.h (struct font_info): Change type of the member encoding_type.
28484 (enum FONT_SPEC_INDEX): New enum.
28485 (fontset_font_pattern, fs_load_font): Update prototype.
28486 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28487
28488 * indent.c: Include "character.h" instead of "charset.h".
28489 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28490
28491 * insdel.c: Include "character.h" instead of "charset.h".
28492 (copy_text): Don't refer to Vnonascii_translation_table.
28493 (insert_from_gap): New function.
28494
28495 * keyboard.c: Include "character.h" instead of "charset.h".
28496 (command_loop_1): Never call direct_output_forward_char before
28497 a non-ASCII character.
28498 (read_char): If Vkeyboard_translate_table is a char table, always
28499 translate a character.
28500
28501 * keymap.c: Include "character.h".
28502 (store_in_keymap): Handle the case that IDX is a cons.
28503 (Fdefine_key): Handle the case that KEY is a cons and the car part
28504 is also a cons (range).
28505 (push_key_description): Adjust for the new character code.
28506 (describe_vector): Call describe_char_table for a char table.
28507 (describe_char_table): New function.
28508
28509 * keymap.h (describe_char_table): Extern it.
28510
28511 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28512 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28513 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28514 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28515 Delete.
28516 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28517 structure.
28518 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28519 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28520 (CHARTAB_SIZE_BITS_3): New macros.
28521 (chartab_size): Extern it.
28522 (struct Lisp_Char_Table): Re-design.
28523 (struct Lisp_Sub_Char_Table): New structure.
28524 (HASH_KEY, HASH_VALUE): Move from fns.c.
28525 (CHARACTERBITS): Define as 22.
28526 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28527 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28528 (GC_SUB_CHAR_TABLE_P): New macro.
28529 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28530 (code_convert_string_norecord): Delete extern.
28531 (init_character_once, syms_of_character, init_charset)
28532 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28533
28534 * lread.c: Include "character.h".
28535 (read_multibyte): New arg NBYTES.
28536 (read_escape): Change the meaning of returned *BYTEREP.
28537 (to_multibyte): Delete.
28538 (read1): Adjust the handling of char table and string.
28539
28540 * print.c: Include "character.h" instead of "charset.h".
28541 (print_string): Convert 8-bit raw bytes to octal form by
28542 string_escape_byte8.
28543 (print_object): Adjust for the new multibyte form. Print 8-bit
28544 raw bytes always in octal form. Handle sub char table correctly.
28545
28546 * process.c: Include "character.h" instead of "charset.h".
28547 (read_process_output, send_process): Adjust for the new
28548 code-conversion API.
28549
28550 * puresize.h (BASE_PURESIZE): Increase.
28551
28552 * regex.c: Include "character.h" instead of "charset.h".
28553 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28554 (regex_compile): Accept a range whose starting and ending
28555 character have different leading bytes.
28556 (analyse_first): Adjust for the above change.
28557
28558 * search.c: Include "character.h" instead of "charset.h".
28559 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28560 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28561
28562 * syntax.c: Include "character.h" instead of "charset.h".
28563 (syntax_parent_lookup): Delete.
28564 (Fmodify_syntax_entry): Accept a cons as CHAR.
28565 (skip_chars): Adjust for the new multibyte form.
28566 (init_syntax_once): Call char_table_set_range instead of directly
28567 accessing the structure of a char table.
28568
28569 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28570 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28571 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28572 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28573
28574 * term.c: Include "buffer.h" and "character.h".
28575 (encode_terminal_code, write_glyphs): Adjust for the new
28576 code-conversion API.
28577 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28578
28579 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28580
28581 * xdisp.c: Include "character.h".
28582 (get_next_display_element): Adjust for the new multibyte form.
28583 (disp_char_vector): Adjust for the new char table structure.
28584 (decode_mode_spec_coding): Adjust for the new structure of
28585 coding system.
28586 (decode_mode_spec): Adjust for the new code-conversion API.
28587
28588 * xfaces.c: Include "character.h" instead of "charset.h".
28589 (load_face_font): Adjust for the change of choose_face_font and
28590 FS_LOAD_FONT.
28591 (generate_ascii_font): New function.
28592 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28593 (set_font_frame_param): Adjust for the change of choose_face_font.
28594 (free_realized_face): Make it public.
28595 (free_realized_faces_for_fontset): Rename from
28596 free_realized_multibyte_face. Free also faces realized for ASCII.
28597 (choose_face_font): Change arguments. Adjust for the change of
28598 fontset_font_pattern and FS_LOAD_FONT.
28599
28600 * xfns.c: Include "character.h".
28601 (x_encode_text): Adjust for the new code-conversion API.
28602
28603 * xselect.c: Don't include "charset.h".
28604 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28605
28606 * xterm.c: Include "character.h".
28607 (x_encode_char): New argument CHARSET. Change caller.
28608 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28609 Call ENCODE_CHAR instead of SPLIT_CHAR.
28610 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28611 CHAR_WIDTH instead of CHARSET_WIDTH.
28612 (XTread_socket): Adjust for the new code-conversion API.
28613 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28614 (x_load_font): Adjust for the change of struct font.
28615
28616 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28617
28618 * xfaces.c (face_at_buffer_position): Remove unused vars.
28619
28620 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28621
28622 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28623 Fix overflow checking.
28624
28625 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28626
28627 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28628 Cancel previous change.
28629
28630 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28631
28632 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28633 ccl->eight_bit_control. Fix check for buffer overflow.
28634 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28635 (ccl_driver): Initialize extra_bytes to 0.
28636
28637 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28638
28639 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28640 return it ORed with ctrl_modifier.
28641
28642 2008-01-29 Miles Bader <miles@gnu.org>
28643
28644 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28645
28646 2008-01-28 Jason Rumney <jasonr@gnu.org>
28647
28648 * w32.c (stat): Don't double check for networked drive.
28649
28650 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28651
28652 * window.c (run_window_configuration_change_hook): New function.
28653 Code extracted from set_window_buffer. Set the selected frame.
28654 (set_window_buffer): Use it.
28655 * window.h (run_window_configuration_change_hook): Declare.
28656 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28657
28658 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28659
28660 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28661
28662 * Makefile.in: Remove references to unused macros.
28663
28664 2008-01-26 Eli Zaretskii <eliz@gnu.org>
28665
28666 * w32.c (g_b_init_get_sid_sub_authority)
28667 (g_b_init_get_sid_sub_authority_count): New static variables.
28668 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28669 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28670 (init_user_info): Use them to retrieve uid and gid.
28671 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28672 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28673 st_uid and st_gid of the file.
28674
28675 2008-01-26 Jason Rumney <jasonr@gnu.org>
28676
28677 * w32.c (logon_network_drive): New function.
28678 (stat): Use it.
28679
28680 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
28681
28682 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28683 invisible text covered with an ellipsis.
28684
28685 2008-01-25 Richard Stallman <rms@gnu.org>
28686
28687 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28688 jump back to beginning. Move some other initializations after that.
28689 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28690 New variables.
28691 (syms_of_xdisp): Init them.
28692
28693 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28694
28695 * buffer.c (reset_buffer_local_variables):
28696 Implement `permanent-local-hook'.
28697 (Qpermanent_local_hook): New variable.
28698 (syms_of_buffer): Init and staticpro it.
28699
28700 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
28701
28702 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28703
28704 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28705
28706 * fns.c (Fclrhash): Return TABLE.
28707
28708 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28709
28710 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28711 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28712 is set even without positional changes.
28713 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28714
28715 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28716
28717 2008-01-23 Jason Rumney <jasonr@gnu.org>
28718
28719 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28720
28721 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28722 the unicode range available in MULE by locale-coding-system.
28723 Improve dbcs lead byte detection. Set event timestamp and modifiers
28724 earlier.
28725
28726 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28727
28728 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28729 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28730 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28731 when used on child processes.
28732
28733 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
28734
28735 * dbusbind.c (Fdbus_method_return_internal): Rename from
28736 Fdbus_method_return.
28737 (Fdbus_unregister_object): Move to dbus.el.
28738 (Fdbus_call_method, Fdbus_method_return_internal)
28739 (Fdbus_send_signal): Improve debug messages.
28740
28741 2008-01-20 Martin Rudalics <rudalics@gmx.at>
28742
28743 * undo.c (undo_inhibit_record_point): New variable.
28744 (syms_of_undo): Initialize it.
28745 (record_point): Don't record point when undo_inhibit_record_point
28746 is set.
28747
28748 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28749
28750 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28751
28752 * xdisp.c (Qauto_hscroll_mode): New var.
28753 (syms_of_xdisp): Initialize it.
28754 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28755 window's buffer.
28756 (hscroll_windows): Don't check automatic_hscrolling_p here.
28757
28758 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28759 vscroll if we're setting window-buffer to the value it already has.
28760
28761 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28762
28763 * m/intel386.h: Remove references to XENIX.
28764
28765 2008-01-17 Andreas Schwab <schwab@suse.de>
28766
28767 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28768 instead of HAVE_X86_64_LIB64_DIR.
28769 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28770
28771 2008-01-17 Glenn Morris <rgm@gnu.org>
28772
28773 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28774 to HAVE_X86_64_LIB64_DIR.
28775
28776 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28777
28778 * s/irix3-3.h:
28779 * s/irix4-0.h:
28780 * s/386-ix.h:
28781 * s/domain.h:
28782 * s/hpux9-x11r4.h:
28783 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28784
28785 * sysdep.c: Remove code containing references to symbols defined
28786 by unsupported systems.
28787
28788 2008-01-16 Glenn Morris <rgm@gnu.org>
28789
28790 * coding.c (select-safe-coding-system-function): Doc fix.
28791
28792 2008-01-15 Glenn Morris <rgm@gnu.org>
28793
28794 * config.in: Revert 2008-01-13 change: this is a generated file.
28795
28796 2008-01-13 Tom Tromey <tromey@redhat.com>
28797
28798 * lisp.h: Fix typo.
28799
28800 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28801
28802 * m/sequent-ptx.h:
28803 * m/sequent.h:
28804 * s/ptx.h:
28805 * s/ptx4-2.h:
28806 * s/ptx4.h: Remove files for systems no longer supported.
28807
28808 * callproc.c (Fcall_process): Fix previous change.
28809
28810 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28811
28812 * unexsunos4.c: Remove file, system not supported anymore.
28813
28814 * m/mips.h:
28815 * m/intel386.h:
28816 * callproc.c:
28817 * config.in:
28818 * ecrt0.c:
28819 * emacs.c:
28820 * fileio.c:
28821 * frame.c:
28822 * getpagesize.h:
28823 * keyboard.c:
28824 * lread.c:
28825 * process.c:
28826 * puresize.h:
28827 * sysdep.c:
28828 * systty.h:
28829 * syswait.h:
28830 * unexec.c:
28831 * xdisp.c:
28832 * alloc.c: Remove code containing references to symbols defined by
28833 unsupported systems.
28834
28835 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28836
28837 * coding.c (detect_coding_mask): Fix previous change.
28838
28839 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28840
28841 * coding.c (detect_coding_iso2022): New arg
28842 latin_extra_code_state. Allow Latin extra codes only
28843 when *latin_extra_code_state is nonzero.
28844 (detect_coding_mask): If there is a NULL byte, detect the encoding
28845 as UTF-16 or binary. If Latin extra codes exist, detect the
28846 encoding as ISO-2022 only when there's no other proper encoding is
28847 found.
28848
28849 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28850
28851 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28852 #ifdef MAC_OS.
28853
28854 2008-01-08 Richard Stallman <rms@gnu.org>
28855
28856 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28857
28858 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
28859
28860 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28861 menu bar in parentheses.
28862
28863 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28864
28865 * m/7300.h:
28866 * m/acorn.h:
28867 * m/alliant-2800.h:
28868 * m/alliant.h:
28869 * m/alliant1.h:
28870 * m/alliant4.h:
28871 * m/altos.h:
28872 * m/amdahl.h:
28873 * m/apollo.h:
28874 * m/att3b.h:
28875 * m/aviion-intel.h:
28876 * m/aviion.h:
28877 * m/celerity.h:
28878 * m/clipper.h:
28879 * m/cnvrgnt.h:
28880 * m/convex.h:
28881 * m/cydra5.h:
28882 * m/delta88k.h:
28883 * m/dpx2.h:
28884 * m/dual.h:
28885 * m/elxsi.h:
28886 * m/f301.h:
28887 * m/gould-np1.h:
28888 * m/gould.h:
28889 * m/i860.h:
28890 * m/ibmps2-aix.h:
28891 * m/ibmrt-aix.h:
28892 * m/ibmrt.h:
28893 * m/irist.h:
28894 * m/is386.h:
28895 * m/isi-ov.h:
28896 * m/mega68.h:
28897 * m/mg1.h:
28898 * m/news-r6.h:
28899 * m/news-risc.h:
28900 * m/news.h:
28901 * m/nh3000.h:
28902 * m/nh4000.h:
28903 * m/ns16000.h:
28904 * m/ns32000.h:
28905 * m/nu.h:
28906 * m/orion.h:
28907 * m/orion105.h:
28908 * m/paragon.h:
28909 * m/pfa50.h:
28910 * m/plexus.h:
28911 * m/pyramid.h:
28912 * m/pyrmips.h:
28913 * m/sh3el.h:
28914 * m/sps7.h:
28915 * m/sr2k.h:
28916 * m/stride.h:
28917 * m/sun1.h:
28918 * m/sun2.h:
28919 * m/sun3-68881.h:
28920 * m/sun3-fpa.h:
28921 * m/sun3-soft.h:
28922 * m/sun3.h:
28923 * m/sun386.h:
28924 * m/symmetry.h:
28925 * m/tad68k.h:
28926 * m/tahoe.h:
28927 * m/targon31.h:
28928 * m/tek4300.h:
28929 * m/tekxd88.h:
28930 * m/tower32.h:
28931 * m/tower32v3.h:
28932 * m/ustation.h:
28933 * m/wicat.h:
28934 * m/xps100.h:
28935 * s/cxux.h:
28936 * s/cxux7.h:
28937 * s/dgux.h:
28938 * s/dgux4.h:
28939 * s/dgux5-4-3.h:
28940 * s/dgux5-4r2.h:
28941 * s/esix.h:
28942 * s/esix5r4.h:
28943 * s/hiuxmpp.h:
28944 * s/hiuxwe2.h:
28945 * s/iris3-5.h:
28946 * s/iris3-6.h:
28947 * s/isc2-2.h:
28948 * s/isc3-0.h:
28949 * s/isc4-0.h:
28950 * s/isc4-1.h:
28951 * s/newsos5.h:
28952 * s/newsos6.h:
28953 * s/osf1.h:
28954 * s/osf5-0.h:
28955 * s/riscix1-1.h:
28956 * s/riscix12.h:
28957 * s/sco4.h:
28958 * s/sco5.h:
28959 * s/sunos4-0.h:
28960 * s/sunos4-1.h:
28961 * s/sunos413.h:
28962 * s/sunos4shr.h:
28963 * s/umax.h:
28964 * s/unipl5-2.h:
28965 * s/xenix.h:
28966 * cxux-crt0.s:
28967 * unexapollo.c:
28968 * unexconvex.c:
28969 * unexenix.c:
28970 * unexsni.c: Remove files for systems no longer supported.
28971
28972 * m/intel386.h: Remove references to unsupported systems.
28973
28974 * w32.c (get_emacs_configuration): Remove reference to i860.
28975
28976 * sysdep.c: Remove dead code.
28977
28978 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28979
28980 * s/rtu.h:
28981 * m/masscomp.h: Remove files. Platform is obsolete.
28982
28983 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
28984
28985 * dbusbind.c (Fdbus_method_return): New function.
28986 (xd_read_message): Add the serial number to the event.
28987 (Fdbus_register_method): Activate the function.
28988
28989 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28990
28991 * keyboard.c (read_key_sequence): Fix typo.
28992
28993 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
28994
28995 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28996 (xd_signature, xd_append_arg): Handle element type detection for
28997 empty arrays.
28998 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28999 SDATA () calls; this must be solved more general.
29000 (Fdbus_register_signal): Use SBYTES instead of strlen.
29001
29002 2008-01-03 Magnus Henoch <magnus@zemdatav>
29003
29004 * dbusbind.c (xd_append_arg): Use unsigned char instead of
29005 unsigned int for byte values (necessary for big-endian platform).
29006 (Fdbus_call_method): Handle the case of no returned arguments.
29007
29008 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
29009
29010 * dbusbind.c (xd_read_message): Use non-static input_event struct.
29011
29012 2007-12-31 Magnus Henoch <mange@freemail.hu>
29013
29014 * dbusbind.c (xd_signature): Signature of variant is just "v".
29015
29016 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
29017
29018 * dbusbind.c: Fix several errors and compiler warnings.
29019 Reported by Tom Tromey <tromey@redhat.com>.
29020 (XD_ERROR, XD_DEBUG_MESSAGE)
29021 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29022 (xd_append_arg): Part for basic D-Bus types rewritten.
29023 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29024 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
29025 appropriate.
29026 (xd_read_message): Return Qnil. Don't signal an error; it is not
29027 useful during event reading.
29028 (Fdbus_register_signal): Signal an error if the check for
29029 FUNCTIONP fails.
29030 (Fdbus_register_method): New function. The implementation is not
29031 complete, the call of the function signals an error therefore.
29032 (Fdbus_unregister_object): New function, renamed from
29033 Fdbus_unregister_signal. The initial check signals an error, if
29034 the object is not well formed.
29035
29036 2007-12-30 Richard Stallman <rms@gnu.org>
29037
29038 * textprop.c (get_char_property_and_overlay):
29039 Signal error if POSITION is out of range in a buffer.
29040
29041 2007-12-29 Martin Rudalics <rudalics@gmx.at>
29042
29043 * w32fns.c (Fx_create_frame): Make copy of frame parameters
29044 because the original parameters are in pure storage now.
29045
29046 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29047
29048 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29049
29050 2007-12-22 Eli Zaretskii <eliz@gnu.org>
29051
29052 * callint.c (syms_of_callint) <command-history>: Add reference to
29053 history-length in the doc string.
29054
29055 2007-12-17 Jason Rumney <jasonr@gnu.org>
29056
29057 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29058 before passing as wParam.
29059
29060 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
29061
29062 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29063 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29064 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29065 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29066 as number.
29067 (Fdbus_call_method): Fix docstring.
29068
29069 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
29070
29071 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29072 New macros.
29073 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29074 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29075 Simplify.
29076 (xd_signature): New function.
29077 (xd_append_arg): Compute also signatures. Major rewrite.
29078 (xd_retrieve_arg): Make debug messages friendly.
29079 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29080 Check for signatures of arguments.
29081
29082 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
29083
29084 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29085 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29086 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29087 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29088 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29089 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29090 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29091 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29092 (xd_retrieve_value): Remove. Functionality included in ...
29093 (xd_append_arg): New function.
29094 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29095
29096 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
29097
29098 * dbusbind.c (top): Include <stdio.h>.
29099 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29100 dbus_message_new_method_call and dbus_message_new_signal.
29101 (Fdbus_register_signal): Rename unique_name to uname.
29102 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29103 non-existing unique name. Fix typos in matching rule. Return an
29104 object which is useful in Fdbus_unregister_signal.
29105 (Fdbus_unregister_signal): Reimplementation, in order to remove
29106 only the corresponding entry.
29107 (Vdbus_registered_functions_table): Change the order of entries.
29108 Apply these changes in xd_read_message and Fdbus_register_signal.
29109
29110 2007-12-16 Andreas Schwab <schwab@suse.de>
29111
29112 * fileio.c (Finsert_file_contents): Fix overflow check to not
29113 depend on undefined integer overflow.
29114
29115 2007-12-14 Jason Rumney <jasonr@gnu.org>
29116
29117 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29118 for characters above 127.
29119
29120 2007-12-13 Jason Rumney <jasonr@gnu.org>
29121
29122 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29123 before dereferencing array.
29124 (lookup_vk_code): Remove zero comparison.
29125
29126 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
29127
29128 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29129 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29130 Use `unsigned int' instead of `uint'.
29131 (xd_read_message, Fdbus_register_signal): Split expressions into
29132 multiple lines before operators "&&" and "||", according to the
29133 GNU Coding Standards.
29134
29135 2007-12-14 Eli Zaretskii <eliz@gnu.org>
29136
29137 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29138
29139 2007-12-12 Juri Linkov <juri@jurta.org>
29140
29141 * buffer.c (Frename_buffer): In interactive spec replace
29142 `read-buffer' with `read-string' that uses `buffer-name-history'
29143 as history, and the current buffer's name as default.
29144
29145 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29146
29147 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29148 manipulating the backtrace manually.
29149 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29150 (struct backtrace, backtrace_list): Remove.
29151 (command_loop_1): Remove dead var `no_direct'.
29152
29153 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29154 preserve non-built-in buffer-local variables.
29155 (Fkill_all_local_variables): Don't re-create&re-set permanent
29156 buffer-local variables.
29157
29158 2007-12-09 Juri Linkov <juri@jurta.org>
29159
29160 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29161 Lisp code that uses `read-buffer' with current buffer as default.
29162
29163 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
29164
29165 * dbusbind.c (xd_read_message): Generate an event for every
29166 registered handler. There might be several handlers registered
29167 for the same signal.
29168 (Fdbus_register_signal): Don't overwrite a registration for the
29169 same signal. Add a new registration if handlers are different.
29170 (Vdbus_registered_functions_table): Rework doc string.
29171
29172 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
29173
29174 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29175 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29176 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29177 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29178 Unify argument lists.
29179 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29180 arguments and hash table keys. Use unique name for service.
29181 (Fdbus_unregister_signal): Remove checks.
29182 (Vdbus_registered_functions_table): Fix doc string.
29183
29184 2007-12-05 Magnus Henoch <mange@freemail.hu>
29185
29186 * process.c (make_process): Initialize pty_flag to 0.
29187
29188 2007-12-05 Jason Rumney <jasonr@gnu.org>
29189
29190 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29191 specified XBMs.
29192
29193 2007-12-05 Richard Stallman <rms@gnu.org>
29194
29195 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29196
29197 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29198
29199 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29200 New variable.
29201 (mac_try_close_socket) [MAC_OSX]: New function.
29202 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29203 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29204
29205 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29206 Use mac_try_close_socket.
29207
29208 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29209
29210 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29211 reloc_base.
29212 (copy_dysymtab): Compute relocation base here.
29213 (rebase_reloc_address) [__ppc64__]: New function.
29214 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29215 changed.
29216
29217 2007-12-05 Jason Rumney <jasonr@gnu.org>
29218
29219 * w32proc.c (sys_spawnve): Quote args with wildcards.
29220
29221 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29222
29223 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29224 __objc_* sections.
29225 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29226
29227 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
29228
29229 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29230 Move check for Vdbus_registered_functions_table to
29231 xd_read_queued_messages.
29232 (xd_read_queued_messages): Protect xd_read_message calls by
29233 internal_condition_case_1.
29234
29235 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
29236
29237 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29238 Qdbus_system_bus and Qdbus_session_bus, respectively.
29239 (Vdbus_intern_symbols): Remove.
29240 (Vdbus_registered_functions_table): New hash table.
29241 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29242 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29243 Rewrite in order to manage registered functions by hash table
29244 Vdbus_registered_functions_table.
29245
29246 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29247
29248 * xterm.c: Update URL to Window Manager Specification in comment.
29249
29250 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
29251
29252 * config.in (HAVE_DBUS): Add.
29253
29254 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29255 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29256 (obj): Add $(DBUS_OBJ).
29257 (LIBES): Add $(DBUS_LIBS).
29258 (dbusbind.o): New target.
29259
29260 * dbusbind.c: New file.
29261
29262 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29263
29264 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29265 (Qdbus_event): New Lisp symbol.
29266 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29267 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
29268 (keys_of_keyboard): Define dbus-event.
29269
29270 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29271
29272 2007-12-01 Richard Stallman <rms@gnu.org>
29273
29274 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29275
29276 2007-11-30 Jason Rumney <jasonr@gnu.org>
29277
29278 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29279 (w32con_reset_terminal_modes): Clear screen buffer.
29280 (w32_face_attributes): Don't use color indexes that are out of range.
29281 Only reverse the default colors.
29282
29283 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29284 WINDOWSNT.
29285
29286 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29287
29288 2007-11-29 Jason Rumney <jasonr@gnu.org>
29289
29290 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29291 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29292 if the terminal colors are initialized.
29293 (unspecified_fg, unspecified_bg): Remove unused declarations.
29294
29295 2007-11-29 Andreas Schwab <schwab@suse.de>
29296
29297 * keyboard.c (apply_modifiers): Fix typo.
29298
29299 2007-11-29 Richard Stallman <rms@gnu.org>
29300
29301 * keymap.c (Fcurrent_local_map): Doc fix.
29302
29303 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29304
29305 * s/gnu-kfreebsd.h: New file.
29306
29307 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29308
29309 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29310 Don't cast redundantly.
29311
29312 * keyboard.c (KEY_TO_CHAR): New macro.
29313 (parse_modifiers, apply_modifiers): Accept integer arguments.
29314 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29315 for chars and symbol keys.
29316 After doing such remapping, apply function-key-map again.
29317
29318 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29319
29320 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29321 compiled anymore.
29322
29323 2007-11-26 Andreas Schwab <schwab@suse.de>
29324
29325 * process.c (list_processes_1): Fix indentation level of the
29326 command column.
29327
29328 2007-11-23 Andreas Schwab <schwab@suse.de>
29329
29330 * editfns.c (Fformat): Handle %c specially since it requires the
29331 argument to be of type int.
29332
29333 2007-11-23 Markus Triska <markus.triska@gmx.at>
29334
29335 * emacs.c (main): Call init_editfns before init_process, since
29336 init_process sets Vprocess_connection_type depending on OS release.
29337
29338 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29339
29340 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29341 (find_symbol_value): Use do_symval_forwarding.
29342
29343 * data.c (set_internal): Set the value in the `cons-cell' (for
29344 Buffer_Local_values) not only for frame-local variables.
29345
29346 2007-11-22 Andreas Schwab <schwab@suse.de>
29347
29348 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29349 values to sprintf.
29350 * keymap.c (Fsingle_key_description): Likewise.
29351 * print.c (print_object): Likewise.
29352
29353 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29354
29355 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29356 file for image is nil.
29357
29358 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29359
29360 * term.c: Include stdarg.h.
29361 (fatal): Implement using varargs.
29362 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29363
29364 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29365
29366 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29367 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29368 Update call to buffer_slot_type_mismatch.
29369 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29370 (buffer_slot_type_mismatch): Update.
29371 * buffer.c (buffer_local_types): Remove.
29372 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29373 (defvar_per_buffer): Set the type in the buffer_objfwd.
29374
29375 2007-11-21 Jason Rumney <jasonr@gnu.org>
29376
29377 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29378 CreateFileMapping returns NULL on failure.
29379
29380 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29381
29382 * search.c (Fset_match_data): Remove the `evaporate' feature.
29383 (unwind_set_match_data): Don't use the `evaporate' feature.
29384
29385 2007-11-21 Jason Rumney <jasonr@gnu.org>
29386
29387 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29388
29389 * w32console.c (w32con_write_glyphs): Remove unused variables.
29390
29391 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29392
29393 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29394
29395 * s/darwin.h (MULTI_KBOARD): Remove.
29396
29397 * macfns.c (x_create_tip_frame, Fx_create_frame)
29398 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29399
29400 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29401
29402 * buffer.c (Fbuffer_local_value): Remove redundant test.
29403 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29404 than in `current-buffer' to match the comment.
29405 Do the swap using swap_in_global_binding.
29406
29407 * data.c (store_symval_forwarding, set_internal):
29408 * eval.c (specbind): Remove dead code.
29409
29410 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29411 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29412 Since we do not want to see internal Lisp_*fwd objects here.
29413
29414 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29415
29416 * sysdep.c (init_system_name): Use getaddrinfo if available.
29417
29418 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29419 (x_scroll_bar_note_movement): start, end, with, height in struct
29420 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29421
29422 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29423
29424 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29425
29426 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29427
29428 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29429 This undoes Richard's change of 14-Oct-2002.
29430
29431 * alloc.c (allocate_other_vector):
29432 * lisp.h (allocate_other_vector): Remove.
29433
29434 * window.c (struct save_window_data): Move non-lisp data to the end
29435 and make it `int' rather than Lisp_Object.
29436 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29437 Done wrap/unwrap integer values.
29438 (Fset_window_configuration, compare_window_configurations):
29439 Update use of fields to their new types.
29440
29441 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29442 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29443 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29444 (SET_SCROLL_BAR_X_WINDOW): Remove.
29445 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29446 Access the new x_window field directly.
29447 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29448 Don't wrap/unwrap integers into Lisp_Objects.
29449 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29450 (x_scroll_bar_report_motion):
29451 Don't wrap/unwrap integers into Lisp_Objects.
29452 (x_term_init): Use SDATA.
29453 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29454 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29455 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29456 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29457 * xfns.c (x_set_background_color):
29458 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29459 Access the new x_window field directly.
29460
29461 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29462 (allocate_pseudovector): Make non-static.
29463
29464 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29465 (allocate_pseudovector): Declare.
29466 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29467
29468 2007-11-15 Andreas Schwab <schwab@suse.de>
29469
29470 * editfns.c (Fformat): Correctly format EMACS_INT values.
29471 Also take precision into account when formatting an integer.
29472
29473 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29474
29475 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29476
29477 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29478 (syms_of_keyboard): Defsubr it.
29479
29480 * data.c (swap_in_global_binding): Fix longstanding bug where
29481 store_symval_forwarding was not called with the right second argument,
29482 thus causing objfwd-ing from being dropped.
29483
29484 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29485
29486 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29487 (Fx_display_pixel_height, Fx_display_planes)
29488 (Fx_display_color_cells, Fx_server_max_request_size)
29489 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29490 (Fx_display_visual_class, Fx_display_save_under):
29491 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29492 (Fx_display_pixel_height, Fx_display_planes)
29493 (Fx_display_color_cells, Fx_server_max_request_size)
29494 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29495 (Fx_display_mm_height, Fx_display_mm_width)
29496 (Fx_display_backing_store, Fx_display_visual_class)
29497 (Fw32_select_font, Fx_display_save_under):
29498 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29499 (Fx_display_pixel_height, Fx_display_planes)
29500 (Fx_display_color_cells, Fx_server_max_request_size)
29501 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29502 (Fx_display_save_under): Fix typos in docstrings.
29503
29504 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29505
29506 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29507 corresponding to deleted entries; they are an implementation detail.
29508 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29509 Remove variables.
29510 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29511 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29512 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29513 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29514 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29515 (Fw32_define_rgb_color, Fw32_load_color_file)
29516 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29517 Fix typos in docstrings.
29518 (Fx_server_version): Reflow docstring.
29519 (Fw32_shell_execute): Doc fixes.
29520
29521 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
29522
29523 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29524 if w32_parse_hot_key returned nil.
29525
29526 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29527
29528 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29529
29530 2007-11-09 Jason Rumney <jasonr@gnu.org>
29531
29532 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29533
29534 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29535
29536 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29537 Remove W32_SCROLL_BAR_CLICK_EVENT.
29538
29539 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29540 Add MULTIMEDIA_KEY_EVENT.
29541
29542 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29543 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29544 (make_lispy_event) [WINDOWSNT]: Use it to translate
29545 MULTIMEDIA_KEY_EVENT.
29546
29547 * w32term.h (WM_APPCOMMAND): Define if not already.
29548 (GET_APPCOMMAND_LPARAM): Likewise.
29549
29550 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29551 WM_APPCOMMAND.
29552
29553 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29554 (syms_of_w32fns): Export and initialize it.
29555 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29556
29557 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
29558
29559 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29560 twice.
29561
29562 * xdisp.c (handle_face_prop): Fix last change.
29563
29564 2007-11-09 Richard Stallman <rms@gnu.org>
29565
29566 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29567 not just for after-strings and before-strings.
29568 Call face_for_overlay_string and pass the overlay to it.
29569 (handle_display_prop): Determine whether property came from an overlay.
29570 Pass OVERLAY arg to handle_single_display_spec.
29571 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29572 (load_overlay_strings): Fill in it->string_overlays.
29573 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29574
29575 * xfaces.c (face_for_overlay_string): Function renamed from
29576 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29577
29578 * dispextern.h (struct it): New elt string_overlays.
29579 New elt from_overlay, also in stack.
29580 Rearrange a few elements.
29581 (face_for_overlay_string): Decl renamed from
29582 face_at_buffer_position_no_overlays, and add argument.
29583
29584 2007-11-09 Richard Stallman <rms@gnu.org>
29585
29586 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29587 to get the base face for an overlay string.
29588
29589 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29590
29591 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29592
29593 * xdisp.c (handle_stop): Move some code out of loop.
29594
29595 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29596
29597 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29598 Fix conversion from Lisp object to ATSUFontID.
29599
29600 2007-11-09 Jason Rumney <jasonr@gnu.org>
29601
29602 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29603
29604 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29605
29606 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29607 Don't assume regions are aligned to page boundary.
29608 (print_load_command_name): Add LC_UUID if defined.
29609
29610 2007-11-09 Richard Stallman <rms@gnu.org>
29611
29612 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29613
29614 2007-11-07 Jason Rumney <jasonr@gnu.org>
29615
29616 * s/windows95.h: Remove.
29617
29618 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29619
29620 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29621 abort with a message on unhandled store_type values.
29622
29623 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29624
29625 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29626 Remove HAVE_X11R5 and HAVE_X11R4.
29627
29628 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29629
29630 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29631
29632 2007-11-01 Johan Bockgård <bojohan@gnu.org>
29633
29634 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29635 Don't set s->stippled_p here, since it has already been set by
29636 x_set_glyph_string_gc from x_draw_glyph_string.
29637
29638 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29639
29640 * sunfns.c: Remove file.
29641
29642 * m/sun386.h:
29643 * m/sun2.h:
29644 * m/sparc.h: Remove Sun windows code.
29645
29646 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29647
29648 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29649 (init_keyboard): Set current_kboard's window-system to nil.
29650 (tty_read_avail_input): Typo.
29651 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29652
29653 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29654
29655 * s/usg5-4.h:
29656 * s/usg5-3.h:
29657 * s/ptx.h:
29658 * m/is386.h:
29659 * m/ibmps2-aix.h:
29660 * Makefile.in: Remove all mentions of X10.
29661
29662 * dispnew.c (syms_of_display): Don't mention version 10.
29663
29664 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
29665
29666 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29667 ($(BLD)/abbrev.$(O)): Remove.
29668
29669 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29670
29671 Rewrite abbrev.c in Elisp.
29672 * image.c (Qcount): Don't declare as extern.
29673 (syms_of_image): Initialize and staticpro `Qcount'.
29674 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29675 * emacs.c (main): Don't call syms_of_abbrev.
29676 * Makefile.in (obj): Remove abbrev.o.
29677 (abbrev.o): Remove.
29678 * abbrev.c: Remove.
29679
29680 2007-10-26 Martin Rudalics <rudalics@gmx.at>
29681
29682 * window.c (window_min_size_2): Don't count header-line.
29683
29684 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29685
29686 * frame.h (struct frame): Move all bit fields after the first bit
29687 field to take advantage of the available space. Group all the
29688 chars together to reduce wasted space due to padding.
29689
29690 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
29691
29692 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29693
29694 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29695 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29696 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29697 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29698 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29699 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29700 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29701 (last_marked, mark_object_loop_halt): Make static.
29702
29703 * frame.c (syms_of_frame) <delete-frame-functions>:
29704 Fix typo in docstring.
29705
29706 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
29707
29708 * w32.c (init_environment): Fix tiny memory leak.
29709 (w32_get_resource): Remove unused variable `ok'.
29710
29711 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29712
29713 Make `window-system' into a keyboard-local variable (rather than
29714 frame-local as done originally by multi-tty).
29715
29716 * keyboard.h (struct kboard): Add Vwindow_system.
29717 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29718 (mark_kboards): Mark Vwindow_system.
29719
29720 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29721 (init_display): Don't set the obsolete `window-system' frame-param.
29722
29723 * xterm.c (x_term_init):
29724 * w32term.c (w32_create_terminal):
29725 * term.c (init_tty): Set Vwindow_system.
29726 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29727 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29728
29729 * xfns.c (Fx_create_frame, x_create_tip_frame):
29730 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29731 * macfns.c (Fx_create_frame):
29732 Don't set the obsolete `window-system' frame-param.
29733
29734 * frame.h (Qwindow_system): Remove.
29735 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29736 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29737
29738 2007-10-24 Richard Stallman <rms@gnu.org>
29739
29740 * frame.c (x_figure_window_size): For fullscreen case,
29741 set USPosition | PPosition without clobbering rest of window_prompting.
29742
29743 * keyboard.c (Fcurrent_idle_time): Doc fix.
29744
29745 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29746
29747 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29748
29749 * process.c (unwind_request_sigio): Only define if __ultrix__.
29750
29751 * callproc.c (child_setup): Remove spurious *.
29752
29753 * lisp.h (Fget_text_property): Declare.
29754 (have_menus_p): Declare it here rather than in sys-dep header files.
29755 * macterm.h (have_menus_p):
29756 * msdos.h (have_menus_p):
29757 * xterm.h (have_menus_p): Remove.
29758
29759 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29760 (Fmake_variable_frame_local): Just check the variable's const-ness
29761 rather than checking nil or t.
29762
29763 2007-10-22 Jason Rumney <jasonr@gnu.org>
29764
29765 * w32fns.c: Include math.h.
29766 (w32_abort): Declaration moved to nt/config.nt.
29767
29768 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29769 (abort): Redefinition moved to nt/config.nt.
29770
29771 * m/windowsnt.h: Remove.
29772
29773 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
29774
29775 * emacs.c (Fdump_emacs): Fix typo in message.
29776 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29777 <installation-directory>: Reflow docstring.
29778
29779 2007-10-22 Juri Linkov <juri@jurta.org>
29780
29781 * minibuf.c: Allow minibuffer default to be a list of default values.
29782 With empty input use the first element of this list as returned default.
29783 (string_to_object)
29784 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29785 (read_minibuf): If defalt is cons, set histstring to its car.
29786 (Fread_string): If default_value is cons, set val to its car.
29787 (Fread_buffer): If def is cons, use its car.
29788 (Fcompleting_read): If defalt is cons, set val to its car.
29789
29790 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
29791
29792 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29793
29794 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
29795
29796 * doc.c (Fdocumentation): Check for advice in all cases.
29797
29798 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
29799
29800 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29801
29802 2007-10-19 Richard Stallman <rms@gnu.org>
29803
29804 * doc.c (Fdocumentation): Check for and handle an advised function.
29805
29806 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
29807
29808 * process.c (Fset_process_filter): Doc fix.
29809
29810 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29811
29812 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29813 which caused key-translation-map to applied repeatedly (thus breaking
29814 double-mode).
29815
29816 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29817
29818 * xselect.c (x_own_selection, x_handle_selection_clear)
29819 (x_clear_frame_selections):
29820 * w32menu.c (list_of_panes, list_of_items):
29821 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29822 * textprop.c (validate_plist, interval_has_all_properties)
29823 (interval_has_some_properties, interval_has_some_properties_list)
29824 (add_properties, text_property_list):
29825 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29826 * minibuf.c (Fassoc_string):
29827 * macselect.c (x_own_selection, x_clear_frame_selections)
29828 (Fx_disown_selection_internal):
29829 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29830 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29831
29832 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
29833
29834 * process.c: Link to libs for calling res_init() if available.
29835 (Fmake_network_process): Call res_init() before getaddrinfo or
29836 gethostbyname, if possible.
29837
29838 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29839
29840 * lread.c (read1): Set pvectype for char_tables.
29841
29842 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29843 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29844 Add type checks.
29845 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29846
29847 * alloc.c (free_misc): Use XMISCTYPE.
29848 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29849
29850 2007-10-17 Glenn Morris <rgm@gnu.org>
29851
29852 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29853 (syms_of_minibuf): Add Qcompletion_ignore_case.
29854 * dired.c (Qcompletion_ignore_case): Change to external.
29855 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29856 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29857 (Fread_file_name): Use it rather than intern'ing.
29858
29859 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29860 (Fread_coding_system): Ignore case of user input.
29861
29862 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29863
29864 * xdisp.c (handle_display_prop): Ignore display specs after
29865 replacing one when string text is being replaced.
29866 (handle_single_display_spec): Pretend as if characters with display
29867 property haven't been consumed only when buffer text is being replaced.
29868
29869 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29870
29871 * xfns.c (Fx_create_frame, Fx_display_list):
29872 * window.c (window_fixed_size_p, enlarge_window)
29873 (shrink_window_lowest_first):
29874 * macterm.c (init_font_name_table):
29875 * macfns.c (Fx_create_frame, Fx_display_list):
29876 * lread.c (close_load_descs):
29877 * keyboard.c (read_char_x_menu_prompt):
29878 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29879 * coding.c (code_convert_region_unwind): Test the type of an object
29880 rather than just !NILP before extracting data from it.
29881
29882 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29883
29884 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29885 (XMISCANY): New macro.
29886 (XMISCTYPE): Use it.
29887 (struct Lisp_Misc_Any): New type.
29888 (union Lisp_Misc): Use it.
29889 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29890 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29891 (find_symbol_value, set_internal, default_value, Fset_default)
29892 (Fmake_variable_buffer_local, Fmake_local_variable)
29893 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29894 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29895 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29896 * alloc.c (allocate_buffer): Set the size and tag.
29897 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29898 Use XMISCANY.
29899 (die): Follow the GNU convention for error messages.
29900 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29901 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29902 tag any more.
29903 (set_buffer_internal_1):
29904 * frame.c (store_frame_param):
29905 * eval.c (specbind):
29906 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29907
29908 * doc.c (Fsnarf_documentation): Simplify.
29909
29910 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
29911
29912 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29913 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29914
29915 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29916
29917 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29918
29919 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
29920
29921 * eval.c (do_autoload): Don't save autoloads.
29922
29923 * data.c (Ffset): Save autoload of the function being set.
29924
29925 2007-10-07 John Paul Wallington <jpw@pobox.com>
29926
29927 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29928 parameter before setting up faces.
29929
29930 2007-10-13 Eli Zaretskii <eliz@gnu.org>
29931
29932 * ccl.c (Fregister_code_conversion_map):
29933 * keyboard.c (append_tool_bar_item): Reformat last change.
29934
29935 * lisp.h (eabs): Rename from `abs'. All callers changed.
29936
29937 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29938
29939 * buffer.c (add_overlay_mod_hooklist):
29940 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29941 * fontset.c (make_fontset):
29942 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29943 (append_tool_bar_item):
29944 * macmenu.c (grow_menu_items):
29945 * w32menu.c (grow_menu_items):
29946 * xmenu.c (grow_menu_items): Use larger_vector.
29947
29948 2007-10-13 Eli Zaretskii <eliz@gnu.org>
29949
29950 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29951 selected frame'' on MSDOS).
29952
29953 2007-10-12 Martin Rudalics <rudalics@gmx.at>
29954
29955 * frame.c (Qexplicit_name): New variable.
29956 (x_report_frame_params): Report it in parameter alist.
29957 (syms_of_frame): Intern and staticpro it.
29958
29959 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29960
29961 * macfns.c (x_create_tip_frame): Set terminal for frame.
29962
29963 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29964
29965 * frame.c (Qenvironment): Remove.
29966 (syms_of_frame) <Qenvironment>: Don't initialize.
29967 (Fdelete_frame): Don't treat the `environment' param specially.
29968 * frame.h (Qenvironment): Don't declare.
29969 * callproc.c (set_initial_environment): Don't set unused frame param.
29970
29971 * frame.c (Fframe_with_environment): Remove.
29972 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29973
29974 * lisp.h (Fframe_with_environment): Don't declare.
29975
29976 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
29977
29978 * indent.c (indent_tabs_mode, last_known_column)
29979 (last_known_column_modified): Make static.
29980 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29981
29982 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29983
29984 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29985
29986 2007-10-09 Jason Rumney <jasonr@gnu.org>
29987
29988 * w32term.c (x_set_window_size): Disable code that attempts to tell
29989 Lisp code about a size change before it actually happens.
29990
29991 2007-10-09 Richard Stallman <rms@gnu.org>
29992
29993 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29994 return HANDLED_RETURN.
29995
29996 2007-10-08 Martin Rudalics <rudalics@gmx.at>
29997
29998 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29999 when there's an unread command event.
30000
30001 * frame.c (focus_follows_mouse): Move here from frame.el to allow
30002 window autoselection act appropriately when leaving selected frame.
30003 (syms_of_frame): Initialize focus_follows_mouse.
30004 * frame.h (focus_follows_mouse): Extern it.
30005 * macterm.c (XTread_socket): When focus_follows_mouse is nil
30006 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30007 * msdos.c (dos_rawgetc): Likewise.
30008 * w32term.c (w32_read_socket): Likewise.
30009 * xterm.c (handle_one_xevent): Likewise.
30010 * xdisp.c (syms_of_xdisp): In doc-string of
30011 mouse-autoselect-window mention focus-follows-mouse.
30012
30013 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30014
30015 * macterm.c (mac_load_query_font): Fix missing return value.
30016 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30017 Add BLOCK_INPUT.
30018
30019 2007-10-08 Richard Stallman <rms@gnu.org>
30020
30021 * xdisp.c (get_window_cursor_type): Implement documented behavior
30022 for cursor-in-non-selected-windows = t.
30023
30024 2007-10-08 Jason Rumney <jasonr@gnu.org>
30025
30026 * w32.c (w32_get_resource): Always close registry keys.
30027
30028 2007-10-08 Jason Rumney <jasonr@gnu.org>
30029
30030 * makefile.w32-in (LIBS): Add COMCTL32.
30031
30032 * w32fns.c (globals_of_w32fns): Init common controls.
30033
30034 2007-10-08 Richard Stallman <rms@gnu.org>
30035
30036 * image.c (our_memory_buffer): Rename from omfib_buffer.
30037
30038 2007-10-08 Richard Stallman <rms@gnu.org>
30039
30040 * buffer.c (Foverlays_at): Doc fix.
30041
30042 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
30043
30044 * fns.c (Fplist_put): Preserve uneven tail data.
30045
30046 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
30047
30048 * termhooks.h (enum event_kind): Remove trailing comma.
30049
30050 * frame.h (enum): Remove trailing comma.
30051
30052 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
30053
30054 * w32proc.c (delete_child): Don't terminate threads of zombies.
30055
30056 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30057
30058 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30059
30060 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30061 last-repeatable-command.
30062 (init_kboard): Initialize Vlast_repeatable_command.
30063 (command_loop_1): Set it to real_this_command unless that was
30064 bound to an input event.
30065 (mark_kboards): Mark it.
30066
30067 2007-10-08 Richard Stallman <rms@gnu.org>
30068
30069 * eval.c (condition-case): Doc fix.
30070
30071 2007-10-08 Masatake YAMATO <jet@gyve.org>
30072
30073 * xfaces.c (tty_supports_face_attributes_p): Fix code
30074 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30075 was copied and not edited.
30076
30077 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30078
30079 Add new `input-decode-map' keymap and use it for terminal
30080 escape sequences.
30081 * keyboard.h (struct kboard): Add Vinput_decode_map.
30082 Remove Vlocal_key_translation_map.
30083 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30084 (init_kboard): Init input-decode-map.
30085 Replace local-key-translation-map back with key-translation-map.
30086 (syms_of_keyboard): Declare input-decode-map.
30087 Remove local-key-translation-map. Update docstrings.
30088 (mark_kboards): Mark Vinput_decode_map.
30089 Don't mark Vlocal_key_translation_map.
30090 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30091 Replace local-key-translation-map back with key-translation-map.
30092 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30093 Bind in input-decode-map rather than function-key-map.
30094
30095 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30096 This was made redundant by the previous introduction of XSETPVECTYPE.
30097
30098 2007-10-09 Richard Stallman <rms@gnu.org>
30099
30100 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30101
30102 2007-09-29 Richard Stallman <rms@gnu.org>
30103
30104 * eval.c (internal_condition_case_2, internal_condition_case_1)
30105 (internal_condition_case): Reenable abort if x_catching_errors ()
30106 to see if that really happens and why.
30107
30108 2007-10-06 Andreas Schwab <schwab@suse.de>
30109
30110 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30111
30112 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
30113
30114 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30115
30116 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30117
30118 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30119
30120 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30121
30122 * window.h (struct window):
30123 * window.c (struct save_window_data, struct saved_window):
30124 * termhooks.h (struct terminal):
30125 * process.h (struct Lisp_Process):
30126 * frame.h (struct frame):
30127 * buffer.h (struct buffer):
30128 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30129 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30130 The size field of (pseudo)vectors is now unsigned.
30131 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30132
30133 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30134 Turn `count' into an integer.
30135
30136 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30137 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30138 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30139 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30140 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30141
30142 * alloc.c (allocate_pseudovector): New fun.
30143 (ALLOCATE_PSEUDOVECTOR): New macro.
30144 (allocate_window, allocate_terminal, allocate_frame)
30145 (allocate_process): Use it.
30146 (mark_vectorlike): New function.
30147 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30148 (mark_terminals): Use it.
30149 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30150 (Fmake_byte_code): Use XSETPVECTYPE.
30151
30152 * frame.c (Fframe_parameters): Minor simplification.
30153
30154 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30155
30156 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30157
30158 * buffer.c (Fget_buffer_create, init_buffer_once):
30159 * lread.c (defsubr):
30160 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30161
30162 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30163 defined differently in the m/*.h files.
30164 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30165 (XSETPVECTYPE): New macro.
30166 (XSETPSEUDOVECTOR): Use it.
30167
30168 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30169 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30170
30171 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30172 * lread.c (defvar_per_buffer):
30173 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30174
30175 * window.c (candidate_window_p): Only consider as visible frames that
30176 are on the same terminal.
30177
30178 * m/ibms390x.h (MARKBIT): Remove unused macro.
30179
30180 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
30181
30182 * lread.c (Fload): Fix typo in docstring.
30183
30184 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30185
30186 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30187 of a non-zero value can't yield zero.
30188
30189 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30190
30191 * term.c (term_clear_mouse_face, term_mouse_highlight)
30192 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30193
30194 * print.c (safe_debug_print): Use XHASH.
30195
30196 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30197 Lisp elements such as tags.
30198 (XHASH): New macro.
30199 (EQ): Use it.
30200 (SREF, SSET, STRING_COPYIN): Use SDATA.
30201 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30202
30203 * alloc.c (mark_terminal): Remove left-over declaration.
30204 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30205 (allocate_vectorlike): Remove type argument. Adjust callers.
30206 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30207 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30208
30209 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30210 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30211 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30212 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30213 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30214 Use them.
30215
30216 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30217 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30218 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30219
30220 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30221
30222 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30223 loaded by default.
30224
30225 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30226
30227 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30228 on this tty.
30229 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30230
30231 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30232 Update all users.
30233 (handle_one_term_event): Use Gpm_DrawPointer.
30234 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30235 Signal errors instead of returning nil. Always return nil.
30236 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30237 Make it a noop if gpm-mouse was not activated.
30238 (syms_of_term): Update names.
30239
30240 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30241
30242 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30243 (init_sys_modes): Check that gpm_tty is the current tty.
30244
30245 * alloc.c (allocate_terminal): Set the vector size to only count the
30246 lisp fields. Initialize those to nil.
30247 (mark_object): Don't treat terminals specially.
30248 (mark_terminal): Remove.
30249 (mark_terminals): Use mark_object instead.
30250
30251 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30252 the GC to the beginning.
30253
30254 * indent.h:
30255 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30256
30257 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30258
30259 2007-09-25 Jason Rumney <jasonr@gnu.org>
30260
30261 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30262
30263 * w32console.c (create_w32cons_output): Remove.
30264
30265 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30266
30267 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30268 (reset_sys_modes): Use reset_terminal_modes_hook.
30269
30270 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30271
30272 * eval.c (do_autoload): Don't output any message.
30273
30274 2007-09-24 Juri Linkov <juri@jurta.org>
30275
30276 * emacs.c (standard_args): Change priority of "--no-splash"
30277 from 40 to 3. Add "--no-desktop" with the same priority.
30278
30279 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30280
30281 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30282 and optimize the case where they are all 1.
30283
30284 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
30285
30286 * lisp.h (abs): Define if not defined.
30287 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30288 Don't define `abs', since it's defined in lisp.h.
30289
30290 2007-09-22 Eli Zaretskii <eliz@gnu.org>
30291
30292 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30293 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30294 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30295 (init_tty): Use DEV_TTY instead of "/dev/tty".
30296 [WINDOWSNT]: No need to protect from NAME arg being null.
30297
30298 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30299
30300 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30301 up the tty state.
30302
30303 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30304
30305 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30306 (gpm_tty): Change its type.
30307 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30308 (gpm_tty): Change its type and initialize it.
30309 (Fterm_open_connection): Check the frame is indeed a tty.
30310 Use the new gpm_tty.
30311 (Fterm_close_connection): Use the new gpm_tty.
30312 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30313 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30314
30315 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
30316
30317 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30318 underline_color, to draw strike-through.
30319
30320 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30321
30322 * lisp.h (allocate_terminal): Declare.
30323
30324 * window.c (candidate_window_p): Consider frames that are being placed
30325 by the user as somewhere between visible and iconified.
30326 (window_loop): Prefer windows on the current frame.
30327 (Fselect_window): Move the use of select-frame to the beginning so we
30328 can just delegate all the work (it'll call us back anyway).
30329
30330 * frame.c (Qdisplay_environment_variable):
30331 * frame.h (Qdisplay_environment_variable): Delete.
30332
30333 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30334 of the first arg, since that value may be a union.
30335
30336 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30337 parameter rather than Qdisplay_environment_variable. If all else
30338 fails, look for DISPLAY in initial-environment.
30339
30340 2007-09-21 Glenn Morris <rgm@gnu.org>
30341
30342 * Makefile.in (emacstool): Remove target.
30343 (lisp, shortlisp): Remove termdev.elc.
30344
30345 2007-09-21 Markus Triska <markus.triska@gmx.at>
30346
30347 * xterm.c (x_delete_display): Compile session management conditionally.
30348
30349 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30350
30351 * callproc.c (getenv_internal_1): New function.
30352 (getenv_internal): Use it.
30353 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30354
30355 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30356 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30357 (Fset_terminal_parameter): Work with dead terminals as well.
30358 (Fmodify_terminal_parameters): Remove.
30359
30360 * terminal.c (get_terminal): Handle terminals.
30361 Make sure the terminal returned is live.
30362 (create_terminal): Use allocate_terminal.
30363 (mark_terminals): Move to alloc.c.
30364 (delete_terminal): Use terminal->name as liveness status.
30365 NULL out fields after freeing their contents.
30366 Don't deallocate the object.
30367 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30368 rather than an int.
30369 (Fterminal_live_p): Accept non-integer arguments.
30370 (Fterminal_list): Return terminal objects rather than an ints.
30371
30372 * alloc.c (enum mem_type): New member for `terminal' objects.
30373 (allocate_terminal): New function.
30374 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30375 Handle terminals.
30376 (mark_terminal): New fun.
30377 (mark_terminals): Move from terminal.c.
30378
30379 * term.c (get_tty_terminal): Don't treat output_initial specially.
30380 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30381 (delete_tty): Use terminal->name as liveness status.
30382
30383 * termhooks.h (struct terminal): Make it into a pseudovector.
30384 Remove `deleted' replaced by checking `name's nullness.
30385
30386 * print.c (print_object): Handle terminals.
30387
30388 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30389 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30390
30391 * frame.c (make_terminal_frame):
30392 * keyboard.c (tty_read_avail_input):
30393 * w32term.c (x_delete_terminal):
30394 * xfns.c (Fx_create_frame, x_create_tip_frame):
30395 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30396
30397 2007-09-20 Glenn Morris <rgm@gnu.org>
30398
30399 * process.c (Fmake_network_process): Doc fix.
30400
30401 2007-09-19 Jason Rumney <jasonr@gnu.org>
30402
30403 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30404
30405 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30406
30407 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30408 Fix a C warning regarding variable constness.
30409
30410 * xterm.c (handle_one_xevent): Fix a C warning.
30411
30412 2007-09-18 Jason Rumney <jasonr@gnu.org>
30413
30414 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30415
30416 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30417
30418 * gtkutil.c (gdpy_def): New variable.
30419 (xg_initialize): Initialize gdpy_def.
30420 (xg_display_close): If no other display exists, set gdpy_def to a
30421 new connection.
30422
30423 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30424
30425 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30426 when we have no file name for the icon.
30427 (xg_tool_bar_expose_callback): Remove.
30428 (xg_create_tool_bar): Don't connect expose signal to
30429 xg_tool_bar_expose_callback.
30430 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30431
30432 2007-09-16 Andreas Schwab <schwab@suse.de>
30433
30434 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30435 values instead of zapping them.
30436
30437 2007-09-14 Glenn Morris <rgm@gnu.org>
30438
30439 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30440 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30441 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30442 scope and rename to omfib_buffer for clarity.
30443 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30444
30445 2007-09-14 Kenichi Handa <handa@m17n.org>
30446
30447 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30448
30449 2007-09-13 Jason Rumney <jasonr@gnu.org>
30450
30451 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30452
30453 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30454
30455 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30456 (mac_term_init): Call here instead, passing rif.
30457
30458 2007-09-13 Glenn Morris <rgm@gnu.org>
30459
30460 * s/hpux.h: No longer define `static' as nothing.
30461
30462 2007-09-13 Johan Bockgård <bojohan@gnu.org>
30463
30464 * callint.c (Fcall_interactively): Remove unused var `fun'.
30465
30466 2007-09-12 Romain Francoise <romain@orebokech.com>
30467
30468 * window.c (prefer_window_split_horizontally, display_buffer):
30469 Revert 2007-09-08 change.
30470
30471 2007-09-12 Glenn Morris <rgm@gnu.org>
30472
30473 * alloca.c: Remove file.
30474 * Makefile.in (alloca): Do not undef.
30475 (allocaobj, alloca.o): Remove.
30476 (otherobj): Remove allocaobj.
30477 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30478 * regex.c (C_ALLOCA): Remove all references and code that was only
30479 used when this was defined.
30480 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30481 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30482 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30483
30484 * Makefile.in (SOURCES, unlock, relock): Delete.
30485
30486 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30487 (menu_grab_callback): All uses changed.
30488
30489 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30490 (x_reply_selection_request): All uses changed.
30491
30492 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30493
30494 * lread.c (load_warn_old_style_backquotes): Change message to look
30495 better when it appears in the middle of byte-compiler messages.
30496
30497 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30498
30499 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30500
30501 * xterm.c (x_create_terminal): Add comment.
30502
30503 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30504
30505 2007-09-10 Richard Stallman <rms@gnu.org>
30506
30507 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30508
30509 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30510
30511 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30512 (DEFUN): Document `intspec', use it instead of `prompt'.
30513
30514 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30515
30516 * data.c (Finteractive_form): If the interactive specification starts
30517 with a `(', use it as a Lisp form.
30518
30519 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30520 name and file modes.
30521
30522 * callint.c (Fcall_interactively): Comment fixes.
30523
30524 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30525
30526 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30527 and compiled functions.
30528
30529 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30530
30531 * window.c (prefer_window_split_horizontally): New variable.
30532 (display_buffer): Consider splitting window horizontally depending
30533 on prefer_window_split_horizontally.
30534
30535 2007-09-08 Eli Zaretskii <eliz@gnu.org>
30536
30537 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30538
30539 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30540
30541 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30542
30543 * frame.c (x_set_frame_parameters): Check number is positive before
30544 using XFASTINT.
30545
30546 * window.c (freeze_window_start): Don't presume selected_window holds
30547 a window object.
30548 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30549
30550 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30551
30552 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30553
30554 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30555
30556 * window.c (Vsplit_window_preferred_function): New var.
30557 (Fdisplay_buffer): Use it.
30558 (syms_of_window): Export, and initialize it.
30559
30560 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30561
30562 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30563
30564 2007-09-06 Glenn Morris <rgm@gnu.org>
30565
30566 * gtkutil.c (menu_grab_callback) <cnt>:
30567 * xselect.c (x_reply_selection_request) <cnt>: Move static
30568 variable to file scope.
30569
30570 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30571
30572 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30573 consistent values of selected_frame and selected_window.
30574
30575 2007-09-04 Jason Rumney <jasonr@gnu.org>
30576
30577 * w32console.c (initialize_w32_display): Zero unused hooks.
30578
30579 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30580
30581 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30582 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30583
30584 2007-09-04 Jason Rumney <jasonr@gnu.org>
30585
30586 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30587 in w32console.c. Set up input. Remove XXX comments that have been
30588 confirmed as correct.
30589
30590 * s/ms-w32.h (MULTI_KBOARD): Define.
30591
30592 * w32console.c (one_and_only_w32cons): Remove.
30593 (initialize_w32_display): Take terminal argument.
30594
30595 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30596 initialize_w32_display.
30597 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30598
30599 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30600
30601 * keyboard.c (discard_mouse_events): Discard it.
30602 (make_lispy_event): Translate it to a lisp event.
30603 (lispy_wheel_names): Add wheel-left and right events.
30604 (syms_of_keyboard): Enlarge wheel_syms.
30605
30606 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30607 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30608
30609 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30610
30611 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30612 from WM_MOUSEHWHEEL.
30613 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30614
30615 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30616 terminal.
30617
30618 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30619 keyboard for the terminal.
30620
30621 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30622
30623 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30624 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30625 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30626 and resume-tty-function to resume-tty-hook.
30627 (Fsuspend_tty, Fresume_tty): Use new names.
30628
30629 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30630
30631 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30632 if it starts with "n:".
30633
30634 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30635
30636 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30637
30638 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30639
30640 * frame.h:
30641 * frame.c (Qterm_environment_variable): Remove.
30642 (syms_of_frame): Don't init and staticpro it.
30643
30644 * callproc.c (getenv_internal): Remove special case for $TERM.
30645
30646 * callproc.c (Vinitial_environment): New variable.
30647 (set_initial_environment): Initialize it.
30648 (syms_of_callproc): Declare it.
30649 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30650 TERM under which a process runs is never related to the TERM in which
30651 Emacs is running.
30652
30653 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30654
30655 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30656 * s/darwin.h: ... do it here.
30657
30658 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30659
30660 * lisp.h (set_initial_environment): Rename from set_global_environment.
30661
30662 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30663 removed by mistake on the multi-tty branch.
30664
30665 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30666 (Fmodify_frame_parameters): Return a value.
30667
30668 * image.c (png_load): Comment-out var only used in commented-out code.
30669
30670 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30671 before passing it to mark_object.
30672
30673 * xfaces.c (internal_resolve_face_name): Return a value.
30674 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30675
30676 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30677 (x_icon): Comment-out var only used in commented-out code.
30678
30679 2007-08-29 Romain Francoise <romain@orebokech.com>
30680
30681 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30682 QUIT hasn't been provided.
30683
30684 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30685
30686 * callproc.c (child_setup, getenv_internal): Use the
30687 display-environment-variable and term-environment-variable frame params.
30688 (set_initial_environment): Initialise Vprocess_environment.
30689
30690 * config.in: Disable multi-keyboard support on a mac.
30691
30692 * frame.c (Qterm_environment_variable)
30693 (Qdisplay_environment_variable): New variables.
30694 (syms_of_frame): Intern and staticpro them.
30695 (Fmake_terminal_frame): Disable output method test.
30696
30697 * frame.h: Declare them here.
30698
30699 * macfns.c (x_set_mouse_color): Get rif from the frame.
30700 (x_set_tool_bar_lines): Don't use updating_frame.
30701 (mac_window): Add 2 new parameters for consistency with other systems.
30702 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30703 frame parameters following what is done in X11 and w32. Don't use
30704 FRAME_MAC_DISPLAY_INFO.
30705 (Fx_open_connection, start_hourglass): Remove window-system check.
30706 (x_create_tip_frame): Get the keyboard from the terminal.
30707
30708 * macmenu.c: Reorder includes.
30709 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30710
30711 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30712 terminal parameter.
30713 (x_clear_frame): Add a frame parameter.
30714 (note_mouse_movement): Get rif from the frame.
30715 (mac_term_init): Initialize the terminal.
30716 (mac_initialize): Make static and move terminal initialization ...
30717 (mac_create_terminal): ... to this new function.
30718
30719 * macterm.h (struct mac_display_info): Add terminal.
30720 (mac_initialize): Delete declaration.
30721
30722 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30723
30724 * sysdep.c: Comment out text after #endif.
30725
30726 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30727 is defined. Better initialize ttys in windows. Use terminal
30728 specific mouse_position_hook.
30729
30730 * termhooks.h (union display_info): Add mac_display_info.
30731
30732 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30733 Set the default minibuffer frame, window_system and the rest of the
30734 frame parameters following what is done in X11.
30735
30736 * w32term.c (w32_initialize): Make static.
30737
30738 * xselect.c (x_handle_selection_clear): Only access
30739 terminal->kboard when MULTI_KBOARD is defined.
30740
30741 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30742 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30743
30744 2007-08-29 Jason Rumney <jasonr@gnu.org>
30745
30746 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30747 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30748
30749 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30750 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30751
30752 * keyboard.c (restore_kboard_configuration): Only define when
30753 MULTI_KBOARD defined.
30754
30755 * makefile.w32-in: Update dependancies from Makefile.in.
30756 (OBJ1): Add terminal.$(O)
30757
30758 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30759 Don't define function body.
30760 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30761
30762 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30763
30764 * w32.c (request_sigio, unrequest_sigio): Remove.
30765
30766 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30767 (w32con_clear_frame, w32con_clear_end_of_line)
30768 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30769 (w32con_delete_glyphs, w32con_set_terminal_window)
30770 (scroll_line, w32_sys_ring_bell): Add frame arg.
30771 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30772 Add terminal arg.
30773 (PICK_FRAME): Remove.
30774 (w32con_write_glyphs): Use frame specific terminal coding.
30775 (one_and_only_w32cons): New global variable.
30776 (initialize_w32_display): Use it for storing hooks.
30777 (create_w32cons_output): New function.
30778
30779 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30780 arg a frame.
30781
30782 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30783 Set window_system.
30784 (x_set_tool_bar_lines): Don't use updating_frame.
30785 (Fx_create_frame): Set terminal and ref count.
30786 (Fx_open_connection): Remove window-system check.
30787
30788 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30789
30790 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30791 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30792 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30793 Add frame arg.
30794 (x_delete_terminal, w32_create_terminal): New functions.
30795 (w32_term_init): Create a terminal.
30796 (w32_initialize): Move terminal specific initialization to
30797 w32_create_terminal.
30798
30799 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30800 (w32_clear_rect, w32_clear_area): Use background from frame.
30801 (w32_display_info): Add terminal.
30802 (w32_sys_ring_bell, x_delete_display): Declare here.
30803
30804 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30805
30806 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30807
30808 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30809
30810 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30811 Fix get_named_tty calls for the controlling tty.
30812
30813 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30814
30815 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
30816
30817 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30818
30819 * term.c (tty_insert_glyphs): Add missing first parameter.
30820
30821 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30822
30823 * buffer.c (Fbuffer_list, Fbury_buffer):
30824 Take frame->buried_buffer_list into account.
30825
30826 * cm.c (current_tty): New variable, for cmputc().
30827 (cmputc): Use it.
30828 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30829 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30830 (cmgoto): Add tty parameter. Pass it on to calccost().
30831 Use emacs_tputs() instead of tputs().
30832
30833 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30834 tputs().
30835 (current_tty): New variable, for cmputc().
30836 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30837
30838 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30839 (internal_condition_case, internal_condition_case_1)
30840 (internal_condition_case_2): Don't abort when x_catching_errors.
30841
30842 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30843 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30844 prevent crashes caused by bogus longjmps in read_char.
30845
30846 * keymap.h (Fset_keymap_parent): Add EXFUN.
30847
30848 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30849 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30850 Remove redundant definition.
30851
30852 * macfns.c (x_set_mouse_color, x_make_gc):
30853 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30854
30855 * w32term.c (x_free_frame_resources):
30856 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30857 (w32_initialize): Use the accessor macros for terminal characteristics.
30858
30859 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30860 Use the accessor macros for terminal characteristics.
30861 * msdos.c (internal_terminal_init): Use the accessor macros for
30862 terminal characteristics.
30863 (ScreenVisualBell, internal_terminal_init):
30864 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30865
30866 * termopts.h (no_redraw_on_reenter): Declare.
30867
30868 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30869 (mark_terminals, mark_ttys): Declare.
30870 (Fgarbage_collect): Call them.
30871 (mark_object): Mark buried_buffer_list.
30872
30873 * prefix-args.c: Include stdlib.h for exit.
30874
30875 * syssignal.h: Add comment.
30876
30877 * indent.c: Include stdio.h.
30878
30879 * window.h (Vinitial_window_system): Declare.
30880 (Vwindow_system): Delete declaration.
30881
30882 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30883
30884 * image.c (lookup_image): Don't initialize `c' until the xasserts
30885 have been run.
30886
30887 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30888 FRAME_FOREGROUND_PIXEL.
30889
30890 * print.c (print_preprocess): Don't lose print_depth levels while
30891 iterating.
30892
30893 * widget.c (update_from_various_frame_slots):
30894 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30895
30896 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30897 frames.
30898 (window_internal_height): Remove bogus make_number call.
30899 (init_window_once): Call make_terminal_frame with two zero parameters.
30900
30901 * fileio.c (Fread_file_name): Update comment.
30902
30903 * callint.c (Fcall_interactively):
30904 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30905 Make sure it is correctly unwound.
30906
30907 * xsmfns.c (x_session_close): New function.
30908
30909 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30910 Delete declarations.
30911
30912 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30913 (x_output): Remove background_pixel and foreground_pixel fields.
30914 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30915 (x_delete_device, x_session_close): Declare.
30916
30917 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30918 (read_filtered_event): Call `read_char' with a local
30919 `wrong_kboard_jmpbuf'.
30920
30921 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30922 Don't call single_kboard_state. Use FRAME_RIF.
30923
30924 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30925 systems.
30926
30927 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30928 (Fframe_with_environment, Fset_input_meta_mode)
30929 (Fset_quit_char): EXFUN.
30930 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30931 (init_sys_modes, reset_sys_modes): Update prototypes.
30932 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30933
30934 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30935 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30936 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30937 Delete declarations.
30938 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30939 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30940 New declarations.
30941
30942 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30943 already does that during init_display(). Call syms_of_keymap
30944 before syms_of_keyboard. Call `syms_of_terminal'.
30945 Call set_initial_environment, not set_process_environment.
30946 (shut_down_emacs): Call reset_all_sys_modes() instead of
30947 reset_sys_modes().
30948
30949 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30950 (internal_resolve_face_name, resolve_face_name_error): New functions.
30951 (resolve_face_name): Protect against loops and errors thrown by Fget.
30952 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30953 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30954
30955 * scroll.c: Replace CURTTY() with local variables throughout the
30956 file (where applicable).
30957 (calculate_scrolling, calculate_direct_scrolling)
30958 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30959 characteristics.
30960
30961 * keymap.c (Vfunction_key_map): Remove.
30962 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30963 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30964 (Vkey_translation_map): Remove.
30965 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30966 (Fdescribe_buffer_bindings)
30967 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30968 Update for terminal-local key-translation-map.
30969
30970 * Makefile.in (callproc.o): Update dependencies.
30971 (lisp, shortlisp): Add termdev.elc.
30972 (obj): Add terminal.o.
30973 (terminal.o): Add dependencies.
30974 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30975 (data.o, fns.o): Add termhooks.h dependency.
30976 (SOME_MACHINE_LISP): Add dnd.elc.
30977 (minibuf.o): Fix typo.
30978 Update dependencies.
30979
30980 * data.c (do_symval_forwarding, store_symval_forwarding)
30981 (find_symbol_value): Use the selected frame's keyboard, not
30982 current_kboard.
30983
30984 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30985 Vwindow_system.
30986
30987 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30988 Fmenu_bar_open.
30989 (syms_of_xmenu): Update defsubr.
30990 (mouse_position_for_popup, Fx_popup_menu)
30991 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30992 (set_frame_menubar, free_frame_menubar)
30993 (create_and_show_popup_menu, xmenu_show)
30994 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30995 an X frame.
30996
30997 * xselect.c (x_own_selection): Abort if not an X frame.
30998 (some_frame_on_display): Check if it is an X frame.
30999 (x_handle_selection_clear): Deal with MULTI_KBOARD.
31000
31001 * coding.c: Include frame.h and termhooks.h.
31002 (terminal_coding, keyboard_coding): Delete.
31003 (Fset_terminal_coding_system_internal)
31004 (Fset_keyboard_coding_system_internal)
31005 (Fkeyboard_coding_system)
31006 (Fterminal_coding_system): Add a terminal parameter.
31007 Get terminal_coding from the terminal.
31008 (init_coding_once): Don't call setup_coding_system here.
31009
31010 * dispextern.h (set_scroll_region, turn_off_insert)
31011 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31012 (tty_clear_end_of_line, tty_setup_colors)
31013 (delete_tty, updating_frame)
31014 (produce_special_glyphs, produce_glyphs, write_glyphs)
31015 (insert_glyphs): Remove.
31016 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31017 (tty_turn_off_highlight, get_tty_size): Add declaration.
31018 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31019
31020 * frame.h (enum output_method): Add output_initial.
31021 (struct x_output): Delete.
31022 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31023 Access foreground_pixel and background_pixel directly from the frame.
31024 (tty_display): Delete.
31025 (struct frame): Add buried_buffer_list, foreground_pixel,
31026 background_pixel and terminal. Delete kboard.
31027 (union output_data): Add tty.
31028 (FRAME_KBOARD): Get the kboard from the terminal.
31029 (FRAME_INITIAL_P): New macro.
31030 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31031 (Qterm_environment_variable, Qdisplay_environment_variable)
31032 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31033 New declarations.
31034
31035 * termchar.h (tty_output, tty_display_info): New structures.
31036 (tty_list): Declare.
31037 (FRAME_TTY, CURTTY): New macros.
31038 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31039 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31040 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31041 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31042
31043 * callproc.c: Include frame.h and termhooks.h, for terminal
31044 parameters.
31045 (add_env): New function.
31046 (child_setup): Use it.
31047 (child_setup, getenv_internal): Handle the new Vprocess_environment.
31048 (getenv_internal): Fix get_terminal_param call.
31049 (Fgetenv_internal, egetenv): Update doc.
31050 (syms_of_callproc): Initialize Vprocess_environment to nil.
31051 Register and initialize them. Remove obsolete defvars. Update doc
31052 strings.
31053 (child_setup): Handle Vlocal_environment_variables.
31054 (getenv_internal): Add terminal parameter.
31055 Handle Vlocal_environment_variables.
31056 (Fgetenv_internal): Add terminal parameter.
31057 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31058 environment in a frame (not terminal) parameter. Update doc strings.
31059 (set_initial_environment): Rename from set_global_environment.
31060 Store Emacs environment in initial frame parameter.
31061
31062 * xdisp.c (redisplay_internal): Update references to
31063 `previous_terminal_frame'.
31064 (display_mode_line, Fformat_mode_line): Replace calls to
31065 `push_frame_kboard' with `push_kboard'.
31066 (get_glyph_string_clip_rects): Add extra parentheses and
31067 braces to prevent compiler warnings.
31068 (calc_pixel_width_or_height): Add xassert to check that the
31069 frame is alive. Don't call `lookup_image' on a termcap frame.
31070 (message2_nolog, message3_nolog, redisplay_internal)
31071 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31072 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31073 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31074 (Fx_display_pixel_width, Fx_display_pixel_height)
31075 (Fx_display_planes, Fx_display_color_cells)
31076 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31077 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31078 (Fx_display_backing_store, Fx_display_visual_class)
31079 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31080 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31081
31082 * xfns.c (x_set_foreground_color x_set_background_color)
31083 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31084 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31085 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31086 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31087 terminal that is being deleted.
31088 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31089 frame parameter, and make sure it overrides any user-supplied setting.
31090 (Fx_close_connection, Fx_synchronize): Unify argument names with
31091 the rest of the DEFUNs.
31092
31093 * dispnew.c (Fsend_string_to_terminal): Update call to
31094 `get_tty_terminal'.
31095 (Fredraw_frame, Fsend_string_to_terminal)
31096 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31097 FRAME_TERMCAP_P and FRAME_TTY.
31098 (window_change_signal): Don't believe width/height values that are
31099 impossibly small.
31100 (Vinitial_window_system): Rename from Vwindow_system.
31101 (termscript, Wcm, rif): Delete.
31102
31103 * termhooks.h (struct terminal): New struct containing the
31104 previously global text display hooks and new members NAME,
31105 DELETED and PARAM_ALIST.
31106 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31107 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31108 (FRAME_RIF): New macros.
31109 (get_terminal_param, get_device): New declarations.
31110 (termscript): Delete declaration.
31111
31112 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31113 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31114 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31115 FRAME_FOREGROUND_PIXEL.
31116 (x_fully_uncatch_errors): Disable definition.
31117 (x_scroll_bar_expose): Fix reference to foreground pixel.
31118 (XTread_socket): Disable loop on all X displays.
31119 (x_delete_terminal): Don't set terminal->deleted and let
31120 delete_terminal delete the frames on the terminal.
31121 (x_delete_display): Doc update to reflect changes in
31122 delete_terminal.
31123 (x_display_info) <terminal>: Move member earlier in the struct.
31124 (deleting_tty): Remove old variable.
31125 (Fsuspend_tty): Call clear_tty_hooks.
31126 (Fresume_tty, init_tty): Call set_tty_hooks.
31127 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31128 errors on X frames.
31129 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31130 (handle_one_xevent): Initialize `f' to NULL.
31131 (x_delete_terminal, x_create_terminal): New functions.
31132 (XTset_terminal_modes, XTreset_terminal_modes)
31133 (XTread_socket, x_connection_closed, x_term_init)
31134 (x_term_init, x_delete_display): Add terminal parameter.
31135 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31136 X connections.
31137
31138 * frame.c: Include termchar.h.
31139 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31140 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31141 (Qdisplay_environment_variable): New vars.
31142 (Fframep): Deal with output_initial.
31143 (Fframe-live-p): Doc fix.
31144 (Fwindow-system): New function.
31145 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31146 (make_terminal_frame): Don't create frames on a terminal that is
31147 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31148 (store_frame_param): Check for found_for_frame before calling XFRAME.
31149 (Fmake_terminal_frame): Handle NULL tty names correctly.
31150 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31151 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31152 frames to refer to a deleted frame in their 'environment parameter.
31153 (Fframe_with_environment): New function.
31154 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31155 (get_future_frame_param): New function.
31156 (Fmake_terminal_frame): Use it.
31157 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31158
31159 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31160 * sysdep.c (reset_sys_modes): Update for renames.
31161
31162 * keyboard.c (tty_read_avail_input): New function.
31163 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31164 (syms_of_keyboard): Defsubr them.
31165 (Fset_input_meta_mode, Fset_quit_char): New functions.
31166 (Fset_input_mode): Split to above functions.
31167 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31168 parameter. Use it in call to `read_char'.
31169 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31170 Set wrong_kboard_jmpbuf correctly in recursive calls.
31171 Use current_kboard to access Vkeyboard_translate_table.
31172 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31173 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31174 Update longjmp invocations. Remember the original current_kboard,
31175 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31176 changes it. Comment out unnecessary calls to
31177 `record_single_kboard_state' and `any_kboard_state'.
31178 Update recursive calls.
31179 (wrong_kboard_jmpbuf): Remove global variable.
31180 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31181 Handle deleted interrupted_kboards correctly; that is a legal
31182 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31183 and read_char calls. Abort if interrupted_kboard died in read_char.
31184 (any_kboard_state, single_kboard_state)
31185 (push_frame_kboard): Remove function.
31186 (pop_kboard): Switch out of single_kboard mode if the kboard has
31187 been deleted. Remove unused variable. Help debugging by not
31188 changing current_kboard unnecessarily. Set current_kboard to the
31189 kboard of the selected frame when the stored kboard object has
31190 been deleted before pop_kboard.
31191 (temporarily_switch_to_single_kboard): Change first parameter to a
31192 frame pointer. Throw an error when caller wants to change kboards
31193 while in single_kboard mode. Don't push_kboard if we weren't in
31194 single kboard state. Don't pop_kboard if we popped into any
31195 kboard state.
31196 (restore_kboard_configuration): Abort if pop_kboard changed the
31197 kboard in single_kboard mode. Call pop_kboard only after setting
31198 up single_kboard mode.
31199 (Frecursive_edit): Switch to single_kboard mode only in nested
31200 command loops.
31201 (cmd_error, command_loop, command_loop_1, timer_check):
31202 Comment out unnecessary call to `any_kboard_state' and
31203 `record_single_kboard_state'.
31204 (delete_kboard): Exit single_kboard mode if we have just deleted
31205 that kboard. Use FRAME_KBOARD.
31206 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31207 `fatal_error_signal'.
31208 (record_single_kboard_state): Don't push_kboard if we weren't in
31209 single kboard state. Don't pop_kboard if we popped into any
31210 kboard state.
31211 (push_frame_kboard): Rename to push_kboard.
31212 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31213 (read_avail_input): Read input from all terminals.
31214 (mark_kboards): Also mark Vkeyboard_translate_table.
31215 (kbd_buffer_store_event_hold): Simplify condition.
31216 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31217 (Vkeyboard_translate_table): Move to struct kboard.
31218 (init_kboard): Initialize Vkeyboard_translate_table.
31219 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31220 Vkeyboard_translate_table. Update doc strings. Update docs of
31221 local-function-key-map and function-key-map.
31222
31223 * terminal.c: New file.
31224
31225 * term.c: Include errno.h.
31226 (Vring_bell_function, device_list, initial_device)
31227 (next_device_id, ring_bell, update_begin, update_end)
31228 (set_terminal_window, cursor_to, raw_cursor_to)
31229 (clear_to_end, clear_frame, clear_end_of_line)
31230 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31231 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31232 (syms_of_term): Move their initialization to terminal.c.
31233 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31234 (Ftty_display_color_cells)
31235 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31236 (clear_tty_hooks, set_tty_hooks)
31237 (init_tty, maybe_fatal): New functions.
31238 (Ftty_type): Return nil if terminal is not on a tty instead of
31239 throwing an error. Doc update.
31240 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31241 Doc update. Initialize new subrs and variables.
31242 (delete_tty): Use terminal->deleted.
31243 (tty_set_terminal_modes): Rename from set_terminal_modes.
31244 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31245 (set_scroll_region): Rename to `tty_set_scroll_region'.
31246 (turn_on_insert): Rename to `tty_turn_on_insert'.
31247 (turn_off_insert): Rename to `tty_turn_off_insert'.
31248 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31249 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31250 (toggle_highligh): Rename to `tty_toggle_highlight'.
31251 (background_highlight): Rename to `tty_background_highlight'.
31252 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31253 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31254 (tty_set_scroll_region, tty_background_highlight)
31255 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31256 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31257 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31258 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31259 Add static modifier.
31260 (tty_reset_terminal_modes, tty_set_terminal_window)
31261 (tty_set_scroll_region, tty_background_highlight)
31262 (tty_highlight_if_desired, tty_cursor_to)
31263 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31264 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31265 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31266 renames.
31267
31268 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31269
31270 * keyboard.c: Qrtl is new.
31271 (parse_tool_bar_item): Handle :rtl keyword.
31272 (syms_of_keyboard): Intern :rtl keyword.
31273
31274 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31275
31276 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31277 so no Lisp code is executed.
31278 (file_for_image, find_rtl_image): New functions.
31279 (xg_get_image_for_pixmap): Use file_for_image.
31280 (update_frame_tool_bar): If direction is RTL, use RTL image if
31281 defined. Use Gtk stock images if defined.
31282
31283 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31284
31285 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31286 for nonexistent or zero-width glyph in composition glyph.
31287
31288 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31289
31290 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31291
31292 * xdisp.c (Finvisible_p): New function.
31293 (syms_of_xdisp): defsubr it.
31294
31295 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
31296
31297 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31298 Doc fixes.
31299
31300 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31301
31302 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31303
31304 2007-08-24 Martin Rudalics <rudalics@gmx.at>
31305
31306 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31307 whether decoding has modified buffer contents.
31308
31309 2007-08-24 Jason Rumney <jasonr@gnu.org>
31310
31311 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31312 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31313 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31314 (init_svg_functions) [HAVE_NTGUI]: New function.
31315 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31316 (svg_load_image): Use them.
31317 (svg_load_image) [HAVE_NTGUI]: Implement background.
31318
31319 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31320
31321 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31322 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31323 (LIBX): Remove @RSVG_LIBS@.
31324 (LIBES): Add $(RSVG_LIBS).
31325
31326 * image.c (svg_load_image): Blend with specified background if exists.
31327 Use IMAGE_BACKGROUND. Add Mac OS Support.
31328
31329 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31330 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31331 Remove macros.
31332 [MAC_OSX] (socket_callback): Do nothing.
31333 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31334 ReceiveNextEvent.
31335 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31336 socket_callback.
31337 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31338
31339 2007-08-22 Glenn Morris <rgm@gnu.org>
31340
31341 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31342
31343 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31344
31345 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31346
31347 * image.c: Add support for SVG images. Some additional comments
31348 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31349 (svg_image_p): New function to test for SVG image.
31350 (svg_load): New function to load SVG image.
31351 (svg_load_image): New function, helper for svg_load.
31352 (Qsvg): New Lisp_object.
31353 (svg_keyword_index): New enum.
31354 (svg_format): New static `image_keyword' struct.
31355 (svg_type): New static `image_type' struct.
31356 (librsvg/rsvg.h): Include it.
31357
31358 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31359
31360 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31361
31362 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31363
31364 * lread.c (Qold_style_backquotes): New var.
31365 (syms_of_lread): Init and staticpro it.
31366 (load_warn_old_style_backquotes): New fun.
31367 (Fload): Use them to warn about old style backquotes.
31368 (end_of_file_error, Fload): Remove unused vars.
31369
31370 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31371
31372 * lread.c (Vold_style_backquotes): New var.
31373 (syms_of_lread): Init and export it to Elisp.
31374 (read1): Set it when we find an old-style (back)quote.
31375
31376 2007-08-22 Jason Rumney <jasonr@gnu.org>
31377
31378 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31379
31380 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31381
31382 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31383
31384 2007-08-19 Richard Stallman <rms@gnu.org>
31385
31386 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31387
31388 2007-08-19 Andreas Schwab <schwab@suse.de>
31389
31390 * alloc.c (pure): Round PURESIZE up.
31391
31392 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31393
31394 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31395 active frame.
31396
31397 2007-08-16 Richard Stallman <rms@gnu.org>
31398
31399 * eval.c (Fcommandp): Add parens to clarify.
31400
31401 * minibuf.c (Fall_completions): Use enum for type of table.
31402
31403 * emacs.c (USAGE2): Improve text.
31404
31405 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31406
31407 * term.c (tty_default_color_capabilities): Declare static
31408 variables in file scope, to avoid HPUX compiler problem.
31409
31410 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31411
31412 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31413 to gtk_toolbar_insert.
31414
31415 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31416
31417 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31418
31419 * insdel.c (reset_var_on_error): New fun.
31420 (signal_before_change, signal_after_change):
31421 Use it to reset (after|before)-change-functions to nil in case of error.
31422 Bind inhibit-modification-hooks to t.
31423 Don't bind (after|before)-change-functions to nil while they run.
31424
31425 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31426
31427 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31428 filling pixmap with stippled background.
31429
31430 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31431
31432 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31433 Don't use invisible frame as parent window for repositioning.
31434
31435 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31436
31437 * print.c (new_backquote_output): Rename from old_backquote_output.
31438 (print): Inverse its logic (according to its name) so as to match the
31439 behavior of new_backquote_flag in lread.c.
31440
31441 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31442
31443 * gmalloc.c (posix_memalign): New function.
31444
31445 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31446 ActivateControl/DeactivateControl here.
31447 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31448 frame-notice-user-settings is non-nil.
31449 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31450 for kEventParamFMFontStyle.
31451 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31452 mac_pass_command_to_system and mac_pass_control_to_system here.
31453 (XTread_socket): Call ActivateControl/DeactivateControl here.
31454 (XTread_socket) [TARGET_API_MAC_CARBON]:
31455 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31456 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31457 for window repositioning.
31458
31459 2007-08-08 Glenn Morris <rgm@gnu.org>
31460
31461 * Replace `iff' in doc-strings and comments.
31462
31463 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
31464
31465 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31466
31467 2007-08-07 Martin Rudalics <rudalics@gmx.at>
31468
31469 * fileio.c (Finsert_file_contents): Run format-decode and
31470 after_insert_file_functions on entire buffer when REPLACE is
31471 non-nil and inhibit modification_hooks and point_motion_hooks.
31472 For consistency, run after_insert_file_functions iff something
31473 got inserted. Move signal_after_change and update_compositions
31474 after code running after_insert_file_functions. Make sure that
31475 undo_list doesn't record intermediate steps of the decoding process.
31476
31477 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31478
31479 * emacs.c (main)
31480 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31481 Call malloc_enable_thread on interactive startup.
31482
31483 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31484 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31485 [USE_PTHREAD]: Conditionalize with it.
31486 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31487 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31488 New functions.
31489
31490 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
31491
31492 * xdisp.c (redisplay_window): When restoring original buffer
31493 position, make sure it is still valid.
31494
31495 * image.c (png_load): Ignore png-supplied background color.
31496
31497 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31498
31499 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31500 Use kCFAbsoluteTimeIntervalSince1970.
31501
31502 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31503 New variable.
31504 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31505 event loop should be quit.
31506 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31507 Quit dialog event loop if quit_dialog_event_loop is set.
31508
31509 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31510 (Selection): New typedef. Use instead of ScrapRef.
31511 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31512 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31513 (mac_clear_selection): Rename from clear_scrap.
31514 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31515 scrap_has_target_type. All uses changed.
31516 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31517 (mac_selection_has_target_p): New functions.
31518 (mac_put_selection_value): Rename from put_scrap_string.
31519 (mac_get_selection_value): Rename from get_scrap_string.
31520 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31521 (put_scrap_private_timestamp, scrap_has_target_type)
31522 (get_scrap_private_timestamp): Remove functions.
31523 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31524 (x_own_selection, x_get_local_selection):
31525 Use mac_valid_selection_value_p.
31526 (x_own_selection): Don't use put_scrap_private_timestamp.
31527 Record OWNERSHIP-INFO into Vselection_alist instead.
31528 (x_get_local_selection): Don't check type if request is local.
31529 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31530 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31531
31532 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31533
31534 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31535 add comment explaining why.
31536
31537 2007-08-03 Richard Stallman <rms@gnu.org>
31538
31539 * fileio.c (Fvisited_file_modtime): Use make_time.
31540
31541 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31542
31543 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31544 build.
31545
31546 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31547
31548 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31549
31550 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31551
31552 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31553
31554 2007-07-30 Richard Stallman <rms@gnu.org>
31555
31556 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31557
31558 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31559
31560 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31561
31562 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
31563
31564 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31565 remote default-directory.
31566
31567 * buffer.c (mode-line-format): Update doc string.
31568
31569 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31570
31571 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31572 scroll bar gap.
31573 (x_scroll_bar_create): Set bar->fringe_extended_p.
31574 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31575 on frame edge. Check fringe background extension. Don't clear
31576 extended fringe background area.
31577
31578 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31579 (w32_fill_area): Enclose multiple statements with do ... while (0).
31580
31581 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31582 Extend fringe background to scroll bar gap.
31583 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31584 Set bar->fringe_extended_p.
31585 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31586 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31587 background extension. Don't clear extended fringe background area.
31588
31589 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31590 New member fringe_extended_p.
31591
31592 2007-07-25 Glenn Morris <rgm@gnu.org>
31593
31594 * Relicense all FSF files to GPLv3 or later.
31595
31596 * COPYING: Switch to GPLv3.
31597
31598 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31599
31600 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31601
31602 * data.c (Finteractive_form): Check for the presence of an
31603 `interactive-form' symbol property more thoroughly.
31604
31605 * data.c (Finteractive_form): Use an `interactive-form' property if
31606 present, analogous to the function-documentation property.
31607
31608 2007-07-24 Jason Rumney <jasonr@gnu.org>
31609
31610 * w32fns.c (x_real_positions): Get real position from OS instead of
31611 calculating it.
31612
31613 2007-07-23 Jason Rumney <jasonr@gnu.org>
31614
31615 * filelock.c (current_lock_owner): Allow for @ sign in username.
31616
31617 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
31618
31619 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31620 remote default-directory.
31621
31622 * buffer.c (mode-line-format): Describe above case in doc string.
31623
31624 2007-07-20 Eli Zaretskii <eliz@gnu.org>
31625
31626 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31627 Define if not defined.
31628
31629 2007-07-18 Jason Rumney <jasonr@gnu.org>
31630
31631 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31632
31633 2007-07-18 Richard Stallman <rms@gnu.org>
31634
31635 * data.c (Fsetq_default): Doc fix.
31636
31637 * eval.c (Fsetq): Doc fix.
31638
31639 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
31640
31641 * coding.c (Ffind_operation_coding_system):
31642 * eval.c (For, Fand): Doc fixes.
31643 Reported by Johan Bockgård.
31644
31645 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31646
31647 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31648
31649 * xterm.h: Declare x_ewmh_activate_frame.
31650
31651 * xterm.c (x_ewmh_activate_frame): New function.
31652 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31653
31654 2007-07-17 Martin Rudalics <rudalics@gmx.at>
31655
31656 * window.c (Fdisplay_buffer): If largest or LRU window is the
31657 only window, split it even if it is not eligible for splitting.
31658 This restores the original behavior broken by the 2007-07-15
31659 change.
31660
31661 2007-07-17 Glenn Morris <rgm@gnu.org>
31662
31663 * abbrev.c (abbrev_check_chars): New function.
31664 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31665 Call abbrev_check_chars to check abbrev characters are word
31666 constituents. Doc fix.
31667
31668 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31669
31670 * process.c (Fstart_process, Fmake_network_process)
31671 (read_process_output): Fix up last changes.
31672
31673 2007-07-16 Eli Zaretskii <eliz@gnu.org>
31674
31675 * makefile.w32-in (clean): Don't delete *~.
31676
31677 2007-07-16 Andreas Schwab <schwab@suse.de>
31678
31679 * window.c (Fdisplay_buffer): Use NILP.
31680 (Fset_window_scroll_bars): Likewise.
31681
31682 2007-07-15 Martin Rudalics <rudalics@gmx.at>
31683
31684 * window.c (window_min_size_2): New function.
31685 (window_min_size_1, size_window, Fdisplay_buffer)
31686 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31687 windows without mode- or header-lines when window-min-height is
31688 too small.
31689 (size_window): Reset nodelete_p after testing it, following an
31690 earlier note by Kim F. Storm.
31691 (display_buffer): Do not set split_height_threshold to twice the
31692 value of window_min_height to avoid changing the value of a
31693 customizable variable. Rather explicitly check whether the
31694 height of the window that shall be splitted is at least as large
31695 as split_height_threshold.
31696 (Fwindow_full_width_p): New defun.
31697 (syms_of_window): Defsubr it.
31698
31699 * window.h: Add EXFUN for Fwindow_full_width_p.
31700
31701 2007-07-14 Jason Rumney <jasonr@gnu.org>
31702
31703 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31704
31705 2007-07-14 Richard Stallman <rms@gnu.org>
31706
31707 * eval.c (maybe_call_debugger): New function.
31708 (find_handler_clause): Use maybe_call_debugger.
31709 Call it when the handler says `debug'.
31710 Eliminate DEBUGGER_VALUE_PTR.
31711 (Fsignal): Eliminate debugger_value.
31712 (Qdebug): New variable.
31713 (syms_of_eval): Initialize it.
31714
31715 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
31716
31717 * eval.c (Fprogn):
31718 * keyboard.c (Ftrack_mouse):
31719 * print.c (Fwith_output_to_temp_buffer):
31720 * window.c (Fsave_window_excursion): Doc fix.
31721
31722 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31723
31724 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31725
31726 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31727
31728 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31729 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31730 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31731 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31732 Remove unused encoding_carryover.
31733 * process.c: Adjust all functions accordingly.
31734
31735 2007-07-12 Richard Stallman <rms@gnu.org>
31736
31737 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31738
31739 2007-07-11 Jason Rumney <jasonr@gnu.org>
31740
31741 * makefile.w32-in (LIBS): Include OLE32.
31742
31743 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31744 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31745
31746 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31747
31748 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31749 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31750 from a Lisp_Object into a bare pointer.
31751 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31752 Adjust the code correspondingly.
31753
31754 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31755
31756 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31757 (term_show_mouse_face): Remove unused var `j'.
31758 (handle_one_term_event): Remove unused vars `i' and `j'.
31759 Don't cast return value of ttyname since it's not necessary.
31760
31761 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31762
31763 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31764 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31765
31766 * fns.c (map_char_table): Use an array of int for `indices' rather than
31767 an array of Lisp_Objects (which are only ever integers anyway).
31768 (Fmap_char_table): Update caller.
31769 * lisp.h: Update prototype.
31770 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31771 * fontset.c (Ffontset_info):
31772 * casetab.c (set_case_table): Update callers.
31773
31774 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31775
31776 * keymap.c (struct accessible_keymaps_data)
31777 (struct where_is_internal_data): New structures.
31778 (accessible_keymaps_1, where_is_internal_1): Use them to change
31779 interface to adhere to the one used by map_keymap.
31780 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31781 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31782
31783 * keymap.h (map_keymap_function_t): More informative prototype.
31784
31785 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31786
31787 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31788 (looking_at_1): Don't change search_regs and last_thing_searched
31789 if `inhibit-changing-match-data' is non-nil.
31790 (string_match_1, search_buffer, set_search_regs): Likewise.
31791 (syms_of_search): Add Lisp level definition for
31792 `inhibit-changing-match-data' and set it to nil.
31793 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31794 start and end of the match, instead of using values in search_regs.
31795
31796 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31797
31798 * minibuf.c (Fcompleting_read): New value `confirm-only'
31799 for `require-match'.
31800
31801 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31802
31803 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31804 part of the 2007-06-27 change to syms_of_fileio.
31805
31806 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31807
31808 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31809 Check WINDOWP before using XWINDOW. Consolidate return statements.
31810
31811 2007-06-27 Richard Stallman <rms@gnu.org>
31812
31813 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31814
31815 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
31816
31817 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31818
31819 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31820
31821 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31822 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31823 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31824 (_free_internal, memalign): Use them.
31825 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31826 Initialize to PTHREAD_MUTEX_INITIALIZER.
31827 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31828 (morecore_nolock): Rename from morecore. All uses changed.
31829 Use only nolock versions of internal allocation functions.
31830 (_malloc_internal_nolock, _realloc_internal_nolock)
31831 (_free_internal_nolock): New functions created from
31832 _malloc_internal, _realloc_internal, and _free_internal.
31833 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31834 Copy hook value to automatic variable before its use.
31835 (memalign): Copy hook value to automatic variable before its use.
31836
31837 2007-06-26 Kenichi Handa <handa@m17n.org>
31838
31839 * coding.c (Ffind_operation_coding_system): Docstring improved.
31840 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31841
31842 2007-06-25 David Kastrup <dak@gnu.org>
31843
31844 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31845 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31846 cater for additional parameter.
31847
31848 * keymap.h: Adjust number of parameters to `current-active-maps'.
31849
31850 * doc.c (Fsubstitute_command_keys): Adjust call of
31851 `current-active-maps'.
31852
31853 2007-06-25 David Kastrup <dak@gnu.org>
31854
31855 * callint.c (Fcall_interactively): Make the parsing of interactive
31856 specs somewhat more readable.
31857
31858 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31859
31860 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31861 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31862 if extended background has already been filled.
31863
31864 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31865
31866 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31867 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31868
31869 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31870 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31871 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31872 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31873 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31874 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31875 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31876 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31877 Run timers during dialog popup.
31878 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31879
31880 2007-06-21 Jason Rumney <jasonr@gnu.org>
31881
31882 * image.c (convert_mono_to_color_image): Swap fore and background.
31883
31884 2007-06-20 Jason Rumney <jasonr@gnu.org>
31885
31886 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31887 (w32_free_bdf_font): Unmap memory not handle.
31888
31889 2007-06-20 Sam Steingold <sds@gnu.org>
31890
31891 * gmalloc.c (__morecore): Fix the declaration to comply with the
31892 definition.
31893
31894 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
31895
31896 * w32term.c (w32_delete_display): Remove leftover declaration.
31897 (w32_define_cursor, w32_initialize): Make static.
31898
31899 * w32.c (_wsa_errlist): Fix typo in error message.
31900 (init_environment): Ignore any environment variable from the
31901 registry having a null value.
31902
31903 2007-06-20 Glenn Morris <rgm@gnu.org>
31904
31905 * Makefile.in (LIBGIF): Default to -lgif.
31906
31907 2007-06-17 Jason Rumney <jasonr@gnu.org>
31908
31909 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31910 unicode strings.
31911
31912 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
31913
31914 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31915 Fix typo in docstring.
31916
31917 2007-06-16 Eli Zaretskii <eliz@gnu.org>
31918
31919 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31920 and their keybindings.
31921
31922 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
31923
31924 * composite.c (update_compositions): Fix last fix.
31925
31926 2007-06-14 Jason Rumney <jasonr@gnu.org>
31927
31928 * w32.c (get_process_times_fn): New function pointer.
31929 (globals_of_w32): Intialize it if present in kernel32.dll.
31930 (w32_get_internal_run_time): New function.
31931
31932 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31933
31934 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31935
31936 * composite.c (update_compositions): Check the validness of
31937 compositions.
31938
31939 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31940
31941 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31942 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31943
31944 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31945 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31946
31947 * macgui.h (USE_MAC_TOOLBAR): New define.
31948
31949 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31950 Return immediately unless popup is activated.
31951
31952 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31953 background to scroll bar gap.
31954 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31955 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31956 scroll bars on frame edge. Check fringe background extension.
31957 Don't clear extended fringe background area.
31958 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31959 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31960 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31961 [USE_MAC_TOOLBAR]: New macros.
31962 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31963 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31964 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31965 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31966 [USE_MAC_TOOLBAR]: New functions.
31967 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31968 manually if previous repositioning has failed.
31969 (mac_handle_keyboard_event): Use precomputed event kind.
31970 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31971 as tool bar item click. Handle mouse movement over tool bar items.
31972
31973 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31974 toolbar_win_gravity.
31975 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31976 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31977 Add externs.
31978
31979 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31980 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31981
31982 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
31983
31984 * image.c (search_image_cache): Remove unused variable.
31985
31986 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
31987
31988 * xfns.c, xmenu.c: Link to xaw3d if available.
31989
31990 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31991
31992 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31993 frame_foreground and frame_background.
31994
31995 * image.c (lookup_image): Save frame foreground and background colors.
31996 (search_image_cache): Check if saved and current frame colors match.
31997
31998 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31999
32000 * regex.c (regex_compile): Remove the `regnum' counter.
32001 Use bufp->re_nsub instead. Add support for \(?N:RE\).
32002
32003 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
32004
32005 * term.c: Include intervals.h to declare Fget_text_property.
32006
32007 2007-06-10 Jason Rumney <jasonr@gnu.org>
32008
32009 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32010
32011 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
32012
32013 * callint.c (Fcall_interactively):
32014 * editfns.c (Fdelete_and_extract_region):
32015 * fileio.c (Fread_file_name):
32016 * fns.c (Fmapconcat):
32017 * keyboard.c (cmd_error_internal):
32018 * keymap.c (Fkey_description):
32019 * lread.c (openp):
32020 * minibuf.c (read_minibuf):
32021 * search.c (wordify):
32022 * sunfns.c (sel_read):
32023 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32024 * xfns.c (x_default_scroll_bar_color_parameter):
32025 * xmenu.c (menu_help_callback):
32026 * xselect.c (Fx_get_atom_name):
32027 * xterm.c (x_term_init): Use empty_unibyte_string.
32028
32029 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
32030
32031 * alloc.c (init_strings): Initialize canonical empty strings.
32032 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32033 canonical empty string when the requested size is 0.
32034
32035 * emacs.c (empty_unibyte_string): Rename from empty_string.
32036 (empty_multibyte_string): New canonical empty string.
32037 (syms_of_emacs): Don't initialize empty_string.
32038
32039 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32040 string, if appropriate.
32041 (empty_unibyte_string, empty_multibyte_string): New externs.
32042 (empty_string): Remove extern.
32043
32044 * lread.c (syms_of_lread): Use empty_unibyte_string.
32045
32046 2007-06-07 Jason Rumney <jasonr@gnu.org>
32047
32048 * s/ms-w32.h: Don't define HAVE_TZNAME.
32049
32050 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32051
32052 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32053
32054 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32055
32056 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32057 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32058
32059 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32060 Don't call next handler.
32061 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32062 Remove argument. Install handler to application.
32063 (set_frame_menubar): Don't change deep_p.
32064 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32065 FRAME_OUTER_TO_INNER_DIFF_Y.
32066 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32067 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32068 [HAVE_DIALOGS]: New macros.
32069 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32070 Use them.
32071 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32072
32073 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32074 init_service_handler. All callers changed. Return OSStatus value.
32075
32076 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32077 All callers changed so as not to call SetPortWindowPort.
32078 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32079 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32080 mac_draw_string_common.
32081 (mac_draw_image_string_qd): Likewise.
32082 (mac_draw_string_common): Use them. Add INLINE.
32083 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32084 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32085 GetGlobalMouse.
32086 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32087 and FRAME_OUTER_TO_INNER_DIFF_Y.
32088 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32089 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32090 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32091 repositioning window to mac_handle_window_event.
32092 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32093 saving window location to mac_handle_window_event
32094 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32095 (install_menu_target_item_handler): Remove argument in extern.
32096 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32097 Also accept command events.
32098 (do_keystroke): New function created from XTread_socket.
32099 (init_command_handler): Remove functions.
32100 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32101 and save window location by kEventWindowShowing and kEventWindowHiding
32102 handlers here. Don't call next handler for window state change and
32103 focus events.
32104 (mac_handle_application_event, mac_handle_keyboard_event)
32105 [TARGET_API_MAC_CARBON]: New functions.
32106 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32107 kEventWindowShowing and kEventWindowHiding events. Move installation
32108 of mouse, font, text input and menu target item handlers to
32109 install_application_handler.
32110 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32111 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32112 New function.
32113 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32114 Register it.
32115 (XTread_socket) [TARGET_API_MAC_CARBON]:
32116 Consolidate SendEventToEventTarget calls.
32117 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32118 Move application activation handler to mac_handle_application_event.
32119 Move keyboard handler to mac_handle_keyboard_event.
32120 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32121 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32122 init_command_handler. Call install_application_handler.
32123
32124 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32125 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32126
32127 2007-06-07 Glenn Morris <rgm@gnu.org>
32128
32129 * emacs.c (main): Use `emacs-copyright' in --version output.
32130
32131 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
32132
32133 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32134
32135 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32136
32137 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32138
32139 * macgui.h: Replace WindowPtr with WindowRef.
32140
32141 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32142 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32143 Replace ControlHandle with ControlRef.
32144 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32145
32146 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32147 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32148 Replace ControlHandle with ControlRef.
32149 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32150 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32151
32152 * macterm.h (struct scroll_bar): Rename member control_handle_low
32153 and control_handle_high to control_ref_low and control_ref_high.
32154 All uses changed.
32155 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32156 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32157 respectively. All uses changed.
32158 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32159 (install_window_handler, remove_window_handler): Replace WindowPtr
32160 with WindowRef in externs.
32161
32162 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
32163
32164 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32165
32166 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
32167
32168 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32169
32170 * frame.c (Fmouse_position, Fmouse_pixel_position):
32171 Condition on HAVE_GPM too.
32172
32173 * term.c (term_mouse_highlight): Remove unused variables.
32174 (Fterm_open_connection): Set gpm_zerobased to 1.
32175 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32176 Use zero based co-ordinates.
32177 (handle_one_term_event): Report a drag as mouse movement too.
32178
32179 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32180
32181 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
32182
32183 * image.c (search_image_cache): New function. Require background
32184 color match if background color is unspecified in the image spec.
32185 (uncache_image, lookup_image): Use it.
32186
32187 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
32188
32189 * window.c (Fshrink_window): Reflow docstring.
32190
32191 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
32192
32193 * Version 22.1 released.
32194
32195 2007-06-01 Richard Stallman <rms@gnu.org>
32196
32197 * xfns.c (x_encode_text): Add GCPRO.
32198
32199 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32200
32201 * xfns.c (x_set_name_internal): Save encoded name before
32202 x_encode_text in case string data is relocated.
32203
32204 2007-05-31 Richard Stallman <rms@gnu.org>
32205
32206 * buffer.c (syms_of_buffer): Doc fix.
32207
32208 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
32209
32210 * sysdep.c (init_sys_modes): Add rather than replace with
32211 O_NONBLOCK.
32212
32213 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32214 term_mouse_moveto.
32215
32216 * termhooks.h (term_mouse_moveto): New extern.
32217
32218 * term.c (mouse_face_window): Rename...
32219 (Qmouse_face_window): ...to this.
32220 (term_show_mouse_face, term_clear_mouse_face)
32221 (term_mouse_highlight): Use Qmouse_face_window.
32222 (term_mouse_moveto): New function.
32223 (term_mouse_position): Make it work.
32224 (syms_of_term): Uncomment assignment to mouse_position_hook.
32225 Staticpro Qmouse_face_window.
32226
32227 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32228
32229 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32230 around current_column call.
32231
32232 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32233
32234 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32235 * xdisp.c (next_element_from_buffer):
32236 * window.c (delete_window):
32237 * term.c (term_mouse_highlight):
32238 * msdos.c (getdefdir):
32239 * macterm.c (mac_create_bitmap_from_bitmap_data)
32240 (init_font_name_table):
32241 * fns.c (Fsxhash):
32242 * data.c (Fmake_local_variable):
32243 * ccl.c (ccl_driver): Likewise.
32244
32245 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32246
32247 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32248 Call mac_wakeup_from_rne on window size change.
32249
32250 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
32251
32252 * image.c (uncache_image): Fix typo.
32253
32254 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32255
32256 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32257
32258 2007-05-22 Richard Stallman <rms@gnu.org>
32259
32260 * xterm.c (x_connection_closed): Remove NO_RETURN.
32261
32262 2007-05-22 Martin Rudalics <rudalics@gmx.at>
32263
32264 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32265
32266 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
32267
32268 * image.c (uncache_image): New function.
32269 (Fimage_refresh): New function.
32270
32271 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32272
32273 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32274
32275 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32276
32277 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32278 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32279
32280 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32281
32282 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32283 conditional on [HAVE_GPM_H].
32284
32285 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32286
32287 * syntax.c (skip_chars): Update syntax-table only after we checked that
32288 the new location is valid.
32289
32290 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32291
32292 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32293 mac_get_window_bounds.
32294
32295 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32296
32297 * Makefile.in (LIBGPM): Allow it to be set from configure.
32298 If set then link Emacs with it.
32299
32300 * config.in: Regenerate.
32301
32302 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32303 New externs.
32304
32305 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32306 Include gpm.h.
32307 (handle_one_term_event, term_gpm): New externs.
32308
32309 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32310 and allow it to be interrupted by SIGIO.
32311
32312 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32313 (wait_reading_process_output): Wait on gpm_fd too.
32314 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32315 (add_gpm_wait_descriptor_called_flag): New variable.
32316 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32317
32318 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32319 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32320 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32321 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32322 (make_lispy_event): Add case GPM_CLICK_EVENT.
32323 (read_avail_input): Handle mouse input.
32324
32325 * term.c (write_glyphs_with_face): New function.
32326 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32327 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32328 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32329 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32330 (last_mouse_x, last_mouse_y): New variables.
32331 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32332 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32333 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32334 (Fterm_close_connection): New functions.
32335 (term_init): Initialise mouse_face_window.
32336
32337 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
32338
32339 * xdisp.c (redisplay_window): If first window line is a
32340 continuation line, recompute the new window start instead of
32341 recentering.
32342
32343 2007-05-18 Glenn Morris <rgm@gnu.org>
32344
32345 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32346 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32347
32348 2007-05-17 Glenn Morris <rgm@gnu.org>
32349
32350 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32351
32352 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32353
32354 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32355 dead key repeat and up events.
32356
32357 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
32358
32359 * image.c (pbm_load): Check image size for monochrome pbm.
32360
32361 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
32362
32363 * xterm.c (XTread_socket): Revert last change.
32364
32365 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
32366
32367 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32368
32369 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32370
32371 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32372
32373 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32374 mixup (YAILOM).
32375
32376 2007-05-07 Andreas Schwab <schwab@suse.de>
32377
32378 * keymap.c (Flookup_key): Fix typo in last change.
32379
32380 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32381
32382 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32383 mapping for unibyte strings.
32384
32385 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32386
32387 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32388 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32389
32390 2007-04-29 Richard Stallman <rms@gnu.org>
32391
32392 * insdel.c (replace_range): For undo, record insertion first.
32393
32394 2007-04-29 Andreas Schwab <schwab@suse.de>
32395
32396 * lisp.h (VECSIZE): Use OFFSETOF.
32397
32398 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32399
32400 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32401 disabled lines.
32402
32403 2007-04-28 Richard Stallman <rms@gnu.org>
32404
32405 * lread.c (read_escape): In a string, \s is always space.
32406
32407 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32408
32409 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32410
32411 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32412 submenu for menu bar items.
32413
32414 See ChangeLog.10 for earlier changes.
32415
32416 ;; Local Variables:
32417 ;; coding: utf-8
32418 ;; End:
32419
32420 Copyright (C) 2007-2011 Free Software Foundation, Inc.
32421
32422 This file is part of GNU Emacs.
32423
32424 GNU Emacs is free software: you can redistribute it and/or modify
32425 it under the terms of the GNU General Public License as published by
32426 the Free Software Foundation, either version 3 of the License, or
32427 (at your option) any later version.
32428
32429 GNU Emacs is distributed in the hope that it will be useful,
32430 but WITHOUT ANY WARRANTY; without even the implied warranty of
32431 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32432 GNU General Public License for more details.
32433
32434 You should have received a copy of the GNU General Public License
32435 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.