Fix off-by-one in scroll down aggressively.
[bpt/emacs.git] / src / ChangeLog
1 2011-03-29 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (try_scrolling): When scrolling down aggressively,
4 scroll one screen line less, to make sure we end up at the margin
5 for fractions close to 1.
6
7 2011-03-28 Eli Zaretskii <eliz@gnu.org>
8
9 * xdisp.c (try_scrolling): When point is above the window, allow
10 searching as far as scroll_max, or one screenful, to compute
11 vertical distance from PT to the scroll margin position. This
12 prevents try_scrolling from unnecessarily failing when
13 scroll-conservatively is set to a value slightly larger than the
14 window height.
15
16 2011-03-27 Eli Zaretskii <eliz@gnu.org>
17
18 * xdisp.c (try_scrolling): Clean up the case of PT below the
19 margin at bottom of window: scroll_max can no longer be INT_MAX.
20 (redisplay_window): Find character position of margin and use
21 that, rather than adding margin to PT.
22
23 2011-03-26 Eli Zaretskii <eliz@gnu.org>
24
25 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
26 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
27 (try_scrolling): Limit scrolling to 100 screen lines.
28 (SCROLL_LIMIT): New macro.
29 (try_scrolling): Use it when setting scroll_limit.
30 (redisplay_window): Even when falling back on "recentering",
31 position point in the window according to scroll-conservatively,
32 scroll-margin, and scroll-*-aggressively variables. (Bug#6671)
33 (try_scrolling): When aggressive scrolling is in use, don't let
34 point enter the opposite scroll margin as result of the scroll.
35 (redisplay_window): Fix operator precedence in condition.
36
37 2011-03-26 Juanma Barranquero <lekktu@gmail.com>
38
39 * w32.c (read_unc_volume): Use parameter `henum', instead of
40 global variable `wget_enum_handle'.
41
42 * keymap.c (describe_vector): Remove parameters `indices' and
43 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
44 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
45
46 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
47
48 * keyboard.c (timer_check): Remove parameter `do_it_now',
49 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
50 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
51 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
52
53 * keyboard.c (read_char):
54 * w32menu.c (w32_menu_display_help):
55 * xmenu.c (show_help_event, menu_help_callback):
56 Adjust calls to `show_help_echo'.
57
58 * gtkutil.c (xg_maybe_add_timer):
59 * keyboard.c (readable_events):
60 * process.c (wait_reading_process_output):
61 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
62
63 * insdel.c (adjust_markers_gap_motion):
64 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
65 (gap_left, gap_right): Don't call it.
66
67 2011-03-25 Chong Yidong <cyd@stupidchicken.com>
68
69 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
70 incurred during fontification.
71
72 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
73
74 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
75 (DEFVAR_PER_BUFFER): Don't pass it.
76
77 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
78 (scrolling_window): Don't pass it.
79
80 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
81
82 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
83
84 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
85 and `suffix'.
86 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
87 of variables specific to SELinux and computation of `encoded_absname'.
88
89 * image.c (XPutPixel): Remove unused variable `height'.
90
91 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
92
93 * unexw32.c (get_section_info): Remove unused variable `section'.
94
95 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
96 (system_process_attributes): Remove unused variable `sess'.
97 (sys_read): Remove unused variable `err'.
98
99 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
100 (w32_wnd_proc): Remove unused variable `isdead'.
101 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
102 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
103 (x_create_tip_frame): Remove unused variable `tem'.
104
105 * w32inevt.c (w32_console_read_socket):
106 Remove unused variable `no_events'.
107
108 * w32term.c (x_draw_composite_glyph_string_foreground):
109 Remove unused variable `width'.
110
111 2011-03-24 Juanma Barranquero <lekktu@gmail.com>
112
113 * w32term.c (x_set_glyph_string_clipping):
114 Don't pass uninitialized region to CombineRgn.
115
116 2011-03-23 Juanma Barranquero <lekktu@gmail.com>
117
118 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
119 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
120 (Fx_close_connection): Remove unused variable `i'.
121
122 * w32font.c (w32font_draw): Return number of glyphs.
123 (w32font_open_internal): Remove unused variable `i'.
124 (w32font_driver): Add missing initializer.
125
126 * w32menu.c (utf8to16): Remove unused variable `utf16'.
127 (fill_in_menu): Remove unused variable `items_added'.
128
129 * w32term.c (last_mouse_press_frame): Remove static global variable.
130 (w32_clip_to_row): Remove unused variable `f'.
131 (x_delete_terminal): Remove unused variable `i'.
132
133 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
134 (NOTHING): Remove unused static global variable.
135 (uniscribe_check_otf): Remove unused variable `table'.
136 (uniscribe_font_driver): Add missing initializers.
137
138 2011-03-23 Julien Danjou <julien@danjou.info>
139
140 * term.c (Fsuspend_tty, Fresume_tty):
141 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
142 * window.c (temp_output_buffer_show):
143 * insdel.c (signal_before_change):
144 * frame.c (Fhandle_switch_frame):
145 * fileio.c (Fdo_auto_save):
146 * emacs.c (Fkill_emacs):
147 * editfns.c (save_excursion_restore):
148 * cmds.c (internal_self_insert):
149 * callint.c (Fcall_interactively):
150 * buffer.c (Fkill_all_local_variables):
151 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
152 Use Frun_hooks.
153 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
154 unconditionnaly since it does the check itself.
155
156 2011-03-23 Paul Eggert <eggert@cs.ucla.edu>
157
158 Fix more problems found by GCC 4.5.2's static checks.
159
160 * coding.c (encode_coding_raw_text): Avoid unnecessary test
161 the first time through the loop, since we know p0 < p1 then.
162 This also avoids a gcc -Wstrict-overflow warning.
163
164 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
165 leading to a memory leak, possible in functions like
166 load_charset_map_from_file that can allocate an unbounded number
167 of objects (Bug#8318).
168
169 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
170 that could (at least in theory) be that large.
171
172 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
173 This is less likely to overflow, and avoids undefined behavior if
174 overflow does occur. All callers changed. Use strtoul to scan
175 for the unsigned long integer.
176 (pint2hrstr): Simplify and tune code slightly.
177 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
178
179 * scroll.c (do_scrolling): Work around GCC bug 48228.
180 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
181
182 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
183 This also avoids a warning with gcc -Wstrict-overflow.
184 (validate_x_resource_name): Simplify count usage.
185 This also avoids a warning with gcc -Wstrict-overflow.
186
187 * fileio.c (Fcopy_file): Report error if fchown or fchmod
188 fail (Bug#8306).
189
190 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
191
192 * process.c (Fmake_network_process): Use socklen_t, not int,
193 where POSIX says socklen_t is required in portable programs.
194 This fixes a porting bug on hosts like 64-bit HP-UX, where
195 socklen_t is wider than int (Bug#8277).
196 (Fmake_network_process, server_accept_connection):
197 (wait_reading_process_output, read_process_output):
198 Likewise.
199
200 * process.c: Rename or move locals to avoid shadowing.
201 (list_processes_1, Fmake_network_process):
202 (read_process_output_error_handler, exec_sentinel_error_handler):
203 Rename or move locals.
204 (Fmake_network_process): Define label "retry_connect" only if needed.
205 (Fnetwork_interface_info): Fix pointer signedness.
206 (process_send_signal): Add cast to avoid pointer signedness problem.
207 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
208 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
209
210 Make tparam.h and terminfo.c consistent.
211 * cm.c (tputs, tgoto, BC, UP): Remove extern decls. Include
212 tparam.h instead, since it declares them.
213 * cm.h (PC): Remove extern decl; tparam.h now does this.
214 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
215 * terminfo.c: Include tparam.h, to check interfaces.
216 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
217 (tparam): Adjust signature to match interface in tparam.h;
218 this removes some undefined behavior. Check that outstring and len
219 are zero, which they always are with Emacs.
220 * tparam.h (PC, BC, UP): New extern decls.
221
222 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
223 (xftfont_open): Rename locals to avoid shadowing.
224
225 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
226 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
227 (OTF_TAG_SYM): Omit macro if not needed.
228 (ftfont_list): Remove unused local.
229 (get_adstyle_property, ftfont_pattern_entity):
230 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
231 Rename locals to avoid shadowing.
232
233 * xfont.c (xfont_list_family): Mark var as initialized.
234
235 * xml.c (make_dom): Now static.
236
237 * composite.c (composition_compute_stop_pos): Rename local to
238 avoid shadowing.
239 (composition_reseat_it): Remove unused locals.
240 (find_automatic_composition, composition_adjust_point): Likewise.
241 (composition_update_it): Mark var as initialized.
242 (find_automatic_composition): Mark vars as initialized,
243 with a FIXME (Bug#8290).
244
245 character.h: Rename locals to avoid shadowing.
246 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
247 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
248 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
249 (BUF_DEC_POS): Be more systematic about renaming local temporaries
250 to avoid shadowing.
251
252 * textprop.c (property_change_between_p): Remove; unused.
253
254 * intervals.c (interval_start_pos): Now static.
255
256 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
257
258 * atimer.c (start_atimer, append_atimer_lists, set_alarm): Rename
259 locals to avoid shadowing.
260
261 * sound.c (wav_play, au_play, Fplay_sound_internal):
262 Fix pointer signedness.
263 (alsa_choose_format): Remove unused local var.
264 (wav_play): Initialize a variable to 0, to prevent undefined
265 behavior (Bug#8278).
266
267 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
268
269 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
270
271 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
272 clobbering (Bug#8298).
273 * sysdep.c (sys_subshell): Likewise.
274 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
275
276 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
277 This should get cleaned up, so that child_setup has the
278 same signature on all platforms.
279
280 * callproc.c (call_process_cleanup): Now static.
281 (relocate_fd): Rename locals to avoid shadowing.
282
283 2011-03-22 Chong Yidong <cyd@stupidchicken.com>
284
285 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
286 not to be necessary, and produces flickering.
287
288 2011-03-20 Glenn Morris <rgm@gnu.org>
289
290 * config.in: Remove file.
291
292 2011-03-20 Juanma Barranquero <lekktu@gmail.com>
293
294 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
295 are now in src/globals.h.
296 (syms_of_minibuf): Remove spurious & from previous change.
297
298 2011-03-20 Leo <sdl.web@gmail.com>
299
300 * minibuf.c (completing-read-function): New variable.
301 (completing-read-default): Rename from completing-read.
302 (completing-read): Call completing-read-function.
303
304 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
305
306 * xfaces.c (Fx_load_color_file):
307 Read color file from absolute filename (bug#8250).
308
309 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
310
311 * makefile.w32-in: Update dependencies.
312
313 2011-03-17 Eli Zaretskii <eliz@gnu.org>
314
315 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
316
317 2011-03-17 Paul Eggert <eggert@cs.ucla.edu>
318
319 Fix more problems found by GCC 4.5.2's static checks.
320
321 * process.c (make_serial_process_unwind, send_process_trap):
322 (sigchld_handler): Now static.
323
324 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
325 That way, the code declares only the vars that it needs.
326 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
327 * s/cygwin.h (PTY_ITERATION): Likewise.
328 * s/darwin.h (PTY_ITERATION): Likewise.
329 * s/gnu-linux.h (PTY_ITERATION): Likewise.
330
331 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
332 * process.c (allocate_pty): Don't declare stb unless it's needed.
333
334 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
335 (CONSTANTLIM): Remove; unused.
336 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
337 Define only if needed.
338
339 * unexelf.c (unexec): Name an expression,
340 to avoid gcc -Wbad-function-cast warning.
341 Use a different way to cause a compilation error if anyone uses
342 n rather than nn, a way that does not involve shadowing.
343 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
344
345 * deps.mk (unexalpha.o): Remove; unused.
346
347 New file unexec.h, the (simple) interface for unexec (Bug#8267).
348 * unexec.h: New file.
349 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
350 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
351 Depend on unexec.h.
352 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
353 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
354 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
355 Change as necessary to match prototype in unexec.h.
356
357 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
358 shadowing.
359 (back_comment, skip_chars): Mark vars as initialized.
360
361 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
362 Rename locals to avoid shadowing.
363
364 * lread.c (read1): Rewrite so as not to use empty "else".
365 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
366
367 * print.c (Fredirect_debugging_output): Fix pointer signedess.
368
369 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
370 warning when compiling print.c.
371
372 * font.c (font_unparse_fcname): Abort in an "impossible" situation
373 instead of using an uninitialized var.
374 (font_sort_entities): Mark var as initialized.
375
376 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
377
378 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
379 pointers to constants.
380 (font_parse_fcname): Remove unused vars.
381 (font_delete_unmatched): Now static.
382 (font_get_spec): Remove; unused.
383 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
384 (font_update_drivers, Ffont_get_glyphs, font_add_log):
385 Rename or move locals to avoid shadowing.
386
387 * fns.c (require_nesting_list, require_unwind): Now static.
388 (Ffillarray): Rename locals to avoid shadowing.
389
390 * floatfns.c (domain_error2): Define only if needed.
391 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
392
393 * alloc.c (mark_backtrace): Move decl from here ...
394 * lisp.h: ... to here, so that it can be checked.
395
396 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
397 (Fdefvar): Rewrite so as not to use empty "else".
398 (lisp_indirect_variable): Name an expression,
399 to avoid gcc -Wbad-function-cast warning.
400 (Fdefvar): Rename locals to avoid shadowing.
401
402 * callint.c (quotify_arg, quotify_args): Now static.
403 (Fcall_interactively): Rename locals to avoid shadowing.
404 Use const pointer when appropriate.
405
406 * lisp.h (get_system_name, get_operating_system_release):
407 Move decls here, to check interfaces.
408 * process.c (get_operating_system_release): Move decl to lisp.h.
409 * xrdb.c (get_system_name): Likewise.
410 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
411 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
412 some of which prompt warnings from gcc -Wbad-function-cast.
413 (Fformat_time_string, Fencode_time, Finsert_char):
414 (Ftranslate_region_internal, Fformat):
415 Rename or remove local vars to avoid shadowing.
416 (Ftranslate_region_internal): Mark var as initialized.
417
418 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
419 avoid shadowing.
420
421 * lisp.h (eassert): Check that the argument compiles, even if
422 ENABLE_CHECKING is not defined.
423
424 * data.c (Findirect_variable): Name an expression, to avoid
425 gcc -Wbad-function-cast warning.
426 (default_value, arithcompare, arith_driver, arith_error): Now static.
427 (store_symval_forwarding): Rename local to avoid shadowing.
428 (Fmake_variable_buffer_local, Fmake_local_variable): Mark
429 variables as initialized.
430 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
431
432 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
433 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
434 Rename locals to avoid shadowing.
435 (mark_stack): Move local variables into the #ifdef region where
436 they're used.
437 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
438 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
439 needed otherwise.
440 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
441 (GC_STRING_CHARS): Remove; not used.
442 (Fmemory_limit): Cast sbrk's returned value to char *.
443
444 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
445 avoids undefined behavior in theory.
446
447 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
448
449 Use functions, not macros, for up- and down-casing (Bug#8254).
450 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
451 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
452 to use the following functions instead of these macros.
453 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
454 EMACS_INT, since callers assume the returned value fits in int.
455 (upcase1): Likewise, for UPCASE_TABLE.
456 (uppercasep, lowercasep, upcase): New static inline functions.
457 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
458 the race-condition problem in the old DOWNCASE.
459
460 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
461 Rename locals to avoid shadowing.
462 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
463 (regex_compile, re_search_2, re_match_2_internal):
464 Remove unused local vars.
465 (FREE_VAR): Rewrite so as not to use empty "else",
466 which gcc can warn about.
467 (regex_compile, re_match_2_internal): Mark locals as initialized.
468 (RETALLOC_IF): Define only if needed.
469 (WORDCHAR_P): Likewise. This one is never needed, but is used
470 only in a comment talking about a compiler bug, so put inside
471 the #if 0 of that comment.
472 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
473 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
474 Remove; unused.
475
476 * search.c (boyer_moore): Rename locals to avoid shadowing.
477 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
478 (PREV_CHAR_BOUNDARY): Likewise.
479
480 * search.c (simple_search): Remove unused var.
481
482 * dired.c (compile_pattern): Move decl from here ...
483 * lisp.h: ... to here, so that it can be checked.
484 (struct re_registers): New forward decl.
485
486 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
487
488 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
489 All uses changed.
490 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
491 Rename locals to avoid shadowing.
492 (Fvertical_motion): Mark locals as initialized.
493
494 * casefiddle.c (casify_object, casify_region): Now static.
495 (casify_region): Mark local as initialized.
496
497 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
498
499 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
500 New macros, so that the caller can use some names other than
501 gcpro1, gcpro2, etc.
502 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
503 of the new macros.
504 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
505 argument, for consistency with GCPRO2_VAR, etc: it is now the
506 prefix of the variable, not the variable itself. All uses
507 changed.
508 * dired.c (directory_files_internal, file_name_completion):
509 Rename locals to avoid shadowing.
510
511 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
512 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
513 dired.c's scmp function, had undefined behavior.
514 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
515 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
516 * buffer.h: ... to here, because these macros use current_buffer,
517 and the new implementation with inline functions needs to have
518 current_buffer in scope now, rather than later when the macros
519 are used.
520 (downcase, upcase1): New static inline functions.
521 (DOWNCASE, UPCASE1): Reimplement using these functions.
522 This avoids undefined behavior in expressions like
523 DOWNCASE (x) == DOWNCASE (y), which previously suffered
524 from race conditions in accessing the global variables
525 case_temp1 and case_temp2.
526 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
527 * lisp.h (case_temp1, case_temp2): Remove their decls.
528 * character.h (ASCII_CHAR_P): Move from here ...
529 * lisp.h: ... to here, so that the inline functions mentioned
530 above can use them.
531
532 * dired.c (directory_files_internal_unwind): Now static.
533
534 * fileio.c (file_name_as_directory, directory_file_name):
535 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
536 Now static.
537 (file_name_as_directory): Use const pointers when appropriate.
538 (Fexpand_file_name): Likewise. In particular, newdir might
539 point at constant storage, so make it a const pointer.
540 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
541 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
542 signedness issues.
543 (Fset_file_times, Finsert_file_contents, auto_save_error):
544 Rename locals to avoid shadowing.
545
546 * minibuf.c (choose_minibuf_frame_1): Now static.
547 (Ftry_completion, Fall_completions): Rename or remove locals
548 to avoid shadowing.
549
550 * marker.c (bytepos_to_charpos): Remove; unused.
551
552 * lisp.h (verify_bytepos, count_markers): New decls,
553 so that gcc does not warn that these functions aren't declared.
554
555 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
556 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
557 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
558 (copy_text): Remove unused local var.
559
560 * filelock.c (within_one_second): Now static.
561 (lock_file_1): Rename local to avoid shadowing.
562
563 * buffer.c (fix_overlays_before): Mark locals as initialized.
564 (fix_start_end_in_overlays): Likewise. This function should be
565 simplified by using pointers-to-pointers, but that's a different
566 matter.
567 (switch_to_buffer_1): Now static.
568 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
569 (report_overlay_modification): Rename locals to avoid shadowing.
570
571 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
572 Fix pointer signedness issue.
573 (sys_subshell): Mark local as volatile if checking for lint,
574 to suppress a gcc -Wclobbered warning that does not seem to be right.
575 (MAXPATHLEN): Define only if needed.
576
577 * process.c (serial_open, serial_configure): Move decls from here ...
578 * systty.h: ... to here, so that they can be checked.
579
580 * fns.c (get_random, seed_random): Move extern decls from here ...
581 * lisp.h: ... to here, so that they can be checked.
582
583 * sysdep.c (reset_io): Now static.
584 (wait_for_termination_signal): Remove; unused.
585
586 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
587 (copy_keymap_item, append_key, push_text_char_description):
588 Now static.
589 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
590 (DENSE_TABLE_SIZE): Remove; unused.
591 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
592 (describe_map_tree):
593 Rename locals to avoid shadowing.
594
595 * keyboard.c: Declare functions static if they are not used elsewhere.
596 (echo_char, echo_dash, cmd_error, top_level_2):
597 (poll_for_input, handle_async_input): Now static.
598 (read_char, kbd_buffer_get_event, make_lispy_position):
599 (make_lispy_event, make_lispy_movement, apply_modifiers):
600 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
601 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
602 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
603 (read_key_sequence, read_char): Mark locals as initialized.
604 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
605
606 * keyboard.h (make_ctrl_char): New decl.
607 (mark_kboards): Move decl here ...
608 * alloc.c (mark_kboards): ... from here.
609
610 * lisp.h (force_auto_save_soon): New decl.
611
612 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
613 (DEFINE_DUMMY_FUNCTION): New macro.
614 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
615 Use it.
616 (main): Add casts to avoid warnings
617 if GCC considers string literals to be constants.
618
619 * lisp.h (fatal_error_signal): Add decl, since it's exported.
620
621 * dbusbind.c: Pointer signedness fixes.
622 (xd_signature, xd_append_arg, xd_initialize):
623 (Fdbus_call_method, Fdbus_call_method_asynchronously):
624 (Fdbus_method_return_internal, Fdbus_method_error_internal):
625 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
626 (Fdbus_register_signal): Use SSDATA when the context wants char *.
627
628 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
629 if GCC considers string literals to be constants.
630 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
631
632 2011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
633
634 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
635 (print_preprocess, print_object): New macro to fix last change.
636
637 * print.c (print_preprocess): Don't forget font objects.
638
639 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
640
641 * emacs.c (USAGE3): Doc fixes.
642
643 2011-03-15 Andreas Schwab <schwab@linux-m68k.org>
644
645 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
646 structure.
647
648 2011-03-14 Juanma Barranquero <lekktu@gmail.com>
649
650 * lisp.h (VWindow_system, Qfile_name_history):
651 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
652 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
653 (w32_system_caret_x, w32_system_caret_y): Declare extern.
654
655 * w32select.c: Don't #include "keyboard.h".
656 (run_protected): Add extern declaration for waiting_for_input.
657
658 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
659 * w32console.c (detect_input_pending, read_input_pending)
660 (encode_terminal_code):
661 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
662 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
663 (w32_system_caret_y, Qfile_name_history):
664 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
665 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
666 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
667 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
668 * w32proc.c (Qlocal, report_file_error):
669 * w32term.c (Vwindow_system, updating_frame):
670 * w32uniscribe.c (initialized, uniscribe_font_driver):
671 Remove unneeded extern declarations.
672
673 2011-03-14 Chong Yidong <cyd@stupidchicken.com>
674
675 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
676
677 2011-03-13 Chong Yidong <cyd@stupidchicken.com>
678
679 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
680 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
681 These macros can no longer be used for assignment.
682
683 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
684 struct members directly, instead of using BUF_BEGV etc.
685 (record_buffer_markers, fetch_buffer_markers): New functions for
686 recording and fetching special buffer markers.
687 (set_buffer_internal_1, set_buffer_temp): Use them.
688
689 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
690
691 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
692
693 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
694 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
695
696 * xdisp.c (hscroll_window_tree):
697 (reconsider_clip_changes): Use PT instead of BUF_PT.
698
699 2011-03-13 Eli Zaretskii <eliz@gnu.org>
700
701 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
702 $(EMACS_ROOT)/lib/intprops.h.
703
704 2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
705
706 Fix more problems found by GCC 4.5.2's static checks.
707
708 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
709 to unsigned char * to avoid compiler diagnostic.
710 (xg_free_frame_widgets): Make it clear that a local variable is
711 needed only if USE_GTK_TOOLTIP.
712 (gdk_window_get_screen): Make it clear that this macro is needed
713 only if USE_GTK_TOOLTIP.
714 (int_gtk_range_get_value): New function, which avoids a diagnostic
715 from gcc -Wbad-function-cast.
716 (xg_set_toolkit_scroll_bar_thumb): Use it.
717 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
718 diagnostic from gcc -Wbad-function-cast.
719 (get_utf8_string, xg_get_file_with_chooser):
720 Rename locals to avoid shadowing.
721 (create_dialog): Move locals to avoid shadowing.
722
723 * xgselect.c (xg_select): Remove unused var.
724
725 * image.c (four_corners_best): Mark locals as initialized.
726 (gif_load): Initialize transparent_p to zero (Bug#8238).
727 Mark another local as initialized.
728 (my_png_error, my_error_exit): Mark with NO_RETURN.
729
730 * image.c (clear_image_cache): Now static.
731 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
732 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
733 (x_edge_detection): Remove unnecessary cast that
734 gcc -Wbad-function-cast diagnoses.
735 (gif_load): Fix pointer signedness.
736 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
737 (jpeg_load, gif_load): Rename locals to avoid shadowing.
738
739 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
740
741 Improve quality of tests for time stamp overflow.
742 For example, without this patch (encode-time 0 0 0 1 1
743 1152921504606846976) returns the obviously-bogus value (-948597
744 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
745 reports time overflow. See
746 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
747 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
748 * editfns.c: Include limits.h and intprops.h.
749 (TIME_T_MIN, TIME_T_MAX): New macros.
750 (time_overflow): Move earlier, to before first use.
751 (hi_time, lo_time): New functions, for an accurate test for
752 out-of-range times.
753 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
754 (Fget_internal_run_time): Don't assume time_t fits in int.
755 (make_time): Use list2 instead of Fcons twice.
756 (Fdecode_time): More accurate test for out-of-range times.
757 (check_tm_member): New function.
758 (Fencode_time): Use it, to test for out-of-range times.
759 (lisp_time_argument): Don't rely on undefined left-shift and
760 right-shift behavior when checking for time stamp overflow.
761
762 * editfns.c (time_overflow): New function, refactoring common code.
763 (Fformat_time_string, Fdecode_time, Fencode_time):
764 (Fcurrent_time_string): Use it.
765
766 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
767 * dired.c (make_time): Move to ...
768 * editfns.c (make_time): ... here.
769 * systime.h: Note the move.
770
771 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
772
773 * fringe.c (update_window_fringes): Remove unused variables.
774
775 * unexmacosx.c (copy_data_segment): Also copy __got section.
776 (Bug#8223)
777
778 2011-03-12 Eli Zaretskii <eliz@gnu.org>
779
780 * termcap.c [MSDOS]: Include "msdos.h".
781 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
782 Constify `char *' arguments and their references according to
783 prototypes in tparam.h.
784
785 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
786
787 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
788 Adapt all references accordingly.
789
790 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
791
792 2011-03-11 Tom Tromey <tromey@redhat.com>
793
794 * buffer.c (syms_of_buffer): Remove obsolete comment.
795
796 2011-03-11 Eli Zaretskii <eliz@gnu.org>
797
798 * termhooks.h (encode_terminal_code): Declare prototype.
799
800 * msdos.c (encode_terminal_code): Don't declare prototype.
801
802 * term.c (encode_terminal_code): Now external again, used by
803 w32console.c and msdos.c.
804
805 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
806 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
807
808 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
809
810 Fix some minor problems found by GCC 4.5.2's static checks.
811
812 * fringe.c (update_window_fringes): Mark locals as initialized
813 (Bug#8227).
814 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
815
816 * alloc.c (mark_fringe_data): Move decl from here ...
817 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
818 to check its interface.
819 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
820
821 * fontset.c (free_realized_fontset): Now static.
822 (Fset_fontset_font): Rename local to avoid shadowing.
823 (fontset_font): Mark local as initialized.
824 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
825
826 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
827
828 * xselect.c (x_disown_buffer_selections): Remove; not used.
829 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
830 (x_own_selection, Fx_disown_selection_internal): Rename locals
831 to avoid shadowing.
832 (x_handle_dnd_message): Remove local to avoid shadowing.
833
834 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
835 so that the caller can use some name other than gcpro1.
836 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
837 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
838 (Fx_backspace_delete_keys_p):
839 Use them to avoid shadowing, and rename vars to avoid shadowing.
840 (x_decode_color, x_set_name, x_window): Now static.
841 (Fx_create_frame): Add braces to silence GCC warning.
842 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
843 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
844 Remove unused locals.
845 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
846 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
847 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
848 macros.
849
850 * xterm.h (x_mouse_leave): New decl.
851
852 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
853 Remove unused functions.
854 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
855 (x_calc_absolute_position): Now static.
856 (XTread_socket): Don't define label "out" unless it's used.
857 Don't declare local "event" unless it's used.
858 (x_iconify_frame, x_free_frame_resources): Don't declare locals
859 unless they are used.
860 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
861 (x_fatal_error_signal): Remove; not used.
862 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
863 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
864 (x_error_catcher, x_connection_closed, x_error_handler):
865 (x_error_quitter, xembed_send_message, x_iconify_frame):
866 (my_log_handler): Rename locals to avoid shadowing.
867 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
868 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
869
870 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
871 or move locals to avoid shadowing.
872 (tty_defined_color, merge_face_heights): Now static.
873 (free_realized_faces_for_fontset): Remove; not used.
874 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
875 does not deduce is never used uninitialized.
876 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
877 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
878
879 * terminal.c (store_terminal_param): Now static.
880
881 * xmenu.c (menu_highlight_callback): Now static.
882 (set_frame_menubar): Remove unused local.
883 (xmenu_show): Rename parameter to avoid shadowing.
884 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
885 since they might point to immutable storage.
886 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
887 since it's unused otherwise.
888
889 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
890 Add a FIXME, since the code still doesn't look right. (Bug#8215)
891 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
892 avoids a gcc -Wuninitialized diagnostic.
893 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
894 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
895 does not deduce are never used uninitialized.
896
897 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
898
899 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
900 * window.c (window_loop, size_window):
901 (run_window_configuration_change_hook, enlarge_window): Likewise.
902
903 * window.c (display_buffer): Now static.
904 (size_window): Mark variables that gcc -Wuninitialized
905 does not deduce are never used uninitialized.
906 * window.h (check_all_windows): New decl, to forestall
907 gcc -Wmissing-prototypes diagnostic.
908 * dispextern.h (bidi_dump_cached_states): Likewise.
909
910 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
911 shadowing.
912 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
913 Include <limits.h>.
914 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
915 and to avoid gcc -Wuninitialized warning.
916 (load_charset_map): Mark variables that gcc -Wuninitialized
917 does not deduce are never used uninitialized.
918 (load_charset): Abort instead of using uninitialized var (Bug#8229).
919
920 * coding.c (coding_set_source, coding_set_destination):
921 Use "else { /* comment */ }" rather than "else /* comment */;"
922 for clarity, and to avoid gcc -Wempty-body warning.
923 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
924 a block, when the outer 'i' will do.
925 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
926 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
927 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
928 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
929 (Fdecode_sjis_char, Fdefine_coding_system_internal):
930 Rename locals to avoid shadowing.
931 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
932 * coding.c (emacs_mule_char, encode_invocation_designation):
933 Now static, since they're not used elsewhere.
934 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
935 (decode_coding_object, encode_coding_object, detect_coding_system):
936 (decode_coding_emacs_mule): Mark variables that gcc
937 -Wuninitialized does not deduce are never used uninitialized.
938 (detect_coding_iso_2022): Initialize a local variable that might
939 be used uninitialized. Leave a FIXME because it's not clear that
940 this initialization is needed. (Bug#8211)
941 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
942 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
943 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
944 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
945 Remove unused macros.
946
947 * category.c (hash_get_category_set): Remove unused local var.
948 (copy_category_table): Now static, since it's not used elsewhere.
949 * character.c (string_count_byte8): Likewise.
950
951 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
952 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
953
954 * chartab.c (copy_sub_char_table): Now static, since it's not used
955 elsewhere.
956 (sub_char_table_ref_and_range, char_table_ref_and_range):
957 Rename locals to avoid shadowing.
958 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
959
960 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
961 (BIDI_BOB): Remove unused macro.
962
963 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
964 deduce are never used uninitialized.
965 * term.c (encode_terminal_code): Likewise.
966
967 * term.c (encode_terminal_code): Now static. Remove unused local.
968
969 * tparam.h: New file.
970 * term.c, tparam.h: Include it.
971 * deps.mk (term.o, tparam.o): Depend on tparam.h.
972 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
973 Move these decls to tparam.h, and make them agree with what
974 is actually in tparam.c. The previous trick of using incompatible
975 decls in different modules does not conform to the C standard.
976 All callers of tparam changed to use tparam's actual API.
977 * tparam.c (tparam1, tparam, tgoto):
978 Use const pointers where appropriate.
979
980 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
981 * cm.h (struct cm): Likewise.
982 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
983 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
984 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
985 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
986 (turn_on_face, init_tty): Likewise.
987 * termchar.h (struct tty_display_info): Likewise.
988
989 * term.c (term_mouse_position): Rename local to avoid shadowing.
990
991 * alloc.c (mark_ttys): Move decl from here ...
992 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
993
994 2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
995
996 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
997
998 2011-03-09 Juanma Barranquero <lekktu@gmail.com>
999
1000 * search.c (compile_pattern_1): Remove argument regp, unused since
1001 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
1002 (compile_pattern): Don't pass it.
1003
1004 2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
1005
1006 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
1007 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
1008 for ! HAVE_GTK3.
1009 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
1010
1011 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
1012
1013 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
1014 gdk_window_get_screen, gdk_window_get_geometry,
1015 gdk_x11_window_lookup_for_display and GDK_KEY_g.
1016 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
1017 (xg_get_pixbuf_from_pixmap): New function.
1018 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
1019 to Pixmap, take frame as parameter, remove GdkColormap parameter.
1020 Call xg_get_pixbuf_from_pixmap instead of
1021 gdk_pixbuf_get_from_drawable.
1022 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1023 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1024 (xg_check_special_colors): Use GtkStyleContext and its functions
1025 for HAVE_GTK3.
1026 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1027 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1028 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
1029 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
1030 gtk_widget_get_preferred_size.
1031 (xg_frame_resized): gdk_window_get_geometry only takes 5
1032 parameters.
1033 (xg_win_to_widget, xg_event_is_for_menubar): Call
1034 gdk_x11_window_lookup_for_display.
1035 (xg_set_widget_bg): New function.
1036 (delete_cb): New function.
1037 (xg_create_frame_widgets): connect delete-event to delete_cb.
1038 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
1039 (xg_set_background_color): Call xg_set_widget_bg.
1040 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1041 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1042 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1043 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1044 if ! HAVE_GTK3.
1045 (update_frame_tool_bar): Call gtk_widget_hide.
1046 (xg_initialize): Use GDK_KEY_g.
1047
1048 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1049 if ! HAVE_GTK3
1050 (x_session_initialize): Call gdk_x11_set_sm_client_id.
1051
1052 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1053 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1054 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1055
1056 2011-03-08 Juanma Barranquero <lekktu@gmail.com>
1057
1058 * w32xfns.c (select_palette): Check success of RealizePalette against
1059 GDI_ERROR, not zero.
1060
1061 2011-03-07 Ben Key <bkey76@gmail.com>
1062
1063 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1064 (file_dialog_callback): Fix locating the window handle of the File Name
1065 text field. After disabling it, set focus on the list control.
1066 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1067 Name text field to "Current Directory" if it does not already have
1068 another value. (Bug#8181)
1069
1070 2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1071
1072 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1073 parameter for hbar cursors. Based on a patch by Ben Key
1074 <bkey76@gmail.com>.
1075
1076 2011-03-06 Chong Yidong <cyd@stupidchicken.com>
1077
1078 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1079 change.
1080
1081 2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1082
1083 current_column: Now returns EMACS_INT, fixing some iftc
1084 that was introduced in the 2002-06-02 change "temporarily"; see
1085 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
1086 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1087 * cmds.c (internal_self_insert): Likewise.
1088 * indent.c (Fcurrent_column): Likewise.
1089 * keymap.c (describe_command): Likewise.
1090 * minibuf.c (read_minibuf): Likewise.
1091 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1092 to int.
1093 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1094 Likewise.
1095 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1096 not int or double, if they might contain a column number.
1097 * indent.c (current_column, Findent_to, indented_beyond_p):
1098 (compute_motion, vmotion): Likewise.
1099 * keymap.c (describe_command): Likewise.
1100 * xdisp.c (pint2str): Likewise.
1101 * indent.c (last_known_column): Now EMACS_INT, not int.
1102 * minibuf.c (minibuf_prompt_width): Likewise.
1103 * indent.c (current_column, current_column_1, position_indentation):
1104 Return EMACS_INT, not double.
1105 * lisp.h (current_column): Likewise.
1106 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1107 All callers changed.
1108 * lisp.h (indented_beyond_p): Likewise.
1109
1110 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1111 from xdisp.c, and make static, since these are used only here.
1112 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1113 Remove decls.
1114
1115 * cmds.c (internal_self_insert): Reindent to match Emacs style.
1116 * xdisp.c (redisplay_window): Likewise.
1117
1118 * xdisp.c: Rename or move local decls to avoid shadowing.
1119 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1120 (message_dolog, message_with_string, redisplay_internal):
1121 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1122 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1123 (display_line, display_string, rows_from_pos_range):
1124 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1125 Rename or move local decls.
1126 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
1127 (produce_glyphless_glyph): Make a pointer "const"
1128 since it might point to immutable storage.
1129 (update_window_cursor): Now static, since it's not used elsewhere.
1130 (SKIP_GLYPHS): Removed unused macro.
1131
1132 2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1133
1134 * window.c (Fnext_window): Doc fix. (Bug#5567)
1135
1136 2011-03-05 Chong Yidong <cyd@stupidchicken.com>
1137
1138 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1139
1140 2011-03-02 Ken Brown <kbrown@cornell.edu>
1141
1142 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1143
1144 2011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1145
1146 Work around some portability problems with symlinks.
1147
1148 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1149 generate a special message for it. Suggested by Eli Zaretskii in
1150 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1151 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1152 Simplify the code by assuming that the readlink and symlink calls
1153 exist, even if they always fail on this host.
1154 (Ffile_readable_p): Likewise, for fifos.
1155 * config.in: Regenerate.
1156
1157 2011-02-27 Chong Yidong <cyd@stupidchicken.com>
1158
1159 * frame.c (store_frame_param): Don't store value directly in
1160 buffer_list and buried_buffer_list; copy the list and remove dead
1161 buffers (Bug#7898).
1162
1163 2011-02-27 Eli Zaretskii <eliz@gnu.org>
1164
1165 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1166
1167 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
1168
1169 * w32.c (symlink, readlink): New stub functions.
1170
1171 2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1172
1173 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1174 This avoids a gcc warning in some configurations.
1175
1176 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1177
1178 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1179 (set_menu_bar_lines, x_get_resource_string): New decls.
1180 * msdos.c (set_menu_bar_lines): Omit decl.
1181
1182 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1183 It's always given int values and used as an int. This suppresses
1184 a gcc "comparison of unsigned expression >= 0" warning in some
1185 configurations.
1186
1187 * dispnew.c: Rename locals to avoid shadowing.
1188 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1189
1190 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1191
1192 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1193 (copy_glyph_row_contents): Remove; not used.
1194 (frame_row_to_window, check_current_matrix_flags):
1195 (window_change_signal): Now static, since they're not used elsewhere.
1196 (check_current_matrix_flags): Surround with "#if 0", since its
1197 only use is in a comment. Maybe both the comment and the "#if 0"
1198 stuff should be removed?
1199
1200 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1201 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1202 contexts that actually need it.
1203
1204 2011-02-26 Eli Zaretskii <eliz@gnu.org>
1205
1206 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1207 (lstat): Define for DJGPP < 2.04.
1208
1209 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1210
1211 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1212 as per recent filemodestring API change. Reported by Jonas Öster in
1213 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1214
1215 2011-02-23 Ben Key <bkey76@gmail.com>
1216
1217 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1218 directly, for bar cursors.
1219
1220 2011-02-23 Chong Yidong <cyd@stupidchicken.com>
1221
1222 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1223 into the frame's cursor_width.
1224
1225 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1226
1227 * print.c (print_object): Never print old-style backquotes.
1228 Obey escapeflag for hash tables as well.
1229
1230 2011-02-23 Kenichi Handa <handa@m17n.org>
1231
1232 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
1233 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
1234
1235 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1236
1237 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1238
1239 2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1240
1241 * lread.c (openp): Correct Boolean typo in last commit.
1242
1243 2011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1244
1245 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
1246 key to Emacs, treat as unmodified (go to input manager processing).
1247
1248 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1249
1250 Assume S_ISLNK etc. work, since gnulib supports this.
1251 * config.in: Regenerate.
1252 * dired.c (lstat): Remove.
1253 (file_name_completion): Assume S_ISDIR works.
1254 (file_name_completion_stat): Assume S_ISLNK works.
1255 Do not bother calling stat unless lstat says it's a symlink.
1256 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1257 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1258 (check_writable, Ffile_writable_p, Fset_file_times):
1259 Assume S_ISDIR works.
1260 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1261 fifos exist.
1262 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
1263 * filelock.c (S_ISLNK): Remove.
1264 * lread.c (openp): Assume S_ISDIR works.
1265 * xrdb.c (S_ISDIR): Remove.
1266
1267 2011-02-21 Eli Zaretskii <eliz@gnu.org>
1268
1269 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
1270 lib/makefile.w32-in.
1271 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1272 (GLOBAL_SOURCES): Remove filemode.c.
1273 (OBJ1): Remove $(BLD)/filemode.$(O).
1274
1275 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1276
1277 Import filemode module from gnulib.
1278 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1279 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1280 (filemode.o): Remove; this is now in ../lib.
1281 * dired.c: Include <filemode.h>.
1282 (filemodestring): Remove now-redundant decl.
1283 * config.in: Regenerate.
1284
1285 2011-02-20 Eli Zaretskii <eliz@gnu.org>
1286
1287 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1288 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1289
1290 2011-02-20 Christoph Scholtes <cschol2112@gmail.com>
1291
1292 * makefile.w32-in: Remove md5.$(O).
1293 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1294 lib/makefile.w32-in.
1295
1296 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
1297
1298 Import crypto/md5 and stdint modules from gnulib.
1299 * Makefile.in (base_obj): Remove md5.o, since this file
1300 is in lib now.
1301 * config.in: Regenerate.
1302 * md5.h, md5.h: Move to ../lib.
1303 * deps.mk (md5.o): Remove.
1304 (fns.o): Depend on ../lib/md5.h, not md5.h.
1305
1306 2011-02-19 Eli Zaretskii <eliz@gnu.org>
1307
1308 * termcap.c (tputs): Don't declare baud_rate.
1309
1310 * s/msdos.h (strtold): Define to _strtold.
1311
1312 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1313
1314 * process.c (Fstart_process, Fmake_serial_process)
1315 (Fmake_network_process, server_accept_connection):
1316 Use empty_unibyte_string.
1317
1318 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1319
1320 * lread.c (Qdir_ok): New constant.
1321 (syms_of_lread): Initialize it.
1322 (openp): Don't ignore directories if the predicate returns dir-ok.
1323
1324 2011-02-18 Eli Zaretskii <eliz@gnu.org>
1325
1326 * xdisp.c (display_line): Fix the change made for bug#7939.
1327
1328 * terminal.c (create_terminal): Use default-keyboard-coding-system
1329 and default-terminal-coding-system to initialize coding systems of
1330 the new terminal. (Bug#7840)
1331
1332 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1333
1334 * lisp.h (BYTE_MARK_STACK): New macro.
1335 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1336
1337 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1338 (struct byte_stack): Only define `top' and `bottom' if used.
1339 (mark_byte_stack): Only define if used.
1340 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1341 is not set.
1342 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1343
1344 * term.c (OUTPUT_IF): Use OUTPUT.
1345
1346 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1347 redundantly scan byte-code stacks, catchlist, and handlerlist.
1348
1349 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1350
1351 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1352 (Fns_read_file_name): Replace B_ with BVAR.
1353
1354 * nsterm.m (ns_term_init): Use KVAR.
1355
1356 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1357
1358 * msdos.c (internal_terminal_init): Use KVAR.
1359
1360 * w32fns.c (Fx_create_frame): Use KVAR.
1361
1362 * w32term.c (w32_create_terminal): Use KVAR.
1363
1364 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
1365 (getloadavg): Declare prototype which was removed from lisp.h.
1366
1367 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1368
1369 * fileio.c (Finsert_file_contents, Fwrite_region):
1370 Remove references to buffer_file_type.
1371 (syms_of_fileio): Don't intern and staticpro
1372 find-buffer-file-type.
1373
1374 * callproc.c (syms_of_callproc): Remove references to
1375 buffer_file_type.
1376
1377 * buffer.c (reset_buffer_local_variables): Don't set
1378 buffer_file_type.
1379 (init_buffer_once): Likewise.
1380 (syms_of_buffer): Don't define buffer-file-type.
1381
1382 * buffer.h (struct buffer): Remove buffer_file_type.
1383
1384 2011-02-16 Tom Tromey <tromey@parfait>
1385
1386 * callint.c (Fcall_interactively): Update for change to field names.
1387 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1388 * cmds.c (Fself_insert_command): Update for change to field names.
1389 * keymap.c (Fcurrent_active_maps, Fkey_binding)
1390 (Fdescribe_buffer_bindings): Update for change to field names.
1391 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1392 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
1393 Update for change to field names.
1394 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1395 (echo_length, echo_truncate, cmd_error, command_loop_1)
1396 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1397 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1398 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1399 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
1400 Update for change to field names.
1401 * xfns.c (Fx_create_frame): Update for change to field names.
1402 * xterm.c (x_connection_closed, x_term_init): Update for change to
1403 field names.
1404 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
1405 Update for change to field names.
1406 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1407 Update for change to field names.
1408 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
1409 (delete_frame): Update for change to field names.
1410 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1411 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1412 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1413
1414 2011-02-16 Tom Tromey <tromey@redhat.com>
1415
1416 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1417
1418 2011-02-16 Tom Tromey <tromey@parfait>
1419
1420 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1421 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1422 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1423 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1424 (with_echo_area_buffer, setup_echo_area_for_printing)
1425 (set_message_1, update_menu_bar, update_tool_bar)
1426 (text_outside_line_unchanged_p, redisplay_internal)
1427 (try_scrolling, try_cursor_movement, redisplay_window)
1428 (try_window_reusing_current_matrix, row_containing_pos)
1429 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1430 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1431 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1432 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1433 BVAR.
1434 * window.c (window_display_table, unshow_buffer, window_loop)
1435 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1436 (select_window, Fforce_window_update, temp_output_buffer_show)
1437 (Fset_window_configuration, save_window_save): Replace B_ with
1438 BVAR.
1439 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1440 Replace B_ with BVAR.
1441 * undo.c (record_point, record_insert, record_delete)
1442 (record_marker_adjustment, record_first_change)
1443 (record_property_change, Fundo_boundary, truncate_undo_list)
1444 (Fprimitive_undo): Replace B_ with BVAR.
1445 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1446 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1447 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1448 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1449 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1450 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1451 (string_match_1, fast_looking_at, newline_cache_on_off)
1452 (search_command, search_buffer, simple_search, boyer_moore)
1453 (Freplace_match): Replace B_ with BVAR.
1454 * process.c (get_process, list_processes_1, Fstart_process)
1455 (Fmake_serial_process, Fmake_network_process)
1456 (read_process_output, send_process, exec_sentinel)
1457 (status_notify, setup_process_coding_systems): Replace B_ with
1458 BVAR.
1459 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1460 (strout, print_string, temp_output_buffer_setup, print_object):
1461 Replace B_ with BVAR.
1462 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
1463 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1464 Replace B_ with BVAR.
1465 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1466 (set_marker_both, set_marker_restricted_both, unchain_marker):
1467 Replace B_ with BVAR.
1468 * lread.c (readchar, unreadchar, openp, readevalloop)
1469 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1470 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1471 * keymap.c (Flocal_key_binding, Fuse_local_map)
1472 (Fcurrent_local_map, push_key_description)
1473 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1474 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1475 (read_key_sequence): Replace B_ with BVAR.
1476 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1477 * intervals.c (set_point_both, get_local_map): Replace B_ with
1478 BVAR.
1479 * insdel.c (check_markers, insert_char, insert_1_both)
1480 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1481 (adjust_after_replace, replace_range, del_range_2)
1482 (modify_region, prepare_to_modify_buffer)
1483 (Fcombine_after_change_execute): Replace B_ with BVAR.
1484 * indent.c (buffer_display_table, recompute_width_table)
1485 (width_run_cache_on_off, current_column, scan_for_column)
1486 (Findent_to, position_indentation, compute_motion, vmotion):
1487 Replace B_ with BVAR.
1488 * fringe.c (get_logical_cursor_bitmap)
1489 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1490 with BVAR.
1491 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1492 * font.c (font_at): Replace B_ with BVAR.
1493 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1494 Replace B_ with BVAR.
1495 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1496 (unlock_buffer): Replace B_ with BVAR.
1497 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1498 (Ffile_regular_p, Ffile_selinux_context)
1499 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1500 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1501 (Finsert_file_contents, choose_write_coding_system)
1502 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1503 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1504 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1505 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1506 (save_excursion_restore, Fprevious_char, Fchar_before)
1507 (general_insert_function, Finsert_char, Finsert_byte)
1508 (make_buffer_string_both, Finsert_buffer_substring)
1509 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1510 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1511 (Ftranslate_region_internal, save_restriction_restore)
1512 (Fchar_equal): Replace B_ with BVAR.
1513 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1514 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1515 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1516 * dired.c (directory_files_internal): Replace B_ with BVAR.
1517 * data.c (swap_in_symval_forwarding, set_internal)
1518 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1519 Replace B_ with BVAR.
1520 * composite.c (fill_gstring_header)
1521 (composition_compute_stop_pos, composition_adjust_point)
1522 (Ffind_composition_internal): Replace B_ with BVAR.
1523 * coding.c (decode_coding, encode_coding)
1524 (make_conversion_work_buffer, decode_coding_gap)
1525 (decode_coding_object, encode_coding_object)
1526 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1527 (Funencodable_char_position, Fcheck_coding_systems_region):
1528 Replace B_ with BVAR.
1529 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1530 with BVAR.
1531 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1532 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1533 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1534 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1535 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1536 * category.c (check_category_table, Fcategory_table)
1537 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1538 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1539 BVAR.
1540 * casefiddle.c (casify_object, casify_region): Replace B_ with
1541 BVAR.
1542 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1543 with BVAR.
1544 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1545 BVAR.
1546 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1547 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1548 with BVAR.
1549 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1550 (get_truename_buffer, Fget_buffer_create)
1551 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1552 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1553 (Fbuffer_local_value, buffer_lisp_local_variables)
1554 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1555 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1556 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1557 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1558 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1559 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1560 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1561 (record_overlay_string, overlay_strings, init_buffer_once)
1562 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1563
1564 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1565
1566 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1567 window is changed inside calls to do_pending_window_change.
1568 (Bug#8020)
1569
1570 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1571
1572 Remove no-longer needed getloadavg symbols.
1573 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1574 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1575 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1576 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1577 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1578 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1579 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1580 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1581 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1582 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1583 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1584 (LDAV_SYMBOL): Remove.
1585 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1586 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1587
1588 Import getloadavg module from gnulib.
1589 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1590 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1591 now does this.
1592 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1593 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1594 * config.in: Regenerate.
1595
1596 2011-02-15 Eli Zaretskii <eliz@gnu.org>
1597
1598 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1599
1600 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1601
1602 * print.c (float_to_string): Ensure that a decimal point is
1603 printed if using dtoastr (Bug#8033).
1604
1605 2011-02-14 Eli Zaretskii <eliz@gnu.org>
1606
1607 * msdos.c (IT_frame_up_to_date):
1608 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1609
1610 * dired.c (directory_files_internal):
1611 * fileio.c (Finsert_file_contents):
1612 * insdel.c (prepare_to_modify_buffer):
1613 * xdisp.c (pos_visible_p):
1614 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1615 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1616 Use B_ for the MS-Windows build.
1617
1618 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1619
1620 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1621 resource that specifies helvetica for menus and dialogs.
1622
1623 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1624 (apply_systemfont_to_menu): Set resources *menubar*font and
1625 *popup*font. Remove defflt.
1626 (set_frame_menubar, create_and_show_popup_menu):
1627 Call apply_systemfont_to_menu before lw_create_widget.
1628
1629 2011-02-14 Tom Tromey <tromey@redhat.com>
1630
1631 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1632
1633 * keyboard.h: Remove obsolete comment.
1634
1635 2011-02-14 Tom Tromey <tromey@parfait>
1636
1637 * composite.c (fill_gstring_header)
1638 (composition_compute_stop_pos, composition_adjust_point)
1639 (Ffind_composition_internal): Use B_.
1640 * intervals.c (set_point_both, get_local_map): Use B_.
1641 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1642 * process.c (get_process, list_processes_1, Fstart_process)
1643 (Fmake_serial_process, Fmake_network_process)
1644 (read_process_output, send_process, exec_sentinel)
1645 (status_notify, setup_process_coding_systems): Use B_.
1646 * bytecode.c (Fbyte_code): Use B_.
1647 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1648 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1649 (skip_syntaxes, scan_lists): Use B_.
1650 * lread.c (readchar, unreadchar, openp, readevalloop)
1651 (Feval_buffer, Feval_region): Use B_.
1652 * print.c (printchar, strout, print_string, PRINTDECLARE)
1653 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1654 (print_object): Use B_.
1655 * font.c (font_at): Use B_.
1656 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1657 Use B_.
1658 * callint.c (check_mark, Fcall_interactively): Use B_.
1659 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1660 (save_excursion_restore, Fprevious_char, Fchar_before)
1661 (general_insert_function, Finsert_char, Finsert_byte)
1662 (make_buffer_string_both, Finsert_buffer_substring)
1663 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1664 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1665 (Ftranslate_region_internal, save_restriction_restore)
1666 (Fchar_equal): Use B_.
1667 * data.c (swap_in_symval_forwarding, set_internal)
1668 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1669 Use B_.
1670 * undo.c (record_point, record_insert, record_delete)
1671 (record_marker_adjustment, record_first_change)
1672 (record_property_change, Fundo_boundary, truncate_undo_list)
1673 (Fprimitive_undo): Use B_.
1674 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1675 (string_match_1, fast_looking_at, newline_cache_on_off)
1676 (search_command, search_buffer, simple_search, boyer_moore)
1677 (Freplace_match): Use B_.
1678 * indent.c (buffer_display_table, recompute_width_table)
1679 (width_run_cache_on_off, current_column, scan_for_column)
1680 (Findent_to, position_indentation, compute_motion, vmotion):
1681 Use B_.
1682 * casefiddle.c (casify_object, casify_region): Use B_.
1683 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1684 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1685 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1686 (Ffile_regular_p, Ffile_selinux_context)
1687 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1688 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1689 (Finsert_file_contents, choose_write_coding_system)
1690 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1691 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1692 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1693 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1694 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1695 (set_marker_both, set_marker_restricted_both, unchain_marker):
1696 Use B_.
1697 * insdel.c (check_markers, insert_char, insert_1_both)
1698 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1699 (adjust_after_replace, replace_range, del_range_2)
1700 (modify_region, prepare_to_modify_buffer)
1701 (Fcombine_after_change_execute): Use B_.
1702 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1703 (unlock_buffer): Use B_.
1704 * keymap.c (Flocal_key_binding, Fuse_local_map)
1705 (Fcurrent_local_map, push_key_description)
1706 (Fdescribe_buffer_bindings): Use B_.
1707 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1708 (read_key_sequence): Use B_.
1709 * fringe.c (get_logical_cursor_bitmap)
1710 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1711 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1712 * xfaces.c (compute_char_face): Use B_.
1713 * character.c (chars_in_text, Fget_byte): Use B_.
1714 * category.c (check_category_table, Fcategory_table)
1715 (Fset_category_table, char_category_set): Use B_.
1716 * coding.c (decode_coding, encode_coding)
1717 (make_conversion_work_buffer, decode_coding_gap)
1718 (decode_coding_object, encode_coding_object)
1719 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1720 (Funencodable_char_position, Fcheck_coding_systems_region):
1721 Use B_.
1722 * charset.c (Ffind_charset_region): Use B_.
1723 * window.c (window_display_table, unshow_buffer, window_loop)
1724 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1725 (select_window, Fforce_window_update, temp_output_buffer_show)
1726 (Fset_window_configuration, save_window_save): Use B_.
1727 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1728 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1729 (with_echo_area_buffer, setup_echo_area_for_printing)
1730 (set_message_1, update_menu_bar, update_tool_bar)
1731 (text_outside_line_unchanged_p, redisplay_internal)
1732 (try_scrolling, try_cursor_movement, redisplay_window)
1733 (try_window_reusing_current_matrix, row_containing_pos)
1734 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1735 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1736 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1737 (get_window_cursor_type, note_mouse_highlight): Use B_.
1738 * frame.c (make_frame_visible_1): Use B_.
1739 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1740 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1741 (WINDOW_WANTS_MODELINE_P): Use B_.
1742 * syntax.h (Vstandard_syntax_table): Update.
1743 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1744 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1745 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1746 * character.h (FETCH_CHAR_ADVANCE): Update.
1747 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1748 * category.h (Vstandard_category_table): Update.
1749 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1750 names.
1751 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1752 * buffer.c (swapfield_): New macro.
1753 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1754 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1755 (Fget_buffer_create, clone_per_buffer_values)
1756 (Fmake_indirect_buffer, reset_buffer)
1757 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1758 (Fbuffer_local_value, buffer_lisp_local_variables)
1759 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1760 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1761 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1762 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1763 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1764 (Fbuffer_swap_text, Fset_buffer_multibyte)
1765 (swap_out_buffer_local_variables, record_overlay_string)
1766 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1767 Use B_.
1768 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1769 (BUFFER_INTERNAL_FIELD, B_): New macro.
1770 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1771
1772 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1773
1774 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1775 is null.
1776
1777 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1778
1779 * callproc.c (Fcall_process):
1780 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1781 comment.
1782
1783 2011-02-12 Martin Rudalics <rudalics@gmx.at>
1784
1785 * window.c (select_window): Check inhibit_point_swap argument when
1786 deciding whether to return immediately.
1787
1788 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
1789
1790 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1791 zero (Bug#7348).
1792
1793 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
1794
1795 * config.in (TERMINFO): New definition.
1796
1797 * s/netbsd.h: Use it to choose between terminfo and termcap
1798 (Bug#7642).
1799
1800 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1801
1802 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1803 The difference doesn't matter here, in practice, and sizeof is
1804 more portable to non-GCC compilers. Also, this makes the code
1805 match the already-existing comment.
1806
1807 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1808
1809 * process.c (create_process): Reset SIGPIPE handler in the child.
1810 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1811
1812 2011-02-12 Eli Zaretskii <eliz@gnu.org>
1813
1814 * xdisp.c <this_line_min_pos>: New variable.
1815 (move_it_in_display_line_to): Record in this_line_min_pos the
1816 smallest position iterated across.
1817 (display_line): Use this_line_min_pos to record the smallest
1818 position in the line even if it is not displayed due to
1819 hscrolling. (Bug#7939)
1820
1821 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1822
1823 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1824 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1825 (struct md5_ctx): Use it.
1826
1827 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1828 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1829 defined.
1830 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1831 FC_HINT_STYLE is supported.
1832
1833 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1834
1835 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1836 Make sure we don't do x_catch_errors twice.
1837
1838 2011-02-10 Glenn Morris <rgm@gnu.org>
1839
1840 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1841
1842 2011-02-09 Eli Zaretskii <eliz@gnu.org>
1843
1844 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1845 New macros.
1846 (globals.h, gl-stamp): New targets.
1847 (clean): Clean gl-stamp and globals.h.
1848
1849 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1850
1851 * Makefile.in (gl-stamp): Create globals.h here.
1852 (globals.h): Don't do it here.
1853 (mostlyclean): Clean globals.h and gl-stamp.
1854
1855 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1856
1857 * Makefile.in ($(otherobj)): Depend on globals.h.
1858 Otherwise 'make -j10' failed on my host, because the build lacked
1859 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1860
1861 2011-02-08 Tom Tromey <tromey@redhat.com>
1862
1863 * Makefile.in (NS_OBJC_OBJ): New variable.
1864 (base_obj): Rename from 'obj'.
1865 (obj): New variable.
1866 (globals.h, gl-stamp, $(obj)): New targets.
1867 (GLOBAL_SOURCES): New variable.
1868 * globals.h: Remove.
1869 * nsselect.m (Vselection_alist): Define. Reverts part of
1870 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1871 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1872 variable.
1873 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1874
1875 2011-02-08 Kenichi Handa <handa@m17n.org>
1876
1877 * font.c (Ffont_get): Do not cache :otf value.
1878
1879 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1880
1881 conform to C89 pointer rules
1882
1883 * dired.c (scmp, file_name_completion):
1884 Change types between char * and unsigned char *, to satisfy C89
1885 rules about pointer type compatibility.
1886 * casefiddle.c (casify_object, casify_region): Likewise.
1887 * search.c (Freplace_match, Fregexp_quote): Likewise.
1888 * alloc.c (make_string, make_specified_string, make_pure_string):
1889 Likewise.
1890 * data.c (Fstring_to_number): Likewise.
1891 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1892 (print_object): Likewise.
1893 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1894 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1895 (Fformat): Likewise.
1896 * callint.c (Fcall_interactively): Likewise.
1897 * fns.c (string_make_multibyte, string_to_multibyte):
1898 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1899 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1900 Likewise.
1901 * lread.c (read1, hash_string): Likewise.
1902 * process.c (read_process_output, send_process, Fprocess_send_region):
1903 Likewise.
1904 * callproc.c (Fcall_process): Likewise.
1905 * doprnt.c (doprnt): Likewise.
1906 * indent.c (compute_motion): Likewise.
1907 * xfont.c (xfont_decode_coding_xlfd): Likewise.
1908 * ralloc.c (resize_bloc): Likewise.
1909 * image.c (tiff_load): Likewise.
1910 * xml.c (make_dom, parse_region): Likewise.
1911 * character.c (strwidth): Make its argument const char *, not const
1912 unsigned char *, since more callers prefer it that way. All callers
1913 changed.
1914
1915 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1916
1917 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1918 Emacs assumes two's complement elsewhere, but the assumption is
1919 easy to remove here, and this suppresses a warning with Sun C 5.8.
1920
1921 conform to C89 pointer rules
1922
1923 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1924 (same_x_server, x_term_init):
1925 Change types between char * and unsigned char *, to satisfy C89
1926 rules about pointer type compatibility.
1927 * doc.c (get_doc_string, Fsnarf_documentation):
1928 (Fsubstitute_command_keys): Likewise.
1929 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1930 * bitmaps/gray.xbm (gray_bits): Likewise.
1931 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
1932 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1933 Likewise.
1934 * keymap.c (Ftext_char_description): Likewise.
1935 * minibuf.c (Fread_buffer): Likewise.
1936 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1937 (DRIVE_LETTER) [defined DOS_NT]:
1938 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1939 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1940 (search_embedded_absfilename, Fsubstitute_in_file_name):
1941 (barf_or_query_if_file_exists, Fmake_directory_internal):
1942 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1943 (Finsert_file_contents, Fwrite_region):
1944 Likewise.
1945 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1946 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1947 Likewise. This changes these functions' signatures, which is
1948 more convenient since most callers use char *. All remaining
1949 callers changed.
1950 * editfns.c (general_insert_function): Change signature to
1951 match changes to insert functions' signatures.
1952 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1953 Use explicit cast when converting between void * and function pointer
1954 types, as C89 requires this.
1955
1956 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1957
1958 don't ignore chdir failure
1959 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1960 failure and exit.
1961 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1962 remaining unchecked chdir calls in this function; some DOS/NT
1963 expert needs to fix them.
1964 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1965 in this function; some NextStep expert needs to fix them.
1966
1967 2011-02-05 Glenn Morris <rgm@gnu.org>
1968
1969 * xfaces.c (Finternal_set_lisp_face_attribute):
1970 Try to clarify some error messages. (Bug#2659)
1971
1972 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
1973
1974 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1975 current_column cache (bug#7946).
1976
1977 2011-02-05 Kenichi Handa <handa@m17n.org>
1978
1979 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1980
1981 * xftfont.c (xftfont_open): Likewise.
1982
1983 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
1984
1985 * window.c (Fselect_window): Add missing return value.
1986
1987 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1988
1989 xstrcasecmp: conform to C89 pointer rules
1990 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1991 to const char *, since they're usually low-level C strings, and
1992 this stays compatible with C89 pointer rules. All callers changed.
1993
1994 * charset.c: Conform to C89 pointer rules.
1995 (define_charset_internal): Switch between char * and unsigned char *.
1996
1997 * xmenu.c: Conform to C89 const rules.
1998 (xmenu_show, xdialog_show): Declare local var as char *, not
1999 const char *, to stay compatible with C89 const rules.
2000
2001 * xdisp.c: Conform to C89 pointer rules.
2002 (store_mode_line_noprop, display_string, reseat_to_string):
2003 (c_string_pos, number_of_chars, message_dolog):
2004 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
2005 (display_mode_element, display_string):
2006 Switch between char * and unsigned char * to stay compatible wth
2007 C89 pointer rules.
2008
2009 * regex.c: Conform to C89 pointer rules.
2010 (re_wctype): Add cast, as C89 does not allow assigning between
2011 char * and unsigned char *.
2012 (regex_compile): Likewise.
2013
2014 sync from gnulib to remove HAVE_STDBOOL_H
2015 * config.in: Regenerate.
2016
2017 2011-02-04 Eli Zaretskii <eliz@gnu.org>
2018
2019 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
2020 Replace all uses of lisp.h with $(LISP_H), and all uses of
2021 process.h with $(PROCESS_H).
2022 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2023 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2024
2025 * deps.mk: Update for recent changes: gnutls support, gnulib
2026 imports, addition of globals.h.
2027
2028 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2029 ../lib/ignore-value.h.
2030
2031 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
2032
2033 allow C code to suppress warnings about ignored return values
2034
2035 We need to go through the code and for each such warning, either
2036 fix the code to pay attention to the returned value, or tell GCC
2037 that we really do want to ignore the returned value. Here is one
2038 example of how to do the latter.
2039 * sysdep.c: Include <ignore-value.h>.
2040 (sys_subshell): Suppress an undesirable warning about not checking
2041 the returned value of 'write', as there's nothing useful one can
2042 do with that returned value.
2043
2044 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
2045
2046 * xterm.c (x_connection_closed): Remove all calls that calls
2047 XSync (Bug#7949).
2048
2049 2011-02-01 Eli Zaretskii <eliz@gnu.org>
2050
2051 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2052 TIFFClientOpen.
2053
2054 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
2055
2056 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2057 (x_session_check_input): Change args and return type so it can be used
2058 as argument to add_read_fd. Make static. Remove call to select.
2059 Call kbd_buffer_store_event for emacs_event.
2060 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2061 (ice_conn_watch_CB): Call add_read_fd.
2062
2063 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2064 x_session_check_input.
2065 (x_session_initialized): Remove definition.
2066 (x_initialize): Remove setting of x_session_initialized.
2067
2068 * xterm.h (x_session_check_input): Remove declaration.
2069
2070 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
2071
2072 format-time-string now supports subsecond time stamp resolution
2073 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
2074 for consistency with its new argument and with gnulib nstrftime.
2075 All callers changed. New argument NS.
2076 (Fformat_time_string): Check that the time argument's microseconds
2077 component, if any, is in range; this avoids integer overflow and
2078 also nstrftime needs this. Document %N.
2079
2080 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
2081
2082 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2083 of int. All uses adjusted.
2084 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2085 (svg_load_image): Remove casts.
2086
2087 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
2088
2089 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2090 function definitions for compiling with libpng-1.5.
2091 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2092 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2093 (Bug#7908).
2094
2095 2011-01-31 Eli Zaretskii <eliz@gnu.org>
2096
2097 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2098
2099 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2100 ($(BLD)/strftime.$(O)): Remove prerequisites.
2101
2102 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2103
2104 src/emacs.c now gets version number from configure.in
2105 * emacs.c (emacs_version): Set to VERSION so that it
2106 is determined automatically from ../configure.in.
2107
2108 2011-01-31 Jim Meyering <meyering@redhat.com>
2109
2110 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2111 Use xmalloc rather than malloc.
2112
2113 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2114
2115 strftime: import from gnulib
2116 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2117 * deps.mk (strftime.o): Remove.
2118 * editfns.c: Include <strftime.h>, supplied by gnulib.
2119 (emacs_strftimeu): Remove decl.
2120 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2121 emacs_strftimeu.
2122 * config.in: Regenerate.
2123 * strftime.c: Remove; we now use strftime from gnulib.
2124
2125 Use SSDATA when the context wants char *.
2126 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2127 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2128 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2129 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2130 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2131 Use SSDATA (not SDATA) when the context of the expression wants
2132 char * (not unsigned char *).
2133
2134 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2135
2136 * .gdbinit: Read global lisp variables as globals.f_V*.
2137
2138 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2139
2140 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2141 All uses changed.
2142 (PROP_SAVE): Likewise.
2143
2144 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
2145
2146 * keyboard.c (make_lispy_position): Fix typo in last change
2147 (Bug#7935).
2148
2149 2011-01-29 Eli Zaretskii <eliz@gnu.org>
2150
2151 * s/ms-w32.h (HAVE_MKTIME): Remove.
2152
2153 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2154 (GNULIB): New variable.
2155 (LIBS): Add $(GNULIB).
2156 $(TEMACS): Depend on $(GNULIB).
2157 <top-level>: Fix font-lock disrupted by a lone `"'.
2158
2159 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2160
2161 * nsselect.m (ns_string_from_pasteboard): Get length of string
2162 and use make_string instead of build_string (Bug#7934).
2163 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2164 instead of stringWithUTF8String (Bug#7934).
2165
2166 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
2167
2168 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2169 descenders would not become one pixel too tall (Bug#7887).
2170
2171 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
2172
2173 * keyboard.c (make_lispy_position): For clicks on right fringe or
2174 margin, compute text position using the X coordinate relative to
2175 the left of the text area (Bug#7839).
2176
2177 2011-01-28 Kenichi Handa <handa@m17n.org>
2178
2179 * ftfont.c (ftfont_spec_pattern): Check each extra property
2180 value.
2181
2182 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2183
2184 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2185
2186 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
2187
2188 * font.c (font_parse_fcname): Undefine a temporary macro.
2189
2190 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2191
2192 Let the debugger continue to the normal handler (bug#7825).
2193 * eval.c (maybe_call_debugger): Declare before new use.
2194 (find_handler_clause): Don't call debugger any more.
2195 Ignore Vstack_trace_on_error.
2196 Use XCAR/XCDR.
2197 (syms_of_eval): Remove Vstack_trace_on_error.
2198 (Fsignal): Only modify handlerlist when we know we need to do it.
2199 Call the debugger when necessary.
2200 * globals.h (Vstack_trace_on_error): Remove.
2201
2202 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
2203
2204 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2205
2206 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
2207
2208 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2209 the buffer's point-max (bug#7876).
2210
2211 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
2212
2213 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
2214 Remove unused case (Bug#6811).
2215
2216 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2217
2218 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2219 setFrameTopLeftPoint is constrained.
2220
2221 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2222
2223 Check return values of some library calls.
2224 * emacs.c (main): Check dup result.
2225 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2226 (frame_name_fnn_p): Check strtol result.
2227
2228 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
2229 when calling XpmCreatePixmapFromData.
2230
2231 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2232 * lisp.h (SSDATA): New macro.
2233 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2234 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2235 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2236 * xsmfns.c (SSDATA): Likewise.
2237
2238 2011-01-22 Martin Rudalics <rudalics@gmx.at>
2239
2240 * window.c (select_window): New function.
2241 (Fselect_window): Call it.
2242 (inhibit_point_swap): Variable deleted.
2243 (Fset_window_configuration): Call select_window directly.
2244
2245 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2246
2247 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2248
2249 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2250
2251 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2252 screen, not the window screen.
2253 (x_set_window_size): Remove constraints.
2254 Calculate origin.y only if zooming is 0 and without referring to a
2255 screen.
2256 (windowWillResize): Don't modify frameSize.
2257 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2258 (initFrameFromEmacs): Initialize ns_userRect.
2259 (windowShouldZoom): Set zooming to one. Remove all other code.
2260 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2261 Zero it after restore.
2262 (constrainFrameRect): New method for EmacsWindow.
2263 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2264 windowWillResize.
2265
2266 * nsterm.h (ns_output): Add dont_constrain and zooming.
2267 (EmacsView): Add ns_userRect.
2268
2269 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2270 if ns_alternate_modifier is none.
2271
2272 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2273
2274 * unexmacosx.c: Add comment about include order.
2275
2276 2011-01-20 Glenn Morris <rgm@gnu.org>
2277
2278 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2279 Give it a doc string.
2280 * globals.h: Add Vread_expression_history.
2281
2282 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2283 Give it a doc string.
2284 * globals.h: Add Vkbd_macro_termination_hook.
2285
2286 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
2287
2288 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2289
2290 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2291
2292 Fix X11 compilation failure.
2293 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2294 * xselect.c (Vselection_alist): Remove declaration, moving its
2295 documentation to globals.h. This fixes a compilation failure
2296 induced by the earlier change to globals.h today.
2297
2298 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2299
2300 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2301
2302 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2303 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2304 (ns_input_spi_name, ns_input_spi_arg)
2305 (ns_alternate_modifier, ns_right_alternate_modifier)
2306 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2307 (ns_right_control_modifier, ns_function_modifier)
2308 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2309 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2310 (x_underline_at_descent_line): Remove declaration.
2311 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2312
2313 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
2314 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2315 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2316
2317 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2318 Remove declaration.
2319
2320 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2321 globals.h.
2322 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2323
2324 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2325 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2326 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2327
2328 * globals.h (struct emacs_globals): Add f_ns_input_file,
2329 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2330 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2331 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2332 f_ns_right_alternate_modifier, f_ns_command_modifier,
2333 f_ns_right_command_modifier, f_ns_control_modifier,
2334 f_ns_right_control_modifier, f_ns_function_modifier,
2335 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2336 f_Vns_version_string, f_Vns_sent_selection_hooks,
2337 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2338 and corresponding defines.
2339
2340 2011-01-19 Sam Steingold <sds@gnu.org>
2341
2342 * w32.c (check_windows_init_file): Remove declarations of
2343 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
2344 * w32fns.c: Fix an error introduced by the previous patch.
2345
2346 2011-01-19 Tom Tromey <tromey@redhat.com>
2347
2348 * window.c: Fix error introduced by previous patch.
2349
2350 2011-01-18 Tom Tromey <tromey@parfait>
2351
2352 * globals.h: New file.
2353 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2354 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2355 (Vwindow_system_version): Remove declaration.
2356 * w32term.h (Vw32_enable_palette)
2357 (Vx_pixel_size_width_font_regexp): Remove declaration.
2358 * w32menu.c (Voverriding_local_map)
2359 (Voverriding_local_map_menu_flag): Remove declaration.
2360 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2361 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2362 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2363 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2364 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2365 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2366 (w32_use_full_screen_buffer): Remove declaration.
2367 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2368 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2369 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2370 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2371 (no_redraw_on_reenter, visible_bell): Remove declaration.
2372 * sysdep.c (Vsystem_name): Remove declaration.
2373 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2374 * menu.h (Vmenu_updating_frame): Remove declaration.
2375 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2376 Remove declaration.
2377 * lisp.h (Vafter_init_time, Vafter_load_alist)
2378 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2379 (Vcompletion_regexp_list, Vcurrent_load_list)
2380 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2381 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2382 (Vexec_directory, Vexec_path, Vexec_suffixes)
2383 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2384 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2385 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2386 (Vinstallation_directory, Vinvocation_directory)
2387 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2388 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2389 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2390 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2391 (Vscalable_fonts_allowed, Vselect_active_regions)
2392 (Vshell_file_name, Vstandard_input, Vstandard_output)
2393 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2394 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2395 (Vuser_login_name, Vwindow_scroll_functions)
2396 (Vwindow_system_version, Vx_no_window_manager)
2397 (Vx_resource_class, Vx_resource_name, baud_rate)
2398 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2399 (history_delete_duplicates, inhibit_x_resources)
2400 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2401 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
2402 (use_dialog_box, use_file_dialog): Remove declaration.
2403 Include globals.h.
2404 * keymap.h (Voverriding_local_map)
2405 (Voverriding_local_map_menu_flag, meta_prefix_char):
2406 Remove declaration.
2407 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2408 (Vinput_method_function, Vkey_translation_map)
2409 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2410 (do_mouse_tracking, extra_keyboard_modifiers)
2411 (num_nonmacro_input_events): Remove declaration.
2412 * intervals.h (Vchar_property_alias_alist)
2413 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2414 (Vtext_property_default_nonsticky): Remove declaration.
2415 * gtkutil.h (x_gtk_file_dialog_help_text)
2416 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2417 (x_gtk_whole_detached_tool_bar): Remove declaration.
2418 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2419 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2420 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2421 (focus_follows_mouse): Remove declaration.
2422 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2423 (Vignore_relative_composition, Votf_script_alist)
2424 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2425 Remove declaration.
2426 * font.h (Vfont_log): Remove declaration.
2427 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2428 (Vdos_windows_version, dos_codepage, dos_country_code)
2429 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
2430 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2431 Remove declaration.
2432 * disptab.h (Vglyph_table, Vstandard_display_table):
2433 Remove declaration.
2434 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2435 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2436 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2437 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2438 (inverse_video, mode_line_in_non_selected_windows)
2439 (tool_bar_button_relief, tool_bar_max_label_size)
2440 (underline_minimum_offset)
2441 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2442 Remove declaration.
2443 * composite.h (Vauto_composition_function)
2444 (Vcomposition_function_table): Remove declaration.
2445 * commands.h (Vexecuting_kbd_macro)
2446 (Vminibuffer_local_completion_map)
2447 (Vminibuffer_local_filename_completion_map)
2448 (Vminibuffer_local_filename_must_match_map)
2449 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2450 (Vminibuffer_local_ns_map, Vthis_command)
2451 (Vunread_command_events, cursor_in_echo_area)
2452 (last_command_event, last_nonmenu_event, unread_command_char):
2453 Remove declaration.
2454 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2455 (Vdefault_file_name_coding_system)
2456 (Vdefault_process_coding_system, Vfile_name_coding_system)
2457 (Vlast_coding_system_used, Vlocale_coding_system)
2458 (Vselect_safe_coding_system_function)
2459 (Vtranslation_table_for_input, coding_system_require_warning)
2460 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2461 (eol_mnemonic_unix, inherit_process_coding_system):
2462 Remove declaration.
2463 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2464 Remove declaration.
2465 * character.h (Vauto_fill_chars, Vchar_direction_table)
2466 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2467 (Vscript_representative_chars, Vtranslation_table_vector)
2468 (Vunicode_category_table): Remove declaration.
2469 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2470 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2471 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2472 (inhibit_modification_hooks): Remove declaration.
2473 * xterm.c (syms_of_xterm): Update.
2474 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2475 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2476 (x_mouse_click_focus_ignore_position)
2477 (x_underline_at_descent_line)
2478 (x_use_underline_position_properties): Remove.
2479 * xsmfns.c (syms_of_xsmfns): Update.
2480 (Vx_session_id, Vx_session_previous_id): Remove.
2481 * xsettings.c (syms_of_xsettings): Update.
2482 (Vxft_settings, use_system_font): Remove.
2483 * xselect.c (syms_of_xselect): Update.
2484 (Vselection_converter_alist, Vx_lost_selection_functions)
2485 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2486 * xfns.c (syms_of_xfns): Update.
2487 (Vgtk_version_string, Vmotif_version_string)
2488 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2489 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2490 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2491 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2492 (Vx_sensitive_text_pointer_shape)
2493 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2494 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2495 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2496 Remove.
2497 * xfaces.c (syms_of_xfaces): Update.
2498 (Vface_default_stipple, Vface_font_rescale_alist)
2499 (Vface_ignored_fonts, Vface_new_frame_defaults)
2500 (Vface_remapping_alist, Vfont_list_limit)
2501 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2502 * xdisp.c (syms_of_xdisp): Update.
2503 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2504 (Vdisplay_pixels_per_inch, Vfontification_functions)
2505 (Vframe_title_format, Vglobal_mode_string)
2506 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2507 (Vicon_title_format, Vinhibit_redisplay)
2508 (Vline_number_display_limit, Vline_prefix)
2509 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2510 (Vmenu_updating_frame, Vmessage_log_max)
2511 (Vmouse_autoselect_window, Vnobreak_char_display)
2512 (Voverlay_arrow_position, Voverlay_arrow_string)
2513 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2514 (Vresize_mini_windows, Vshow_trailing_whitespace)
2515 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2516 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2517 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2518 (Vwindow_text_change_functions, Vwrap_prefix)
2519 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2520 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2521 (highlight_nonselected_windows, hscroll_margin)
2522 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2523 (inhibit_menubar_update, inhibit_try_cursor_movement)
2524 (inhibit_try_window_id, inhibit_try_window_reusing)
2525 (line_number_display_limit_width)
2526 (make_cursor_line_fully_visible_p, message_truncate_lines)
2527 (mode_line_inverse_video, multiple_frames, overline_margin)
2528 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2529 (tool_bar_max_label_size, underline_minimum_offset)
2530 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2531 Remove.
2532 * window.c (syms_of_window): Update.
2533 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2534 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2535 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2536 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2537 (mode_line_in_non_selected_windows, next_screen_context_lines)
2538 (window_min_height, window_min_width): Remove.
2539 (scroll_margin): Remove declaration.
2540 * w32term.c (syms_of_w32term): Update.
2541 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2542 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2543 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2544 (w32_use_visible_system_caret, x_underline_at_descent_line)
2545 (x_use_underline_position_properties): Remove.
2546 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2547 Remove declaration.
2548 * w32select.c (syms_of_w32select): Update.
2549 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2550 * w32proc.c (syms_of_ntproc): Update.
2551 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2552 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2553 (Vw32_start_process_inherit_error_mode)
2554 (Vw32_start_process_share_console)
2555 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2556 (Vsystem_name): Remove declaration.
2557 * w32font.c (syms_of_w32font): Update.
2558 (Vw32_charset_info_alist): Remove.
2559 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2560 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2561 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2562 (Vw32_enable_palette, Vw32_lwindow_modifier)
2563 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2564 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2565 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2566 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2567 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2568 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2569 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2570 (Vx_sensitive_text_pointer_shape)
2571 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2572 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2573 (w32_mouse_move_interval)
2574 (w32_pass_extra_mouse_buttons_to_system)
2575 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2576 (w32_strict_fontnames, w32_strict_painting): Remove.
2577 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2578 (Vw32_recognize_altgr, Vwindow_system_version)
2579 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2580 Remove declaration.
2581 * w32console.c (syms_of_ntterm): Update.
2582 (w32_use_full_screen_buffer): Remove.
2583 (Vtty_defined_color_alist): Remove declaration.
2584 * w16select.c (syms_of_win16select): Update.
2585 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2586 * undo.c (syms_of_undo): Update.
2587 (Vundo_outer_limit, Vundo_outer_limit_function)
2588 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2589 Remove.
2590 * textprop.c (syms_of_textprop): Update.
2591 (Vchar_property_alias_alist, Vdefault_text_properties)
2592 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2593 Remove.
2594 * terminal.c (syms_of_terminal): Update.
2595 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2596 * term.c (syms_of_term): Update.
2597 (Vresume_tty_functions, Vsuspend_tty_functions)
2598 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2599 Remove.
2600 * syntax.c (syms_of_syntax): Update.
2601 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2602 (open_paren_in_column_0_is_defun_start)
2603 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2604 (words_include_escapes): Remove.
2605 * search.c (syms_of_search): Update.
2606 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2607 * process.c (syms_of_process): Update.
2608 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2609 (delete_exited_processes): Remove.
2610 * print.c (syms_of_print): Update.
2611 (Vfloat_output_format, Vprint_charset_text_property)
2612 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2613 (Vprint_length, Vprint_level, Vprint_number_table)
2614 (Vstandard_output, print_escape_multibyte)
2615 (print_escape_newlines, print_escape_nonascii, print_quoted):
2616 Remove.
2617 * msdos.c (syms_of_msdos): Update.
2618 (Vdos_unsupported_char_glyph): Remove.
2619 (unibyte_display_via_language_environment): Remove declaration.
2620 * minibuf.c (syms_of_minibuf): Update.
2621 (Vcompletion_regexp_list, Vhistory_add_new_input)
2622 (Vhistory_length, Vminibuffer_completing_file_name)
2623 (Vminibuffer_completion_confirm)
2624 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2625 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2626 (Vminibuffer_history_position, Vminibuffer_history_variable)
2627 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2628 (Vread_buffer_function, Vread_expression_map)
2629 (completion_ignore_case, enable_recursive_minibuffers)
2630 (history_delete_duplicates, minibuffer_allow_text_properties)
2631 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2632 Remove.
2633 * marker.c (syms_of_marker): Update.
2634 (byte_debug_flag): Remove.
2635 * macros.c (syms_of_macros): Update.
2636 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2637 * lread.c (syms_of_lread): Update.
2638 (Vafter_load_alist, Vbyte_boolean_vars)
2639 (Vbytecomp_version_regexp, Vcurrent_load_list)
2640 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2641 (Vload_history, Vload_path, Vload_read_function)
2642 (Vload_source_file_function, Vload_suffixes, Vobarray)
2643 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2644 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2645 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2646 (force_load_messages, load_convert_to_unibyte)
2647 (load_dangerous_libraries, load_force_doc_strings)
2648 (load_in_progress): Remove.
2649 * keymap.c (syms_of_keymap): Update.
2650 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2651 (Vminibuffer_local_completion_map)
2652 (Vminibuffer_local_filename_completion_map)
2653 (Vminibuffer_local_filename_must_match_map)
2654 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2655 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2656 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2657 Remove.
2658 * keyboard.c (syms_of_keyboard): Update.
2659 (Vauto_save_timeout, Vcommand_error_function)
2660 (Vcommand_hook_internal, Vdeactivate_mark)
2661 (Vdeferred_action_function, Vdeferred_action_list)
2662 (Vdisable_point_adjustment, Vdouble_click_time)
2663 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2664 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2665 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2666 (Vinput_method_function, Vinput_method_previous_message)
2667 (Vkey_translation_map, Vlast_event_frame)
2668 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2669 (Vminibuffer_message_timeout, Voverriding_local_map)
2670 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2671 (Vpre_command_hook, Vprefix_help_command)
2672 (Vsaved_region_selection, Vselect_active_regions)
2673 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2674 (Vthis_command, Vthis_command_keys_shift_translated)
2675 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2676 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2677 (Vtty_erase_char, Vunread_command_events)
2678 (Vunread_input_method_events, Vunread_post_input_method_events)
2679 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2680 (double_click_fuzz, extra_keyboard_modifiers)
2681 (inhibit_local_menu_bar_menus, last_command_event)
2682 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2683 (menu_prompting, meta_prefix_char, num_input_keys)
2684 (num_nonmacro_input_events, polling_period, unread_command_char):
2685 Remove.
2686 * insdel.c (syms_of_insdel): Update.
2687 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2688 * indent.c (syms_of_indent): Update.
2689 (indent_tabs_mode): Remove.
2690 * image.c (syms_of_image): Update.
2691 (Vimage_cache_eviction_delay, Vimage_types)
2692 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2693 (cross_disabled_images): Remove.
2694 * fringe.c (syms_of_fringe): Update.
2695 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2696 * frame.c (syms_of_frame): Update.
2697 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2698 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2699 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2700 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2701 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2702 Remove.
2703 * fontset.c (syms_of_fontset): Update.
2704 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2705 (Vfontset_alias_alist, Vignore_relative_composition)
2706 (Votf_script_alist, Vuse_default_ascent)
2707 (Vvertical_centering_font_regexp): Remove.
2708 * font.c (syms_of_font): Update.
2709 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2710 (Vfont_weight_table, Vfont_width_table): Remove.
2711 * fns.c (syms_of_fns): Update.
2712 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2713 * filelock.c (syms_of_filelock): Update.
2714 (Vtemporary_file_directory): Remove.
2715 * fileio.c (syms_of_fileio): Update.
2716 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2717 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2718 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2719 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2720 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2721 (Vwrite_region_annotate_functions)
2722 (Vwrite_region_annotations_so_far)
2723 (Vwrite_region_post_annotation_function)
2724 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2725 (Vw32_get_true_file_attributes): Remove declaration.
2726 * eval.c (syms_of_eval): Update.
2727 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2728 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2729 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2730 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2731 (max_lisp_eval_depth, max_specpdl_size): Remove.
2732 * emacs.c (syms_of_emacs): Update.
2733 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2734 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2735 (Vinstallation_directory, Vinvocation_directory)
2736 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2737 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2738 (Vsystem_configuration, Vsystem_configuration_options)
2739 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2740 (inhibit_x_resources, noninteractive1): Remove.
2741 * editfns.c (syms_of_editfns): Update.
2742 (Vbuffer_access_fontified_property)
2743 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2744 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2745 (Vuser_login_name, Vuser_real_login_name): Remove.
2746 * dosfns.c (syms_of_dosfns): Update.
2747 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2748 (dos_codepage, dos_country_code, dos_decimal_point)
2749 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2750 (dos_super_key, dos_timezone_offset): Remove.
2751 * doc.c (syms_of_doc): Update.
2752 (Vbuild_files, Vdoc_file_name): Remove.
2753 * dispnew.c (syms_of_display): Update.
2754 (Vglyph_table, Vinitial_window_system)
2755 (Vredisplay_preemption_period, Vstandard_display_table)
2756 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2757 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2758 * dired.c (syms_of_dired): Update.
2759 (Vcompletion_ignored_extensions): Remove.
2760 (Vw32_get_true_file_attributes): Remove declaration.
2761 * dbusbind.c (syms_of_dbusbind): Update.
2762 (Vdbus_debug, Vdbus_registered_buses)
2763 (Vdbus_registered_objects_table): Remove.
2764 * data.c (syms_of_data): Update.
2765 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2766 * composite.c (syms_of_composite): Update.
2767 (Vauto_composition_function, Vauto_composition_mode)
2768 (Vcompose_chars_after_function, Vcomposition_function_table):
2769 Remove.
2770 * coding.c (syms_of_coding): Update.
2771 (Vcharset_revision_table, Vcoding_category_list)
2772 (Vcoding_system_alist, Vcoding_system_for_read)
2773 (Vcoding_system_for_write, Vcoding_system_list)
2774 (Vdefault_process_coding_system, Venable_character_translation)
2775 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2776 (Vlast_coding_system_used, Vlatin_extra_code_table)
2777 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2778 (Vprocess_coding_system_alist)
2779 (Vselect_safe_coding_system_function)
2780 (Vstandard_translation_table_for_decode)
2781 (Vstandard_translation_table_for_encode)
2782 (Vtranslation_table_for_input, coding_system_require_warning)
2783 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2784 (eol_mnemonic_unix, inherit_process_coding_system)
2785 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2786 (inhibit_null_byte_detection): Remove.
2787 * cmds.c (syms_of_cmds): Update.
2788 (Vpost_self_insert_hook): Remove.
2789 * charset.c (syms_of_charset): Update.
2790 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2791 (inhibit_load_charset_map): Remove.
2792 * character.c (syms_of_character): Update.
2793 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2794 (Vchar_width_table, Vprintable_chars)
2795 (Vscript_representative_chars, Vtranslation_table_vector)
2796 (Vunicode_category_table): Remove.
2797 * ccl.c (syms_of_ccl): Update.
2798 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2799 (Vtranslation_hash_table_vector): Remove.
2800 * category.c (syms_of_category): Update.
2801 (Vword_combining_categories, Vword_separating_categories): Remove.
2802 * callproc.c (syms_of_callproc): Update.
2803 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2804 (Vexec_directory, Vexec_path, Vexec_suffixes)
2805 (Vinitial_environment, Vprocess_environment)
2806 (Vshared_game_score_directory, Vshell_file_name): Remove.
2807 * callint.c (syms_of_callint): Update.
2808 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2809 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2810 * bytecode.c (syms_of_bytecode): Update.
2811 (Vbyte_code_meter, byte_metering_on): Remove.
2812 * buffer.c (syms_of_buffer): Update.
2813 (Vafter_change_functions, Vbefore_change_functions)
2814 (Vchange_major_mode_hook, Vfirst_change_hook)
2815 (Vinhibit_read_only, Vkill_buffer_query_functions)
2816 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2817 * alloc.c (syms_of_alloc): Update.
2818 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2819 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2820 (cons_cells_consed, floats_consed, garbage_collection_messages)
2821 (gc_cons_threshold, gcs_done, intervals_consed)
2822 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2823 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2824
2825 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2826 (DEFVAR_INT): Assume global is in `globals'.
2827 * alloc.c (globals): Define.
2828
2829 2011-01-18 Tom Tromey <tromey@redhat.com>
2830
2831 * image.c (Vimagemagick_render_type): Remove redundant
2832 definition.
2833
2834 2011-01-18 Tom Tromey <tromey@redhat.com>
2835
2836 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2837 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2838 (redisplay_window): Update.
2839 (syms_of_xdisp): Update.
2840
2841 2011-01-18 Tom Tromey <tromey@redhat.com>
2842
2843 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2844 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2845 Declare.
2846 * gtkutil.c (xg_uses_old_file_dialog):
2847 (xg_get_file_with_chooser):
2848 (xg_tool_bar_detach_callback): Don't redeclare globals.
2849
2850 2011-01-18 Tom Tromey <tromey@redhat.com>
2851
2852 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2853 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2854
2855 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2856
2857 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2858 defined __GNUC__. ../configure now checks for this GCC feature,
2859 which is now also supported by IBM and Oracle compilers.
2860 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2861 since Solaris malloc returns mult-of-8.
2862
2863 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
2864
2865 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2866
2867 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
2868
2869 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2870 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2871 * data.c (Fnumber_to_string): Use it.
2872 * print.c (float_to_string, print_object): Likewise.
2873
2874 Include <unistd.h> unilaterally.
2875 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2876 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2877 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2878 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2879 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2880 * xterm.c:
2881 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2882 unistd.h is always present now, possibly supplied by gnulib.
2883
2884 * mktime.c: Remove; moving to ../lib.
2885
2886 Use gnulib's mktime module.
2887 * deps.mk (mktime.o): Remove rule.
2888
2889 Use gnulib's ftoastr module.
2890 * print.c: Include ftoastr.h.
2891 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2892 Remove; no longer needed.
2893 (float_to_string): Use dtoastr rather than rolling our own code,
2894 which had an off-by-one bug on non-IEEE hosts.
2895
2896 Automate syncing from gnulib.
2897 * Makefile.in (lib): New macro.
2898 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2899 ($(lib)/libgnu.a): New rule.
2900 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2901
2902 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2903 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2904 so change the type of 'ign' to unsigned int from int.
2905
2906 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2907
2908 * xterm.h (struct x_display_info): Remove stray semicolon.
2909 The extra semicolon didn't conform to the C standard.
2910 Problem reported by Sun cc.
2911
2912 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2913 These changes make compilation easier to follow with Sun cc.
2914 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2915 EMACS_INT values without provoking overflow diagnostics.
2916 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2917 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2918 diagnostic with signed left shift.
2919
2920 * fileio.c (make_temp_name): Remove unreachable code.
2921
2922 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2923 Previously it was marked by preceding it with "return;", but
2924 Sun cc complains about this.
2925
2926 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2927 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2928 which fixed Bug#2370. Caught by Sun cc.
2929
2930 2011-01-15 Martin Rudalics <rudalics@gmx.at>
2931
2932 * window.c (inhibit_point_swap): New variable.
2933 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2934 point this time.
2935 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2936 of setting selected_window to nil (Bug#7728).
2937
2938 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2939
2940 * image.c (imagemagick_load_image, Finit_image_library):
2941 Free intermediate image after creating a MagickWand from it.
2942 Terminate MagickWand environment after image loading.
2943
2944 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
2945
2946 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2947 unexpected return values.
2948 (Fdbus_register_method): Remove connection initialization.
2949
2950 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
2951
2952 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2953 used by Fdbus_register_service.
2954 (QCdbus_request_name_replace_existing): Likewise.
2955 (QCdbus_request_name_do_not_queue): Likewise.
2956 (QCdbus_request_name_reply_primary_owner): Likewise.
2957 (QCdbus_request_name_reply_in_queue): Likewise.
2958 (QCdbus_request_name_reply_exists): Likewise.
2959 (QCdbus_request_name_reply_already_owner): Likewise.
2960 (Fdbus_register_service): New function.
2961 (Fdbus_register_method): Use Fdbus_register_service to do the name
2962 registration.
2963 (syms_of_dbusbind): Add symbols dbus-register-service,
2964 :allow-replacement, :replace-existing, :do-not-queue,
2965 :primary-owner, :existing, :in-queue and :already-owner.
2966
2967 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
2968
2969 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2970 when removing extra buttons.
2971
2972 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
2973
2974 * fns.c (Fyes_or_no_p): Doc fix.
2975
2976 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2977
2978 * fns.c (Fyes_or_no_p): Add usage.
2979
2980 2011-01-08 Glenn Morris <rgm@gnu.org>
2981
2982 * makefile.w32-in ($(EMACS)):
2983 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2984
2985 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2986 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2987
2988 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2989
2990 * image.c (imagemagick_load_image): Fix some resource leaks and
2991 error handling.
2992
2993 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
2994
2995 * fns.c (Fyes_or_no_p): Accept format string args.
2996
2997 2011-01-07 Glenn Morris <rgm@gnu.org>
2998
2999 * emacs.c (no_site_lisp): New int.
3000 (USAGE1): Add --no-site-lisp, mention -Q uses it.
3001 (main): Set no_site_lisp.
3002 (standard_args): Add --no-site-lisp.
3003 * lisp.h (no_site_lisp): New int.
3004 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
3005 directories to Vload_path.
3006
3007 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
3008
3009 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
3010
3011 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
3012
3013 * dbusbind.c (Fdbus_register_method): Add optional parameter
3014 dont_register_service. Updated docstring accordingly.
3015
3016 2011-01-04 Glenn Morris <rgm@gnu.org>
3017
3018 * emacs.c (emacs_copyright): Update short copyright year to 2011.
3019
3020 2011-01-03 Eli Zaretskii <eliz@gnu.org>
3021
3022 * image.c (png_jmpbuf): Remove definition.
3023 (my_png_error, png_load): Don't use png_jmpbuf.
3024
3025 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3026
3027 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
3028
3029 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3030
3031 * image.c <Qlibpng_version>: New variable.
3032 (syms_of_image): Intern and staticpro it. Set its value to the
3033 version of PNG library we were compiled with.
3034 (my_png_error, png_load): Avoid GCC warnings about direct access
3035 to png_ptr->jmpbuf. (Bug#7716)
3036 (png_jmpbuf): New macro.
3037 (my_png_error, png_load): Use it instead of #ifdef'ing according
3038 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
3039
3040 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3041
3042 * .gdbinit (xgetptr): Fix the union+lsb case.
3043 (xbacktrace): Fix the union case.
3044
3045 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3046
3047 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3048 different from selected-window's.
3049
3050 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3051
3052 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
3053 equivalent of a menu item when the key sequence is given by the
3054 `:keys' attribute. (Bug#7662)
3055
3056 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3057 the basic faces are supported.
3058
3059 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
3060
3061 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3062
3063 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3064
3065 * xdisp.c (Fformat_mode_line): Fix last change.
3066
3067 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
3068
3069 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3070 faces (Bug#7587).
3071
3072 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3073
3074 * fileio.c (Fexpand_file_name): One more doc fix.
3075
3076 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
3077
3078 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3079 image or label in the container.
3080 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3081 (xg_show_toolbar_item): Function deleted.
3082 (xg_tool_item_stale_p): New function.
3083 (update_frame_tool_bar): Calculate tool-bar style once per call.
3084 Instead of hiding text labels, omit them. Don't use
3085 xg_show_toolbar_item; create new GtkToolItems from scratch if
3086 necessary, instead of trying to re-use them. This avoids an
3087 annoying animation when changing tool-bars.
3088
3089 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3090
3091 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3092 title and buffer filename only for RepresentedFilename.
3093 Handle bad UTF-8 in buffer name (Bug#7517).
3094
3095 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3096
3097 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3098
3099 * nsfns.m (ns_set_name_iconic): Remove.
3100 (ns_set_name_internal): New function (Bug#7517).
3101 (Vicon_title_format): Extern declare.
3102 (ns_set_name): Call ns_set_name_internal.
3103 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3104 (x_implicitly_set_name): Ditto.
3105 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3106 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3107
3108 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3109
3110 * window.c (syms_of_window): Add missing defsubr for
3111 window-use-time.
3112
3113 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3114
3115 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3116 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3117
3118 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3119
3120 * buffer.c: Remove unused declarations.
3121 * buffer.h: Likewise.
3122 * charset.h: Likewise.
3123 * composite.h: Likewise.
3124 * dispextern.h: Likewise.
3125 * dispnew.c: Likewise.
3126 * font.h: Likewise.
3127 * fontset.c: Likewise.
3128 * fontset.h: Likewise.
3129 * intervals.h: Likewise.
3130 * keymap.h: Likewise.
3131 * lisp.h: Likewise.
3132 * syntax.c: Likewise.
3133 * syntax.h: Likewise.
3134 * termhooks.h: Likewise.
3135 * window.h: Likewise.
3136 * xsettings.h: Likewise.
3137 * xterm.c: Likewise.
3138 * xterm.h: Likewise.
3139
3140 * chartab.c (sub_char_table_ref): Make static.
3141 * dispnew.c (line_hash_code, required_matrix_height)
3142 (required_matrix_width): Likewise.
3143 * eval.c (interactive_p, apply_lambda): Likewise.
3144 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3145 Likewise.
3146 * font.c (QCadstyle, QCregistry, font_make_spec)
3147 (font_parse_fcname, font_encode_char, font_at): Likewise.
3148 * frame.c (x_frame_get_arg): Likewise.
3149 * keymap.c (get_keyelt): Likewise.
3150 * lread.c (read_filtered_event): Likewise.
3151 * print.c (write_string_1): Likewise.
3152 * window.c (delete_window, window_height, window_width)
3153 (foreach_window): Likewise.
3154 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3155 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3156 (xembed_send_message): Likewise.
3157
3158 * eval.c (run_hook_list_with_args): Delete.
3159 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3160 * terminal.c (get_terminal_param): Likewise.
3161 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3162
3163 * scroll.c: Fix comment.
3164
3165 * dispnew.c (add_window_display_history)
3166 (add_frame_display_history, glyph_row_slice_p)
3167 (find_glyph_row_slice, flush_stdout)
3168 (check_matrix_pointer_lossage, matrix_row)
3169 (check_matrix_invariants, check_window_matrix_pointers)
3170 (check_matrix_pointers, window_to_frame_vpos)
3171 (window_to_frame_hpos): Prototize.
3172 * textprop.c (erase_properties): Likewise.
3173
3174 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3175
3176 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3177 (print_preprocess): Fix handling of uninterned symbols in last change.
3178
3179 * print.c (print, print_preprocess, print_object): Use a hash table
3180 rather than a linear table for Vprint_number_table.
3181
3182 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3183
3184 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3185
3186 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3187
3188 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3189 (parse_tool_bar_item): Use it to obtain image separators for
3190 displays not using native tool-bar separators.
3191
3192 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3193 specially, since this is now done in parse_tool_bar_item.
3194
3195 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3196
3197 Minor clean up to silence some gcc warnings.
3198 * window.c (Fset_window_buffer):
3199 * xterm.c (x_set_frame_alpha): Restructure code to silence
3200 compiler warning.
3201 (handle_one_xevent): Remove unused var `p'.
3202 (do_ewmh_fullscreen): Remove unused var `lval'.
3203 (xembed_set_info): Remove unused var `atom'.
3204 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3205 compiler warning.
3206 * fontset.c (fontset_id_valid_p, dump_fontset):
3207 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3208 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3209 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3210 label only when it's used.
3211 * image.c (x_create_bitmap_from_xpm_data):
3212 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3213 its callers.
3214 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3215 `consumed_chars'.
3216 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3217 (decode_coding_emacs_mule): Remove unused label `retry'.
3218 (detect_eol): Add parens to silence compiler warning.
3219 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3220 it's used to silence the compiler.
3221 (make_number): Modernize k&r declaration.
3222 (mark_char_table): Add parens to silence compiler warning.
3223
3224 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
3225
3226 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3227 tool-bar maps.
3228 (menu_separator_name_p): New function, from gtkutil.c.
3229 (separator_names): Move from gtkutil.c.
3230
3231 * keyboard.h (menu_separator_name_p): Add prototype.
3232
3233 * gtkutil.c (XG_BIN_CHILD): New macro.
3234 (xg_get_menu_item_label, xg_update_menubar)
3235 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3236 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3237 (separator_names, xg_separator_p): Move to keyboard.c.
3238 (create_menus, xg_update_submenu, update_frame_tool_bar):
3239 Use menu_separator_name_p.
3240
3241 * nsmenu.m (name_is_separator): Function deleted.
3242 (addItemWithWidgetValue): Use menu_separator_name_p.
3243
3244 * w32menu.c (name_is_separator): Function deleted.
3245 (add_menu_item): Use menu_separator_name_p.
3246
3247 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3248
3249 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3250 same as the background, use the face forground as cursor.
3251
3252 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3253
3254 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3255
3256 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3257
3258 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3259 (face_before_or_after_it_pos, next_element_from_string)
3260 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3261 calculations of maximum string length before calling
3262 string_char_and_length and STRING_CHAR_AND_LENGTH.
3263 (string_char_and_length): Update commentary: MAXLEN is no longer
3264 needed.
3265
3266 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3267
3268 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3269 as (Qsave_session arg).
3270
3271 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3272 (smc_die_CB): Make an event with arg Qt.
3273 (Fhandle_save_session): If event has Qt as argument,
3274 call Fkill_emacs (Bug#7552).
3275
3276 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3277
3278 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3279
3280 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3281
3282 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3283
3284 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3285
3286 * dispextern.h (struct it): New member overlay_strings_charpos.
3287
3288 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3289 charpos where we computed n_overlay_strings.
3290 (next_overlay_string): Load overlay strings at recorded position,
3291 which may not be the same as the iterator's charpos (Bug#7016).
3292
3293 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3294
3295 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3296 obscured due to a vscroll (Bug#7537).
3297
3298 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
3299
3300 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3301
3302 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3303 Use FRAME_TOOLBAR_HEIGHT.
3304 (x_set_offset): Handle XNegative and YNegative in
3305 f->size_hint_flags (Bug#7510).
3306
3307 2010-12-11 Eli Zaretskii <eliz@gnu.org>
3308
3309 * w32fns.c (Fx_show_tip): Call try_window with last argument
3310 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3311 solved. Round up the tip height to an integral multiple of the
3312 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3313 (Bug#7398)
3314
3315 2010-12-08 Glenn Morris <rgm@gnu.org>
3316
3317 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3318
3319 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3320
3321 * xml.c (parse_region): Ignore blank HTML nodes.
3322 (make_dom): Return CDATA sections (like <style>foo</style>) as
3323 text nodes.
3324
3325 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3326
3327 * lread.c (read1): Allow newstyle unquote outside of backquote.
3328 Disallow old-style backquotes inside new-style backquotes.
3329 Don't count unquotes to figure out when we're "syntactically inside
3330 but semantically outside of a backquote" any more.
3331 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3332 to all contexts.
3333
3334 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
3335
3336 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3337
3338 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3339
3340 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3341 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3342 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3343
3344 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3345
3346 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3347 bit-field.
3348 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3349 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3350 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3351 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3352 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3353 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3354 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3355 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3356 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3357 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3358 * m/hp800.h: Remove file.
3359 * m/mips.h: Remove file.
3360
3361 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3362
3363 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3364 with cursor color and draw a rectangle around the image (Bug#7412).
3365
3366 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3367
3368 * frame.c (x_set_font): Remove unused variable.
3369
3370 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3371
3372 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3373
3374 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3375 drawing text under filled box cursor (Bug#7479).
3376
3377 2010-11-27 Kenichi Handa <handa@m17n.org>
3378
3379 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3380 i.e. integer.
3381 (Fdefine_charset_internal): Adjust for the above change.
3382 (init_charset_once): Likewise.
3383
3384 * charset.h (emacs_mule_charset): Adjust the prototype.
3385 Delete duplicated extern.
3386
3387 * coding.c (emacs_mule_char): Adjust for the change of
3388 emacs_mule_charset.
3389
3390 * lread.c (read_emacs_mule_char): Adjust for the change of
3391 emacs_mule_charset.
3392
3393 2010-11-27 Eli Zaretskii <eliz@gnu.org>
3394
3395 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3396 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3397
3398 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3399
3400 * alloc.c (mark_terminals): Ensure that the image cache is marked
3401 even if the terminal object was marked earlier (Bug#6301).
3402
3403 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
3404
3405 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3406
3407 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
3408
3409 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3410 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
3411 Use 23 as menubar height if 0. (Bug#7425).
3412
3413 2010-11-26 Eli Zaretskii <eliz@gnu.org>
3414
3415 * xdisp.c (set_message_1): Force paragraph direction in echo area
3416 be left-to-right.
3417
3418 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3419 when the click is on the header or mode line.
3420
3421 2010-11-25 Eli Zaretskii <eliz@gnu.org>
3422
3423 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3424 `cursor' property of the first character in overlay strings.
3425 (Bug#7474) (Bug#7481)
3426
3427 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3428
3429 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3430 (NSLeftAlternateKeyMask): New defines.
3431 (keyDown): Parse left and right keys separately (Bug#7458).
3432 Compare Left key masks exactly (Bug#7458).
3433
3434 2010-11-23 Eli Zaretskii <eliz@gnu.org>
3435
3436 * intervals.c (temp_set_point_both): Define before calling, to
3437 avoid GCC warnings.
3438
3439 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3440
3441 * nsmenu.m: Use #include <config.h> instead of "config.h".
3442
3443 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
3444 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3445 Move declarations ...
3446 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
3447 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3448 ... here.
3449
3450 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3451 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3452 (gdb_pvec_type):
3453 * print.c (print_output_debug_flag):
3454 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3455 (safe_debug_print): New declaration.
3456
3457 * xterm.c:
3458 * systty.h:
3459 * sound.c: Include <sys/ioctl.h> unconditionally.
3460
3461 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3462
3463 * alloc.c (mark_maybe_object): Return early if given a Lisp
3464 integer (Bug#6301).
3465
3466 2010-11-21 Ken Brown <kbrown@cornell.edu>
3467
3468 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3469
3470 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3471
3472 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3473 Define (Bug#7458).
3474 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3475 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3476 NSRightControlKeyMask also (Bug#7458).
3477 (keyDown): Ditto (Bug#7458).
3478 (syms_of_nsterm): Defvar ns-right-command-modifier and
3479 ns-right-control-modifier (Bug#7458).
3480
3481 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3482
3483 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3484 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3485
3486 * intervals.h (temp_set_point, temp_set_point_both):
3487 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3488
3489 2010-11-20 Ken Brown <kbrown@cornell.edu>
3490
3491 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3492
3493 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3494
3495 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3496 \xNNNNNN for hex-code display of glyphless characters.
3497
3498 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3499
3500 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3501 Set important to ! vert_only.
3502 (xg_show_toolbar_item): Don't show label horizontally if
3503 tool item isn't important.
3504 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3505 xg_make_tool_item, or update important on existing tool item.
3506
3507 * keyboard.c (QCvert_only): New variable.
3508 (parse_tool_bar_item): Check for QCvert_only.
3509 (syms_of_keyboard): Initialize QCvert_only.
3510
3511 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3512
3513 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3514
3515 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3516 same in-line.
3517
3518 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3519
3520 * xfaces.c (lookup_face): Make static.
3521 * dispnew.c (copy_row_except_pointers): Likewise.
3522 * syntax.c (dec_bytepos): Likewise.
3523 (inc_bytepos): Remove.
3524 * dispextern.h (lookup_face): Remove declaration.
3525
3526 2010-11-19 Eli Zaretskii <eliz@gnu.org>
3527
3528 * xdisp.c (set_cursor_from_row): Display cursor after all the
3529 glyphs that come from an overlay. Don't overstep the last glyph
3530 when skipping glyphs from an overlay. (Bug#6687)
3531
3532 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3533
3534 * alloc.c (refill_memory_reserve): Move declaration ...
3535 * lisp.h (refill_memory_reserve): ... here.
3536
3537 * strftime.c (_strftime_copytm): Add declaration.
3538
3539 * callproc.c (syms_of_callproc): Use intern_c_string.
3540
3541 Move declarations from .c files to .h files.
3542 * process.c (timers_run):
3543 * minibuf.c (quit_char):
3544 * lread.c (read_emacs_mule_char):
3545 * keyboard.c (minibuf_level, message_enable_multibyte)
3546 (pending_malloc_warning):
3547 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3548 (Qonly): Remove declarations.
3549 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3550 (Vselect_active_regions):
3551 * keyboard.h (timers_run): Add declarations.
3552
3553 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3554 (tm_diff): Convert definitions to standard C.
3555 (extra_args_spec_iso): Remove, unused.
3556
3557 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
3558
3559 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3560
3561 * config.in (HAVE_G_TYPE_INIT): New symbol.
3562
3563 2010-11-18 Eli Zaretskii <eliz@gnu.org>
3564
3565 * lread.c (Fload): Mention `load-in-progress' and
3566 `load-file-name'. (Bug#7346)
3567
3568 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3569 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3570 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3571 subprocesses. Use buffer_free only ifdef subprocesses.
3572
3573 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3574 the subprocesses version, not in the non-subprocesses one.
3575
3576 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3577
3578 2010-11-17 Eli Zaretskii <eliz@gnu.org>
3579
3580 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3581 lines on text-mode terminals. (bug#7417)
3582
3583 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3584
3585 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3586 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3587
3588 2010-11-17 Kenichi Handa <handa@m17n.org>
3589
3590 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3591 change (set charset-ID list instead of charset-symbol list).
3592
3593 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
3594
3595 * keyboard.c (make_lispy_position): For text area clicks, record Y
3596 pixel position relative to the text area, excluding header line.
3597 Also change X and Y to Lisp_Objects, not pointers; don't return
3598 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3599 buffer_posn_from_coords counting from the start of the text area.
3600 (Fposn_at_x_y, make_lispy_event): Callers changed.
3601
3602 * window.c (coordinates_in_window): Change X and Y to ints rather
3603 than pointers; don't return coordinates via pointers.
3604 (struct check_window_data): Change X and Y from pointers to ints.
3605 (window_from_coordinates): Remove args WX and WY; don't return
3606 coordinates via pointers.
3607 (Fcoordinates_in_window_p, window_from_coordinates):
3608 (check_window_containing, Fwindow_at): Callers changed.
3609 (window_relative_x_coord): New function.
3610
3611 * window.h (window_from_coordinates, window_relative_x_coord):
3612 Update prototypes.
3613
3614 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3615 the start of the text area.
3616
3617 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3618 call. Use window_relative_x_coord.
3619 (note_mouse_highlight): Change window_from_coordinates call.
3620
3621 * w32term.c (w32_read_socket):
3622 * msdos.c (dos_rawgetc):
3623 * xterm.c (handle_one_xevent): Likewise.
3624
3625 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3626
3627 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3628 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3629 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3630 Convert definitions to standard C.
3631 * regex.c: Do not include <stdlib.h>, config.h does it.
3632 Include unistd.h.
3633 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3634 (regerror, regfree): Convert definitions to standard C.
3635 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3636 (__mktime_internal): Convert definitions to standard C.
3637
3638 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3639
3640 * w32proc.c:
3641 * w32inevt.c:
3642 * w32heap.c:
3643 * w32.c: Remove config.h include guards.
3644
3645 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3646 No code changes.
3647
3648 * process.c: Include <sys/ioctl.h> unconditionally,
3649 keyboard.c already does it.
3650
3651 * keyboard.c (pending_malloc_warning): Add const to match
3652 definition in alloc.c.
3653 (Fset_input_interrupt_mode): Simplify #ifdefs.
3654
3655 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3656
3657 Clean up systty.h macros.
3658 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3659 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3660 definition in all uses.
3661 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3662 * sysdep.c (discard_tty_input, child_setup_tty)
3663 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3664 * emacs.c (shut_down_emacs):
3665 * callproc.c (child_setup):
3666 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3667
3668 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3669
3670 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3671
3672 * w32fns.c (Fx_create_frame):
3673 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3674 resource here; it's now done at startup.
3675
3676 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3677
3678 * xterm.c (set_wm_state): Add Qnil to final cons.
3679
3680 * xselect.c (x_send_client_event): Remove unused variables cons and
3681 size.
3682
3683 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3684
3685 * keyboard.c (modify_event_symbol): Add const to array elements of
3686 arg NAME_TABLE.
3687 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3688 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3689 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3690 Add const to array elements.
3691 (scroll_bar_parts): Make static. Fix position of const.
3692
3693 * w32fns.c (lispy_function_keys): Add const to extern.
3694
3695 * w32inevt.c (lispy_function_keys): Likewise.
3696
3697 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3698
3699 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3700 resource here; it's now done at startup.
3701
3702 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3703
3704 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
3705
3706 Fix compilation on Solaris.
3707 * sysdep.c: Do not #include <term.h>.
3708 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3709
3710 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3711
3712 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3713
3714 * xterm.c (set_wm_state): Don't put Atom in cons, call
3715 make_fixnum_or_float on them first.
3716 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3717 Xatom_net_supported correctly.
3718
3719 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3720 (Fx_send_client_event): to here.
3721
3722 2010-11-13 Martin Rudalics <rudalics@gmx.at>
3723
3724 * window.c (Fwindow_use_time): New function.
3725
3726 2010-11-13 Eli Zaretskii <eliz@gnu.org>
3727
3728 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3729 zero-width characters.
3730
3731 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3732
3733 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3734 box before drawing the glyphs inside it.
3735
3736 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3737
3738 * dispextern.h (enum glyphless_display_method):
3739 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3740 All users changed.
3741
3742 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3743 Fix comments.
3744 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3745 whitespace in "[]", to simulate a box. Don't use uninitialized
3746 variable `width'.
3747
3748 2010-11-11 Julien Danjou <julien@danjou.info>
3749
3750 * xsettings.c (init_xsettings): Use already fetch atoms.
3751
3752 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3753 from dpyinfo.
3754
3755 * xselect.c (Fx_send_client_event): Split and create
3756 x_send_client_event.
3757
3758 * lisp.h: Do not EXFUN Fx_send_client_event.
3759
3760 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3761 from dpyinfo.
3762 (wm_supports): Use atoms from dpyinfo.
3763 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3764 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3765 (xembed_set_info): Use atoms from dpyinfo.
3766 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3767 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3768 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3769 Get all atoms in one round-trip.
3770 (set_wm_state): Use x_send_client_event rather than
3771 Fx_send_client_event, using Atom directly.
3772 (x_ewmh_activate_frame): Ditto.
3773 (x_set_sticky): Pass atoms to set_wm_state.
3774 (do_ewmh_fullscreen): Ditto.
3775
3776 * xterm.h (x_display_info): Add Xatom_net_supported,
3777 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3778 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3779
3780 * xfns.c (Fx_show_tip): Fix typo in docstring.
3781
3782 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3783
3784 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3785 it's not negative.
3786
3787 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3788
3789 * font.c (font_filter_properties): Add const to array elements of
3790 properties args.
3791
3792 * font.h (font_filter_properties): Likewise.
3793
3794 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3795 elements.
3796
3797 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3798
3799 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
3800
3801 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3802 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3803 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3804 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3805 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3806
3807 2010-11-10 Glenn Morris <rgm@gnu.org>
3808
3809 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3810
3811 2010-11-09 Eli Zaretskii <eliz@gnu.org>
3812
3813 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
3814
3815 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
3816
3817 * image.c (free_image): Don't garbage the frame here, since this
3818 function can be called while redisplaying (Bug#7210).
3819 (uncache_image): Garbage the frame here (Bug#6426).
3820
3821 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
3822
3823 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3824 parent is the root window. Check this after traversing window tree.
3825
3826 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
3827
3828 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
3829
3830 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3831 before traversing window tree (Bug#5721).
3832
3833 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3834
3835 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3836
3837 * xdisp.c (note_mode_line_or_margin_highlight):
3838 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
3839
3840 2010-11-06 Eli Zaretskii <eliz@gnu.org>
3841
3842 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3843 adjust width of tool-tip frame to the width of text, excluding the
3844 stretch glyph at the beginning of R2L glyph rows.
3845
3846 * w32fns.c (Fx_show_tip): Likewise.
3847
3848 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3849
3850 * nsfont.m: Include termchar for new mouse-highlight.
3851 (nsfont_draw): Use MOUSE_HL_INFO.
3852
3853 2010-11-05 Eli Zaretskii <eliz@gnu.org>
3854
3855 Unify mouse-highlight code for all GUI and TTY sessions.
3856
3857 * term.c: Remove static mouse_face_* variables. All users
3858 changed.
3859 (term_show_mouse_face, term_clear_mouse_face)
3860 (fast_find_position, term_mouse_highlight): Functions deleted.
3861 (tty_draw_row_with_mouse_face): New function.
3862 (term_mouse_movement): Call note_mouse_highlight instead of
3863 term_mouse_highlight.
3864
3865 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3866 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3867 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3868 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3869 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3870 Replace Display_Info with Mouse_HLInfo everywhere where
3871 mouse_face_* members were accessed for mouse highlight purposes.
3872
3873 * xterm.c (x_update_window_begin, x_update_window_end)
3874 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
3875 (handle_one_xevent, x_free_frame_resources, x_term_init):
3876 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
3877 members were accessed for mouse highlight purposes.
3878
3879 * w32term.c (x_update_window_begin, x_update_window_end)
3880 (x_update_end, w32_read_socket, x_free_frame_resources)
3881 (w32_initialize_display_info): Replace Display_Info with
3882 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3883 for mouse highlight purposes.
3884
3885 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3886 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3887 unless the frame is on a window-system.
3888 (get_tool_bar_item, handle_tool_bar_click)
3889 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3890 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3891 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3892 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3893 Replace Display_Info with Mouse_HLInfo everywhere where
3894 mouse_face_* members were accessed for mouse highlight purposes.
3895 (coords_in_mouse_face_p): Move prototype out of the
3896 HAVE_WINDOW_SYSTEM conditional.
3897 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3898 HAVE_WINDOW_SYSTEM block.
3899 (try_window_id) [HAVE_GPM || MSDOS]:
3900 Call x_clear_window_mouse_face.
3901 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
3902 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3903 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3904 calling draw_glyphs directly.
3905 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3906 (cursor_in_mouse_face_p, rows_from_pos_range)
3907 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3908 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3909 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3910 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3911 fragments.
3912 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3913 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3914 integer.
3915 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
3916 (x_consider_frame_title, tool_bar_lines_needed):
3917 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
3918 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3919 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3920 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3921 part.
3922
3923 * dispnew.c (mirror_make_current): Set Y coordinate of the
3924 mode-line and header-line rows.
3925 (init_display): Setup initial frame's output_data for text
3926 terminal frames.
3927
3928 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3929 its own definition on msdos.c.
3930
3931 * msdos.c (show_mouse_face, clear_mouse_face)
3932 (fast_find_position, IT_note_mode_line_highlight)
3933 (IT_note_mouse_highlight): Functions deleted.
3934 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3935 instead of IT_note_mouse_highlight.
3936 (draw_row_with_mouse_face, popup_activated): New functions.
3937 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3938 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3939 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3940 where mouse_face_* members were accessed for mouse highlight
3941 purposes.
3942
3943 * msdos.h (initialize_msdos_display): Add prototype.
3944
3945 * frame.h (MOUSE_HL_INFO): New macro.
3946
3947 * lisp.h (Mouse_HLInfo): New data type.
3948
3949 * xterm.h (struct x_display_info):
3950 * w32term.h (struct w32_display_info):
3951 * nsterm.h (struct ns_display_info):
3952 * termchar.h (struct tty_display_info): Use it instead of
3953 mouse_face_* members.
3954
3955 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3956 1st argument.
3957 (frame_to_window_pixel_xy, note_mouse_highlight)
3958 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3959 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3960 HAVE_WINDOW_SYSTEM conditional.
3961 (draw_row_with_mouse_face): Declare prototype.
3962 (tty_draw_row_with_mouse_face): Declare prototype.
3963
3964 2010-11-05 Eli Zaretskii <eliz@gnu.org>
3965
3966 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3967 Remove unused variables.
3968
3969 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3970
3971 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3972 logic pointed out by Eli Zaretskii.
3973
3974 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3975
3976 * coding.c (coding-category-list): Refer to set-coding-system-priority
3977 instead of the obsolete set-coding-priority in the doc string.
3978
3979 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3980
3981 * nsfont.m (nsfont_draw): Correct previous patch to return
3982 correct value.
3983 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3984 don't change the method signature, change the return.
3985
3986 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3987
3988 * nsfont.m (nsfont_draw)
3989 * nsimage.m (EmacsImage-setXBMColor:)
3990 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3991
3992 2010-11-03 Julien Danjou <julien@danjou.info>
3993
3994 * image.c (gif_load): Add support for transparency and specified
3995 :background.
3996
3997 2010-11-01 Kenichi Handa <handa@m17n.org>
3998
3999 * dispextern.h (lookup_glyphless_char_display): Extern it.
4000
4001 * termhooks.h (struct terminal): New member charset_list.
4002
4003 * coding.c (Fset_terminal_coding_system_internal): Set the
4004 `charset_list' member of struct terminal.
4005
4006 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
4007 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4008
4009 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
4010 (lookup_glyphless_char_display): Set it->what at the end.
4011 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4012 (last_glyphless_glyph_merged_face_id): Make them non-static.
4013
4014 * w32term.c (x_draw_glyphless_glyph_string_foreground):
4015 Fix the arg with_background for font->driver->draw.
4016
4017 2010-11-01 Kenichi Handa <handa@m17n.org>
4018
4019 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
4020 Surround chp by parentheses.
4021
4022 2010-11-01 Kenichi Handa <handa@m17n.org>
4023
4024 Implement various display methods for glyphless characters.
4025
4026 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4027 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4028 (Qzero_width): New variables.
4029 (THIN_SPACE_WIDTH): New macro.
4030 (lookup_glyphless_char_display): New function.
4031 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4032 (last_glyphless_glyph_merged_face_id): New variables.
4033 (get_next_display_element): Check glyphless characters.
4034 (redisplay_internal): Initialize last_glyphless_glyph_frame and
4035 last_glyphless_glyph_face_id.
4036 (fill_glyphless_glyph_string): New function.
4037 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4038 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4039 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4040 (x_produce_glyphs): If a suitable font is not found, produce a
4041 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
4042 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4043 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4044 Qzero_width.
4045 (Vglyphless_char_display): Declare it as a Lisp variable.
4046
4047 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
4048 (struct glyph): Change the size of the member "type" to 3.
4049 Add glyphless to the union slice and u.
4050 (enum display_element_type): Add IT_GLYPHLESS.
4051 (enum glyphless_display_method): New enum.
4052 (struct it): New member glyphless_method.
4053 (Vglyphless_char_display): Extern it.
4054
4055 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4056 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4057
4058 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
4059 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4060
4061 * nsterm.m (ns_draw_glyph_string): Handle the case
4062 GLYPHLESS_GLYPH (the detail is not yet implemented).
4063
4064 2010-10-31 Glenn Morris <rgm@gnu.org>
4065
4066 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4067
4068 * frame.c (syms_of_frame) <tool-bar-mode>:
4069 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
4070
4071 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
4072
4073 * xterm.c (x_connection_closed): Print informative error message
4074 when aborting on GTK. This requires using shut_down_emacs
4075 directly instead of Fkill_emacs.
4076
4077 2010-10-29 Eli Zaretskii <eliz@gnu.org>
4078
4079 * emacs.c (main): Call syms_of_filelock unconditionally.
4080
4081 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4082 clause, but keep part of it conditioned on CLASH_DETECTION.
4083
4084 2010-10-29 Glenn Morris <rgm@gnu.org>
4085
4086 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4087 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4088 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4089 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4090 Sync docs between X, W32, NS.
4091
4092 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4093 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4094
4095 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
4096
4097 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4098 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4099
4100 2010-10-26 Eli Zaretskii <eliz@gnu.org>
4101
4102 * cmds.c (internal_self_insert): Don't insert if argument N is
4103 zero or negative. (Bug#7281)
4104
4105 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4106
4107 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4108
4109 2010-10-25 Glenn Morris <rgm@gnu.org>
4110
4111 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4112
4113 2010-10-24 Glenn Morris <rgm@gnu.org>
4114
4115 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4116 (Fx_window_property, Fx_file_dialog):
4117 * xfns.c (Fx_synchronize, Fx_change_window_property)
4118 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4119
4120 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
4121
4122 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4123
4124 2010-10-24 Eli Zaretskii <eliz@gnu.org>
4125
4126 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4127
4128 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4129 Deprecate use as a boolean flag.
4130
4131 2010-10-24 Jim Meyering <jim@meyering.net>
4132
4133 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4134
4135 2010-10-24 Glenn Morris <rgm@gnu.org>
4136
4137 * w16select.c (syms_of_win16select) <selection-coding-system>:
4138 <next-selection-coding-system>:
4139 * w32select.c (syms_of_w32select) <selection-coding-system>:
4140 <next-selection-coding-system>:
4141 Sync docs with select.el.
4142
4143 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4144 Lisp version.
4145
4146 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4147 Sync doc with the xterm.c version.
4148
4149 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4150 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4151
4152 2010-10-23 Glenn Morris <rgm@gnu.org>
4153
4154 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
4155 * frame.c (syms_of_frame) <menu-bar-mode>:
4156 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
4157 <hourglass-delay>: Sync docs with Lisp.
4158
4159 2010-10-23 Eli Zaretskii <eliz@gnu.org>
4160
4161 Implement mouse highlight for bidi-reordered lines.
4162
4163 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4164 (mouse_face_from_string_pos): New function, replaces
4165 fast_find_string_pos.
4166 (note_mouse_highlight): Call it instead of fast_find_string_pos.
4167 (note_mode_line_or_margin_highlight): Support bidi-reordered
4168 strings and R2L glyph rows. Fix comments.
4169 (note_mouse_highlight): When bidi reordering is turned on in a
4170 buffer, call next-single-property-change and
4171 previous-single-property-change with last argument nil.
4172 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
4173 glyph that stands for no text beyond the line end.
4174 (row_containing_pos): Don't return too early when CHARPOS is in a
4175 bidi-reordered continued line. Return immediately when the first
4176 hit is found in a line that is not continued, or when an exact
4177 match for CHARPOS is found.
4178 (rows_from_pos_range): New function.
4179 (mouse_face_from_buffer_pos): Use it instead of calling
4180 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4181 function to support mouse highlight in bidi-reordered lines and
4182 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4183 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4184 that the former is always above the latter or identical to it.
4185 (show_mouse_face): Support drawing highlighted R2L lines.
4186 (coords_in_mouse_face_p): New function, bidi-aware.
4187 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4188 Call it instead of comparing with mouse-face members of dpyinfo.
4189 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4190 usage of hpos and vpos.
4191
4192 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4193
4194 * xrdb.c: Include keyboard.h for MOTIF.
4195
4196 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4197 MOTIF (Bug#7263).
4198
4199 * xfns.c: Include Xm/TextF and Xm/List.
4200 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4201 Make ANSI prototypes.
4202
4203 2010-10-22 Glenn Morris <rgm@gnu.org>
4204
4205 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4206 Remove ccl and duplicate mouse.
4207
4208 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
4209
4210 * insdel.c (prepare_to_modify_buffer): Don't set
4211 saved-region-selection if modification hooks are disabled.
4212
4213 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
4214
4215 * cmds.c (Fdelete_char): Doc fix.
4216
4217 2010-10-19 Ken Brown <kbrown@cornell.edu>
4218
4219 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4220
4221 2010-10-19 Kenichi Handa <handa@m17n.org>
4222
4223 Fix incorrect font metrics when the same font is opened with
4224 different pixelsizes.
4225
4226 * xftfont.c: Include composite.h.
4227 (xftfont_shape): New function.
4228 (syms_of_xftfont): Set xftfont_driver.shape.
4229
4230 2010-10-18 Julien Danjou <julien@danjou.info>
4231
4232 * frame.c (Fframe_pointer_visible_p):
4233 Add `frame-pointer-visible-p' to get the pointer visibility.
4234
4235 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4236
4237 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4238 non-"EAGAIN"-like error to signal to Emacs that the socket should
4239 be closed.
4240
4241 2010-10-15 Eli Zaretskii <eliz@gnu.org>
4242
4243 * unexcoff.c (make_hdr): Fix prototype according to changes in
4244 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4245
4246 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4247
4248 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4249
4250 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4251 made building the X menu fail.
4252 (really-oldXMenu): Fix my previous fix.
4253
4254 2010-10-14 Damyan Pepper <damyanp@gmail.com>
4255
4256 Fix handling of font properties on Windows (bug#6303).
4257 * font.c (font_filter_properties): New function, refactored from
4258 ftfont_filter_properties.
4259 * font.h (font_filter_properties): Declare.
4260 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4261 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4262 (w32font_filter_properties): New function.
4263 (w32font_driver): Add w32font_filter_properties.
4264
4265 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4266
4267 * font.c (Ffont_variation_glyphs):
4268 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4269
4270 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4271
4272 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4273 * w32font.c (w32_generic_family):
4274 * w32inevt.c (key_event):
4275 * w32menu.c (fill_in_menu):
4276 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4277 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4278 * w32term.c (w32_read_socket): Make static.
4279
4280 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4281
4282 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4283 prototypes; all callers changed.
4284
4285 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4286
4287 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4288 (OBJ2): New macro.
4289 (WIN32OBJ, FONTOBJ): Remove.
4290 (OBJ1): Redistribute object files with OBJ2.
4291 (LIBS, $(TEMACS)): Use TLIB2.
4292 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4293 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4294
4295 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4296
4297 * emacs.c (Vdynamic_library_alist)
4298 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4299 Doc fix.
4300
4301 * lisp.h (Vdynamic_library_alist): Declare extern.
4302
4303 * image.c (Vimage_library_alist)
4304 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4305 (lookup_image_type): Use Vdynamic_library_alist.
4306 (Finit_image_library): Doc fix.
4307
4308 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4309
4310 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4311 (lispdir): Remove trailing /, update all uses.
4312
4313 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
4314
4315 * nsterm.m (Qleft): Declare.
4316 (ns_right_alternate_modifier): New variable.
4317 (NSRightAlternateKeyMask): New define.
4318 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4319 ns_right_alternate_modifier isn't Qleft.
4320 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4321 as emacs modifier for NSRightAlternateKeyMask.
4322 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4323
4324 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4325
4326 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4327 gnutls is ready, return EAGAIN as the errno.
4328
4329 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4330
4331 * vm-limit.c:
4332 * unexhp9k800.c:
4333 * unexelf.c:
4334 * unexaix.c:
4335 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4336
4337 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4338 (PROFILING_LDFLAGS): Remove, not needed anymore.
4339
4340 * Makefile.in: Use $(...) everywhere instead of ${...}.
4341 (CRT_DIR): Move near potential user.
4342 (START_FILE): Move near CRT_DIR, it might use it.
4343
4344 * sysdep.c (LPASS8): Remove, unused.
4345 (emacs_ospeed): Change from being a global to a local in the only
4346 user: init_baud_rate.
4347
4348 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4349
4350 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
4351 (emacs_gnutls_write): Remove the debuggin fsync call.
4352 (emacs_gnutls_read): Return -1 if we got an error from
4353 gnutls_read. This allows us to actually read lots of data from
4354 the GnuTLS stream.
4355 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4356 According to the documentation, this is correct, and it seems to
4357 make things work.
4358
4359 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
4360
4361 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4362
4363 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4364
4365 * keyboard.c: Revert last change; it was not intended to be
4366 synchronized with the trunk.
4367
4368 2010-10-08 Kenichi Handa <handa@m17n.org>
4369
4370 * coding.c (complement_process_encoding_system): Fix previous change.
4371
4372 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4373
4374 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4375 (Fdbus_init_bus): ... here. (Bug#7113)
4376
4377 2010-10-08 Glenn Morris <rgm@gnu.org>
4378
4379 * buffer.c (before-change-functions, after-change-functions):
4380 Three-year overdue doc fix following 2007-08-13 change.
4381
4382 2010-10-08 Kenichi Handa <handa@m17n.org>
4383
4384 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4385 eol-format, inherit from the system's default.
4386 (complement_process_encoding_system): Make a new coding system
4387 inherit the original eol-format.
4388
4389 2010-10-08 Kenichi Handa <handa@m17n.org>
4390
4391 * coding.c (complement_process_encoding_system): New function.
4392
4393 * coding.h (complement_process_encoding_system): Extern it.
4394
4395 * callproc.c (Fcall_process): Complement the coding system for
4396 encoding arguments.
4397 (Fcall_process_region): Complement the coding system for encoding
4398 the input to the process.
4399
4400 * process.c (Fstart_process): Complement the coding system for
4401 encoding arguments.
4402 (send_process): Complement the coding system for encoding what
4403 sent to the process.
4404
4405 2010-10-08 Kenichi Handa <handa@m17n.org>
4406
4407 * xfont.c (xfont_open): Fix setting of font->average_width from
4408 :avgwidth property (Bug#7123).
4409
4410 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4411
4412 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4413 is more portable.
4414
4415 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
4416 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
4417 has not defined SIGIO.
4418
4419 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
4420
4421 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4422 draw the outermost line using the black relief, for legibility.
4423 Omit drawing the four corner pixels.
4424
4425 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
4426
4427 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4428 (read_key_sequence): Inline echo_prompt.
4429 (echo_dash): Add a dash only if key is continued (Bug#7137).
4430
4431 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4432
4433 Remove O_RDONLY, O_WRONLY definitions, not needed.
4434 * unexcoff.c:
4435 * lread.c:
4436 * fileio.c:
4437 * doc.c:
4438 * callproc.c:
4439 * alloc.c:
4440 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4441
4442 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4443
4444 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4445
4446 * gnutls.c: Add property list symbol holders.
4447 (emacs_gnutls_handshake): Clarify how sockets are passed to
4448 GnuTLS.
4449 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4450 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4451 and keyfiles to be a list of file names. Default to "NORMAL" for
4452 the priority string. Improve logging.
4453
4454 2010-10-03 Glenn Morris <rgm@gnu.org>
4455
4456 * fileio.c (Vdirectory_sep_char): Remove.
4457
4458 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4459
4460 * termhooks.h: Remove #ifdef CONSP.
4461
4462 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4463
4464 Include <fcntl.h> unconditionally.
4465 * termcap.c:
4466 * sysdep.c:
4467 * lread.c:
4468 * keyboard.c:
4469 * filelock.c:
4470 * fileio.c:
4471 * doc.c:
4472 * callproc.c:
4473 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4474 does it.
4475
4476 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4477
4478 * sysdep.c (flush_pending_output): Remove code, does not do
4479 anything on any platform.
4480
4481 Remove unused code.
4482 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4483 Remove select emulation, all systems support select.
4484 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4485 * process.c (create_process): Remove #if 0 code.
4486
4487 Remove unused arguments for unexec.
4488 The third one is never used, and the last two are always passed as zero.
4489 * emacs.c (unexec): Add declaration.
4490 (Fdump_emacs): Only pass the first two arguments to unexec.
4491 Simplify #ifdef.
4492 * unexw32.c (unexec):
4493 * unexsol.c (unexec):
4494 * unexhp9k800.c (unexec):
4495 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4496 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4497 (find_section): Use const.
4498 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4499 (unexec_error): Declare it NO_RETURN.
4500 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4501 it as an argument, remove data_start and entry_address arguments, unused.
4502 (unexec): Remove bss_start, data_start and
4503 entry_address arguments.
4504 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4505 it as an argument, remove data_start and entry_address arguments, unused.
4506 (unexec): Remove bss_start, data_start and
4507 entry_address arguments.
4508
4509 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
4510
4511 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4512
4513 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4514 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4515 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4516 Fix typos in docstrings.
4517 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4518 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4519
4520 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
4521
4522 * keyboard.c (command_loop_1): Make sure the mark is really alive
4523 before using it (Bug#7044).
4524
4525 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
4526
4527 * makefile.w32-in (tags): Rename target to full-tags.
4528
4529 2010-10-02 Eli Zaretskii <eliz@gnu.org>
4530
4531 * emacs.c (main): Remove !WINDOWSNT conditional.
4532 (Fkill_emacs): Don't mention exemption on MS-Windows.
4533
4534 2010-10-02 Glenn Morris <rgm@gnu.org>
4535
4536 * character.c (Fchar_bytes): Remove obsolete function.
4537 (syms_of_character): Remove Schar_bytes.
4538
4539 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4540 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4541 in batch-mode.
4542 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4543 (kill-emacs-hook): Doc fix.
4544
4545 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4546
4547 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4548 (parse_region): Rework to take regions instead of strings, and
4549 renamed to reflect that these are the libxml functions.
4550
4551 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4552
4553 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4554 screen dimensions in tty->Wcm.
4555
4556 * xdisp.c (set_cursor_from_row): When the row is truncated and
4557 point is outside the range of displayed characters, position the
4558 cursor inside the scroll margin. (Bug#6349)
4559
4560 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4561
4562 Do not include stdlib.h and string.h, config.h does it.
4563 * xfont.c:
4564 * w32term.c:
4565 * w32reg.c:
4566 * w32inevt.c:
4567 * w32heap.c:
4568 * w32console.c:
4569 * w16select.c:
4570 * unexsol.c:
4571 * term.c:
4572 * sound.c:
4573 * scroll.c (m):
4574 * gtkutil.c:
4575 * font.c:
4576 * filelock.c:
4577 * fileio.c:
4578 * dosfns.c:
4579 * dbusbind.c:
4580 * bidi.c:
4581 * callproc.c:
4582 * process.c:
4583 * msdos.c:
4584 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4585
4586 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4587 defines it.
4588
4589 * process.c: Move #include <pty.h> earlier.
4590 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4591 (pty_name): Move definition later.
4592
4593 * nsselect.m (syms_of_nsselect):
4594 * nsmenu.m (syms_of_nsmenu):
4595 * nsfns.m (syms_of_nsfns):
4596 * msdos.c (syms_of_msdos):
4597
4598 * image.c (syms_of_image):
4599 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4600
4601 * point.h: Remove, unused.
4602
4603 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4604
4605 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4606 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4607 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4608
4609 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4610
4611 * xml.c (parse_string): Use const.
4612
4613 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4614
4615 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4616 Also only override Vprint_level if it isn't already bound, and increase
4617 the level to 8 to produce more useful backtraces for bug reports.
4618
4619 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4620
4621 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4622
4623 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
4624
4625 * w32console.c (vga_stdcolor_name): Remove unused function;
4626 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4627
4628 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4629
4630 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4631 (Fgnutls_boot): Start the handshake.
4632 (emacs_gnutls_read): Perform the handshake from the reader loop.
4633 (Fgnutls_boot): Remove some debugging messages.
4634 Change indentation throughout to use the Emacs style.
4635 (emacs_gnutls_handshake): Cast the fds to something that's
4636 possibly the expected length.
4637 (emacs_gnutls_write): Return -1 if we try to write before handshake.
4638
4639 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4640
4641 * process.c (make_process): Set the gnutls_p field to zero by
4642 default.
4643 (read_process_output): Always call the gnutls_read function if the
4644 stream is a gnutls stream.
4645 (send_process): Ditto for writes.
4646
4647 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4648 or write anything until the state is GNUTLS_STAGE_READY.
4649 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4650
4651 2010-09-29 Eli Zaretskii <eliz@gnu.org>
4652
4653 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4654 NEUTRAL_DIR.
4655 (handle_invisible_prop, iterate_out_of_display_property)
4656 (next_element_from_buffer): If bidi_it.first_elt is set, call
4657 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4658 (Bug#7128)
4659
4660 * print.c (print_object): Fix format string and argument types for
4661 printing a Lisp_Misc_Marker.
4662
4663 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4664 (load_overlay_strings, get_overlay_strings_1)
4665 (get_overlay_strings, forward_to_next_line_start)
4666 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4667 (get_next_display_element, next_element_from_string)
4668 (next_element_from_c_string, next_element_from_buffer)
4669 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4670 (message_dolog, message_log_check_duplicate, message2_nolog)
4671 (message3, message3_nolog, vmessage, set_message, set_message_1)
4672 (hscroll_window_tree, text_outside_line_unchanged_p)
4673 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4674 (find_last_unchanged_at_beg_row)
4675 (find_first_unchanged_at_end_row, row_containing_pos)
4676 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
4677 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4678 Use EMACS_INT for buffer and string positions.
4679
4680 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4681 (row_containing_pos): Adjust prototype.
4682
4683 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4684 (message2_nolog, set_message): Adjust prototypes.
4685
4686 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4687
4688 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4689 (Fgnutls_boot): Use SDATA.
4690 (Fgnutls_handshake): Remove unused var `max_log_level'.
4691
4692 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4693
4694 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
4695 (Bug#7113)
4696
4697 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4698
4699 * xgselect.c (xg_select): Clear file descriptors not set from
4700 rfds and wfds.
4701
4702 * process.c (wait_reading_process_output): Add missing FD_CLR
4703 for write_mask (must mirror connect_wait_mask).
4704
4705 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4706
4707 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4708 prefix.
4709 (Fgnutls_boot): Use changed process members. Use log level with a
4710 function parameter to set it. Bring back Emacs-level debugging
4711 messages at log level 1 and 2.
4712
4713 * process.c (make_process): Initialize gnutls_log_level.
4714
4715 * process.h: Add gnutls_log_level and rename x509_cred and
4716 anon_cred to have the gnutls_ prefix for consistency.
4717
4718 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4719
4720 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
4721
4722 * w32.c (g_b_init_get_sid_identifier_authority)
4723 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4724 Remove, not used.
4725 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4726 (init_winsock): Remove useless assignment.
4727 (open_process_token, get_token_information, lookup_account_sid)
4728 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4729 (get_security_descriptor_owner, get_security_descriptor_group)
4730 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4731 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4732 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4733 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4734 (unc_volume_file_attributes, convert_from_time_t)
4735 (create_toolhelp32_snapshot, process32_first, process32_next)
4736 (open_thread_token, impersonate_self, revert_to_self)
4737 (get_process_memory_info, get_process_working_set_size)
4738 (global_memory_status, global_memory_status_ex, socket_to_fd)
4739 (shutdown_handler): Make static.
4740
4741 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4742
4743 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4744 (xd_pending_messages): Functions removed.
4745 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4746 order to be compatible with add_read_fd. Determine bus from data,
4747 and call xd_read_message just for this bus.
4748 (xd_add_watch): Use xd_read_queued_messages as callback function.
4749 Add data.
4750
4751 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4752
4753 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4754
4755 * gnutls.c (gnutls_log_function): Add more debugging.
4756 (emacs_gnutls_read): Don't infloop while reading.
4757
4758 2010-09-27 Kenichi Handa <handa@m17n.org>
4759
4760 These changes are to remove restriction on the number of glyphs in
4761 one composition.
4762
4763 * dispextern.h (struct glyph): Change the member "slice" to union.
4764 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
4765 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4766
4767 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4768 instead of glyph->slice.
4769 (marginal_area_string): Likewise.
4770
4771 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4772 glyph->u.cmp.
4773 (append_composite_glyph): Likewise.
4774
4775 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4776 glyph->u.cmp.
4777 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4778 (append_composite_glyph): Likewise.
4779 (fill_image_glyph_string): Use glyph->slice.img instead of
4780 glyph->slice.
4781 (append_glyph, produce_image_glyph, append_stretch_glyph)
4782 (note_mouse_highlight): Likewise.
4783
4784 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4785
4786 * process.c (add_keyboard_wait_descriptor)
4787 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
4788 (wait_reading_process_output): Don't pass write_mask to select
4789 if SELECT_CANT_DO_WRITE_MASK is defined.
4790 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
4791
4792 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4793 (delete_write_fd): Declare.
4794
4795 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4796 (write_mask): New variable.
4797 (max_input_desc): Rename from max_keyboard_desc.
4798 (fd_callback_info): New variable.
4799 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4800 New functions.
4801 (Fmake_network_process): FD_SET write_mask.
4802 (deactivate_process): FD_CLR write_mask.
4803 (wait_reading_process_output): Connecting renamed to Writeok.
4804 check_connect removed. check_write is new. Remove references to gpm.
4805 Use Writeok/check_write unconditionally (i.e. no #ifdef
4806 NON_BLOCKING_CONNECT) instead of Connecting.
4807 Loop over file descriptors and call callbacks in fd_callback_info
4808 if file descriptor is ready for I/O.
4809 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4810 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4811 (keyboard_bit_set): Use max_input_desc.
4812 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4813 Remove #ifdef subprocesses. Use max_input_desc.
4814 (init_process): Initialize write_mask and fd_callback_info.
4815
4816 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4817
4818 * dbusbind.c: Include process.h.
4819 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4820 (xd_read_message_1): New functions.
4821 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4822 Handle watch for both read and write.
4823 (Fdbus_init_bus): Also register xd_toggle_watch.
4824 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4825 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4826 to dbus_connection_flush.
4827 (xd_read_message): Move most of the code to xd_read_message_1.
4828 Call xd_read_message_1 until status is COMPLETE.
4829
4830 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4831
4832 * term.c: Do not include sys/ioctl.h, not needed.
4833 (init_tty): Reorder code to reduce the number of #ifdefs.
4834 No code changes.
4835
4836 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4837
4838 * process.h: Set up GnuTLS support.
4839
4840 * process.c (make_process, Fstart_process)
4841 (read_process_output, send_process): Set up GnuTLS support for
4842 process input/output file descriptors.
4843
4844 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4845
4846 * gnutls.c: The source code for GnuTLS support in Emacs.
4847
4848 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4849
4850 * config.in: Set up GnuTLS support.
4851
4852 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4853 (obj, LIBES): Set up GnuTLS support.
4854
4855 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
4856
4857 * w32.c (get_emacs_configuration_options): Fix previous change.
4858
4859 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
4860
4861 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4862 alive before using it (Bug#6977).
4863
4864 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4865
4866 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4867
4868 * dispextern.h: EMACS_INT/int fixup.
4869
4870 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4871 fixup.
4872
4873 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4874
4875 2010-09-25 Eli Zaretskii <eliz@gnu.org>
4876
4877 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4878 (Fselect_window, window_scroll_pixel_based)
4879 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4880 Use EMACS_INT for buffer positions.
4881
4882 * textprop.c (validate_interval_range, interval_of)
4883 (property_change_between_p, Fadd_text_properties)
4884 (set_text_properties_1, Fremove_text_properties)
4885 (Fremove_list_of_text_properties, Ftext_property_any)
4886 (Ftext_property_not_all, copy_text_properties)
4887 (text_property_list, extend_property_ranges)
4888 (verify_interval_modification): Use EMACS_INT for buffer
4889 positions.
4890
4891 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4892 for buffer positions.
4893
4894 * process.c (read_process_output, send_process)
4895 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4896 and string positions and size.
4897
4898 * print.c (print_object, print_string, strout): Use EMACS_INT for
4899 string indices.
4900
4901 * minibuf.c (string_to_object): Use EMACS_INT for string position
4902 and size.
4903
4904 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4905
4906 * lread.c <read_from_string_index, read_from_string_index_byte>
4907 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4908 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4909 buffer positions and string length.
4910
4911 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4912 EMACS_INT.
4913 (echo_truncate, adjust_point_for_property, read_char)
4914 (gen_help_event, make_lispy_event, modify_event_symbol)
4915 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4916 for buffer positions and string length.
4917
4918 * keyboard.h (gen_help_event): Adjust prototype.
4919
4920 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4921
4922 * commands.h <last_point_position>: Declare EMACS_INT.
4923
4924 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4925 (truncate_echo_area): Accept EMACS_INT argument.
4926
4927 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4928
4929 * lisp.h (truncate_echo_area): Adjust prototype.
4930
4931 * composite.c (composition_adjust_point): Return EMACS_INT.
4932
4933 * composite.h (composition_adjust_point): Adjust prototype.
4934
4935 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
4936
4937 * process.c (Fmake_network_process): When arg :host is 'local,
4938 use address 127.0.0.1, not name "localhost". (Bug#6781)
4939
4940 2010-09-24 Eli Zaretskii <eliz@gnu.org>
4941
4942 * indent.c (Fcurrent_indentation, indented_beyond_p)
4943 (compute_motion): Use EMACS_INT for buffer position variables.
4944
4945 * lisp.h (indented_beyond_p): Adjust prototype.
4946
4947 * buffer.c (overlay_strings): Return EMACS_INT.
4948
4949 * buffer.h (overlay_strings): Adjust prototype.
4950
4951 * region-cache.c (pp_cache): Adjust format to arguments.
4952
4953 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4954 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4955 (verror): Use EMACS_INT for size of allocated buffer.
4956
4957 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4958 positions.
4959
4960 * xdisp.c (redisplay_internal, try_window_id)
4961 (set_cursor_from_row, find_first_unchanged_at_end_row):
4962 Use EMACS_INT for buffer positions.
4963
4964 * dispextern.h (set_cursor_from_row): Adjust prototype.
4965
4966 * dispnew.c (increment_matrix_positions)
4967 (increment_row_positions, copy_glyph_row_contents)
4968 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4969 positions.
4970
4971 * dispextern.h (mode_line_string, marginal_area_string)
4972 (increment_matrix_positions, increment_row_positions):
4973 Adjust prototypes.
4974
4975 * data.c (Faref, Faset): Use EMACS_INT for string length and
4976 positions.
4977
4978 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4979 characters to insert.
4980
4981 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4982 position and size.
4983
4984 * syntax.c (scan_words, update_syntax_table)
4985 (prev_char_comend_first, back_comment, skip_chars)
4986 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4987 Use EMACS_INT for buffer and string positions.
4988
4989 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4990
4991 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4992 positions.
4993
4994 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4995
4996 * scroll.c (calculate_scrolling, line_ins_del)
4997 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4998 conversion.
4999
5000 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
5001 (region_cache_backward, region_cache_forward)
5002 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
5003 conversion.
5004
5005 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5006
5007 * eval.c (verror): Fix EMACS_INT/int conversion.
5008
5009 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
5010 (print_preprocess, print_check_string_charset_prop)
5011 (print_object): Fix EMACS_INT/int conversion.
5012
5013 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5014
5015 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5016
5017 * callproc.c (Fcall_process): Use EMACS_INT for count of
5018 characters read from the subprocess.
5019
5020 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
5021 positions.
5022 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5023 positions.
5024
5025 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5026 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5027 length.
5028 (advance_to_char_boundary, Fset_buffer_multibyte)
5029 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5030 (overlay_touches_p, record_overlay_string, overlay_strings)
5031 (recenter_overlay_lists, fix_start_end_in_overlays)
5032 (modify_overlay, Fmove_overlay, report_overlay_modification)
5033 (evaporate_overlays): Use EMACS_INT for buffer positions.
5034
5035 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5036 Adjust prototypes.
5037
5038 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5039 positions.
5040
5041 * fns.c (Fcompare_strings, Fstring_lessp, concat)
5042 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5043 (Fsubstring_no_properties, substring_both, Ffillarray)
5044 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5045 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5046 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5047 (Fmd5): Use EMACS_INT for buffer and string positions and length
5048 variables and arguments.
5049
5050 * lisp.h (substring_both): Adjust prototype.
5051
5052 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
5053
5054 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5055 * w32fns.c (clipboard_sequence_fn): Don't declare.
5056 (globals_of_w32fns): Don't initialize it.
5057
5058 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
5059
5060 * syntax.c (back_comment): Detect the case where a 1-char comment
5061 starter is also the 2nd char of a 2-char comment ender.
5062
5063 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
5064
5065 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5066
5067 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5068
5069 * eval.c (verror): EMACS_INT/int cleanup.
5070
5071 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5072 unwind_protect more than 2GB worth of functions.
5073
5074 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5075
5076 * lisp.h: Have oblookup take EMACS_INT to allow interning big
5077 string and avoid compiler warnings.
5078 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5079 all users.
5080
5081 * lread.c (oblookup): EMACS_INT/int cleanup.
5082
5083 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5084
5085 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5086
5087 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5088
5089 * lisp.h (clip_to_bounds): Adjust prototype.
5090
5091 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5092
5093 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5094
5095 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5096
5097 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5098
5099 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5100 cleanup.
5101
5102 * lisp.h: Change the definition of all marker.c functions that
5103 take and return buffer stuff to be EMACS_INT instead of int.
5104
5105 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5106 (buf_charpos_to_bytepos, bytepos_to_charpos)
5107 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5108 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5109 for all buffer positions.
5110
5111 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
5112
5113 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5114 (split_interval_right, find_interval, next_interval)
5115 (delete_node, delete_interval, interval_deletion_adjustment)
5116 (adjust_intervals_for_deletion, merge_interval_right)
5117 (merge_interval_left, graft_intervals_into_buffer)
5118 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5119
5120 * intervals.h (traverse_intervals): Update prototype.
5121
5122 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5123
5124 * indent.c (compute_motion): Use EMACS_INT for arguments to
5125 region_cache_forward.
5126
5127 * region-cache.c (struct boundary, struct region_cache):
5128 Use EMACS_INT for positions.
5129 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5130 (delete_cache_boundaries, set_cache_region)
5131 (invalidate_region_cache, know_region_cache)
5132 (region_cache_forward, region_cache_backward, pp_cache):
5133 Use EMACS_INT for buffer positions.
5134
5135 * region-cache.h (know_region_cache, invalidate_region_cache)
5136 (region_cache_forward, region_cache_backward): Adjust prototypes.
5137
5138 * search.c (string_match_1, fast_c_string_match_ignore_case)
5139 (looking_at_1, scan_buffer, scan_newline)
5140 (find_next_newline_no_quit, find_before_next_newline)
5141 (search_command, trivial_regexp_p, search_buffer, simple_search)
5142 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5143 and string positions and length.
5144
5145 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5146 (find_before_next_newline): Adjust prototypes.
5147
5148 * editfns.c (transpose_markers, update_buffer_properties)
5149 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5150 (get_pos_property, Fconstrain_to_field)
5151 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5152 (Fchar_after, Fchar_before, Finsert_char)
5153 (Finsert_buffer_substring, Fcompare_buffer_substrings)
5154 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5155 Use EMACS_INT for buffer and string position variables.
5156 (Finsert_char): Protect against too large insertions.
5157
5158 * lisp.h (clip_to_bounds): Adjust prototype.
5159
5160 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5161 (balance_an_interval, split_interval_right, split_interval_left)
5162 (find_interval, next_interval, update_interval)
5163 (adjust_intervals_for_insertion, delete_node, delete_interval)
5164 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5165 (offset_intervals, merge_interval_right, merge_interval_left)
5166 (graft_intervals_into_buffer, adjust_for_invis_intang)
5167 (move_if_not_intangible, get_local_map, copy_intervals)
5168 (copy_intervals_to_string, compare_string_intervals)
5169 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
5170 and for interval tree size.
5171
5172 * intervals.h (traverse_intervals, split_interval_right)
5173 (split_interval_left, find_interval, offset_intervals)
5174 (graft_intervals_into_buffer, copy_intervals)
5175 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5176 (update_interval): Adjust prototypes.
5177
5178 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5179 Use EMACS_INT for buffer position variables and arguments.
5180
5181 * composite.c (get_composition_id, find_composition)
5182 (run_composition_function, compose_text)
5183 (composition_gstring_width, autocmp_chars)
5184 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5185 for buffer positions and string length variables and arguments.
5186
5187 * composite.h (get_composition_id, find_composition, compose_text)
5188 (composition_gstring_width): Adjust prototypes.
5189
5190 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5191
5192 * xdisp.c (store_mode_line_noprop, display_mode_element):
5193 Use EMACS_INT for string positions.
5194
5195 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5196 position arguments.
5197
5198 * intervals.h (get_property_and_range): Adjust prototype.
5199
5200 * character.c (parse_str_as_multibyte, str_as_multibyte)
5201 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5202 (string_count_byte8, string_escape_byte8, c_string_width)
5203 (strwidth, lisp_string_width, multibyte_chars_in_text):
5204 Use EMACS_INT for string length variables and arguments.
5205
5206 * character.h (parse_str_as_multibyte, str_as_multibyte)
5207 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5208 (c_string_width, strwidth, lisp_string_width):
5209 Adjust prototypes.
5210
5211 * font.c (font_intern_prop): Use EMACS_INT for string length
5212 variables.
5213
5214 * font.c (font_intern_prop): Use EMACS_INT for string length
5215 variables.
5216
5217 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5218 variables.
5219
5220 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5221 (Fmake_string): Protect against too large strings.
5222 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5223 (live_misc_p): Use ptrdiff_t instead of int for pointer
5224 differences.
5225 (string_bytes, check_sblock, check_string_free_list)
5226 (allocate_string_data, compact_small_strings, Fmake_string)
5227 (Fmake_bool_vector, make_string, make_unibyte_string)
5228 (make_multibyte_string, make_string_from_bytes)
5229 (make_specified_string_string, Fmake_list, Fmake_vector):
5230 Use EMACS_INT for string length variables and arguments.
5231 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5232 (Fpurecopy): Use EMACS_INT for string size.
5233 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5234 for vector size.
5235
5236 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5237 (make_string_from_bytes, make_specified_string_string)
5238 (make_pure_string, string_bytes, check_point_in_composition):
5239 Adjust prototypes.
5240
5241 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5242
5243 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5244 (check_translation): Use EMACS_INT for buffer positions and
5245 length.
5246
5247 * undo.c (record_marker_adjustment, record_delete)
5248 (record_change, record_point, record_insert)
5249 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5250 buffer positions.
5251
5252 * lisp.h (record_marker_adjustment, record_delete)
5253 (record_change, record_point, record_insert)
5254 (record_property_change, Fprimitive_undo): Adjust prototypes.
5255
5256 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
5257 Eli Zaretskii <eliz@gnu.org>
5258
5259 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5260
5261 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5262
5263 * minibuf.c (Fminibuffer_contents)
5264 (Fminibuffer_contents_no_properties)
5265 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5266 positions.
5267
5268 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5269 mark.
5270
5271 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5272 (allocate_string_data): Accept EMACS_INT for string length.
5273
5274 * editfns.c (Ffield_string, Ffield_string_no_properties)
5275 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5276 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5277 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5278 (Ffield_end): Use EMACS_INT for buffer positions.
5279
5280 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5281 point with mark.
5282
5283 * lisp.h (allocate_string_data, make_uninit_string)
5284 (make_uninit_multibyte_string, make_buffer_string)
5285 (make_buffer_string_both): Adjust prototypes.
5286
5287 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
5288
5289 * xml.c: Switch to GNU indentation.
5290 (make_dom): Change parse tree format to match xml.el.
5291 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5292 (Fxml_parse_string_internal): Rename from xml-parse-string.
5293
5294 2010-09-22 Kenichi Handa <handa@m17n.org>
5295
5296 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5297 only if we are not at a composition.
5298 (set_iterator_to_next): Give it->end_charpos to
5299 composition_compute_stop_pos.
5300 (set_iterator_to_next, next_element_from_buffer): Likewise.
5301
5302 * dispnew.c (buffer_posn_from_coords): Fix position when the
5303 current display element is a grapheme cluster in bidi-reordered
5304 region.
5305
5306 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5307
5308 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5309 the regions may overlap.
5310
5311 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
5312
5313 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5314
5315 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5316
5317 * emacs.c: Do not include sys/ioctl.h, not needed.
5318
5319 * doprnt.c: Do not include stdlib.h, config.h does it.
5320 Move #include before macro definition.
5321
5322 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5323
5324 * Makefile.in (temacs): Link using $(CC) not $(LD).
5325 (LD_FIRSTFLAG): Define using autoconf.
5326 (LD): Remove.
5327
5328 Remove HAVE_TERMIOS definitions.
5329 * s/usg5-4-common.h (HAVE_TERMIOS):
5330 * s/template.h (HAVE_TERMIOS):
5331 * s/gnu-linux.h (HAVE_TERMIOS):
5332 * s/darwin.h (HAVE_TERMIOS):
5333 * s/cygwin.h (HAVE_TERMIOS):
5334 * s/bsd-common.h (HAVE_TERMIOS):
5335 * s/aix4-2.h (HAVE_TERMIOS):
5336 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5337 defined on all non-MS platforms.
5338 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5339
5340 * xterm.c (xt_action_hook): Use const.
5341
5342 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
5343
5344 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5345 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5346 (gethostname) [!HAVE_SOCKETS]: Remove.
5347 (SOCK_REPLACE_HANDLE): Remove macro.
5348 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5349 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5350 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5351 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5352
5353 2010-09-18 Eli Zaretskii <eliz@gnu.org>
5354
5355 * deps.mk (xml.o): Add dependencies.
5356
5357 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5358 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
5359
5360 * bidi.c (bidi_paragraph_init): Accept an additional argument
5361 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5362 search back until a paragraph with a strong directional character
5363 is found, and use that to determine paragraph's base direction.
5364
5365 * dispextern.h (bidi_paragraph_init): Update prototype.
5366
5367 2010-09-17 Eli Zaretskii <eliz@gnu.org>
5368
5369 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5370 of w32api >= 3.15. (Bug#6989)
5371
5372 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5373
5374 * process.c (wait_reading_process_output): Don't message about
5375 accept-process-output unless the time limit really is zero.
5376
5377 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5378
5379 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5380 int/Lisp_Object mixup).
5381
5382 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5383
5384 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5385 not HELP.
5386
5387 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
5388
5389 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5390 bar's pixel width to Lisp (Bug#7048).
5391
5392 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5393
5394 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5395
5396 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5397
5398 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5399 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5400
5401 2010-09-17 Kenichi Handa <handa@m17n.org>
5402
5403 * ftfont.c (ftfont_check_otf): Fix previous change.
5404
5405 2010-09-14 Kenichi Handa <handa@m17n.org>
5406
5407 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5408 existence of GSUB or GPOS.
5409
5410 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5411
5412 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5413
5414 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5415
5416 * xml.c (parse_buffer): Rename to parse_string(), since that's
5417 what it does.
5418 (parse_string): Return nil when the document can't be parsed.
5419
5420 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5421
5422 * xterm.c (get_current_vm_state): New function.
5423 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5424 want_fullscreen so set_wm_state calls are few (Bug#7013).
5425 (x_handle_net_wm_state): Move code to get_current_vm_state and
5426 call that function.
5427
5428 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
5429
5430 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5431
5432 2010-09-14 Kenichi Handa <handa@m17n.org>
5433
5434 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5435 we may use designation or locking-shift.
5436
5437 2010-09-14 Kenichi Handa <handa@m17n.org>
5438
5439 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5440 sequence when the source is multibyte.
5441
5442 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5443
5444 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5445 Don't make first argument optional. Doc fix.
5446
5447 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5448
5449 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5450 parameters for the doc string.
5451
5452 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5453
5454 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5455
5456 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5457
5458 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5459 (syms_of_fns): Don't defsubr Sy_or_n_p.
5460 * lisp.h: Don't declare Fy_or_n_p.
5461 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5462
5463 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5464
5465 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5466
5467 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5468
5469 * xml.c: New file.
5470 (Fhtml_parse_buffer): New function to interface to the libxml2
5471 html parsing function.
5472
5473 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
5474
5475 * biditype.h: Regenerate.
5476
5477 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5478
5479 * nsimage.m (ns_load_image): Check argument types.
5480
5481 * image.c: Remove all uses of gcpro.
5482 (xpm_load): Check all lisp types.
5483 (pbm_load): Likewise.
5484 (png_load): Likewise.
5485 (jpeg_load): Likewise.
5486 (tiff_load): Likewise.
5487 (gif_load): Likewise.
5488 (imagemagick_load_image): Likewise.
5489 (imagemagick_load): Likewise.
5490 (svg_load): Likewise.
5491 (gs_load): Likewise.
5492
5493 2010-09-04 Eli Zaretskii <eliz@gnu.org>
5494
5495 * w32uniscribe.c (uniscribe_shape): Update commentary.
5496 Don't try to reorder grapheme clusters, since LGSTRING should always
5497 hold them in the logical order.
5498 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5499 return glyph codes in the logical order.
5500
5501 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5502
5503 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5504 (imagemagick_load_image): Fix type mismatch.
5505 (Fimagemagick_types): Likewise. Doc fix.
5506
5507 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5508
5509 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5510
5511 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5512
5513 * xselect.c: Remove declaration of cut-buffer objects and functions.
5514 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5515 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5516 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5517 (Fx_rotate_cut_buffers_internal): Remove.
5518 (syms_of_xselect): Remove defsubr of above.
5519 Remove intern of QCUT_BUFFERn.
5520
5521 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5522
5523 * cmds.c (Vblink_paren_function): Remove.
5524 (internal_self_insert): Make it insert N chars at a time.
5525 Don't call blink-paren-function.
5526 (Fself_insert_command): Adjust accordingly.
5527 (syms_of_cmds): Don't declare blink-paren-function.
5528
5529 2010-08-31 Kenichi Handa <handa@m17n.org>
5530
5531 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5532 characters.
5533
5534 * term.c (encode_terminal_code): Fix the previous change.
5535 (produce_glyphs): Don't set it->char_to_display here.
5536 Don't handle unibyte-display-via-language-environment here.
5537 (produce_special_glyphs): Set temp_it.char_to_display before
5538 calling produce_glyphs.
5539
5540 * xdisp.c (get_next_display_element): Set it->char_to_display
5541 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5542 characters.
5543 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5544 calling PRODUCE_GLYPHS.
5545 (append_space_for_newline): Save and store it->char_to_display.
5546 Set it->char_to_display before calling PRODUCE_GLYPHS.
5547 (extend_face_to_end_of_line): Set it->char_to_display before
5548 calling PRODUCE_GLYPHS.
5549 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5550 character to its byte value.
5551 (get_char_glyph_code): New function.
5552 (produce_stretch_glyph): Set it2.char_to_display too before
5553 calling x_produce_glyphs.
5554 (x_produce_glyphs): Simplify by using the same code for ASCII and
5555 non-ASCII characters. Don't set it->char_to_display here.
5556 Don't handle unibyte-display-via-language-environment here. For a
5557 character of no glyph, use font->space_width instead of FONT_WIDTH.
5558
5559 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5560
5561 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5562
5563 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
5564
5565 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5566
5567 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5568
5569 * marker.c (Fcopy_marker): Make the first arg optional.
5570
5571 2010-08-30 Kenichi Handa <handa@m17n.org>
5572
5573 * composite.c (composition_update_it): Fix computing of
5574 cmp_it->width.
5575
5576 2010-08-29 Kenichi Handa <handa@m17n.org>
5577
5578 * term.c (encode_terminal_code): Encode byte chars to the
5579 corresponding bytes.
5580
5581 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5582
5583 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5584
5585 2010-08-26 Kenichi Handa <handa@m17n.org>
5586
5587 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5588 on calling composition_compute_stop_pos.
5589
5590 2010-08-25 Kenichi Handa <handa@m17n.org>
5591
5592 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5593 :otf.
5594
5595 * composite.c (composition_compute_stop_pos): Don't break
5596 composition at PT.
5597 (composition_reseat_it): Likewise. Fix calculation of character
5598 position starting a composition.
5599 (Fcomposition_get_gstring): Don't limit the number of components
5600 for automatic composition.
5601
5602 2010-08-25 Kenichi Handa <handa@m17n.org>
5603
5604 * composite.c (composition_compute_stop_pos): In forward search,
5605 pay attention to the possibility that some character after ENDPOS
5606 will be composed with charactrs before ENDPOS.
5607
5608 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
5609
5610 * keyboard.c (command_loop_1): Don't clobber primary selection
5611 during handle-switch-frame (Bug#6872).
5612
5613 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
5614
5615 * dbusbind.c: Accept UNIX domain sockets as bus address.
5616 (Fdbus_close_bus): New function.
5617 (Vdbus_registered_buses): New variable.
5618 (xd_initialize): Implement string as bus address.
5619 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5620 (Fdbus_get_unique_name, Fdbus_call_method)
5621 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5622 (Fdbus_method_error_internal, Fdbus_send_signal)
5623 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5624 check. This is done in xd_initialize_bus. Adapt doc string, if
5625 necessary.
5626 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5627 Vdbus_registered_buses.
5628 (Vdbus_registered_objects_table): Create hash.
5629
5630 2010-08-22 Juri Linkov <juri@jurta.org>
5631
5632 * keyboard.c (Fexecute_extended_command): Move reading a command name
5633 with `completing-read' to a new Elisp function `read-extended-command'.
5634 Call it to read a command to `function' (bug#5364, bug#5214).
5635
5636 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5637
5638 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5639
5640 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
5641
5642 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5643 instead of SAFE_ALLOCA.
5644
5645 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5646
5647 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5648 (Bug#6214).
5649
5650 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5651
5652 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5653
5654 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5655
5656 * doc.c (Fsnarf_documentation): Initialize skip_file before
5657 build-files test.
5658
5659 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
5660
5661 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5662 New definitions.
5663 (HAVE_TERMIO): Remove.
5664
5665 2010-08-22 Eli Zaretskii <eliz@gnu.org>
5666
5667 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5668
5669 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5670 for w32.
5671
5672 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5673 it's done in nt/config.nt.
5674
5675 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5676
5677 * unexcoff.c (report_error, make_hdr, write_segment)
5678 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5679 Convert argument lists and prototypes to ANSI C.
5680 (make_hdr, write_segment): Remove unused variables.
5681 (unexec): Remove commented-out line. Initialize `new' to shut up
5682 compiler warnings.
5683
5684 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5685
5686 Simplify termio code.
5687 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5688 HAVE_TERMIO code is obsolete.
5689 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5690 * systty.h: Do not define HAVE_TCATTR.
5691 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5692 Do not define EMACS_HAVE_TTY_PGRP. Only define
5693 EMACS_GET_TTY_PGRP for !DOS_NT.
5694 * sysdep.c: Include sysselect.h unconditionally. Do not include
5695 sys/ioctl.h and termios.h, systty.h does it.
5696 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
5697 (init_baud_rate): Remove HAVE_TERMIO code.
5698 (child_setup_tty): Remove HAVE_TERMIO code.
5699 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5700 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5701 (new_ltchars, new_tchars): Remove, unused.
5702 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
5703 code. Remove special casing for __mips__, it was a no-op.
5704 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
5705 (init_sys_modes): Remove HPUX special case.
5706 * process.c: Include stdlib.h unconditionally. Do not include
5707 fcntl.h, systty.h does it. Remove conditional code for
5708 HAVE_SERIAL, it is always true.
5709 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5710 always true when SIGNALS_VIA_CHARACTERS is true.
5711 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5712 !WINDOWSNT means HAVE_TERMIOS.
5713 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5714 conditional, which is true for all HAVE_TERMIOS systems.
5715 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5716 instead of HAVE_TERMIOS.
5717 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5718 EMACS_HAVE_TTY_PGRP.
5719 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5720 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5721 anyway.
5722
5723 2010-08-21 Eli Zaretskii <eliz@gnu.org>
5724
5725 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5726 mirroring pixel positions.
5727
5728 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5729
5730 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5731 write only.
5732 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5733 malloc_sbrk_used, nothing uses them.
5734
5735 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5736 defined, unconditionally defined in lisp.h.
5737
5738 * term.c: Do not include <termios.h>, systty.h does it.
5739
5740 * s/unixware.h (HAVE_TCATTR):
5741 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5742 systty.h defines it when HAVE_TERMIOS is defined.
5743
5744 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5745
5746 * dispnew.c (buffer_posn_from_coords): Fix last change for text
5747 terminals: add one-character offset for R2L lines.
5748
5749 * emacs.c <emacs_version>: Add a comment regarding
5750 msdos/mainmake.v2's dependency on the syntax of this declaration.
5751
5752 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5753
5754 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5755 position for R2L lines by mirroring the pixel position wrt the
5756 text are box. Improve commentary.
5757
5758 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5759
5760 * image.c (imagemagick_clear_image): Remove debugging output.
5761
5762 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5763
5764 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5765 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5766 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5767 self-insert-face.
5768 (syms_of_cmds): Initialize the new vars.
5769
5770 2010-08-19 Jason Rumney <jasonr@gnu.org>
5771
5772 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5773
5774 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5775
5776 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5777
5778 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5779
5780 2010-08-18 Eli Zaretskii <eliz@gnu.org>
5781
5782 * xterm.c (x_draw_bar_cursor):
5783 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5784 R2L, draw the bar cursor on its right rather than on its left.
5785
5786 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5787
5788 * eval.c (Fdefmacro): Only obey one declaration.
5789
5790 * casefiddle.c (casify_region): Setup gl_state.
5791
5792 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5793
5794 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5795
5796 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5797
5798 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
5799
5800 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
5801
5802 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5803 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5804 QPRIMARY => NXPrimaryPboard.
5805 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5806 NXPrimaryPboard => QPRIMARY.
5807 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5808 NXSecondaryPboard = SecondarySelection.
5809 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5810
5811 2010-08-18 Joakim Verona <joakim@verona.se>
5812
5813 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5814 defined:
5815 (imagemagick_image_p): New function to test for ImageMagic image.
5816 (imagemagick_load): New function to load ImageMagick image.
5817 (imagemagick_load_image): New function, helper for imagemagick_load.
5818 (imagemagick-types): New function.
5819 (Qimagemagick): New Lisp_object.
5820 (imagemagick-render-type): New variable, decides which renderer to use.
5821
5822 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5823
5824 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5825 is a string.
5826
5827 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5828
5829 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5830 x_set_tool_bar_position handler.
5831
5832 2010-08-17 Eli Zaretskii <eliz@gnu.org>
5833
5834 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5835 x_set_tool_bar_position handler, needed to support changes from
5836 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5837
5838 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5839
5840 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
5841 declaration (Bug#6863).
5842 (syms_of_nsselect): Don't intern QPRIMARY.
5843
5844 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5845
5846 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5847
5848 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
5849
5850 * keyboard.c (command_loop_1): Avoid setting selection twice,
5851 since it's done in deactivate-mark as well.
5852 (Vselect_active_regions): Change default to t. Replace `lazy'
5853 with non-default value `only', meaning only set PRIMARY for
5854 temporarily active regions.
5855
5856 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5857 select-active-regions.
5858
5859 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5860
5861 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5862 isn't a string.
5863
5864 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5865
5866 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5867
5868 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5869
5870 * keyboard.c (parse_tool_bar_item): malloc buf.
5871 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5872 new_lbl (Bug#6855).
5873
5874 2010-08-14 Eli Zaretskii <eliz@gnu.org>
5875
5876 * xterm.c (x_draw_stretch_glyph_string):
5877 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5878 the cursor on the right edge of the stretch glyph.
5879
5880 * xdisp.c (window_box_right_offset, window_box_right):
5881 Fix commentary.
5882
5883 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5884 direction when point is inside a run of whitespace characters.
5885
5886 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5887
5888 2010-08-14 Jason Rumney <jasonr@gnu.org>
5889
5890 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5891
5892 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
5893
5894 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5895
5896 2010-08-13 Jason Rumney <jasonr@gnu.org>
5897
5898 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5899 (MessageBoxW_Proc): New function typedef.
5900 (unicode-message-box): New function pointer.
5901 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
5902
5903 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5904
5905 * frame.h (Qtool_bar_position): Declare.
5906
5907 * xfns.c (Fx_create_frame): Call x_default_parameter for
5908 Qtool_bar_position.
5909
5910 2010-08-13 Eli Zaretskii <eliz@gnu.org>
5911
5912 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5913 (report_error, report_error_1): Ditto.
5914 (write_segment): Remove "#if 0" unused code.
5915 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5916 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5917 (start_of_text): Remove unused function (was used only if NO_REMAP
5918 was NOT defined).
5919
5920 * msdos.c (IT_set_face): Fix format string to match argument
5921 types.
5922 (IT_write_glyphs, IT_note_mode_line_highlight)
5923 (IT_set_frame_parameters): Remove unused variables.
5924 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5925 (IT_set_terminal_modes): Disambiguate expression in if clause.
5926 (Fmsdos_remember_default_colors): Return Qnil.
5927 (IT_set_frame_parameters): Add parens to disambiguate boolean
5928 expression for logging the cursor type to termscript.
5929 (keyboard_layout_list, keypad_translate_map)
5930 (grey_key_translate_map): Add braces in inner initializers.
5931 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5932 (dos_rawgetc): Remove unused label.
5933 (XMenuActivate): Add braces to remove ambiguous `else'.
5934 (dos_ttraw): Always return a value.
5935 (spawnve): Declare.
5936 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5937
5938 * dosfns.h (x_set_title): Declare.
5939
5940 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5941 Remove unused variables.
5942
5943 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5944 variables.
5945 (init_dosfns): Declare get_lim_data.
5946 (system_process_attributes): Declare Fget_internal_run_time.
5947
5948 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5949 list to be consistent with menu.h.
5950
5951 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5952 warnings due to mixing of "char *" and "const char *".
5953
5954 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5955
5956 Introduce a new comment style "c" flag.
5957 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5958 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5959 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5960 (syntax_prefix_flag_p): New function.
5961 (Fstring_to_syntax): Understand new "c" flag.
5962 (Finternal_describe_syntax_value): Recognize new flag; use the
5963 SYNTAX_FLAGS_* macros.
5964 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5965 comment style to accomodate the new styles.
5966 (back_comment, forw_comment, Fforward_comment, scan_lists)
5967 (scan_sexps_forward): Update code to obey the new comment style flag.
5968
5969 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5970
5971 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5972
5973 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5974
5975 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5976 first.
5977 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
5978
5979 * gtkutil.h (xg_check_special_colors): Declare.
5980
5981 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5982 (xg_create_frame_widgets): Connect theme name changes to
5983 style_changed_cb.
5984
5985 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5986 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5987 (x_term_init): Use char[] display_opt and name_opt instead of
5988 string literal. file is const char*.
5989
5990 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5991 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5992 props. Free them at the end.
5993
5994 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5995
5996 * xrdb.c (get_system_app): Make path const and use char *p for
5997 non-const char.
5998
5999 * xmenu.c (Fx_popup_dialog): error_name is const char*.
6000 (xmenu_show): error parameter is const char **. pane_string is const
6001 char *.
6002 (button_names): Is const char *.
6003 (xdialog_show): error_name and pane_string is const.
6004
6005 * process.h (synch_process_death): Is const char*.
6006
6007 * w32menu.c (w32_menu_show):
6008 * nsmenu.m (ns_menu_show): error parameter is const char **.
6009
6010 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
6011 is const char **.
6012
6013 * menu.c (Fx_popup_menu): error_name is const.
6014
6015 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
6016 with unsigned char and XtPointer with void *.
6017
6018 * gtkutil.h: Replace widget_value with struct _widget_value.
6019 (enum button_type, struct _widget_value): Remove and use the one from
6020 keyboard.h.
6021
6022 * gtkutil.c (get_utf8_string): Always return an allocated string.
6023 Parameter is const.
6024 (create_dialog, xg_create_one_menuitem, create_menus)
6025 (xg_item_label_same_p, xg_update_menu_item): Free result from
6026 get_utf8_string.
6027 (xg_separator_p, xg_item_label_same_p): label is const.
6028
6029 * font.h (font_open_by_name): Make name const.
6030
6031 * font.c (font_open_by_name): Make name const.
6032
6033 * floatfns.c (matherr): Use a const char* variable for x->name.
6034
6035 * emacs.c (main): Pass char[] to putenv instead of literal.
6036
6037 * callproc.c (synch_process_death): Make const.
6038 (Fcall_process): Make signame const.
6039
6040 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6041 (addDisplayItemWithImage): Use const char*.
6042
6043 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6044 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6045
6046 * nsfont.m (ns_descriptor_to_entity): Use const char*.
6047
6048 * keyboard.h (_widget_value): name, value and key are const char*.
6049
6050 * unexmacosx.c (unexec_error): Use const char *.
6051
6052 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6053
6054 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6055 (font_parse_name, font_open_by_name):
6056 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6057 (font_parse_name, font_open_by_name): Remove const.
6058
6059 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
6060
6061 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6062 definition.
6063
6064 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6065 * m/amdx86-64.h: Likewise.
6066 * m/arm.h: Likewise.
6067 * m/hp800.h: Likewise.
6068 * m/ia64.h: Likewise.
6069 * m/ibmrs6000.h: Likewise.
6070 * m/ibms390.h: Likewise.
6071 * m/intel386.h: Likewise.
6072 * m/iris4d.h: Likewise.
6073 * m/m68k.h: Likewise.
6074 * m/macppc.h: Likewise.
6075 * m/mips.h: Likewise.
6076 * m/sh3.h: Likewise.
6077 * m/sparc.h: Likewise.
6078 * m/template.h: Likewise.
6079 * m/vax.h: Likewise.
6080 * m/xtensa.h: Likewise.
6081 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6082 WORDS_BIG_ENDIAN.
6083 * lisp.h: Likewise.
6084 * md5.c: Likewise.
6085 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6086
6087 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6088
6089 Use const char* instead of char*.
6090 Reduce the number of warnings with -Wwrite-strings.
6091 * xrdb.c (get_environ_db, get_system_name):
6092 * unexelf.c (find_section):
6093 * term.c (string_cost, string_cost_one_line, per_line_cost)
6094 (get_named_tty, init_tty):
6095 * sysdep.c (sys_subshell):
6096 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6097 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6098 * search.c (Freplace_match):
6099 * process.c (Fmake_network_process, send_process, init_process):
6100 * lread.c (Fload, init_lread):
6101 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6102 * keyboard.c (parse_tool_bar_item, struct event_head):
6103 * gtkutil.h (xg_get_font_name):
6104 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6105 (make_widget_for_menu_item, make_menu_item, create_menus)
6106 (xg_make_tool_item):
6107 * font.c (parse_matrix, font_parse_name):
6108 * floatfns.c (rounding_driver, float_error_fn_name):
6109 * filelock.c (get_boot_time_1, lock_file_1):
6110 * fileio.c (barf_or_query_if_file_exists, check_writable):
6111 * editfns.c (get_system_name, get_operating_system_release)
6112 (Fencode_time, Fset_time_zone_rule):
6113 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6114 * buffer.c (defvar_per_buffer): Use const.
6115
6116 2010-08-08 Kenichi Handa <handa@m17n.org>
6117
6118 * charset.c: Include <stdlib.h>.
6119 (struct charset_sort_data): New struct.
6120 (charset_compare): New function.
6121 (Fsort_charsets): New function.
6122 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6123
6124 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6125 number in CTEXT extended segment.
6126
6127 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6128
6129 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6130 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6131
6132 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6133
6134 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6135 (Fhash_table_size): Fix typos in docstrings.
6136 (Fmake_hash_table): Doc fix.
6137
6138 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6139
6140 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6141 Doc fix (bug#5625).
6142
6143 2010-08-08 Ken Brown <kbrown@cornell.edu>
6144
6145 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6146 the MSDOS definition.
6147
6148 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6149
6150 Use const char* instead of char*.
6151 * xterm.c (x_create_toolkit_scroll_bar):
6152 * xfont.c (xfont_list_pattern):
6153 * xfns.c (x_default_scroll_bar_color_parameter)
6154 (xic_create_fontsetname, x_default_font_parameter)
6155 (x_screen_planes):
6156 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6157 (store_mode_line_string, decode_mode_spec, display_string):
6158 * menu.c (digest_single_submenu):
6159 * keymap.h (initial_define_key, initial_define_lispy_key):
6160 * keymap.c (initial_define_key, initial_define_lispy_key):
6161 * image.c (image_error, image_keyword):
6162 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6163 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6164 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6165 (ftfont_list, ftfont_match):
6166 * frame.c (frame_parm_table):
6167 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6168 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6169 (font_add_log, font_deferred_log):
6170 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6171 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6172 (font_add_log, font_deferred_log):
6173 * emacs.c (argmatch):
6174 * dispextern.h (struct it):
6175 * coding.c (ENCODE_DESIGNATION):
6176 * charset.c (define_charset_internal): Use const.
6177
6178 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6179
6180 * xrdb.c: Remove include guard.
6181 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
6182 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6183 realloc->xrealloc instead of using #defines.
6184
6185 2010-08-08 Eli Zaretskii <eliz@gnu.org>
6186
6187 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
6188 * editfns.c (Fline_beginning_position, Fline_end_position):
6189 State in the doc strings that start and end of line are in the
6190 logical order.
6191
6192 * xdisp.c (display_line): Move the handling of overlay arrow after
6193 the call to find_row_edges. (Bug#6699)
6194
6195 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6196
6197 * keyboard.c (command_loop_1):
6198 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6199
6200 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6201
6202 * insdel.c (prepare_to_modify_buffer): Save active region text to
6203 Vsaved_region_selection.
6204
6205 * xselect.c (QPRIMARY): Move to keyboard.c.
6206
6207 * keyboard.c (Vselect_active_regions): Move from simple.el.
6208 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6209 (command_loop_1): Set window selection prior to deactivating the mark.
6210
6211 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
6212
6213 * alloc.c (lisp_malloc):
6214 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6215 * charset.h (emacs_mule_charset):
6216 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6217 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6218 (bitch_at_user):
6219 * lisp.h (Fcheck_coding_system, Fget_text_property)
6220 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6221 Remove duplicate declarations.
6222
6223 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6224
6225 * process.c: Simplify include logic.
6226
6227 * keyboard.h (quit_char): Add declaration.
6228 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
6229 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6230 Add declarations.
6231 * sysdep.c:
6232 * w32.c: Remove the above declarations.
6233
6234 Remove extern declarations in .c files, .h files have them.
6235 * xterm.c:
6236 * xdisp.c:
6237 * msdos.c:
6238 * image.c:
6239 * gtkutil.c:
6240 * fileio.c:
6241 * eval.c: Remove declarations.
6242
6243 * frame.c (frame_params): Make const.
6244
6245 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6246
6247 * emacs.c (emacs_copyright, emacs_version): Make static.
6248 (Vinitial_window_system, Vauto_save_list_file_name)
6249 (Vinhibit_redisplay): Remove declarations.
6250 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6251 for AIX.
6252
6253 Use const for some arrays and functions.
6254 * xterm.h (xg_set_icon_from_xpm_data):
6255 * xfns.c (xg_set_icon_from_xpm_data):
6256 * term.c (fkeys):
6257 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6258 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6259 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6260 (frame.c frame_parms):
6261 * emacs-icon.h (gnu_xpm_bits):
6262 * callint.c (callint_argfuns): Use const.
6263
6264 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6265
6266 * sysdep.c: Move include term.h last of includes (Bug#6812).
6267
6268 2010-08-06 Eli Zaretskii <eliz@gnu.org>
6269
6270 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6271
6272 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6273
6274 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6275
6276 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6277
6278 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6279
6280 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6281
6282 * xterm.h (x_get_focus_frame): Declare.
6283
6284 * keyboard.h (poll_for_input_1): Unconditionally declare.
6285
6286 * nsterm.h (x_set_menu_bar_lines): Declare.
6287
6288 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6289
6290 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6291
6292 * window.c: Include menu.h.
6293
6294 * unexmacosx.c (print_region_list, print_regions)
6295 (build_region_list, find_emacs_zone_regions)
6296 (unexec_regions_merge, read_load_commands, dump_it)
6297 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6298
6299 * term.c: Check HAVE_SYS_IOCTL_H.
6300
6301 * sysdep.c: Check HAVE_TERM_H.
6302
6303 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
6304
6305 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6306 (ns_ring_bell, ns_defined_color, hide_hourglass)
6307 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6308 Convert to ANSI C prototypes.
6309 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6310 before code.
6311
6312 * nsterm.h : Include sysselect.h.
6313 (x_sync, x_get_focus_frame, x_set_mouse_position)
6314 (x_set_mouse_pixel_position, x_make_frame_visible)
6315 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6316 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6317 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6318 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
6319 Declare.
6320
6321 * nsmenu.m (popup_activated, name_is_separator)
6322 (syms_of_nsmenu): Convert to ANSI C prototypes.
6323 (runMenuAt): Prototypes and move declarations before code.
6324
6325 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6326
6327 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6328 prototypes.
6329
6330 * nsfns.m (have_menus_p, ns_display_info_for_name)
6331 (x_set_cursor_type, ns_appkit_version_str)
6332 (ns_appkit_version_int, ns_do_applescript)
6333 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6334 (syms_of_nsfns): Convert to ANSI C prototypes.
6335
6336 * menu.h (x_set_menu_bar_line): Declare.
6337 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6338
6339 * lisp.h (fmod_float): Declare.
6340
6341 * image.c (xpm_scan, xpm_make_color_table_v)
6342 (xpm_put_color_table_v, xpm_get_color_table_v)
6343 (xpm_make_color_table_h, xpm_put_color_table_h)
6344 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6345 (xpm_load): Convert to ANSI C prototypes.
6346
6347 * emacs.c: Include nsterm.h if HAVE_NS.
6348
6349 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6350
6351 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6352
6353 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6354 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6355 (socket_options): Use const char* for name.
6356
6357 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6358
6359 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6360
6361 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6362 Don't declare xmalloc_widget_value and digest_single_submenu.
6363
6364 * w32font.c (Qlatin): Remove declaration.
6365
6366 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6367
6368 * dired.c (compile_pattern): Restore declaration.
6369
6370 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6371
6372 Remove extern declarations in .c files, .h files have them.
6373 * data.c:
6374 * dired.c:
6375 * editfns.c:
6376 * filelock.c:
6377 * fns.c:
6378 * font.c:
6379 * fontset.c:
6380 * frame.c:
6381 * fringe.c:
6382 * ftfont.c:
6383 * gtkutil.c:
6384 * indent.c:
6385 * keyboard.c:
6386 * keymap.c:
6387 * lread.c:
6388 * menu.c:
6389 * print.c:
6390 * search.c:
6391 * sound.c:
6392 * window.c:
6393 * xdisp.c:
6394 * xfaces.c:
6395 * xfns.c:
6396 * xfont.c:
6397 * xftfont.c:
6398 * xmenu.c:
6399 * xterm.c: Remove declarations.
6400
6401 Cleanup syssignal.h.
6402 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6403 (main_thread): Move down to remove #ifdef.
6404 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6405 Remove conditional definition following unconditional ones.
6406
6407 * lisp.h: Remove HAVE_SHM code, unused.
6408 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6409 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6410 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6411 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6412 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6413 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6414 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6415 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6416 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6417 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6418 (Qwindow_scroll_functions, Vafter_load_alist)
6419 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6420 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6421 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6422 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6423 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6424 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6425 (initial_argv, last_nonmenu_event, load_in_progress)
6426 (noninteractive_need_newline, scroll_margin): Add declarations.
6427
6428 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6429 Remove declarations, menu.h has them.
6430 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6431 (Vinput_method_function, Qinput_method_function)
6432 (Qevent_symbol_element_mask, last_event_timestamp):
6433 * dispextern.h (Voverflow_newline_into_fringe):
6434 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6435 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6436 (syms_of_w32font, syms_of_nsfont):
6437 * fontset.h (find_font_encoding, Qlatin):
6438 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6439 (Vtool_bar_mode, set_frame_menubar):
6440 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6441 * xterm.h (Qx_gtk_map_stock):
6442 * keymap.h (meta_prefix_char): Add declarations.
6443
6444 * term.c: Remove dead code.
6445
6446 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6447 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6448 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6449 which is what was there before BSD_PGRPS was removed.
6450
6451 2010-08-05 Eli Zaretskii <eliz@gnu.org>
6452
6453 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6454
6455 * unexcoff.c: Renamed from unexec.c.
6456
6457 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6458
6459 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6460
6461 2010-08-03 Johan Bockgård <bojohan@gnu.org>
6462
6463 * data.c (Flocal_variable_p): Handle variable aliases correctly.
6464 (Bug#6744)
6465
6466 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6467
6468 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6469 to TRUE if depth of screen is < 16.
6470
6471 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6472 USE_GTK_TOOLTIP.
6473 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6474 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
6475 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
6476 USE_GTK_TOOLTIP.
6477 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6478
6479 * xterm.h (USE_GTK_TOOLTIP): New define.
6480 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6481
6482 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6483 to Control-D (Bug#6771).
6484
6485 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
6486
6487 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6488 Wording by Drew Adams <drew.adams@oracle.com>.
6489
6490 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6491
6492 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6493 ttip_lbl.
6494
6495 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6496 calling gtk_widget_queue_draw.
6497 (x_free_frame_resources): Call xg_free_frame_widgets.
6498
6499 * xfns.c (x_gtk_use_system_tooltips): New variable.
6500 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6501 new gtkutil tooltip functions to show the tooltip.
6502 (Fx_hide_tip): Call xg_hide_tooltip.
6503 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6504
6505 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6506 (xg_show_tooltip, xg_hide_tooltip): Declare.
6507
6508 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6509 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6510 New functions.
6511 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6512 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6513 Remove code that is commented out.
6514
6515 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6516
6517 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6518
6519 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
6520
6521 * xselect.c (x_own_selection): Use list4.
6522
6523 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6524
6525 * buffer.c (Qwindow): Do not define, already defined in data.c.
6526 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6527
6528 2010-07-29 Chad Brown <yandros@mit.edu>
6529
6530 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6531 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6532 * config.in: Undef HAVE_DIRENT_H.
6533 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6534 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6535
6536 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6537
6538 Rename s/usg5-4.h -> s/usg5-4-common.h.
6539 * s/usg5-4.h: Rename file to ...
6540 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6541 * s/unixware.h:
6542 * s/sol2-6.h:
6543 * s/irix6-5.h: Update includes accordingly.
6544
6545 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6546
6547 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6548
6549 * xterm.h (struct x_output): Add toolbar_top_height,
6550 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6551 Remove toolbar_height.
6552 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6553 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6554 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6555 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6556
6557 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6558
6559 * xfns.c (x_set_tool_bar_position): New function.
6560 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6561 (x_frame_parm_handlers): Add x_set_tool_bar_position.
6562 (syms_of_xfns): If USE_GTK, provide move-toolbar.
6563
6564 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6565 and FRAME_TOOLBAR_LEFT_WIDTH.
6566
6567 * gtkutil.h (xg_change_toolbar_position): Declare.
6568
6569 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6570 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6571 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6572 (xg_create_frame_widgets): Create a hobox for placing widgets
6573 vertically. Use gtk_box_pack_start.
6574 (xg_height_or_width_changed): Rename from xg_height_changed.
6575 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6576 (xg_update_frame_menubar, free_frame_menubar): Change to
6577 xg_height_or_width_changed.
6578 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6579 size correctly. Remove hardcoded 4, instead use handlebox size -
6580 toolbar size.
6581 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
6582 size correctly. Use handlebox size + toolbar size as additional size.
6583 (xg_pack_tool_bar): POS is a new parameter.
6584 Set orientation of tool bar based on pos.
6585 Only make handlebox_widget if NULL.
6586 Check if tool bar goes to vbox or hbox depending on pos.
6587 (xg_update_tool_bar_sizes): New function.
6588 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
6589 height, call xg_update_tool_bar_sizes instead.
6590 (free_frame_tool_bar): Remove from hbox or vbox depending on
6591 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6592 (xg_change_toolbar_position): New function.
6593
6594 * frame.h (struct frame): Add tool_bar_position.
6595 (Qbottom): Declare.
6596
6597 * frame.c (Qtool_bar_position): New variable.
6598 (make_frame): Set tool_bar_position to Qtop.
6599 (frame_parms): Add tool-bar-position.
6600 (x_report_frame_params): Store tool_bar_position.
6601 (x_set_fringe_width): Reset wm size hint after fringe changes.
6602
6603 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6604
6605 Make lisp_time_argument declaration work on all systems.
6606 * lisp.h (lisp_time_argument): Move declaration ...
6607 * systime.h (lisp_time_argument): ... here
6608 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6609
6610 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6611
6612 * vm-limit.c (POINTER): Add typedef for it.
6613 (start_of_data): Change return type from POINTER to char *.
6614
6615 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6616 HAVE_WINDOW_SYSTEM.
6617
6618 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6619
6620 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6621 Remove reference to __osf__, unused.
6622
6623 * mem-limits.h: Remove duplicated includes.
6624 (NULL): Remove definition, unused.
6625 (POINTER): Remove definition.
6626 (start_of_data): Use char* in prototype, as the function
6627 definition does.
6628
6629 Remove extern declarations from .c files, and them to .h files.
6630 * keyboard.h (Qhelp_echo, waiting_for_input)
6631 (input_available_clear_time, ignore_mouse_drag_p)
6632 (Vdouble_click_time, real_this_command, Vthis_original_command):
6633 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6634 (Voverriding_local_map_menu_flag):
6635 * lisp.h (Qinteractive_form, use_file_dialog)
6636 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6637 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6638 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6639 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6640 (Qfunction, debug_on_next_call, Qfield)
6641 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6642 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6643 (Qfile_directory_p, Qinsert_file_contents)
6644 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6645 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6646 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6647 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6648 (Qminibuffer_prompt)
6649 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6650 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6651 (gray_bitmap_bits, xic_create_fontsetname):
6652 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6653
6654 * xsmfns.c (Vuser_login_name):
6655 * xrdb.c (Vdouble_click_time):
6656 * xfaces.c (xic_create_fontsetname):
6657 * w32select.c (waiting_for_input):
6658 * print.c (minibuffer_auto_raise):
6659 * msdos.c (Qhelp_echo):
6660 * macros.c (real_this_command):
6661 * keymap.c (Voverriding_local_map):
6662 * xterm.c (poll_for_input_1, gray_bitmap_width)
6663 (gray_bitmap_height, gray_bitmap_bits;
6664 * xmenu.c ( Voverriding_local_map)
6665 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6666 (use_file_dialog, Xt_app_con):
6667 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6668 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6669 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6670 (Qtool_bar_lines, ignore_mouse_drag_p):
6671 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6672 (Qrear_nonsticky, nconc2):
6673 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6674 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6675 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6676 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6677 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6678 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6679 (gc_in_progress):
6680 * doc.c (Voverriding_local_map, Qremap):
6681 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6682 (Vcompletion_regexp_list):
6683 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6684 (Qcompletion_ignore_case):
6685 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6686 (Vhistory_length, Vthis_original_command, real_this_command)
6687 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6688 * image.c (Qrisky_local_variable):
6689 * fontset.c (QCname):
6690 * fns.c (minibuffer_auto_raise, QCname):
6691 * dispnew.c (char_ins_del_cost):
6692 * composite.c (font_fill_lglyph_metrics):
6693 * cmds.c (Qface, Vtranslation_table_for_input):
6694 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6695 * ccl.c (charset_unicode):
6696 * callproc.c (Vtemporary_file_directory):
6697 * buffer.c (emacs_strerror): Remove extern declarations.
6698
6699 * data.c (Qwindow): Make non-static, used from other files too.
6700 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6701
6702 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6703 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6704 * s/usg5-4.h (COFF):
6705 * s/template.h:
6706 * s/msdos.h (COFF, NO_REMAP):
6707 * s/ms-w32.h (NO_REMAP):
6708 * s/hpux10-20.h (NO_REMAP):
6709 * m/sparc.h (SEGMENT_MASK):
6710 * m/m68k.h (NO_REMAP):
6711 * m/intel386.h (SEGMENT_MASK):
6712 * m/arm.h (NO_REMAP):
6713 * m/alpha.h (COFF):
6714 * m/template.h: Remove references to unused defines.
6715
6716 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6717
6718 * xsettings.c (Ftool_bar_get_system_style): Also check for
6719 Qtext_image_horiz.
6720
6721 * xdisp.c (Qtext_image_horiz): Define.
6722 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
6723 to documentation of tool-bar-style.
6724
6725 * lisp.h (Qtext_image_horiz): Declare.
6726
6727 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6728 style text_image_horiz.
6729
6730 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6731
6732 * emacs.c (Fkill_emacs): Remove return statement.
6733
6734 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6735 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
6736 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6737 Remove local extern declarations.
6738
6739 * xmenu.c: Do not included lwlib.h, not needed.
6740
6741 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6742
6743 * process.c: Move definitions earlier to minimize #ifdefs.
6744
6745 * xterm.h (x_get_customization_string, x_load_resources)
6746 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6747 (x_check_errors, x_property_data_to_lisp, defined_color)
6748 (xic_set_xfontset, x_defined_color): Use const.
6749
6750 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6751 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6752
6753 * xselect.c (selection_data_to_lisp_data)
6754 (x_property_data_to_lisp):
6755 * xrdb.c (x_get_string_resource, file_p)
6756 (x_get_customization_string, magic_file_p, search_magic_path)
6757 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6758 (x_get_string_resource): Use const.
6759
6760 * xfns.c: Include xlwmenu.h when USE_LUCID.
6761 (x_defined_color, xic_set_xfontset): Use const.
6762 (Fx_hide_tip): Remove local extern declaration.
6763
6764 * xfaces.c (Qmouse_face): Remove declaration.
6765 (face_color_gray_p, tty_defined_color, defined_color)
6766 (face_color_gray_p, face_color_supported_p): Add const.
6767
6768 * xdisp.c (do_mouse_tracking): Remove declaration.
6769 (add_to_log): Use const.
6770
6771 * minibuf.c (Qmouse_face): Remove declaration.
6772
6773 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6774
6775 * keyboard.h (do_mouse_tracking): Add declaration.
6776
6777 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6778 (QCdata, QCtype, Qcenter): Remove declarations.
6779
6780 * frame.c (x_get_resource_string, x_get_string_resource)
6781 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6782 (x_default_parameter): Use const.
6783
6784 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6785 (QCheight, QCsize, QCname): Remove declarations.
6786
6787 * emacs.c (main): Remove local extern declaration.
6788
6789 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6790 declarations.
6791
6792 * dispnew.c: Remove duplicate #include <unistd.h>.
6793 (update_window, update_frame_1, init_display): Remove local extern
6794 declarations.
6795
6796 * dispextern.h (add_to_log): Remove declaration.
6797 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6798 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6799
6800 * dired.c (scmp): Add const.
6801 (directory_files_internal): Remove local extern declaration.
6802
6803 * data.c (Finteractive_form): Use const.
6804
6805 * composite.c (syms_of_composite): Remove local extern declarations.
6806
6807 * charset.c (add_to_log): Remove declaration.
6808
6809 * character.c (strwidth, parse_str_to_multibyte): Add const.
6810
6811 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6812
6813 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6814
6815 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
6816 (Lisp_Subr): Make doc and intspec constant.
6817 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6818 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6819 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6820 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6821 (display_arg): Add declarations.
6822
6823 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
6824
6825 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6826
6827 * window.c (Fwindow_height): Doc fix (bug#6518).
6828
6829 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
6830
6831 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6832
6833 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6834
6835 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6836 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6837 functions.
6838
6839 * frame.h (Qtty_color_mode): Add declaration.
6840
6841 * lisp.h (Ftop_level, Fexit_recursive_edit)
6842 (Fabort_recursive_edit): Mark as NO_RETURN.
6843
6844 2010-07-26 Kenichi Handa <handa@m17n.org>
6845
6846 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
6847 number of glyphs gets smaller than the original length. (Bug#6621)
6848
6849 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
6850
6851 * lread.c (unreadpure, mapatoms_1): Make static.
6852
6853 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
6854
6855 * terminfo.c (tparam): Fix prototype of tparm.
6856
6857 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6858
6859 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6860 find start of text segment.
6861 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6862 is defined.
6863
6864 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6865
6866 2010-07-25 Ken Brown <kbrown@cornell.edu>
6867
6868 * vm-limit.c (check_memory_limits): Fix previous change;
6869 accidentally reverted an earlier change.
6870
6871 2010-07-25 Ken Brown <kbrown@cornell.edu>
6872
6873 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6874 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6875
6876 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
6877
6878 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6879 * dired.c (opendir, readdir): Fix prototypes.
6880 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6881 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6882 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6883 (telldir): Remove declaration.
6884 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6885 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6886 * syssignal.h (strsignal): Fix prototype.
6887 * term.c (tparam): Fix prototype.
6888 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6889 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6890 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6891 and __morecore.
6892 * w32gui.h (XParseGeometry): Fix prototype.
6893 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6894 * w32term.c (my_set_focus): Declare inside #if 0.
6895 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6896 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6897 (drain_message_queue, get_next_msg, post_msg, parse_button)
6898 (ClipboardSequence_Proc): Fix prototypes.
6899 (wait_for_sync): Remove declaration.
6900
6901 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
6902
6903 * w32fns.c (w32_to_x_color): Remove, unused.
6904
6905 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6906
6907 * lisp.h: Remove leftover P_.
6908
6909 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6910
6911 * ecrt0.c, unexalpha.c: Remove files, unused.
6912
6913 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6914
6915 * cmds.c (internal_self_insert): Make static.
6916 * lisp.h (internal_self_insert): Remove declaration.
6917
6918 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
6919
6920 * alloc.c (free_float):
6921 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6922 * frame.c (delete_frame_handler):
6923 * ralloc.c (reorder_bloc):
6924 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6925 Remove unused static functions.
6926
6927 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6928 it is called only from NS code.
6929
6930 * w32term.c (my_set_focus): #ifdef away; it is called only from
6931 "#ifdef 0" code.
6932
6933 * w32fns.c (x_edge_detection):
6934 * xfaces.c (may_use_scalable_font_p):
6935 Remove obsolete static declarations.
6936
6937 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
6938
6939 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6940 (emacs_blocked_realloc, uninterrupt_malloc):
6941 * fringe.c (w32_reset_fringes):
6942 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6943 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6944 * sound.c (be2hs, do_play_sound):
6945 * vm-limit.c (get_lim_data, ret_lim_data):
6946 * w32term.c (x_free_frame_resources):
6947 * xfaces.c (x_create_gc, x_free_gc):
6948 Convert definitions to standard C.
6949
6950 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6951
6952 * eval.c (Feval, Ffuncall): Use the new names.
6953
6954 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6955 (DEFUN): Add braces around the union initialisation and use ## to
6956 specify the right union alternative and avoid a cast.
6957
6958 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
6959
6960 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6961
6962 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
6963
6964 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6965
6966 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6967
6968 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6969 is related to the menu bar (Bug#6499).
6970 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
6971
6972 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6973
6974 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6975
6976 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6977
6978 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6979 i.e. don't put back ButtonRelease (Bug#6608).
6980
6981 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6982 instead of Window. Call xg_event_is_for_menubar when
6983 USE_GTK (Bug#6499).
6984
6985 * gtkutil.h (xg_event_is_for_menubar): Declare.
6986
6987 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6988
6989 2010-07-16 Eli Zaretskii <eliz@gnu.org>
6990
6991 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6992 when it's the same as the old foreground. (Bug#6609)
6993
6994 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6995
6996 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6997 widget is non-null (Bug#6645).
6998
6999 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
7000
7001 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
7002 Convert old-style definition.
7003
7004 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
7005 timestamp argument.
7006
7007 2010-07-15 Eli Zaretskii <eliz@gnu.org>
7008
7009 * fringe.c (update_window_fringes): Restore mistakenly reverted
7010 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
7011
7012 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
7013
7014 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
7015 (SET_SAVED_KEY_EVENT): Remove (not used).
7016 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
7017 remove size parameter.
7018 (handle_one_xevent): Check popup_activated () for menu for Xt also.
7019 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
7020 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
7021 ButtonRelease.
7022 (x_set_window_size_1): scroll_bar_actual_width is always
7023 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
7024
7025 * xdisp.c (pending_menu_activation): Remove extern declaration.
7026 (prepare_menu_bars): Remove setting of pending_menu_activation.
7027
7028 * xmenu.c (pending_menu_activation): Remove.
7029 (x_activate_menubar): Set popup_activated_flag for Xt also.
7030 Remove setting of pending_menu_activation.
7031 (set_frame_menubar): Remove check of pending_menu_activation.
7032 Declare menubar_size before code. Correct spelling in comment.
7033
7034 2010-07-14 Kenichi Handa <handa@m17n.org>
7035
7036 * font.c (font_open_entity): Cancel previous change.
7037 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7038
7039 2010-07-13 Eli Zaretskii <eliz@gnu.org>
7040
7041 Remove subprocesses #ifdefs.
7042 * process.c <inhibit_sentinels>: Move to the common part.
7043 (Fwaiting_for_user_input_p): Move to the common part; return nil
7044 if async subprocesses aren't supported.
7045 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7046 MS-DOS. Remove "#ifdef subprocesses".
7047 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7048 (gettimeofday): Remove "#ifdef subprocesses".
7049 (wait_without_blocking): Remove function.
7050 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7051 Remove "#ifdef subprocesses".
7052 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7053 compiled on MS-DOS.
7054 * callproc.c (Fcall_process) [!MSDOS]: Don't call
7055 wait_for_termination on MS-DOS.
7056 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7057 initialization of inhibit_sentinels.
7058 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7059 subprocesses" conditional.
7060 * callproc.c (Fcall_process) [!subprocesses]: Don't call
7061 wait_for_termination, since `buffer' cannot be an integer when
7062 async subprocesses are not supported
7063 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7064 for ifdefing away the call to Fprocess_status.
7065
7066 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7067 away the entire body of the function.
7068
7069 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7070
7071 Remove subprocesses #ifdefs from term.c.
7072 * process.c (add_keyboard_wait_descriptor)
7073 (delete_keyboard_wait_descriptor): Move to common section, do
7074 nothing when subprocesses is not defined.
7075 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7076 Remove subprocesses #ifdefs.
7077
7078 Convert maybe_fatal to standard C.
7079 * lisp.h (verror): Declare.
7080 * eval.c (verror): New function containing the code from ...
7081 (error): ... this. Call verror.
7082 * term.c (vfatal): New function containing the code from ...
7083 (fatal): ... this. Call vfatal.
7084 (maybe_fatal): Convert to standard C, use variable number of
7085 arguments. Declare as non-return.
7086 (init_tty): Fix maybe_fatal call.
7087
7088 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7089
7090 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7091 (_scroll_bar_note_movement): Convert definitions to standard C.
7092 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7093 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7094
7095 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7096
7097 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7098 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7099 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7100 (xaw_jump_callback, xaw_scroll_callback)
7101 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
7102 (x_wm_set_size_hint, x_activate_timeout_atimer):
7103 Convert definitions to standard C.
7104 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7105 (popup_activate_callback, popup_deactivate_callback)
7106 (menu_highlight_callback, menubar_selection_callback)
7107 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7108 (free_frame_menubar, popup_selection_callback, as)
7109 (create_and_show_popup_menu, dialog_selection_callback)
7110 (create_and_show_dialog):
7111 * xfns.c (hack_wm_protocols, x_window):
7112 * xfaces.c (x_update_menu_appearance):
7113 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7114 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7115 (set_frame_size, update_wm_hints, setup_frame_gcs)
7116 (update_various_frame_slots, update_from_various_frame_slots)
7117 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7118 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7119 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7120
7121 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7122
7123 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
7124
7125 2010-07-12 Eli Zaretskii <eliz@gnu.org>
7126
7127 * process.c (setup_process_coding_systems): Move to the part
7128 shared by non-subprocesses systems, and make its body empty when
7129 subprocesses is not defined.
7130 (close_process_descs): Move to the part shared by non-subprocesses
7131 systems.
7132 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7133 ANSI C.
7134
7135 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7136
7137 * editfns.c (transpose_markers): Convert old-style definition.
7138 * emacs.c (abort, shut_down_emacs, fixup_locale)
7139 (synchronize_system_time_locale)
7140 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7141 * floatfns.c (extract_float, matherr, init_floatfns)
7142 (syms_of_floatfns): Likewise.
7143 * fns.c (make_hash_table): Likewise.
7144 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7145 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7146 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7147 (ftfont_variation_glyphs): Likewise.
7148 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7149 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7150 * lread.c (read_filtered_event): Likewise.
7151 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7152 * process.c (wait_reading_process_output): Likewise.
7153 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7154 * search.c (search_buffer, boyer_moore): Likewise.
7155 * syntax.c (scan_sexps_forward): Likewise.
7156 * xdisp.c (try_scrolling): Likewise.
7157 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7158 (face_at_string_position): Likewise.
7159 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7160 * xselect.c (x_get_window_property, receive_incremental_selection)
7161 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7162 Likewise.
7163 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7164
7165 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7166
7167 * callproc.c (child_setup): Remove subprocesses conditional.
7168 Remove code dealing with SET_EMACS_PRIORITY, unused.
7169
7170 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
7171 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7172
7173 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7174 (__do_global_dtors, __main): Use void in definition.
7175 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7176 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7177 the only users from ...
7178 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7179 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7180 (HAVE_VOLATILE): Remove, unused.
7181
7182 Convert more function definitions to standard C.
7183 * xdisp.c (window_box_edges, handle_single_display_spec)
7184 (display_string): Convert definition to standard C.
7185 * scroll.c (do_direct_scrolling, scrolling_1):
7186 * dispnew.c (allocate_matrices_for_frame_redisplay)
7187 (mirrored_line_dance):
7188 * coding.c (code_convert_string):
7189 * charset.c (map_charset_chars):
7190 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7191 (Fregister_ccl_program, Fregister_code_conversion_map):
7192 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7193 (head_table): Make static and const.
7194
7195 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7196
7197 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7198 (PROFILING_LDFLAGS): Set from substitution.
7199 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7200 CFLAGS last.
7201
7202 2010-07-12 Kenichi Handa <handa@m17n.org>
7203
7204 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7205 (shortlisp): Likewise.
7206
7207 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7208
7209 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7210 of FONT_ENTITY_INDEX.
7211 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7212 property, get the property value dynamically.
7213 (Ffont_put): Accept font-entity and font-object too.
7214 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
7215 return value changed.
7216 (syms_of_font): Adjust for the above change.
7217
7218 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7219
7220 * blockinput.h: Remove obsolete comment.
7221
7222 * lisp.h: Include <stddef.h>.
7223 (OFFSETOF): Don't define.
7224 (VECSIZE): Use offsetof instead of OFFSETOF.
7225 (PSEUDOVECSIZE): Likewise.
7226 * process.c (conv_sockaddr_to_lisp): Likewise.
7227 * alloc.c: Don't include <stddef.h>.
7228 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7229
7230 * process.c: Remove obsolete comment.
7231
7232 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
7233
7234 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7235
7236 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7237
7238 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7239 index, rindex.
7240 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7241 * editfns.c (Fuser_full_name, Fformat): Likewise.
7242 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7243 * fileio.c (Ffile_symlink_p): Likewise.
7244 * filelock.c (current_lock_owner): Likewise.
7245 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7246 * fontset.c (fontset_pattern_regexp): Likewise.
7247 * lread.c (read1): Likewise.
7248 * sysdep.c (init_system_name): Likewise.
7249 * xfns.c (select_visual): Likewise.
7250 * s/hpux10-20.h (index, rindex): Don't define.
7251 * s/ms-w32.h (index): Likewise.
7252 * s/usg5-4.h: Likewise.
7253
7254 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7255
7256 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7257 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7258 (egetenv): Likewise.
7259 * doprnt.c (doprnt): Likewise.
7260 * editfns.c (set_time_zone_rule, format2): Likewise.
7261 * emacs.c (decode_env_path): Likewise.
7262 * eval.c (signal_error, error): Likewise.
7263 * insdel.c (replace_range_2): Likewise.
7264 * keyboard.c (cmd_error_internal): Likewise.
7265 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7266 * print.c (write_string, write_string_1, print_error_message):
7267 Likewise.
7268 * vm-limit.c (warn_function, memory_warnings): Likewise.
7269 * xdisp.c (message1, message1_nolog, message_with_string)
7270 (vmessage, message, message_nolog): Likewise.
7271 * emacs.c: Remove duplicate declaration.
7272 * keyboard.h: Likewise.
7273 * lisp.h: Update prototypes.
7274
7275 * eval.c: Fix indentation problem.
7276
7277 * keyboard.c: Include "process.h".
7278
7279 * eval.c: Remove obsolete noinline declaration.
7280 * fns.c: Likewise.
7281
7282 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
7283
7284 * doprnt.c (doprnt): Take a va_list argument instead of count and
7285 pointer.
7286 * eval.c (error): Change to a standard-C variadic function.
7287 * xdisp.c (vmessage): Rename from message, made static, and
7288 changed to take a va_list argument.
7289 (message): New variadic wrapper.
7290 (message_nolog): Now a variadic function, calling vmessage.
7291 * lisp.h: Include stdarg.h for va_list.
7292 (doprnt, error, message, message_nolog): Decls updated.
7293
7294 2010-07-11 Eli Zaretskii <eliz@gnu.org>
7295
7296 * process.c (syms_of_process) <delete-exited-processes>: Define
7297 even if !subprocesses.
7298 (delete_exited_processes): Ditto.
7299
7300 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7301 (delete_exited_processes): Don't define.
7302
7303 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7304
7305 * frame.c (make_frame): Initialize menu_bar_lines and
7306 tool_bar_lines members.
7307 (make_initial_frame, make_terminal_frame):
7308 Initialize menu_bar_lines using value of menu-bar-mode.
7309
7310 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7311
7312 2010-07-10 Eli Zaretskii <eliz@gnu.org>
7313
7314 * process.c: Reshuffle #include's. Condition some of the global
7315 and static variables on `subprocesses'.
7316 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7317 Leave only one implementation.
7318 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7319 (kill_buffer_processes, Flist_system_processes)
7320 (Fprocess_attributes, init_process, syms_of_process): Unify the
7321 implementations for with subprocesses and without them.
7322
7323 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7324
7325 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7326 correct size for Motif.
7327 (free_frame_menubar): Call x_set_window_size to update frame size.
7328
7329 * xfns.c (x_window): Set borderWidth to 0 for pane and
7330 EmacsFrame. Frame size calculation is wrong otherwise.
7331
7332 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
7333
7334 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7335 allows to suppress errors when polling in Emacs' main loop.
7336 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7337 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7338 (Fdbus_method_error_internal, Fdbus_send_signal)
7339 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7340 (Fdbus_register_method): Use it. (Bug#6579)
7341
7342 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7343
7344 * alloc.c: Convert DEFUNs to standard C.
7345 * buffer.c:
7346 * bytecode.c:
7347 * callint.c:
7348 * callproc.c:
7349 * casefiddle.c:
7350 * casetab.c:
7351 * category.c:
7352 * character.c:
7353 * charset.c:
7354 * chartab.c:
7355 * cmds.c:
7356 * coding.c:
7357 * composite.c:
7358 * data.c:
7359 * dbusbind.c:
7360 * dired.c:
7361 * dispnew.c:
7362 * doc.c:
7363 * dosfns.c:
7364 * editfns.c:
7365 * emacs.c:
7366 * eval.c:
7367 * fileio.c:
7368 * filelock.c:
7369 * floatfns.c:
7370 * fns.c:
7371 * font.c:
7372 * fontset.c:
7373 * frame.c:
7374 * fringe.c:
7375 * image.c:
7376 * indent.c:
7377 * insdel.c:
7378 * keyboard.c:
7379 * keymap.c:
7380 * lread.c:
7381 * macros.c:
7382 * marker.c:
7383 * menu.c:
7384 * minibuf.c:
7385 * msdos.c:
7386 * nsfns.m:
7387 * nsmenu.m:
7388 * nsselect.m:
7389 * print.c:
7390 * process.c:
7391 * search.c:
7392 * sound.c:
7393 * syntax.c:
7394 * term.c:
7395 * terminal.c:
7396 * textprop.c:
7397 * undo.c:
7398 * w16select.c:
7399 * w32console.c:
7400 * w32fns.c:
7401 * w32font.c:
7402 * w32menu.c:
7403 * w32proc.c:
7404 * w32select.c:
7405 * window.c:
7406 * xdisp.c:
7407 * xfaces.c:
7408 * xfns.c:
7409 * xmenu.c:
7410 * xselect.c:
7411 * xsettings.c:
7412 * xsmfns.c: Likewise.
7413
7414 2010-07-08 Eli Zaretskii <eliz@gnu.org>
7415
7416 * process.c (kbd_is_on_hold, hold_keyboard_input)
7417 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7418
7419 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7420
7421 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7422 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7423 unless USE_LUCID.
7424
7425 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7426
7427 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7428 declaration.
7429
7430 Clean up include guards.
7431 * tparam.c: Remove include guards for config.h, string.h and code
7432 that assumes #ifndef emacs.
7433 * termcap.c:
7434 * unexalpha.c:
7435 * sysdep.c:
7436 * filemode.c:
7437 * filelock.c:
7438 * bidi.c: Likewise.
7439
7440 Remove prefix-args.c
7441 * prefix-args.c: Remove file.
7442 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7443 * Makefile.in (temacs${EXEEXT}): Remove references to
7444 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7445 (mostlyclean): Remove reference to prefix-args.
7446 (prefix-args): Remove.
7447
7448 Simplify cstart_of_data, start_of_code and related code.
7449 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7450 (start_of_data): Merge into start_of_data function.
7451 * sysdep.c (start_of_text): Remove. Move simplified versions of
7452 it in the only users: unexaix.c and unexec.c.
7453 (read_input_waiting): Remove local declaration of quit_char.
7454 (start, etext): Remove declarations.
7455 (start_of_data): Merge with the version in mem-limits.h and move
7456 to vm-limits.c.
7457 * vm-limit.c (start_of_data): Merged and simplified version of the
7458 code formerly in mem-limits.h and sysdep.c.
7459 * unexec.c (start): New declaration, moved from sysdep.c.
7460 (start_of_text): Simplified version of the code formerly in sysdep.c.
7461 * unexaix.c (start_of_text): Simplified version of the code
7462 formerly in sysdep.c.
7463 * m/alpha.h (HAVE_TEXT_START): Remove.
7464 (TEXT_START): Move ...
7465 * unexalpha.c (TEXT_START): ... here.
7466 * s/hpux10-20.h (TEXT_START): Remove.
7467 * s/darwin.h (TEXT_START):
7468 * m/mips.h (TEXT_START):
7469 * m/macppc.h (HAVE_TEXT_START):
7470 * m/m68k.h (TEXT_START):
7471 * m/iris4d.h (TEXT_START):
7472 * m/intel386.h (TEXT_START):
7473 * m/ibmrs6000.h (TEXT_START):
7474 * m/ia64.h (HAVE_TEXT_START):
7475 * s/msdos.h (TEXT_START): Likewise.
7476
7477 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7478
7479 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7480 (overrun_check_free, xstrdup, allocate_string)
7481 (allocate_string_data, compact_small_strings, Fmake_string)
7482 (make_unibyte_string, make_multibyte_string)
7483 (make_string_from_bytes, make_specified_string, make_float)
7484 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7485 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7486 memcpy, memmove, memset, memcmp.
7487 * atimer.c (start_atimer, set_alarm): Likewise.
7488 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7489 (mmap_realloc, init_buffer_once): Likewise.
7490 * callint.c (Fcall_interactively): Likewise.
7491 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7492 (getenv_internal_1): Likewise.
7493 * casefiddle.c (casify_object): Likewise.
7494 * ccl.c (ccl_driver): Likewise.
7495 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7496 * charset.c (load_charset_map_from_file)
7497 (load_charset_map_from_file, load_charset_map_from_vector)
7498 (Fdefine_charset_internal): Likewise.
7499 * cm.c (Wcm_clear): Likewise.
7500 * coding.c (decode_eol, decode_coding_object)
7501 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7502 * data.c (Faset): Likewise.
7503 * dired.c (directory_files_internal, file_name_completion_stat):
7504 Likewise.
7505 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7506 (clear_glyph_row, copy_row_except_pointers)
7507 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7508 (save_current_matrix, restore_current_matrix)
7509 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7510 (mirror_line_dance, scrolling_window): Likewise.
7511 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7512 Likewise.
7513 * doprnt.c (doprnt): Likewise.
7514 * editfns.c (Fuser_full_name, make_buffer_string_both)
7515 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7516 * emacs.c (sort_args): Likewise.
7517 * eval.c (Fapply, Ffuncall): Likewise.
7518 * fileio.c (Ffile_name_directory, make_temp_name)
7519 (Fexpand_file_name, search_embedded_absfilename)
7520 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7521 (auto_save_error): Likewise.
7522 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7523 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7524 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7525 (Fmake_hash_table): Likewise.
7526 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7527 * ftfont.c (ftfont_text_extents): Likewise.
7528 * getloadavg.c (getloadavg): Likewise.
7529 * image.c (define_image_type, make_image, make_image_cache)
7530 (x_create_x_image_and_pixmap, xbm_image_p)
7531 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7532 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7533 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7534 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7535 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7536 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7537 Likewise.
7538 * indent.c (scan_for_column, compute_motion): Likewise.
7539 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7540 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7541 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7542 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7543 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7544 (store_user_signal_events, menu_bar_items, tool_bar_items)
7545 (process_tool_bar_item, append_tool_bar_item)
7546 (read_char_minibuf_menu_prompt, read_key_sequence)
7547 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7548 Likewise.
7549 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7550 Likewise.
7551 * lisp.h (STRING_COPYIN): Likewise.
7552 * lread.c (Fload, read1, oblookup): Likewise.
7553 * msdos.c (Frecent_doskeys): Likewise.
7554 * nsfns.m (Fx_create_frame): Likewise.
7555 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7556 Likewise.
7557 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7558 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7559 Likewise.
7560 * nsmenu.m (ns_update_menubar): Likewise.
7561 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7562 * print.c (print_unwind, printchar, strout, print_string)
7563 (print_error_message): Likewise.
7564 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7565 (Fmake_network_process, Fnetwork_interface_list)
7566 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7567 (init_process): Likewise.
7568 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7569 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7570 Likewise.
7571 * scroll.c (do_scrolling, do_direct_scrolling)
7572 (scrolling_max_lines_saved): Likewise.
7573 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7574 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7575 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7576 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7577 (emacs_set_tty): Likewise.
7578 * term.c (encode_terminal_code, calculate_costs)
7579 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7580 Likewise.
7581 * termcap.c (tgetst1, gobble_line): Likewise.
7582 * termhooks.h (EVENT_INIT): Likewise.
7583 * tparam.c (tparam1): Likewise.
7584 * unexalpha.c (unexec): Likewise.
7585 * unexec.c (write_segment): Likewise.
7586 * unexmacosx.c (unexec_write_zero): Likewise.
7587 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7588 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7589 * w32font.c (w32font_list_family, w32font_text_extents)
7590 (w32font_list_internal, w32font_match_internal)
7591 (w32font_open_internal, compute_metrics, Fx_select_font):
7592 Likewise.
7593 * w32menu.c (set_frame_menubar, add_menu_item)
7594 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7595 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7596 * w32uniscribe.c (uniscribe_list_family): Likewise.
7597 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7598 * window.c (make_window, replace_window, set_window_buffer)
7599 (Fsplit_window): Likewise.
7600 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7601 (add_to_log, message3, x_consider_frame_title)
7602 (append_space_for_newline, extend_face_to_end_of_line)
7603 (decode_mode_spec_coding, init_glyph_string): Likewise.
7604 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7605 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7606 (face_attr_equal_p, make_realized_face, make_face_cache)
7607 (free_realized_faces, lookup_named_face, smaller_face)
7608 (face_with_height, lookup_derived_face)
7609 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7610 (Finternal_set_font_selection_order, realize_default_face)
7611 (compute_char_face, face_at_buffer_position)
7612 (face_for_overlay_string, face_at_string_position, merge_faces):
7613 Likewise.
7614 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7615 (Fx_window_property, x_create_tip_frame)
7616 (Fx_backspace_delete_keys_p): Likewise.
7617 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7618 (xfont_text_extents): Likewise.
7619 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7620 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7621 * xselect.c (x_queue_event, x_get_window_property)
7622 (receive_incremental_selection): Likewise.
7623 * xsmfns.c (x_session_check_input): Likewise.
7624 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7625 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7626 Likewise.
7627 * character.h (BCOPY_SHORT): Removed.
7628 * config.in: Regenerate.
7629 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7630 * emacs.c (main) [PROFILING]: Don't declare
7631 dump_opcode_frequencies.
7632 * lisp.h (safe_bcopy): Remove declaration.
7633 (memset) [!HAVE_MEMSET]: Declare.
7634 (memcpy) [!HAVE_MEMCPY]: Likewise.
7635 (memmove) [!HAVE_MEMMOVE]: Likewise.
7636 (memcmp) [!HAVE_MEMCMP]: Likewise.
7637 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7638 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7639 Don't define.
7640 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7641 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7642 (BCOPY_DOWNWARD_SAFE): Don't define.
7643 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7644 (memcpy) [!HAVE_MEMCPY]: Define.
7645 (memmove) [!HAVE_MEMMOVE]: Define.
7646 (memcmp) [!HAVE_MEMCMP]: Define.
7647
7648 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7649
7650 * process.c (kbd_is_on_hold): New variable.
7651 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7652 New functions.
7653 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7654 select on empty input mask.
7655 (init_process): Initialize kbd_is_on_hold to 0.
7656
7657 * process.h (hold_keyboard_input, unhold_keyboard_input)
7658 (kbd_on_hold_p): Declare.
7659
7660 * keyboard.c (input_available_signal): Declare.
7661 (kbd_buffer_nr_stored): New function.
7662 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7663 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7664 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7665 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7666 (tty_read_avail_input): If input is on hold, return.
7667 Don't read more that free slots in kbd_buffer (Bug#6571).
7668
7669 2010-07-07 Eli Zaretskii <eliz@gnu.org>
7670
7671 * msdos.h:
7672 * msdos.c:
7673 * dosfns.c:
7674 * w16select.c: Convert function definitions to ANSI C.
7675
7676 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7677 Remove unused prototypes.
7678
7679 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7680
7681 * coding.c, sysdep.c: Convert some more functions to standard C.
7682
7683 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7684
7685 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7686 (encode_coding_object): Use SPECPDL_INDEX.
7687 (syms_of_coding): Use DOS_NT.
7688
7689 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7690
7691 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7692
7693 Make the function member of Lisp_Subr use standard C prototypes.
7694 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7695 (DECL_ALIGN): Add a cast for the function.
7696 * eval.c (Feval, Ffuncall): Use the proper type for each type
7697 function call.
7698
7699 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
7700
7701 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7702 fringe face id, so face-remapping-alist works (Bug#6091).
7703
7704 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
7705
7706 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7707 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7708 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7709
7710 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7711
7712 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7713 * lisp.h: Declare x_get_keysym_name.
7714 * keyboard.c (modify_event_symbol): Don't declare
7715 x_get_keysym_name here.
7716
7717 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7718
7719 * ecrt0.c: Revert conversion to standard C.
7720
7721 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7722
7723 * vm-limit.c (memory_warnings):
7724 * keyboard.c (modify_event_symbol):
7725 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7726 (round2, emacs_rint):
7727 * process.c (send_process, old_sigpipe): Convert function
7728 definitions and declarations to standard C.
7729
7730 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
7731
7732 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7733 * xdisp.c: Convert function definitions to standard C.
7734
7735 * cm.c (cmputc): Arg C is now int, not char.
7736 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7737
7738 2010-07-05 James Cloos <cloos@jhcloos.com>
7739
7740 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7741
7742 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7743 _NET_WM_ICON_NAME atoms.
7744
7745 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7746 and _NET_WM_ICON_NAME properties, too, matching what is
7747 done in the Gtk+ case.
7748
7749 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7750
7751 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7752
7753 * xsmfns.c (SSDATA): New macro.
7754 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7755 passed to strlen/strcpy/strcat.
7756 (create_client_leader_window): Surround with #ifndef USE_GTK.
7757 Cast 7:th arg to XChangeProperty to (unsigned char *).
7758
7759 * xsettings.c (something_changedCB, parse_settings)
7760 (apply_xft_settings): Reformat prototype.
7761 (something_changedCB, init_gconf): Remove unused variable i.
7762 (read_settings): Remove unused variable long_len.
7763
7764 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7765 (xg_get_image_for_pixmap, create_dialog)
7766 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7767 (menuitem_highlight_callback, make_menu_item)
7768 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7769 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7770 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7771 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7772 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7773 (xg_tool_bar_item_expose_callback): Reformat prototype.
7774 (xg_update_menubar): GList *group => GSList *group.
7775 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7776 before use.
7777 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7778 to GTK_IMAGE (wimage).
7779
7780 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7781
7782 * atimer.c: Use "" instead of <> for local includes for
7783 consistency with the rest of the code.
7784
7785 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7786 * xrdb.c (get_system_name):
7787 * window.c (shrink_windows):
7788 * syntax.c (forw_comment):
7789 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7790 (ins_del_costs):
7791 * mem-limits.h (start_of_data):
7792 * lread.c (readevalloop):
7793 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7794 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7795 * frame.c (x_get_focus_frame):
7796 * floatfns.c (fmod_float):
7797 * fileio.c (choose_write_coding_system):
7798 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7799 (malloc_initialize_hook, sort_args, synchronize_locale):
7800 * doprnt.c (doprnt):
7801 * dired.c (compile_pattern):
7802 * data.c (fmod_float):
7803 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7804 (map_char_table_for_charset):
7805 * charset.c (define_charset_internal):
7806 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7807 to standard C.
7808
7809 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
7810 Stefan Monnier <monnier@iro.umontreal.ca>
7811
7812 * lread.c (read1): Fix up last change to not mess up `c'.
7813
7814 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7815
7816 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7817
7818 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7819
7820 Fix prototypes.
7821
7822 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
7823 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
7824 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7825 arg, as required by internal_condition_case_1.
7826 * print.c (strout): Use const char* for arg PTR.
7827 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7828 (analyse_first): Fix "const const".
7829 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
7830 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
7831 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
7832
7833 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7834
7835 * alloc.c: Convert function definitions to standard C.
7836 * atimer.c:
7837 * bidi.c:
7838 * bytecode.c:
7839 * callint.c:
7840 * callproc.c:
7841 * casefiddle.c:
7842 * casetab.c:
7843 * category.c:
7844 * ccl.c:
7845 * character.c:
7846 * charset.c:
7847 * chartab.c:
7848 * cmds.c:
7849 * coding.c:
7850 * composite.c:
7851 * data.c:
7852 * dbusbind.c:
7853 * dired.c:
7854 * dispnew.c:
7855 * doc.c:
7856 * doprnt.c:
7857 * ecrt0.c:
7858 * editfns.c:
7859 * fileio.c:
7860 * filelock.c:
7861 * filemode.c:
7862 * fns.c:
7863 * font.c:
7864 * fontset.c:
7865 * frame.c:
7866 * fringe.c:
7867 * ftfont.c:
7868 * ftxfont.c:
7869 * gtkutil.c:
7870 * indent.c:
7871 * insdel.c:
7872 * intervals.c:
7873 * keymap.c:
7874 * lread.c:
7875 * macros.c:
7876 * marker.c:
7877 * md5.c:
7878 * menu.c:
7879 * minibuf.c:
7880 * prefix-args.c:
7881 * print.c:
7882 * ralloc.c:
7883 * regex.c:
7884 * region-cache.c:
7885 * scroll.c:
7886 * search.c:
7887 * sound.c:
7888 * strftime.c:
7889 * syntax.c:
7890 * sysdep.c:
7891 * termcap.c:
7892 * terminal.c:
7893 * terminfo.c:
7894 * textprop.c:
7895 * tparam.c:
7896 * undo.c:
7897 * unexelf.c:
7898 * window.c:
7899 * xfaces.c:
7900 * xfns.c:
7901 * xfont.c:
7902 * xftfont.c:
7903 * xgselect.c:
7904 * xmenu.c:
7905 * xrdb.c:
7906 * xselect.c:
7907 * xsettings.c:
7908 * xsmfns.c:
7909 * xterm.c: Likewise.
7910
7911 2010-07-03 Eli Zaretskii <eliz@gnu.org>
7912
7913 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7914 frames other than the initial one. Fix reversal of colors when
7915 `reverse' is specified in the frame parameters.
7916 Call update_face_from_frame_parameter instead of
7917 internal-set-lisp-face-attribute. Initialize screen colors from
7918 initial_screen_colors[] when f->default_face_done_p is zero,
7919 instead of depending on being called with default-frame-alist as
7920 the alist argument.
7921
7922 * xfaces.c (update_face_from_frame_parameter): Move out of
7923 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7924 with HAVE_WINDOW_SYSTEM.
7925
7926 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7927 to menu-bar-mode, if not set in the frame parameters or in
7928 default-frame-alist.
7929
7930 * w32console.c (sys_tputs): Adjust argument list to prototype in
7931 term.c.
7932
7933 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
7934
7935 * lisp.h (memory_warnings): Fix prototype.
7936
7937 * cm.h (evalcost): Fix prototype.
7938
7939 * cm.c (evalcost): Fix arg type.
7940
7941 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7942
7943 * term.c (term_clear_mouse_face, Fidentity):
7944 * syssignal.h (signal_handler_t):
7945 * lisp.h (memory_warnings):
7946 * coding.h (preferred_coding_system):
7947 * cm.h (evalcost):
7948 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7949
7950 2010-07-02 Eli Zaretskii <eliz@gnu.org>
7951
7952 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7953 from prototypes.
7954
7955 * msdos.h (load_pixmap): Don't define away.
7956
7957 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7958
7959 * lisp.h:
7960 * atimer.h: Remove define for P_.
7961
7962 * alloc.c: Remove __P and P_ from .c and .m files.
7963 * atimer.c:
7964 * buffer.c:
7965 * callint.c:
7966 * category.c:
7967 * charset.c:
7968 * chartab.c:
7969 * cm.c:
7970 * coding.c:
7971 * composite.c:
7972 * data.c:
7973 * dired.c:
7974 * dispnew.c:
7975 * doc.c:
7976 * editfns.c:
7977 * emacs.c:
7978 * eval.c:
7979 * fileio.c:
7980 * filelock.c:
7981 * fns.c:
7982 * font.c:
7983 * fontset.c:
7984 * frame.c:
7985 * ftfont.c:
7986 * ftxfont.c:
7987 * gmalloc.c:
7988 * gtkutil.c:
7989 * image.c:
7990 * indent.c:
7991 * intervals.c:
7992 * keyboard.c:
7993 * keymap.c:
7994 * lread.c:
7995 * marker.c:
7996 * menu.c:
7997 * minibuf.c:
7998 * print.c:
7999 * process.c:
8000 * scroll.c:
8001 * search.c:
8002 * sound.c:
8003 * strftime.c:
8004 * syntax.c:
8005 * sysdep.c:
8006 * term.c:
8007 * terminal.c:
8008 * textprop.c:
8009 * unexalpha.c:
8010 * w32console.c:
8011 * w32fns.c:
8012 * w32font.c:
8013 * w32menu.c:
8014 * w32term.c:
8015 * w32uniscribe.c:
8016 * window.c:
8017 * xdisp.c:
8018 * xfaces.c:
8019 * xfns.c:
8020 * xfont.c:
8021 * xftfont.c:
8022 * xmenu.c:
8023 * xselect.c:
8024 * xterm.c: Likewise.
8025
8026 Remove P_ and __P macros.
8027 * atimer.h: Remove P_ and __P macros.
8028 * buffer.h:
8029 * category.h:
8030 * ccl.h:
8031 * character.h:
8032 * charset.h:
8033 * cm.h:
8034 * coding.h:
8035 * composite.h:
8036 * dispextern.h:
8037 * disptab.h:
8038 * dosfns.h:
8039 * font.h:
8040 * fontset.h:
8041 * frame.h:
8042 * gtkutil.h:
8043 * indent.h:
8044 * intervals.h:
8045 * keyboard.h:
8046 * keymap.h:
8047 * lisp.h:
8048 * macros.h:
8049 * md5.h:
8050 * menu.h:
8051 * msdos.h:
8052 * nsterm.h:
8053 * puresize.h:
8054 * region-cache.h:
8055 * syntax.h:
8056 * syssignal.h:
8057 * systime.h:
8058 * termhooks.h:
8059 * w32font.h:
8060 * w32term.h:
8061 * widget.h:
8062 * window.h:
8063 * xgselect.h:
8064 * xsettings.h:
8065 * xterm.h: Likewise.
8066
8067 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8068
8069 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8070
8071 Cleanup old code.
8072 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8073 * syssignal.h: Remove code for Lynx, not supported anymore.
8074 * vm-limit.c: Remove unused code the depends on emacs not being
8075 defined and NO_LIM_DATA being defined.
8076 * mem-limits.h: Remove dead code.
8077
8078 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8079
8080 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8081
8082 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8083 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8084
8085 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8086 parameters, they are already absolute.
8087
8088 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8089 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
8090
8091 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
8092
8093 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8094 Update FRAME_TOOLBAR_HEIGHT.
8095
8096 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8097 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
8098
8099 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
8100
8101 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8102 Don't check default-frame-alist.
8103
8104 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8105
8106 * process.c (create_process): Avoid using invalid file descriptors.
8107
8108 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8109
8110 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8111
8112 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8113 Improve documentation. Return font regardless of use_system_font.
8114 (syms_of_xsettings): Improve documentation for font-use-system-font.
8115
8116 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
8117
8118 * xfaces.c (realize_face): Garbage the frame if a face is removed
8119 (Bug#6593).
8120
8121 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8122
8123 * keyboard.c: Remove duplicate <setjmp.h>.
8124 (read_key_sequence): Remove volatile qualifiers.
8125
8126 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8127
8128 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8129 (struct glyph_row): New members left_fringe_offset and
8130 right_fringe_offset.
8131
8132 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8133 specially.
8134 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8135 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8136
8137 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
8138 Take account of bitmap offset.
8139 (draw_window_fringes): Take account of window vscroll.
8140 (update_window_fringes): Likewise. Extend top-aligned top indicator
8141 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8142 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8143 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8144
8145 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8146
8147 * w32fns.c (Qtooltip): Declare.
8148 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8149
8150 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8151
8152 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8153 grab on just Press (Bug#6499).
8154
8155 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
8156
8157 * frame.c (Qtooltip): New var.
8158 (delete_frame): Use it. Fix faulty if statement. Don't update
8159 mode line for tooltip frames. Suggested by Martin Rudalics.
8160
8161 * xfns.c (x_create_tip_frame):
8162 * w32fns.c (x_create_tip_frame): Use it.
8163
8164 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
8165
8166 * xftfont.c (xftfont_open): Check font width one by one also when
8167 spacing is dual.
8168
8169 * ftfont.c (ftfont_open): Ditto.
8170
8171 2010-06-30 Glenn Morris <rgm@gnu.org>
8172
8173 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8174
8175 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8176
8177 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8178 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8179 * s/darwin.h (SYSTEM_MALLOC):
8180 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8181
8182 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8183
8184 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8185 (ns_get_screen): Don't assign integer to f.
8186 (Fx_display_color_cells): Declarations before statements.
8187
8188 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8189
8190 * xfns.c (x_default_font_parameter): Remove got_from_system
8191 (Bug#6526).
8192
8193 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
8194 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8195 New defines based on what configure finds.
8196
8197 * xterm.c (XTflash): Use gtk_widget_get_window.
8198 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8199 gtk_adjustment_get_page_size.
8200 (handle_one_xevent): Use gtk_widget_get_mapped.
8201 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8202 messages.
8203
8204 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8205
8206 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8207 HAVE_GTK_FILE_SELECTION_NEW.
8208
8209 * gtkutil.c (xg_display_open, xg_display_close):
8210 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
8211 (xg_display_open): Return type is void.
8212 (gtk_widget_set_has_window)
8213 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8214 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8215 (gtk_adjustment_set_page_increment)
8216 (gtk_adjustment_get_step_increment): #define these if not found
8217 by configure.
8218 (remove_submenu): New define based on Gtk+ version.
8219 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8220 Use gtk_widget_get_window.
8221 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8222 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8223 (create_dialog): Use gtk_dialog_get_action_area and
8224 gtk_dialog_get_content_area.
8225 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8226 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8227 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
8228 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8229 Use g_object_ref and g_object_unref.
8230 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8231 Use gtk_widget_get_sensitive.
8232 (xg_update_submenu): Use remove_submenu.
8233 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8234 properties instead to get old x and y position.
8235 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8236 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
8237 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
8238 (xg_get_tool_bar_widgets): New function.
8239 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8240 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8241 (toolbar_set_orientation): New #define based on if configure
8242 finds gtk_orientable_set_orientation.
8243 (xg_create_tool_bar): Call toolbar_set_orientation.
8244 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8245 instead of gtk_box_pack_start_defaults.
8246
8247 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
8248
8249 * cmds.c (Fdelete_backward_char): Move into Lisp.
8250
8251 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8252
8253 * s/freebsd.h (BSD4_2): Remove redundant definition.
8254 bsd-common.h defines it already.
8255
8256 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
8257
8258 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8259 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8260 tool-bar-mode, which are now set using these X resources at
8261 startup, to determine the defaults (Bug#2249).
8262
8263 * w32fns.c (Fx_create_frame):
8264 * nsfns.m (Fx_create_frame): Likewise.
8265
8266 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8267
8268 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
8269
8270 * gtkutil.c (xg_update_scrollbar_pos):
8271 Avoid C99 mid-block variable declaration.
8272
8273 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8274
8275 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8276
8277 * gtkutil.h (xg_show_scroll_bar): Remove.
8278
8279 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8280 if height is less than scroll bar min size.
8281 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8282
8283 * xfns.c (x_default_font_parameter): Try to open font from system
8284 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8285
8286 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
8287
8288 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8289
8290 2010-06-20 Eli Zaretskii <eliz@gnu.org>
8291
8292 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8293 most-positive-fixnum, be extra accurate when scrolling window
8294 start, to avoid missing the cursor line.
8295
8296 2010-06-19 Eli Zaretskii <eliz@gnu.org>
8297
8298 * xdisp.c (try_scrolling): Compute the limit for searching point
8299 in forward scroll from scroll_max, instead of an arbitrary limit
8300 of 10 screen lines.
8301 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
8302 and
8303 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8304 for details.
8305
8306 2010-06-16 Glenn Morris <rgm@gnu.org>
8307
8308 * editfns.c (Fbyte_to_string): Pacify compiler.
8309
8310 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8311
8312 * lread.c (read1): Phase out old-style backquotes a bit more.
8313
8314 2010-06-12 Eli Zaretskii <eliz@gnu.org>
8315
8316 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8317 bidimirror.h.
8318
8319 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8320
8321 * bidi.c (bidi_initialize): Remove explicit initialization of
8322 bidi_type_table; include biditype.h instead. Don't support
8323 entries whose second codepoint is zero. Initialize bidi_mirror_table.
8324 (bidi_mirror_char): Use bidi_mirror_table.
8325
8326 * biditype.h: New file.
8327
8328 * bidimirror.h: New file.
8329
8330 * window.c (syms_of_window): Doc fix (bug#6409).
8331
8332 2010-06-12 Romain Francoise <romain@orebokech.com>
8333
8334 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8335 ediff-hook.
8336
8337 2010-06-10 Glenn Morris <rgm@gnu.org>
8338
8339 * editfns.c (Fbyte_to_string): Pacify compiler.
8340
8341 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8342
8343 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8344
8345 * alloc.c (Fmake_byte_code): Don't access undefined argument
8346 (Bug#6517).
8347
8348 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
8349
8350 * xdisp.c (next_element_from_image): Ensure that after-strings are
8351 read the next time we hit handle_stop (Bug#1336).
8352
8353 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8354
8355 * lread.c (read1): Signal error if #s is not followed by paren.
8356
8357 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
8358
8359 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8360
8361 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8362
8363 2010-06-15 Glenn Morris <rgm@gnu.org>
8364
8365 * editfns.c (Fbyte_to_string): Pacify compiler.
8366
8367 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8368
8369 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8370 Check `object's type before accessing its guts.
8371
8372 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8373
8374 * s/usg5-4.h: Fix previous change.
8375 Suggested by Lawrence Mitchell <wence@gmx.li>
8376
8377 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8378
8379 * minibuf.c (Fall_completions): Add more checks.
8380
8381 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
8382
8383 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8384
8385 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8386
8387 * lread.c (X_OK): Remove, unused.
8388
8389 * dispnew.c: Remove obsolete comment.
8390
8391 Remove INCLUDED_FCNTL.
8392 * xterm.c (INCLUDED_FCNTL):
8393 * callproc.c (INCLUDED_FCNTL):
8394 * alloc.c (INCLUDED_FCNTL):
8395 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8396 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8397
8398 2010-06-07 Martin Rudalics <rudalics@gmx.at>
8399
8400 * window.c (Fselect_window): Move `record_buffer' up to the
8401 beginning of this function, so the buffer gets recorded
8402 even if the selected window does not change.
8403 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8404
8405 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
8406
8407 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8408 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8409
8410 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8411
8412 Remove BSTRING related code, all platforms define it.
8413 * s/usg5-4.h (BSTRING): Remove definition.
8414 * s/template.h (BSTRING):
8415 * s/msdos.h (BSTRING):
8416 * s/ms-w32.h (BSTRING):
8417 * s/hpux10-20.h (BSTRING):
8418 * s/gnu-linux.h (BSTRING):
8419 * s/darwin.h (BSTRING):
8420 * s/cygwin.h (BSTRING):
8421 * s/bsd-common.h (BSTRING):
8422 * s/aix4-2.h (BSTRING): Likewise.
8423 * sysdep.c: Remove code depending on BSTRING not being defined.
8424
8425 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
8426
8427 Remove obsolete macro BASE_LEADING_CODE_P.
8428 * character.h (BASE_LEADING_CODE_P): Remove.
8429 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8430 * buffer.c (Fset_buffer_multibyte):
8431 * indent.c (scan_for_column, compute_motion):
8432 * insdel.c (count_combining_before, count_combining_after):
8433 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8434
8435 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
8436
8437 Turn `directory-sep-char' into a noop.
8438
8439 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8440 (DIRECTORY_SEP): Define unconditionally.
8441
8442 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8443
8444 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8445 call dostounix_filename directly.
8446
8447 * fileio.c (CORRECT_DIR_SEPS): Remove.
8448 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8449 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8450 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8451 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8452
8453 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8454 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8455
8456 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8457
8458 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8459 (Bug#6346)
8460
8461 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8462
8463 * ccl.c (Fccl_program_p): Fix typo in docstring.
8464
8465 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8466
8467 Move UNEXEC definition to autoconf.
8468 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8469 * s/sol2-10.h (UNEXEC):
8470 * s/irix6-5.h (UNEXEC):
8471 * s/hpux10-20.h (UNEXEC):
8472 * s/gnu-linux.h (UNEXEC):
8473 * s/darwin.h (UNEXEC):
8474 * s/cygwin.h (UNEXEC):
8475 * s/bsd-common.h (UNEXEC):
8476 * s/aix4-2.h (UNEXEC):
8477 * m/alpha.h (UNEXEC): Likewise.
8478 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8479
8480 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8481
8482 Remove obsolete pre-unicode2 macros.
8483 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8484 * composite.c (composition_reseat_it):
8485 * data.c (Faset):
8486 * fns.c (Ffillarray):
8487 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8488 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8489
8490 2010-06-03 Juri Linkov <juri@jurta.org>
8491
8492 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8493 (Fswitch_to_buffer): Remove unused variable `err'.
8494
8495 2010-06-03 Glenn Morris <rgm@gnu.org>
8496
8497 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8498
8499 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8500 now that AH_BOTTOM does it.
8501
8502 * m/hp800.h (HAVE_ALLOCA):
8503 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8504
8505 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8506 Remove NOT_C_CODE tests, it is always true now.
8507
8508 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8509
8510 Fix config.h includes.
8511 * xsettings.c:
8512 * xgselect.c:
8513 * nsterm.m:
8514 * nsselect.m:
8515 * nsimage.m:
8516 * nsfont.m:
8517 * nsfns.m:
8518 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8519 other files do.
8520
8521 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8522
8523 * s/sol2-6.h: Remove obsolete comments.
8524
8525 Remove unnecessary alloca.h includes.
8526 * keymap.c: Do not include alloca.h, config.h does that.
8527 * sysdep.c: Likewise. Do not define fwrite, not used.
8528
8529 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8530
8531 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8532 the HAVE_TERMIO where it belongs (bug#6149).
8533
8534 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8535
8536 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8537 of bug#6305).
8538
8539 2010-05-30 Eli Zaretskii <eliz@gnu.org>
8540
8541 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8542 state is always cached (bug#6306).
8543
8544 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8545
8546 Fix cursor motion in bidi-reordered continued lines.
8547 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8548 only after finding point's row. Fix the logic. Rewrite the loop
8549 over continuation lines in bidi-reordered buffers.
8550 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8551 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8552
8553 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
8554
8555 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8556
8557 2010-05-28 Kenichi Handa <handa@m17n.org>
8558
8559 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8560 Don't sheck SPEC if it is nil.
8561 (font_list_entities): Call font_delete_unmatched if
8562 Vface_ignored_fonts is non-nil. (Bug#6287)
8563
8564 2010-05-28 Glenn Morris <rgm@gnu.org>
8565
8566 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8567
8568 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8569
8570 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8571 whether to trash.
8572 (internal_delete_file, Frename_file): Callers changed.
8573 (delete_by_moving_to_trash): Doc fix.
8574 (Fdelete_directory_internal): Don't move to trash.
8575
8576 * callproc.c (delete_temp_file):
8577 * buffer.c (Fkill_buffer): Callers changed.
8578
8579 * lisp.h: Update prototype.
8580
8581 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8582
8583 * xdisp.c (redisplay_window): After redisplay, check if point is
8584 still valid before setting it (Bug#6177).
8585
8586 2010-05-27 Glenn Morris <rgm@gnu.org>
8587
8588 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8589 Convert comments to Makefile format.
8590
8591 * Makefile.in (bootstrap-clean): No more Makefile.c.
8592
8593 2010-05-26 Glenn Morris <rgm@gnu.org>
8594
8595 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8596 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8597
8598 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8599 Remove.
8600 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8601
8602 2010-05-26 Kenichi Handa <handa@m17n.org>
8603
8604 * composite.c (composition_compute_stop_pos): Fix condition for
8605 backward scanning.
8606
8607 2010-05-25 Glenn Morris <rgm@gnu.org>
8608
8609 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8610 Move before TEMACS_LDFLAGS.
8611 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8612 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8613
8614 * Makefile.in (NOT_C_CODE): No longer define.
8615 (config.h): No longer include.
8616
8617 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8618 variables it may reference.
8619
8620 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8621 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8622
8623 2010-05-25 Kenichi Handa <handa@m17n.org>
8624
8625 * dispextern.h (struct composition_it): New members rule_idx and
8626 charpos.
8627
8628 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8629 that the character positions of IT point the last character of the
8630 current grapheme cluster.
8631 (next_element_from_composition): Don't change character positions
8632 of IT.
8633 (append_composite_glyph): Set glyph->charpos to
8634 it->cmp_it.charpos.
8635
8636 * composite.c (autocmp_chars): Change the first argument to RULE,
8637 and try composition with RULE only.
8638 (composition_compute_stop_pos): Record the index number of the
8639 composition rule in CMP_IT->rule_idx.
8640 (composition_reseat_it): Call autocmp_chars repeatedly until the
8641 correct rule of the composition is found.
8642 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8643 is at the last character of the current grapheme cluster when
8644 CMP_IT->reversed_p is nonzero.
8645
8646 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8647
8648 * editfns.c (Fbyte_to_string): New function.
8649
8650 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8651
8652 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8653 Suggested by Masatake YAMATO <yamato@redhat.com>.
8654
8655 2010-05-23 Eli Zaretskii <eliz@gnu.org>
8656
8657 * dispextern.h (init_iterator): Sync prototype with changed definition.
8658
8659 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8660
8661 * s/netbsd.h: If terminfo is found, use it in preference to
8662 termcap. (Bug#6190) [Backport from trunk]
8663
8664 2010-05-19 Eli Zaretskii <eliz@gnu.org>
8665
8666 Redesign and reimplement bidi-aware edge positions of glyph rows.
8667
8668 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8669 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8670 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8671 and maxpos members instead of start.pos and end.pos, respectively.
8672
8673 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8674 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8675 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
8676 (try_window_reusing_current_matrix, try_window_id):
8677 Use ROW->minpos rather than ROW->start.pos.
8678 (init_from_display_pos, init_iterator): Use EMACS_INT for
8679 character and byte positions.
8680 (find_row_edges): Rename from find_row_end. Accept additional
8681 arguments for minimum and maximum buffer positions seen by
8682 display_line for this row. Don't use iterator to find the
8683 position following the maximum one; instead, increment the
8684 position found by display_line directly. Fix logic; eol_pos
8685 should be tested before the rest. Handle the case of characters
8686 delivered from display vector (bug#6036). Fix tests related to
8687 it->method. Handle the truncated_on_right_p rows.
8688 (RECORD_MAX_MIN_POS): New macro.
8689 (display_line): Use it to record the minimum and maximum buffer
8690 positions for glyphs in the row being assembled. Record the
8691 position of the newline that terminates the line. If word wrap is
8692 in effect, restore minimum and maximum positions seen up to the
8693 wrap point, when iterator returns to it.
8694 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8695 row and cursor not already at point. Restore original pre-bidi
8696 code for unidirectional buffers.
8697
8698 * dispnew.c (increment_row_positions, check_matrix_invariants):
8699 Increment and check row->start.pos and row->end.pos, in addition
8700 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8701
8702 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8703 Display truncated_on_left_p and truncated_on_right_p flags.
8704 Formatting fixes.
8705 (pmtxrows): Display the ordinal number of each row. Don't display
8706 rows beyond the last one.
8707
8708 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8709 it is not copied by bidi_copy_it.
8710
8711 2010-05-22 Eli Zaretskii <eliz@gnu.org>
8712
8713 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8714 (Bug#6237)
8715
8716 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
8717
8718 * image.c (Fimage_flush): Rename from image-refresh.
8719
8720 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
8721
8722 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8723 just one window.
8724
8725 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8726 (clear_image_cache): If the number of cached images is unusually
8727 large, decrease the cache eviction delay (Bug#6230).
8728
8729 2010-05-21 Glenn Morris <rgm@gnu.org>
8730
8731 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8732 Move these rules to ns.mk.
8733 * ns.mk: New file.
8734
8735 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8736
8737 * Makefile.in (CANNOT_DUMP): New, set by configure.
8738 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8739
8740 2010-05-20 Juri Linkov <juri@jurta.org>
8741
8742 * fileio.c (Fdelete_file): Change interative spec to use
8743 `read-file-name' like in `find-file-read-args' where the default
8744 value is `default-directory' instead of `buffer-file-name'.
8745 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8746
8747 2010-05-20 Kevin Ryde <user42@zip.com.au>
8748
8749 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8750 (Voverriding_terminal_local_map, Vsystem_key_alist)
8751 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8752
8753 2010-05-20 Glenn Morris <rgm@gnu.org>
8754
8755 * Makefile.in (DEPDIR): New constant.
8756 (DEPFLAGS): Set with configure, not cpp.
8757 (MKDEPDIR): New, set by configure.
8758 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8759 (clean): Use $DEPDIR.
8760 (deps_frag): Include from configure.
8761 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8762 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8763
8764 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8765 Fix reallocation of the cache. (Bug#6210)
8766
8767 2010-05-19 Glenn Morris <rgm@gnu.org>
8768
8769 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8770
8771 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8772 (GNULIB_VAR): Remove.
8773 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8774
8775 * m/ibms390x.h (LINKER):
8776 * m/macppc.h (LINKER) [GNU_LINUX]:
8777 * s/aix4-2.h (ORDINARY_LINK):
8778 * s/cygwin.h (LINKER):
8779 * s/darwin.h (ORDINARY_LINK):
8780 * s/gnu.h (ORDINARY_LINK):
8781 * s/netbsd.h (LINKER):
8782 * s/usg5-4.h (ORDINARY_LINK):
8783 Move to configure.
8784
8785 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8786
8787 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
8788
8789 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8790 prevent stack overflow if number of arguments is too large
8791 (Bug#6214).
8792
8793 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
8794
8795 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8796
8797 2010-05-18 Glenn Morris <rgm@gnu.org>
8798
8799 * s/gnu-linux.h: Combine two conditionals.
8800
8801 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
8802 $(POST_ALLOC_OBJ).
8803
8804 * Makefile.in (RALLOC_OBJ): New, set by configure.
8805 (rallocobj): Replace with the previous variable.
8806 (otherobj): Use $RALLOC_OBJ.
8807
8808 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8809 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8810
8811 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8812 (gmallocobj, vmlimitobj): Replace with previous two variables.
8813 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8814
8815 2010-05-17 Glenn Morris <rgm@gnu.org>
8816
8817 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8818 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8819
8820 2010-05-16 Glenn Morris <rgm@gnu.org>
8821
8822 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8823
8824 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8825
8826 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8827 trailing "/".
8828
8829 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8830 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8831
8832 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8833 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8834 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8835 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8836 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8837
8838 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8839 Remove ${STARTFLAGS}, nothing ever sets it.
8840
8841 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8842
8843 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8844
8845 2010-05-16 Glenn Morris <rgm@gnu.org>
8846
8847 * Makefile.in (LIBX_BASE): Always define.
8848
8849 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8850
8851 * Makefile.in (LIBXT): Always define.
8852
8853 2010-05-15 Glenn Morris <rgm@gnu.org>
8854
8855 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
8856
8857 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8858 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8859
8860 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
8861
8862 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
8863 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8864
8865 * emacs.c (main): Initialize initial-environment and
8866 process-environment before generating from env, not after.
8867
8868 Handle --version reasonably in CANNOT_DUMP configuration.
8869 * emacs.c (emacs_version, emacs_copyright): New string variables.
8870 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8871 (syms_of_emacs): Defvar them, and initialize them from the C
8872 string variables.
8873 (main): If initialization hasn't been done, print initial version
8874 info from the C strings, instead of starting an interactive session.
8875
8876 2010-05-15 Eli Zaretskii <eliz@gnu.org>
8877
8878 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8879 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
8880 (bidi_paragraph_init): Remove redundant assertion that we are at
8881 the beginning of a line after call to bidi_find_paragraph_start.
8882
8883 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8884 (syms_of_xdisp): Defsubr it.
8885
8886 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8887
8888 * Makefile.in: Fix MSDOS-related comments.
8889
8890 2010-05-15 Glenn Morris <rgm@gnu.org>
8891
8892 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8893 (really-lwlib, really-oldXMenu): Always define.
8894 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8895
8896 * Makefile.in: Simplify cpp conditional.
8897
8898 * Makefile.in (${ns_appdir}): Simplify using umask.
8899
8900 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8901
8902 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8903
8904 * eval.c (specbind): Remove left-over duplicate test.
8905 Disallow let-binding frame-local vars. Add comment.
8906
8907 2010-05-14 Eli Zaretskii <eliz@gnu.org>
8908
8909 Make the cache of bidi iterator states dynamically allocated.
8910 * bidi.c (bidi_cache_shrink): New function.
8911 (bidi_init_it): Call it.
8912 (bidi_cache_iterator_state): Enlarge the cache if needed.
8913
8914 * bidi.c (bidi_move_to_visually_next): Rename from
8915 bidi_get_next_char_visually. All callers changed.
8916
8917 2010-05-14 Kenichi Handa <handa@m17n.org>
8918
8919 * dispextern.h (struct composition_it): New member reversed_p.
8920
8921 * composite.c (composition_compute_stop_pos): Search backward if
8922 ENDPOS < CHARPOS.
8923 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8924 Set CMP_IT->reversed_p.
8925 (composition_update_it): Pay attention to CMP_IT->reversed_p.
8926
8927 * xdisp.c (set_iterator_to_next):
8928 Call composition_compute_stop_pos with negative ENDPOS if we are
8929 scanning backward. Call composition_compute_stop_pos if scan
8930 direction is changed.
8931 (next_element_from_buffer): Call composition_compute_stop_pos with
8932 negative ENDPOS if we are scanning backward.
8933 (next_element_from_composition): Pay attention to
8934 IT->cmp_it.reversed_p.
8935
8936 2010-05-14 Kenichi Handa <handa@m17n.org>
8937
8938 * font.c (font_range): Return the range for the font found at first.
8939
8940 2010-05-14 Glenn Morris <rgm@gnu.org>
8941
8942 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8943
8944 * Makefile.in (mktime, X11, register): Move undefs to configure.
8945
8946 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8947 (MSDOS_X_OBJ): New variable.
8948 (MSDOS_SUPPORT_REAL): New constant.
8949 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8950 (obj): Use MSDOS_X_OBJ.
8951 (lisp): Use MSDOS_SUPPORT as a variable.
8952
8953 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8954 (GPM_MOUSE_SUPPORT): Now it's a constant.
8955 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8956 not cpp.
8957
8958 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
8959 (ns_appresdir): Remove, unused.
8960
8961 * Makefile.in (SHELL): Move outside cpp section.
8962
8963 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8964
8965 2010-05-13 Glenn Morris <rgm@gnu.org>
8966
8967 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8968 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8969
8970 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8971 HAVE_WINDOW_SYSTEM must be too.
8972
8973 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8974 (lisp): Remove WINNT_SUPPORT.
8975
8976 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8977 Let configure set these variables (to empty) in this case as well.
8978
8979 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8980 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8981
8982 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8983 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8984 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8985 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8986 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
8987 the values output by configure.
8988 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8989
8990 2010-05-12 Glenn Morris <rgm@gnu.org>
8991
8992 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8993 (LINKER_WAS_SPECIFIED): Remove.
8994
8995 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8996 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8997 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8998 * s/cygwin.h (LIB_GCC):
8999 * s/freebsd.h (LIB_GCC):
9000 * s/gnu-linux.h (LIB_GCC):
9001 * s/msdos.h (LIB_GCC):
9002 * s/netbsd.h (LIB_GCC):
9003 Move to configure.
9004
9005 2010-05-11 Karel Klíč <kklic@redhat.com>
9006
9007 * ftfont.c: Fix incorrect parentheses of #if condition for
9008 definining M17N_FLT_USE_NEW_FEATURE.
9009
9010 2010-05-11 Glenn Morris <rgm@gnu.org>
9011
9012 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
9013 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
9014
9015 2010-05-10 Eli Zaretskii <eliz@gnu.org>
9016
9017 * xdisp.c (init_iterator): Don't turn on bidi reordering in
9018 unibyte buffers. See
9019 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
9020
9021 2010-05-10 Glenn Morris <rgm@gnu.org>
9022
9023 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9024 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9025 (LIBES): Use LIBS_SYSTEM as a variable.
9026 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
9027 * s/aix4-2.h (LIBS_SYSTEM):
9028 * s/freebsd.h (LIBS_SYSTEM):
9029 * s/hpux10-20.h (LIBS_SYSTEM):
9030 * s/sol2-6.h (LIBS_SYSTEM):
9031 * s/unixware.h (LIBS_SYSTEM):
9032 Move to configure.
9033
9034 * s/aix4-2.h (MAIL_USE_LOCKF):
9035 * s/bsd-common.h (MAIL_USE_FLOCK):
9036 * s/darwin.h (MAIL_USE_FLOCK):
9037 * s/gnu-linux.h (MAIL_USE_FLOCK):
9038 * s/irix6-5.h (MAIL_USE_FLOCK):
9039 * s/template.h (MAIL_USE_FLOCK):
9040 Move to configure.
9041
9042 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
9043
9044 * Version 23.2 released.
9045
9046 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
9047
9048 * composite.c (autocmp_chars): Save point as marker before calling
9049 auto-composition-function (Bug#5984).
9050
9051 * lisp.h (restore_point_unwind): Add prototype.
9052
9053 * fileio.c (restore_point_unwind): Remove static attribute.
9054
9055 2010-05-08 Kenichi Handa <handa@m17n.org>
9056
9057 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9058 new feature of libotf and m17n-flt.
9059 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9060 Call OTF_check_features even if no specific feature is given.
9061 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9062 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9063 that OUT is NULL. Use OTF_drive_gsub_with_log and
9064 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9065 OTF_drive_gpos.
9066 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
9067 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9068 Setup mflt_enable_new_feature and mflt_try_otf.
9069
9070 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
9071
9072 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9073
9074 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9075 box and toolbar (Bug #6139).
9076 (xg_create_tool_bar): Remove comment (Bug #6139).
9077 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9078 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9079
9080 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
9081
9082 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9083 Update dependencies.
9084
9085 2010-05-08 Eli Zaretskii <eliz@gnu.org>
9086
9087 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9088 R2L lines.
9089
9090 2010-05-08 Glenn Morris <rgm@gnu.org>
9091
9092 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9093
9094 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9095 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9096 (termcapobj): Replace with TERMCAP_OBJ.
9097 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9098 (LIBES): Use LIBS_TERMCAP as a variable.
9099
9100 * s/freebsd.h (osreldate.h): No longer include, since this file
9101 does not use __FreeBSD_version any more.
9102
9103 * s/aix4-2.h (TERMINFO):
9104 * s/cygwin.h (TERMINFO):
9105 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9106 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9107 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9108 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9109 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9110 * s/irix6-5.h (TERMINFO):
9111 * s/netbsd.h (LIBS_TERMCAP):
9112 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9113 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9114 * s/usg5-4.h (TERMINFO):
9115 Move to configure.
9116
9117 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9118
9119 * eval.c (unbind_to): Don't unbind a local binding into the global
9120 binding when the local binding disappeared. Inversely, don't unbind
9121 a global binding into a newly created local binding.
9122 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9123 can specify the frame to use, when applicable. Adjust callers.
9124
9125 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
9126 Stefan Monnier <monnier@iro.umontreal.ca>
9127
9128 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9129
9130 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9131
9132 * w32fns.c: Include w32.h.
9133 (Fw32_shell_execute): Decode the error message before passing it
9134 to `error'. (Bug#6126)
9135
9136 * msdos.c (dos_set_window_size):
9137 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9138 instead of `XSYMBOL (foo)->value'.
9139
9140 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9141
9142 Fix the MS-DOS build, broken by autoconfiscation.
9143
9144 * Makefile.in: Don't use Make-style comments past the "start of
9145 cpp stuff" line.
9146 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9147
9148 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9149 edited directly by msdos/sed1v2.inp).
9150
9151 2010-05-07 Glenn Morris <rgm@gnu.org>
9152
9153 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9154 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9155 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9156 move out of cpp section.
9157 * s/freebsd.h (LD_SWITCH_SYSTEM):
9158 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9159 * s/netbsd.h (LD_SWITCH_SYSTEM):
9160 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9161
9162 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9163
9164 Define LIB_STANDARD and START_FILES using autoconf.
9165 * s/usg5-4.h (LIB_STANDARD):
9166 * s/netbsd.h (START_FILES):
9167 * s/irix6-5.h (LIB_STANDARD):
9168 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9169 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9170 * s/freebsd.h (START_FILES):
9171 * s/darwin.h (START_FILES):
9172 * s/cygwin.h (START_FILES):
9173 * s/aix4-2.h (LIB_STANDARD):
9174 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9175 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9176 autoconf, not cpp.
9177
9178 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9179
9180 Remove NEED_BSDTTY and NEED_UNISTD_H.
9181 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9182 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9183 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9184 <sys/ptyio.h> and <unistd.h>.
9185
9186 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9187
9188 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9189 * s/gnu.h (START_FILES): Remove empty definition.
9190
9191 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9192
9193 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9194
9195 2010-05-06 Glenn Morris <rgm@gnu.org>
9196
9197 * Makefile.in (CPP, LN_S): Remove unused variables.
9198
9199 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9200
9201 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9202
9203 2010-05-05 Lawrence Mitchell <wence@gmx.li>
9204
9205 * m/sparc.h: Fix typo in earlier change.
9206
9207 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9208
9209 Misc tweaks.
9210 * eval.c (Fdefvaralias): Remove unintended nested if.
9211 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9212
9213 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
9214
9215 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9216
9217 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9218
9219 Remove BSD_PGRPS.
9220 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9221 * s/gnu-linux.h (BSD_PGRPS): Remove.
9222 * term.c (dissociate_if_controlling_tty):
9223 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9224 (init_sys_modes, reset_sys_modes):
9225 * emacs.c (main):
9226 * callproc.c (Fcall_process, child_setup): Remove code depending
9227 on BSD_PGRPS.
9228
9229 Remove POSIX_SIGNALS.
9230 * s/usg5-4.h (POSIX_SIGNALS):
9231 * s/netbsd.h (POSIX_SIGNALS):
9232 * s/msdos.h (POSIX_SIGNALS):
9233 * s/ms-w32.h (POSIX_SIGNALS):
9234 * s/hpux11.h (POSIX_SIGNALS):
9235 * s/gnu.h (POSIX_SIGNALS):
9236 * s/gnu-linux.h (POSIX_SIGNALS):
9237 * s/freebsd.h (POSIX_SIGNALS):
9238 * s/darwin.h (POSIX_SIGNALS):
9239 * s/cygwin.h (POSIX_SIGNALS):
9240 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9241 * s/unixware.h:
9242 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9243 * process.c (create_process):
9244 * syssignal.h:
9245 * sysdep.c (wait_for_termination, init_signals):
9246 * process.c (create_process):
9247 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9248 remove all code that assumes the contrary.
9249
9250 2010-05-04 Glenn Morris <rgm@gnu.org>
9251
9252 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9253 variable.
9254 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9255 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9256 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9257 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9258 LD_SWITCH_SYSTEM_tmp.
9259 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9260 New variables, set by configure.
9261
9262 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9263 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9264 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9265 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9266 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9267
9268 * s/aix4-2.h (C_SWITCH_SYSTEM):
9269 * m/alpha.h (C_SWITCH_MACHINE):
9270 Move to configure.in.
9271 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9272 New variables, set by configure.
9273 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9274 $c_switch_machine and $c_switch_system.
9275
9276 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9277
9278 * s/hpux10-20.h (LIB_STANDARD): New definition.
9279 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9280 on it, not used anymore.
9281
9282 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
9283
9284 * eval.c (internal_condition_case_n): Rename from
9285 internal_condition_case_2.
9286 (internal_condition_case_2): New function.
9287
9288 * xdisp.c (safe_call): Use internal_condition_case_n.
9289
9290 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9291 (internal_delete_file, Frename_file): Callers changed.
9292
9293 * buffer.c (Fkill_buffer):
9294 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9295
9296 * lisp.h: Update prototypes.
9297
9298 2010-05-03 Glenn Morris <rgm@gnu.org>
9299
9300 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9301 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9302 (LIBXT): Set with configure, not cpp.
9303 (LIBX): Remove.
9304 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9305
9306 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9307
9308 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9309 The FreeBSD is not needed, the default works, Solaris version is
9310 not needed, and the remaining case is not supported by configure.
9311
9312 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9313
9314 * xsmfns.c (CHDIR_OPT): New define.
9315 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9316 restarting emacs.
9317
9318 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9319 shut_down_emacs.
9320
9321 * emacs.c (USAGE1): Mention --chdir.
9322 (main): Handle --chdir.
9323 (standard_args): Add --chdir.
9324 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9325 #5552).
9326
9327 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9328
9329 Remove LD_SWITCH_MACHINE.
9330 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9331 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9332
9333 Clean up IRIX code.
9334 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9335 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9336
9337 Clean up AIX code.
9338 * m/ibmrs6000.inp: Remove file, unused.
9339 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9340 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9341 definition ...
9342 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9343
9344 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9345 unused.
9346
9347 2010-05-01 Eli Zaretskii <eliz@gnu.org>
9348
9349 Emulate POSIX_SIGNALS on MS-Windows.
9350
9351 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9352 (SIG_SETMASK, SIG_UNBLOCK): Define.
9353
9354 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9355 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9356 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9357
9358 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9359 New stubs.
9360
9361 Miscellaneous fixes of bidi display.
9362
9363 * xdisp.c (find_row_end): New function, refactored from display_line.
9364 (display_line): Use it.
9365 (extend_face_to_end_of_line): In almost-filled rows, extend only
9366 if the row is R2L and not continued.
9367 (display_line): Fix prepending of truncation glyphs to R2L rows.
9368 Preserve overlay and string info in row->end.
9369 (insert_left_trunc_glyphs): Support addition of left truncation
9370 glyphs to R2L rows.
9371 (set_cursor_from_row): Don't place cursor on the vertical border
9372 glyph between adjacent windows. Fix a crash when a display string
9373 is continued to the next line. Don't return zero if cursor was
9374 found by `cursor' property of a display string.
9375 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9376 test for that explicitly.
9377
9378 2010-05-01 Glenn Morris <rgm@gnu.org>
9379
9380 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9381 for clarity.
9382 (OTHER_OBJ): Remove.
9383 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9384 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9385
9386 2010-05-01 Karel Klíč <kklic@redhat.com>
9387
9388 * fileio.c (Ffile_selinux_context): Context functions may return null.
9389
9390 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9391
9392 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
9393
9394 2010-04-30 Glenn Morris <rgm@gnu.org>
9395
9396 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9397 (OTHER_OBJ): Define as a separate variable, for clarity.
9398
9399 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9400
9401 * xsettings.c: Include limits.h and update file comment.
9402
9403 2010-04-30 Glenn Morris <rgm@gnu.org>
9404
9405 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9406 Set with configure, not cpp.
9407 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9408
9409 * Makefile.in (mallocobj): Remove.
9410 (otherobj): Simplify using @OTHER_OBJ@.
9411
9412 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9413 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9414 Don't bother making nsgui.h dependency platform-specific.
9415
9416 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9417
9418 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9419
9420 * process.c (read_process_output, exec_sentinel): Don't burp if the
9421 sentinel/filter kills the current buffer (bug#6060).
9422
9423 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
9424 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9425 Remove unused var `args'.
9426 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9427 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9428 * doc.c (store_function_docstring): Use XSETCAR.
9429
9430 2010-04-28 Glenn Morris <rgm@gnu.org>
9431
9432 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9433 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9434
9435 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9436
9437 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9438 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9439
9440 * Makefile.in (FONT_OBJ): New, set by configure.
9441 (FONT_DRIVERS): Use $FONT_OBJ.
9442
9443 * Makefile.in (LIBXMU): Set with configure, not cpp.
9444 * s/aix4-2.h (LIBXMU):
9445 * s/hpux10-20.h (LIBXMU):
9446 Remove definition, now set in configure.
9447
9448 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9449
9450 * m/amdx86-64.h [i386]: Move this test to configure.in.
9451
9452 2010-04-27 Glenn Morris <rgm@gnu.org>
9453
9454 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9455 * s/unixware.h (NEED_LIBW): Remove definition.
9456
9457 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9458 (TOOLKIT_LIBW): New, set by configure.
9459 (@X_TOOLKIT_TYPE@): No longer define it.
9460
9461 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9462 (MOTIF_LIBW): Set with configure, not cpp.
9463 * s/aix4-2.h (LIB_MOTIF):
9464 * s/gnu-linux.h (LIB_MOTIF):
9465 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9466
9467 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9468
9469 Reduce CPP usage.
9470 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9471 (obj): Use autoconf for unexec instead of cpp.
9472 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9473 Remove definitions and undefs. Inline definitions in the only user.
9474 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
9475
9476 2010-04-27 Glenn Morris <rgm@gnu.org>
9477
9478 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9479 since the defaults (set by the system file) are fine in most cases.
9480 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9481 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9482 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9483 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9484 Remove definitions, since they are set correctly in s/gnu-linux.h.
9485 * s/freebsd.h (START_FILES, LIB_STANDARD):
9486 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9487 * s/hpux10-20.h (START_FILES):
9488 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9489 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9490
9491 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9492 (MOTIF_LIBW): Use $LIBXP.
9493 (otherobj): Use $WIDGET_OBJ.
9494
9495 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9496
9497 * Makefile.in (LIBS_MACHINE): Remove, unused.
9498
9499 Use autoconf instead of cpp for LIB_MATH.
9500 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9501 * s/cygwin.h (LIB_MATH): Likewise.
9502 * Makefile.in (LIB_MATH): Do not define with cpp.
9503 (LIBES): Use autoconf for LIB_MATH.
9504
9505 2010-04-26 Kenichi Handa <handa@m17n.org>
9506
9507 * composite.c (Ffind_composition_internal): Fix the return value
9508 for an automatic composition.
9509
9510 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9511
9512 Remove all NO_ARG_ARRAY uses.
9513 * fns.c (concat2, concat3, nconc2):
9514 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9515 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9516 * m/xtensa.h (NO_ARG_ARRAY):
9517 * m/template.h (NO_ARG_ARRAY):
9518 * m/sparc.h (NO_ARG_ARRAY):
9519 * m/sh3.h (NO_ARG_ARRAY):
9520 * m/mips.h (NO_ARG_ARRAY):
9521 * m/macppc.h (NO_ARG_ARRAY):
9522 * m/iris4d.h (NO_ARG_ARRAY):
9523 * m/intel386.h (NO_ARG_ARRAY):
9524 * m/ibms390x.h (NO_ARG_ARRAY):
9525 * m/ibms390.h (NO_ARG_ARRAY):
9526 * m/ibmrs6000.h (NO_ARG_ARRAY):
9527 * m/ia64.h (NO_ARG_ARRAY):
9528 * m/hp800.h (NO_ARG_ARRAY):
9529 * m/arm.h (NO_ARG_ARRAY):
9530 * m/amdx86-64.h (NO_ARG_ARRAY):
9531 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9532
9533 2010-04-25 Eli Zaretskii <eliz@gnu.org>
9534
9535 * xdisp.c (display_line): Don't assume 2nd call to
9536 get_next_display_element cannot return zero. (Bug#6030)
9537 (iterate_out_of_display_property): New function, body from pop_it.
9538 (pop_it): Use it.
9539
9540 2010-04-24 Glenn Morris <rgm@gnu.org>
9541
9542 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9543 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9544 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9545 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9546
9547 2010-04-24 Eli Zaretskii <eliz@gnu.org>
9548
9549 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9550 use `get_next_display_element' and `set_iterator_to_next' to
9551 advance to the next character, when looking for the character that
9552 begins the next row.
9553
9554 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9555 definition of "struct Lisp_Symbol".
9556
9557 2010-04-24 Glenn Morris <rgm@gnu.org>
9558
9559 * Makefile.in (CRT_DIR): New variable, set by configure.
9560 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9561 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9562
9563 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9564
9565 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9566
9567 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9568
9569 Remove redundant flags.
9570 * s/freebsd.h (C_SWITCH_SYSTEM):
9571 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9572 * s/netbsd.h (C_SWITCH_SYSTEM):
9573 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9574 of these.
9575
9576 Simplify m/intel386.h.
9577 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9578 user: ecrt0.c.
9579 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9580 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9581 the only user: s/unixware.h.
9582 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9583 from m/intel386.h.
9584 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9585 Definitions moved here from m/intel386.h.
9586
9587 * m/mips.h: Remove #if 0 code.
9588
9589 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9590
9591 Fix display of composed characters from L2R scripts in bidi buffers.
9592 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9593 After advancing IT past the composition, resync the bidi iterator
9594 with IT's position. (Bug#5977)
9595
9596 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9597
9598 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9599 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9600
9601 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9602
9603 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9604
9605 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9606
9607 Support `display' text properties and overlay strings in bidi buffers.
9608 * xdisp.c (pop_it): When the stack is popped after displaying
9609 from a string, bidi-iterate to exit from the text portion covered
9610 by the `display' property or overlay. (Bug#5988, bug#5920)
9611
9612 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9613
9614 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9615 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9616
9617 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9618 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9619
9620 Simplify STARTFILES definition.
9621 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9622 relying on Makefile.in to define it.
9623 * s/cygwin.h (START_FILES): Likewise.
9624 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9625
9626 Clean up Solaris code.
9627 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9628 (LIB_MOTIF): Remove, configure takes care of this.
9629 (NOT_USING_MOTIF): Remove, unused.
9630 * xrdb.c: Remove #if 0-ed #include.
9631 (SYSV): Remove conditional for old SysV.
9632 * sysdep.c (closedir): Remove conditional code for Solaris,
9633 Solaris has closedir.
9634
9635 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9636
9637 * xsettings.c (read_and_apply_settings): Check if current_font is
9638 NULL before strcmp (Bug#6001).
9639
9640 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9641
9642 Clean up HP-UX files.
9643 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9644 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9645 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9646 * s/hpux10-20.h: ... to the only user, here.
9647
9648 2010-04-21 Eli Zaretskii <eliz@gnu.org>
9649
9650 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9651 use buffer-local values of paragraph-start and paragraph-separate.
9652 <paragraph_start_re, paragraph_separate_re>: Rename from
9653 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9654 (Bug#5992)
9655
9656 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9657
9658 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9659 current_tool_bar_style are new.
9660 (store_config_changed_event): Rename from store_font_changed_event.
9661 (XSETTINGS_TOOL_BAR_STYLE): New define.
9662 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9663 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9664 HAVE_XFT.
9665 (something_changedCB): store_font_changed_event is now
9666 store_config_changed_event.
9667 (parse_settings): Rename from parse_xft_settings.
9668 Read non-xft xsettings outside #ifdef HAVE_XFT.
9669 (read_settings): Rename from read_xft_settings.
9670 (apply_xft_settings): Take current settings as parameter. Do not
9671 call read_(xft)_settings.
9672 (read_and_apply_settings): New function.
9673 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9674 Call read_and_apply_settings if there are settings to be read.
9675 (init_xsettings): Rename from init_xfd_settings.
9676 Call read_and_apply_settings unconditionally.
9677 (xsettings_initialize): Call init_xsettings.
9678 (Ftool_bar_get_system_style): New function.
9679 (syms_of_xsettings): Define Qmonospace_font_name and
9680 Qtool_bar_style. Initialize current_tool_bar_style to nil.
9681 defsubr Stool_bar_get_system_style. Fprovide on
9682 dynamic-setting.
9683 Move misplaced HAVE_GCONF.
9684
9685 * xsettings.h (Ftool_bar_get_system_style): Declare.
9686
9687 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9688 Qtext, Qboth, Qboth_horiz are new.
9689 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9690 Vtool_bar_style, tool_bar_max_label_size.
9691
9692 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9693
9694 * keyboard.c: QClabel is new.
9695 (parse_tool_bar_item): Take out QClabel from tool bar items.
9696 Try to construct a label if ther is no QClabel.
9697 (syms_of_keyboard): Intern :label as QClabel.
9698
9699 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9700 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9701 New.
9702
9703 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9704 dynamic-setting.el.
9705
9706 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9707 (xg_make_tool_item, xg_show_toolbar_item): New function.
9708 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9709 Call xg_make_tool_item to make a tool bar item.
9710 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9711
9712 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9713 into account for toolbars.
9714
9715 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9716
9717 * data.c (make_blv): Declarations before code (Bug#5993).
9718
9719 2010-04-21 Glenn Morris <rgm@gnu.org>
9720
9721 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9722 Define using autoconf, not cpp.
9723 (LIBXSM): New variable, set by autoconf.
9724 (LIBXT): Use $LIBXSM.
9725
9726 2010-04-21 Dan Nicolaescu <local_user@dannlt>
9727
9728 Remove NOMULTIPLEJOBS, unused.
9729 * s/template.h (NOMULTIPLEJOBS):
9730 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9731
9732 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9733 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9734 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9735 detects -znocombreloc and passes it to the linker
9736 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9737
9738 2010-04-21 Glenn Morris <rgm@gnu.org>
9739
9740 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9741
9742 2010-04-21 Karel Klíč <kklic@redhat.com>
9743
9744 * Makefile.in (LIBSELINUX_LIBS): New.
9745 (LIBES): Add $LIBSELINUX_LIBS.
9746 * eval.c, lisp.h (call7): New function.
9747 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9748 (Ffile_selinux_context, Fset_file_selinux_context):
9749 New functions.
9750 (Fcopy_file): New parameter preserve-selinux-context.
9751 (Frename_file): Preserve selinux context when renaming by copy-file.
9752
9753 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
9754 Eli Zaretskii <eliz@gnu.org>
9755
9756 Don't depend on cm.c or termcap.c on Windows, use stubs.
9757 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9758 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9759 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9760 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9761 (sys_tputs, sys_tgetstr): New stubs.
9762 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9763 (tputs, tgetstr): New; define to sys_*.
9764
9765 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
9766
9767 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9768
9769 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9770
9771 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9772 Just signal a warning rather than an error when inside a let.
9773 (Fmake_variable_frame_local): Add the same test.
9774
9775 * font.c (syms_of_font): Make the style table vars read-only.
9776
9777 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9778 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9779
9780 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9781
9782 2010-04-20 Eli Zaretskii <eliz@gnu.org>
9783
9784 Fix R2L paragraph display on TTY.
9785
9786 * xdisp.c (unproduce_glyphs): New function.
9787 (display_line): Use it when produced glyphs are discarded from R2L
9788 glyph rows.
9789 (append_composite_glyph): In R2L rows, prepend the glyph rather
9790 than appending it.
9791
9792 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9793 rather than append it. Set up the resolved_level and bidi_type
9794 attributes of the appended glyph.
9795 (produce_special_glyphs): Mirror the backslash continuation
9796 character in R2L lines.
9797
9798 Implement display of R2L paragraphs in GUI sessions.
9799
9800 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9801 append_stretch_glyph.
9802 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9803 Fix off-by-one error in computing x at end of text in the row.
9804 (append_stretch_glyph): In reversed row, prepend the glyph rather
9805 than append it. Set resolved_level and bidi_type of the glyph.
9806 (extend_face_to_end_of_line): If the row is reversed, prepend a
9807 stretch glyph whose width is such that the rightmost glyph will be
9808 drawn at the right margin of the window. Fix off-by-one error on
9809 TTY frames in testing whether a line needs face extension.
9810 Fix face extension at ZV. If this is the last glyph row, use
9811 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9812 region face.
9813 (set_cursor_from_row, display_line):
9814 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
9815 row->continuation_lines_width.
9816 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9817 are at ZV. Fixes a crash when reseated to ZV by
9818 try_window_reusing_current_matrix.
9819 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9820 which happens with R2L glyph rows. Fixes a crash when inserting a
9821 character at end of an R2L line.
9822 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9823 treat them as having zero-width characters. Improve comments.
9824 Don't reverse pos_before and pos_after for reversed glyph rows.
9825 Set cursor.x to negative value when the cursor might be on the
9826 left fringe.
9827 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9828 left fringe, not the right one.
9829 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9830 (erase_phys_cursor): For reversed cursor_row, support cursor on
9831 the left fringe.
9832
9833 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9834 of continuation indicators on the fringes.
9835 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9836 left fringe.
9837
9838 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9839 draw cursor on the left fringe.
9840
9841 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9842 cursor on the left fringe.
9843
9844 * dispnew.c (update_text_area): Handle reversed desired rows when
9845 the cursor is on the left fringe.
9846 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9847 below, not by 0, for when the cursor is on the left fringe.
9848
9849 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9850
9851 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9852 widget is a scrollbar.
9853
9854 2010-04-20 Kenichi Handa <handa@m17n.org>
9855
9856 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9857 only when the arg CHARSET_LIST is nil.
9858
9859 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9860
9861 Make variable forwarding explicit rather the using special values.
9862 Basically, this makes the structure of buffer-local values and object
9863 forwarding explicit in the type of Lisp_Symbols rather than use
9864 special Lisp_Objects for that. This tends to lead to slightly more
9865 verbose code, but is more C-like, simpler, and makes it easier to make
9866 sure we handled all cases, among other things by letting the compiler
9867 help us check it.
9868 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9869 Removing forwarding objects.
9870 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9871 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9872 explicit rather than hiding them inside Lisp_Object "values".
9873 (XFWDTYPE): New macro.
9874 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9875 (XBUFFER_LOCAL_VALUE): Remove.
9876 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9877 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9878 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9879 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9880 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9881 Remove the Lisp_Misc_* header.
9882 (struct Lisp_Buffer_Local_Value): Redefine.
9883 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9884 (struct Lisp_Misc_Any): Add filler to get the right size.
9885 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9886 Lisp_Intfwd.
9887 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9888 (DEFVAR_KBOARD): Allocate a forwarding object.
9889 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9890 (let_shadows_global_binding_p): New function.
9891 (union Lisp_Val_Fwd): New type.
9892 (make_blv): New function.
9893 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9894 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9895 (swap_in_symval_forwarding, find_symbol_value, Fset)
9896 (let_shadows_buffer_binding_p, set_internal, default_value)
9897 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9898 (Fkill_local_variable, Fmake_variable_frame_local)
9899 (Flocal_variable_p, Flocal_variable_if_set_p)
9900 (Fvariable_binding_locus):
9901 * xdisp.c (select_frame_for_redisplay):
9902 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9903 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9904 * frame.c (store_frame_param):
9905 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9906 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9907 value structure.
9908 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9909 (clone_per_buffer_values): Only adjust markers into the current buffer.
9910 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9911 (Fbuffer_local_value, set_buffer_internal_1)
9912 (swap_out_buffer_local_variables):
9913 Adapt to the new symbol value structure.
9914 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9915 (defvar_per_buffer): Take a new arg for the fwd object.
9916 (buffer_lisp_local_variables): Return a proper alist (different fix
9917 for bug#4138).
9918 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9919 (Fgarbage_collect): Don't handle buffer_defaults specially.
9920 (mark_object): Handle new symbol value structure rather than the old
9921 special Lisp_Misc_* objects.
9922 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9923 * term.c (set_tty_color_mode):
9924 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9925 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9926 a buffer_local_flags.
9927 * print.c (print_object): Get rid of impossible forwarding objects.
9928
9929 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9930
9931 * bidi.c (bidi_get_type, bidi_get_category)
9932 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
9933 (bidi_type_of_next_char, bidi_level_of_next_char):
9934 Declare static. Use `INLINE' rather than `inline'.
9935
9936 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
9937
9938 * dired.c (Ffile_attributes): Fix typo in docstring.
9939
9940 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9941
9942 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9943 NSInteger (Bug#5811).
9944
9945 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9946
9947 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9948 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9949
9950 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9951
9952 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9953
9954 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
9955
9956 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9957 terminal frames (Bug#5837).
9958
9959 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9960
9961 * .gdbinit (xsubchartable): New command.
9962
9963 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9964
9965 * xdisp.c (display_line): Don't write beyond the last glyph row in
9966 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
9967 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9968 and
9969 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9970
9971 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9972
9973 * alloc.c (Fpurecopy): Hash-cons if requested.
9974 (syms_of_alloc): Update purify-flag docstring.
9975
9976 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9977
9978 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9979 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9980
9981 2010-04-17 Eli Zaretskii <eliz@gnu.org>
9982
9983 Fix a crash when an NSM character is inserted at BEGV.
9984
9985 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9986 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9987 NEUTRAL_B or UNKNOWN_BT.
9988
9989 2010-04-16 Eli Zaretskii <eliz@gnu.org>
9990
9991 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9992 other rows with cursor unless they are different from this row and
9993 this row is part of a continued line. (Bug#5943)
9994
9995 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9996
9997 * s/freebsd.h: Restore osreldate.h include.
9998 Suggested by Naohiro Aota.
9999
10000 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
10001
10002 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
10003
10004 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
10005
10006 * s/cygwin.h: Avoid linking against static libgcc.
10007
10008 2010-04-15 Juri Linkov <juri@jurta.org>
10009
10010 * window.c: Add Qscroll_command.
10011 Remove Vscroll_preserve_screen_position_commands.
10012 (window_scroll_pixel_based, window_scroll_line_based): Check the
10013 `scroll-command' property on the last command instead of searching
10014 the last command in Vscroll_preserve_screen_position_commands.
10015 (syms_of_window): Initialize and staticpro `Qscroll_command'.
10016 Put Qscroll_command property on Qscroll_up and Qscroll_down.
10017 (scroll-preserve-screen-position): Doc fix.
10018 (Vscroll_preserve_screen_position_commands): Remove variable.
10019
10020 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10021
10022 * xdisp.c (message): Do not use NO_ARG_ARRAY.
10023
10024 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
10025
10026 Reduce cpp use in Makefile.in.
10027 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10028 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10029 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10030 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10031 (CRT0_COMPILE): Remove, inline it in the only user.
10032
10033 2010-04-14 Juri Linkov <juri@jurta.org>
10034
10035 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10036 `scroll-up-command' and `M-v' from `scroll-down' to
10037 `scroll-down-command'.
10038
10039 2010-04-14 Juri Linkov <juri@jurta.org>
10040
10041 * window.c (Vscroll_preserve_screen_position_commands): New variable
10042 with the default value as the list of Qscroll_down and Qscroll_up.
10043 (window_scroll_pixel_based, window_scroll_line_based): Search the
10044 last command in the list Vscroll_preserve_screen_position_commands
10045 instead of comparing with Qscroll_up and Qscroll_down.
10046
10047 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
10048
10049 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10050 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10051 does that.
10052
10053 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10054 to zero.
10055
10056 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10057
10058 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10059
10060 Try to solve the problem of spurious EOF chars in long lines of text
10061 sent to interactive subprocesses.
10062 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10063 (system_process_attributes): Remove unused var `ttotal'.
10064 * process.c (send_process): Don't bother breaking long line with EOF
10065 chars when talking to ttys any more.
10066 (wait_reading_process_output): Output a warning when called in such
10067 a way that it could block without being interruptible.
10068
10069 Try to detect file modification within the same second.
10070 * buffer.h (struct buffer): New field modtime_size.
10071 * buffer.c (reset_buffer): Initialize it.
10072 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10073 (Fverify_visited_file_modtime): Check it.
10074 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10075 (Fset_visited_file_modtime): Set (or clear) it.
10076
10077 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10078
10079 * process.c (status_notify): Remove unused var `ro'.
10080
10081 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10082
10083 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10084 more than one visual (Bug#5938).
10085
10086 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10087
10088 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10089 Undefine.
10090
10091 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10092
10093 Remove C_SWITCH_SYSTEM_TEMACS.
10094 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10095 (malloc, realloc, free): Use emacs, not temacs for conditional
10096 definition.
10097
10098 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10099 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10100
10101 Use autoconf, not cpp for some variables.
10102 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10103 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10104 (ALL_CFLAGS): Use them as make variables.
10105 (really-lwlib, really-oldXMenu): Do not pass them.
10106
10107 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10108
10109 * xmenu.c (apply_systemfont_to_dialog): New.
10110 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10111
10112 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10113
10114 * process.c (exec_sentinel): Preserve current-buffer.
10115
10116 * process.c (read_process_output): Move the save-current-buffer to
10117 apply to both the filter and the non-filter branches.
10118
10119 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10120
10121 * s/msdos.h (UNEXEC): New definition.
10122
10123 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10124
10125 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10126 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10127
10128 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10129 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10130 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10131 TRY_WINDOW_CHECK_MARGINS.
10132
10133 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
10134 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10135 width only when it is for padding.
10136
10137 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10138
10139 * xfns.c (Fx_show_tip): Call try_window in a loop until
10140 fonts_changed_p is zero (Bug#2423).
10141
10142 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10143
10144 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10145 the end of TEXT_AREA. (Bug#5856)
10146
10147 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10148
10149 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10150 HAVE_GCONF.
10151
10152 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10153
10154 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10155 prev.orig_type, for resolving type of NSM. (Bug#5858)
10156
10157 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10158
10159 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10160 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10161 in current_font.
10162 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
10163 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10164 New functions.
10165 (syms_of_xsettings): Initialize current_font.
10166 defsubr Sfont_get_system_normal_font.
10167
10168 * xsettings.h (Ffont_get_system_normal_font)
10169 (xsettings_get_system_normal_font): Declare.
10170
10171 * xfns.c (extern xlwmenu_default_font): Remove.
10172 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10173 to xlwmenu.c.
10174
10175 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10176 menu items in UTF-8.
10177
10178 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
10179 (apply_systemfont_to_menu): New function.
10180 (set_frame_menubar, create_and_show_popup_menu):
10181 Call apply_systemfont_to_menu.
10182
10183 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10184
10185 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10186 FRAME_LINE_TO_PIXEL_Y.
10187
10188 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10189 pixelwidth/height.
10190
10191 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10192
10193 Simplify code for HP machines.
10194 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10195 for GNU_LINUX, not needed.
10196 (UNEXEC, NEED_BSDTTY): Move definitions...
10197 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10198
10199 * m/iris4d.h (UNEXEC): Move definition ...
10200 * s/irix6-5.h (UNEXEC): ... here.
10201
10202 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10203
10204 * xfns.c (set_machine_and_pid_properties): New function.
10205 (Fx_create_frame): Call set_machine_and_pid_properties.
10206
10207 2010-04-03 Eli Zaretskii <eliz@gnu.org>
10208
10209 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10210 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
10211 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10212
10213 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10214 in this function. (Bug#5703)
10215
10216 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
10217
10218 * nsterm.h: Fix last change.
10219
10220 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10221
10222 * m/intel386.h (NO_REMAP): Move definition ...
10223 * s/msdos.h (NO_REMAP): ... here.
10224
10225 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10226
10227 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10228 used on those platforms.
10229
10230 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10231
10232 Remove extern errno declarations.
10233 * xterm.c:
10234 * xrdb.c:
10235 * w32term.c:
10236 * unexec.c:
10237 * unexaix.c:
10238 * sysdep.c:
10239 * process.c:
10240 * lread.c:
10241 * keyboard.c:
10242 * floatfns.c:
10243 * filelock.c:
10244 * fileio.c:
10245 * emacs.c (main):
10246 * ecrt0.c:
10247 * dispnew.c:
10248 * callproc.c:
10249 * buffer.c: Remove errno extern declarations.
10250 * s/netbsd.h (NEED_ERRNO): Remove.
10251
10252 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10253
10254 Remove all uses of LIBX11_SYSTEM.
10255 * Makefile.in (LIBX11_SYSTEM): Remove.
10256 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10257 instead.
10258
10259 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10260
10261 Remove support for DJGPP v1.x (bug#5813).
10262
10263 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
10264 * s/msdos.h:
10265 * unexec.c (make_hdr, copy_text_and_data):
10266 * sysdep.c (wait_for_termination, sys_subshell):
10267 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
10268 (IT_set_terminal_modes, __write, _rename, gethostname)
10269 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10270 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10271 the value of __DJGPP__.
10272 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10273 compatibility code.
10274 * lread.c:
10275 * gmalloc.c (memalign):
10276 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10277 * emacs.c (main):
10278 * dosfns.c (init_dosfns):
10279 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10280
10281 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10282
10283 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10284 string with `cursor' property comes from an `after-string'
10285 overlay. (Bug#5816)
10286
10287 2010-04-01 Glenn Morris <rgm@gnu.org>
10288
10289 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10290 Define as Makefile variables.
10291 (LIBX): Use above variables rather than directly using autoconf.
10292
10293 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10294
10295 Clean up BSD_SYSTEM use.
10296 * xterm.c:
10297 * process.c:
10298 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10299 for including <sys/ioctl.h>.
10300 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10301 code is only used for MSDOS.
10302
10303 2010-03-31 Juri Linkov <juri@jurta.org>
10304
10305 * image.c: Add `Qextension_data'.
10306 (syms_of_image): Initialize and staticpro `Qextension_data'.
10307 (Fimage_metadata): Rename from `Fimage_extension_data'.
10308 (gif_load): Put GIF extension data to the property
10309 `Qextension_data'.
10310
10311 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10312
10313 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10314 * nsterm.h: Fix prototype.
10315
10316 2010-03-31 Eli Zaretskii <eliz@gnu.org>
10317
10318 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10319 trailing whitespace in right-to-left rows.
10320
10321 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10322
10323 Get rid of the direct_output optimizations.
10324 * keyboard.c (nonundocount): Remove extern declaration.
10325 (command_loop_1): Remove brittle optimisation for cheap and
10326 common operations.
10327 * xdisp.c (redisplay_internal): Don't bother checking
10328 redisplay_performed_directly_p any more.
10329 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10330 any more.
10331 * dispnew.c (redisplay_performed_directly_p)
10332 (direct_output_for_insert, direct_output_forward_char):
10333 * dispextern.h (redisplay_performed_directly_p)
10334 (direct_output_for_insert, direct_output_forward_char): Remove.
10335 * cmds.c (nonundocount): Make it static.
10336
10337 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
10338
10339 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10340
10341 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
10342
10343 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10344 invisible (Bug#5766).
10345
10346 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
10347
10348 * xdisp.c (x_consider_frame_title, update_window_cursor):
10349 Remove HAVE_NS conditionals.
10350 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
10351
10352 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10353 filename for the title.
10354 (ns_set_doc_edited): Do nothing if the selected window is a
10355 minibuffer window.
10356
10357 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10358 ns_set_doc_edited.
10359
10360 * nsterm.m: Remove unneeded prototype.
10361
10362 2010-03-31 Glenn Morris <rgm@gnu.org>
10363
10364 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10365 in the DOC file. (Bug#5336)
10366
10367 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10368
10369 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10370
10371 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10372
10373 * window.c (keys_of_window): Remove redundant/overridden bindings.
10374
10375 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10376
10377 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10378 Restore original behavior when the iterator is not bidi_p.
10379
10380 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10381
10382 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10383
10384 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10385
10386 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10387 are outside the range of cached character positions.
10388
10389 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
10390
10391 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10392
10393 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10394
10395 Initial support for bidirectional editing.
10396
10397 * Makefile.in (obj): Include bidi.o.
10398 (bidi.o): New target.
10399
10400 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10401 ($(BLD)/bidi.$(O)): New target.
10402
10403 * bidi.c: New file.
10404
10405 * buffer.h (struct buffer): New members bidi_display_reordering
10406 and bidi_paragraph_direction.
10407
10408 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10409 and bidi_paragraph_direction.
10410 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10411 and bidi-paragraph-direction.
10412 (Fbuffer_swap_text): Swap the values of
10413 bidi_display_reordering and bidi_paragraph_direction.
10414
10415 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10416 (bidi_type_t, bidi_dir_t): New types.
10417 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10418 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10419 prev_stop, base_level_stop, and eol_pos.
10420 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10421 (IT_STACK_SIZE): Enlarge to 5.
10422 (struct glyph_row): New member reversed_p.
10423 <string_buffer_position>: Update prototype.
10424 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10425 glyph_row if bidi_it.paragraph_dir == R2L.
10426 (struct glyph): New members resolved_level and bidi_type.
10427
10428 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10429 processing or buffer's direction is right-to-left.
10430 (prepare_desired_row): Preserve the reversed_p flag.
10431 (row_equal_p): Compare the reversed_p attributes as well.
10432
10433 * xdisp.c (init_iterator): Initialize it->bidi_p.
10434 Call bidi_init_it and set it->paragraph_embedding from the current
10435 buffer's value of bidi_paragraph_direction.
10436 (reseat_1): Initialize bidi_it.first_elt.
10437 (set_iterator_to_next, next_element_from_buffer): Use the value of
10438 paragraph_embedding to determine the paragraph direction.
10439 (set_iterator_to_next): Under bidi reordering, call
10440 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10441 new_paragraph flag is set in the bidi iterator.
10442 (next_element_from_buffer): If bidi_it.first_elt is set,
10443 initialize paragraph direction and find the first character to
10444 display in the visual order. If reseated to a middle of a line,
10445 prime the bidi iterator starting at the line's beginning.
10446 Handle the situation where we overstepped stop_charpos due to
10447 non-linearity of the bidi iteration. Likewise for when we back up
10448 beyond the previous stop_charpos. When moving across stop_charpos,
10449 record it in prev_stop.
10450 (display_line): Set row->end and it->start for the next row to the
10451 next character in logical order. Always extend reversed_p rows to
10452 the end of line, even if they end at ZV. Copy the reversed_p flag
10453 to the next glyph row. Keep calling set_cursor_from_row for
10454 bidi-reordered rows even if we already have a possible candidate
10455 for cursor position. Set row_end after all the row's glyphs have
10456 been produced, by looping over the glyphs. Record the position
10457 after EOL in it->eol_pos, and use it to set end_pos of the last
10458 row produced for a continued line.
10459 <Qright_to_left, Qleft_to_right>: New variables.
10460 (syms_of_xdisp): Initialize and staticpro them.
10461 (string_buffer_position_lim): New function.
10462 (string_buffer_position): Most of code moved to
10463 string_buffer_position_lim. Last argument and return value are
10464 now EMACS_INT; all callers changed.
10465 (set_cursor_from_row): Rewritten to support bidirectional text and
10466 reversed glyph rows.
10467 (text_outside_line_unchanged_p, try_window_id):
10468 Disable optimizations if we are reordering bidirectional text and the
10469 paragraph direction can be affected by the change.
10470 (append_glyph, append_composite_glyph)
10471 (produce_image_glyph, append_stretch_glyph): Set the
10472 resolved_level and bidi_type members of each glyph.
10473 (append_glyph): If the glyph row is reversed, prepend the glyph
10474 rather than appending it.
10475 (handle_stop_backwards): New function.
10476 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
10477 (reseat): Call handle_stop_backwards to recompute prev_stop and
10478 base_level_stop for the new position.
10479 (handle_invisible_prop): Under bidi iteration, skip invisible text
10480 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10481 paragraph direction. Update IT->prev_stop after skipping
10482 invisible text.
10483 (move_it_in_display_line_to): New variables prev_method
10484 and prev_pos. Compare for strict equality in
10485 BUFFER_POS_REACHED_P.
10486 (try_cursor_movement): Examine all the candidate rows that occlude
10487 point, to return the best match. If rows are bidi-reordered
10488 and point moved backwards, back up to the row that is not a
10489 continuation line, and start looking for a suitable row from
10490 there.
10491
10492 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10493 rather than appending, if the glyph_row's reversed_p flag is set.
10494 Set the resolved_level and bidi_type members of each glyph.
10495
10496 * .gdbinit (pbiditype): New command.
10497 (pgx): Use it to display bidi level and type of the glyph.
10498 (pitx): Display some bidi information about the iterator.
10499 (prowlims, pmtxrows): New commands.
10500
10501 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10502
10503 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10504 * s/usg5-4.h (LIBS_DEBUG):
10505 * s/irix6-5.h (C_DEBUG_SWITCH):
10506 * s/gnu-linux.h (LIBS_DEBUG):
10507 * s/darwin.h (LIBS_DEBUG):
10508 * s/bsd-common.h (LIBS_DEBUG):
10509 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10510 * m/iris4d.h (LIBS_DEBUG):
10511 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10512
10513 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10514 (LIBS_DEBUG): Remove definition.
10515
10516 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
10517
10518 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10519 Windows.
10520
10521 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10522
10523 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10524 `connect' (Bug#5723).
10525
10526 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
10527
10528 * process.c (Fmake_network_process): Call `select' for interrupted
10529 `connect' rather than creating new socket (Bug#5173).
10530
10531 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
10532
10533 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10534
10535 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10536
10537 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10538
10539 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10540
10541 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10542 XLoadQueryFont.
10543
10544 2010-03-24 Kenichi Handa <handa@m17n.org>
10545
10546 * coding.c (decode_coding_ccl): Fix previous change for the
10547 multibyte case.
10548 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10549 case that the output buffer is fullfilled.
10550 (encode_coding): Setup ccl program here.
10551
10552 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10553
10554 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10555
10556 Simplify LIBS_MACHINE definitions.
10557 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10558 * m/iris4d.h (LIBS_MACHINE): Likewise.
10559 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10560 * s/aix4-2.h (LIBS_SYSTEM): ... here.
10561 * s/netbsd.h: Remove commented out code.
10562
10563 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10564
10565 Remove dead code dealing with POSIX_SIGNALS.
10566 * atimer.c (set_alarm): Remove dead code, all USG systems define
10567 POSIX_SIGNALS.
10568 * data.c (arith_error): Likewise.
10569 * keyboard.c (input_available_signal, handle_user_signal)
10570 (interrupt_signal): Likewise.
10571 * process.c (sigchld_handler): Likewise.
10572 (create_process): Remove if 0 code. Remove HPUX conditional when
10573 !defined (POSIX_SIGNALS), it cannot be true.
10574 * syssignal.h: Remove USG5_4 and USG conditionals when
10575 !POSIX_SIGNALS, they cannot be true.
10576
10577 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10578 NO_SOCK_SIGIO, not used anymore.
10579
10580 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10581
10582 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10583 support vax on BSDs.
10584
10585 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10586 * s/aix4-2.h (ORDINARY_LINK): ... here.
10587
10588 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10589
10590 * Makefile.in (abs_builddir): Define.
10591 (bootstrap_exe): Use it.
10592 (VPATH): Use $(srcdir) instead of @srcdir@.
10593
10594 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10595
10596 * Makefile.in (bootstrap_exe): Use an absolute name.
10597
10598 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10599
10600 Remove support for old GNU/Linux using libc version 5.
10601 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10602 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10603
10604 Consolidate redundant definitions in s/bsd-common.h.
10605 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10606 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10607 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10608 doing it in all files that include this one.
10609 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10610 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10611 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10612 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10613 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10614 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10615 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10616 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10617 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10618
10619 Consolidate redundant definitions.
10620 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10621 it's undefined in all files that include this one.
10622 (POSIX_SIGNALS): Define here instead of doing it in all files that
10623 include this one.
10624 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10625 (POSIX_SIGNALS): Do not define.
10626 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10627 (POSIX_SIGNALS): Do not define.
10628 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10629 (POSIX_SIGNALS): Do not define.
10630
10631 Remove support for old UNIX System V systems.
10632 * s/unixware.h: Add the contents of s/usg5-4-2.h.
10633 * s/usg5-4-2.h: Remove.
10634
10635 Remove support for Solaris on PPC and for old versions.
10636 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10637 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10638 that cancel each other.
10639 * s/sol2-3.h:
10640 * s/sol2-4.h:
10641 * s/sol2-5.h: Remove.
10642 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10643 (NO_REMAP): Remove, unused.
10644 (UNEXEC): Move definition ...
10645 * s/aix4-2.h (UNEXEC): ... here.
10646
10647 * s/openbsd.h: Remove support for non-ELF and for systems that do
10648 not support shared libraries.
10649 * s/netbsd.h:
10650 * s/freebsd.h: Likewise.
10651
10652 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10653
10654 Remove non-working support for lynxos 3.0.
10655 * s/lynxos.h: Remove file.
10656
10657 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10658 COFF_BSD_SYMBOLS, nothing defines it anymore.
10659
10660 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10661
10662 Remove obsolete uses of HAVE_SHM.
10663 * emacs.c (standard_args):
10664 (Fdump_emacs):
10665 (syms_of_emacs): Remove code depending on HAVE_SHM.
10666
10667 * alloc.c: Remove HAVE_SHM dependent definition.
10668
10669 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10670
10671 2010-03-18 Glenn Morris <rgm@gnu.org>
10672
10673 * emacs.c (USAGE4): Hard-code bug address.
10674 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10675 (bug_reporting_address): Remove.
10676 (main): Don't call bug_reporting_address.
10677
10678 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10679 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10680
10681 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
10682
10683 * xfns.c (Fx_create_frame):
10684 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10685 on left.
10686
10687 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10688
10689 * editfns.c (Fformat): Account for string precision when computing
10690 field width (Bug#5710).
10691
10692 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
10693
10694 * xfns.c (Fx_create_frame): Set default to Qright.
10695
10696 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10697 all window systems.
10698
10699 2010-03-12 Eli Zaretskii <eliz@gnu.org>
10700
10701 These changes remove termcap.c from the build on Posix platforms.
10702 * Makefile.in (termcapobj): Move termcap.o from here...
10703 (MSDOS_OBJ): ...to here.
10704 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10705 now identical to when LIBS_TERMCAP is defined.
10706
10707 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10708
10709 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10710
10711 * config.in: Regenerated. (See top-level ChangeLog.)
10712
10713 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
10714
10715 * Branch for 23.2.
10716
10717 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10718
10719 Cleanup setup of gl_state in various parts of the code.
10720 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10721 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10722 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10723 (skip_chars):
10724 * regex.c (regex_compile): Use it.
10725 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10726 it's now set in regex_compile when/if we need it.
10727
10728 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10729
10730 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10731 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10732 (QUIT): Use it to consolidate code and remove redundancy.
10733 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10734
10735 * regex.c (regex_compile): Setup gl_state as well.
10736
10737 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10738 (in_classes): Use CONSP before XCAR/XCDR.
10739
10740 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
10741
10742 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10743 definitions, so that keyboard macros are correctly handled
10744 (Bug#5481).
10745
10746 2010-03-02 Eli Zaretskii <eliz@gnu.org>
10747
10748 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10749 text that could be relocated inside the call to emacs_mule_char.
10750 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10751 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10752
10753 2010-03-02 Kenichi Handa <handa@m17n.org>
10754
10755 * character.c (parse_str_as_multibyte): Fix handling of the
10756 multibyte form of raw-bytes.
10757 (str_as_multibyte): Likewise.
10758
10759 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10760 form of raw-bytes.
10761
10762 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
10763
10764 * charset.c (load_charset_map_from_file)
10765 (load_charset_map_from_vector): Zero out allocated
10766 charset_map_entries before using them.
10767
10768 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10769
10770 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10771
10772 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
10773
10774 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10775 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
10776
10777 2010-02-26 Kenichi Handa <handa@m17n.org>
10778
10779 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10780
10781 * xdisp.c (reseat_to_string): Fix previous change.
10782
10783 2010-02-26 David Reitter <david.reitter@gmail.com>
10784
10785 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10786 Lisp_Object (Bug#4736).
10787
10788 2010-02-25 Kenichi Handa <handa@m17n.org>
10789
10790 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10791
10792 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10793
10794 * xterm.c (XTflash): Move declarations before statements.
10795
10796 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10797 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10798 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10799 (xg_create_tool_bar): Remove unused variables.
10800 (x_wm_set_size_hint): Move declarations before statements.
10801 (xg_create_frame_widgets): Remove variable grav.
10802
10803 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
10804
10805 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10806
10807 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10808
10809 * term.c (fatal): Add a final \n if needed (bug#5596).
10810
10811 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
10812
10813 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10814
10815 2010-02-18 Glenn Morris <rgm@gnu.org>
10816
10817 * callint.c (Finteractive): Doc fix.
10818
10819 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10820
10821 * coding.c (record_conversion_result):
10822 Handle CODING_RESULT_INSUFFICIENT_DST.
10823 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10824 memory allocation error.
10825
10826 2010-02-17 Kenichi Handa <handa@m17n.org>
10827
10828 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10829 Fix for the case that the output buffer is fullfilled.
10830 (decode_coding): Setup ccl program here. Keep looping when the
10831 decoder stopped because the output buffer is
10832 fullfilled (bug#5534).
10833
10834 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10835
10836 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10837
10838 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
10839 bug #5571.
10840 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
10841 overdrawn.
10842
10843 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10844
10845 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10846 doing_interact here.
10847 (ice_connection_closed): New function.
10848 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10849 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10850 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10851 returns I/O error.
10852 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10853 bug #5512.
10854
10855 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
10856
10857 * nsfont.m (nsfont_open): The system's value for the font descent
10858 is negative, so round it down to avoid clipping.
10859
10860 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
10861
10862 * charset.c (load_charset_map_from_file)
10863 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
10864 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
10865
10866 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
10867
10868 * charset.c (load_charset_map_from_file): Allocate large
10869 charset_map_entries structure on the heap rather than the stack.
10870 (Bug#5526).
10871
10872 2010-01-31 Kenichi Handa <handa@m17n.org>
10873
10874 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
10875 size in NAME is invalid, return -1 (Bug#5396).
10876
10877 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
10878
10879 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10880 <deactivated@gmail.com> (Bug#3605).
10881
10882 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
10883
10884 * fileio.c (Frename_file): Correctly rename symlinks to
10885 directories (Bug#5496).
10886
10887 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10888
10889 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10890
10891 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10892
10893 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10894
10895 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
10896
10897 * frame.c (DEFAULT_ROWS): Change default to 35.
10898
10899 * xfns.c (x_default_font_parameter): Change default XFT font to
10900 monospace-10 (Bug#3643).
10901
10902 2010-01-29 Eli Zaretskii <eliz@gnu.org>
10903
10904 * w32inevt.c (key_event): Remove unnecessary comparison of
10905 event->uChar.AsciiChar with 128.
10906
10907 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
10908
10909 * fileio.c (Frename_file): Fix last change (Bug#5487).
10910
10911 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10912
10913 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10914
10915 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10916
10917 * xfns.c (Fx_create_frame): Remove window size matching code from
10918 2010-01-15.
10919 (x_get_current_desktop, x_get_desktop_workarea): Remove.
10920
10921 2010-01-27 Jason Rumney <jasonr@gnu.org>
10922
10923 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
10924 (key_event): Use unicode for characters 128 and higher (Bug#4567).
10925
10926 2010-01-27 Kenichi Handa <handa@m17n.org>
10927
10928 * regex.c (analyse_first): Fix setting of fastmap for unibyte
10929 pattern string (Bug#4209).
10930
10931 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
10932
10933 * fileio.c (Frename_file): Call copy-directory and
10934 delete-directory for directories, in order to handle cross-device
10935 renaming (Bug#3353).
10936
10937 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10938
10939 * xfns.c (Fx_create_frame): If frame height is too big, try
10940 sizes 24 and 10. Bug #3643.
10941
10942 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10943
10944 Try and fix bug#788, hopefully for real this time.
10945 * keymap.c (shadow_lookup): Add `remap' arg.
10946 (describe_map, describe_vector): Update calls to shadow_lookup.
10947 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10948 `remapped' so this flag is applicable to `sequence'. Be careful to
10949 perform remapping during shadow_lookup check of remapped_sequences.
10950
10951 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10952
10953 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10954 png_check_sig, which has been removed in libpng 1.4.
10955
10956 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10957
10958 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10959 lacks this header file).
10960
10961 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10962
10963 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10964 as in Emacs 22.
10965
10966 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10967
10968 * lisp.h (make_pure_string): String pointer arg now points to const.
10969
10970 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10971 args now point to const.
10972
10973 2010-01-22 Eli Zaretskii <eliz@gnu.org>
10974
10975 * lread.c (Fload): Don't treat files without .elc extension as
10976 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10977 them. (bug#5303)
10978
10979 2010-01-20 Kenichi Handa <handa@m17n.org>
10980
10981 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10982 treat the source as actual byte sequence.
10983
10984 2010-01-19 Alan Mackenzie <acm@muc.de>
10985
10986 Fix spurious before-change-functions invocation from (insert ?\n).
10987 * textprop.c (set_text_properties): Rename parameter
10988 `signal_after_change_p' to `coherent_change_p', and make the
10989 invocation of `modify_region' conditional on it.
10990
10991 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10992
10993 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10994 for debug purpose.
10995 (syms_of_xsettings): Declare xft-settings.
10996
10997 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
10998
10999 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
11000
11001 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11002
11003 * xterm.c (event_handler_gdk): Block input (Bug#5037).
11004
11005 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
11006
11007 * emacs.c (standard_args): Adjust arg priorities to reflect how
11008 they are processed in startup.el.
11009
11010 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
11011
11012 * Makefile.in (lisp, shortlisp): Update.
11013
11014 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11015
11016 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
11017 code, link the new kboard into all_kboard before running Lisp code,
11018 and protect the new terminal with GCPRO (Bug#5365).
11019 (x_term_init): Remove unused var `atom'.
11020 (x_delete_display, x_delete_terminal): Remove unused var `i'.
11021
11022 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
11023
11024 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11025 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11026 to find out usable size of the desktop. Don't make frames larger than
11027 this. Bug #3643.
11028
11029 2010-01-15 Kenichi Handa <handa@m17n.org>
11030
11031 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
11032
11033 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
11034
11035 * nsterm.m (Qnone): Define.
11036
11037 * nsfns.m (Qnone): Move definition to nsterm.m.
11038
11039 2010-01-14 Kenichi Handa <handa@m17n.org>
11040
11041 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11042 systems.
11043
11044 2010-01-14 Kenichi Handa <handa@m17n.org>
11045
11046 Make auto-composition work on all buffers even if they are
11047 fundamental mode.
11048
11049 * composite.c (Vauto_composition_mode): New variable.
11050 (composition_compute_stop_pos): Check Vauto_composition_mode
11051 instead of Vauto_composition_function.
11052 (composition_adjust_point, Ffind_composition_internal): Likewise.
11053 (syms_of_composite): Declare Lisp variable
11054 "auto-composition-mode" here.
11055
11056 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
11057
11058 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11059 during call to vendor-specific-keysyms (Bug#5365).
11060
11061 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11062
11063 * keyboard.c (input_available_signal) [SYNC_INPUT]:
11064 Call SIGNAL_THREAD_CHECK (Bug#5333).
11065
11066 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11067 Call SIGNAL_THREAD_CHECK.
11068
11069 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
11070
11071 Try to fix bug#5314. This is probably not the final word, tho.
11072 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11073 recent-auto-save-p as a side-effect.
11074 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11075 * buffer.c (Fkill_buffer, reset_buffer):
11076 * editfns.c (Fsubst_char_in_region):
11077 * fileio.c (Finsert_file_contents, Fdo_auto_save)
11078 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11079
11080 2010-01-13 Kenichi Handa <handa@m17n.org>
11081
11082 Display buffer name, etc. in mode line by composing correctly.
11083
11084 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11085 STRING is not nil.
11086 (display_mode_element): Adjust for the change of
11087 decode_mode_spec and display_line.
11088 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11089 (display_string): Handle the case that STRING is non-null and
11090 LISP_STRING is not nil.
11091
11092 * xterm.c (x_draw_composite_glyph_string_foreground):
11093 Pay attention to s->face->overstrike.
11094
11095 * composite.c (composition_reseat_it): Don't check PT if STRING is
11096 non nil.
11097
11098 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11099
11100 * keyboard.c (read_char): Don't apply previous change when current
11101 buffer is unchanged by command execution.
11102
11103 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11104
11105 * keyboard.c (read_char): Return after executing from special map.
11106
11107 2010-01-12 Glenn Morris <rgm@gnu.org>
11108
11109 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11110 bug-gnu-emacs rather than emacs-pretest-bug.
11111
11112 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
11113
11114 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11115 initializing the Lisp variables that depend on them.
11116
11117 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11118
11119 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11120 Clear areas that will not be updated after change of menu bar lines.
11121 Clear the menu bar window's current matrix when the window gets empty.
11122
11123 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
11124
11125 * intervals.h, textprop.c (extend_property_ranges): Return value
11126 and args changed. Discard properties that begin at or after the
11127 new end (Bug#5306).
11128
11129 * editfns.c (Fformat): Caller changed.
11130
11131 * nsterm.m (ns_set_default_prefs): Delete function.
11132 (syms_of_nsterm): Initialize ns_command_modifier,
11133 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11134 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11135
11136 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11137 position (Bug#4040).
11138
11139 2010-01-09 Eli Zaretskii <eliz@gnu.org>
11140
11141 * editfns.c (Ffloat_time): Doc fix.
11142
11143 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11144
11145 * xfns.c (Fx_create_frame): Don't create frame larger than display
11146 by default bug#3643.
11147
11148 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11149
11150 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11151 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11152 windows above internal border.
11153
11154 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11155 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11156 windows above internal border.
11157
11158 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11159 tool bar windows specially.
11160
11161 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11162
11163 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11164 specially.
11165 (XTflash): Take account of menu bar height.
11166
11167 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11168 specially.
11169
11170 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11171
11172 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
11173 also be true before we can return early (bug #5339).
11174
11175 2010-01-06 David Reitter <david.reitter@gmail.com>
11176
11177 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11178 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11179 (Bug#3233).
11180
11181 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11182
11183 * font.c (font_open_entity): Enable chache and call cached_font_ok
11184 for the driver if defined.
11185 (QCuser_spec): New symbol.
11186 (font_spec_from_name): Save name as user-spec.
11187 (font_load_for_lface): Keep user-spec instead of name.
11188 (font_open_by_name): Save name as user-spec.
11189 (syms_of_font): Initialize QCuser_spec.
11190 (font_clear_prop): Clear name if it exists in font (bug#5157).
11191
11192 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11193 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11194 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11195
11196 * font.h (struct font_driver): Add cached_font_ok.
11197
11198 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11199
11200 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11201
11202 * xterm.c (x_new_font): Move code for setting rows/cols before
11203 resizing ...
11204 (x_set_window_size): ... to here. Bug #2568.
11205
11206 * gtkutil.c (xg_clear_under_internal_border): New function.
11207 (xg_frame_resized, xg_frame_set_char_size):
11208 Call xg_clear_under_internal_border.
11209 (xg_update_scrollbar_pos): Clear under old scroll bar position.
11210
11211 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
11212
11213 * keyboard.c (read_key_sequence): Catch keyboard switch after
11214 making a new tty frame (Bug#5095).
11215
11216 2010-01-05 Kenichi Handa <handa@m17n.org>
11217
11218 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11219
11220 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11221
11222 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11223 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11224 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11225
11226 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
11227
11228 * dbusbind.c (xd_add_watch): Improve debug message.
11229 (xd_remove_watch): Improve debug message. If DATA is the session
11230 bus, unset D-Bus session environment.
11231 (Fdbus_init_bus): Pass the bus as argument to
11232 dbus_connection_set_watch_functions. (Bug#5283)
11233
11234 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
11235
11236 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11237
11238 * lread.c (syms_of_lread): Make it clearer that these are the
11239 names of loaded files (Bug#5068).
11240
11241 * eval.c (run_hook_with_args): Handle the case where the global
11242 value has the obsolete single-function form (Bug#5026).
11243
11244 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
11245
11246 * minibuf.c (Fall_completions): Minor optimization.
11247
11248 2009-12-26 Eli Zaretskii <eliz@gnu.org>
11249
11250 * .gdbinit (pgx): Fix display of composite glyphs.
11251 Display cmp.from and cmp.to as well.
11252 (pitx): Fix last change.
11253
11254 2009-12-25 Kenichi Handa <handa@m17n.org>
11255
11256 * composite.h (composition_adjust_point): Update prototype.
11257
11258 * composite.c (composition_reseat_it): Don't make a composition
11259 spanning over point.
11260 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11261 composable characters.
11262 (composition_adjust_point): New arg NEW_PT. Callers changed.
11263
11264 * keyboard.c (command_loop_1): Force redisplay if the last point
11265 was within a composition.
11266 (adjust_point_for_property): Don't adjust point for automatic
11267 composition when called after buffer modification.
11268
11269 2009-12-19 Eli Zaretskii <eliz@gnu.org>
11270
11271 * .gdbinit (pitx): Don't use enum names, use their values.
11272 Remove reference to non-existing value GET_FROM_COMPOSITION.
11273 (pgx): Don't use enum names, use their values.
11274 (pitmethod): New helper command.
11275 (pitx): Use it to display iteration method.
11276 (pgrowit): New command.
11277
11278 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11279
11280 Update dependencies in Makefile.in.
11281
11282 * Makefile.in (alloc.o): Depend on termhooks.h.
11283 (atimer.o): Depend on blockinput.h.
11284 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11285 and frame.h.
11286 (callint.o): Depend on systime.h, coding.h, and composite.h.
11287 (callproc.o): Depend on buffer.h.
11288 (casefiddle.o): Don't depend on charset.h.
11289 (casetab.o): Depend on character.h.
11290 (ccl.o): Depend on composite.h.
11291 (chartab.o): Depend on ccl.h.
11292 (cm.o): Depend on dispextern.h.
11293 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11294 (coding.o): Don't depend on $(INTERVALS_H).
11295 (composite.o): Don't depend on dispextern.h explicitly (it's in
11296 $(INTERVALS_H)). Depend on ccl.h.
11297 (data.o): Depend on systime.h, coding.h, composite.h,
11298 dispextern.h, font.h, and ccl.h.
11299 (dired.o): Depend on composite.h.
11300 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11301 composite.h (it's in $(INTERVALS_H)).
11302 (doc.o): Depend on systime.h, coding.h, and composite.h.
11303 (editfns.o): Don't depend explicitly on dispextern.h.
11304 (emacs.o): Depend on frame.h and coding.h.
11305 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11306 (fileio.o): Depend on frame.h and commands.h. Don't depend
11307 explicitly on dispextern.h.
11308 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11309 composite.h.
11310 (fns.o): Don't depend on termhooks.h.
11311 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11312 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11313 coding.h, $(INTERVALS_H), window.h, xterm.h.
11314 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11315 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11316 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11317 fontset.h, ccl.h, and ftfont.h.
11318 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11319 (gtkutil.o): Depend on dispextern.h and composite.h.
11320 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11321 termhooks.h, and ccl.h.
11322 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11323 (intervals.o): Depend on systime.h and coding.h.
11324 (keyboard.o): Depend on composite.h and coding.h.
11325 (keymap.o): Depend on coding.h and frame.h.
11326 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11327 (macros.o): Depend on systime.h, coding.h, and composite.h.
11328 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11329 and atimer.h.
11330 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11331 dispextern.h explicitly.
11332 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11333 Don't depend explicitly on dispextern.h and composite.h.
11334 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11335 (regex.o): Don't depend on charset.h.
11336 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11337 (search.o): Don't depend explicitly on composite.h.
11338 (sound.o): Depend on atimer.h and systime.h.
11339 (syntax.o): Don't depend explicitly on composite.h.
11340 (sysdep.o): Depend on coding.h and composite.h.
11341 (term.o): Depend on xterm.h and buffer.h.
11342 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11343 (textprop.o): Don't depend on dispextern.h explicitly.
11344 (undo.o): Depend on dispextern.h.
11345 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11346 dispextern.h and composite.h explicitly.
11347 (xdisp.o): Depend on ccl.h.
11348 (xfaces.o): Depend on coding.h and ccl.h.
11349 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11350 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11351 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11352 ftfont.h.
11353 (xgselect.o): New dependency.
11354 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11355 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11356 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11357 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11358 (xsmfns.o): Depend on frame.h and dispextern.h.
11359 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11360 sysselect.h.
11361
11362 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11363
11364 * font.c (Fclear_font_cache): Pass correct cache argument to
11365 font_clear_cache.
11366
11367 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11368
11369 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11370 twice.
11371
11372 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
11373
11374 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11375 calling file-remote-p. Reported by Jim Meyering.
11376
11377 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
11378
11379 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
11380 avoid compiler warnings. (Bug #5217)
11381
11382 2009-12-14 Kenichi Handa <handa@m17n.org>
11383
11384 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11385 in 8-bit encoding.
11386
11387 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
11388
11389 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11390 tooltip windows.
11391
11392 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11393
11394 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11395 Xatom_net_window_type.
11396
11397 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11398 Xatom_net_window_type.
11399
11400 * xterm.c (my_log_handler): New function.
11401 (x_term_init): Set my_log_handler as log handler during gtk_init
11402 so we can filter out buggy messages. (Bug #5120).
11403
11404 * xterm.c (xg_scroll_callback): Parameter list changed,
11405 use parameter GtkScrollType to determine scroll/line/page.
11406 Only allow dragging if a button < 4 is grabbed (bug #5177).
11407 (xg_end_scroll_callback): New function.
11408 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11409 xg_create_scroll_bar.
11410
11411 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11412 (scroll_end_callback): Remove.
11413 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11414 button-release-event. Replace value-changed event with change-value,
11415 bug #5177.
11416 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11417 bug #5177.
11418
11419 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11420 (xg_create_scroll_bar): Add GCallback end_callback.
11421
11422 * xftfont.c (QClcdfilter): New variable.
11423 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11424 (syms_of_xftfont): Initialize QClcdfilter.
11425
11426 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11427
11428 * xsettings.c (struct xsettings): Add member seen.
11429 (parse_xft_settings): Update member seen with what we have read.
11430 Return non-zero if Xft-settings have been parsed, 0 otherwise.
11431 (apply_xft_settings): Only update Xft settings with what member seen
11432 indicates as new.
11433
11434 2009-12-12 Eli Zaretskii <eliz@gnu.org>
11435
11436 * dispextern.h (struct text_pos): Use EMACS_INT.
11437 (struct glyph): Use EMACS_INT for charpos.
11438 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11439 region_beg_charpos, region_end_charpos,
11440 redisplay_end_trigger_charpos, and also for
11441 iterator_stack_entry.end_charpos and
11442 iterator_stack_entry.stop_charpos.
11443
11444 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11445
11446 * gtkutil.c (scroll_end_callback): New function (bug #5177).
11447 (xg_create_scroll_bar): Call scroll_end_callback on button release
11448 event (bug #5177).
11449 (xg_event_is_for_scrollbar): != replaced with ==.
11450
11451 2009-12-12 Kenichi Handa <handa@m17n.org>
11452
11453 * ftfont.c (struct ftfont_info): New member matrix.
11454 (ftfont_open): Setup xftfont_info->matrix.
11455 (MFLTFontFT): New member matrix.
11456 (FLOOR, CEIL, ROUND): New macros.
11457 (ftfont_get_metrics): Handle matrix transformation.
11458 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11459
11460 * xftfont.c (struct xftfont_info): New member matrix.
11461 (xftfont_open): Setup xftfont_info->matrix.
11462
11463 2009-12-10 Kenichi Handa <handa@m17n.org>
11464
11465 * xdisp.c (append_space_for_newline): Consider face-remapping.
11466
11467 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11468
11469 * xsettings.c: Include "keyboard.h".
11470
11471 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11472
11473 Fix implicit function declarations.
11474 * cmds.c: Include "frame.h".
11475 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11476 * frame.h: Move declaration of delete_frame outside of
11477 HAVE_WINDOW_SYSTEM.
11478
11479 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11480
11481 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11482
11483 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11484 GTK builds.
11485
11486 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11487
11488 * unexelf.c (unexec): Don't search for .data twice.
11489
11490 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
11491
11492 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11493 if push failed.
11494 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11495 of push_display_prop (Bug#5000).
11496
11497 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11498 value of font_list_entities (Bug#5085).
11499
11500 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
11501
11502 Fix `string-to-number' to deal consistently with integers and floats.
11503 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11504 trailing characters, not just whitespace.
11505 (read1): Pass new arg 0 to keep old behavior.
11506 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11507 trailing chars, as it is already done for integers. Doc fixes.
11508 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11509
11510 2009-12-04 Eli Zaretskii <eliz@gnu.org>
11511
11512 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11513 Delete unused enumeration value.
11514
11515 2009-12-03 Eli Zaretskii <eliz@gnu.org>
11516
11517 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11518
11519 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11520
11521 * process.c (Fmake_network_process): Fix up the tests for
11522 "connectionless socket", so they DTRT for seqpacket sockets as well.
11523
11524 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11525
11526 * process.c (Qseqpacket): New symbol.
11527 (HAVE_SEQPACKET): New macro.
11528 (Fmake_network_process): Accept new :type `seqpacket'.
11529 (init_process): Add `seqpacket' feature when applicable.
11530 (syms_of_process): Initialize Qseqpacket.
11531
11532 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11533
11534 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11535 if entity is Qnil.
11536
11537 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11538
11539 * print.c (print_preprocess): Preprocess the key_and_value table of
11540 hashtables, even tho they're "hidden" (bug#5082).
11541
11542 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11543
11544 * frame.c (frame_make_pointer_invisible)
11545 (frame_make_pointer_visible): Declare f before statements.
11546
11547 2009-11-28 Eli Zaretskii <eliz@gnu.org>
11548
11549 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11550 omitted dependencies on lisp.h.
11551
11552 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11553
11554 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11555 is NULL.
11556
11557 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11558
11559 * frame.c (frame_make_pointer_invisible)
11560 (frame_make_pointer_visible): Just return if there isn't any selected
11561 frame.
11562
11563 * search.c (simple_search): Remove warning by making *p const.
11564
11565 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11566
11567 * xdisp.c (power_letter): Remove duplicate const.
11568
11569 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11570
11571 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11572
11573 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
11574 defaults (bug #5025).
11575
11576 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11577
11578 * insdel.c (adjust_markers_for_delete): Move it in the
11579 right direction! (bug#4803)
11580
11581 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11582
11583 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11584
11585 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11586
11587 2009-11-24 Glenn Morris <rgm@gnu.org>
11588
11589 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11590
11591 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11592
11593 * Makefile.in: Must create deps for ecrt0.o in its rule.
11594
11595 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11596 because that is what Gtk+ font dialog understands.
11597
11598 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11599 of Fcopy_sequence.
11600 (font_open_by_name): Put name given into QCname for font-object returned.
11601
11602 * frame.c (x_set_font): Save original font name as frame parameter
11603 font-parameter.
11604
11605 * xsettings.c (set_default_xft_settings): New function.
11606 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11607 is found.
11608
11609 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11610
11611 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11612 searching backwards through multibyte buffer.
11613
11614 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11615
11616 * xterm.c: #include xgselect.h.
11617 (x_initialize): Call xgselect_initialize.
11618
11619 * xsettings.c (something_changedCB): C++ comments => C comments.
11620 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11621 does that now.
11622
11623 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11624 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11625 (scroll_bar_button_cb): Remove.
11626 (create_menus): C++ comments => C comments. Don't bind grab-notify
11627 event.
11628 (xg_create_scroll_bar): Don't bind button-press-event and
11629 button-release-event.
11630
11631 * process.c: Include xgselect.h if defined (USE_GTK) ||
11632 defined (HAVE_GCONF).
11633 (wait_reading_process_output): Call xg_select for the same condition.
11634
11635 * xgselect.c (xg_select): New function to better integrate with
11636 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11637
11638 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11639
11640 * Makefile.in (XOBJ): Add xgselect.o.
11641
11642 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11643
11644 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11645 Remove ignored second argument. All callers changed.
11646 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11647 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11648 * xdisp.c (string_char_and_length): Likewise.
11649
11650 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11651
11652 * xterm.c (x_new_font):
11653 * print.c (print_object):
11654 * cmds.c (Fself_insert_command): Move declarations before statements.
11655
11656 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11657
11658 * s/cygwin.h: Remove unneeded linker flags.
11659
11660 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11661
11662 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11663
11664 * xsettings.h: Declare xsettings_get_system_font.
11665
11666 * xsettings.c (xsettings_get_system_font): New function.
11667 (init_gconf): No use initiating gconf unless we have Xft also.
11668 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11669 HAVE_GCONF.
11670
11671 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11672 add a blank entry so it doesn't collapse into nothing.
11673
11674 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11675
11676 * lread.c (Funintern): Comment out last change.
11677
11678 2009-11-19 Richard Stallman <rms@gnu.org>
11679
11680 * lread.c (Funintern): Error if symbol is t or nil.
11681
11682 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11683
11684 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11685 representation of Lisp integers.
11686 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11687
11688 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11689
11690 * lisp.h: Remove declaration of Ffont_get_system_font.
11691 * xfns.c: Move include of "xsettings.h".
11692 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11693
11694 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11695
11696 * xsettings.c (something_changedCB, Ffont_get_system_font):
11697 Check use_system_font.
11698 (syms_of_xsettings): DEFVAR font-use-system-font.
11699
11700 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11701
11702 * xfns.c (x_default_font_parameter): Remove dead assignment.
11703
11704 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11705
11706 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11707
11708 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
11709 not have FC_LCD_*. #define them if not there.
11710
11711 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
11712
11713 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11714
11715 * xterm.c (handle_one_xevent): Call xft_settings_event for
11716 ClientMessage, PropertyNotify and DestroyNotify.
11717 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11718 Call xsettings_initialize.
11719
11720 * xftfont.c (xftfont_fix_match): New function.
11721 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11722 Call xftfont_fix_match after XftFontMatch.
11723
11724 * xfont.c (xfont_driver): Initialize all members.
11725
11726 * xfns.c (x_default_font_parameter):
11727 Try font from Ffont_get_system_font.
11728 Do not get font from x_default_parameter if we got one from
11729 Ffont_get_system_font.
11730 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
11731
11732 * w32font.c (w32font_driver): Initialize all members.
11733
11734 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11735
11736 * lisp.h: Declare syms_of_xsettings.
11737
11738 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11739 Handle CONFIG_CHANGED_EVENT.
11740
11741 * ftfont.c (ftfont_filter_properties): New function.
11742
11743 * frame.c (x_set_font): Remove unused variable lval.
11744
11745 * font.h (struct font_driver): Add filter_properties.
11746
11747 * font.c (font_put_extra): Don't return if val is nil, it means
11748 boolean option is off.
11749 (font_parse_fcname): Collect all extra properties in extra_props
11750 and call filter_properties for all drivers with extra_props and
11751 font as parameter.
11752 (font_open_entity): Do not use cache, it does not pick up new
11753 fontconfig settings like hinting.
11754 (font_load_for_lface): If spec had a name in it, store it in entity.
11755
11756 * emacs.c (main): Call syms_of_xsettings.
11757
11758 * config.in: HAVE_GCONF is new.
11759
11760 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11761 xsettings.o is new.
11762
11763 2009-11-17 Kenichi Handa <handa@m17n.org>
11764
11765 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11766 back to the default font in case that no suitable font is found.
11767
11768 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11769
11770 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11771 Suggested by Chad Brown <yandros@mit.edu>.
11772 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11773
11774 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11775
11776 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11777
11778 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11779
11780 * Makefile.in: Ignore errors from mkdir when creating deps directory.
11781
11782 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11783
11784 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11785 has a parent.
11786
11787 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
11788 dependency files in deps/. Include those files into Makefile.
11789
11790 * config.in: Generated (AUTO_DEPEND).
11791
11792 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
11793
11794 * dbusbind.c (Vdbus_registered_objects_table): Rename from
11795 Vdbus_registered_functions_table, because it contains also
11796 properties. Fix docstring.
11797 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
11798
11799 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11800
11801 * alloc.c (mark_object): Don't reprocess marked strings.
11802 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11803 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11804
11805 2009-11-13 Kenichi Handa <handa@m17n.org>
11806
11807 * category.c (word_boundary_p): Adjust for the change of the
11808 semantics of Vword_combining_categories.
11809 (Vword_combining_categories): Describe the slight change of the
11810 semantics.
11811
11812 2009-11-13 Eli Zaretskii <eliz@gnu.org>
11813
11814 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11815
11816 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11817
11818 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11819
11820 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11821
11822 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
11823
11824 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11825
11826 2009-11-11 David Reitter <david.reitter@gmail.com>
11827
11828 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11829 variables to fix 2009-11-09 change.
11830
11831 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11832
11833 * process.c (ifflag_def): Make flag_sym constant.
11834 (Fnetwork_interface_info): Use a constant pointer.
11835 (ifflag_table):
11836 * xfns.c (cursor_bits):
11837 * xdisp.c (power_letter):
11838 * termcap.c (speeds, esctab):
11839 * sysdep.c (baud_convert):
11840 * keyboard.c (lispy_accent_codes, modifier_names):
11841 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11842 (jpeg_format, tiff_format, gif_format, svg_format)
11843 (interlace_start, interlace_increment, gs_format):
11844 * gtkutil.c (separator_names):
11845 * fringe.c (swap_nibble):
11846 * fns.c (base64_value_to_char, base64_char_to_value):
11847 * fileio.c (make_temp_name_tbl):
11848 * coding.c (suffixes): Make constant.
11849
11850 * frame.c (make_initial_frame):
11851 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11852 build_string.
11853 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11854
11855 * s/freebsd.h:
11856 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11857
11858 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11859 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11860
11861 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11862 * xterm.c (syms_of_xterm):
11863 * xfaces.c (syms_of_xfaces):
11864 * xdisp.c (syms_of_xdisp):
11865 * lread.c (syms_of_lread):
11866 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11867 build_string.
11868
11869 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11870
11871 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11872
11873 * fns.c (Fplist_get): Merge the active and the commented out code.
11874
11875 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11876
11877 * keyboard.h: Declare timer_check.
11878
11879 * keyboard.c (timer_check_2): New function that does what the old
11880 timer_check did.
11881 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11882 returned, i.e. don't return -1 with timers pending.
11883
11884 * process.c: Remove extern declaration of timer_check.
11885
11886 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11887 even if timer_check returned -1.
11888
11889 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11890 xg_dialog_data.
11891 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11892 the event loop.
11893 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11894 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11895 Destroy the dialog after xg_dialog_run.
11896
11897 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11898
11899 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11900
11901 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11902
11903 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11904
11905 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
11906
11907 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11908
11909 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11910
11911 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11912 w32menu.c, and nsmenu.m.
11913 Simplify the obsolete case where position is nil.
11914 (cleanup_popup_menu): New function, moved from nsmenu.m.
11915 (struct skp): Remove slot `notreal'.
11916 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11917 adjust callers.
11918 (single_menu_item): Adjust call to parse_menu_item.
11919 (syms_of_menu): Defsubr x-popup-menu.
11920 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11921 (keymap_panes): Don't export any more.
11922 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11923 (xmenu_show): Declare.
11924 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11925 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11926 * keyboard.h (parse_menu_item): Update declaration.
11927 * xmenu.c (Fx_popup_menu): Remove.
11928 (syms_of_xmenu): Don't defsubr x-popup-menu.
11929 * w32menu.c (Fx_popup_menu): Remove.
11930 (syms_of_w32menu): Don't defsubr x-popup-menu.
11931 * nsmenu.m (cleanup_popup_menu): Remove.
11932 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11933 moved to menu.c's Fx_popup_menu.
11934 (Fx_popup_menu): Remove.
11935 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11936 menu_items (it's done in menu.c already).
11937
11938 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11939
11940 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11941 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11942
11943 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
11944
11945 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
11946 xmenu_show. Hide any tooltip before opening a menu.
11947 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11948 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11949
11950 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11951
11952 Let integers use up 2 tags to give them one extra bit and thus double
11953 their range.
11954 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11955 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11956 New macros.
11957 (enum Lisp_Type): Use them. Give explicit values.
11958 (Lisp_Type_Limit): Remove.
11959 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11960 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11961 Pay attention to USE_2_TAGS_FOR_INTS.
11962 (INTEGERP): Use LISP_INT_TAG_P.
11963 * fns.c (internal_equal): Simplify the default case.
11964 (sxhash): Use case_Lisp_Int.
11965 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11966 any more.
11967 (Ftype_of): Use case_Lisp_Int.
11968 (store_symval_forwarding): Take into account the fact that Ints can
11969 now have more than one tag.
11970 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
11971 (buffer_slot_type_mismatch):
11972 * xfaces.c (face_attr_equal_p):
11973 * print.c (print_object):
11974 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11975 Use case_Lisp_Int.
11976
11977 2009-11-06 Eli Zaretskii <eliz@gnu.org>
11978
11979 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11980
11981 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11982 warning.
11983
11984 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11985
11986 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11987
11988 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11989
11990 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11991 ButtonPressRelease and MotionNotify (bug#4870).
11992
11993 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11994
11995 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11996
11997 * xterm.c (syms_of_xterm):
11998 * xselect.c (syms_of_xselect):
11999 * xmenu.c (syms_of_xmenu):
12000 * xfns.c (syms_of_xfns):
12001 * xfaces.c (syms_of_xfaces):
12002 * xdisp.c (syms_of_xdisp):
12003 * window.c (syms_of_window):
12004 * w32fns.c (syms_of_w32fns):
12005 * undo.c (syms_of_undo):
12006 * textprop.c (syms_of_textprop):
12007 * terminal.c (syms_of_terminal):
12008 * syntax.c (syms_of_syntax):
12009 * sound.c (syms_of_sound):
12010 * search.c (syms_of_search):
12011 * print.c (syms_of_print):
12012 * minibuf.c (syms_of_minibuf):
12013 * macros.c (syms_of_macros):
12014 * keymap.c (syms_of_keymap, initial_define_key)
12015 (initial_define_lispy_key):
12016 * keyboard.c (syms_of_keyboard):
12017 * insdel.c (syms_of_insdel):
12018 * image.c (syms_of_image):
12019 * fringe.c (syms_of_fringe):
12020 * frame.c (syms_of_frame):
12021 * fontset.c (syms_of_fontset):
12022 * fns.c (syms_of_fns):
12023 * fns.c (syms_of_fns):
12024 * fileio.c (syms_of_fileio):
12025 * fileio.c (syms_of_fileio):
12026 * eval.c (syms_of_eval):
12027 * doc.c (syms_of_doc):
12028 * dispnew.c (syms_of_display):
12029 * dired.c (syms_of_dired):
12030 * dbusbind.c (syms_of_dbusbind):
12031 * data.c (syms_of_data):
12032 * composite.c (syms_of_composite):
12033 * coding.c (syms_of_coding):
12034 * cmds.c (syms_of_cmds):
12035 * charset.c (define_charset_internal, syms_of_character):
12036 * ccl.c (syms_of_ccl):
12037 * category.c (syms_of_category, init_category_once):
12038 * casetab.c (syms_of_casetab):
12039 * casefiddle.c (syms_of_casefiddle):
12040 * callint.c (syms_of_callint):
12041 * bytecode.c (syms_of_bytecode):
12042 * buffer.c (keys_of_buffer, syms_of_buffer):
12043 * alloc.c (syms_of_alloc):
12044 * process.c (syms_of_process, init_process):
12045 * lread.c (syms_of_lread, init_obarray):
12046 * font.c (build_style_table):
12047 * emacs.c (syms_of_emacs, main): Replace calls to intern with
12048 intern_c_string, calls to make_pure_string with
12049 make_pure_c_string. Use pure_cons instead of Fcons.
12050
12051 * process.c (socket_options): Make it const.
12052 (set_socket_option, init_process): Use a const pointer.
12053
12054 * lread.c (intern_c_string): New function.
12055 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12056 (defvar_int): Uset it. Make the name const char*.
12057
12058 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12059 (defvar_int): Update prototypes.
12060 (DEFUN, EXFUN): Support for prototypes is now required.
12061 (intern_c_string): New prototype.
12062 (struct Lisp_Subr): Make symbol_name constant.
12063
12064 * font.c (struct table_entry): Remove unused member. Make NAMES
12065 constant.
12066 (weight_table, slant_table, width_table): Make constant.
12067
12068 * emacs.c (struct standard_args): Make name and longname constant.
12069
12070 * character.h (DEFSYM): Use intern_c_string.
12071
12072 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12073
12074 * alloc.c (make_pure_c_string): New function.
12075
12076 * eval.c (Fautoload): Purecopy all arguments.
12077
12078 2009-11-05 Kenichi Handa <handa@m17n.org>
12079
12080 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12081 the buffer in case of replace.
12082
12083 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12084
12085 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12086
12087 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12088
12089 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12090 when applicable (bug#4851).
12091
12092 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12093 (P_): Support for prototypes is now required.
12094
12095 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
12096
12097 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12098 (Bug#4827).
12099
12100 2009-10-30 Eli Zaretskii <eliz@gnu.org>
12101
12102 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
12103
12104 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12105
12106 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12107
12108 * lread.c (Fload): Purecopy the file name when building
12109 Vpreloaded_file_list.
12110
12111 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12112
12113 * w32fns.c (syms_of_w32fns): Change default value of
12114 w32-scroll-lock-modifier to nil. (Bug#2827)
12115
12116 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12117
12118 * minibuf.c (Fall_completions): Fix typos in docstring.
12119
12120 2009-10-26 Andreas Schwab <schwab@redhat.com>
12121
12122 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12123
12124 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12125
12126 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12127 For delta < 0, skip check that only makes sense when the mini-window
12128 is going to be enlarged. (Bug#4534)
12129
12130 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
12131
12132 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12133 string in menu maps (Bug#4471).
12134
12135 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
12136
12137 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12138 FRAME_NS_VIEW on terminal frames (Bug#4765).
12139
12140 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12141
12142 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12143 DBUS_TYPE_UINTnn separately to get proper sign extension.
12144
12145 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12146 can properly handle unsigned types.
12147 (make_uid, make_gid): Remove.
12148
12149 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12150 types again.
12151
12152 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
12153 (system_process_attributes): Likewise.
12154
12155 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12156
12157 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12158
12159 * eval.c (Fautoload): Purecopy the filename. Simplify.
12160
12161 * category.c (Fdefine_category): Purecopy docstring.
12162
12163 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12164
12165 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12166
12167 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12168
12169 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
12170
12171 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12172 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12173 (Bug#4775).
12174
12175 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12176
12177 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12178 (init_fileio_once):
12179 * lisp.h (init_fileio_once): Remove.
12180 * emacs.c (main): Don't call init_fileio_once.
12181
12182 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12183
12184 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12185
12186 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12187
12188 * doprnt.c (doprnt): Fix overflow check.
12189
12190 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12191
12192 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12193
12194 * xterm.h (x_wait_for_event): Declare it.
12195
12196 * xterm.c (pending_event_wait): New variable.
12197 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12198 see pending_event_wait.eventtype.
12199 (handle_one_xevent): Don't change gravity when parent changes.
12200 (x_new_font): Call change_frame_size with new rows/columns before we
12201 try to resize the frame.
12202 (x_wait_for_event): New function.
12203 (x_set_window_size_1): Don't change gravity unless change_gravity
12204 is set.
12205 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12206 don't change frame size, instead wait for the ConfigureNotify.
12207 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12208 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12209 (x_initialize): Initialize pending_event_wait.
12210
12211 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12212 size.
12213
12214 * widget.c (EmacsFrameSetValues): Add comment.
12215 (EmacsFrameSetCharSize): Just call x_set_window_size.
12216
12217 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12218 x_wait_for_event.
12219 (flush_and_sync): Remove again.
12220 (xg_get_font_name): Suggest monospace if no previous font is known.
12221
12222 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12223
12224 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
12225 8th bit, since that only made sense in the ASCII world (bug#4751).
12226
12227 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12228
12229 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12230 processing pending events when event is filtered for input method.
12231 (Bug#3681)
12232
12233 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
12234
12235 * fns.c: Add #endif accidentally removed in previous change.
12236
12237 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12238
12239 * fns.c: Remove code for unsupported system: MAC_OS.
12240 * image.c: Likewise. Include setjmp.h.
12241
12242 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12243
12244 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12245 pixel -1 (bug #4742).
12246
12247 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12248
12249 * process.c (create_pty): Remove conditionals for no longer
12250 supported systems: UNIPLUS and RTU.
12251
12252 * xterm.c:
12253 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12254
12255 * alloc.c: Do not define struct catchtag.
12256 * eval.c: Move struct catchtag definition ...
12257 * lisp.h: ... here.
12258
12259 * image.c: Move png.h #include earlier to avoid warnings.
12260
12261 * xterm.c:
12262 * xsmfns.c:
12263 * xselect.c:
12264 * xrdb.c:
12265 * xmenu.c:
12266 * xftfont.c:
12267 * xfont.c:
12268 * xfns.c:
12269 * xfaces.c:
12270 * xdisp.c:
12271 * window.c:
12272 * widget.c:
12273 * w32xfns.c:
12274 * w32uniscribe.c:
12275 * w32term.c:
12276 * w32select.c:
12277 * w32reg.c:
12278 * w32proc.c:
12279 * w32menu.c:
12280 * w32inevt.c:
12281 * w32heap.c:
12282 * w32font.c:
12283 * w32fns.c:
12284 * w32console.c:
12285 * w32.c:
12286 * w16select.c:
12287 * vm-limit.c:
12288 * unexsol.c:
12289 * unexec.c:
12290 * unexcw.c:
12291 * unexaix.c:
12292 * undo.c:
12293 * tparam.c:
12294 * textprop.c:
12295 * terminfo.c:
12296 * terminal.c:
12297 * termcap.c:
12298 * term.c:
12299 * syntax.c:
12300 * sound.c:
12301 * sheap.c:
12302 * search.c:
12303 * scroll.c:
12304 * region-cache.c:
12305 * regex.c:
12306 * ralloc.c:
12307 * process.c:
12308 * print.c:
12309 * nsterm.m:
12310 * nsselect.m:
12311 * nsmenu.m:
12312 * nsimage.m:
12313 * nsfont.m:
12314 * nsfns.m:
12315 * msdos.c:
12316 * minibuf.c:
12317 * menu.c:
12318 * marker.c:
12319 * macros.c:
12320 * keymap.c:
12321 * keyboard.c:
12322 * intervals.c:
12323 * insdel.c:
12324 * indent.c:
12325 * gtkutil.c:
12326 * ftxfont.c:
12327 * ftfont.c:
12328 * fringe.c:
12329 * frame.c:
12330 * fontset.c:
12331 * font.c:
12332 * fns.c:
12333 * floatfns.c:
12334 * filelock.c:
12335 * fileio.c:
12336 * emacs.c:
12337 * editfns.c:
12338 * dosfns.c:
12339 * doprnt.c:
12340 * doc.c:
12341 * dispnew.c:
12342 * dired.c:
12343 * dbusbind.c:
12344 * data.c:
12345 * composite.c:
12346 * coding.c:
12347 * cmds.c:
12348 * cm.c:
12349 * chartab.c:
12350 * charset.c:
12351 * character.c:
12352 * ccl.c:
12353 * category.c:
12354 * casetab.c:
12355 * casefiddle.c:
12356 * callproc.c:
12357 * callint.c:
12358 * bytecode.c:
12359 * buffer.c:
12360 * atimer.c: Include setjmp.h. (Bug#4643)
12361
12362 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 Remove leftover table unibyte_to_multibyte_table.
12365 * character.c (unibyte_to_multibyte_table): Remove.
12366 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12367 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12368 * character.h (UNIBYTE_TO_CHAR): New macro.
12369 (MAKE_CHAR_MULTIBYTE): Use it.
12370 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12371 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12372 (message_dolog, set_message_1):
12373 * search.c (Freplace_match):
12374 * editfns.c (Fcompare_buffer_substrings):
12375 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12376 (concat):
12377 * insdel.c (copy_text, count_size_as_multibyte):
12378 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12379 * term.c (produce_glyphs):
12380 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12381 * regex.c (RE_CHAR_TO_MULTIBYTE):
12382 * cmds.c (internal_self_insert):
12383 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12384
12385 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12386
12387 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12388
12389 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12390
12391 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
12392
12393 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12394
12395 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12396
12397 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12398 still needed under Tiger.
12399
12400 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12401
12402 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12403 __Apple__.
12404
12405 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12406
12407 2009-10-15 Kenichi Handa <handa@m17n.org>
12408
12409 * print.c (print_object): Escape a symbol like "2E10" too.
12410
12411 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
12412
12413 Cleanups and changes for 64-bit compile under Snow Leopard.
12414 Based on suggestions by Erik Charlebois.
12415
12416 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12417
12418 * nsfont.m (ns_char_width): Replace deprecated call.
12419 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12420 cast argument.
12421 (nsfont_open): Use ns_char_width() everywhere.
12422 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
12423
12424 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12425
12426 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12427 where appropriate.
12428
12429 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12430 where appropriate.
12431 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12432 Use stringWithUTF8String.
12433 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12434
12435 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12436 Add formal protocol mention to inheritance.
12437 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12438
12439 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12440 Fix printf format.
12441 (ns_query_color): Use CGFloat where appropriate.
12442 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
12443 (EmacsScroller-mouseDown:): Use long format in printf, and cast
12444 argument.
12445
12446 * config.in (NS_HAVE_NSINTEGER): Drop.
12447
12448 * dbusbind.c (dbus-method-return-internal)
12449 (dbus-method-error-internal): Use long format in printf, and cast
12450 argument.
12451
12452 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12453 in printf, and cast argument.
12454
12455 * process.c (list_processes_1): Use long format in printf, and
12456 cast argument.
12457
12458 2009-10-11 Glenn Morris <rgm@gnu.org>
12459
12460 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12461
12462 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12463
12464 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12465 menu bar with a small width so it doesn't enlarge the frame.
12466
12467 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
12468
12469 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12470
12471 2009-10-06 Glenn Morris <rgm@gnu.org>
12472
12473 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12474 SOME_MACHINE_LISP (this enters indirectly via DOC).
12475
12476 2009-10-05 Eli Zaretskii <eliz@gnu.org>
12477
12478 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12479
12480 2009-10-04 Eli Zaretskii <eliz@gnu.org>
12481
12482 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12483 Doc fix.
12484
12485 2009-10-03 Martin Rudalics <rudalics@gmx.at>
12486
12487 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12488
12489 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
12490
12491 * lisp.h (Qdelete_directory_internal): Remove, because it is not
12492 used anymore outside fileio.c.
12493
12494 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12495
12496 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
12497
12498 * lisp.h (Qdelete_directory_internal):
12499 Declare, instead of Qdelete_directory.
12500
12501 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12502
12503 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12504
12505 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12506
12507 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
12508
12509 * fileio.c (Fdelete_directory_internal): Rename from
12510 Fdelete_directory. It is not a command anymore. It has no file
12511 name handler.
12512
12513 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12514
12515 * xdisp.c (get_next_display_element): Use an enum in last change.
12516
12517 2009-09-28 Kenichi Handa <handa@m17n.org>
12518
12519 * xdisp.c (get_next_display_element): Pay attention to
12520 unibyte_display_via_language_environment in handling
12521 Vnobreak_char_display.
12522
12523 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12524
12525 * nsterm.h (ns_app_name): New extern variable.
12526
12527 * nsterm.m (ns_app_name): New variable.
12528 (ns_term_init): Set and use it.
12529 (ns_term_shutdown): Use it.
12530
12531 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12532 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12533
12534 * nsfns.m (ns_set_name_iconic, ns_set_name)
12535 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12536 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12537
12538 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12539 Remove double-casting in client_data comparison.
12540
12541 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12542
12543 * keyboard.c (make_lispy_event): Remember last wheel direction.
12544 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12545
12546 2009-09-26 Glenn Morris <rgm@gnu.org>
12547
12548 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12549 internal.elc. Add term/pc-win.elc.
12550 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12551 term/x-win.elc.
12552 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12553 term/w32-win.elc.
12554 (NS_SUPPORT): New.
12555 (lisp): Add NS_SUPPORT.
12556 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12557
12558 2009-09-25 David Reitter <david.reitter@gmail.com>
12559
12560 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12561 on Mac OS X 10.6+ (bug#4513).
12562
12563 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12564
12565 * frame.c (xrdb_get_resource): Return nil for empty string resources;
12566 some parts of Emacs code (like font selection) don't grok them.
12567 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12568
12569 2009-09-24 Andreas Schwab <schwab@redhat.com>
12570
12571 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12572
12573 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12574
12575 * dired.c (Fdirectory_files): Fix typo in docstring.
12576
12577 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12578
12579 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12580 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12581 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12582 under GNUstep.
12583 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12584
12585 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12586 glyph advancement.
12587
12588 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12589
12590 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
12591 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
12592
12593 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12594 deleted (bug #4492).
12595
12596 * nsfont.m (Vns_reg_to_script): New lisp variable.
12597 (syms_of_nsfont): Declare it.
12598 (ns_registry_to_script): New function.
12599 (ns_get_req_script): Call it.
12600 (ns_findfonts): Don't give up on non-unicode registry.
12601
12602 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12603
12604 2009-09-20 Tom Tromey <tromey@redhat.com>
12605
12606 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12607 batch mode (bug#4228).
12608
12609 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
12610
12611 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
12612 carefully. (Bug #4339)
12613
12614 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
12615
12616 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
12617
12618 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12619
12620 * emacs.c (inhibit_x_resources): Update doc string for NS.
12621 (main) [HAVE_NS]: Don't process --no-init-file option.
12622 Remove legacy code for -NXHost. Fix error printf in daemon case.
12623
12624 * nsterm.h (ns_no_defaults): Remove.
12625
12626 * nsterm.m (ns_no_defaults): Remove.
12627 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12628 (ns_use_qd_smoothing): Remove legacy variable.
12629 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12630 don't update the NSWindow itself.
12631 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12632 Improve state detection and store user rect ourselves. (Bug #3581)
12633
12634 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12635 ns_use_qd_smoothing.
12636
12637 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12638 platform versions. Drop support for emacs-20-style face specs.
12639 (x-close-connection): Drop PSFlush() under OS X.
12640 (x-focus-frame): Activate the app first. (Bug #4180)
12641
12642 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
12643
12644 * emacs.c (inhibit_x_resources): New variable.
12645 (main) [HAVE_NS]: Don't process --quick command line option.
12646 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12647
12648 * lisp.h (inhibit_x_resources): Declare it extern.
12649
12650 * w32reg.c (x_get_string_resource):
12651 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12652
12653 2009-09-17 Eli Zaretskii <eliz@gnu.org>
12654
12655 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12656 Add lisp/term/internal.elc.
12657
12658 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12659
12660 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12661 (bug#4461).
12662
12663 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12664
12665 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12666
12667 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12668 (OBJECTS_MACHINE): Remove, unused.
12669
12670 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12671
12672 * frame.c (x_get_resource_string): Remove unused.
12673
12674 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12675
12676 * xterm.c (x_new_font): Call change_frame_size before calling
12677 x_set_window_size, in case frame size won't change.
12678
12679 * frame.c (x_set_font): Remove dead code.
12680
12681 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12682
12683 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12684
12685 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12686
12687 * lread.c (Fload): Don't output a message after loading an obsolete
12688 package any more (done in Lisp now).
12689
12690 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
12691
12692 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12693
12694 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12695
12696 * keymap.c (Fwhere_is_internal): Use nconc2.
12697
12698 2009-09-11 Alan Mackenzie <acm@muc.de>
12699
12700 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12701 batch mode.
12702
12703 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12704
12705 * xdisp.c (display_mode_element): Detect cycles.
12706
12707 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12708
12709 * keymap.c (where_is_internal): Don't erroneously return nil right after
12710 filling the cache.
12711 (where_is_internal_1): Fix up typo.
12712
12713 2009-09-11 Glenn Morris <rgm@gnu.org>
12714
12715 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12716 share a common doc-string.
12717
12718 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12719
12720 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12721 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12722
12723 * keymap.c (QCadvertised_binding): New constant.
12724 (syms_of_keymap): Initialize it.
12725 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12726 if applicable.
12727
12728 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12729
12730 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12731 (parse_menu_item): Streamline since bindings are recomputed all the
12732 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12733 more and don't support lmenu's menu-alias any more either.
12734
12735 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12736 (where_is_internal): Strip it down to only traverse the keymaps.
12737 Move the cache handling from Fwhere_is_internal to here.
12738 (Fwhere_is_internal): Move the handling of remapping and the choice of
12739 the best binding from where_is_internal to here.
12740 Unify the cached/noncached paths, so remapping is also handled
12741 correctly when the cache is used, and so the cache can be used to
12742 speed up remap-handling when applicable.
12743 Give preference to non-remapped bindings.
12744 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12745 non-remapped bindings.
12746 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12747 command remapping.
12748
12749 * xdisp.c (display_mode_element): Move list length limit from 50 to
12750 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12751
12752 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
12753
12754 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12755
12756 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12757
12758 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12759 (Bug#4334)
12760
12761 * keymap.c (where_is_internal): Filter out shadowed remappings.
12762 Assume that where_is_internal returns unshadowed bindings to simplify
12763 the code and get rid of the gotos. Use ASIZE.
12764
12765 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12766
12767 * xterm.c (x_focus_changed): If we get a focusout and pointer
12768 is invisible, make it visible.
12769
12770 * xterm.h: Remove condition for declaration of
12771 x_*_window_to_frame.
12772
12773 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12774
12775 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12776 initial terminal as well.
12777
12778 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12779
12780 * xterm.h: Rename x_non_menubar_window_to_frame to
12781 x_menubar_window_to_frame.
12782
12783 * xterm.c: Remove declarations also in xterm.h.
12784 (XTmouse_position): Do not return valid positions
12785 for clicks in the menubar and the toolbar for Gtk+.
12786
12787 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12788 if the widget for the event has the same top level as a frame,
12789 return the frame.
12790 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12791 internal windows, bug #4122.
12792 (x_non_menubar_window_to_frame): Remove.
12793
12794 2009-09-02 Glenn Morris <rgm@gnu.org>
12795
12796 * buffer.c (default-major-mode): Move most of the doc from here...
12797 (major-mode): ... to here.
12798
12799 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
12800
12801 * process.c (wait_reading_process_output): Keep the descriptor
12802 when pty is used by a non-child process, e.g., in I/O buffer of
12803 GDB this allows inferior to be restarted.
12804
12805 2009-08-29 Eli Zaretskii <eliz@gnu.org>
12806
12807 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12808 both branches into one.
12809
12810 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12811
12812 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12813 (main): Use enable-multibyte-characters rather than
12814 default-enable-multibyte-characters. Output a warning message when
12815 running a unibyte session.
12816
12817 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12818
12819 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12820 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12821 (copy_data_segment): Also copy __program_vars section.
12822 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12823 (dump_it) [LC_DYLD_INFO]: Use it.
12824
12825 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12826
12827 2009-08-28 Eli Zaretskii <eliz@gnu.org>
12828
12829 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12830 $(SRC)/buildobj.h.
12831 (buildobj.h): Rename from $(SRC)/buildobj.h.
12832 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12833 $(SRC)/buildobj.h.
12834 (clean): Add buildobj.h.
12835
12836 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12837
12838 * print.c (print_object): Set escapeflag to 1 when printing
12839 hashtable keys and values.
12840
12841 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12842
12843 * lread.c (read_integer): Use doubles (and potentially return a float
12844 number) as we do in string-to-number.
12845 (read1): Use strtol to read integers, signal errors on strtol's
12846 overflow and use floats if strtol's output is too large for
12847 Elisp integers.
12848
12849 2009-08-27 Eli Zaretskii <eliz@gnu.org>
12850
12851 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12852 (make-buildobj-SH): Fix last change.
12853 (SRC): Move to before where it's first used.
12854
12855 2009-08-27 Kenichi Handa <handa@m17n.org>
12856
12857 * process.c (send_process): Use encode_coding_object instead of
12858 encode_coding_string to perform eol-conversion even if the string
12859 is unibyte.
12860
12861 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12862 character.
12863
12864 * cmds.c (Fself_insert_command): Avoid unnecessay
12865 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
12866
12867 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12868
12869 * callproc.c (Fcall_process): Remove always true #if.
12870
12871 * lisp.h: Replace #if 0 code for checking with text pointing to
12872 the --enable-checking configure flag.
12873
12874 * emacs.c (main): Mention the --enable-profiling configure flag
12875 instead of using CFLAGS.
12876
12877 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
12878
12879 * Makefile.in (buildobj.h): New target.
12880 (doc.o): Depend on it.
12881 (temacs${EXEEXT}): Don't generate buildobj.lst.
12882 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12883 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12884 ($(BLD)/doc.$(O)): Depend on it.
12885 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12886 provided by Eli Zaretskii.)
12887 ($(TEMACS)): Don't generate buildobj.lst.
12888 * doc.c: Include buildobj.h.
12889 (buildobj): New static variable.
12890 (Fsnarf_documentation): Use it, instead of opening and reading
12891 buildobj.lst.
12892
12893 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
12894
12895 * dbusbind.c (Fdbus_call_method)
12896 (Fdbus_call_method_asynchronously): Use English numeric format for
12897 timeout values in doc string.
12898
12899 2009-08-25 Kenichi Handa <handa@m17n.org>
12900
12901 * alloc.c (mark_char_table): New function.
12902 (mark_object): Use mark_char_table for a char-table.
12903
12904 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12905 (CHAR_TABLE_REF): Use it.
12906
12907 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
12908
12909 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12910 before invoking the newly build emacs to check for load-path
12911 shadowing.
12912
12913 2009-08-22 Glenn Morris <rgm@gnu.org>
12914
12915 * Makefile.in (bootstrap_exe): New variable.
12916 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12917 Use ${bootstrap_exe}.
12918
12919 2009-08-22 Eli Zaretskii <eliz@gnu.org>
12920
12921 * coding.h (encode_coding_string): Don't encode unibyte strings.
12922 (Bug#4047)
12923
12924 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
12925
12926 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12927
12928 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12929 intended as hotfix only.
12930 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12931
12932 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12933
12934 * nsterm.m (ns_get_color): Update documentation properly for last
12935 change, and clean up loose ends in the code left by it.
12936 Fix longstanding bug with 16-bit hex parsing, and add support for
12937 yet another X11 format (rgb:r/g/b) for compatibility.
12938 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12939 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12940
12941 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12942
12943 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12944
12945 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
12946
12947 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12948 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12949 (xd_initialize, xd_pending_messages): Check, whether
12950 $DBUS_SESSION_BUS_ADDRESS is set.
12951
12952 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12953
12954 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12955
12956 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12957
12958 2009-08-20 Glenn Morris <rgm@gnu.org>
12959
12960 * emacs.c (system-type): Doc fix.
12961
12962 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12963
12964 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12965 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12966
12967 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
12968
12969 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12970 New functions.
12971 (xd_initialize): Revert change from 2009-08-16.
12972
12973 2009-08-18 Kenichi Handa <handa@m17n.org>
12974
12975 * fontset.c (Ffontset_font): If a nil element is found in a
12976 font-group vector, return nil.
12977
12978 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
12979
12980 * process.c (status_notify): Don't perform redisplay.
12981 (Fdelete_process, list_processes_1, process_send_signal):
12982 Expliticly perform redisplay.
12983 (wait_reading_process_output): Always check process status, but
12984 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12985
12986 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
12987
12988 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
12989 (XFLOAT_INIT): New macro for storing a float value.
12990 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12991 * fns.c (sxhash): Copy out the value of a float in order to
12992 examine its bytes.
12993 * dbusbind.c (xd_append_arg): Likewise.
12994
12995 * emacs.c (main): Don't call syms_of_data twice.
12996
12997 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
12998
12999 * dbusbind.c (xd_initialize): Add connection file descriptor to
13000 input_wait_mask, in order to let select() detect, whether a new
13001 message has been arrived.
13002 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
13003
13004 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
13005
13006 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
13007 New functions.
13008
13009 * lisp.h (xd_pending_messages): Declare.
13010
13011 * keyboard.c (readable_events): Call xd_pending_messages.
13012
13013 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
13014
13015 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
13016
13017 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
13018
13019 * buffer.c (set_buffer_internal_1)
13020 (swap_out_buffer_local_variables): Check for unbound local
13021 variables (Bug#4138).
13022
13023 2009-08-14 Eli Zaretskii <eliz@gnu.org>
13024
13025 * process.c (create_pty): Fix last change.
13026
13027 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
13028
13029 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13030 (xbm_load_image): Caller changed.
13031 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
13032
13033 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
13034
13035 * process.c (create_pty): New function.
13036 (Fstart_process): Use it to allow Emacs to just associate a pty
13037 with the buffer. See associated change in gdb-mi.el.
13038 (list_processes_1): Deal with no program name.
13039 (start_process_unwind): Use pid == -2 to mean no process.
13040
13041 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
13042
13043 * cmds.c (nonundocount): New global variable.
13044 (keys_of_cmds): Initialize it.
13045 (Fself_insert_command): Use it to combine upto 20 sequential chars
13046 into a single undo entry, just like the Qself_insert_command code in
13047 keyboard.c does.
13048 Call frame_make_pointer_invisible, also like the Qself_insert_command
13049 code in keyboard.c does.
13050 * keyboard.c (command_loop_1): Use the new global nonundocount rather
13051 than its own local replacement for it.
13052
13053 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
13054
13055 * fns.c (concat): Don't re-set string length to its current value.
13056
13057 * coding.h (decode_coding_string, encode_coding_string):
13058 Use SBYTES macro.
13059
13060 * doprnt.c (doprnt_lisp): Delete unused function.
13061 (doprnt): Merge with doprnt1, discarding lispstrings code.
13062 * lisp.h (doprnt_lisp): Don't declare.
13063
13064 2009-08-07 Juri Linkov <juri@jurta.org>
13065
13066 * puresize.h (BASE_PURESIZE): Increase to 1270000.
13067
13068 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13069
13070 * print.c (syms_of_print): Undo previous change.
13071
13072 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
13073
13074 * lread.c (read1, syms_of_lread): Read hashtables back from the
13075 readable format.
13076
13077 * print.c (print_preprocess, print_object): Print hashtables fully
13078 and readably.
13079 (syms_of_print): Provide 'hashtable-print-readable.
13080
13081 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13082
13083 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13084 no family set.
13085 (nsfont_open): Handle case when entity has no family.
13086
13087 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13088
13089 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13090 element, not a list, for match case.
13091
13092 2009-07-28 Kenichi Handa <handa@m17n.org>
13093
13094 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13095 rigidly.
13096
13097 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13098 font_parse_xlfd. Check font properties more rigidly.
13099
13100 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13101
13102 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13103 bsd-common.h.
13104
13105 2009-07-27 Kenichi Handa <handa@m17n.org>
13106
13107 * xfaces.c (face_with_height): Call font_clear_prop.
13108
13109 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
13110
13111 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13112
13113 * xterm.c (x_term_init): Use Qx.
13114
13115 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13116
13117 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
13118 (ns_get_color): Revert 2009-07-16 change.
13119
13120 2009-07-25 Eli Zaretskii <eliz@gnu.org>
13121
13122 * lread.c (syms_of_lread) <force_load_messages>: New variable.
13123 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
13124
13125 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
13126
13127 * coding.h (decode_coding_string, encode_coding_string):
13128 Use SCHARS macro.
13129
13130 * lread.c: Rewrite 2009-07-21 changes.
13131 (load_depth): Delete.
13132 (Qload_in_progress): New variable.
13133 (load_unwind): Don't reference load_depth or load_in_progress.
13134 (Fload): Likewise; specbind Qload_in_progress instead.
13135 (init_lread): Don't initialize load_depth.
13136 (syms_of_lread): Initialize and protect Qload_in_progress.
13137
13138 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13139
13140 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13141
13142 2009-07-23 Yavor Doganov <yavor@gnu.org>
13143
13144 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13145
13146 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13147
13148 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
13149 Bugs 3792, 3720, 2402.
13150 (ns_lookup_indexed_color): Check for bad index.
13151 (ns_index_color): Init unused slot to 0.
13152 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13153 Bug 3714, possibly 3082.
13154
13155 2009-07-22 Jason Rumney <jasonr@gnu.org>
13156
13157 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13158 Position IME window at cursor (Bug#2570).
13159 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13160 (globals_of_w32fns): Dynamically load functions required above.
13161
13162 * w32term.c (w32_draw_window_cursor): Send message to reposition
13163 any IME window.
13164
13165 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13166
13167 * fileio.c: Revert 2009-07-16 changes.
13168 (Vauto_save_include_big_deletions): New variable.
13169 (Fdo_auto_save): Disable auto-save only if
13170 auto-save-include-big-deletions is nil.
13171
13172 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13173
13174 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13175 the overflowed pixels into account (Bug#3879).
13176
13177 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
13178
13179 * lread.c (load_depth): New variable.
13180 (Fload, load_unwind, init_lread): Set it to the load recursion
13181 depth; set load_in_progress as a simple boolean based on the
13182 current load_depth. (Bug#3892)
13183
13184 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13185
13186 * nsfont.m (ns_has_attribute): Remove.
13187 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13188
13189 2009-07-18 Juri Linkov <juri@jurta.org>
13190
13191 * process.c (Fset_process_query_on_exit_flag): Mention killing
13192 a buffer in docstring.
13193
13194 2009-07-17 Kenichi Handa <handa@m17n.org>
13195
13196 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13197
13198 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13199
13200 * nsfns.m (Fns_set_alpha): Remove function.
13201 (syms_of_nsfns): Don't defsubr it.
13202
13203 * nsterm.m (ns_get_color): Remove incompatible color formats.
13204 (ns_color_to_lisp): Generate #rrggbb color format string.
13205
13206 2009-07-16 Richard Stallman <rms@gnu.org>
13207
13208 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13209 (Fset_buffer_auto_saved): Handle save_length = -2.
13210
13211 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
13212
13213 * xterm.c (Qx_gtk_map_stock): New var.
13214
13215 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13216 of calling intern each time.
13217
13218 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13219
13220 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13221 does tiling.
13222
13223 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13224
13225 2009-07-14 Kenichi Handa <handa@m17n.org>
13226
13227 * font.c (font_vconcat_entity_vectors): New function.
13228 (struct font_sort_data): New member font_driver_preference.
13229 (font_compare): Check font_driver_preference.
13230 (font_sort_entities): The format of the first argument changed.
13231 (font_delete_unmatched): Likewise.
13232 (font_list_entities): The return type changed.
13233 (font_select_entity): The format of the second argument changed.
13234 (font_find_for_lface): Adjuste for the above changes.
13235 Don't suppress the checking of C even if the repertory supports it.
13236 (Flist_fonts): Adjust for the above changes.
13237
13238 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13239 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
13240 Reject a font who has adstyle property that is different from a
13241 langname derived from registry property.
13242 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
13243
13244 2009-07-13 Eli Zaretskii <eliz@gnu.org>
13245
13246 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13247 local copy of dirfilename.
13248
13249 2009-07-13 Kenichi Handa <handa@m17n.org>
13250
13251 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13252 against max_char.
13253
13254 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13255 calling XSYMBOL (sym).
13256
13257 2009-07-11 Eli Zaretskii <eliz@gnu.org>
13258
13259 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13260 New function.
13261 (directory_files_internal) [WINDOWSNT]:
13262 Bind w32-get-true-file-attributes to either t or nil, depending whether
13263 the filesystem of the directory is fast or slow.
13264
13265 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13266 file name.
13267 (is_slow_fs): New function.
13268 (stat): Use it to determine whether to issue more system calls to
13269 get accurate file attributes, when w32-get-true-file-attributes is
13270 `local'.
13271
13272 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13273
13274 * xfns.c (Fx_select_font): Remember last font selected in
13275 x_last_font_name and use that the next time. Also try the frame
13276 parameter font-parameter as default to the font dialog.
13277
13278 2009-07-10 Kenichi Handa <handa@m17n.org>
13279
13280 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13281
13282 2009-07-09 Eli Zaretskii <eliz@gnu.org>
13283
13284 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13285
13286 * w32.c (stat): Treat UNC file names as residing on remote
13287 drives. (Bug#3542)
13288
13289 2009-07-09 Kenichi Handa <handa@m17n.org>
13290
13291 * fontset.c (fontset_find_font): Fix previous change.
13292
13293 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
13294
13295 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13296 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13297 error flag.
13298
13299 2009-07-08 Kenichi Handa <handa@m17n.org>
13300
13301 * fontset.c (fontset_find_font): Fix the logic of handling
13302 charset_matched.
13303 (font_for_char): Delete unused var.
13304 (generate_ascii_font_name): Delete it.
13305
13306 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13307
13308 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13309 (encode_coding_sjis): Fix the code range check.
13310
13311 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
13312
13313 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13314 (Fexpand_file_name): Copy string data properly (Bug#3772).
13315
13316 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13317
13318 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13319 first MapNotify.
13320
13321 2009-07-07 Kenichi Handa <handa@m17n.org>
13322
13323 * character.h (unibyte_has_multibyte_table): Delete extern.
13324 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13325
13326 * charset.c (Fset_charset_priority): Update charset_unibyte.
13327 (syms_of_charset): Initialize charset_unibyte.
13328
13329 * character.c (unibyte_has_multibyte_table): Delete it.
13330 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13331 charset_unibyte.
13332 (multibyte_char_to_unibyte_safe): Likewise.
13333 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13334
13335 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
13336 (x_produce_glyphs): Likewise.
13337
13338 * .gdbinit (xcharset): Fix the treating $arg0.
13339
13340 2009-07-04 Eli Zaretskii <eliz@gnu.org>
13341
13342 Emulation of `getloadavg' on MS-Windows.
13343 * w32.c: Include float.h.
13344 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13345 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13346 (get_native_system_info, get_system_times): New functions.
13347 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13348 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13349 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13350 g_b_init_get_system_times, and num_of_processors.
13351
13352 2009-07-03 Jason Rumney <jasonr@gnu.org>
13353
13354 * w32term.c (w32_initialize): Use standard types.
13355
13356 2009-07-03 Eli Zaretskii <eliz@gnu.org>
13357
13358 * dired.c (Ffile_attributes): Decode user and group names by the
13359 locale's encoding. (Bug#3443)
13360
13361 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13362
13363 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13364 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13365
13366 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13367
13368 * term.c (init_tty): Remove spurious #ifdef.
13369
13370 * m/mips.h: Mention this file is also used for netbsd.
13371 * m/pmax.h: Remove file.
13372
13373 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13374
13375 * xterm.h (struct x_display_info): Add invisible_cursor.
13376 (struct x_output): Add current_cursor.
13377
13378 * xterm.c (XTtoggle_invisible_pointer): New function.
13379 (x_define_frame_cursor): Don't define cursor if invisible or the
13380 same as before. Set current_cursor.
13381 (x_create_terminal): Set toggle_invisible_pointer_hook.
13382
13383 * xfns.c (make_invisible_cursor): New function.
13384 (x_set_mouse_color): Call make_invisible_cursor.
13385 Set current_cursor.
13386 (x_window): Set current_cursor.
13387
13388 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13389
13390 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13391 inserting a character.
13392 (read_avail_input): Call frame_make_pointer_visible.
13393
13394 * frame.c (Vmake_pointer_invisible): New variable.
13395 (frame_make_pointer_invisible, frame_make_pointer_visible):
13396 New functions.
13397 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13398
13399 * frame.h: Declare frame_make_pointer_invisible and
13400 frame_make_pointer_visible.
13401 (struct frame): Add pointer_invisible.
13402
13403 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13404
13405 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13406 frame isn't visible.
13407 (xg_frame_resized): If width/height is -1, get size of window
13408 from X server.
13409
13410 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13411 for MapNotify.
13412
13413 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
13414 here or call change_frame_size. Just call flush_and_sync.
13415 (flush_and_sync): Reintroduce.
13416
13417 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
13418
13419 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
13420
13421 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13422 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13423
13424 * frame.h: Declare Qsticky.
13425
13426 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13427
13428 * nsfns.m (ns_frame_parm_handlers): Ditto.
13429
13430 * frame.c: Declare Qsticky.
13431 (frame_parms): Add sticky.
13432
13433 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13434
13435 * xterm.h: Declare x_set_sticky.
13436
13437 * xterm.c (x_set_sticky): New function.
13438
13439 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13440 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13441 xg_tool_bar_proxy_help_callback.
13442
13443 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13444
13445 * frame.c: Qmaximized is new.
13446 (x_set_frame_parameters): Do not handle fullscreen specially.
13447 Only set width and height if explicitly set.
13448 (x_set_fullscreen): Handle Qmaximized.
13449 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13450 (syms_of_frame): Initialize Qmaximized.
13451
13452 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13453 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
13454
13455 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
13456 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13457 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
13458 set gravity to NorthWestGravity when USE_GTK.
13459 (set_wm_state): New function.
13460 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
13461 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13462 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
13463 or the case when no window manager is running. That means remove calls
13464 to x_real_positions and x_fullscreen_adjust.
13465
13466 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13467 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13468 flush_and_sync.
13469 (xg_height_changed): New function.
13470 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
13471 and gtk_window_set_policy. Set frame gravity after parsing the
13472 geometry string.
13473 (xg_update_frame_menubar, free_frame_menubar)
13474 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13475 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13476 Remove calls to xg_frame_set_char_size.
13477
13478 2009-07-01 Kenichi Handa <handa@m17n.org>
13479
13480 * keyboard.c (decode_keyboard_code): New function.
13481 (tty_read_avail_input): Decode the input bytes if necessary.
13482
13483 * coding.c (setup_coding_system):
13484 Initialize coding->carryover_bytes to 0.
13485 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13486 use Qno_conversion.
13487
13488 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13489
13490 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13491
13492 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
13493
13494 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13495
13496 2009-06-30 Jason Rumney <jasonr@gnu.org>
13497
13498 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13499 is already loaded.
13500 Set user model ID if supported (bug#1849).
13501
13502 2009-06-29 Jim Meyering <meyering@redhat.com>
13503
13504 Remove useless if-before-xfree test.
13505 * nsfont.m (nsfont_close): Remove useless test.
13506 * term.c (delete_tty): Likewise.
13507 * w32.c (system_process_attributes): Likewise.
13508 * w32font.c (w32font_close): Likewise.
13509 * xfaces.c (x_free_gc): Likewise.
13510 * xselect.c (buffer): Likewise.
13511
13512 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13513
13514 * process.c (send_process): Keep decoded string in a local
13515 variable and protect it from GC. (Bug#3521)
13516
13517 2009-06-28 Eli Zaretskii <eliz@gnu.org>
13518
13519 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13520 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13521
13522 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
13523
13524 * xdisp.c (start_display, handle_face_prop)
13525 (move_it_vertically_backward, cursor_row_fully_visible_p)
13526 (redisplay_window, try_window_id, produce_image_glyph):
13527 Delete some #ifdef-ed out code chunks that are now obsolete.
13528
13529 * xterm.c (x_update_window_begin, x_new_focus_frame)
13530 (x_scroll_bar_handle_click, handle_one_xevent)
13531 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13532 (x_make_frame_visible, x_make_frame_invisible)
13533 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13534 code chunks that are now obsolete.
13535
13536 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
13537
13538 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13539 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13540 for hours, when optimzation is enabled.
13541 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13542 (xd_read_message): Make them static.
13543
13544 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13545
13546 * term.c (turn_on_face): Allow simultaneously bold and dim
13547 terminal faces (Bug#3530).
13548
13549 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
13550
13551 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13552
13553 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13554 truncation glyphs (Bug#3686).
13555
13556 2009-06-27 Glenn Morris <rgm@gnu.org>
13557
13558 * m/pmax.h: Restore file, with only netbsd portions.
13559
13560 2009-06-26 David Reitter <david.reitter@gmail.com>
13561
13562 * nsterm.m (keydown): Avoid infinite loop.
13563
13564 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13565
13566 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13567 the arg FORCE_SYMBOL.
13568
13569 2009-06-25 Kenichi Handa <handa@m17n.org>
13570
13571 * fontset.c (fontset_find_font): When a usable rfont_def is found
13572 in a fallback font-group, make it the first element of the group.
13573
13574 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
13575
13576 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13577
13578 2009-06-24 Kenichi Handa <handa@m17n.org>
13579
13580 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13581 set for C.
13582 (fontset_font): Record the availability of a font for C both in
13583 the realized fontsets of the current one and the default one.
13584
13585 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13586
13587 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13588 conditional, it is always defined on AIX.
13589
13590 2009-06-23 Miles Bader <miles@gnu.org>
13591
13592 * window.c (Vrecenter_redisplay): New variable.
13593 (syms_of_window): Initialize it.
13594 (Qtty): New extern declaration.
13595 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13596
13597 2009-06-23 Jim Meyering <meyering@redhat.com>
13598
13599 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13600 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
13601 pointer dereferences are guaranteed to be valid.
13602
13603 2009-06-23 Kenichi Handa <handa@m17n.org>
13604
13605 * emacs.c (main): Call init_font ().
13606
13607 * font.h (Vfont_log): Extern it.
13608 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13609
13610 * font.c (font_sort_entities, font_list_entities)
13611 (font_matching_entity, font_open_entity)
13612 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13613 (Vfont_log): Delete static.
13614 (font_log_env_checked): Delete this variable.
13615 (font_add_log): Don't check font_log_env_checked.
13616 (font_deferred_log): Check Vfont_log.
13617 (init_font): New function.
13618
13619 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13620
13621 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13622
13623 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13624
13625 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13626
13627 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13628 (face_for_char): Don't call font_deferred_log here.
13629 (font_for_char): Likewise.
13630
13631 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
13632
13633 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13634 rather than its background_width for drawing the overline and
13635 underline (Bug#489).
13636
13637 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13638 rather than its background_width for drawing the overline and
13639 underline (Bug#489).
13640 (xg_default_icon_file): New variable.
13641 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13642 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
13643
13644 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13645 (load_overlay_strings): Remove externs.
13646 (fast_find_position): Function deleted.
13647 (mouse_face_from_buffer_pos): New function, based on
13648 fast_find_position. Correctly handle before-strings,
13649 display-strings, and after-strings (Bug#1220).
13650 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13651
13652 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13653
13654 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
13655 (move_it_in_display_line_to, move_it_in_display_line_to)
13656 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13657
13658 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13659
13660 * Branch for 23.1.
13661
13662 2009-06-21 Jason Rumney <jasonr@gnu.org>
13663
13664 * w32term.c (keyboard_codepage): New static variable.
13665 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13666 (w32_read_socket) [WM_CHAR]: Use it to decode character
13667 input (bug#3237).
13668 (w32_initialize): Initialize it.
13669 (codepage_for_locale): New function.
13670
13671 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
13672
13673 * process.c (status_message): Pass Faset index argument as a lisp
13674 object, so as to work with USE_LISP_UNION_TYPE.
13675
13676 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13677
13678 * coding.c (Ffind_coding_systems_region_internal):
13679 Cache checked characters.
13680
13681 2009-06-18 Kenichi Handa <handa@m17n.org>
13682
13683 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
13684
13685 2009-06-18 Andreas Schwab <aschwab@redhat.com>
13686
13687 * xdisp.c (redisplay_internal): Check that the frame is still
13688 live after redisplay of its windows.
13689 (redisplay_windows): Check that the window is still live.
13690
13691 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13692
13693 * coding.c (detect_coding_utf_16): Fix previous change.
13694
13695 2009-06-16 Kenichi Handa <handa@m17n.org>
13696
13697 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13698 UTF-16 by checking the dispersion of Eth and Oth bytes.
13699
13700 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13701
13702 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13703
13704 2009-06-15 Kenichi Handa <handa@m17n.org>
13705
13706 * process.c (status_message): Fix previous change. Be sure to
13707 decode a localized string.
13708
13709 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13710
13711 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13712 add comment explaining why.
13713
13714 2009-06-14 Sidney Markowitz <sidney@sidney.com>
13715
13716 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
13717
13718 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13719
13720 * nsfont.m (ns_attribute_value): Remove.
13721 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13722 (ns_has_attribute): Shrink the normal range.
13723 (ns_findfonts): Don't worry about requested spec in determining
13724 need for synthItal.
13725 (ns_get_covering_families): Retain scriptToFamilies.
13726
13727 2009-06-14 Seiji Zenitani <zenitani@mac.com>
13728
13729 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13730
13731 2009-06-11 Kenichi Handa <handa@m17n.org>
13732
13733 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13734 overhang for the static composition case.
13735
13736 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13737
13738 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13739 overhang for the automatic composition case.
13740
13741 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13742 composition case.
13743
13744 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
13745
13746 * xdisp.c (get_next_display_element): When handling wrap-prefix
13747 and line-prefix, treat \n as a control character (bug#3502).
13748
13749 2009-06-10 Kenichi Handa <handa@m17n.org>
13750
13751 * font.c (font_parse_family_registry): Fix for one-char foundry.
13752 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13753
13754 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13755
13756 * process.c (status_message): Fix handling of multibyte signal
13757 string (Bug#3499).
13758
13759 2009-06-09 Jim Meyering <meyering@redhat.com>
13760
13761 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13762 color name is missing.
13763
13764 2009-06-09 Kenichi Handa <handa@m17n.org>
13765
13766 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13767 FROM-CODE and TO-CODE are codepoints of CHARSET.
13768
13769 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13770
13771 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13772
13773 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13774
13775 Changes to support :script/:lang/:otf in NS font driver.
13776 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13777 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13778 indicate not part of font driver interface, and change callers.
13779 (ns_get_family): Remove pointless null check.
13780 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13781 ns_spec_to_descriptor, ns_descriptor_to_entity.
13782 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13783 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13784 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13785 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13786 (ns_get_req_script, ns_accumulate_script_ranges)
13787 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13788 New functions.
13789 (nsfont_list, nsfont_match): Use ns_findfonts.
13790 (nsfont_open): Use font descriptor instead of traits.
13791 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13792 (dump_glyphstring): Rename to ns_dump_glyphstring.
13793
13794 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13795
13796 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13797
13798 * fontset.c (fontset_from_font): Remove NS-specific code.
13799
13800 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
13801
13802 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13803 nonactive windows.
13804
13805 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
13806
13807 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
13808
13809 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13810
13811 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13812
13813 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
13814
13815 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13816 account for the overflowing of newlines into the last glyph on the
13817 display line (Bug#3482).
13818
13819 2009-06-05 David Reitter <david.reitter@gmail.com>
13820
13821 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13822 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
13823 Fns_selection_exists_p, Fns_selection_owner_p.
13824
13825 2009-06-03 Jason Rumney <jasonr@gnu.org>
13826
13827 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13828 available. (Bug#3379)
13829
13830 2009-05-29 Kenichi Handa <handa@m17n.org>
13831
13832 * coding.c (get_translation_table):
13833 Check Venable_character_translation.
13834
13835 2009-05-26 David Reitter <david.reitter@gmail.com>
13836
13837 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13838 (x_make_frame_visible): Move frame to front rather than calling
13839 ns_raise_frame().
13840 (keyDown:): Do not swallow events that aren't re-sent if frame
13841 isn't key window.
13842 (drawRect:): Do not set visibility/iconified flags because
13843 drawRect may be called by NSView even if the frame is hidden.
13844
13845 * nsfns.m (Fx_create_frame): Follow other ports in
13846 determining visibility; default to t. Ensure async_visible is set.
13847
13848 2009-05-23 Eli Zaretskii <eliz@gnu.org>
13849
13850 * dired.c (Ffile_attributes): Doc fix.
13851
13852 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
13853
13854 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13855
13856 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13857
13858 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13859 and xfont_scratch_props.
13860 (syms_of_xfont): Do it here instead.
13861 (xfont_find_ccl_program): Delete, unused.
13862 (xfont_open): Delete unused var `i'.
13863
13864 2009-05-21 Kenichi Handa <handa@m17n.org>
13865
13866 * fontset.c (Qlatin): Don't make it static.
13867
13868 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13869 New functions.
13870 (xfont_scripts_cache, xfont_scratch_props): New variables.
13871 (Qlatin, Vscalable_fonts_allowed): Extern it.
13872 (xfont_list_pattern): Argument changed. Callers changed.
13873 Check Vscalable_fonts_allowed. Check the support of a script.
13874 (xfont_list): Don't reject a font spec with :script property.
13875 (xfont_has_char): Fix setting of encoding.
13876 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13877 xfont_scratch_props.
13878
13879 2009-05-19 Kenichi Handa <handa@m17n.org>
13880
13881 * font.c (font_sort_entities): Rename from font_sort_entites.
13882 Callers changed.
13883
13884 2009-05-18 Kenichi Handa <handa@m17n.org>
13885
13886 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13887
13888 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13889
13890 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13891 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13892
13893 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13894
13895 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13896 (x_delete_terminal): Dissociate resource database from display and
13897 then call XrmDestroyDatabase before closing display.
13898
13899 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13900
13901 * nsterm.m (ns_read_socket): Remove unused variable.
13902 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13903 whether selected frame is viable before raising it (based on patch
13904 by David Reitter), and improve commentary.
13905 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
13906
13907 2009-05-15 Kenichi Handa <handa@m17n.org>
13908
13909 * font.c (Ffont_spec): Check arguments.
13910
13911 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
13912
13913 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13914 weight when testing attributes (Bug#3282).
13915
13916 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13917
13918 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13919 what we expect to get in the next ConfigureNotify event.
13920
13921 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13922 before Xft one (Bug#1696).
13923
13924 2009-05-07 David Reitter <david.reitter@gmail.com>
13925
13926 * nsfns.m (Fx_display_planes): Compute bitplanes using
13927 NSBitsPerPixelFromDepth (Bug#3207).
13928
13929 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
13930
13931 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13932
13933 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
13934
13935 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13936
13937 2009-05-07 David Reitter <david.reitter@gmail.com>
13938
13939 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13940 Respect mouse face background.
13941
13942 2009-05-07 David Reitter <david.reitter@gmail.com>
13943
13944 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13945 Mouse movement/highlight: bracket drawing operations
13946 in ns_update_begin and ns_update_end.
13947
13948 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13949
13950 * nsfns.m (ns_get_screen): Rewrite.
13951 Don't presume selected-frame is of type `ns'.
13952
13953 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13954 all drivers.
13955
13956 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13957
13958 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13959
13960 * keyboard.h (add_user_signal): Fix typo in extern.
13961
13962 * lisp.h (add_user_signal): Remove extern.
13963
13964 * unexelf.c (unexec): Consider a section to precede the .bss section
13965 if its addresses overlap that of .bss.
13966 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13967 instead of dumping process.
13968
13969 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13970
13971 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13972
13973 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13974
13975 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13976
13977 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13978
13979 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13980 any statements.
13981
13982 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13983
13984 * process.c (read_process_output): Make sure the current buffer is
13985 always restored.
13986
13987 * coding.c (record_conversion_result): Don't modify
13988 Vlast_code_conversion_error for successful result.
13989 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13990
13991 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13992
13993 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
13994 (load_charset_map): Remove unnecessary code.
13995
13996 2009-04-30 David Reitter <david.reitter@gmail.com>
13997
13998 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
13999 through f24.
14000
14001 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
14002
14003 * xfaces.c (face_at_buffer_position): New arg base_face_id.
14004
14005 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
14006 face_at_buffer_position.
14007 (face_before_or_after_it_pos, get_next_display_element)
14008 (note_mouse_highlight): Update face_at_buffer_position call.
14009
14010 * term.c (term_mouse_highlight):
14011 * msdos.c (IT_note_mouse_highlight):
14012 * fontset.c (Finternal_char_font):
14013 * font.c (font_at, font_range): Update face_at_buffer_position call.
14014
14015 * dispextern.h (face_at_buffer_position): Update prototype.
14016
14017 2009-04-30 Kenichi Handa <handa@m17n.org>
14018
14019 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
14020
14021 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
14022
14023 * callproc.c (Fcall_process): Fix GC protection. Make sure
14024 current buffer is always restored.
14025
14026 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14027
14028 * atimer.c (init_atimer): Also clear stopped_atimers.
14029
14030 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14031
14032 * process.c (create_process): Clean up merger residues of
14033 2008-07-17 change.
14034
14035 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
14036
14037 * lread.c (Vread_circle): New variable.
14038 (read1): Disable recursive read if Vread_circle is nil.
14039
14040 2009-04-29 Kenichi Handa <handa@m17n.org>
14041
14042 * fontset.h (set_default_ascii_font): Delete extern.
14043
14044 * fontset.c (set_default_ascii_font): Delete this unused function.
14045
14046 * frame.c (x_set_font): When ARG is a font-object, check if the
14047 font-object matches with the ASCII font-spec of the frame's
14048 fontset. If not, create a new fontset for the frame. (Bug #3075)
14049
14050 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
14051
14052 * fns.c (Flocale_info): Protect vector from GC during decoding.
14053
14054 * process.c (Fstart_process): Protect argv strings from GC during
14055 encoding.
14056
14057 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
14058
14059 * sysdep.c: Include <ctype.h>.
14060
14061 2009-04-27 David Reitter <david.reitter@gmail.com>
14062
14063 * nsfont.m (nsfont_open): Remove unused variable shrink.
14064 Remove commented-out code.
14065
14066 2009-04-26 Johan Bockgård <bojohan@gnu.org>
14067
14068 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14069
14070 2009-04-25 Jason Rumney <jasonr@gnu.org>
14071
14072 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14073
14074 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14075
14076 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14077 Swap bytes in short integer if fringe bitmap width > 8.
14078
14079 2009-04-23 Kenichi Handa <handa@m17n.org>
14080
14081 * xfaces.c (Fx_list_fonts): If a font size is specified in
14082 PATTERN, set it in returned scalable fonts.
14083
14084 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
14085
14086 * keyboard.c (Fset_input_meta_mode): Doc fix.
14087
14088 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14089
14090 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
14091
14092 * coding.c (Fterminal_coding_system): Doc fix.
14093
14094 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14095 (Fx_display_pixel_height, Fx_display_planes)
14096 (Fx_display_color_cells, Fx_server_max_request_size)
14097 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14098 (Fx_display_mm_height, Fx_display_mm_width)
14099 (Fx_display_backing_store, Fx_display_visual_class)
14100 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14101 Doc fixes, replacing "terminal id" with "terminal object".
14102 (check_x_display_info): Handle terminal objects instead of
14103 terminal ids.
14104
14105 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14106 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
14107 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14108 Doc fixes, replacing "terminal id" with "terminal object".
14109
14110 2009-04-21 Kenichi Handa <handa@m17n.org>
14111
14112 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
14113 (font_score): Check AVGWIDTH too.
14114
14115 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14116 worst case.
14117 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14118 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
14119
14120 2009-04-19 Jason Rumney <jasonr@gnu.org>
14121
14122 The following changes fix Bug#3005 for wide glyphs on each platform,
14123 without reintroducing Bug#1258 for stretch glyphs.
14124
14125 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14126 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14127 get_phys_cursor_geometry.
14128
14129 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
14130 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14131 using get_phys_cursor_geometry.
14132
14133 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14134 correctly calculated.
14135
14136 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14137
14138 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14139 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
14140 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14141 is deprecated.
14142
14143 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14144
14145 * font.c (font_put_frame_data): Use xfree instead of free.
14146
14147 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
14148
14149 * w32font.c (Qja, Qko): Remove declarations.
14150 (syms_of_w32font): Don't DEFSYM them.
14151
14152 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
14153
14154 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14155
14156 * font.h (Qja, Qko): Extern them.
14157
14158 * ftfont.c (Qja, Qko): Remove declarations.
14159
14160 * xfont.c (Qja, Qko): Remove declarations.
14161
14162 2009-04-17 Kenichi Handa <handa@m17n.org>
14163
14164 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14165 string from a vector to handle Latin-1 characters correctly.
14166
14167 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14168 entity even if the cache hits.
14169
14170 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14171
14172 * search.c (boyer_moore): Use zero as marker value for a possible
14173 match instead of depending on overflow behavior. (Bug#2844)
14174
14175 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14176 * lisp.h: Adjust prototypes.
14177
14178 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
14179
14180 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14181 change (Bug#3003).
14182
14183 2009-04-16 Kenichi Handa <handa@m17n.org>
14184
14185 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
14186
14187 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14188 adstyle.
14189
14190 * ftfont.c (Qja, Qko): Don't make them static.
14191 (enum ftfont_cache_for): New enum.
14192 (fc_charset_table): Undo the previous change.
14193 (ftfont_get_latin1_charset): Delete it.
14194 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14195 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
14196 non-scarable font, try to get AVERAGE_WIDTH.
14197 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14198 Change ft_face_cache from a list of a hash-table. Don't check
14199 `ja' and `ko' adstyle here.
14200 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14201 FTFONT_CACHE_FOR_CHARET.
14202 (ftfont_get_charset): Undo the previous change.
14203 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
14204 (ftfont_close): Likewise.
14205 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14206
14207 * font.c (font_sort_entites): Change the meaning of the arg
14208 BEST-ONLY. Don't optimize for VEC of lenght 1.
14209 (font_select_entity): Just return the value of font_sort_entites.
14210
14211 * xfaces.c (merge_face_vectors): Reflect font properties in
14212 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14213 font_clear_prop if a face attribute doesn't change.
14214
14215 * charset.h (charset_ksc5601): Extern it.
14216
14217 * charset.c (charset_ksc5601): New variable.
14218 (Fdefine_charset_internal): Set charset_ksc5601.
14219 (init_charset_once): Initialize charset_ksc5601 to -1.
14220
14221 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14222
14223 * fileio.c (history_delete_duplicates): Remove unused declaration.
14224
14225 * callint.c (history_delete_duplicates): New declaration.
14226 (Fcall_interactively): Remove command history duplicates when
14227 history_delete_duplicates is true.
14228
14229 2009-04-14 Eli Zaretskii <eliz@gnu.org>
14230
14231 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14232
14233 2009-04-14 Kenichi Handa <handa@m17n.org>
14234
14235 * font.c (Ffont_info): Fix docstring. Fix the second element of
14236 the returned value (bug#2949).
14237
14238 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
14239
14240 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14241
14242 2009-04-14 Kenichi Handa <handa@m17n.org>
14243
14244 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14245 encoding charset is ascii_compatible.
14246
14247 * charset.c (Fdefine_charset_internal): Make charset
14248 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14249 code_offset is 0, and covers all ASCII characters.
14250
14251 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14252
14253 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14254 (ns_string_to_pasteboard_internal):
14255 * nsmenu.m (process_dialog):
14256 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14257 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14258 * lisp.h (Fx_load_color_file): Declare.
14259
14260 2009-04-13 Kenichi Handa <handa@m17n.org>
14261
14262 * font.c (font_delete_unmatched): Preserve the order of list elements.
14263 (font_select_entity): Suppress the code to optimize for the same
14264 kind of fonts.
14265 (font_load_for_lface): Get a font that supports at least ASCII
14266 characters.
14267
14268 * ftfont.c (Qja, Qko): New variables.
14269 (fc_charset_table): Delete uniquifier data for iso8859-1.
14270 (ftfont_get_latin1_charset): New function.
14271 (get_adstyle_property): New function.
14272 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14273 bitmap fonts.
14274 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14275 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14276 `ko' or `ja'.
14277 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
14278 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
14279 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14280 property.
14281 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14282 (syms_of_ftfont): DEFSYM Qja and Qko.
14283
14284 2009-04-09 Kenichi Handa <handa@m17n.org>
14285
14286 * charset.c (map_charset_chars): For a charset of `superset'
14287 method, fix calculation of code range.
14288
14289 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14290 from the list of extra properties.
14291 (font_clear_prop): Be sure to delete `:name' font property.
14292
14293 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14294
14295 * dispnew.c (redraw_overlapping_rows): Fix detection of
14296 overlapping for topmost and bottommost rows.
14297
14298 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
14299
14300 2009-04-06 Jason Rumney <jasonr@gnu.org>
14301
14302 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14303
14304 2009-04-06 Kenichi Handa <handa@m17n.org>
14305
14306 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14307
14308 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14309
14310 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14311
14312 * ftfont.c (ftfont_open): Fix checking of the return value of
14313 FT_Load_Char. Fix setting font->underline_thickness.
14314
14315 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
14316
14317 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14318 (Fterminal_parameters, Fterminal_parameter)
14319 (Fset_terminal_parameter): In doc string, refer to terminal
14320 objects rather than terminal ids.
14321
14322 2009-04-04 Eli Zaretskii <eliz@gnu.org>
14323
14324 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14325 ret_lim_data. (Bug#2867)
14326
14327 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
14328
14329 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14330 so they don't get wider than the window, matching 2006-01-23
14331 change to the partner function in xdisp.c (Bug#2800).
14332
14333 2009-04-03 Kenichi Handa <handa@m17n.org>
14334
14335 * print.c (print_object): Make each lowest sub_char_table start a
14336 new line (Bug#2866).
14337
14338 2009-04-02 Kenichi Handa <handa@m17n.org>
14339
14340 * fontset.c (fontset_font): Record no-font when a fontset
14341 explicitly tells not to try another font-specs.
14342
14343 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14344
14345 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14346
14347 2009-03-30 Kenichi Handa <handa@m17n.org>
14348
14349 * fontset.c (fontset_from_font): Specify only registry in a
14350 font-spec for all characters supported by that registry.
14351
14352 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14353 even if HAVE_M17N_FLT is not defined.
14354
14355 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14356
14357 * ftfont.c: Conditionalize prototyping and use of
14358 ftfont_variation_glyphs.
14359
14360 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14361
14362 * frame.c (delete_frame): Work around compiler bug.
14363
14364 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14365 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14366 Some more EMACS_INT.
14367 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14368
14369 * xdisp.c (dump_glyph): Fix typo.
14370
14371 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14372 (adjust_markers_gap_motion, adjust_markers_for_delete)
14373 (adjust_markers_for_insert, adjust_point)
14374 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14375 (make_gap, copy_text, count_size_as_multibyte, insert)
14376 (insert_and_inherit, insert_before_markers)
14377 (insert_before_markers_and_inherit, insert_1)
14378 (count_combining_before, count_combining_after, insert_1_both)
14379 (insert_from_string, insert_from_string_before_markers)
14380 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14381 (insert_from_buffer_1, adjust_after_replace)
14382 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14383 (replace_range_2, del_range, del_range_1, del_range_byte)
14384 (del_range_both, del_range_2, modify_region)
14385 (prepare_to_modify_buffer, signal_before_change)
14386 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14387 for buffer positions and sizes.
14388 * lisp.h: Adjust prototypes accordingly.
14389
14390 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14391 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14392 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14393
14394 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14395
14396 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14397
14398 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14399 lines and columns so we keep the same pixel height and width.
14400
14401 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14402 the property _NET_WM_STATE has changed.
14403 (x_handle_net_wm_state): New function to update frame parameter
14404 fullscreen.
14405 (x_term_init): Initialize atoms for _NET_WM_STATE.
14406
14407 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14408
14409 2009-03-27 Kevin Ryde <user42@zip.com.au>
14410
14411 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14412 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14413 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14414 (Fgpm_mouse_stop): Pass that new parameter.
14415 * termhooks.h (close_gpm): Adjust prototype.
14416
14417 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14418
14419 * lisp.h (Fx_focus_frame): Declare.
14420
14421 * callint.c (Fcall_interactively): For '^' just delegate the work to
14422 handle-shift-selection.
14423 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14424
14425 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
14426
14427 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14428
14429 * data.c (Qinteractive_form): New variable.
14430 (Finteractive_form): Use it.
14431
14432 * eval.c (Fcommandp): Use Qinteractive_form.
14433
14434 2009-03-24 Jason Rumney <jasonr@gnu.org>
14435
14436 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14437 Calculate total size precisely. Decode environment variables
14438 before substituting. (Bug#38)
14439
14440 2009-03-24 Kenichi Handa <handa@m17n.org>
14441
14442 * font.c (find_font_encoding): Return Qnil for unsupported
14443 encoding (Bug#2722).
14444
14445 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14446
14447 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14448 that gdpy is set.
14449
14450 2009-03-22 Alan Mackenzie <acm@muc.de>
14451
14452 * callint.c (Finteractive): Clarify the doc string - even
14453 promptless elements need \n separators.
14454
14455 2009-03-22 Jason Rumney <jasonr@gnu.org>
14456
14457 * w32term.c (syms_of_w32term): Doc fix for
14458 x-use-underline-position-properties.
14459
14460 2009-03-21 Eli Zaretskii <eliz@gnu.org>
14461
14462 * w32.c (getpwuid): Change argument type to unsigned.
14463 (struct w32_id): Change type of `rid' member to unsigned.
14464 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14465 argument ID to unsigned. All callers changed.
14466 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14467
14468 2009-03-20 Eli Zaretskii <eliz@gnu.org>
14469
14470 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14471 negative, produce a float value.
14472
14473 * dired.c (make_uid, make_gid): New functions.
14474 (Ffile_attributes): Use them to avoid negative UID and GID.
14475
14476 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
14477
14478 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14479 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14480 Fix typos in docstrings.
14481
14482 2009-03-19 Kenichi Handa <handa@m17n.org>
14483
14484 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14485 changed, use font_load_for_lface to get a new font object.
14486 Call free_realized_fontset after handling ASCII font change.
14487
14488 * frame.c (x_set_font): Handle the case that ARG is a cons.
14489
14490 2009-03-19 Glenn Morris <rgm@gnu.org>
14491
14492 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14493
14494 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
14495
14496 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14497
14498 2009-03-19 Kenichi Handa <handa@m17n.org>
14499
14500 * charset.c (load_charset_map_from_file): When a mapfile can't be
14501 loaded, signal an error.
14502
14503 2009-03-18 Eli Zaretskii <eliz@gnu.org>
14504
14505 * dired.c (Ffile_attributes): Make sure UID and GID are always
14506 positive, even if the value is too large for a positive EMACS_INT.
14507 Doc fix.
14508
14509 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14510
14511 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14512
14513 * xmenu.c (xdialog_show): Move Fredisplay call ...
14514 (Fx_popup_dialog): ... here.
14515
14516 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14517
14518 * dired.c (file_name_completion): Disable the first optimization just
14519 installed, since it is not implemented correctly.
14520
14521 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14522
14523 * dired.c (file_name_completion): Check completion-ignored-extensions
14524 only if the entry can affect bestmatch.
14525 Stop the search early, as Ftry_completion already does.
14526
14527 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
14528
14529 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14530
14531 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
14532
14533 * keyboard.c (parse_menu_item): Don't display remappings as menu
14534 equivalent bindings (Bug#788).
14535
14536 2009-03-15 Jason Rumney <jasonr@gnu.org>
14537
14538 * w32term.h (WM_EMACS_PAINT): New message.
14539 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14540 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14541 before passing to lisp thread. (Bug#950)
14542
14543 2009-03-14 David Reitter <david.reitter@gmail.com>
14544
14545 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14546 variable as it was never reset.
14547 (ns_term_init): Remove initialization of Lisp-settable defaults
14548 and ns_expand_space.
14549 (-setPanelFromDefaultValues): Remove ns_expand_space.
14550 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14551 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14552 i.e. no additional spacing, similar to Carbon port.
14553
14554 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14555 * nsfns.m (ns-popup-prefs-panel): Remove.
14556
14557 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14558
14559 * sound.c (alsa_configure): Remove call to deprecated
14560 snd_pcm_sw_params_set_xfer_align.
14561
14562 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
14563
14564 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14565 after clicking in a detached tool bar.
14566 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14567
14568 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14569
14570 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14571 int/Lisp_Object mixup).
14572
14573 2009-03-13 Kenichi Handa <handa@m17n.org>
14574
14575 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14576 Handle NAME nil and t correctly. Callers changed.
14577 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14578 (set_fontset_font): Change ARG to a vector. Handle range_list in
14579 ARG correctly.
14580 (Fset_fontset_font): Fix the case that TARGET is both a script
14581 name and charset name. Adjust the arg to set_fontset_font for
14582 the above change.
14583 (fontset_from_font): Fix previous change.
14584 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
14585 entry. If FONTSET is the default fontset, don't set the extra
14586 slot of the returning char-table.
14587
14588 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
14589
14590 * nsfns.m (Fx_close_connection): Doc fix.
14591 (Fns_do_applescript): Reflow docstring.
14592 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14593 (Fx_display_pixel_width, Fx_display_pixel_height)
14594 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14595 Fix typos in docstrings.
14596 (Fns_set_alpha): Fix typos in error messages.
14597
14598 2009-03-12 David Reitter <david.reitter@gmail.com>
14599
14600 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
14601 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14602 were used for such events.
14603
14604 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14605 (toggleToolbar, performDragOperation, runHelp): Use it.
14606
14607 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
14608 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14609
14610 2009-03-11 Kenichi Handa <handa@m17n.org>
14611
14612 * font.h (font_open_by_spec): Extern it.
14613
14614 * font.c (font_open_by_spec): New function.
14615 (font_open_by_name): Use font_open_by_spec.
14616
14617 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14618 fontset of the frame.
14619
14620 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14621 modify the default font of frames that use this fontset.
14622 (num_auto_fontsets): New variable.
14623 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14624 name. Be sure to set FONTSET_ASCII to the correct font name.
14625 (update_auto_fontset_alist): New function.
14626
14627 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
14628
14629 * makefile.w32-in: Update dependencies.
14630
14631 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14632
14633 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14634
14635 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14636
14637 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14638
14639 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
14640
14641 * lread.c (Feval_buffer): Doc fix.
14642
14643 2009-03-09 Kenichi Handa <handa@m17n.org>
14644
14645 * charset.c (Qfile_name_handler_alist): Extern it.
14646 (load_charset_map_from_file): Temporarily bind
14647 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14648
14649 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
14650
14651 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14652 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
14653
14654 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14655
14656 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14657 (x_set_window_size): Change back to calculated method of setting
14658 toolbar height under Cocoa. (Bug#2546)
14659 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14660 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14661
14662 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14663
14664 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14665 accelerator in parens under GNUstep.
14666
14667 2009-03-06 Kenichi Handa <handa@m17n.org>
14668
14669 These changes are to detect incorrect composition sequence without
14670 looking ahead the source. (Bug#2370)
14671
14672 * coding.h: Include "composite.h".
14673 (enum compisition_state): New enum.
14674 (struct compisition_status): New struct.
14675 (struct iso_2022_spec): New member cmp_status.
14676 (struct emacs_mule_spec): New struct.
14677 (struct coding_system): New members ctext_extended_segment_len and
14678 embedded_utf_8. Change the union member
14679 spec.emacs_mule_full_support to spec.emacs_mule.
14680
14681 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14682 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
14683 (MAX_ANNOTATION_LENGTH): Define to 5.
14684 (ADD_COMPOSITION_DATA): New arg nbytes.
14685 (emacs_mule_char): New arg cmp_status.
14686 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14687 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14688 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14689 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14690 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14691 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14692 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14693 (EMACS_MULE_COMPOSITION_END): New macro.
14694 (emacs_mule_finish_composition): New function.
14695 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14696 (decode_coding_emacs_mule): Avoid long looking ahead while
14697 handling composition.
14698 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14699 (ENCODE_COMPOSITION_RULE): New macro.
14700 (finish_composition): New function.
14701 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14702 (DECODE_COMPOSITION_START): New implementation.
14703 (DECODE_COMPOSITION_END): Likewise.
14704 (STORE_COMPOSITION_RULE): New macro.
14705 (decode_coding_iso_2022): Avoid long looking ahead while handling
14706 composition, CTEXT extended segment, and embedded UTF-8.
14707 (setup_coding_system): For a coding of type iso-2022, reset
14708 CODING_ISO_EXTSEGMENT_LEN (coding) and
14709 CODING_ISO_EMBEDDED_UTF_8 (coding).
14710 (get_translation): Delete arguments last_block, from_nchars,
14711 to_nchars. Callers changed.
14712 (produce_chars): Don't modify charbuf. Adjusted for the change of
14713 get_translation.
14714 (produce_composition): Adjust for the new annotation sequence.
14715 (handle_composition_annotation): Likewise.
14716 (consume_chars): Adjust for the change of get_translation.
14717
14718 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14719
14720 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
14721
14722 2009-03-05 Kenichi Handa <handa@m17n.org>
14723
14724 * font.c (font_select_entity): New function.
14725 (font_find_for_lface): Use font_select_entity to select a font.
14726
14727 * fontset.c (fontset_find_font): If a font found without
14728 restricting to the characters C doesn't support C, try to find a
14729 font with C restriction.
14730
14731 2009-03-04 Nikolaj Schumacher <me@nschum.de>
14732
14733 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
14734
14735 2009-03-04 Jason Rumney <jasonr@gnu.org>
14736
14737 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
14738 characters that have already been read. (Bug#2569)
14739
14740 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14741 Log an error message if check_image_size failed.
14742 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
14743 (gs_load): Mention max-image-size in size error message. (Bug#2560)
14744
14745 2009-03-02 Eli Zaretskii <eliz@gnu.org>
14746
14747 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14748 when decoding process output.
14749
14750 2009-03-01 Richard M Stallman <rms@gnu.org>
14751
14752 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14753
14754 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14755
14756 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14757
14758 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14759 (decode_coding_emacs_mule, decode_coding_iso_2022)
14760 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14761 (decode_coding_raw_text, decode_coding_charset)
14762 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14763 Honor inhibit-eol-conversion. (Bug #2186)
14764
14765 2009-02-28 Jason Rumney <jasonr@gnu.org>
14766
14767 * coding.c (detect_coding_charset): If not checking latin extra,
14768 fail on characters between 0x80 and 0xA0. (Bug#2354)
14769
14770 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14771
14772 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
14773 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
14774
14775 2009-02-27 Glenn Morris <rgm@gnu.org>
14776
14777 * callint.c (Finteractive): Doc fix.
14778
14779 2009-02-27 Kenichi Handa <handa@m17n.org>
14780
14781 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14782
14783 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
14784
14785 * font.c (font_style_to_value): Set value for unknown symbols to
14786 100 instead of 255.
14787 (weight_table, slant_table, width_table): Treat "unspecified" as
14788 the default value.
14789
14790 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
14791
14792 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14793
14794 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
14795
14796 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14797 error as soon as a recursive load is detected.
14798
14799 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14800
14801 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14802 before caching.
14803
14804 2009-02-24 Kenichi Handa <handa@m17n.org>
14805
14806 * fontset.c (fontset_find_font): Fix the condition for checking
14807 unavailable font.
14808
14809 2009-02-24 Glenn Morris <rgm@gnu.org>
14810
14811 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14812 whitespace that confuses documentation.
14813
14814 2009-02-23 Miles Bader <miles@gnu.org>
14815
14816 * process.c (Flist_system_processes, Fprocess_attributes)
14817 (syms_of_process): Rename `system-process-attributes' to
14818 `process-attributes'.
14819
14820 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14821
14822 * coding.h (struct coding_system): Make safe_charsets a pointer to
14823 unsigned char.
14824 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14825 being 255.
14826 (SAFE_CHARSET_P): Likewise.
14827 (setup_iso_safe_charsets): Properly setup safe_charsets.
14828 (Fdefine_coding_system_internal): Likewise.
14829 (setup_coding_system): Likewise. Remove unneeded casts.
14830 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
14831 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14832 Remove unneeded casts.
14833
14834 * insdel.c (del_range_2): Don't modify gap contents when called
14835 from decode_coding_object. (Bug#1809)
14836
14837 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
14838
14839 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14840 Qfont_object.
14841 (Ftype_of): Recognize font objects.
14842
14843 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14844
14845 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14846 Definitions moved to data.c.
14847
14848 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14849
14850 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14851 async_iconified. Based on a patch by Christian Lynbech
14852 <christian.lynbech@tieto.com>.
14853 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14854
14855 2009-02-20 Glenn Morris <rgm@gnu.org>
14856
14857 * syntax.c (Fskip_chars_forward): Fix doc typo.
14858
14859 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
14860
14861 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14862
14863 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
14864
14865 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14866
14867 2009-02-19 Kenichi Handa <handa@m17n.org>
14868
14869 * coding.c (detect_coding): Preserve coding->mode.
14870 Don't overflow coding->carryover. (Bug#2370)
14871
14872 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14873
14874 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14875
14876 2009-02-18 Kenichi Handa <handa@m17n.org>
14877
14878 * font.c (font_check_otf_features): Fix handling of `nil' element.
14879 (Ffont_spec): Describe :lang and :otf in the docstring.
14880
14881 2009-02-16 Andreas Schwab <schwab@suse.de>
14882
14883 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14884 string.
14885
14886 2009-02-16 Kenichi Handa <handa@m17n.org>
14887
14888 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
14889 (Bug#1723)
14890
14891 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
14892
14893 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
14894
14895 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14896 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14897
14898 2009-02-14 Eli Zaretskii <eliz@gnu.org>
14899
14900 * msdos.c (MAX_SCREEN_BUF): New macro.
14901 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14902 Encode the entire run of glyphs sharing the same face, instead of
14903 doing that one glyph at a time (fixes a bug with displaying
14904 double-size characters).
14905
14906 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14907
14908 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14909
14910 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14911 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
14912 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
14913
14914 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
14915 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
14916
14917 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14918
14919 * keyboard.c (adjust_point_for_property): Allow stopping between two
14920 invisible areas.
14921
14922 2009-02-12 Jason Rumney <jasonr@gnu.org>
14923
14924 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14925 (add_font_entity_to_list): Call check_face_name even when family
14926 is unspecified.
14927
14928 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14929 Release DC when finished. Use NULL window to refer to desktop.
14930 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
14931
14932 * w32font.c (add_font_entity_to_list): Fix check for substituted
14933 raster fonts. (Bug#2219)
14934
14935 2009-02-12 Kenichi Handa <handa@m17n.org>
14936
14937 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14938 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14939 (autocmp_chars): Use fast_looking_at. Don't compose more
14940 characters than MAX_COMPOSITION_COMPONENTS.
14941 (find_automatic_composition): While looking forward and backward,
14942 check static composition. Fix where to stop looking forward.
14943 (composition_adjust_point): Fix checking of static composition.
14944 (Fcomposition_get_gstring): Pay attention to
14945 MAX_COMPOSITION_COMPONENTS.
14946
14947 * lisp.h (fast_looking_at): Extern it.
14948
14949 * search.c (fast_looking_at): New function.
14950
14951 * term.c (encode_terminal_code): Adjust for the change of
14952 <struct glyph>.u.cmp.to.
14953 (append_composite_glyph): Likewise.
14954
14955 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
14956 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14957 composition.
14958 (append_composite_glyph): Adjust for the change of
14959 <strcut glyph>.u.cmp.to.
14960
14961 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
14962
14963 * casetab.c (init_casetab_once):
14964 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14965 * font.c (font_update_lface):
14966 * fontset.c (Fnew_fontset):
14967 * ftfont.c (ftfont_drive_otf):
14968 * xfont.c (xfont_open):
14969 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14970
14971 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14972
14973 * fileio.c (Fwrite_region): !NILP -> CONSP.
14974
14975 2009-02-10 Andreas Schwab <schwab@suse.de>
14976
14977 * process.c (send_process): Properly relocate pointer into data
14978 when using encoded data. (Bug#2272)
14979
14980 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14981
14982 * coding.c (detect_coding_charset): Fix previous change.
14983
14984 2009-02-08 Jason Rumney <jasonr@gnu.org>
14985
14986 * w32fns.c (w32_hide_hourglass): Handle case where frame
14987 disappeared while hourglass was displayed. (Bug #2193)
14988
14989 2009-02-07 Andreas Schwab <schwab@suse.de>
14990
14991 * unexelf.c (unexec): Fix error message.
14992
14993 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14994
14995 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
14996 when modal window is active. (Bug #2152)
14997 (applicationShouldTerminate:): Remove now-unneeded while loop
14998 around NSRunAlertPanel.
14999
15000 * nsmenu.m (popupSession): New file-global variable.
15001 (pop_down_menu): End the popupSession before closing dialog.
15002 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
15003 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
15004 don't query NSApp for events (just sleep instead).
15005
15006 2009-02-07 Eli Zaretskii <eliz@gnu.org>
15007
15008 * coding.c (syms_of_coding) <translation-table-for-input>:
15009 Modify doc string to discourage use for character code unification.
15010
15011 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15012
15013 * atimer.c (run_timers): Update pending_atimers.
15014
15015 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
15016
15017 * image.c (svg_load_image): Fix last change.
15018
15019 * xfns.c (Fx_create_frame): Signal an error if no font is
15020 found (Bug#2147).
15021
15022 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
15023
15024 * character.c (syms_of_character) <script-representative-chars>:
15025 Fix typo in docstring.
15026
15027 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15028
15029 * nsmenu.m (pop_down_menu): New function.
15030 (ns_popup_dialog): Call it on unwind.
15031 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15032 call timer_check() (Bug#2154).
15033 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15034 handling_signal is set.
15035 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15036
15037 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
15038
15039 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15040
15041 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15042
15043 * keyboard.c (poll_for_input_1, handle_async_input):
15044 Set handling_signal under HAVE_NS.
15045
15046 2009-02-04 Glenn Morris <rgm@gnu.org>
15047
15048 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15049
15050 2009-02-04 Kenichi Handa <handa@m17n.org>
15051
15052 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15053
15054 * charset.c (Fchar_charset): New optional arg restriction.
15055
15056 * coding.h (coding_system_charset_list): Extern it.
15057
15058 * coding.c (coding_system_charset_list): New function.
15059
15060 * composite.c: Include coding.h and termhooks.h.
15061 (composition_gstring_p): Fix for the terminal case.
15062 (composition_gstring_width): Likewise.
15063 (fill_gstring_body): Likewise.
15064 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15065 the frame.
15066 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15067 is within a composition.
15068 (Fcomposition_get_gstring): Fix the terminal case.
15069
15070 * term.c (encode_terminal_code): Fix handling of composition.
15071 (produce_composite_glyph): For static composition, get pixel_width
15072 from struct composition.
15073
15074 2009-02-02 Andreas Schwab <schwab@suse.de>
15075
15076 * unexelf.c (unexec): Handle unaligned bss offset.
15077
15078 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15079
15080 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15081 XT,w32read_socket changes to ns_read_socket.
15082
15083 * keyboard.c (handle_interrupt): Don't call
15084 quit_throw_to_read_char() under NS.
15085
15086 * blockinput.h: Remove NS-specific code.
15087
15088 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15089
15090 * dispnew.c (window_change_signal): Don't try to get the size of a
15091 suspended tty frame.
15092 * term.c (Fresume_tty): Resize if the size has changed while the
15093 tty was suspended.
15094
15095 * alloc.c (mark_stack): Properly conditionalize previous change.
15096
15097 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15098
15099 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15100 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15101 Remove; this code is not used on Windows.
15102
15103 2009-01-30 Eli Zaretskii <eliz@gnu.org>
15104
15105 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15106 EOLs that also has stray ^M characters.
15107
15108 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15109
15110 * atimer.c (run_timers, alarm_signal_handler):
15111 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15112 * w32inevt.c (w32_console_read_socket):
15113 * w32term.c (w32_read_socket):
15114 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15115
15116 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
15117
15118 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15119 Initialize it as a relative filename pattern.
15120 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15121 (Fcall_process_region): Simplify temp file creation using
15122 temporary-file-directory.
15123
15124 2009-01-29 Eli Zaretskii <eliz@gnu.org>
15125
15126 * msdos.c: Rename pending_signals to msdos_pending_signals.
15127 (sig_suspender, sigprocmask): Adjust.
15128
15129 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
15130
15131 * keyboard.c (pending_signals): New var.
15132 (poll_for_input, input_available_signal, init_keyboard): Set it.
15133 (process_pending_signals): New function.
15134
15135 * lisp.h (QUIT): Check pending_signals instead of
15136 interrupt_input_pending. Use process_pending_signals.
15137
15138 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
15139
15140 * process.c (wait_reading_process_output): Use process_pending_signals.
15141
15142 * sysdep.c (emacs_write): Use process_pending_signals.
15143
15144 * xterm.c (XTread_socket): Update pending_signals.
15145
15146 * w32term.c (w32_read_socket): Update pending_signals.
15147
15148 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15149
15150 2009-01-29 Kenichi Handa <handa@m17n.org>
15151
15152 * xftfont.c (xftfont_has_char): New function.
15153 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15154
15155 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15156
15157 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15158 under GNUstep.
15159 (ns_query_color): New declaration.
15160
15161 * nsterm.m (ns_confirm_quit): New variable.
15162 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15163 (EmacsApp-applicationShouldTerminate:): Use it.
15164 (EmacsPrefsController): Let user set it.
15165 (ns_query_color): New function.
15166 (ns_defined_color): Use it.
15167 (ns_initialize): Drop.
15168 (ns_term_init): Add two lines from ns_initialize(), and set
15169 input_interrupt_mode to nil.
15170
15171 * image.c (svg_load_image): Don't right-shift background RGB when
15172 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
15173
15174 2009-01-28 Kenichi Handa <handa@m17n.org>
15175
15176 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15177 (fontset_get_font_group): Remember that no font-group is specified
15178 for C.
15179
15180 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
15181
15182 * fns.c (concat): Check for string overflow (bug#1787).
15183
15184 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15185 Quadruple undo limits (bug#1501).
15186
15187 2009-01-27 Kenichi Handa <handa@m17n.org>
15188
15189 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15190 directly use GT_Get_Char_index.
15191
15192 * xftfont.c (struct xftfont_info): New member `index'.
15193
15194 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15195 (Ffontset_font): Adjust for the change of fontset entry.
15196
15197 2009-01-26 Kenichi Handa <handa@m17n.org>
15198
15199 * fontset.c (fontset_find_font): Fix handling of non-cons return
15200 value of fontset_get_font_group.
15201 (fontset_font): Revert last change.
15202
15203 2009-01-26 Jason Rumney <jasonr@gnu.org>
15204
15205 * w32font.c (w32font_list_internal): Return quickly if registry is
15206 unknown. Simplify final return.
15207 (add_font_entity_to_list): Break complex logic down into more
15208 manageable chunks. Move unknown registry check to
15209 w32font_list_internal.
15210
15211 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15212
15213 Changes to remove Feval calls from GUI under NS.
15214
15215 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15216 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
15217 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15218
15219 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15220 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15221 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15222 instead of NON_ASCII_KEYSTROKE_EVENT.
15223 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15224 (EmacsApp-applicationShouldTerminate:): Query user.
15225 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15226 instead of Feval.
15227
15228 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15229
15230 * keyboard.c (kbd_buffer_get_event): Check for it.
15231 (keys_of_keyboard): Define lispy keys for
15232 ns-put/unput-working-text.
15233
15234 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15235 versions.
15236 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15237
15238 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
15239
15240 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
15241 setting current_buffer directly. (Bug#2044)
15242
15243 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
15244
15245 * fontset.c (fontset_font): If we know there is no font, don't do
15246 any work. (Bug#1952, bug#1990).
15247
15248 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
15249
15250 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15251
15252 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
15253 (ns_no_defaults): New declaration.
15254 (main): Use it.
15255
15256 * nsterm.h (ns_no_defaults): New declaration.
15257
15258 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
15259
15260 * nsterm.m (ns_no_defaults): New variable.
15261 (ns_initialize): Don't read defaults when ns_no_defaults.
15262 (EmacsView-readSelectionFromPasteboard:)
15263 (writeSelectionToPasteboard:types:): New stubbed-out methods for
15264 NSServicesRequests protocol. (Bug#1435)
15265 (ns_dumpglyphs_stretch): New function.
15266 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
15267 of 2008-11-15 to other terms. (Bug#615)
15268
15269 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15270
15271 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15272
15273 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15274 call for Sparc64.
15275
15276 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15277
15278 * nsfns.m:
15279 * nsgui.h:
15280 * nsmenu.m:
15281 * nsselect.m:
15282 * nsterm.h:
15283 * nsterm.m: Remove '23' comments that indicated code added during
15284 update from emacs-20 -> emacs-23.
15285
15286 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15287
15288 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
15289 ns_alternate_modifier. (Bug#1217)
15290
15291 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15292 Display all shortcuts, including those w/o super modifier.
15293
15294 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15295
15296 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
15297
15298 * fileio.c (Vwrite_region_post_annotation_function)
15299 (Vwrite_region_annotation_buffers): New vars.
15300 (build_annotations_unwind): Just reset
15301 Vwrite_region_annotation_buffers.
15302 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15303 Call write-region-post-annotation-function.
15304 (build_annotations): Add to Vwrite_region_annotation_buffers if
15305 buffer changes.
15306
15307 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15308
15309 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15310 Tiger.
15311 * nsfns.m (ns_do_applescript):
15312 Conditionalize typeUTF16ExternalRepresentation on Tiger.
15313
15314 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15315
15316 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15317
15318 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15319
15320 * nsmenu.m (NSMENUPROFILE): Change #if style.
15321
15322 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15323
15324 * nsterm.m (x_set_frame_alpha): Add prototype.
15325 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15326 handle Ctrl-tab. (Bug#1841)
15327 (ns_get_color): Use unsigned long long for scanned hex string value.
15328 (ns_term_shutdown): Abort on non SIGTERM signals.
15329 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
15330 (EmacsPrefsController-setPanelFromDefaultValues): New function.
15331 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
15332 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
15333 (ns_defined_color): Fix settings of the XColor variable fields:
15334 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
15335
15336 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
15337 DPI. (Bug#1316)
15338 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15339 values in onTiger section.
15340
15341 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
15342
15343 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15344 Check return value of font_spec_from_name.
15345 (Fx_list_fonts): Doc fix. (Bug#1951)
15346
15347 * font.c (font_spec_from_name): Return Qnil if font name could not
15348 be parsed.
15349 (font_parse_name): Treat a `?' character as part of an XLFD.
15350
15351 * fns.c (Fsubstring): Doc fix.
15352
15353 2009-01-19 Kenichi Handa <handa@m17n.org>
15354
15355 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
15356 (ftfont_list): Likewise.
15357
15358 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
15359
15360 * dbusbind.c (Fdbus_register_signal):
15361 * process.c (conv_sockaddr_to_lisp):
15362 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15363
15364 * callproc.c (Fgetenv_internal): Doc fix.
15365
15366 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
15367
15368 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15369 it is not even used.
15370
15371 2009-01-16 Glenn Morris <rgm@gnu.org>
15372
15373 * font.c (Ffont_variation_glyphs): Silence compiler.
15374
15375 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
15376
15377 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15378 Reported by David Robinow <drobinow@gmail.com>.
15379
15380 2009-01-15 Kenichi Handa <handa@m17n.org>
15381
15382 * coding.c (detect_coding_system): Fix handling of null_byte_found.
15383
15384 2009-01-14 Jason Rumney <jasonr@gnu.org>
15385
15386 * frame.c (x_set_font): Always store a font to the font parameter,
15387 never a fontset. (Bug#1562)
15388
15389 2009-01-14 Kenichi Handa <handa@m17n.org>
15390
15391 * coding.c (TWO_MORE_BYTES): New macro.
15392 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
15393
15394 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
15395
15396 * font.c (font_clear_prop): If clearing the family, clear the font
15397 width index too.
15398
15399 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
15400
15401 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
15402
15403 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15404 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15405 functions, use sizeof.
15406
15407 2009-01-12 Martin Rudalics <rudalics@gmx.at>
15408
15409 * keyboard.c (read_char): Fix case where last_nonmenu_event
15410 returned a bad value with submenus. (Bug#447)
15411
15412 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
15413
15414 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15415 family, clear the font width index too.
15416
15417 2009-01-11 Jason Rumney <jasonr@gnu.org>
15418
15419 * keyboard.c (cmd_error_internal): Exit when errors occur before
15420 frame creation and not in daemon mode. (Bug#1836)
15421
15422 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
15423
15424 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15425 of a display vector, backtrack.
15426 (try_window_reusing_current_matrix): Check glyph type before
15427 referencing charpos member.
15428
15429 2009-01-10 Eli Zaretskii <eliz@gnu.org>
15430
15431 Fix Bug #876:
15432
15433 * coding.c (inhibit_null_byte_detection): New variable.
15434 (detect_coding, detect_coding_system): Don't pay attention to null
15435 bytes if inhibit_null_byte_detection is non-zero.
15436 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
15437 <inhibit-iso-escape-detection>: Doc fix.
15438
15439 2009-01-09 Jason Rumney <jasonr@gnu.org>
15440
15441 * w32font.c (add_font_entity_to_list): Don't report unknown
15442 Windows charset as any unrecognized registry. (Bug#1548)
15443 Only report Unicode Plane 2 fonts as unicode-sip.
15444
15445 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
15446
15447 * xfaces.c (Fx_font_family_list): Delete function.
15448 Move compatibility version to faces.el.
15449
15450 * font.c (Ffont_family_list): Return a list of strings, not symbols.
15451
15452 2009-01-09 Martin Rudalics <rudalics@gmx.at>
15453
15454 * frame.c (x_set_frame_parameters): Remember requested value for
15455 fullscreen before it's reset by the parameter handler.
15456
15457 2009-01-09 Glenn Morris <rgm@gnu.org>
15458
15459 * keyboard.c (last_command_char): For clarity, rename to...
15460 (last_command_event): ... and update all users.
15461 (last_input_char): For clarity, rename to...
15462 (last_input_event): ... and update all users.
15463 (last-command-char, last-input-char): Move to subr.el as aliases.
15464 * cmds.c, commands.h: Update for last_command_char rename.
15465
15466 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
15467
15468 * font.c (font_open_for_lface): Handle unspecified height attribute.
15469
15470 2009-01-08 Jason Rumney <jasonr@gnu.org>
15471
15472 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15473 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15474 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15475 Don't declare.
15476 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
15477 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15478
15479 2009-01-07 Kenichi Handa <handa@m17n.org>
15480
15481 * fileio.c (Finsert_file_contents): In the case of replace,
15482 remember the coding system used for decoding in
15483 coding_system (Bug#1039).
15484
15485 * coding.c (decode_coding_utf_8): Check byte_after_cr before
15486 breaking the loop. (Bug#870)
15487 (decode_coding_utf_16, decode_coding_emacs_mule)
15488 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15489 (decode_coding_charset): Likewise.
15490
15491 2009-01-05 Martin Rudalics <rudalics@gmx.at>
15492
15493 * frame.c (x_set_frame_parameters): Make sure height (width) get
15494 applied when fullwidth (fullheight) is set. (Bug#1522)
15495
15496 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
15497
15498 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15499 (utc_base): Declare as ULONGLONG, not long double.
15500 (convert_time_raw): Delete.
15501 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15502 (initialize_utc_base): New function.
15503 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15504 (convert_from_time_t): Use initialize_utc_base; compute result with
15505 64-bit arithmetic.
15506 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15507
15508 2009-01-03 Eli Zaretskii <eliz@gnu.org>
15509
15510 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15511 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15512 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15513 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15514 [!subprocesses]: Define.
15515 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15516 (Flist_system_processes, Fsystem_process_attributes)
15517 [!subprocesses]: Call list_system_processes and
15518 system_process_attributes instead of returning Qnil.
15519
15520 * dosfns.c (system_process_attributes, list_system_processes):
15521 New functions.
15522
15523 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15524
15525 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15526 Don't use the default (no-op) implementation.
15527
15528 2009-01-03 Jason Rumney <jasonr@gnu.org>
15529
15530 * keyboard.c (parse_modifiers_uncached): Wheel events are
15531 clicks (bug#687).
15532
15533 * w32term.c (x_query_colors, x_query_color): New functions.
15534
15535 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15536 (svg_load_image): Cast returned pointers from dynamically loaded
15537 functions. Eliminate W32 specific code.
15538
15539 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15540
15541 * nsfns.m (x_set_foreground_color, x_set_background_color)
15542 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15543 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15544 x_ prefix instead of ns_. Update references.
15545 (syms_of_nsfns): Add a FIXME comment.
15546
15547 * nsterm.m (x_set_cursor_type): New prototype.
15548 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15549
15550 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15551 for Solaris instead of incorrectly providing Qutime and Qcutime.
15552
15553 2009-01-02 Eli Zaretskii <eliz@gnu.org>
15554
15555 * w32.c (process_times): Compute sum of utime and stime.
15556 (system_process_attributes): Add Qtime to the alist.
15557
15558 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15559 and add them to the alist.
15560
15561 * process.c (top level) <Qtime, Qctime>: New variables.
15562 (syms_of_process): staticpro them.
15563 (Fsystem_process_attributes): Add their documentation to the doc
15564 string.
15565
15566 * process.h: Declare Qtime and Qctime.
15567
15568 2009-01-02 Jason Rumney <jasonr@gnu.org>
15569
15570 * image.c (Qgobject): New symbol.
15571 (syms_of_image): Initialize it.
15572 (init_svg_functions): Load some functions from gobject library.
15573
15574 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15575
15576 * frame.c (make_terminal_frame): Remove redundant code and useless
15577 block.
15578
15579 2009-01-01 Andreas Schwab <schwab@suse.de>
15580
15581 * process.c (conv_sockaddr_to_lisp): Add workaround for
15582 getsockname bug on BSD.
15583
15584 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
15585
15586 * xfns.c (x_create_tip_frame): Set border width of the X window.
15587
15588 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
15589
15590 2009-01-01 Jason Rumney <jasonr@gnu.org>
15591
15592 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
15593 Don't block input, as per earlier xterm.c changes.
15594
15595 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15596
15597 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15598 (ns_appkit_version_int): New function.
15599 (x-server-version): Use ns_appkit_version_int and follow 21+
15600 convention of returning 3 integers.
15601
15602 2008-12-30 Kenichi Handa <handa@m17n.org>
15603
15604 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15605 (CHAR_SURROGATE_PAIR_P): New macro.
15606
15607 * font.h (struct font_driver): New member get_variation_glyphs.
15608
15609 * font.c (font_range): Don't require a font for a variation selector.
15610 (Ffont_variation_glyphs): New function.
15611 (syms_of_font): Defsubr it.
15612
15613 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15614 ftfont_variation_glyphs.
15615 (setup_otf_gstring): New function.
15616 (ftfont_drive_otf): Use it.
15617 (ftfont_shape_by_flt): Handle variation selector.
15618 (ftfont_variation_glyphs): New function.
15619
15620 2008-12-30 Martin Rudalics <rudalics@gmx.at>
15621
15622 * frame.c (Vemacs_iconified): Remove.
15623
15624 2008-12-30 Jason Rumney <jasonr@gnu.org>
15625
15626 * frame.c (store_frame_param, x_get_arg): Enable newer code on
15627 WINDOWSNT too, as related changes have already been synced. (Bug#117)
15628
15629 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
15630
15631 * indent.c (Fvertical_motion): Don't advance iterator if we have
15632 reseated to the desired position.
15633
15634 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15635 checking for pos match.
15636
15637 2008-12-30 Kenichi Handa <handa@m17n.org>
15638
15639 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15640 just get the low 8-bit of the code.
15641
15642 * font.c (font_intern_prop): Validate str as multibyte.
15643
15644 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15645
15646 * dispextern.h (struct face): Move lface and hash from the middle
15647 of bitfields.
15648
15649 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15650
15651 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15652
15653 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15654 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15655 instead of intervals.h.
15656
15657 2008-12-26 Andreas Schwab <schwab@suse.de>
15658
15659 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15660 cons.
15661
15662 2008-12-26 Martin Rudalics <rudalics@gmx.at>
15663
15664 * textprop.c (Qminibuffer_prompt): New variable.
15665 (syms_of_textprop): Initialize it.
15666 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15667 in minibuffer-prompt face. (Bug#1662)
15668
15669 2008-12-25 Jason Rumney <jasonr@gnu.org>
15670
15671 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15672
15673 2008-12-24 Jason Rumney <jasonr@gnu.org>
15674
15675 * ralloc.c (r_alloc_reset_variable): New function.
15676
15677 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
15678 record of what points where. (Bug#716)
15679
15680 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15681
15682 * minibuf.c (read_minibuf): Follow the non-interactive case when
15683 running as a daemon, before detaching.
15684
15685 2008-12-22 Andreas Schwab <schwab@suse.de>
15686
15687 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15688 * gtkutil.c (free_widget_value): Use xfree instead of free.
15689
15690 2008-12-22 Martin Rudalics <rudalics@gmx.at>
15691
15692 * frame.c (delete_frame): New function derived from
15693 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15694 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15695 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15696 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15697 * frame.h: Extern delete_frame.
15698 * window.c (window_loop):
15699 * terminal.c (delete_terminal):
15700 * xterm.c (x_connection_closed):
15701 * xfns.c (Fx_hide_tip):
15702 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
15703
15704 2008-12-21 Jason Rumney <jasonr@gnu.org>
15705
15706 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15707 when character maps to .notdef character.
15708
15709 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15710
15711 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15712
15713 2008-12-20 Jason Rumney <jasonr@gnu.org>
15714
15715 * frame.c (Fmake_terminal_frame): Raise an error when called from
15716 a graphical frame on Windows. (Bug#1325)
15717
15718 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15719
15720 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15721
15722 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
15723
15724 * minibuf.c (Fread_buffer): Doc fix.
15725
15726 2008-12-20 Jason Rumney <jasonr@gnu.org>
15727
15728 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
15729 server name in UNC paths. (Bug#719)
15730
15731 * coding.c (decode_coding): Clear chars_at_source flag when using
15732 charbuf. (Bug#1035)
15733
15734 2008-12-19 Daniel Engeler <engeler@gmail.com>
15735
15736 * sysdep.c (serial_configure): Fix typo.
15737
15738 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15739
15740 * sysdep.c: Include alloca.h.
15741 (system_process_attributes): Add implementation for Solaris.
15742
15743 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
15744
15745 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15746
15747 Reorganize implementation of Flist_system_processes and
15748 Fsystem_process_attributes. No functional changes.
15749 * process.c: Don't #include pwd.h, grp.h and limits.h.
15750 (Flist_system_processes): Just call list_system_processes.
15751 (Fsystem_process_attributes): Just call system_process_attributes.
15752 (procfs_list_system_processes, time_from_jiffies)
15753 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15754 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15755
15756 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15757 (list_system_processes): Rename from
15758 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15759 Provide a do nothing implementation.
15760 (system_process_attributes): Rename from
15761 procfs_list_system_processes.
15762 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15763 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
15764
15765 * w32.c (list_system_processes): Rename from
15766 w32_list_system_processes.
15767 (system_process_attributes): Rename from
15768 w32_system_process_attributes.
15769
15770 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15771
15772 * process.h (w32_list_system_processes)
15773 (w32_system_process_attributes): Remove.
15774 (list_system_processes, system_process_attributes):
15775 New prototypes.
15776
15777 2008-12-19 Kenichi Handa <handa@m17n.org>
15778
15779 * xfont.c (xfont_decode_coding_xlfd): New function.
15780 (xfont_encode_coding_xlfd): New function.
15781 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15782 (xfont_list): Decode and encode XLFD by iso-8859-1.
15783 (xfont_match): Likewise.
15784 (xfont_list_family): Likewise.
15785 (xfont_open): Likewise.
15786
15787 * ftfont.c (ftfont_open): Generate a multibyte string if given
15788 names are utf-8.
15789
15790 * xftfont.c (xftfont_open): Generate a multibyte string if given
15791 names are utf-8.
15792
15793 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15794
15795 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15796 changed.
15797 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15798 clicked on a detached tool bar button.
15799
15800 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15801
15802 * emacs.c (main): Print and error and exit when no data is read
15803 from the pipe.
15804
15805 2008-12-17 Jason Rumney <jasonr@gnu.org>
15806
15807 * w32font.c (w32font_has_char): Always return -1.
15808
15809 2008-12-16 Kenichi Handa <handa@m17n.org>
15810
15811 * font.c (font_open_entity): Fix previous change.
15812
15813 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15814
15815 * process.c: Include <limits.h>.
15816
15817 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
15818
15819 * font.c (font_update_drivers): Fix mistake in reconstructing the
15820 driver list.
15821
15822 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
15823
15824 * font.c (font_clear_cache): Fix format of font cache data.
15825
15826 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
15827
15828 * xftfont.c (xftfont_open): Free Xft font pattern if
15829 XftFontOpenPattern fails.
15830
15831 * xterm.c (x_free_frame_resources): Remove extraneous call to
15832 free_frame_faces.
15833
15834 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15835
15836 * xterm.c (x_delete_display): Move xim_close_dpy call to
15837 x_delete_terminal.
15838 (x_delete_terminal): Call xim_close_dpy.
15839
15840 2008-12-13 Jason Rumney <jasonr@gnu.org>
15841
15842 * w32font.c (intern_font_name): New function.
15843 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15844 (w32font_open_internal, Fx_select_font): Decode font name.
15845 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15846
15847 * w32font.h (intern_font_name): Declare new function.
15848
15849 * w32uniscribe.c (add_opentype_font_name_to_list):
15850 Use intern_font_name.
15851
15852 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15853
15854 * frame.c (Fdelete_frame): Call free_font_driver_list.
15855
15856 * font.c (free_font_driver_list): Implement missing function.
15857
15858 * w32term.c (w32_term_init): Don't initialize the image cache
15859 here; it will be done in init_frame_faces.
15860
15861 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
15862 (struct x_display_info): Remove unused member null_pixel.
15863 New member xim_callback_data.
15864
15865 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15866 (xim_initialize): Save pointer to callback function data.
15867 (xim_close_dpy): Free callback function data. Call XCloseIM,
15868 reverting 2008-11-04 change by David Smith.
15869 (x_term_init): Don't initialize the image cache here; it will be
15870 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15871 (x_delete_display): Free x_dnd_atoms member.
15872
15873 2008-12-13 Kenichi Handa <handa@m17n.org>
15874
15875 * font.c (font_rescale_ratio): Move from xfaces.c.
15876 Argument type changed. Handle a font-spec too.
15877 (font_score): Check Vface_font_rescale_alist.
15878 (font_open_entity): Likewise. (Bug#1547)
15879
15880 * xfaces.c (font_rescale_ratio): Move to font.c.
15881
15882 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15883
15884 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15885
15886 2008-12-12 Jason Rumney <jasonr@gnu.org>
15887
15888 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15889 Set Vwindow_system_version to the real w32 major version.
15890
15891 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15892
15893 * term.c (init_tty): Move setting the terminal name before the
15894 potential user: maybe_fatal.
15895
15896 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
15897
15898 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
15899 all callers changed. Call free_frame_faces to free the face cache.
15900
15901 2008-12-11 Jason Rumney <jasonr@gnu.org>
15902
15903 * w32font.c (fill_in_logfont): Don't assume symbol script means
15904 SYMBOL_CHARSET. (Bug#547)
15905
15906 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
15907 size for surrogates. (Bug#1096, bug#872)
15908
15909 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15910
15911 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15912
15913 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15914
15915 * process.c (Fsystem_process_attributes, syms_of_process):
15916 Fix typo in name of Ssystem_process_attributes.
15917 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15918
15919 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15920
15921 * syntax.c (Fmodify_syntax_entry): Doc fix.
15922
15923 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
15924
15925 * font.c (Ffont_spec): Move usage to end of docstring.
15926
15927 2008-12-10 Jason Rumney <jasonr@gnu.org>
15928
15929 * w32font.c (Qcham): New symbol.
15930 (font_supported_scripts): Add cham, and comments for other new
15931 scripts in bitfield from OpenType spec.
15932 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15933 contain characters beyond the bmp.
15934
15935 2008-12-10 Kenichi Handa <handa@m17n.org>
15936
15937 * ftfont.c (fc_charset_table): Add "unicode-sip".
15938 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
15939 Qunicode_sip.
15940
15941 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
15942
15943 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15944 (Fcoding_system_put): Use QCdefault_char.
15945 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15946
15947 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
15948
15949 * xftfont.c (syms_of_xftfont): Fix typo.
15950
15951 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
15952
15953 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15954
15955 * emacs.c (main): Close daemon_pipe on exec.
15956
15957 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
15958
15959 * termchar.h (struct tty): New members termcap_term_buffer and
15960 termcap_strings_buffer.
15961
15962 * term.c (encode_terminal_code): Free any previous memory blocks
15963 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
15964 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15965 All callers changed.
15966 (init_tty): Store termcap data and string buffers in new struct
15967 tty members termcap_term_buffer and termcap_strings_buffer.
15968 (delete_tty): Free them.
15969 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
15970
15971 2008-12-07 Seiji Zenitani <zenitani@mac.com>
15972
15973 * nsfns.m (ns_set_background_color): Remove code duplication.
15974 It was a substitute for face-transparency on OS X 10.3.
15975
15976 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
15977
15978 * coding.c (make_conversion_work_buffer): Disable buffer
15979 modification hooks in the work buffer.
15980
15981 2008-12-05 Eli Zaretskii <eliz@gnu.org>
15982
15983 * process.c (procfs_system_process_attributes): If `nread' has a
15984 negative value, assign zero to it.
15985
15986 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
15987
15988 * eval.c (Vdebug_on_error): Doc fix.
15989
15990 2008-12-05 Kenichi Handa <handa@m17n.org>
15991
15992 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15993 second character is a combining character.
15994
15995 2008-12-05 Eli Zaretskii <eliz@gnu.org>
15996
15997 * process.c (procfs_system_process_attributes): Don't use cmd,
15998 cmdsize, and q without initializing them first.
15999
16000 2008-12-04 Jason Rumney <jasonr@gnu.org>
16001
16002 * w32font.c (w32font_draw): Initialize orig_clip before getting
16003 it, and delete it when finished.
16004
16005 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
16006
16007 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
16008 case when running as a daemon before detaching.
16009
16010 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
16011
16012 * w32.c (init_environment): Don't unload library shell32.dll.
16013
16014 2008-12-03 Kenichi Handa <handa@m17n.org>
16015
16016 * font.c (font_at): Set `multibyte' at first.
16017
16018 * coding.c (decode_coding_charset): Check type of an element of
16019 vector VALIDS.
16020 (encode_coding_emacs_mule): Be sure to set `code'.
16021
16022 * fontset.c (face_for_char): Handle invalid charset property correctly.
16023 (font_for_char): Likewise.
16024
16025 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
16026
16027 * font.c (Fopen_font): Compute pixel size correctly.
16028 (font_update_lface): Handle fonts with corrupted size specs,
16029 i.e. non-int and non-float.
16030
16031 * ftfont.c (ftfont_match): Initialize entity variable.
16032 (ftfont_resolve_generic_family): Avoid using uninitialized var.
16033 (ftfont_list_family): Initialize list var earlier.
16034
16035 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16036
16037 * xterm.c (x_draw_glyph_string): Fall back on
16038 underline_minimum_offset for underline position.
16039
16040 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
16041
16042 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16043
16044 * character.c (c_string_width): Specify the type for LEN.
16045
16046 2008-12-03 Kenichi Handa <handa@m17n.org>
16047
16048 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
16049 (decode_coding_utf_8): Likewise.
16050 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
16051 (produce_chars): Initialize consumed_chars to 0.
16052
16053 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16054
16055 * keyboard.c (make_lispy_position): Only use PT if the selected
16056 window is current.
16057
16058 2008-12-02 Andreas Schwab <schwab@suse.de>
16059
16060 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16061
16062 * doprnt.c (doprnt1): Fix size of charbuf.
16063
16064 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16065
16066 * keyboard.c (timer_check): Revert last change.
16067
16068 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
16069
16070 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16071
16072 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
16073
16074 * makefile.w32-in: Update dependencies.
16075 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16076
16077 2008-12-01 Andreas Schwab <schwab@suse.de>
16078
16079 * font.c (register_font_driver): Use xmalloc.
16080 (font_put_frame_data): Likewise.
16081
16082 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
16083
16084 * xfaces.c (realize_x_face): Make abort condition clearer.
16085
16086 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16087
16088 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
16089
16090 * keyboard.c (timer_check): After a timer runs, ensure that the
16091 selected window's buffer is current.
16092
16093 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
16094
16095 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16096 It was accidentally restored by the Unicode merge.
16097
16098 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16099
16100 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
16101
16102 * w32proc.c: Include "coding.h".
16103 (Fw32_short_file_name): Encode filename passed to Windows API.
16104 (Fw32_long_file_name): Encode filename passed to Windows API and
16105 decode back the result. (Bug#1433)
16106
16107 2008-11-29 Kenichi Handa <handa@m17n.org>
16108
16109 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16110 not before accessing it.
16111
16112 * charset.c (Fdefine_charset_internal): After calculating
16113 min_char, max_char, and fastmap, copy the charset structure again.
16114 (encode_char): Fix the previous change.
16115
16116 2008-11-28 Seiji Zenitani <zenitani@mac.com>
16117
16118 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16119
16120 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16121
16122 * nsterm.m (x_set_frame_alpha): New function.
16123
16124 2008-11-27 Eli Zaretskii <eliz@gnu.org>
16125
16126 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16127
16128 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
16129
16130 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16131 pointer to check_face_name.
16132
16133 2008-11-27 Kenichi Handa <handa@m17n.org>
16134
16135 * category.h (SET_CATEGORY_SET): Call set_category_set.
16136 (set_category_set): Extern it.
16137
16138 * category.c (hash_get_category_set): New function.
16139 (Fmodify_category_entry): Adjust for the change of
16140 char_table_ref_and_range. Call hash_get_category_set to get a
16141 category set to store in the table.
16142
16143 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16144 Funify_charset.
16145
16146 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
16147 (DECODE_CHAR): Check if the decoder vector is ready.
16148 (ENCODE_CHAR): Check if the encoder char-table is ready.
16149 (maybe_unify_char): Extern it.
16150
16151 * charset.c (Vchar_unified_charset_table): Delete it.
16152 (inhibit_load_charset_map): New variable.
16153 (temp_charset_work): New variable.
16154 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16155 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16156 New macros.
16157 (load_charset_map): Meaning of control_flag changed.
16158 If inhibit_load_charset_map is nonzero, setup a table in
16159 temp_charset_work.
16160 (load_charset): New argument control_flag.
16161 (map_charset_for_dump): New function.
16162 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16163 map_charset_for_dump.
16164 (Fdefine_charset_internal): If the charset method is MAP, load
16165 mapping tables by calling load_charset.
16166 (Funify_charset): Don't load a mapping table but directly set
16167 Vchar_unify_table.
16168 (maybe_unify_char): New function.
16169 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16170 Handle the case of inhibit_load_charset_map being nonzero.
16171 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16172 Handle the case of inhibit_load_charset_map being nonzero.
16173 (Fclear_charset_maps): Just free temp_charset_work.
16174 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16175 variable.
16176
16177 * chartab.c (sub_char_table_ref_and_range): Adjust for the
16178 change of char_table_ref_and_range.
16179 (char_table_ref_and_range): Change the meaning of argument FROM
16180 and TO. Now the caller must provide initial values for *FROM
16181 and *TO.
16182
16183 * fontset.c (fontset_add): Adjust for the change of
16184 char_table_ref_and_range.
16185 (fontset_get_font_group): Likewise.
16186 (Ffontset_info): Likewise.
16187
16188 * keymap.c (describe_vector): Adjust for the change of
16189 char_table_ref_and_range. For char-table, put boundary between
16190 non-ASCII and 8-bit characters.
16191
16192 * print.c (print_object): For bool-vector, delete unnecessary
16193 check of ASCII_BYTE_P.
16194
16195 2008-11-26 Jason Rumney <jasonr@gnu.org>
16196
16197 * w32font.c (w32font_open_internal): Don't include external
16198 leading in font height. (Bug#879)
16199
16200 2008-11-26 Glenn Morris <rgm@gnu.org>
16201
16202 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16203 redefinition with ifdef. (Bug#1383)
16204
16205 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16206
16207 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16208
16209 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
16210
16211 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16212 New EmacsView methods.
16213 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16214 Fixes bug #1048,1357,1414.
16215
16216 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16217
16218 Fix bug #1362.
16219 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16220 is not an indexed color.
16221 * nsterm.m (free_indexed_color): Add argument checking.
16222 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16223
16224 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
16225
16226 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16227 Document confirm-after-completion value for
16228 minibuffer-completion-confirm.
16229
16230 2008-11-24 Jason Rumney <jasonr@gnu.org>
16231
16232 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16233 warning.
16234
16235 2008-11-23 Jason Rumney <jasonr@gnu.org>
16236
16237 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16238 restored before returning.
16239
16240 * w32font.c (check_face_name): New function.
16241 (add_font_entity_to_list): Use it to filter out common substituted
16242 fonts. (Bug#642)
16243
16244 2008-11-22 Martin Rudalics <rudalics@gmx.at>
16245
16246 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16247 confirm-nonexistent-file-or-buffer in doc-string.
16248
16249 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16250
16251 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16252 Fix copy/paste typo. Add checks.
16253
16254 2008-11-21 Kenichi Handa <handa@m17n.org>
16255
16256 * coding.c (detect_coding_iso_2022): Reject invalid composition
16257 sequence.
16258 (DECODE_COMPOSITION_START): If the current source is the last
16259 block, and the current composition doesn't end, regard this
16260 sequence as invalid.
16261 (decode_coding_iso_2022): Handle invalid composition sequence.
16262
16263 2008-11-20 Martin Rudalics <rudalics@gmx.at>
16264
16265 * window.c (coordinates_in_window): Don't return
16266 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16267 line when the window is not the rightmost one. (Bug#1372)
16268
16269 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16270
16271 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16272
16273 2008-11-15 Eli Zaretskii <eliz@gnu.org>
16274
16275 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16276 and bright_bg if noninteractive is non-zero.
16277
16278 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16279
16280 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16281 x_draw_glyph_string_background.
16282
16283 * w32term.c (x_draw_glyph_string): Likewise.
16284
16285 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
16286
16287 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16288 the next glyph string once past the overhang width.
16289
16290 * nsterm.m (ns_draw_glyph_string): Likewise.
16291
16292 * w32term.c (x_draw_glyph_string): Likewise.
16293
16294 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16295
16296 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16297 double file close.
16298
16299 2008-11-14 Martin Rudalics <rudalics@gmx.at>
16300
16301 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16302 dedicated status of window before attempting to display another
16303 buffer in it.
16304
16305 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
16306
16307 * msdos.c (Fmsdos_long_file_names):
16308 (syms_of_msdos) <dos-unsupported-char-glyph>:
16309 * dosfns.c (Fint86): Fix typos in docstrings.
16310
16311 2008-11-14 Eli Zaretskii <eliz@gnu.org>
16312
16313 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16314
16315 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16316
16317 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16318
16319 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16320
16321 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16322
16323 * frame.h: Negative alpha means "don't touch".
16324
16325 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16326
16327 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16328
16329 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16330
16331 * hftctl.c:
16332 * chpdef.h:
16333 * acldef.h: Remove files used only for systems no longer supported.
16334
16335 * Makefile.in: Fix .o alphabetical ordering.
16336 (hftctl.o): Remove dependency, file removed.
16337 (keymap.o, print.o): Depend on charset.h.
16338
16339 2008-11-10 Kenichi Handa <handa@m17n.org>
16340
16341 * character.c (Fget_byte): Fix and make it faster for unibyte target.
16342
16343 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
16344
16345 * dired.c (file_name_completion): If completion_ignore_case is
16346 enabled, ignore case when checking completion-regexp-list.
16347
16348 2008-11-08 Eli Zaretskii <eliz@gnu.org>
16349
16350 * vm-limit.c (get_lim_data): Fix last change.
16351
16352 2008-11-08 Kenichi Handa <handa@m17n.org>
16353
16354 * character.c (Fget_byte): New function.
16355 (syms_of_character): Defsubr Fget_byte.
16356
16357 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
16358
16359 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16360 cursor position is valid after scrolling.
16361
16362 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
16363
16364 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16365
16366 2008-11-06 Glenn Morris <rgm@gnu.org>
16367
16368 * xterm.c (handle_one_xevent): Don't let popup menus cause
16369 mouse-autoselect-window related window switching. (Bug#1261)
16370
16371 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16372
16373 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16374
16375 2008-11-04 Andreas Schwab <schwab@suse.de>
16376
16377 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16378
16379 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
16380
16381 * xfns.c (Fx_wm_set_size_hint): New function.
16382
16383 2008-11-03 Martin Rudalics <rudalics@gmx.at>
16384
16385 * textprop.c (Fprevious_single_char_property_change): Return 0
16386 when there's no change in a string. (Bug#1301)
16387
16388 2008-11-02 Martin Rudalics <rudalics@gmx.at>
16389
16390 * frame.c (do_switch_frame): New argument NORECORD passed to
16391 Fselect_window.
16392 (Fselect_frame): New argument NORECORD passed to
16393 do_switch_frame.
16394 (Fset_frame_selected_window): New argument NORECORD passed to
16395 Fselect_frame.
16396 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16397 in call of do_switch_frame.
16398 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16399 Handle NORECORD argument in call of Fselect_frame.
16400 * lisp.h (do_switch_frame, Fselect_frame)
16401 (Fset_frame_selected_window): Adjust declarations.
16402 * window.c (select_frame_norecord): New function.
16403 (run_window_configuration_change_hook): Use it and call
16404 Fselect_frame with NORECORD set.
16405 (Fselect_window): Pass NORECORD to Fselect_frame.
16406 (Fset_window_configuration): Handle NORECORD argument in call of
16407 do_switch_frame.
16408 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16409 Fset_frame_selected_window.
16410 * keyboard.c (command_loop_1): Handle NORECORD in call of
16411 Fselect_frame (currently ifdefd).
16412
16413 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16414
16415 * emacs.c (USAGE2): Untabify.
16416
16417 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16418
16419 * composite.c (fill_gstring_header): Fix copy/paste typo.
16420
16421 2008-10-31 Martin Rudalics <rudalics@gmx.at>
16422
16423 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16424 (Fother_window): Rename argument and rewrite doc-string.
16425 (select_window_norecord): Fix return value. (Bug#1276)
16426
16427 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
16428
16429 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16430 new frames overriding foreground for tooltips. Based on similar patch
16431 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16432
16433 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
16434
16435 * emacs.c (Fdaemon_initialized): Initialize nfd.
16436
16437 2008-10-29 Martin Rudalics <rudalics@gmx.at>
16438
16439 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16440 (Fwindow_text_height): Clarify doc-strings.
16441 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16442 doc-string of window-scroll-functions.
16443
16444 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16445
16446 * category.c (syms_of_category): Fix typo in docstring.
16447
16448 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
16449
16450 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16451 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16452 Fix typos in docstrings.
16453
16454 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16455
16456 * emacs.c (daemon_pipe): Make non-static.
16457 (IS_DAEMON): Move definition ...
16458 * lisp.h (IS_DAEMON): ... here.
16459 (daemon_pipe): Declare.
16460 (is_daemon): Remove.
16461 * dispnew.c (init_display): Use IS_DAEMON.
16462
16463 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16464
16465 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16466 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16467
16468 * emacs.c (is_daemon): Remove.
16469 (main): Don't set is_daemon.
16470 (IS_DAEMON): New macro.
16471 (Fdaemonp, Fdaemon_initialized): Use it.
16472 (Fdaemon_initialized): Write a char into the pipe to make sure the
16473 parent exits.
16474 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16475
16476 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
16477
16478 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16479 over-sized glyph, draw it with the default glyph width.
16480
16481 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16482 glyph, draw it with the default glyph width.
16483
16484 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16485 glyph, draw it with the default glyph width.
16486
16487 * xdisp.c (try_scrolling): When computing the distance from the
16488 scroll margin to PT, try moving some distance past the window
16489 bottom before giving up.
16490
16491 2008-10-27 Martin Rudalics <rudalics@gmx.at>
16492
16493 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16494 (Fset_window_buffer): Explain in doc-string that a window can be
16495 "strongly" dedicated to its buffer.
16496
16497 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16498
16499 * emacs.c (daemon_name): New variable.
16500 (main): Deal with --daemon=SERVER_NAME.
16501 (Fdaemonp): Return a name if one was passed to --daemon.
16502
16503 2008-10-26 Romain Francoise <romain@orebokech.com>
16504
16505 * emacs.c (daemon_pipe): New variable.
16506 (main): Create a pipe before forking, make the parent exit only after
16507 the child has closed its end of the pipe. Move closing the
16508 descriptors ...
16509 (Fdaemon_initialized): ... here. New function.
16510
16511 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16512
16513 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16514 the previous unoptimized table.
16515
16516 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16517 the distinction between non-nil and non-t value of `dedicated'.
16518
16519 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
16520
16521 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16522 read_char_minibuf_menu_text is large enough to hold the menu string.
16523
16524 2008-10-25 Martin Rudalics <rudalics@gmx.at>
16525
16526 * window.c (Fget_buffer_window, Fdelete_windows_on)
16527 (Freplace_buffer_in_windows): Make buffer argument optional and
16528 rename to buffer_or_name.
16529
16530 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
16531
16532 * xdisp.c (handle_single_display_spec, handle_display_prop):
16533 Undo 2005-05-16 change.
16534 (handle_stop): Pop iterator if it's loaded with an empty string.
16535 (get_overlay_strings_1): Don't save iterator if it's loaded with
16536 an empty string (bug#1201).
16537
16538 2008-10-24 Kenichi Handa <handa@m17n.org>
16539
16540 * ftfont.c (ftfont_otf_features): Fix previous change.
16541 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16542 calling ftfont_otf_features.
16543
16544 2008-10-24 Kenichi Handa <handa@m17n.org>
16545
16546 * font.c (font_match_p): Fix for the case that a vector of
16547 characters is in script-representative-chars.
16548
16549 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
16550
16551 * dbusbind.c (xd_in_read_queued_messages): New variable.
16552 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
16553 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16554 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16555 macro. (Bug#1186)
16556
16557 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
16558
16559 * s/sol2-10.h: New file.
16560
16561 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16562
16563 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16564 poor beast has survived 9+ years and the jump from xterm.c!).
16565
16566 2008-10-23 Martin Rudalics <rudalics@gmx.at>
16567
16568 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16569 Reword doc-string.
16570 (Fbury_buffer): In doc-string say what happens to the buffer's window.
16571
16572 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16573
16574 * character.c (syms_of_character) <script-representative-chars>:
16575 <unicode-category-table>: Doc fixes.
16576
16577 2008-10-23 Noah Friedman <friedman@splode.com>
16578
16579 * coding.c (make_conversion_work_buffer): Check that
16580 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16581 Fget_buffer_create.
16582
16583 2008-10-23 Kenichi Handa <handa@m17n.org>
16584
16585 * font.c (font_add_log): Check the values of extra properties.
16586
16587 2008-10-22 Martin Rudalics <rudalics@gmx.at>
16588
16589 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16590 Reword doc-string.
16591 (Fset_window_parameter): Use NILP.
16592 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
16593 (Frecenter): Use "selected" instead of "current" window in doc-strings.
16594
16595 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16596
16597 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16598
16599 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16600
16601 * nsfns.m (ns_appkit_version): New function.
16602 (x-server-version): Use it.
16603 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16604 (x-server-vendor): Don't check_ns().
16605
16606 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16607
16608 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16609
16610 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16611 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16612
16613 2008-10-22 Kenichi Handa <handa@m17n.org>
16614
16615 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16616 scripts.
16617
16618 * category.c (word_boundary_p): Check scripts instead of charset.
16619 Handle nil value in word-separating-categories and
16620 word-combining-categories.
16621 (syms_of_category): Fix docstrings of word-separating-categories
16622 and word-combining-categories.
16623
16624 2008-10-21 Eli Zaretskii <eliz@gnu.org>
16625
16626 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16627 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16628
16629 2008-10-21 Martin Rudalics <rudalics@gmx.at>
16630
16631 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16632 Rename arg "buffer" to "buffer_or_name".
16633 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16634 it optional.
16635 (no_switch_window): Remove since the return value is not used.
16636 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
16637 Consider window as dedicated when Fwindow_dedicated_p returns a
16638 non-nil value.
16639 * lisp.h: Remove prototype for no_switch_window.
16640
16641 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16642
16643 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
16644 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
16645
16646 2008-10-21 Kenichi Handa <handa@m17n.org>
16647
16648 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16649 check Vlatin_extra_code_table.
16650
16651 2008-10-20 Eli Zaretskii <eliz@gnu.org>
16652
16653 * fileio.c (Fset_file_modes): Doc fix.
16654
16655 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
16656
16657 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16658 in arrays.
16659
16660 2008-10-19 Martin Rudalics <rudalics@gmx.at>
16661
16662 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16663 Mention kill-buffer in doc-string.
16664 (Fset_window_buffer): Reinsert tem check removed in last commit.
16665 (Fenlarge_window, Fshrink_window): Have argument names and
16666 doc-string follow Elisp manual more closely.
16667
16668 2008-10-18 Eli Zaretskii <eliz@gnu.org>
16669
16670 * fileio.c (Fset_file_modes): Doc fix.
16671
16672 2008-10-18 Martin Rudalics <rudalics@gmx.at>
16673
16674 * window.c (Fwindow_width, Fset_window_start)
16675 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
16676 (Fdelete_windows_on, Freplace_buffer_in_windows):
16677 Make doc-strings follow code and Elisp manual more closely.
16678 (Fwindow_dedicated_p): Make window argument optional.
16679 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16680 (Fset_window_buffer): Respect any non-nil dedicated value for
16681 window. Rename "buffer" argument to "buffer_or_name".
16682
16683 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
16684
16685 * m/sh3.h: New file, machine description for SuperH.
16686
16687 2008-10-17 Martin Rudalics <rudalics@gmx.at>
16688
16689 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16690
16691 2008-10-17 Kenichi Handa <handa@m17n.org>
16692
16693 * ftfont.c (ftfont_otf_features): Fix indexing
16694 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16695
16696 2008-10-16 Magnus Henoch <mange@freemail.hu>
16697
16698 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16699 (Fdbus_call_method_asynchronously): Ditto.
16700 This change makes C-h f display the argument list.
16701
16702 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
16703
16704 * fileio.c (Fexpand_file_name): Doc fix.
16705
16706 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16707 of :foreground and :background equivalent to unspecified (20.x
16708 compatibility).
16709
16710 2008-10-15 Eli Zaretskii <eliz@gnu.org>
16711
16712 * buffer.c (syms_of_buffer): Doc fix.
16713
16714 2008-10-14 Kenichi Handa <handa@m17n.org>
16715
16716 * font.c (font_clear_prop): When clearing font width, clear the
16717 average width field too.
16718
16719 2008-10-12 Andreas Schwab <schwab@suse.de>
16720
16721 * ftfont.c (ftfont_shape_by_flt): Make static.
16722 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16723
16724 * font.c: Don't include <m17n-flt.h>.
16725
16726 2008-10-10 Eli Zaretskii <eliz@gnu.org>
16727
16728 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16729
16730 2008-10-09 Eli Zaretskii <eliz@gnu.org>
16731
16732 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16733 away code.
16734
16735 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
16736
16737 * dispnew.c (update_text_area): Avoid looping due to large glyph
16738 overhangs (bug#1070).
16739
16740 2008-10-09 Kenichi Handa <handa@m17n.org>
16741
16742 * fontset.c (face_for_char): If face->fontset is negative, just
16743 return ascii_face.
16744
16745 * font.c (font_delete_unmatched): Fix previous change.
16746 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
16747
16748 2008-10-09 Martin Rudalics <rudalics@gmx.at>
16749
16750 * frame.c (Fraise_frame): On text-only terminals select frame in
16751 order to make it visible. (Bug#1061)
16752
16753 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
16754
16755 * fontset.c (fontset_find_font): Check frame validity.
16756
16757 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
16758
16759 * gtkutil.c (xg_display_open): Reset default display if none exists.
16760 (xg_display_close): Allow Emacs to close all displays (bug#985).
16761
16762 2008-10-06 Andreas Schwab <schwab@suse.de>
16763
16764 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
16765
16766 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
16767
16768 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
16769
16770 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
16771
16772 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16773 during initialization.
16774
16775 2008-10-04 Eli Zaretskii <eliz@gnu.org>
16776
16777 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16778 whole thing on MSDOS frames as well as on a TTY.
16779
16780 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16781 well as for TTY.
16782 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16783 well as on a TTY.
16784
16785 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16786 as well as for TTY.
16787
16788 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16789
16790 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16791 MSDOS frames as well.
16792
16793 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16794
16795 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16796 correct arguments.
16797 * menu.c (find_and_return_menu_selection): Add cast.
16798
16799 2008-10-03 Glenn Morris <rgm@gnu.org>
16800
16801 * emacs.c (USAGE1): Add --daemon.
16802
16803 2008-10-02 Eli Zaretskii <eliz@gnu.org>
16804
16805 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16806 100, so it's in percents as advertised.
16807
16808 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16809
16810 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16811 (ns_output.current_cursor, ns_output.desired_cursor)
16812 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16813 (FRAME_NEW_CURSOR_COLOR): Remove.
16814
16815 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
16816 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
16817 enumeration (HOLLOW_BOX_CURSOR, etc.).
16818
16819 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16820 (draw_window_cursor): Simplify code.
16821 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16822 Don't change cursor type. In latter, call rehighlight instead of doing
16823 updates manually.
16824 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16825 Use core Emacs cursor types.
16826
16827 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
16828
16829 2008-10-02 Martin Rudalics <rudalics@gmx.at>
16830
16831 * process.c (Faccept_process_output): Fix doc-string.
16832
16833 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16834
16835 * gmalloc.c (__sbrk): Also define for uClibc.
16836
16837 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16838 for uClibc.
16839
16840 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16841
16842 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16843 styles.
16844 (nsfont_open): Reenable the cache.
16845
16846 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16847
16848 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16849 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16850
16851 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16852
16853 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16854 a suspended terminal.
16855
16856 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
16857
16858 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16859
16860 2008-09-30 Eli Zaretskii <eliz@gnu.org>
16861
16862 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16863
16864 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
16865
16866 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16867 in a continued line coincides with a line beginning.
16868
16869 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16870
16871 * nsfont.m (nsfont_trait_distance): Fix bug.
16872 (nsfont_list): Return a list rather than a vector (syncs with Handa
16873 changes of 2008-05-14).
16874 (nsfont_open): Improve logging.
16875
16876 2008-09-29 Andreas Schwab <schwab@suse.de>
16877
16878 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16879
16880 2008-09-28 Martin Rudalics <rudalics@gmx.at>
16881
16882 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16883 name as char-resolve-modifiers.
16884 Reported by: Markus Triska <markus.triska@gmx.at>
16885
16886 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16887
16888 * dispnew.c (init_display): Return earlier when running as a daemon.
16889
16890 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16891
16892 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16893
16894 2008-09-27 Eli Zaretskii <eliz@gnu.org>
16895
16896 * composite.c (Fcomposition_get_gstring)
16897 (Fcompose_region_internal, Fcompose_string_internal)
16898 (Ffind_composition_internal): Doc fix.
16899 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16900 (syms_of_composite) <auto-composition-function>: Doc fix.
16901 (syms_of_composite) <composition-function-table>: Doc fix.
16902
16903 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
16904
16905 * search.c (wordify): New argument for lax word-ends.
16906 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16907
16908 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16909
16910 * lisp.h (is_daemon): Declare.
16911 * dispnew.c (init_display): Do not try to initialize the terminal
16912 when running as a daemon.
16913
16914 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
16915
16916 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16917 x_display_pixel_height.
16918
16919 2008-09-22 Martin Rudalics <rudalics@gmx.at>
16920
16921 * undo.c (record_point): Don't call Fundo_boundary for first
16922 change. (Bug#731)
16923
16924 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
16925
16926 * emacs.c (Fdaemonp): Doc fix.
16927
16928 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16929
16930 * emacs.c (main): Place #ifdef in the proper place.
16931
16932 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16933
16934 * emacs.c (standard_args): Add --daemon.
16935 (main): Disconnect from the terminal when --daemon is passed.
16936 (is_daemon): New variable.
16937 (Fdaemonp): New function.
16938 (syms_of_emacs): Defsubr it.
16939
16940 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
16941
16942 * xdisp.c (get_next_display_element): Handle string display
16943 correctly when checking for the end of a box run.
16944
16945 2008-09-20 Glenn Morris <rgm@gnu.org>
16946
16947 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16948 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16949 (Frename_file): Avoid copying to trash if a rename involves
16950 a delete. (Bug#964).
16951
16952 2008-09-20 Eli Zaretskii <eliz@gnu.org>
16953
16954 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16955 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16956 frames as well as termcap frames.
16957 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16958 get_named_tty.
16959
16960 2008-09-19 Eli Zaretskii <eliz@gnu.org>
16961
16962 * process.c (procfs_system_process_attributes): Fix cmdline in
16963 case /proc/PID/cmdline is empty.
16964
16965 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16966 x_display_pixel_height.
16967
16968 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
16969
16970 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16971
16972 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16973 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16974
16975 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16976
16977 * dispextern.h (struct it): Move line_wrap away from the middle of
16978 bitfields. Move voffset in struct iterator_stack_entry after the
16979 bitfields. Move tab_width near after another short.
16980
16981 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16982
16983 * frame.h (struct frame): Move alpha from the middle of bitfields.
16984
16985 * window.h (struct window): Move frozen_window_start_p after the
16986 rest of the bitfields to reduce padding.
16987
16988 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
16989
16990 * xterm.h (x_display_info): Remove `height' and `width' members.
16991
16992 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16993
16994 * w32term.h (w32_display_info): Remove `height', `width',
16995 `height_in', and `width_in' members.
16996
16997 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16998 New functions.
16999 (x_calc_absolute_position): Use them.
17000 (x_term_init): Omit removed `height' and `width' members.
17001
17002 * w32term.c (x_display_pixel_height, x_display_pixel_width):
17003 New functions.
17004 (w32_read_socket, x_calc_absolute_position): Use them.
17005 (w32_initialize_display_info, w32_term_init): Omit removed members
17006 of w32_display_info.
17007
17008 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
17009 New functions.
17010 (ns_initialize_display_info): Omit removed members of ns_display_info.
17011
17012 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17013 New functions.
17014 (x_calc_absolute_position): Use them.
17015 (x_term_init): Omit removed `height' and `width' members.
17016
17017 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17018 (compute_tip_xy):
17019 * frame.c (x_fullscreen_adjust):
17020 * xmenu.c (menu_position_func): Use x_display_pixel_height and
17021 x_display_pixel_width.
17022
17023 2008-09-18 Kenichi Handa <handa@m17n.org>
17024
17025 * composite.c (fill_gstring_header): Don't check FROM and TO here.
17026 (composition_compute_stop_pos): Fix handling of static composition.
17027 (Fcomposition_get_gstring): Check FROM and TO at first.
17028
17029 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
17030
17031 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
17032 mixup (YAILOM).
17033
17034 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
17035
17036 * indent.c (Fvertical_motion): Use position reported by iterator
17037 instead of PT for determining screen motion (bug#943).
17038
17039 2008-09-17 Romain Francoise <romain@orebokech.com>
17040
17041 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17042
17043 2008-09-17 Kenichi Handa <handa@m17n.org>
17044
17045 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17046
17047 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17048 if necessary.
17049
17050 2008-09-16 Kenichi Handa <handa@m17n.org>
17051
17052 * coding.c (make_conversion_work_buffer): Avoid calling
17053 Fget_buffer_create if it is not necessary.
17054
17055 2008-09-15 Martin Rudalics <rudalics@gmx.at>
17056
17057 * window.c (Fselect_window): Don't update window_select_count and
17058 use_time when norecord is not nil.
17059
17060 2008-09-14 Kenichi Handa <handa@m17n.org>
17061
17062 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17063 specpdl_ptr.
17064
17065 2008-09-12 Kenichi Handa <handa@m17n.org>
17066
17067 * indent.c (scan_for_column): Don't handle automatic composition
17068 if the current buffer is not associated with a window.
17069
17070 * composite.c (composition_reseat_it): If the current buffer is
17071 not associated with a window, ignore the automatic composition.
17072 (find_automatic_composition): Likewise.
17073
17074 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17075
17076 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17077 (Fgpm_mouse_stop): Use it.
17078 * termhooks.h (close_gpm): Declare.
17079 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17080 connection if Gpm_GetEvent fails.
17081
17082 * window.c (set_window_buffer): Always preserve current-buffer.
17083
17084 2008-09-12 Glenn Morris <rgm@gnu.org>
17085
17086 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17087
17088 2008-09-11 Glenn Morris <rgm@gnu.org>
17089
17090 * charset.c (charset-map-path): Doc fix.
17091
17092 2008-09-10 Kenichi Handa <handa@m17n.org>
17093
17094 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17095
17096 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17097 compose a grapheme cluster with the preceding base glyph.
17098
17099 * composite.c (composition_compute_stop_pos): Fix previous change.
17100 Reset cmp_it->id to -1 at first.
17101
17102 2008-09-10 Glenn Morris <rgm@gnu.org>
17103
17104 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17105
17106 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
17107
17108 * keyboard.c (read_key_sequence): Reapply translation maps when
17109 switching keyboards.
17110
17111 2008-09-09 Kenichi Handa <handa@m17n.org>
17112
17113 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17114 characters.
17115
17116 * composite.c (FORWARD_CHAR): Fix calculation
17117 of (POSITION).pos_byte.
17118 (composition_compute_stop_pos): Limit the search of composition to
17119 at most 500 characters ahead. If we reach the limit or find a
17120 newline, set cmp_it->ch to -2 and return 0.
17121 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17122
17123 2008-09-08 Kenichi Handa <handa@m17n.org>
17124
17125 * indent.c (Fvertical_motion): Be sure to set
17126 it_overshoot_expected if it.cmp_it.id is non-negative.
17127
17128 2008-09-07 Andreas Schwab <schwab@suse.de>
17129
17130 * callproc.c (Fcall_process): Don't hold references to string data
17131 across garbage collection. Move initialisation of new_argv down
17132 to avoid compiler bug.
17133
17134 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17135
17136 * process.c (Fsystem_process_attributes): Doc fix.
17137
17138 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
17139
17140 * callproc.c (Fcall_process): Canonicalize current directory name.
17141
17142 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17143 iterator advances to the next line if the current line ends in a
17144 continued tab.
17145
17146 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17147
17148 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17149 member to point to cmp_from.
17150
17151 * xdisp.c: Doc fix for references to gidx data member.
17152
17153 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17154
17155 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17156
17157 2008-09-07 Kenichi Handa <handa@m17n.org>
17158
17159 * composite.c (FORWARD_CHAR): Check STOP after
17160 incrementing (POSITION).pos.
17161
17162 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17163
17164 * process.c (Fsystem_process_attributes): Doc fix.
17165
17166 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
17167
17168 * keyboard.c (Ftop_level): Doc fix.
17169
17170 2008-09-06 Eli Zaretskii <eliz@gnu.org>
17171
17172 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17173 minibuffer, don't let lower part of menu invade the echo area.
17174
17175 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17176 "char *q" to access menu text and advance through it. Revert the
17177 change that displayed ">" instead of ASCII character 0x10.
17178
17179 2008-09-05 Eli Zaretskii <eliz@gnu.org>
17180
17181 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17182 toggle boxes and radio buttons on MS-DOS as well.
17183
17184 2008-09-05 Kenichi Handa <handa@m17n.org>
17185
17186 * composite.c (autocmp_chars): Check lookback count.
17187 (composition_compute_stop_pos): Set cmp_it->lookback.
17188 (composition_reseat_it): Check lookback count.
17189 (struct position_record): New struct.
17190 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17191 (find_automatic_composition): New function.
17192 (composition_adjust_point): Use find_automatic_composition.
17193
17194 * dispextern.h (struct composition_it): New member lookback.
17195
17196 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
17197
17198 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17199 if moving by a single line.
17200
17201 2008-09-02 Andreas Schwab <schwab@suse.de>
17202
17203 * xterm.c (x_delete_display): Fix merge error.
17204
17205 * fileio.c (Fexpand_file_name): Remove unused variables.
17206
17207 2008-09-02 Eli Zaretskii <eliz@gnu.org>
17208
17209 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17210 storage on all platforms, not just on DOS_NT.
17211
17212 2008-09-02 Jason Rumney <jasonr@gnu.org>
17213
17214 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17215 Ensure mouse is not grabbed after menu is finished.
17216
17217 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
17218
17219 * xfaces.c (Finternal_set_alternative_font_family_alist)
17220 (Finternal_set_alternative_font_registry_alist): Properly copy
17221 entire alist structure.
17222
17223 2008-09-01 Kenichi Handa <handa@m17n.org>
17224
17225 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
17226 representative chars of the script is a vector.
17227 (ftfont_list): Handle the case where the representative chars of
17228 the script is a vector.
17229
17230 * character.c (syms_of_character): Docstring of
17231 script-representative-chars fixed.
17232
17233 2008-08-31 Eli Zaretskii <eliz@gnu.org>
17234
17235 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17236 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17237 the menu. Allocate larger buffer for `text', to account for
17238 possible ^C characters.
17239
17240 2008-08-31 Martin Rudalics <rudalics@gmx.at>
17241
17242 * xdisp.c (prepare_menu_bars): Don't call
17243 Vwindow_size_change_functions with arg Qt.
17244
17245 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17246
17247 * font.h (font_range):
17248 * fileio.c (report_file_error):
17249 * composite.c (composition_update_it): Yet another int/Lisp_Object
17250 mixup (YAILOM).
17251
17252 2008-08-30 Glenn Morris <rgm@gnu.org>
17253
17254 * data.c (Fmake_variable_frame_local): Doc fix.
17255
17256 * frame.c (Fmodify_frame_parameters): Doc fix.
17257
17258 2008-08-30 Eli Zaretskii <eliz@gnu.org>
17259
17260 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17261 needed by GetTokenInformation.
17262 (w32_system_process_attributes): Check return values of all system
17263 APIs.
17264
17265 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17266 only when the state changes.
17267 (IT_update_begin, IT_update_end): Add termscript trace.
17268
17269 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17270 clipboard is unavailable. Set dst to NULL if it doesn't point to
17271 malloc'ed data.
17272 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17273 passing random values to xfree.
17274
17275 * dispnew.c (init_display): Set `tty's association in frame's
17276 parameters alist to the name of the terminal device, if that is known.
17277
17278 2008-08-29 Jason Rumney <jasonr@gnu.org>
17279
17280 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17281
17282 2008-08-29 Eli Zaretskii <eliz@gnu.org>
17283
17284 * composite.c (fill_gstring_body): Avoid compiler warnings.
17285
17286 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17287 LGLYPH_SET_CODE to avoid compiler warnings.
17288
17289 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
17290
17291 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17292
17293 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17294 LGLYPH_SET_CODE.
17295
17296 2008-08-29 Kenichi Handa <handa@m17n.org>
17297
17298 * fileio.c (report_file_error): Don't downcase the first character
17299 of errstring if it is still unibyte.
17300
17301 2008-08-29 Kenichi Handa <handa@m17n.org>
17302
17303 These changes are to re-implement the automatic composition so
17304 that it doesn't use text properties.
17305
17306 * Makefile.in (ftfont.o): Depend on composite.h.
17307 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17308
17309 * character.h (Vunicode_category_table): Extern it.
17310
17311 * character.c (Vunicode_category_table): New variable.
17312 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17313
17314 * chartab.c (optimize_sub_char_table): Perform more greedy
17315 optimization.
17316
17317 * composite.h (enum composition_method):
17318 Delete COMPOSITION_WITH_GLYPH_STRING.
17319 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17320 (Vcomposition_function_table): Extern it.
17321 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17322 (composition_gstring_put_cache, composition_gstring_from_id)
17323 (composition_gstring_p, composition_gstring_width)
17324 (composition_compute_stop_pos, composition_reseat_it)
17325 (composition_update_it, composition_adjust_point): Extern them.
17326 (Fcomposition_get_gstring): EXFUN it.
17327
17328 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
17329 (Vcomposition_function_table)
17330 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
17331 (gstring_hash_table, gstring_work, gstring_work_headers):
17332 New variables.
17333 (gstring_lookup_cache, composition_gstring_put_cache)
17334 (composition_gstring_from_id, composition_gstring_p)
17335 (composition_gstring_width, fill_gstring_header)
17336 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17337 (composition_reseat_it, composition_update_it)
17338 (composition_adjust_point, Fcomposition_get_gstring): New functions.
17339 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17340 and gstring_work_headers. DEFVAR_LISP composition-function-table.
17341 Defsubr composition_get_gstring.
17342
17343 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17344 cmp_id.
17345 (struct glyph_string): Delete the member gidx. New members
17346 cmp_id, cmp_from, and cmp_to.
17347 (enum it_method): Delete GET_FROM_COMPOSITION.
17348 (struct composition_it): New struct.
17349 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17350 Delete c, len, cmp_id, cmp_len in u.comp.
17351
17352 * font.h (enum lgstring_indices): Delete it.
17353 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
17354 (enum lglyph_indices): Likewise.
17355 (font_range): Adjust extern.
17356 (font_fill_lglyph_metrics): Extern it.
17357
17358 * font.c (QCf): New variable.
17359 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17360 (font_prepare_composition): Delete this function.
17361 (font_range): Type and arguments changed.
17362 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17363 (font_fill_lglyph_metrics): New function.
17364 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
17365 (syms_of_font): DEFSYM QCf. Delete defsubr for
17366 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17367 Defsubr Sfont_shape_gstring.
17368
17369 * fontset.h (font_for_char): Extern it.
17370
17371 * fontset.c (font_for_char): New function.
17372
17373 * ftfont.c: Include composite.h.
17374 (ftfont_resolve_generic_family): Add langset "en" to pattern.
17375 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17376
17377 * indent.c: Include composite.h and dispextern.h.
17378 (check_composition): Delete this function.
17379 (scan_for_column): Handle composition by
17380 composition_compute_stop_pos, composition_reseat_it, and
17381 composition_update_it.
17382 (compute_motion): Likewise.
17383 (Fvertical_motion): Fix checking of composition.
17384
17385 * keyboard.c (adjust_point_for_property): Check composition by
17386 composition_adjust_point.
17387
17388 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
17389 struct glyph_string.
17390
17391 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17392 (append_composite_glyph): Adjust for the change of struct it and
17393 struct glyph.
17394 (produce_composite_glyph): Likewise.
17395
17396 * w32term.c (x_draw_composite_glyph_string_foreground):
17397 Adjust for the change of struct glyph_string.
17398 (x_draw_glyph_string): Likewise.
17399
17400 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17401 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17402
17403 * xdisp.c: Include font.h.
17404 (it_props): Delete the entry for Qauto_composed.
17405 (init_iterator): Initialize it->cmp_it.id to -1.
17406 (compute_stop_pos): Call composition_compute_stop_pos.
17407 (face_before_or_after_it_pos): Adjust for the change of struct it.
17408 (handle_auto_composed_prop): Delete it.
17409 (handle_composition_prop): Handle only static composition.
17410 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17411 from xassert. Initialize it->cmp_it.stop_pos.
17412 (push_it): Adjust for the change of struct it.
17413 (pop_it): Likewise.
17414 (get_next_element): Delete next_element_from_composition.
17415 (CHAR_COMPOSED_P): New macro.
17416 (get_next_display_element): For automatic composition, get a face
17417 from the font in the glyph-string.
17418 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
17419 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
17420 (next_element_from_string): Check if the character at the current
17421 position is composed by CHAR_COMPOSED_P.
17422 (next_element_from_buffer): Likewise.
17423 (next_element_from_composition): Adjust for the change of struct it.
17424 Update it->cmp_it.
17425 (dump_glyph): Adjust for the change of struct glyph.
17426 (fill_composite_glyph_string): Adjust for the change of struct
17427 it and struct glyph. Don't handle automatic composition here.
17428 (fill_gstring_glyph_string): New function.
17429 (x_get_glyph_overhangs): Handle automatic composition.
17430 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
17431 (BUILD_GSTRING_GLYPH_STRING): New macro.
17432 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17433 automatic composition.
17434 (append_composite_glyph): Adjust for the change of struct it and
17435 struct glyph.
17436 (x_produce_glyphs): Adjust for the change of struct it.
17437
17438 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17439 the change of struct glyph_string.
17440 (x_draw_glyph_string): Likewise.
17441
17442 2008-08-29 Glenn Morris <rgm@gnu.org>
17443
17444 * buffer.c (word-wrap): Doc fix.
17445 * xdisp.c (truncate-partial-width-windows): Doc fix.
17446 Increase default to 50.
17447
17448 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
17449
17450 * xdisp.c (update_tool_bar_unwind): New function.
17451 (update_tool_bar): Temporarily set selected frame before building
17452 tool-bar items.
17453
17454 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
17455
17456 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17457 snprintf, respectively.
17458 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17459
17460 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
17461
17462 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17463 LDFLAGS to GNUstep CC invocation.
17464
17465 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
17466
17467 * indent.c (Fvertical_motion): Revert last change. Handle the
17468 general case where we are moving forward, and PT spans multiple
17469 screen lines.
17470
17471 * eval.c (find_handler_clause): Temporarily increase
17472 max-lisp-eval-depth while printing the backtrace buffer, to
17473 guarantee that help-mode code can run.
17474
17475 2008-08-27 Eli Zaretskii <eliz@gnu.org>
17476
17477 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17478 colors under -rv.
17479 (IT_set_frame_parameters): Don't swap foreground and background
17480 colors if `(reverse . t)' is present in the frame properties.
17481 (internal_terminal_init): Call init_frame_faces only for the
17482 initial frame.
17483
17484 2008-08-27 Andreas Schwab <schwab@suse.de>
17485
17486 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17487
17488 2008-08-27 Andreas Schwab <schwab@suse.de>
17489
17490 * search.c (search_buffer): Set char_base to zero only at the end.
17491
17492 2008-08-27 Kenichi Handa <handa@m17n.org>
17493
17494 * fileio.c (report_file_error): Fix handling of multibyte error string.
17495
17496 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17497
17498 * xterm.c (x_term_init): Temporarily hide the partially
17499 initialized terminal while calling vendor-specific-keysyms.
17500
17501 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17502
17503 * msdos.c (internal_terminal_init): Most initializations done only
17504 once, especially initial_screen_colors[] and termscript open.
17505
17506 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17507
17508 * eval.c (Fcondition_case): Doc fix.
17509
17510 * widgetprv.h (EmacsFramePart): Change font member to the new font
17511 struct.
17512
17513 * widget.c: Include character.h and font.h for XSETFONT.
17514 (setup_frame_gcs): Compute X font id from font struct, just once.
17515
17516 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17517
17518 * term.c (get_named_tty): Fix last change.
17519
17520 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17521
17522 * indent.c (Fvertical_motion): If moving forward starting from a
17523 multi-line string, move the iterator to the last line of that string.
17524
17525 2008-08-25 Eli Zaretskii <eliz@gnu.org>
17526
17527 * frame.c (do_switch_frame): Mark previously displayed frame as
17528 obscured for FRAME_MSDOS_P frames as well.
17529
17530 2008-08-24 Eli Zaretskii <eliz@gnu.org>
17531
17532 * frame.c (make_terminal_frame): Initialize f->terminal,
17533 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17534 Set the top frame to newly created frame.
17535 (Fmake_terminal_frame): Reuse the_only_display_info.
17536
17537 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17538 estimating available memory.
17539
17540 2008-08-23 David Reitter <david.reitter@gmail.com>
17541
17542 * nsterm.m (ns_draw_window_cursor): Don't call
17543 NSDisableScreenUpdates and NSEnableScreenUpdates on
17544 non-NS_IMPL_COCOA systems.
17545
17546 2008-08-23 Andreas Schwab <schwab@suse.de>
17547
17548 * process.c (procfs_system_process_attributes): Fix use of
17549 uninitialized variables.
17550
17551 2008-08-23 Eli Zaretskii <eliz@gnu.org>
17552
17553 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17554
17555 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17556 calling tty-set-up-initial-frame-faces.
17557
17558 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17559 Allow MSDOS frames along with X frames.
17560
17561 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17562 addition to output_termcap.
17563
17564 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17565
17566 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17567 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17568 highlight.
17569
17570 * process.c [!subprocesses]: Define QCname.
17571 (syms_of_process): Intern and staticpro it.
17572
17573 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17574 Adjust for changes in encoding/decoding routines.
17575 Use encode_coding_object and decode_coding_object instead of
17576 encode_coding and decode_coding.
17577
17578 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17579
17580 * dosfns.c: Include frame.h before termhooks.h.
17581 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17582 variable termscript.
17583
17584 * s/msdos.h (USER_FULL_NAME): Define.
17585 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17586
17587 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17588 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17589 pw->pw_gecos.
17590
17591 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17592 SELECTED_FRAME as additional (1st) argument.
17593 (tty_read_avail_input): Handle output_msdos_raw in
17594 addition to output_termcap.
17595
17596 * msdos.c: Include frame.h before termhooks.h.
17597 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17598 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17599 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17600 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17601 (IT_set_terminal_modes, IT_reset_terminal_modes)
17602 (IT_set_frame_parameters): Use tty->termscript instead of a global
17603 variable termscript.
17604 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17605 global variable terminal_coding. Don't refer to
17606 Vnonascii_translation_table.
17607 (internal_terminal_init): Set Vwindow_system in current_kboard.
17608 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17609 Announce date and time of session start, if termscript is open.
17610 Don't zero out the_only_display_info (it is done in
17611 term.c:init_tty). Open termscript only of not already open.
17612 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
17613 here instead of dos_ttraw. Don't initialize display if this is an
17614 initial tty. Don't set FRAME_FONT.
17615 (Vwindow_system_version): Bump to 23.
17616 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17617 is available, set up mouse_position_hook.
17618 (dos_ttraw, IT_set_terminal_modes): If called with initial
17619 terminal, do nothing.
17620 (IT_set_frame_parameters): Handle the Qtty_type frame
17621 parameter by calling internal_terminal_init.
17622 (dos_set_window_size, show_mouse_face)
17623 (clear_mouse_face, IT_note_mode_line_highlight)
17624 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17625 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17626 (initialize_msdos_display): New function.
17627 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17628 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17629 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17630 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
17631 Accept additional argument: a pointer to a frame. Update all callers.
17632 (request_sigio, unrequest_sigio): Don't define, now defined on
17633 sysdep.c.
17634 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17635
17636 * term.c [MSDOS]: Include msdos.h.
17637 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17638 conditional to DOS_NT. Allow only one call to this function in a
17639 session. Don't allocate a new struct tty_display_info; instead,
17640 reuse the_only_display_info. Call get_tty_size to get screen
17641 dimensions. Call init_baud_rate to set bad_rate.
17642 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17643 (Fsuspend_tty) [MSDOS]: Don't close input and output.
17644 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
17645 (get_tty_terminal, get_named_tty, Ftty_type)
17646 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17647 output_termcap.
17648 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17649 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
17650 only when subprocesses are supported.
17651
17652 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17653 f->output_data.x.
17654 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17655 terminal devices.
17656
17657 * msdos.h: Remove definition of struct x_display_info and struct
17658 x_output.
17659 (FRAME_FONT): Use output_data.tty.
17660 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
17661 (struct x_display_info): Rename from display_info. Update all users in
17662 msdos.c.
17663 (struct x_output): Remove background_pixel and foreground_pixel.
17664 (the_only_display_info): Rename from the_only_x_display.
17665 (dos_ttraw): Update prototype.
17666
17667 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17668 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17669
17670 2008-08-23 Jason Rumney <jasonr@gnu.org>
17671
17672 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17673 (fn_TIFFSetDirectory): New library function used.
17674 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17675 (tiff_load): Use :index to select among multiple images. Set count
17676 property when multiple images exist.
17677 (gif_format): Use :index, not :image.
17678
17679 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
17680
17681 * xdisp.c (try_scrolling): Check INT_MAX instead of
17682 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17683 to obtain INT_MAX.
17684
17685 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17686
17687 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17688
17689 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17690
17691 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17692 GNUstep library location.
17693
17694 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
17695
17696 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17697 before using it.
17698
17699 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17700
17701 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17702
17703 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17704 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17705 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17706 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17707 (EmacsApp-cursor_blink_handler): Remove declaration.
17708 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17709 match 01 Feb 2008 changes in xterm.c.
17710 (ns_read_socket): Add cast to avoid warning.
17711 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17712 GNUstep.
17713
17714 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
17715
17716 * xselect.c (x_get_foreign_selection): Return nil if desired
17717 selection could not be obtained, instead of signalling an error.
17718
17719 2008-08-20 David Reitter <david.reitter@gmail.com>
17720
17721 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17722 * nsterm.m: Remove ns-specific code for cursor blinking.
17723 (ns_draw_window_cursor): Clear cursor properly rather than
17724 redrawing the area. Respect width of bar cursors.
17725 These changes enable the use of generic blink-cursor-mode and
17726 generic cursor types in NS and support smooth cursor movements (do
17727 not blink off after command).
17728 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17729 Nextstep, too.
17730
17731 2008-08-19 Kenichi Handa <handa@m17n.org>
17732
17733 * font.c (Vfont_log_deferred): New variable.
17734 (font_add_log): Check Vfont_log_deferred.
17735 (font_deferred_log): New function.
17736
17737 * font.h (font_deferred_log): Extern it.
17738
17739 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17740 for sorting.
17741 (face_for_char): Use deferred log.
17742
17743 2008-08-18 Kenichi Handa <handa@m17n.org>
17744
17745 * fontset.c (face_for_char): Add font log.
17746
17747 * font.c (font_add_log): Add the font properties :script, :lang,
17748 and :otf in the log.
17749
17750 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
17751
17752 * xdisp.c: Remove dead code.
17753 (handle_invisible_prop, next_overlay_string): Defer call to
17754 setup_for_ellipsis.
17755 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17756
17757 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
17758
17759 * xfaces.c (lookup_derived_face): Properly handle possible zero
17760 return value of get_lface_attributes.
17761 (merge_faces): Don't tell lookup_derived_face to signal an error
17762 if face is not found.
17763
17764 * dired.c (Fdirectory_files): Doc fix.
17765
17766 * process.c (make_process): Initialize kill_without_query struct
17767 member.
17768
17769 2008-08-15 Eli Zaretskii <eliz@gnu.org>
17770
17771 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17772 Alternative calculation of totphys for Visual Studio 6.
17773
17774 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17775
17776 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17777 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17778 All users changed.
17779 (stat): Only root directory passed to GetDriveType. Allow RAM
17780 disk as well as local fixed disk when w32-get-true-file-attributes
17781 is set to `local'.
17782 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17783 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17784 (w32_cached_id, w32_add_to_cache): New functions.
17785 (get_name_and_id): Look account names in the cache before calling
17786 lookup_account_sid.
17787 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17788 New initialization flags.
17789 (globals_of_w32): Initialize them to zero.
17790 (w32_system_process_attributes): Use w32_cached_id and
17791 w32_add_to_cache.
17792
17793 2008-08-14 Lawrence Mitchell <wence@gmx.li>
17794
17795 * lread.c (Fread_char, Fread_char_exclusive): If no character
17796 event is read before timeout is reached, return nil, rather than
17797 converting to a number.
17798
17799 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
17800
17801 * fns.c (use_dialog_box): Doc fix.
17802
17803 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17804 on OS X.
17805
17806 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
17807
17808 * frame.c (Qns_parse_geometry): New var.
17809 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17810
17811 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
17812
17813 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17814 space character in calculating tabs.
17815
17816 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17817
17818 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17819
17820 2008-08-10 Glenn Morris <rgm@gnu.org>
17821
17822 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17823 silence gcc "limited range of data type" warnings in some
17824 make_fixnum_or_float calls.
17825
17826 2008-08-09 Eli Zaretskii <eliz@gnu.org>
17827
17828 * w32.c (w32_system_process_attributes): If the process does not
17829 exist, return nil.
17830
17831 * w32.c: Include thelp32.h, psapi.h and coding.h.
17832 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17833 declarations.
17834 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17835 (Process32Next_Proc): New typedefs.
17836 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17837 (g_b_init_process32_next, g_b_init_open_thread_token)
17838 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17839 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17840 (g_b_init_get_process_working_set_size)
17841 (g_b_init_global_memory_status_ex): New static variables.
17842 (globals_of_w32): Initialize them.
17843 (create_toolhelp32_snapshot, process32_first, process32_next)
17844 (open_thread_token, impersonate_self, revert_to_self)
17845 (get_process_memory_info, get_process_working_set_size)
17846 (global_memory_status, global_memory_status_ex): New wrapper
17847 functions.
17848 (w32_list_system_processes, w32_system_process_attributes)
17849 (enable_privilege, restore_privilege, ltime, process_times):
17850 New functions.
17851 (convert_time_raw): New function.
17852 (convert_time): Remove conversion of FILETIME into time in 100
17853 nsec units, call convert_time_raw instead.
17854
17855 * process.h (w32_list_system_processes, w32_system_process_attributes):
17856 Add prototypes.
17857 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17858 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17859 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17860 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17861
17862 * process.c (Fsystem_process_attributes): Doc fix.
17863
17864 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
17865
17866 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17867 a continued multi-char glyph; if so, advance to the actual glyph.
17868
17869 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17870
17871 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17872
17873 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17874 (.m.o): Use it.
17875 * config.in: Regenerate.
17876
17877 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
17878
17879 * xdisp.c (redisplay_window): Revert last change.
17880 (try_window): Check bottom scroll margin too.
17881
17882 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17883
17884 * config.in: Regenerate.
17885
17886 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17887 -list-load-path-shadows'.
17888 (nsgui.h): Reduce number of things depending on it.
17889
17890 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
17891
17892 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17893 instead of window-end which does the wrong thing at eob.
17894 (try_cursor_movement): Minor optimization.
17895 (redisplay_window): If scroll margin is defined, don't assume
17896 window doesn't need scrolling.
17897
17898 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17899
17900 * config.in: Regenerate.
17901
17902 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17903 (mostlyclean): Don't delete *.d under NS.
17904
17905 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17906
17907 2008-08-06 Kenichi Handa <handa@m17n.org>
17908
17909 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17910
17911 2008-08-06 Andreas Schwab <schwab@suse.de>
17912
17913 * config.in: Regenerate.
17914
17915 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
17916
17917 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17918 forcing a window start.
17919
17920 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17921 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17922
17923 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17924
17925 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17926 argument.
17927
17928 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
17929
17930 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17931 <scroll-down-aggressively, before-change-functions>:
17932 <after-change-functions>: Reflow docstrings.
17933
17934 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17935 Ken Raeburn <raeburn@gnu.org>
17936
17937 Dock menu customization, based on a patch by Ken Raeburn, plus some
17938 other fixes.
17939 * nsmenu.m (dockMenu): New variable.
17940 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17941
17942 * nsterm.h (dockMenu): Declare.
17943
17944 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17945 (ns_term_init): Initialize dockMenu.
17946 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17947 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17948 left.
17949
17950 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17951
17952 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
17953
17954 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17955
17956 * config.in: Regenerate.
17957
17958 2008-08-04 Seiji Zenitani <zenitani@mac.com>
17959
17960 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17961
17962 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
17963
17964 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17965
17966 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17967
17968 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17969
17970 * keyboard.h: Comment an #endif.
17971
17972 * lisp.h (have_menus_p): Adjust comment.
17973
17974 * menu.c (find_and_return_menu_selection): Fix comparison with
17975 client_data.
17976
17977 * nsmenu.m (popup_activated_flag): New variable.
17978 (popup_activated): New function.
17979 (menu-or-popup-active-p): New exported lisp definition.
17980 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17981 when popup done.
17982 (ns_popup_dialog): Set popup_activated_flag.
17983
17984 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17985 version for GNUstep (handled by conditional typedef in nsterm.m).
17986 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17987 in rgb.txt).
17988
17989 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17990
17991 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17992
17993 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17994
17995 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17996 shortcircuit if popup_activated like GTK and X toolkit.
17997
17998 * m/inter386.h: Change DARWIN to DARWIN_OS.
17999
18000 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
18001 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
18002 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
18003 Expand comment on NO_SOCK_SIGIO.
18004
18005 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
18006
18007 * nsterm.m (windowDidResize): Remove stopModal call.
18008
18009 2008-08-03 Andreas Schwab <schwab@suse.de>
18010
18011 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
18012 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
18013
18014 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
18015
18016 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
18017 Don't use uninitialized pointer variable when using getrlimit.
18018
18019 2008-08-02 Jason Rumney <jasonr@gnu.org>
18020
18021 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18022
18023 2008-08-02 Eli Zaretskii <eliz@gnu.org>
18024
18025 * alloc.c (NSTATICS): Bump to 0x640.
18026
18027 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18028
18029 * lisp.h: Add prototype for directory_files_internal.
18030
18031 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18032 New functions.
18033 (syms_of_process): Defsubr them. Add initializations for various
18034 Q* symbols used in procfs_system_process_attributes.
18035 (procfs_list_system_processes, procfs_system_process_attributes)
18036 [HAVE_PROCFS]: New functions.
18037 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18038 (procfs_get_total_memory): New functions.
18039
18040 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18041
18042 * xfaces.c (Fx_load_color_file): Fix previous change;
18043 it is #ifdef WINDOWSNT, not WINDOWS_NT.
18044
18045 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
18046
18047 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18048
18049 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18050
18051 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18052
18053 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
18054
18055 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18056
18057 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18058 define NSApplicationDelegateReplySuccess.
18059 (EmacsView -converstationIdentifier): Use long instead of
18060 NSInteger for GNUstep, since it doesn't have NSInteger.
18061
18062 * xmenu.c: Revert last change.
18063
18064 * keyboard.h: Fix last change.
18065
18066 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18067
18068 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18069 on Windows.
18070
18071 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18072
18073 Warning clearing and clean-up in NS port.
18074 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18075 Add prototypes.
18076 * nsgui.h (FACE_DEFAULT): Remove, unused.
18077 (XGCValues): Change colors to unsigned long.
18078 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18079 nsterm.m.
18080 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18081 (ns_list_fonts): Remove, unused.
18082 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18083 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18084 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18085 (nsfont_draw): Compare face colors to 0, not nil.
18086 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18087 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18088 (-addSubmenuWithTitle:): Use NSMenuItem class.
18089 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18090 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18091 (ns_clip_to_row): Make gc arg a BOOL.
18092 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18093 ns_clip_to_row() call.
18094 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18095 used). Cast FRAME_FONT assignments.
18096 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18097 (ns_string_to_lispmod): Change arg to const char.
18098 (ns_term_init): Use NSMenuItem class.
18099 (EmacsApp -openFile:): Move to different section of file.
18100 (EmacsApp -application:openFiles:): Don't return a value, call
18101 -replyToOpenOrPrint:.
18102 (EmacsView -keyDown:): Fix up cast.
18103 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18104 (EmacsView -menuDown:): Cast tag in call to
18105 find_and_call_menu_selection().
18106 (ns_list_fonts): Remove, unused.
18107 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18108 (ns_fontname_to_xlfd): Make static.
18109 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18110 Remove prototypes (now in keyboard.h).
18111 (next_menubar_widget_id): Remove, unused.
18112 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18113 Remove prototypes (now in keyboard.h).
18114 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18115
18116 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18117
18118 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18119 (floatfns.o): Depend on syssignal.h.
18120 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18121
18122 * systty.h: Fix previous change that removed BSD_TERMIOS.
18123 Add comments to #ifdefs.
18124
18125 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18126
18127 * w32fns.c (w32-load-color-file): Remove.
18128 (x-open-connection): Use renamed Fx_load_color_file.
18129 * xfaces.c (x-load-color-file): Add.
18130 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18131 Emacs.clr.
18132 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18133
18134 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
18135
18136 * dbusbind.c (Fdbus_call_method_asynchronously)
18137 (Fdbus_method_error_internal): New defuns.
18138 (xd_read_message): Handle also reply messages.
18139 (Vdbus_registered_functions_table): Extend docstring.
18140
18141 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
18142
18143 * keyboard.c (gobble_input): Fix previous change.
18144
18145 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18146
18147 * bitmaps/README:
18148 * xfns.c:
18149 * termcap.c:
18150 * term.c:
18151 * syswait.h:
18152 * systty.h:
18153 * systime.h:
18154 * syssignal.h:
18155 * sysdep.c:
18156 * process.h:
18157 * process.c:
18158 * print.c:
18159 * ndir.h:
18160 * lread.c:
18161 * keyboard.c:
18162 * getpagesize.h:
18163 * floatfns.c:
18164 * fileio.c:
18165 * emacs.c:
18166 * doc.c:
18167 * dispnew.c:
18168 * dired.c:
18169 * data.c:
18170 * callproc.c:
18171 * buffer.c:
18172 * README:
18173 * Makefile.in:
18174 * s/template.h:
18175 * s/msdos.h:
18176 * m/vax.h: Remove VMS support.
18177 * s/vms.h:
18178 * vlimit.h:
18179 * uaf.h:
18180 * temacs.opt:
18181 * param.h:
18182 * ioctl.h: Remove file.
18183
18184 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18185
18186 * s/ms-w32.h (MULTI_KBOARD): Remove.
18187 * xterm.c:
18188 * xselect.c:
18189 * xfns.c:
18190 * window.c:
18191 * w32term.c:
18192 * w32fns.c:
18193 * terminal.c:
18194 * termhooks.h:
18195 * term.c:
18196 * sysdep.c:
18197 * keyboard.h:
18198 * keyboard.c:
18199 * frame.h:
18200 * frame.c:
18201 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18202 * config.in: Regenerate.
18203
18204 2008-07-30 Jason Rumney <jasonr@gnu.org>
18205
18206 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18207
18208 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18209 (w32font_open_internal): Get unicode version of textmetrics.
18210 Don't enable or disable glyph indices here.
18211 (w32font_open): Disable use of glyph indices.
18212
18213 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18214
18215 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
18216
18217 * minibuf.c (Vread_buffer_function): Doc fix.
18218
18219 2008-07-30 John Paul Wallington <jpw@pobox.com>
18220
18221 * minibuf.c (read_buffer_completion_ignore_case): New var.
18222 (Fread_buffer): Use it.
18223
18224 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18225
18226 * systty.h (sensemode): Remove empty #if. Remove reference to
18227 BSD_TERMIOS, unused.
18228
18229 * sysdep.c: Remove reference to DGUX.
18230 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18231
18232 * config.in: Regenerate.
18233
18234 2008-07-30 Jason Rumney <jasonr@gnu.org>
18235
18236 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18237
18238 2008-07-29 Jason Rumney <jasonr@gnu.org>
18239
18240 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18241 is populated.
18242 (uniscribe_encode_char): Always use uniscribe.
18243 Avoid using context if cache is populated.
18244
18245 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18246
18247 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18248 open menu.
18249
18250 * gtkutil.c (menu_nav_ended): Remove.
18251 (create_menus): Remove signal connect for menu_nav_ended.
18252
18253 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
18254
18255 * xdisp.c (redisplay_window): Check return value of
18256 compute_window_start_on_continuation_line before forcing a window
18257 start.
18258
18259 2008-07-28 Jason Rumney <jasonr@gnu.org>
18260
18261 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18262
18263 * w32term.c (w32_enable_unicode_output, cleartype_active):
18264 Remove obsolete display options.
18265 (x_draw_glyph_string_background): Don't use old cleartype_active
18266 workaround.
18267 (w32_initialize): Remove cleartype_active initialization.
18268 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18269
18270 2008-07-28 Andreas Schwab <schwab@suse.de>
18271
18272 * lisp.h (init_weak_hash_tables, syms_of_font)
18273 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18274 (remove_hash_entry): Don't declare.
18275 * eval.c (maybe_call_debugger): Make static and move before use.
18276 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18277 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18278 * xterm.h (x_set_frame_alpha): Declare.
18279
18280 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18281
18282 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18283 (create_menus): Connect selection-done to menu_nav_ended.
18284
18285 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18286
18287 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18288 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18289 parameter with read of 'alpha' one.
18290 (Qns_frame_parameter): Remove.
18291 * nsselect.m (selection-coding-system)
18292 (next-selection-coding-system, Vselection_coding_system)
18293 (Vnext_selection_coding_system): Drop.
18294
18295 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18296
18297 * nsfns.m (do-applescript, do_applescript): Rename to
18298 ns-do-applescript, ns_do_applescript, and move within file.
18299
18300 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18301
18302 Remove support for Mac Carbon.
18303 * mactoolbox.c:
18304 * macterm.h:
18305 * macterm.c:
18306 * macselect.c:
18307 * macmenu.c:
18308 * macgui.h:
18309 * macfns.c:
18310 * mac.c: Remove file.
18311 * s/darwin.h:
18312 * m/intel386.h:
18313 * xfaces.c:
18314 * xdisp.c:
18315 * window.c:
18316 * tparam.c:
18317 * termhooks.h:
18318 * termcap.c:
18319 * term.c:
18320 * syssignal.h:
18321 * sysselect.h:
18322 * sysdep.c:
18323 * process.c:
18324 * lread.c:
18325 * lisp.h:
18326 * keyboard.c:
18327 * image.c:
18328 * fringe.c:
18329 * frame.h:
18330 * frame.c:
18331 * fontset.c:
18332 * font.h:
18333 * font.c:
18334 * fns.c:
18335 * fileio.c:
18336 * emacs.c:
18337 * dispnew.c:
18338 * dispextern.h:
18339 * config.in:
18340 * atimer.c:
18341 * Makefile.in: Remove code for Carbon.
18342
18343 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18344
18345 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18346
18347 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18348
18349 * macterm.h (kCGBitmapByteOrder32Host): New define for
18350 non-universal SDKs.
18351
18352 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18353 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18354
18355 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18356 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18357
18358 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18359
18360 * w32inevt.c: Include dispextern.h.
18361
18362 2008-07-26 Andreas Schwab <schwab@suse.de>
18363
18364 * print.c (print_object): Fix off-by-one in last change.
18365
18366 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
18367
18368 * term.c (syms_of_term): Don't initialize default_orig_pair,
18369 default_set_foreground and default_set_background on Windows.
18370
18371 2008-07-25 Jason Rumney <jasonr@gnu.org>
18372
18373 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18374 ScriptItemize. Clean up return value checking. Remove unused
18375 variables.
18376 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18377 shaping engine.
18378
18379 * w32font.c (w32font_has_char): Handle the case where we can't
18380 determine the script for a character.
18381
18382 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18383
18384 * term.c (syms_of_term): Initialize default_orig_pair,
18385 default_set_foreground, and default_set_background.
18386
18387 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18388 clash (bug#86).
18389 (getloadavg): Callers changed.
18390
18391 * image.c (svg_load_image): Fix last change.
18392 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18393 image size is valid. Use g_object_unref instead of deprecated
18394 rsvg_handle_free to free rsvg handle.
18395 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18396
18397 2008-07-25 Jason Rumney <jasonr@gnu.org>
18398
18399 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18400 surrogates before looking up glyph index.
18401 (w32font_text_extents): Encode as surrogates if falling back to
18402 functions that need UTF-16 wide chars.
18403
18404 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18405 BMP as surrogates before looking up glyph index.
18406
18407 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18408
18409 * image.c (svg_load_image): Check for failure in return value of
18410 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18411
18412 2008-07-25 Jason Rumney <jasonr@gnu.org>
18413
18414 * w32font.c (Fx_select_font): Reverse sense of second arg.
18415
18416 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18417
18418 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18419 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18420
18421 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18422 (PURESIZE): Use it.
18423
18424 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18425
18426 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18427 * m/alpha.h (TEXT_END):
18428 * m/ibmrs6000.h (TEXT_END):
18429 * m/macppc.h (TEXT_END):
18430 * s/darwin.h (TEXT_END):
18431 * s/msdos.h (TEXT_END): Remove, unused.
18432 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18433 * s/cygwin.h: Remove comment.
18434
18435 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18436 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18437 * m/intel386.h (DOT_GLOBAL_START):
18438 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18439 (USG): Remove, file not used on USG platforms.
18440
18441 * Makefile.in (HAVE_X11): Remove empty #else.
18442
18443 2008-07-24 Andreas Schwab <schwab@suse.de>
18444
18445 * fileio.c (Finsert_file_contents): Properly adjust undo list
18446 after format conversion.
18447
18448 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18449
18450 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18451 (menu_nav_ended): Remove.
18452 (create_menus): Remove signal connect for menu_nav_ended.
18453 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18454 create_menus.
18455 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18456
18457 2008-07-23 Jason Rumney <jasonr@gnu.org>
18458
18459 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18460 with opened font.
18461 (w32font_open): Set font type to gdi.
18462
18463 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18464
18465 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18466
18467 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18468 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18469 defines it.
18470 * unexec.c (ADDR_CORRECT): Define unconditionally.
18471
18472 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18473
18474 * unexec.c: Remove code depending on !COFF and USG, the file is
18475 not used for such systems.
18476
18477 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18478 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18479 (LD_SWITCH_SYSTEM_1): Remove, update users.
18480
18481 * s/darwin.h (DATA_END):
18482 * m/intel386.h (DATA_END):
18483 * m/ibmrs6000.h (DATA_END):
18484 * m/alpha.h (DATA_END): Remove, unused.
18485
18486 * config.in: Regenerate.
18487 * s/ms-w32.h (subprocesses): Define unconditionally.
18488 * s/template.h (subprocesses): Update comment.
18489 * s/vms.h (subprocesses):
18490 * s/usg5-4.h (subprocesses):
18491 * s/hpux10-20.h (subprocesses):
18492 * s/gnu-linux.h (subprocesses):
18493 * s/cygwin.h (subprocesses):
18494 * s/bsd-common.h (subprocesses):
18495 * s/aix4-2.h (subprocesses):
18496 * s/darwin.h (subprocesses): Do not define, defined by default now.
18497
18498 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18499 Remove all references.
18500 (temacs): Add GNUstep specific ld flags.
18501
18502 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18503 similarly to what X does.
18504
18505 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18506
18507 * nsfns.m (x-list-fonts): Remove.
18508 (syms_of_nsfns): Drop the x-list-fonts declaration.
18509 * nsterm.m: Get rid of remaining "//" comments.
18510
18511 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
18512
18513 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18514
18515 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18516 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18517 (Fns_own_selection_internal, Fx_disown_selection_internal)
18518 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18519
18520 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18521 ... */' style of docstrings. Doc fixes.
18522
18523 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18524
18525 * terminfo.c (UP, BC, PC): Undo previous change.
18526
18527 * nsfns.m: Rename ns prefixed functions/variables to the
18528 corresponding x versions. Update references.
18529
18530 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18531
18532 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18533
18534 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18535
18536 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18537 Remove forwarding functions.
18538 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18539 non-static.
18540 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18541 non-static.
18542 (ns_frame_parm_handlers): Use the new names.
18543 (syms_of_nsfns): Move to the end of file.
18544
18545 * nsterm.m (syms_of_nsterm): Move to the end of file.
18546
18547 * dispnew.c (init_display): Remove code for X10.
18548
18549 2008-07-22 Jason Rumney <jasonr@gnu.org>
18550
18551 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18552 bare drive.
18553
18554 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18555
18556 * nsterm.m (syms_of_nsterm): Remove debugging println.
18557
18558 2008-07-22 David Reitter <david.reitter@gmail.com>
18559
18560 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18561 Carbon implementation of the same functionality: execute arbitrary
18562 AppleScript code.
18563
18564 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18565
18566 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18567 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18568 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18569 (Fx_display_mm_height, Fx_display_mm_width)
18570 (Fx_display_backing_store, Fx_display_visual_class)
18571 (Fx_display_save_under, Fx_open_connection)
18572 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18573 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18574 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18575 (Fx_display_pixel_width, Fx_display_pixel_height)
18576 (Fx_display_usable_bounds, Fx_display_planes)
18577 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18578 ... */' style of docstrings.
18579
18580 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18581
18582 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18583 on this platform.
18584 (mips):
18585 * m/iris4d.h (mips): Do not define.
18586 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18587
18588 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18589
18590 * image.c:
18591 * nsfns.m:
18592 * nsselect.m:
18593 * nsterm.h:
18594 * nsterm.m: Rename ns prefixed functions/variables to the
18595 corresponding x versions. Update references.
18596
18597 * m/ibms390x.h (NO_REMAP): Do not undefine.
18598
18599 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18600
18601 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
18602
18603 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18604 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18605 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18606 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18607 (Fns_display_mm_height, Fns_display_mm_width)
18608 (Fns_display_backing_store, Fns_display_visual_class)
18609 (Fns_display_save_under, Fns_open_connection)
18610 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18611 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18612 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18613 (Fns_display_pixel_width, Fns_display_pixel_height)
18614 (Fns_display_usable_bounds, Fx_display_planes)
18615 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18616
18617 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18618
18619 * print.c (print_object): Check print_depth before searching for
18620 circularities.
18621
18622 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
18623
18624 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18625 only sprintf.
18626
18627 2008-07-21 Kenichi Handa <handa@m17n.org>
18628
18629 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18630
18631 2008-07-20 Andreas Schwab <schwab@suse.de>
18632
18633 * syntax.c (find_start_pos, find_start_value)
18634 (find_start_value_byte, find_start_begv, find_defun_start)
18635 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18636
18637 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18638
18639 * s/sol2-3.h: Insert contents of s/sol2.h.
18640 (LD_SWITCH_SYSTEM): Remove redundant definition.
18641 * s/sol2.h: Remove, unused.
18642
18643 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18644
18645 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18646
18647 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18648
18649 * Makefile.in (ns_appdir): Fix typo in find command.
18650
18651 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18652
18653 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18654
18655 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18656 added not supported anymore.
18657
18658 * s/usg5-4-2.h (LIBS_SYSTEM):
18659 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18660
18661 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18662 * s/lynxos.h (GETPGRP_NO_ARG):
18663 * s/hpux10-20.h (NO_SIOCTL_H):
18664 * s/gnu.h (GETPGRP_NO_ARG):
18665 * s/gnu-linux.h (NO_SIOCTL_H):
18666 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18667 * s/cygwin.h (GETPGRP_NO_ARG):
18668 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18669 (C_DEBUG_SWITCH): Remove duplicate definition.
18670
18671 * m/ibms390.h: Remove boilerplate comments.
18672
18673 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18674
18675 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18676 (wait_reading_process_output): Remove code for SunOS, platform not
18677 supported anymore. Use SOLARIS2 instead of sun.
18678
18679 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18680
18681 * font.c (font_open_by_name): Under NS, default lface height to zero.
18682 (font_open_for_lface): Under NS, set size based on frame fontsize.
18683 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18684 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18685
18686 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18687
18688 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18689 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18690 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18691 YES/NO.
18692 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18693 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18694 * Makefile.in (clean): Clear out build destination dir.
18695
18696 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18697
18698 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18699 xterm, xselect.
18700 * lisp.h: Remove declaration of hash_remove.
18701 * nsgui.h: Remove redefinitions of hash_remove.
18702 * fns.c (hash_remove): Rename to hash_remove_from_table.
18703
18704 2008-07-19 Seiji Zenitani <zenitani@mac.com>
18705
18706 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18707 strdup() the family UTF8String before modifying it.
18708
18709 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18710
18711 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18712 NS_FACE_BACKGROUND with 0 instead of nil.
18713 * nsfont.m (nsfont_draw): Same.
18714
18715 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
18716
18717 * nsfns.m (ns_set_background_color): Fix crash.
18718
18719 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
18720
18721 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18722
18723 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18724
18725 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18726
18727 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18728
18729 * gtkutil.c: Include <config.h> instead of "config.h".
18730
18731 * lisp.h (Foverlay_buffer): Add EXFUN.
18732
18733 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18734 child process to complete child_setup. Undo 2005-09-21 change.
18735
18736 * s/darwin.h: Mention setsid after vfork.
18737
18738 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18739
18740 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18741 Depend on macgui.h.
18742
18743 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18744 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18745
18746 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18747 and f19.
18748 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18749
18750 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18751 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18752 Remove enumerators.
18753
18754 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18755 Check if FACE_FROM_ID returns NULL.
18756
18757 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18758
18759 * w32inevt.c (change_frame_size): Remove extern declaration.
18760 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18761 change_frame_size.
18762
18763 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18764
18765 * getloadavg.c: Revert last change (2008-07-15).
18766
18767 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18768
18769 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
18770 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
18771 from configure.
18772
18773 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18774
18775 * s/sol2.h:
18776 * s/sol2-4.h: Reorganize conditionals.
18777
18778 * ecrt0.c: Remove code depending on m68000, not used anymore.
18779
18780 * fns.c (hash_remove): Make static.
18781 * lisp.h (hash_remove): Don't prototype.
18782
18783 * m/ibmrs6000.h:
18784 * m/ibms390x.h:
18785 * m/macppc.h: Remove boilerplate comments.
18786
18787 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18788 Solaris, which does not need them.
18789
18790 * m/vax.h: Remove comments about unsupported systems.
18791
18792 * s/darwin.h: Reorganize ifdefs.
18793
18794 2008-07-17 Andreas Schwab <schwab@suse.de>
18795
18796 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18797
18798 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18799
18800 Use SDATA. Follow coding convention of placing operators at
18801 beginning of next line rather than end of previous line, and placing
18802 spaces around infix operators.
18803
18804 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18805 in case it was defined already.
18806 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18807 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18808 ns_default.
18809 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18810 Lisp_Objects.
18811 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18812 (ns_defined_color, ns_color_to_lisp): Declare.
18813 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18814 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18815 it's accepted even with USE_LISP_UNION_TYPE.
18816 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18817 (update_frame_tool_bar): Remove apparently obsolete tests for
18818 non-integerness of f->tool_bar_lines.
18819 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18820 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18821 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18822 (nsfont_open): Don't confuse NULL for Qnil.
18823 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18824 * menu.h (find_and_call_menu_selection):
18825 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18826 (find_and_return_menu_selection): Always return something.
18827 * frame.h: Include dispextern.h for Display_Info.
18828 (display_x_get_resource): Declare.
18829
18830 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18831
18832 * syntax.c: Remove stdio.h include accidentally introduced in
18833 Emacs.app commit.
18834 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18835 NS_IMPL_COCOA.
18836 * keyboard.c (handle_async_input, input_available_signal): Remove
18837 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18838
18839 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18840
18841 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18842 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18843 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18844 Use SDATA.
18845
18846 * keymap.c: Remove all NS-specific code.
18847 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18848 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18849 where_is_preferred_modifier, return a different value depending on how
18850 preferred is the binding.
18851 (where_is_internal): Adjust accordingly.
18852 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18853 Adjust to new preferred_sequence_p.
18854 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18855 * keyboard.c (parse_solitary_modifier): Not static any more.
18856 * keyboard.h (parse_solitary_modifier): Declare.
18857
18858 2008-07-16 Andreas Schwab <schwab@suse.de>
18859
18860 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18861 of easymenu.
18862
18863 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
18864
18865 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18866 that we don't move off the line.
18867
18868 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18869
18870 * keyboard.c (Qsuper): Remove.
18871 (parse_menu_item): Don't call where_is_internal specially for NS.
18872
18873 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18874
18875 * s/gnu-linux.h: Remove boilerplate comments.
18876
18877 * m/alpha.h (__ELF__): Consolidate conditions.
18878
18879 * m/m68k.h (linux): Use GNU_LINUX instead.
18880 Remove boilerplate comments.
18881
18882 * m/intel386.h: Undo refactoring from previous change.
18883 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18884 too, remove dead code.
18885 (linux): Use GNU_LINUX instead.
18886
18887 2008-07-16 Jason Rumney <jasonr@gnu.org>
18888
18889 * w32gui.h: Repeat 26 June changes lost by last change.
18890
18891 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18892
18893 * systty.h: Remove code for Aix on 386, unsupported platform.
18894
18895 * s/ms-w32.h: Remove boilerplate comments.
18896 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18897
18898 * s/gnu-linux.h (TERM): Remove support.
18899 (HAVE_SYSVIPC): Remove, unused.
18900 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18901 for this system.
18902
18903 * process.c: Remove support for IRIS, unused.
18904 Remove support for TERM, not relevant anymore.
18905
18906 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18907 used with the definition.
18908
18909 * s/aix4-2.h (static): Do not undef.
18910
18911 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18912 only used on Aix.
18913 (HAVE_SYSVIPC): Remove, unused.
18914
18915 * m/hp800.h (CANNOT_DUMP): Do not undef.
18916
18917 * m/alpha.h: Fix comment.
18918
18919 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18920 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18921 used by this configuration.
18922 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18923 * unexec.c: Remove code depending on HPUX and
18924 USG_SHARED_LIBRARIES, not used with this file. Remove code
18925 depending on IRIS, unused. Remove if 0-ed code.
18926
18927 * s/template.h: Remove comments about static.
18928
18929 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18930 Remove if 0-ed code.
18931 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18932 were the same as the default.
18933 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18934 Remove boilerplate comments.
18935 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18936 (HAVE_SYSVIPC): Remove, unused.
18937 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18938
18939 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18940 Remove boilerplate comments.
18941 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18942 Remove boilerplate comments.
18943 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18944 Remove boilerplate comments.
18945 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18946
18947 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18948 USG systems which do not use DATA_SEG_BITS.
18949 Refactor code. Remove boilerplate comments.
18950
18951 * m/ibms390.h:
18952 * m/m68k.h:
18953 * s/bsd-common.h:
18954 * s/cygwin.h:
18955 * s/darwin.h:
18956 * s/freebsd.h:
18957 * s/gnu.h:
18958 * s/msdos.h: Remove boilerplate comments.
18959
18960 * m/iris4d.h: Remove boilerplate comments and code for systems that
18961 do not use this file.
18962 (IRIS_4D): Remove, unused.
18963
18964 * m/mips.h: Remove boilerplate comments and code for systems that
18965 do not use this file.
18966 (SIGN_EXTEND_CHAR):
18967 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18968 * unexmips.c: Remove file, unused.
18969
18970 * editfns.c (Fuser_full_name): Replace the only use of
18971 USER_FULL_NAME with its value.
18972 * config.in: Regenerate.
18973
18974 2008-07-16 David Reitter <david.reitter@gmail.com>
18975
18976 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18977 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18978
18979 2008-07-16 Glenn Morris <rgm@gnu.org>
18980
18981 * emacs.c (system-type): Doc fix.
18982
18983 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18984
18985 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18986 If the cache doesn't work, let's fix it, rather than work around it.
18987
18988 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18989
18990 * Makefile.in: Correct additions for nsfont.o in last commit.
18991 * nsfont.m: New file (forgot last commit).
18992
18993 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18994
18995 * callproc.c (set_initial_environment):
18996 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
18997 batch-compiling for bootstrap).
18998
18999 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19000 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19001
19002 * frame.c (make_initial_frame): Call init_frame_faces(f) in
19003 CANNOT_DUMP case -- fix crash due to different init order.
19004
19005 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19006
19007 Changes and additions for NeXTstep windowing system (Cocoa and
19008 GNUstep) support.
19009
19010 * Makefile.in:
19011 * config.in: Support defines and build commands for NS port.
19012 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
19013 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
19014 * dispextern.h: Include nsgui.h and add needed typedefs under NS
19015 windowing.
19016 (struct face): Add synth_ital field.
19017 * dispnew.c: Include nsterm.h when compiling under NS windowing.
19018 (init_display): Initialize Vinitial_window_system to "ns" when so
19019 compiled.
19020 * emacs.c: Include GSConfig.h when compiling under GNUstep.
19021 (display_arg): Use under NS.
19022 (main): Under NS, allocate autorelease pool and handle command line
19023 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19024 (standard_args): Add NS-specific args.
19025 (shut_down_emacs): Shut down NS terminal if compiled under NS.
19026 * font.c (DEFAULT_ENCODING): New variable.
19027 (font_find_for_lface): Use it.
19028 (syms_of_font): Load syms_of_nsfont under NS.
19029 * font.h: Declare nsfont_driver when compiled under NS.
19030 * fontset.c: When compiling under NS, include nsterm.h.
19031 (fontset_from_font): Autoconstruct fontset under NS.
19032 * frame.c (various): Under NS, include nsterm.h, add Qns window system
19033 symbol, document and use it.
19034 (do_switch_frame): When for_deletion under Cocoa, add
19035 Fraise_frame(Qnil).
19036 (x_set_frame_parameters): Ensure font attribute changes are picked up.
19037 (x_get_arg): Allow "yes" and "no" as boolean values.
19038 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
19039 Qright under Cocoa.
19040 (focus-follows-mouse): Default to 0 under NS.
19041 * frame.h (enum output_method): Add output_ns.
19042 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19043 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19044 (FRAME_WINDOW_P): NS-specific definition.
19045 * fringe.c (max_used_fringe_bitmap): Make public.
19046 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19047 (getloadavg): Use NeXT code under descendant OS's.
19048 * image.c (includes and header section, x_create_bitmap_from_data)
19049 (x_create_bitmap_from_file, free_bitmap_record, image_background)
19050 (image_background_transparent, x_clear_image_1)
19051 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19052 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19053 (x_to_xcolors, x_from_xcolors, x_disable_image)
19054 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19055 other GUIs, including XPM support using code originally written for
19056 Carbon GUI.
19057 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19058 using NS API.
19059 (image_ascent): Use font metrics macros instead of direct struct field
19060 access.
19061 * keyboard.c (includes): Add nsterm.h when compiling under NS.
19062 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19063 Also, handle NS as GTK for menu bar purposes.
19064 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19065 toolkit where they differ.
19066 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
19067 use cachelist, still needed under NS.
19068 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19069 (struct widget_value): Define it here for menu.c.
19070 * keymap.c (includes): Include modifier internals.
19071 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19072 NS.
19073 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19074 support for preferring sequences using certain modifiers, specified by
19075 the FIRSTONLY argument.
19076 * lisp.h (hash_remove): Rename to avoid name clash when compiling
19077 under NS GNUstep implementation.
19078 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19079 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19080 * menu.c: Include nsterm.h under NS.
19081 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19082 (free_menubar_widget_tree_value, update_submenu_strings)
19083 (find_and_call_menu_selection): Treat NS as X and NT.
19084 (find_and_return_menu_selection): New function, used for popup menus.
19085 * nsgui.h:
19086 * nsterm.h:
19087 * nsfns.m:
19088 * nsimage.m:
19089 * nsmenu.m:
19090 * nsselect.m:
19091 * nsterm.m: New files.
19092 * process.c (wait_reading_process_output): Under NS, call ns_select()
19093 instead of plain select().
19094 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19095 beginning of buffer.
19096 * sysselect.h (init_process): Rename when compiling under Cocoa to
19097 avoid name conflict.
19098 * termhooks.h (display_info): Add ns_display_info to union.
19099 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19100 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19101 COCOA environment.
19102 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19103 unexec() signature. (Note, this will dump, but the resulting file
19104 crashes; unexosx is used instead; keeping around for reference and
19105 possible aid in getting dump working under GNUstep.)
19106 * w32gui.h (button_type, widget_value): Remove definitions (now in
19107 keyboard.h).
19108 * window.c: Include nsterm.h when compiling under NS.
19109 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19110 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19111 other GUI windowing systems.
19112 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19113 GTK.
19114 (x_consider_frame_title): Under NS, set icon type and frame
19115 modified-state indicator; use ns_set_name_as_filename() when using
19116 formatted title.
19117 (update_window_cursor): Make public when compiling under NS.
19118 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19119 (hourglass_atimer, Vhourglass_delay
19120 * xfaces.c (header section, init_frame_faces, clear_font_table)
19121 (defined_color, unload_color, x_face_list_fonts)
19122 (prepare_face_for_display): Add NS support parallel to other GUIs.
19123 Emulate GCs like other non-X GUIs.
19124 (split_font_name): Don't lowercase font name under NS.
19125 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19126 under NS.
19127 * s/darwin.h: Add support for compilation under NS.
19128
19129 2008-07-15 Jason Rumney <jasonr@gnu.org>
19130
19131 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19132 (w32_show_hourglass): Rename from show_hourglass.
19133 (w32_hide_hourglass): Rename from hide_hourglass.
19134 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19135 (Vhourglass_delay): Declare extern.
19136 (hourglass_started): Remove.
19137
19138 * xdisp.c (Vhourglass_delay): Remove static.
19139 (hourglass_started, start_hourglass, cancel_hourglass):
19140 Don't include these versions on WINDOWSNT.
19141
19142 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19143
19144 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19145 variables (formerly in xfns.c).
19146 (show_hourglass, hide_hourglass): New prototypes (same).
19147 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19148 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19149 in xfns.c).
19150 (syms_of_xdisp): Declare/initialize display-hourglass,
19151 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19152 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19153 formerly in xfns.c.
19154 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19155 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19156 (start_hourglass, cancel_hourglass): Remove.
19157 (show_hourglass, hide_hourglass): Remove prototypes and static
19158 modifiers.
19159 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19160 hourglass_atimer, hourglass_shown_p declaration/initialization.
19161 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19162 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19163 (start_hourglass, cancel_hourglass): Remove.
19164 (show_hourglass, hide_hourglass): Remove prototypes and static
19165 modifiers.
19166 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19167 hourglass_atimer, hourglass_shown_p declaration/initialization.
19168 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19169 (DEFAULT_HOURGLASS_DELAY): Remove.
19170 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19171 hourglass_shown_p declaration/initialization.
19172
19173 2008-07-14 Jason Rumney <jasonr@gnu.org>
19174
19175 * w32fns.c (w32_get_arg): Remove wrapper function.
19176 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19177 directly.
19178 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19179
19180 2008-07-14 Kenichi Handa <handa@m17n.org>
19181
19182 * xfont.c (xfont_open): Add workaround for X's bug.
19183
19184 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19185
19186 * fontset.c: Include <stdio.h> unconditionally.
19187
19188 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
19189
19190 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19191 for filtering.
19192
19193 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19194
19195 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19196
19197 * m/macppc.h:
19198 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19199
19200 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
19201 (SPECIAL_EMACS_INT):
19202 * m/ia64.h (SPECIAL_EMACS_INT):
19203 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19204 * s/gnu.h (NLIST_STRUCT):
19205 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19206 * s/gnu-linux.h (LINUX):
19207 * s/msdos.h (HAVE_FACES):
19208 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19209
19210 * systty.h:
19211 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19212 anymore.
19213
19214 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19215
19216 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19217 always defined as int.
19218
19219 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19220 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19221 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19222 * s/freebsd.h (HAVE_WAIT_HEADER):
19223 * s/bsd-common.h (HAVE_UNION_WAIT):
19224 * s/aix4-2.h (HAVE_WAIT_HEADER):
19225 * m/mips.h (HAVE_UNION_WAIT):
19226 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19227 (COFF, static): Do not define, they are undefined later in the file.
19228
19229 * process.c (update_status): Don't use a union.
19230 (status_convert):
19231 (sigchld_handler): Use int instead of WAITTYPE.
19232
19233 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
19234
19235 * indent.c (Fvertical_motion): Restore hscroll before moving to
19236 goal column.
19237
19238 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19239
19240 * lisp.h: Remove left over code.
19241
19242 2008-07-11 Andreas Schwab <schwab@suse.de>
19243
19244 * lisp.h: Fix logic in last change.
19245
19246 * menu.h: New file.
19247 * menu.c: Include it.
19248 * xmenu.c: Likewise.
19249 * Makefile.in: Update dependencies.
19250
19251 2008-07-11 Kenichi Handa <handa@m17n.org>
19252
19253 * fontset.c (fontset_from_font): Cancel the previous change.
19254
19255 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19256
19257 * lisp.h:
19258 * w32heap.c:
19259 * emacs.c:
19260 * alloc.c: Replace all references of NO_UNION_TYPE with
19261 USE_LISP_UNION_TYPE.
19262
19263 * m/xtensa.h (NO_UNION_TYPE):
19264 * m/vax.h (NO_UNION_TYPE):
19265 * m/template.h (NO_UNION_TYPE):
19266 * m/sparc.h (NO_UNION_TYPE):
19267 * m/mips.h (NO_UNION_TYPE):
19268 * m/macppc.h (NO_UNION_TYPE):
19269 * m/m68k.h (NO_UNION_TYPE):
19270 * m/iris4d.h (NO_UNION_TYPE):
19271 * m/intel386.h (NO_UNION_TYPE):
19272 * m/ibms390x.h (NO_UNION_TYPE):
19273 * m/ibms390.h (NO_UNION_TYPE):
19274 * m/ibmrs6000.h (NO_UNION_TYPE):
19275 * m/ia64.h (NO_UNION_TYPE):
19276 * m/hp800.h (NO_UNION_TYPE):
19277 * m/arm.h (NO_UNION_TYPE):
19278 * m/amdx86-64.h (NO_UNION_TYPE):
19279 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19280 defining it the same.
19281
19282 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
19283
19284 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19285
19286 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19287
19288 * fileio.c:
19289 * sysdep.c:
19290 * systty.h:
19291 * m/ibmrs6000.h:
19292 * m/iris4d.h:
19293 * s/aix4-2.h:
19294 * s/freebsd.h:
19295 * s/gnu-linux.h:
19296 * s/hpux10-20.h:
19297 * s/hpux11.h:
19298 * s/netbsd.h:
19299 * s/sol2-3.h:
19300 * s/sol2-4.h:
19301 * s/sol2.h:
19302 * s/usg5-4.h:
19303 * s/vms.h: Remove references to unused variables.
19304
19305 2008-07-10 Andreas Schwab <schwab@suse.de>
19306
19307 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19308 pattern before matching the generic family.
19309
19310 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19311
19312 * unexec.c:
19313 * s/vms.h:
19314 * s/usg5-4-2.h:
19315 * s/sol2-5.h:
19316 * s/freebsd.h:
19317 * s/darwin.h: Remove dead code.
19318
19319 * m/template.h:
19320 * m/sparc.h:
19321 * m/mips.h:
19322 * m/m68k.h:
19323 * m/iris4d.h:
19324 * m/intel386.h:
19325 * m/ibms390x.h:
19326 * m/ibms390.h:
19327 * m/ia64.h:
19328 * m/hp800.h:
19329 * m/arm.h:
19330 * m/amdx86-64.h: Remove dead code and references to unused
19331 and compiler defined symbols.
19332
19333 * unexmips.c:
19334 * unexelf.c: Remove references to desupported systems.
19335
19336 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19337
19338 * m/powermac.h: Remove boilerplate comments.
19339 (NO_REMAP): Remove unused definition.
19340
19341 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19342 define them.
19343
19344 2008-07-10 Kenichi Handa <handa@m17n.org>
19345
19346 * xfont.c (xfont_open): Log the reason of failure.
19347
19348 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19349
19350 * fontset.c (fontset_get_font_group):
19351 * font.c (font_check_otf): Specify argument types.
19352
19353 2008-07-09 Kenichi Handa <handa@m17n.org>
19354
19355 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19356 non-ASCII char is found.
19357
19358 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19359 (reorder_font_vector): Change the arg preferred_family to font.
19360 Prefer the spec matching with font.
19361 (fontset_get_font_group): New function.
19362 (fontset_find_font): Change the format of an element of a realized
19363 fontset. Use fontset_get_font_group.
19364 (fontset_font): Try the current fontset, the default fontset, the
19365 fallbacks of the current fontset, and the fallbacks of the default
19366 fontset in this order.
19367 (face_for_char): Delete the shortcut to use the current font.
19368 (fontset_from_font): Don't set fonts for Latin in the fontset.
19369
19370 * font.h (font_make_object, font_match_p): Adjust prototypes.
19371
19372 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19373
19374 * font.c (font_make_object): New arg entity and pixelsize.
19375 (font_check_otf_features, font_check_otf): New functions.
19376 (font_match_p): Check :lang, :script, and :otf properties.
19377
19378 * xfont.c (xfont_open): Adjust it for the change of
19379 font_make_object.
19380 (xfont_text_extents): Fix initial setting of metrics.
19381
19382 * ftfont.c (struct ftfont_info): New member index, delete member
19383 fc_charset_idx. Make the member order compatible with struct
19384 xftfont_info.
19385 (fc_charset_table): Change charset names to registry names.
19386 (ftfont_pattern_entity): Delete the args registry and
19387 fc_charset_idx. Change the value of :font-entity property
19388 to (FONTNAME . INDEX). Always set :registry property to
19389 `iso10646-1'.
19390 (struct ftfont_cache_data): New struct.
19391 (ftfont_lookup_cache): New arg for_face.
19392 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19393 (ftfont_driver): Set the member otf_capability.
19394 (ftfont_get_charset): Adjust it for the change of
19395 fc_charset_table.
19396 (OTF_TAG_SYM): New macro.
19397 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19398 for the change of fc_charset_table.
19399 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19400 ftfont_pattern_entity. Add FC_INDEX to objset.
19401 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19402 and ftfont_pattern_entity.
19403 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19404 font_make_object, struct ftfont_info.
19405 (ftfont_has_char): Use ftfont_get_fc_charset.
19406 (ftfont_otf_features, ftfont_otf_capability): New functions.
19407 (ftfont_shape): Use ftfont_get_otf.
19408 (ftfont_text_extents): Fix initial setting of metrics.
19409
19410 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19411 member order compatible with struct ftfont_info.
19412 (xftfont_open): Add FC_CHARSET to the pattern.
19413 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
19414 properties if appropriate.
19415 (xftfont_close): Unlock the face.
19416 (xftfont_anchor_point, xftfont_shape): Deleted.
19417 (syms_of_xftfont): Don't set members anchor_point and shape of
19418 xftfont_driver.
19419
19420 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19421 font_make_object.
19422
19423 * w32font.c (w32font_open): Adjust it for the change of
19424 font_make_object.
19425 (w32font_open_internal): Don't set properties of font_object here.
19426
19427 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
19428
19429 * macfns.c (x_create_tip_frame):
19430 * w32fns.c (x_create_tip_frame):
19431 * xfns.c (x_create_tip_frame): Pass parameter argument to
19432 face-set-after-frame-default.
19433
19434 * xfaces.c (Finternal_merge_in_global_face): Save merged
19435 attributes for the default face back into the face vector.
19436
19437 2008-07-08 Andreas Schwab <schwab@suse.de>
19438
19439 * fontset.h: Declare fontset_from_font. Don't declare
19440 new_fontset_from_font and fontset_from_font_name.
19441 * xterm.c: Include "fontset.h".
19442 * Makefile.in (xterm.o): Update dependencies.
19443
19444 2008-07-08 Glenn Morris <rgm@gnu.org>
19445
19446 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19447 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19448
19449 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
19450
19451 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19452 (x_set_frame_parameters): Don't bind it.
19453
19454 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
19455
19456 * w32fns.c (map_w32_filename): Declare extern.
19457
19458 2008-07-07 Jason Rumney <jasonr@gnu.org>
19459
19460 * w32term.c (WS_EX_LAYERED): Define if not already.
19461
19462 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
19463
19464 * xfaces.c (set_font_frame_param): Don't try to set the font
19465 parameter if it is still unspecified in the lface.
19466
19467 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19468
19469 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19470 face if it didn't already exist.
19471
19472 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19473
19474 2008-07-05 Andreas Schwab <schwab@suse.de>
19475
19476 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19477
19478 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19479
19480 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19481 word-wrapping.
19482 (IT_DISPLAYING_WHITESPACE): New macro.
19483 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19484 when word-wrapping. Simplify word-wrapping logic. Use correct
19485 pixel positions when saving copies of the iterator.
19486 (display_line): Use proper wrap point if the last character on a
19487 line was preceded by whitespace.
19488
19489 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19490
19491 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19492
19493 2008-07-04 Kenichi Handa <handa@m17n.org>
19494
19495 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19496
19497 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19498
19499 2008-07-02 Jason Rumney <jasonr@gnu.org>
19500
19501 * xfns.c (syms_of_xfns): Only define x-select-font when both
19502 HAVE_FREETYPE and USE_GTK.
19503
19504 * xdisp.c (next_element_from_display_vector): Move assignment out
19505 of if statement.
19506
19507 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19508
19509 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19510
19511 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19512 (syms_of_fileio): Initialize and export them.
19513 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19514
19515 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19516 (Fsystem_move_file_to_trash): New function.
19517 (syms_of_w32fns): Export it to lisp.
19518
19519 2008-07-01 Jason Rumney <jasonr@gnu.org>
19520
19521 * w32font.c (w32font_text_extents): Don't count overhang as part
19522 of width.
19523
19524 2008-06-30 Miles Bader <miles@gnu.org>
19525
19526 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19527 Add `avoid_cursor_p' field.
19528
19529 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19530 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19531 (append_glyph, append_composite_glyph, produce_image_glyph)
19532 (append_stretch_glyph): Initialize avoid_cursor_p.
19533 (get_it_property): Rename from `get_line_height_property'.
19534 (x_produce_glyphs): Use get_it_property.
19535 (handle_line_prefix, push_display_prop): New functions.
19536 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19537 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19538 New variables.
19539 (syms_of_xdisp): Initialize them.
19540
19541 2008-06-30 Kenichi Handa <handa@m17n.org>
19542
19543 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19544 XftDefaultSubstitute (they are called in XftFontMatch).
19545 (xftfont_open): Fix args to ftfont_font_format.
19546
19547 * ftfont.c (fc_charset_table): New member lang.
19548 (ftfont_resolve_generic_family): New arg pattern.
19549 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19550 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19551 (ftfont_open): Fix args to ftfont_font_format.
19552 (ftfont_font_format): New arg filename.
19553
19554 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
19555
19556 * xfaces.c (Finternal_merge_in_global_face): If default face was
19557 modified, realize it again. Update the font face attribute.
19558
19559 2008-06-29 Jason Rumney <jasonr@gnu.org>
19560
19561 * w32term.c (x_set_frame_alpha): Fix logic.
19562
19563 2008-06-29 Kenichi Handa <handa@m17n.org>
19564
19565 * fontset.c (Finternal_char_font): Return font-object instead of
19566 font-name.
19567
19568 * composite.c (get_composition_id): Fix the width calculation for TAB.
19569
19570 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19571
19572 * indent.c (Fvertical_motion): Properly handle float column arg.
19573
19574 2008-06-28 Jason Rumney <jasonr@gnu.org>
19575
19576 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19577 (pfnSetLayeredWindowAttributes): New function pointer.
19578 (w32_initialize): Initialize it when supported.
19579 (x_set_frame_alpha): New function.
19580
19581 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19582 (w32_frame_parm_handlers): Set alpha handler.
19583
19584 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19585
19586 2008-06-27 Jason Rumney <jasonr@gnu.org>
19587
19588 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19589 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19590 (w32_to_x_charset, x_to_w32_charset)
19591 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19592 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19593 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19594 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19595 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19596 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19597 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19598 (Qw32_charset_unicode): Remove.
19599 (syms_of_w32fns): Update for above changes.
19600
19601 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19602 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19603 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19604 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19605 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19606 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19607 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19608 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19609 (syms_of_w32font): Update for above changes.
19610
19611 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19612
19613 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19614 removed #if.
19615 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19616
19617 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19618 Eli Zaretskii <eliz@gnu.org>
19619
19620 * makefile.w32-in (LOCAL_FLAGS):
19621 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19622
19623 * sysdep.c (_spawnlp, _getpid):
19624 Declare with explicit _cdecl instead of _CRTAPI1.
19625
19626 * editfns.c (Fget_internal_run_time):
19627 Check for WINDOWSNT with #ifdef, not #if.
19628
19629 2008-06-26 Jason Rumney <jasonr@gnu.org>
19630
19631 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19632
19633 * w32term.c (x_draw_glyph_string_foreground)
19634 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19635 Use FONT_HANDLE macro.
19636 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19637
19638 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19639 (uniscribe_encode_char): Use FONT_HANDLE macro.
19640
19641 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19642 (w32font_text_extents): Use precast w32_font.
19643 (w32font_close): Free cached metrics.
19644 (w32font_open_internal): Allocate space for name on stack.
19645
19646 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
19647
19648 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19649
19650 2008-06-26 Jason Rumney <jasonr@gnu.org>
19651
19652 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19653 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19654
19655 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19656
19657 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19658
19659 2008-06-26 Jason Rumney <jasonr@gnu.org>
19660
19661 * w32bdf.c, w32bdf.h: Remove obsolete files.
19662
19663 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19664
19665 * w32gui.h: Don't include w32bdf.h.
19666 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19667 Remove obsolete font support.
19668
19669 * w32font.h (struct w32font_info): Remove compat_w32_font.
19670 Add hfont member.
19671 (FONT_COMPAT): Remove obsolete macro.
19672
19673 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19674 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19675 (w32font_open_internal): Remove compat code. Set new hfont member.
19676 (Fx_select_font): Use new hfont member.
19677
19678 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19679 (uniscribe_encode_char): Use new hfont member.
19680
19681 * w32term.c (x_draw_glyph_string_foreground)
19682 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19683 (x_draw_glyph_string): Use metrics in w32font_info.
19684
19685 2008-06-26 Kenichi Handa <handa@m17n.org>
19686
19687 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19688
19689 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19690
19691 * unexnext.c:
19692 * m/ews4800.h:
19693 * m/hp9000s300.h:
19694 * m/ibm370aix.h:
19695 * m/mips-siemens.h:
19696 * m/ncr386.h:
19697 * m/next.h:
19698 * m/pmax.h:
19699 * m/powerpcle.h:
19700 * m/tandem-s2.h:
19701 * s/386bsd.h:
19702 * s/bsd386.h:
19703 * s/bsd4-1.h:
19704 * s/bsd4-2.h:
19705 * s/bsdos2-1.h:
19706 * s/bsdos2.h:
19707 * s/bsdos3.h:
19708 * s/bsdos4.h:
19709 * s/nextstep.h:
19710 * s/ultrix4-3.h:
19711 * s/usg5-0.h:
19712 * s/usg5-2-2.h:
19713 * s/usg5-2.h:
19714 * s/usg5-4-3.h:
19715 * s/ux4800.h:
19716 * s/uxpds.h:
19717 * s/uxpv.h: Remove support for obsolete systems.
19718 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
19719 Remove, insert contents in s/hpux10-20.h.
19720 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19721 Remove, insert contents in s/aix4-2.h.
19722 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19723 * s/bsd4-3.h: Rename to ...
19724 * s/bsd-common.h: ... this.
19725 * data.c:
19726 * doc.c:
19727 * ecrt0.c:
19728 * emacs.c:
19729 * fileio.c:
19730 * floatfns.c:
19731 * keyboard.c:
19732 * mem-limits.h:
19733 * print.c:
19734 * process.c:
19735 * sysdep.c:
19736 * syssignal.h:
19737 * systty.h:
19738 * syswait.h:
19739 * term.c:
19740 * unexec.c:
19741 * unexelf.c:
19742 * unexhp9k800.c:
19743 * m/hp800.h:
19744 * m/ibmrs6000.h:
19745 * m/mips.h:
19746 * m/vax.h:
19747 * s/darwin.h:
19748 * s/freebsd.h:
19749 * s/gnu.h:
19750 * s/ms-w32.h:
19751 * s/msdos.h:
19752 * s/netbsd.h:
19753 * s/template.h: Remove references to obsolete variables.
19754
19755 * Makefile.in: Add dependencies for all unexec files.
19756 (admindir): Remove unused variable.
19757 (UNEXEC_SRC): Remove references.
19758
19759 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
19760
19761 * xfns.c (x_default_font_parameter): If Xft is available, first
19762 try Monospace-12 for the default font.
19763
19764 2008-06-25 Jason Rumney <jasonr@gnu.org>
19765
19766 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19767
19768 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19769
19770 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19771
19772 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19773
19774 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
19775
19776 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19777 <scroll-conservatively>: Fix typo in docstring.
19778
19779 * xselect.c (Fx_send_client_event): Doc fix.
19780
19781 2008-06-25 Kenichi Handa <handa@m17n.org>
19782
19783 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19784
19785 * font.c (font_parse_fcname): Remove unused variables.
19786 (font_sort_entites): Delete the arg SPEC. Caller changed.
19787 Fix for the case of ! best_only.
19788 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19789
19790 * lisp.h (Fstring_to_unibyte): EXFUN it.
19791
19792 * character.h (str_to_unibyte): Extern it.
19793
19794 * character.c (str_to_unibyte): New function.
19795
19796 * fns.c (Fstring_to_unibyte): New function.
19797 (syms_of_fns): Defsubr it.
19798
19799 2008-06-24 Kenichi Handa <handa@m17n.org>
19800
19801 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19802 DPI too.
19803 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19804
19805 2008-06-24 Andreas Schwab <schwab@suse.de>
19806
19807 * Makefile.in (${lispsource}loaddefs.el): Rename from
19808 ../lisp/loaddefs.el.
19809 (bootstrap-clean): Do what distclean does but don't remove
19810 Makefile.
19811 (distclean): Depend on bootstrap-clean and remove Makefile.
19812
19813 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
19814
19815 * buffer.h (struct buffer): New member word_wrap.
19816
19817 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19818 word-wrap.
19819 (init_buffer_once): Initialize them.
19820
19821 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19822 line_wrap enum possessing three possible values.
19823
19824 * termopts.h: Replace truncate_partial_width_windows with
19825 Vtruncate_partial_width_windows.
19826
19827 * dispnew.c (direct_output_for_insert): Avoid direct output when
19828 inserting a space with word wrap on.
19829
19830 * indent.c (compute_motion): Obey integer values of
19831 truncate-partial-width-windows.
19832
19833 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19834 replacing truncate_partial_width_windows.
19835 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19836 truncate only if the window width is below that integer.
19837 (start_display, resize_mini_window, produce_stretch_glyph)
19838 (display_string, move_it_in_display_line_to): Use line_wrap.
19839 (back_to_previous_visible_line_start, reseat_1):
19840 Reset string_from_display_prop_p.
19841 (display_line): Extend default face to end of line when wrapping.
19842
19843 2008-06-24 Kim F. Storm <storm@cua.dk>
19844
19845 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19846 to wrap continued lines at word boundaries.
19847
19848 2008-06-24 Jason Rumney <jasonr@gnu.org>
19849
19850 * font.c (Ffont_face_attributes): Multiply pixel size before point
19851 conversion to avoid multiplying rounding error.
19852
19853 2008-06-23 Jason Rumney <jasonr@gnu.org>
19854
19855 * w32term.c (x_draw_glyph_string_background)
19856 (x_draw_glyph_string): Remove old bdf font code.
19857
19858 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19859
19860 2008-06-22 Kenichi Handa <handa@m17n.org>
19861
19862 * font.c (font_find_for_lface): Try the adstyle specified in
19863 the property of LFACE_FONT of LFACE (if any).
19864
19865 2008-06-21 Seiji Zenitani <zenitani@mac.com>
19866 Ryo Yoshitake <ryo@shiftmode.net>
19867
19868 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19869
19870 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19871
19872 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19873 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19874 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19875 (witness-emacs): Remove.
19876 (lisp, shortlisp): Move loaddefs.el earlier.
19877 (mostlyclean): Forget about witness-emacs.
19878
19879 2008-06-22 Glenn Morris <rgm@gnu.org>
19880
19881 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19882 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19883
19884 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19885
19886 * Makefile.in (PRECOMP): Remove.
19887 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19888 (witness-emacs): Run `compile-first'.
19889 (.el.elc): Use the new compile-onefile target.
19890
19891 2008-06-21 Kenichi Handa <handa@m17n.org>
19892
19893 * xftfont.c (xftfont_open): Handle QCembolden only when
19894 FC_EMBOLDEN is defined.
19895
19896 2008-06-21 Andreas Schwab <schwab@suse.de>
19897
19898 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19899 (.el.elc): Likewise.
19900
19901 2008-06-21 Miles Bader <miles@gnu.org>
19902
19903 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19904 build dir, not the lisp source dir.
19905
19906 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19907
19908 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19909 (bootstrapclean): Remove.
19910 (.el.elc): New rule.
19911 (PRECOMP): New var.
19912 (../lisp/subdirs.el): Remove.
19913 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19914 (witness-emacs): New target.
19915 (mostlyclean): Remove witness-emacs as well.
19916 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19917 Add witness-emacs dependency.
19918
19919 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
19920
19921 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19922 defined by the font.
19923
19924 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19925
19926 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19927 (bootstrap-clean): New target that keeps TAGS around.
19928 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19929 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19930
19931 2008-06-20 Jason Rumney <jasonr@gnu.org>
19932
19933 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19934 Remove obsolete font code.
19935
19936 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19937 to determine language support.
19938
19939 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19940
19941 * sysdep.c (cfsetspeed): New fun extracted from the code.
19942 (cfmakeraw): Move before first use.
19943
19944 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19945
19946 * sysdep.c (cfmakeraw): Provide fallback implementation.
19947 (serial_configure): Provide fallback implementation of cfsetspeed.
19948
19949 2008-06-20 Kenichi Handa <handa@m17n.org>
19950
19951 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19952 the pattern.
19953
19954 * fontset.c (fontset_from_font): Copy font_spec before changing
19955 the elements.
19956
19957 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19958
19959 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19960
19961 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19962 for explicit `font' parameters.
19963
19964 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19965
19966 2008-06-19 Kenichi Handa <handa@m17n.org>
19967
19968 * frame.c: Include <ctype.h>.
19969 (x_set_font_backend): Allow spacing characters in the X resource
19970 for FontBackend.
19971
19972 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19973
19974 * w32fns.c, xfns.c (Qfont_param): New var.
19975 (syms_of_w32fns): Initialize it.
19976 (x_default_font_parameter): Record explicit `font' into
19977 `font-parameter'.
19978
19979 2008-06-18 Kenichi Handa <handa@m17n.org>
19980
19981 * font.c (font_parse_xlfd): Fix previous change.
19982 (font_parse_fcname): Don't use :fc-unknown-spec.
19983 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19984 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19985 (font_add_log): Prepend the driver name to the resulting fonts.
19986
19987 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19988 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19989 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19990
19991 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19992 (QCembolden): New variables.
19993 (syms_of_xftfont): DEFSYM them.
19994 (xftfont_open): Call XftFontMatch. Don't trust the result of
19995 XftTextExtents8 if the pixel_size is less than 5.
19996
19997 2008-06-18 Andreas Schwab <schwab@suse.de>
19998
19999 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
20000 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
20001
20002 2008-06-18 Jason Rumney <jasonr@gnu.org>
20003
20004 * w32font.c (w32font_list, w32font_match): Add logging.
20005
20006 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
20007
20008 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
20009
20010 * font.c (font_parse_fcname): Store divider characters for
20011 unknown-spec list. For known key symbols, intern using correct
20012 symbol name.
20013
20014 2008-06-17 Kenichi Handa <handa@m17n.org>
20015
20016 * xfaces.c (realize_default_face): If the frame is not on window
20017 system, set the fontset of face to nil.
20018
20019 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20020
20021 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20022
20023 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20024
20025 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20026 (build_font_name_from_vector): Delete externs.
20027
20028 * xfaces.c (struct font_name): Don't declare.
20029
20030 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
20031
20032 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20033
20034 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20035
20036 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20037
20038 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20039
20040 * font.c (Ffont_spec): Fix usage in docstring.
20041 (Ffont_face_attributes): Doc fix.
20042
20043 2008-06-16 Andreas Schwab <schwab@suse.de>
20044
20045 * font.c (Ffont_face_attributes): Fix definition.
20046
20047 2008-06-16 Jason Rumney <jasonr@gnu.org>
20048
20049 * font.h (font_style_symbolic_from_value): Remove.
20050
20051 * font.c (font_style_symbolic_from_value): Remove.
20052 (font_style_symbolic): Revert to pre 2008-06-13 version.
20053
20054 * w32font.c (w32_to_fc_weight): New function.
20055 (w32font_full_name, logfont_to_fcname): Use it.
20056
20057 2008-06-16 Kenichi Handa <handa@m17n.org>
20058
20059 * font.c (font_check_object): Delete it.
20060 (font_clear_cache): Check if a font-object is alive.
20061 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
20062 font-object to nil.
20063 (font_close_object): Don't check FONT_CLOSE_OBJECT.
20064 (font_at): Don't call font_check_object.
20065 (Ffont_get): Return a symbol for :weight, :slant, and :width.
20066
20067 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
20068
20069 * puresize.h (BASE_PURESIZE): Increase to 1230000.
20070
20071 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20072
20073 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20074
20075 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
20076
20077 * font.c (font_parse_fcname): Only one decimal point.
20078 (font_unparse_fcname): Handle data in family and foundry indices
20079 as symbols, not strings.
20080 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20081
20082 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20083
20084 * font.h (font_unparse_gtkname): Add prototype.
20085
20086 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20087
20088 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20089
20090 2008-06-15 Andreas Schwab <schwab@suse.de>
20091
20092 * font.c (font_update_drivers): Fix crash when no drivers match.
20093
20094 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20095
20096 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20097 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20098
20099 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20100
20101 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20102
20103 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20104
20105 * process.c (Fserial_process_configure, Fprocess_send_eof):
20106 Use EQ to compare Lisp_Objects.
20107
20108 2008-06-13 Jason Rumney <jasonr@gnu.org>
20109
20110 * w32fns.c (Fw32_select_font): Remove old font API function.
20111
20112 * w32font.c (logfont_to_fcname): New function.
20113 (Fx_select_font): New font dialog function compatible with
20114 GTK/fontconfig version.
20115
20116 * font.c (font_style_symbolic_from_value): New function.
20117 (font_style_symbolic): Use it.
20118
20119 * font.h (font_style_symbolic_from_value): Declare new function.
20120
20121 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
20122
20123 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20124 <font-width-table>: Fix typos in docstrings.
20125
20126 2008-06-13 Daniel Engeler <engeler@gmail.com>
20127
20128 These changes add serial port access.
20129 * process.c: Add HAVE_SERIAL.
20130 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20131 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20132 (list_processes_1, select_wrapper, Fstop_process)
20133 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20134 (status_notify): Modify to handle serial processes.
20135 [HAVE_SERIAL] (Fserial_process_configure)
20136 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20137 New functions.
20138 * process.h (struct Lisp_Process): Add `type'.
20139 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20140 New functions.
20141 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20142 serial ports.
20143 (serial_open, serial_configure): New functions.
20144 * w32.h: Add FILE_SERIAL.
20145 (struct _child_process): Add ovl_read, ovl_write.
20146
20147 2008-06-13 Kenichi Handa <handa@m17n.org>
20148
20149 * dispextern.h (enum lface_attribute_index): New member
20150 LFACE_FOUNDRY_INDEX.
20151
20152 * font.c (font_score): Delete arg alternate_families. Check only
20153 weight, slant, width, and size. Ignore the difference of alias
20154 style symbols.
20155 (font_sort_entites): Adjust for the above change. Reflect the
20156 order of font-driver to scores.
20157 (font_list_entities): Don't check alternate_familes here.
20158 (font_clear_prop): Handle foundry.
20159 (font_update_lface): Don't parse "foundry-family" form here.
20160 Handle FONT_FOUNDRY_INDEX.
20161 (font_find_for_lface): Likewise. Handle alternate families here.
20162 If registry is nil, try iso8859-1 and ascii-0.
20163 (font_open_for_lface): Pay attention to size in ENTITY.
20164 (font_open_by_name): Simplify by calling font_load_for_lface.
20165 (free_font_driver_list): Delete it.
20166 (font_update_drivers): Preserve the order of backends.
20167 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20168 of font_score and font_sort_entites.
20169 (font_update_sort_order): Likewise.
20170
20171 * xfaces.c (LFACE_FOUNDRY): New macro.
20172 (check_lface_attrs): Check foundry.
20173 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20174 (merge_face_vectors): Check foundry.
20175 (merge_face_ref): Likewise.
20176 (Finternal_set_lisp_face_attribute): Likewise.
20177 (x_update_menu_appearance): Likewise.
20178 (Finternal_get_lisp_face_attribute): Likewise.
20179 (lface_hash): Likewise.
20180 (lface_same_font_attributes_p): Likewise.
20181 (x_supports_face_attributes_p): Likewise.
20182 (tty_supports_face_attributes_p): Likewise.
20183 (Finternal_set_alternative_font_family_alist): Intern strings.
20184 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20185 (realize_default_face): Set LFACE_FOUNDRY (lface).
20186
20187 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20188 font-driver at first.
20189
20190 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20191
20192 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20193
20194 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20195
20196 2008-06-12 Jim Meyering <meyering@redhat.com>
20197
20198 Make unexec_free handle NULL the same way free does.
20199 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20200
20201 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20202
20203 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20204 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20205 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20206 (WEAK_ALIAS): Simplify.
20207 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20208 when searching a unibyte buffer.
20209
20210 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
20211
20212 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20213
20214 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
20215
20216 * w32font.c: Include ctype.h.
20217
20218 2008-06-11 Jason Rumney <jasonr@gnu.org>
20219
20220 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20221 misreported as space.
20222 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20223 as aliases for registry iso10646-1.
20224
20225 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20226
20227 * buffer.c (clone_per_buffer_values): Skip `name'.
20228
20229 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
20230
20231 * font.c (font_parse_fcname): Fix last change; accept decimal
20232 points in font size.
20233
20234 2008-06-10 Jason Rumney <jasonr@gnu.org>
20235
20236 * w32uniscribe.c (add_opentype_font_name_to_list):
20237 Skip non unicode fonts.
20238
20239 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20240
20241 * xfns.c (Fx_font_dialog): New function.
20242
20243 * gtkutil.c (xg_dialog_response_cb): Rename from
20244 xg_file_response_callback.
20245 (pop_down_dialog): Rename from pop_down_file_dialog.
20246 (xg_get_file_name): Callers changed.
20247 (xg_get_font_name): New function.
20248
20249 * gtkutil.h (xg_get_font_name): Insert prototype.
20250
20251 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20252
20253 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20254 x_underline_minimum_display_offset.
20255 (syms_of_xdisp): Declare it here rather than in xterm.c.
20256 * dispextern.h (underline_minimum_offset): Declare it.
20257 * w32term.c (x_draw_glyph_string): Use it.
20258 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20259 (syms_of_xterm): Don't declare it any more.
20260 (x_draw_glyph_string): Adjust to the new name.
20261
20262 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
20263
20264 * xterm.c (x_underline_minimum_display_offset): New var.
20265 (x_draw_glyph_string): Use it.
20266 (syms_of_xterm): Declare it.
20267
20268 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20269
20270 * font.c (font_parse_fcname): Accept GTK-style font names too.
20271
20272 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20273
20274 * dired.c (file_name_completion): Don't return t if the match is exact
20275 but with different capitalization.
20276 * minibuf.c (Ftry_completion): Simplify.
20277
20278 * window.c (Vwindow_point_insertion_type): New var.
20279 (set_window_buffer): Use it.
20280 (syms_of_window): Init and export it to Lisp.
20281
20282 2008-06-10 Kenichi Handa <handa@m17n.org>
20283
20284 * font.h (font_intern_prop): Prototype adjusted.
20285
20286 * font.c (font_intern_prop): New arg force_symbol.
20287 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20288 Adjust for the change of font_intern_prop.
20289
20290 * ftfont.c (ftfont_pattern_entity):
20291 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20292 (w32_registry):
20293 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20294 the change of font_intern_prop.
20295
20296 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
20297
20298 * w32menu.c (digest_single_submenu): Declare extern.
20299
20300 2008-06-09 Jason Rumney <jasonr@gnu.org>
20301
20302 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20303
20304 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20305 (parse_single_submenu): Remove.
20306 (digest_single_submenu): Remove.
20307 (syms_of_w32menu): Don't initialise variables that have moved
20308 to menu.c.
20309 (set_frame_menubar): Sync with version in xmenu.c.
20310 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20311
20312 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20313 Make static again.
20314
20315 2008-06-09 Jason Rumney <jasonr@gnu.org>
20316
20317 Changes to w32 files related to the move of common menu code
20318 to menu.c on 2008-06-08 by Chong Yidong.
20319
20320 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20321 defs to w32gui.h.
20322 (single_keymap_panes, push_menu_item, push_menu_pane):
20323 Make globally visible.
20324
20325 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20326 (local_free, malloc_widget_value, free_widget_value)
20327 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20328 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20329 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20330 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20331 (menu_items, menu_items_allocated, menu_items_used)
20332 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20333 (init_menu_items, finish_menu_items, discard_menu_items)
20334 (grow_menu_items, push_submenu_start, push_submenu_end)
20335 (push_left_right_boundary, push_menu_pane, push_menu_item)
20336 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20337 (free_menubar_widget_tree_value, parse_single_submenu)
20338 (update_submenu_strings): Remove functions.
20339 (xmalloc_widget_value): Remove and declare extern.
20340
20341 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20342 (OBJ1): Build it.
20343
20344 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20345 (local_heap, local_alloc, local_free, malloc_widget_value)
20346 (free_widget_value): Define here.
20347
20348 2008-06-09 Kenichi Handa <handa@m17n.org>
20349
20350 * font.h (Qascii_0): Extern it.
20351
20352 * font.c (Qascii_0): New variable.
20353 (syms_of_font): DEFSYM it.
20354 (font_open_by_name): If the registry "iso8859-1" fails, try also
20355 "ascii-0".
20356
20357 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20358
20359 2008-06-08 Kenichi Handa <handa@m17n.org>
20360
20361 * .gdbinit (xfont): New command.
20362
20363 2008-06-08 Andreas Schwab <schwab@suse.de>
20364
20365 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20366 * Makefile.in (menu.o): Update dependencies.
20367
20368 * Makefile.in (obj): Always add menu.o.
20369 * emacs.c (main): Always call syms_of_menu.
20370 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20371
20372 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
20373
20374 * Makefile.in: Compile menu.c.
20375
20376 * lisp.h: Declare syms_of_menu.
20377
20378 * emacs.c (main): Call syms_of_menu.
20379
20380 * keyboard.h: Relocate platform-independent menu definitions from
20381 xmenu.c.
20382
20383 * menu.c: New file. Relocate platform-independent menu
20384 definitions from xmenu.c. Suggested by Adrian Robert.
20385
20386 * xmenu.c: Remove platform-independent menu definitions.
20387 (menu_items, menu_items_inuse, menu_items_allocated)
20388 (menu_items_used, menu_items_n_panes)
20389 (menu_items_submenu_depth): Move to keyboard.h.
20390 (init_menu_items, finish_menu_items, unuse_menu_items)
20391 (discard_menu_items, restore_menu_items, save_menu_items)
20392 (grow_menu_items, push_submenu_start, push_submenu_end)
20393 (push_left_right_boundary, push_menu_pane, push_menu_item)
20394 (keymap_panes, single_keymap_panes, single_menu_item)
20395 (list_of_panes, list_of_items, find_and_call_menu_selection)
20396 (xmalloc_widget_value, free_menubar_widget_value_tree)
20397 (parse_single_submenu, digest_single_submenu)
20398 (update_submenu_strings): Move to menu.c.
20399
20400 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20401
20402 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20403
20404 2008-06-06 Miles Bader <miles@gnu.org>
20405
20406 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20407 face, not frame default.
20408
20409 2008-06-05 Martin Rudalics <rudalics@gmx.at>
20410
20411 * window.c (pop_up_windows, pop_up_frames)
20412 (display_buffer_reuse_frames, Vpop_up_frame_function)
20413 (Vdisplay_buffer_function, Veven_window_heights)
20414 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20415 (Vspecial_display_function, Vsame_window_buffer_names)
20416 (Vsame_window_regexps, split_height_threshold)
20417 (Vsplit_window_preferred_function): Move those vars to window.el.
20418 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20419 (Fdisplay_buffer): Move those functions to window.el.
20420 (syms_of_window): Remove corresponding declarations.
20421 (display_buffer): New function.
20422 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20423 * dispnew.c (Flast_nonminibuf_frame): New function.
20424 * buffer.c (Fpop_to_buffer): Move to window.el.
20425
20426 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20427
20428 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20429
20430 2008-06-05 Kenichi Handa <handa@m17n.org>
20431
20432 * coding.c (detect_coding): Fix previous change.
20433 (detect_coding_system): Likewise.
20434
20435 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20436
20437 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20438
20439 * keymap.c (Vminibuffer_local_filename_must_match_map):
20440 Rename from Vminibuffer_local_must_match_filename_map.
20441 (syms_of_keymap):
20442 * minibuf.c (Fcompleting_read): Adjust accordingly.
20443 * commands.h: Rename declaration as well.
20444
20445 2008-06-05 Kenichi Handa <handa@m17n.org>
20446
20447 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20448 family name.
20449 (Ffont_put): Likewise.
20450
20451 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20452 current font-spec.
20453
20454 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20455 is unspecified.
20456
20457 * xfaces.c (realize_x_face): If the font-related face attributes
20458 are the same as those of default face, realize a new fontset from
20459 default->fontset.
20460 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20461
20462 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20463
20464 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20465 (move_it_in_display_line): New wrapper.
20466
20467 * window.c (window_scroll_pixel_based_preserve_x)
20468 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20469 (window_scroll_pixel_based, window_scroll_line_based):
20470 Use them to preserve column positions.
20471 (syms_of_window): Initialize them.
20472
20473 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20474 (HPOS . VPOS) pair.
20475
20476 * dispextern.h (move_it_in_display_line): Declare.
20477
20478 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
20479
20480 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20481 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20482 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20483
20484 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
20485
20486 * window.c (Fset_window_parameter): Doc fix.
20487 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20488
20489 2008-06-04 Joakim Verona <joakim@verona.se>
20490
20491 * window.h (struct window): Add new member window_parameters.
20492
20493 * window.c (Fwindow_parameters, Fwindow_parameter)
20494 (Fset_window_parameter): New defuns.
20495 (syms_of_window): Defsubr the new defuns.
20496 (make_window): Initialize window_parameters to nil.
20497
20498 2008-06-04 John Paul Wallington <jpw@pobox.com>
20499
20500 * eval.c (Fdefmacro): Doc fix.
20501
20502 2008-06-04 Kenichi Handa <handa@m17n.org>
20503
20504 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20505 Be sure to call setup_coding_system when we find a proper coding system.
20506 (detect_coding_system): Fix handling of coding->head_ascii.
20507
20508 2008-06-03 Andreas Schwab <schwab@suse.de>
20509
20510 * font.c (font_prop_validate_spacing): Fix last change.
20511
20512 2008-06-03 Kenichi Handa <handa@m17n.org>
20513
20514 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20515 (font_parse_fcname): Fix handling of unknown key.
20516
20517 * xfont.c (xfont_list): Try an alias.
20518
20519 * charset.c (char_charset): Return NULL if the arg charset_list is
20520 specified and C doesn't belong to any of them.
20521
20522 2008-06-02 Chip Coldwell <coldwell@redhat.com>
20523
20524 * font.c (font_pixel_size): Don't take cdr of an integer.
20525
20526 2008-06-02 Jim Meyering <meyering@redhat.com>
20527
20528 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20529 * alloc.c (xfree): Return right away for a NULL arg.
20530 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20531 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20532 * mac.c (create_apple_event_from_event_ref): Likewise.
20533 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20534 Likewise.
20535 * doprnt.c (doprnt1): Likewise.
20536 * frame.c (frame): Likewise.
20537 * keyboard.c (wipe_kboard): Likewise.
20538 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20539 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20540 * term.c (tty_default_color_capabilities, maybe_fatal)
20541 (delete_tty): Likewise.
20542 * w16select.c (string): Likewise.
20543 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20544 * w32bdf.c (w32_free_bdf_font): Likewise.
20545 * w32fns.c (w32_unload_font): Likewise.
20546 * w32font.c (w32font_close): Likewise.
20547 * window.c (size_window): Likewise.
20548 * xselect.c (receive_incremental_selection): Likewise.
20549 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20550 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20551 * w32.c (stat): Likewise.
20552
20553 Remove useless if-before-free tests.
20554 * editfns.c (Fset_time_zone_rule): Likewise.
20555 * lread.c (nosuffix): Likewise.
20556 * ralloc.c (get_bloc): Likewise.
20557 * regex.c (reg_free): Likewise.
20558 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20559 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20560 * xsmfns.c (smc_save_yourself_CB): Likewise.
20561
20562 2008-06-02 Kenichi Handa <handa@m17n.org>
20563
20564 * font.c (font_find_for_lface): Handle float font size.
20565 (font_open_for_lface): Likewise.
20566
20567 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20568 comparing the properties.
20569
20570 2008-06-01 Jason Rumney <jasonr@gnu.org>
20571
20572 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20573 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20574 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20575 Don't add empty script list.
20576 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20577
20578 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20579
20580 * Makefile.in (dot, dotdot): Remove, update users.
20581 ".." has been used elsewhere in the file for a long time.
20582 (LIBXT_STATIC): Remove conditional based on unused variable.
20583
20584 2008-06-01 Miles Bader <miles@gnu.org>
20585
20586 * xfaces.c (Vface_remapping_alist): New variable.
20587 (syms_of_xfaces): Initialize it.
20588 (enum named_merge_point_kind): New type.
20589 (struct named_merge_point): Add `named_merge_point_kind' field.
20590 (push_named_merge_point): Make cycle detection respect different
20591 named-merge-point kinds.
20592 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20593 Remove face-name alias resolution.
20594 (lface_from_face_name): New definition using
20595 `lface_from_face_name_no_resolve'.
20596 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20597 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20598 (get_lface_attributes): New definition that layers face-remapping on
20599 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20600 (lookup_basic_face): New function.
20601 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20602 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20603 `get_lface_attributes'.
20604 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20605 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20606 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20607
20608 * xdisp.c (init_iterator): Pass base_face_id through
20609 `lookup_basic_face' when we actually use it as a face-id.
20610 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20611 DEFAULT_FACE_ID.
20612
20613 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20614 lookup the initial face-id.
20615
20616 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20617
20618 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
20619
20620 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20621 (Fremove_text_properties): Fix typos in docstrings.
20622
20623 2008-05-31 Kenichi Handa <handa@m17n.org>
20624
20625 * font.c (font_list_entities): Fix the car part of data to be
20626 stored in the cache.
20627
20628 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20629
20630 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20631
20632 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20633 Add a `test' argument so another predicate than `equal' can be used.
20634 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20635 (map_char_table): Remove unused vars `c' and `i'.
20636 * lisp.h (Foptimize_char_table): Adjust declaration.
20637 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20638
20639 2008-05-30 Kenichi Handa <handa@m17n.org>
20640
20641 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20642 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20643 defined.
20644
20645 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20646
20647 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20648 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20649 frame-local settings for the same variable.
20650
20651 2008-05-30 Kenichi Handa <handa@m17n.org>
20652
20653 * fontset.c (Ffont_info): Move to font.c.
20654 (syms_of_fontset): Delete defsubr of Sfont_info.
20655
20656 * font.c (font_style_to_value, font_score): Delete casting of the
20657 args to xstcasecmp.
20658 (register_font_driver): Increment num_font_drivers only when
20659 registering the driver globally.
20660 (Ffont_info): Move from fontset.c. Handle a font object too.
20661 (syms_of_font): Defsubr Sfont_info.
20662
20663 2008-05-29 Kenichi Handa <handa@m17n.org>
20664
20665 * coding.h (enum define_coding_utf8_arg_index): New enum.
20666 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20667 coding_attr_utf_bom.
20668 (enum utf_bom_type): Rename from utf_16_bom_type.
20669 (struct utf_16_spec): Adjust for the above change.
20670 (struct coding_system): Add utf_8_bom in `spec' union.
20671
20672 * coding.c (CODING_UTF_8_BOM): New macro.
20673 (enum coding_category): Delete coding_category_utf_8, add
20674 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20675 coding_category_utf_8_sig.
20676 (CATEGORY_MASK_UTF_8): Delete it.
20677 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20678 (CATEGORY_MASK_UTF_8_SIG): New macros.
20679 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20680 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20681 CATEGORY_MASK_UTF_8_SIG.
20682 (CATEGORY_MASK_UTF_8): New macro.
20683 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20684 (detect_coding_utf_8): Check BOM.
20685 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20686 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20687 (encode_coding_utf_16): Likewise.
20688 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20689 (detect_coding, detect_coding_system): Handle utf-8-auto.
20690 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20691 (syms_of_coding): Fix setting up of Vcoding_category_table.
20692
20693 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20694
20695 * process.c (Faccept_process_output): If `millisec' is non-nil,
20696 `seconds' default to 0.
20697 (wait_reading_process_output): Also return non-nil if we read output
20698 from a non-running process.
20699
20700 2008-05-29 Jason Rumney <jasonr@gnu.org>
20701
20702 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20703 `raster' specified.
20704 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20705 in the uniscribe backend, but disallow any font that has no
20706 unicode subrange support.
20707
20708 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
20709
20710 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20711 Fix typos in docstrings.
20712
20713 2008-05-29 Kenichi Handa <handa@m17n.org>
20714
20715 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20716 (Fx_family_fonts): Set frame correctly.
20717
20718 2008-05-28 Jason Rumney <jasonr@gnu.org>
20719
20720 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20721
20722 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20723
20724 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20725 calling build_annotations.
20726
20727 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
20728
20729 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20730 (Fencode_coding_string):
20731 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20732 <latin-extra-code-table>: Fix typos in docstrings.
20733 (syms_of_coding) <coding-system-alist>: Doc fix.
20734 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20735
20736 2008-05-28 Kenichi Handa <handa@m17n.org>
20737
20738 * fontset.c (Ffont_info): Don't call font_close_object.
20739
20740 * font.c (font_parse_family_registry): Use Ffont_put to validate
20741 foundry and family.
20742 (font_delete_unmatched): Don't check spacing.
20743 (font_list_entities): Add spacing to the spec to list fonts.
20744
20745 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20746 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20747
20748 * coding.c (encode_coding_raw_text): Fix previous change.
20749 (encode_coding_object): When the dst_object is a buffer and is
20750 different from src_object, move gap to PT.
20751
20752 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20753
20754 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20755
20756 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20757
20758 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20759 all branches. Compute it differently.
20760
20761 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20762
20763 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
20764
20765 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20766 into "else if () ... else ...".
20767
20768 2008-05-27 Jason Rumney <jasonr@gnu.org>
20769
20770 * w32font.c (w32font_open_internal): Determine if glyph indices
20771 are likely to work here.
20772
20773 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20774
20775 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20776 draw overlap glyphs with appropriate highlighting.
20777
20778 2008-05-27 Kenichi Handa <handa@m17n.org>
20779
20780 * xfont.c (xfont_open): Fix calculation of font->average_width.
20781
20782 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20783
20784 * casefiddle.c (casify_object): Try to guess better whether the
20785 argument is a byte or a char.
20786
20787 2008-05-26 Andreas Schwab <schwab@suse.de>
20788
20789 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20790 Always send multiples of format size.
20791
20792 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20793
20794 2008-05-26 Jason Rumney <jasonr@gnu.org>
20795
20796 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20797 (compute_metrics): Don't set failure if we just cleared the cache.
20798 (w32_weight_table): Remove unused variable.
20799 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20800 backwards compatibility.
20801
20802 2008-05-25 Kenichi Handa <handa@m17n.org>
20803
20804 * w32term.c (x_draw_glyph_string):
20805 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20806
20807 * xfaces.c: Delete unused function prototypes.
20808 (xstrlwr, font_frame): Delete them.
20809 (clear_face_cache): Delete unused variable.
20810
20811 * xftfont.c (xftfont_open): Delete unused variable.
20812 If underline_thickness is not 1, adjust underline_position.
20813
20814 * ftxfont.c (ftxfont_open): Delete unused variable.
20815
20816 * fontset.c (face_for_char): Optimize for the case of no charset
20817 property.
20818
20819 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20820 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20821 (otf_open, font_otf_capability, generate_otf_features)
20822 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20823 Comment out by surrounding "#if 0" and "#endif" for the moment.
20824 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20825 (syms_of_font): Codes for accessing above commented out.
20826
20827 2008-05-24 Eli Zaretskii <eliz@gnu.org>
20828
20829 * w32proc.c: Include dispextern.h.
20830
20831 * w32.c: Include dispextern.h.
20832
20833 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
20834
20835 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20836 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20837 Fix typos in docstrings.
20838
20839 2008-05-23 Jason Rumney <jasonr@gnu.org>
20840
20841 * xsmfns.c: Remove includes that are already included by config.h.
20842
20843 2008-05-23 Kenichi Handa <handa@m17n.org>
20844
20845 * charset.c (Qemacs, charset_emacs): New variables.
20846 (char_charset): Fix for non-Unicode characters.
20847 (syms_of_charset): Define charset_emacs.
20848
20849 * w32term.c (x_draw_glyph_string): Be sure to update
20850 s->underline_thickness and s->underline_position. Be sure to draw
20851 underline within the current line area.
20852
20853 * xterm.c (x_draw_glyph_string): Be sure to update
20854 s->underline_thickness and s->underline_position. Be sure to draw
20855 underline within the current line area.
20856
20857 * fontset.c: Delete unused variables and add casting for char *
20858 throughout the file.
20859 (fontset_font): Try the fallback fonts of the current fontset
20860 before consulting the default fontset.
20861
20862 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20863
20864 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20865
20866 2008-05-22 Jason Rumney <jasonr@gnu.org>
20867
20868 * font.c: Don't include strings.h.
20869
20870 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20871
20872 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20873 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20874 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20875 to call xstrcasecmp.
20876
20877 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20878
20879 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20880
20881 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20882
20883 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20884
20885 2008-05-22 Kenichi Handa <handa@m17n.org>
20886
20887 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20888
20889 * font.c (font_prop_validate_style): Adjust for the format
20890 change of font_style_table.
20891
20892 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20893 two args.
20894
20895 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20896 two args.
20897
20898 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20899
20900 * minibuf.c (keys_of_minibuf): Delete.
20901 * lisp.h (keys_of_minibuf): Delete.
20902 * emacs.c (main): Don't call keys_of_minibuf.
20903
20904 2008-05-22 Kenichi Handa <handa@m17n.org>
20905
20906 * ftfont.c (ftfont_resolve_generic_family): Rename from
20907 ftfont_list_generic_family. Return a single family for each
20908 generic family.
20909 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20910 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20911 Call font_add_log.
20912 (ftfont_match): Call font_add_log.
20913
20914 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20915 (FONT_DEBUG): Define it.
20916 (font_add_log): Extern it.
20917 (font_assert): Rename from xassert.
20918
20919 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20920 (xfont_list_family): Call font_add_log.
20921 (xfont_match): Likewise.
20922 (memq_no_quit): Delete.
20923
20924 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20925 call of Ffont_xlfd_name.
20926
20927 * xfaces.c (struct table_entry, slant_table, weight_table)
20928 (swidth_table): Move to font.c.
20929
20930 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20931 xassert are changed to font_assert. Delete many unused variables.
20932 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20933 New variables.
20934 (struct table_entry): Move from xfaces.c and modified.
20935 (weight_table, slant_table, width_table): Move from xfaces.c and
20936 contents adjusted for the change of struct table_entry.
20937 (font_style_to_value, font_style_symbolic): Adjust for the
20938 format change of font_style_table.
20939 (font_parse_family_registry): Don't overwrite existing foundry and
20940 family of font_spec.
20941 (font_score): Fix calculation of diff for sizes.
20942 (font_sort_entites): Call font_add_log.
20943 (font_delete_unmatched): Return a newly created list.
20944 (font_list_entities): Fix previous change. Call font_add_log.
20945 (font_matching_entity, font_open_entity, font_close_entity):
20946 Call font_add_log.
20947 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20948 (Finternal_set_font_style_table): Delete.
20949 (BUILD_STYLE_TABLE): New macro.
20950 (build_style_table): New function.
20951 (Vfont_log, font_log_env_checked): New variables.
20952 (font_add_log): New function.
20953 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20954 Declare Lisp variables "font-weight-table", "font-slant-table",
20955 "font-width-table", and "font-log". Initialize font_style_table.
20956
20957 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20958
20959 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20960
20961 2008-05-21 Seiji Zenitani <zenitani@mac.com>
20962 Ryo Yoshitake <ryo@shiftmode.net>
20963
20964 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20965 (Vframe_alpha_lower_limit): New variable.
20966 (x_set_alpha): New function.
20967
20968 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20969
20970 * xfns.c (x-create-frame, Qalpha):
20971 Initialize the frame parameter `alpha'.
20972 * xterm.c (OPAQUE, OPACITY): New.
20973 (x_set_frame_alpha): New function.
20974 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20975
20976 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20977 * w32fns.c (w32_frame_parm_handlers): Likewise.
20978
20979 2008-05-20 Jason Rumney <jasonr@gnu.org>
20980
20981 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20982 truetype fonts to opentype list.
20983
20984 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
20985
20986 * fontset.c (Ffontset_info): Doc fix.
20987 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20988 <ignore-relative-composition>: Fix typos in docstrings.
20989
20990 * font.c (syms-of-font) <font-encoding-alist>:
20991 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20992 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20993 (Ffont_otf_alternates): Doc fixes.
20994
20995 2008-05-20 Kenichi Handa <handa@m17n.org>
20996
20997 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20998 font.h through out the file.
20999 (FONT_DRIVERS): Rename from FONTOBJ.
21000 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
21001 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
21002
21003 * emacs.c (main): Call syms_of_font unconditionally.
21004
21005 * font.h (find_font_encoding): Extern it.
21006
21007 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
21008 fontset.c.
21009 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
21010 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
21011 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
21012 only when HAVE_WINDOW_SYSTEM is defined.
21013 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
21014 when HAVE_WINDOW_SYSTEM is defined.
21015
21016 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
21017 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
21018
21019 * xfaces.c: Include font.h unconditionally.
21020 (merge_face_ref, merge_face_vectors)
21021 (Finternal_set_lisp_face_attribute): Cancel the previous change.
21022
21023 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
21024
21025 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21026 indirect_variable.
21027 * eval.c (lisp_indirect_variable): New fun.
21028 (Fuser_variable_p): Use it.
21029
21030 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21031
21032 * lisp.h (indirect_variable):
21033 * data.c (indirect_variable, let_shadows_buffer_binding_p):
21034 Use Lisp_Symbol pointers rather than Lisp_Object.
21035 Adjust callers.
21036 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21037 To this end, change calling-convention.
21038
21039 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21040 if some non-hidden buffers are selected by string&pred.
21041
21042 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
21043
21044 * process.c (wait_reading_process_output): Always check status
21045 when in batch mode.
21046
21047 2008-05-19 Kenichi Handa <handa@m17n.org>
21048
21049 * font.c (font_list_entities): Fix handling of cache.
21050 (font_matching_entity): Likewise.
21051
21052 * ftfont.c (cs_iso8859_1): Delete.
21053 (ft_face_cache): New variable.
21054 (struct ftfont_info): New member fc_charset_idx.
21055 (ftfont_build_basic_charsets): Delete.
21056 (fc_charset_table): New variable.
21057 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
21058 . FC_CHARSET_IDX) as :font-entity property in the font entity.
21059 Callers changed.
21060 (ftfont_lookup_cache, ftfont_get_charset): New functions.
21061 (ftfont_spec_pattern): New argument fc_charset_idx.
21062 Check registry more rigidly. Change callers.
21063 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21064 change of :font-entity property of the font.
21065
21066 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21067 property of the font.
21068
21069 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
21070
21071 * coding.c (Fcoding_system_p): Rename argument to match docstring.
21072 (Funencodable_char_position, Fcheck_coding_systems_region)
21073 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21074 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21075 (Ffind_operation_coding_system, Fset_coding_system_priority)
21076 (Fcoding_system_eol_type): Doc fixes.
21077
21078 2008-05-17 Glenn Morris <rgm@gnu.org>
21079
21080 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21081
21082 2008-05-16 Eli Zaretskii <eliz@gnu.org>
21083
21084 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21085 and st_gid.
21086
21087 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21088 HAVE_WINDOW_SYSTEM is not defined.
21089
21090 * xfaces.c (merge_face_ref, merge_face_vectors)
21091 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21092 HAVE_WINDOW_SYSTEM is defined.
21093 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21094
21095 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21096
21097 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21098
21099 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21100
21101 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21102
21103 2008-05-15 Kenichi Handa <handa@m17n.org>
21104
21105 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21106 preference.
21107
21108 2008-05-15 Glenn Morris <rgm@gnu.org>
21109
21110 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21111
21112 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
21113
21114 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21115 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21116
21117 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21118
21119 2008-05-15 Kenichi Handa <handa@m17n.org>
21120
21121 * ftfont.c (ftfont_list): Downcase family name to check generic
21122 families.
21123
21124 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21125 font-spec for QCfont value.
21126
21127 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21128 buffer. Check the return value of it.
21129
21130 2008-05-14 Jason Rumney <jasonr@gnu.org>
21131
21132 * w32term.c (w32_get_glyph_overhangs): Remove.
21133 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21134
21135 2008-05-14 Kenichi Handa <handa@m17n.org>
21136
21137 * font.c (font_prop_validate): Make nil a valid value.
21138 (font_clear_cache): Check if the cached vector of entities is nil
21139 or not.
21140
21141 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21142
21143 * emacs.c (main_thread): Conditionalize on
21144 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21145 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21146
21147 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21148 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21149 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21150
21151 2008-05-14 Kenichi Handa <handa@m17n.org>
21152
21153 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21154 has no corresponding coding system.
21155
21156 2008-05-14 Jason Rumney <jasonr@gnu.org>
21157
21158 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21159
21160 * w32font.h (w32font_open_internal): Update declaration.
21161
21162 * w32font.c (w32font_open_internal): Change last argument from
21163 w32font_info struct to font object. Fill in font object from
21164 font_entity. Get Outline metrics if possible. Use them to
21165 calculate underline position and thickness. Use xlfd name as name
21166 property. Don't set codepage.
21167 (w32font_open): Pass font_object to w32font_open_internal. Don't
21168 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21169 (w32font_draw): Use s->font.
21170 (clear_cached_metrics): Don't clear non-existent blocks.
21171
21172 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21173 font was not found.
21174 (x_draw_glyph_string): Use underline position and thickness from font.
21175
21176 * w32uniscribe.c (uniscribe_open): Pass font_object to
21177 w32font_open_internal.
21178
21179 2008-05-14 Kenichi Handa <handa@m17n.org>
21180
21181 These changes are to delete all legacy font-handling codes, and
21182 make Emacs use only font-backends.
21183
21184 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21185 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21186
21187 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21188
21189 * charset.h (Vcharset_non_preferred_head)
21190 (Vcurrent_iso639_language): Extern them.
21191
21192 * charset.c (Vcharset_non_preferred_head): New variable.
21193 (Vcurrent_iso639_language): New variable.
21194 (syms_of_charset): Declare it as a Lisp variable.
21195 (char_charset): Don't check non preferred charsets. As a last
21196 resort, return charset_unicode.
21197 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21198
21199 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21200 conditionals. Don't check enable_font_backend. Delete all codes
21201 used only when USE_FONT_BACKEND is not defined.
21202
21203 * dispextern.h (struct glyph_string): Change type of `font' to
21204 `struct font *'.
21205 (struct glyph_string): New member underline_position and
21206 underline_thickness.
21207 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
21208 (struct face): Change type of `font' to `struct font *'.
21209 Remove members `font_name', `font_info_id'.
21210 (per_char_metric, encode_char): Delete externs.
21211 (calc_pixel_width_or_height): Adjust the prototype.
21212
21213 * emacs.c (enable_font_backend): Delete extern.
21214 (main): Don't set enable_font_backend. Don't check the command
21215 line argument "-disable-font-backend".
21216
21217 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21218 (enum font_property_index): New members FONT_DPI_INDEX,
21219 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21220 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21221 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21222 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21223 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21224 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21225 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21226 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21227 (struct font_spec, struct font_entity): New structs.
21228 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
21229 (struct font): Many members from old "struct font_info" moved to
21230 here. Members font and entity deleted.
21231 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21232 the new font-related objects.
21233 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21234 (CHECK_FONT_GET_OBJECT): Likewise.
21235 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
21236 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
21237 (struct font_driver): New members case_sensitive anc check.
21238 Type of the member list and open changed.
21239 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21240 (font_symbolic_width, font_find_object, font_get_spec)
21241 (font_set_lface_from_name): Delete extern.
21242 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21243
21244 * font.c: Include <strings.h>.
21245 (enable_font_backend): Delete it.
21246 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21247 (CHECK_VALIDATE_FONT_SPEC): Delete it.
21248 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
21249 (null_string): Delete it.
21250 (null_vector): Make it static.
21251 (font_family_alist): Delete it.
21252 (Qnormal): Extern it.
21253 (QCextra, QClanguage): Delete it.
21254 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21255 (font_make_spec, font_make_entity, font_make_object)
21256 (font_intern_prop): Rename from intern_downcase. Don't downcase
21257 the string. Callers changed.
21258 (font_pixel_size): Adjust for the format change of font-related
21259 objects.
21260 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21261 (font_style_to_value, font_style_symbolic): New function.
21262 (build_font_family_alist): Delete it.
21263 (font_registry_charsets): Use Fassoc_string instead of
21264 assq_no_quit.
21265 (font_prop_validate_symbol): Don't return null_string.
21266 (font_prop_validate_style): Adjust for the change of
21267 style-related values in a font vector.
21268 (font_property_table): Delete entries for QClanguage and
21269 QCantialias, add entries for QCavgwidth.
21270 (get_font_prop_index): Delete the 2nd argument FROM.
21271 (font_prop_validate): Arguments changed.
21272 (font_put_extra): Adjust for the change of font-related objects.
21273 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21274 (font_parse_fcname, font_unparse_fcname)
21275 (font_prepare_composition): Likewise.
21276 (font_parse_family_registry): Rename from font_merge_old_spec.
21277 (otf_open): Delete the 1st arg entity.
21278 (font_otf_capability): Adjust for the above change.
21279 (font_score): New arg alternate_families. Adjusted for the change
21280 of font-related objects.
21281 (font_sort_entites): New arg best_only.
21282 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21283 Delete them.
21284 (font_match_p): Check alternate families.
21285 (font_find_object): Delete it.
21286 (font_check_object): New function.
21287 (font_clear_cache): Adjust for the change of font-related objects.
21288 (font_delete_unmatched): New arg.
21289 (font_list_entities): Call font_driver->list with a spec that
21290 doesn't specify style-related properties.
21291 (font_matching_entity): Arguments changed. Caller changed.
21292 (font_open_entity): Adjust for the change of font-related objects.
21293 (font_close_object, font_has_char, font_encode_char)
21294 (font_get_name, font_get_spec): Likewise.
21295 (font_spec_from_name, font_clear_prop, font_update_lface):
21296 New functions.
21297 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21298 (font_prepare_for_face, font_done_for_face, font_open_by_name)
21299 (font_at): Adjust for the change of font-related objects.
21300 (font_range): New function.
21301 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
21302 (Ffont_xlfd_name): Adjust for the change of font-related objects.
21303 (Fcopy_font_spec, Fmerge_font_spec): New function.
21304 (Ffont_family_list): Rename from list-families.
21305 (Finternal_set_font_style_table): Arguments changed.
21306 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
21307 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
21308 change of font-related objects.
21309 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21310
21311 * fontset.h (struct font_info): Delete it. Most members go to
21312 struct font.
21313 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
21314 (enum FONT_SPEC_INDEX): Delete it.
21315 (font_info, list_fonts_func, load_font_func, query_font_func)
21316 (set_frame_fontset_func, find_ccl_program_func)
21317 (get_font_repertory_func, new_fontset_from_font_name):
21318 Delete externs.
21319 (fontset_from_font_name): Extern it.
21320 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21321 (FONT_INFO_FROM_FACE): Deleted.
21322 (face_for_font): Adjust prototype.
21323
21324 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21325 conditionals. Don't check enable_font_backend. Delete all codes
21326 used only when USE_FONT_BACKEND is not defined.
21327 (get_font_info_func, list_font_func, load_font_func)
21328 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21329 (get_font_repertory_func): Delete them.
21330 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21331 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21332 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21333 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21334 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21335 (fontset_compare_rfontdef): New function.
21336 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21337 rfont-defs by qsort. Adjusted for the change of font-group vector.
21338 (load_font_get_repertory): Deleted.
21339 (fontset_find_font): Use new macros to ref/set elements of
21340 font-def and rfont-def.
21341 (fontset_font): Fix the timing of remembering that no font for C.
21342 (free_face_fontset): Do nothing if the face has no fontset.
21343 (face_suitable_for_char_p): Use new macros to ref/set elements of
21344 rfont-def.
21345 (face_for_char): Likewise. Call face_for_char with font_object.
21346 (fs_load_font): Delete. Delete #pragma surrounding it.
21347 (fs_query_fontset): Use strcasecmp instead of strcmp.
21348 (generate_ascii_font_name): Adjust for the format change of
21349 font-spec.
21350 (Fset_fontset_font): Likewise. Use new macros to set elements of
21351 font-def.
21352 (Fnew_fontset): Use font_unparse_xlfd to generate
21353 FONTSET_ASCII (fontset).
21354 (new_fontset_from_font_name): Deleted.
21355 (fontset_from_font): Rename from new_fontset_from_font. Check if
21356 a fontset is already created for the font. FIx updating of
21357 Vfontset_alias_alist.
21358 (fontset_ascii_font): Deleted.
21359 (Ffont_info): Adjust for the format change of font-spec.
21360 (Finternal_char_font): Likewise.
21361 (Ffontset_info): Likewise.
21362 (syms_of_fontset): Don't check load_font_func.
21363
21364 * fns.c (internal_equal): Handle PREV_FONT.
21365
21366 * frame.h: Delete USE_FONT_BACKEND conditional.
21367
21368 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21369 conditionals. Don't check enable_font_backend. Delete all codes
21370 used only when USE_FONT_BACKEND is not defined.
21371 (x_set_font): Call x_new_font, not x_new_fontset2.
21372 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21373 already set for the frame.
21374
21375 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21376 Make a font-entity by font_make_entity. Use font_intern_prop instead
21377 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21378 font property. If a font is scalable, set avgwidth property to 0.
21379 Set font-entity property by font_put_extra.
21380 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
21381 (ffont_driver): Adjust for the change of struct font_driver.
21382 (ftfont_spec_pattern): New function.
21383 (ftfont_list): Return a list, not vector.
21384 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21385 (ftfont_list_family): Don't downcase names.
21386 (ftfont_free_entity): Deleted.
21387 (ftfont_open): Return a font-object. Adjusted for the change of
21388 struct font. Get underline_thickness and underline_position from
21389 font property. Don't update dpyinfo->smallest_font_height and
21390 dpyinfo->smallest_char_width.
21391 (ftfont_close): Don't free `struct font'.
21392 (ftfont_has_char): Adjust for the format change of font-entity.
21393 (ftfont_encode_char, ftfont_text_extents): Likewise.
21394
21395 * ftxfont.c (ftxfont_list): Return a list, not vector.
21396 (ftxfont_open): Return a font-object. Adjusted for the change of
21397 struct font. Get underline_thickness and underline_position from
21398 font property. Don't update dpyinfo->smallest_font_height and
21399 dpyinfo->smallest_char_width.
21400 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
21401 (ftxfont_draw): Adjust for the change of struct font.
21402
21403 * image.c (image_ascent): Don't include "charset.h".
21404 Include "character.h" and "font.h".
21405
21406 * lisp.h (enum pvec_type): New member PREV_FONT.
21407 (Fassoc_string): EXFUN it.
21408
21409 * print.c: Include font.h.
21410 (print_object): Handle font-related objects.
21411
21412 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21413 conditionals. Don't check enable_font_backend. Delete all codes
21414 used only when USE_FONT_BACKEND is not defined.
21415 (handle_auto_composed_prop): Do nothing if it->f is not on a
21416 window system. Check how many following characters can be
21417 displayed by the same font.
21418 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21419 'struct font *'.
21420 (get_char_face_and_encoding): Assign the whole encoding task to
21421 the `encode-char' method of a font driver.
21422 (fill_composite_glyph_string): Adjust for the change of `struct
21423 face' and `struct glyph_string'.
21424 (fill_glyph_string): Likewise.
21425 (get_per_char_metric): Arguments changed.
21426 (x_get_glyph_overhangs): Adjust for the change of `struct face'
21427 and `struct glyph_string'.
21428 (produce_stretch_glyph, calc_line_height_property)
21429 (x_produce_glyphs): Likewise.
21430
21431 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21432 conditionals. Don't check enable_font_backend. Delete all codes
21433 used only when USE_FONT_BACKEND is not defined.
21434 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
21435 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21436 (Qp): Extern them.
21437 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21438 Deleted.
21439 (struct font_name): Deleted.
21440 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
21441 (compare_fonts_by_sort_order): New function.
21442 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21443 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21444 Deleted.
21445 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21446 compare_fonts_by_sort_order.
21447 (Fx_font_family_list): Call Ffont_family_list.
21448 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21449 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21450 (face_symbolic_slant, face_symbolic_swidth)
21451 (split_font_name_into_vector, build_font_name_from_vector)
21452 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21453 (font_rescale_ratio, split_font_name, build_font_name)
21454 (free_font_names, sort_fonts, x_face_list_fonts)
21455 (face_font_available_p, sorted_font_list, cmp_font_names)
21456 (font_list_1, concat_font_list, font_list, remove_duplicates):
21457 Deleted.
21458 (Fx_list_fonts): Use Ffont_list.
21459 (LFACE_AVGWIDTH): Deleted.
21460 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21461 by FONTP.
21462 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21463 (set_lface_from_font_name): Delete it.
21464 (set_lface_from_font): Rename from
21465 set_lface_from_font_and_fontset. Caller changed. Don't set
21466 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21467 for face.
21468 (merge_face_vectors): Copy font-spec if necessary.
21469 Clear properties of the font-spec if necessary.
21470 (merge_face_ref): Clear properties of the font-spec if necessary.
21471 (Finternal_set_lisp_face_attribute): Likewise.
21472 (set_font_frame_param): Use font_load_for_lface to load a
21473 font-object, and call Fmodify_frame_parameters with it.
21474 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21475 font name by Ffont_xlfd_name.
21476 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21477 QCslant, and QCwidth.
21478 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21479 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21480 Compare fonts by EQ.
21481 (lookup_non_ascii_face): Deleted.
21482 (face_for_font): The 2nd argument changed.
21483 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21484 Check atomic font properties by case insensitive.
21485 (realize_non_ascii_face): Set face->overstrike correctly.
21486 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21487 (dump_realized_face): Get font name from
21488 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21489
21490 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21491 conditionals. Don't check enable_font_backend. Delete all codes
21492 used only when USE_FONT_BACKEND is not defined.
21493 (xic_create_xfontset): Original code deleted and renamed from
21494 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21495 (x_make_gc): Don't set GCFont in GCs.
21496 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21497 opened by "fixed".
21498 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21499 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21500 get_font_repertory_func.
21501
21502 * xfont.c: Include <stdlib.h> and "ccl.h".
21503 (struct xfont_info): New structure.
21504 (xfont_query_font): Deleted.
21505 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21506 moved from xterm.c.
21507 (xfont_driver): Adjust for the change of struct font_driver.
21508 (compare_font_names): New function.
21509 (xfont_list_pattern): Sort font names case insensitively.
21510 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
21511 (xfont_list): Return a list, not vector.
21512 (xfont_match): If the font doesn't have QCname property, generate
21513 a name from the other font properties.
21514 (xfont_open): Return a font-object. Adjusted for the change of
21515 struct font. Get underline_thickness and underline_position from
21516 font property. Don't update dpyinfo->smallest_font_height and
21517 dpyinfo->smallest_char_width.
21518 (xfont_close): Don't free struct font.
21519 (xfont_prepare_face): Adjust for the change of struct font.
21520 (xfont_done_face): Deleted.
21521 (xfont_has_char): Adjust for the change of struct font.
21522 (xfont_encode_char, xfont_draw): Likewise.
21523 (xfont_check): New function.
21524
21525 * xftfont.c (xftfont_list): Adjust for the change of `list'
21526 callback function.
21527 (xftfont_match): Adjust for the format change of font-entity.
21528 (xftfont_open): Adjust for the format change of font-entity and
21529 font-object. Adjusted for the change of struct font. Return a
21530 font-object. Don't update dpyinfo->smallest_font_height and
21531 dpyinfo->smallest_char_width.
21532 (xftfont_close): Block input while calling XftFontClose.
21533 (xftfont_prepare_face): Don't block input while calling
21534 xftfont_get_colors. Adjusted for the change of struct font.
21535 (xftfont_shape): Return value of error case fixed.
21536
21537 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21538
21539 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21540 conditionals.
21541 (FONT_WIDTH): Return (f)->max_width.
21542 (struct x_display_info): Delete member `font'.
21543 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21544 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21545 (struct x_output): Change type of `font' to `struct font *'.
21546
21547 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21548 conditionals. Don't check enable_font_backend. Delete all codes
21549 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21550 (x_per_char_metric, x_encode_char): Deleted.
21551 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21552 (x_compute_glyph_string_overhangs): Adjust for the change of
21553 `struct face'.
21554 (x_draw_glyph_string_foreground)
21555 (x_draw_composite_glyph_string_foreground): Likewise.
21556 (x_draw_glyph_string): Likewise. Use font->underline_position and
21557 font->underline_thickness.
21558 (x_new_font): Rename from x_new_fontset2.
21559 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21560 (x_check_font): Call `check' method of a font driver.
21561 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21562 (x_query_font, x_get_font_repertory): Deleted.
21563 (x_find_ccl_program): Rename and moved to xfont.c.
21564 (x_redisplay_interface): Adjust for the change of `struct
21565 redisplay_interface'.
21566
21567 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21568 conditionals. Don't check enable_font_backend. Delete all codes
21569 used only when USE_FONT_BACKEND is not defined. Surround non-used
21570 code by "#ifdef OLD_FONT" and "endif".
21571 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21572
21573 * w32font.h (struct w32font_info): New member.
21574 (FONT_COMPAT): New macro.
21575 (w32font_open_internal): Prototype adjusted.
21576
21577 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21578 OLD_FONT" and "endif".
21579
21580 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21581 conditionals. Don't check enable_font_backend. Delete all codes
21582 used only when USE_FONT_BACKEND is not defined.
21583 (w32font_open): Return a font-object. Make a font-object by
21584 font_make_object. Adjusted for the change of struct w32font_info.
21585 (w32font_close): Don't free struct font. Adjusted for the change
21586 of struct w32font_info.
21587 (w32font_encode_char, w32font_text_extents, w32font_draw):
21588 Adjust for the change of struct w32font_info.
21589 (w32font_draw): Likewise.
21590 (w32font_list_internal): Return a list, not vector.
21591 (w32font_open_internal): Change the 4th arg to font-object.
21592 Adjusted for the change of struct w32font_info and font-object format.
21593 (add_font_name_to_list): Don't downcase names.
21594 (w32_enumfont_pattern_entity): Make a font-entity by
21595 font_make_entity. Adjusted for the format change of font-entity.
21596 Use FONT_SET_STYLE to set a style-related font property. If a
21597 font is scalable, set avgwidth property to 0. Set font-entity
21598 property by font_put_extra.
21599 (font_matches_spec): Adjust for the format change of font-entity.
21600 (w32_weight_table, w32_decode_weight): New variables.
21601 (w32_encode_weight): New function.
21602 (fill_in_logfont): Adjust for the format change of font-spec.
21603 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21604 weight value.
21605 (w32font_driver): Adjust for the change of struct font_driver.
21606
21607 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21608 conditionals. Don't check enable_font_backend. Surround non-used
21609 code by "#ifdef OLD_FONT" and "endif".
21610 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
21611 (FONT_AVG_WIDTH): Adjust for the change of struct font.
21612
21613 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21614 conditionals. Don't check enable_font_backend. Delete all codes
21615 used only when USE_FONT_BACKEND is not defined. Surround non-used
21616 code by "#ifdef OLD_FONT" and "endif".
21617
21618 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21619 (uniscribe_open): Return value changed to font-object.
21620 Adjusted for the format change of font-object.
21621 (uniscribe_otf_capability): Adjust for the change of struct font.
21622 (add_opentype_font_name_to_list): Don't downcase names.
21623 (uniscribe_font_driver): Adjust for the change of struct
21624 font_driver.
21625
21626 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
21627
21628 * dispnew.c (update_frame_1): Check if tty output is still valid
21629 before flushing it.
21630
21631 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21632
21633 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21634 to Gtk+ menus.
21635
21636 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21637
21638 * dired.c (file_name_completion): Tweak the code so as to always do it
21639 in a single pass. Tighten the scope of some variables.
21640
21641 * dired.c (Qdefault_directory): New var.
21642 (file_name_completion): Use it instead of Fexpand_file_name.
21643 (syms_of_dired): Initialize it.
21644
21645 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21646
21647 * fileio.c (double_dollars): Remove dead code.
21648
21649 2008-05-10 Eli Zaretskii <eliz@gnu.org>
21650
21651 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21652 Mention w32-get-true-file-attributes in doc string.
21653
21654 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21655
21656 2008-05-09 Glenn Morris <rgm@gnu.org>
21657
21658 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21659 2008-04-23.
21660
21661 2008-05-09 Eli Zaretskii <eliz@gnu.org>
21662
21663 Support for reporting owner and group of each file on MS-Windows:
21664 * dired.c (stat_uname, stat_gname): New functions, with special
21665 implementation for w32.
21666 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21667
21668 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21669 (dflt_group_name): New static variable.
21670 (dflt_group): Rename from the_group.
21671 (init_user_info): Init dflt_group fields. Get user's group name
21672 from LookupAccountSid.
21673 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21674 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21675 New initialization states.
21676 (globals_of_w32): Initialize them to zero. Initialize the default
21677 group name to "None".
21678 (GetFileSecurity_Name): New global var, the name of the function
21679 to call for GetFileSecurity.
21680 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21681 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21682 (get_file_security, get_security_descriptor_owner)
21683 (get_security_descriptor_group, is_valid_sid)
21684 (get_file_security_desc, get_rid, get_name_and_id)
21685 (get_file_owner_and_group): New functions.
21686 (stat): Use get_file_security_desc and get_file_owner_and_group to
21687 report the owner and primary group of each file. Don't ignore the
21688 high 32 bits of file's size, now that st_size is 64-bit wide.
21689 Fix test when to get true file attributes.
21690 (init_user_info): Use get_rid instead of equivalent inline code.
21691 (fstat): Don't ignore the high 32 bits of file's size.
21692
21693 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
21694
21695 * image.c (png_load): Use correct bit-depth for setting background
21696 color.
21697
21698 2008-05-08 Eli Zaretskii <eliz@gnu.org>
21699
21700 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21701 epa-hook.elc.
21702
21703 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
21704
21705 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21706
21707 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21708
21709 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21710 because the original parameters are in pure storage now.
21711 (mac_window): Remove unused params. Update callers.
21712
21713 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21714
21715 * lread.c (substitute_object_recurse): Use lower-level primitives.
21716 Don't signal errors when traversing sub-char-tables.
21717 Don't loop over all the possible characters when traversing char-tables.
21718
21719 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21720 just like we do in print.c.
21721
21722 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21723
21724 * minibuf.c (Ftry_completion): Remove code left over from when we used
21725 scmp instead of Fcompare_strings.
21726
21727 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
21728
21729 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21730
21731 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21732
21733 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21734 Create bitmap context in native byte order.
21735
21736 * macterm.c (XDrawLine)
21737 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21738 context in native byte order.
21739
21740 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21741
21742 * config.in: Regenerate.
21743
21744 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21745 New definitions for Image I/O support.
21746 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21747 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21748 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21749 (mac_data_provider_release_data, image_load_image_io)
21750 [USE_MAC_IMAGE_IO]: New functions.
21751 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21752 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21753 (init_image_func_pointer) [MAC_OSX]: Remove function.
21754 (image_load_quartz2d) [MAC_OSX]: Check availability of
21755 CGImageCreateWithPNGDataProvider at compile time.
21756 Use lowercase `false' for boolean constant.
21757 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21758 Use image_load_image_io.
21759 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21760 Don't check MyCGImageCreateWithPNGDataProvider.
21761 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21762 Don't call init_image_func_pointer.
21763
21764 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21765
21766 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21767 Make variable non-static.
21768 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21769 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21770
21771 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21772 (RED_FROM_ULONG): Mask off higher bits.
21773 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21774
21775 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21776 Include AvailabilityMacros.h.
21777 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21778 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21779
21780 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21781
21782 * chartab.c (Fset_char_table_range): If range is t, really set all
21783 chars to that value.
21784
21785 2008-05-03 Eli Zaretskii <eliz@gnu.org>
21786
21787 * dired.c (Ffile_attributes): Don't allow the device number become
21788 negative.
21789
21790 2008-05-02 Daiki Ueno <ueno@unixuser.org>
21791
21792 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21793
21794 2008-05-02 Juri Linkov <juri@jurta.org>
21795
21796 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21797 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21798 DEFAULT argument as a list of default values in docstrings.
21799
21800 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
21801
21802 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21803
21804 2008-05-01 Martin Rudalics <rudalics@gmx.at>
21805
21806 * dispnew.c (change_frame_size_1): Preserve small windows when
21807 shrinking frames by calling set_window_height|width with third
21808 arg 2.
21809
21810 * window.h (struct window): Replace field too_small_ok by field
21811 resize_proportionally.
21812
21813 * window.c (make_window): Initialize resize_proportionally.
21814 (enlarge_window): Temporarily set resize_proportionally to make
21815 sure that shrink_windows does scale the window proportionally.
21816 (shrink_windows): When window has resize_proportionally set try
21817 to shrink it proportionally by stealing from other windows.
21818 (struct saved_window, Fset_window_configuration)
21819 (compare_window_configurations): Handle resize_proportionally.
21820 (WINDOW_TOTAL_SIZE): New macro.
21821 (window_min_size, shrink_windows, size_window): Use it.
21822 (check_min_window_sizes): Remove. Invalid values of
21823 window-min-height|width are handled by window_min_size_2 now.
21824 (size_window, Fsplit_window, enlarge_window)
21825 (adjust_window_trailing_edge, grow_mini_window): Don't call
21826 check_min_window_sizes.
21827 (window_min_size_2, window_min_size_1, window_min_size):
21828 New argument safe_p for retrieving "safe" minimum sizes.
21829 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21830 (adjust_window_trailing_edge, grow_mini_window):
21831 Adjust arguments of window_min_size... functions.
21832 (shrink_windows): Argument min_size removed. New argument
21833 safe_p allows shrinking windows to their safe minimum sizes.
21834 Calculate minimum size and decide whether a window shall be
21835 deleted for each window individually.
21836 (size_window): When nodelete_p equals 2, tell shrink_windows to
21837 delete windows only if their new minimum size is no more safe.
21838 (shrink_window_lowest_first): Call window_min_size_1 to make
21839 sure to preserve modeline of bottom-most window when resizing
21840 the minibuffer.
21841 (Fset_window_configuration, Fcurrent_window_configuration)
21842 (compare_window_configurations): Do not handle
21843 window-min-height|width any more.
21844 (syms_of_window): Clarify window-min-height|width doc-strings.
21845
21846 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21847
21848 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21849 some more. Copy some of the code from Ftry_completions.
21850 Remove special case code that dates back to initial revision when the
21851 slash was only added when necessary and that can't trigger nowadays.
21852
21853 2008-04-27 Kenichi Handa <handa@m17n.org>
21854
21855 * font.c (font_prop_validate): Signal `error' instead of `font'.
21856
21857 2008-04-29 Jason Rumney <jasonr@gnu.org>
21858
21859 * w32fns.c (Fw32_battery_status): New defun.
21860 (syms_of_w32fns): Defsubr it.
21861
21862 2008-04-28 Andreas Schwab <schwab@suse.de>
21863
21864 * dired.c (file_name_completion): Fix another mixing of encoded
21865 and decoded names.
21866
21867 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
21868
21869 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21870
21871 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
21872
21873 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21874
21875 2008-04-27 Andreas Schwab <schwab@suse.de>
21876
21877 * dired.c (file_name_completion): Fix inappropriate mixing of
21878 encoded and decoded names.
21879
21880 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21881
21882 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21883
21884 2008-04-26 Eli Zaretskii <eliz@gnu.org>
21885
21886 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21887 2008-03-31, it's not needed anymore with `struct stat' definition
21888 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21889 for the same reasons.
21890
21891 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21892
21893 * m/sparc.h: Additional redefinitions for GNU/Linux.
21894
21895 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21896
21897 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21898 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21899 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21900 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21901 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21902 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21903 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21904 Likewise.
21905
21906 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21907 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21908 (mac_ax_number_of_characters): Add externs.
21909 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21910 [USE_MAC_TSM]: Likewise.
21911 (mac_handle_text_input_event) [MAC_OSX]:
21912 Handle kEventTextInputOffsetToPos for no active input area case.
21913 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21914 (mac_handle_document_access_event)
21915 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21916 (install_application_handler) [MAC_OSX]: Register handlers for
21917 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21918 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21919 Register mac_handle_document_access_event.
21920
21921 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21922 Make functions non-static.
21923
21924 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21925
21926 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21927 (read_file_name_completion_ignore_case, insert_default_directory)
21928 (Qdefault_directory): Move to minibuffer.el.
21929 (Fread_file_name): Call the new `read-file-name' instead.
21930
21931 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21932
21933 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21934 Make function non-static.
21935 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21936 Remove function.
21937 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21938 Move to mactoolbox.c.
21939 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21940
21941 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21942 (mac_rect_make): New macro.
21943
21944 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21945 instead of float.
21946 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21947 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21948 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21949 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21950 CGRectMake.
21951 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21952 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21953 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21954 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21955 instead of WindowRef in argument type.
21956 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21957 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21958 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21959 instead of DISPLAY. All uses changed.
21960 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21961 (x_calc_absolute_position): Simplify so as not to use
21962 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21963
21964 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21965 instead of WindowRef in argument type.
21966 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21967 [TARGET_API_MAC_CARBON]: Remove externs.
21968 (create_apple_event, mac_event_parameters_to_lisp)
21969 [TARGET_API_MAC_CARBON]: Add externs.
21970
21971 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21972 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21973 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21974 is clicked.
21975 (x_activate_menubar): Remove extern for saved_menu_event_location.
21976 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21977 Move from mac.c.
21978
21979 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21980
21981 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21982 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21983
21984 2008-04-23 Jason Rumney <jasonr@gnu.org>
21985
21986 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21987 attributes only for local files.
21988
21989 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21990 default to Qlocal.
21991
21992 2008-04-22 Juri Linkov <juri@jurta.org>
21993
21994 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21995 read-buffer-to-switch instead of using the letter "B".
21996
21997 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21998
21999 * fileio.c (Qdefault_directory): New variable.
22000 (Fread_file_name): Use it to pass `dir' to the completion functions.
22001
22002 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
22003
22004 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
22005
22006 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
22007
22008 * keyboard.c (Vpre_help_message): Remove.
22009 (show_help_echo): Remove default C code.
22010
22011 * dired.c (directory_files_internal, file_name_completion):
22012 Only call ENCODE_FILE if the string is indeed decoded.
22013
22014 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22015
22016 * Makefile.in (TOOLKIT_DEFINES): Remove.
22017 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
22018
22019 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22020
22021 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22022 (mactoolbox.o): New target.
22023
22024 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22025 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22026
22027 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22028 Use mac_set_frame_window_background instead of XSetWindowBackground.
22029 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22030 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22031 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22032 instead of SetWindowTitleWithCFString.
22033 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22034 Move function to mactoolbox.c.
22035 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22036 Use mac_set_window_modified instead of SetWindowModified.
22037 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22038 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22039 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22040 FrontNonFloatingWindow. Use mac_activate_window instead of
22041 ActivateWindow. Use mac_active_non_floating_window instead of
22042 ActiveNonFloatingWindow.
22043 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22044 Use mac_show_hourglass and mac_hide_hourglass.
22045 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22046 instead of GetGlobalMouse.
22047 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22048 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22049 Use mac_bring_window_to_front instead of BringToFront.
22050 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22051 mactoolbox.c.
22052 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22053 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
22054 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22055 mactoolbox.c.
22056
22057 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22058 (XtPointer): Move typedef from macmenu.c.
22059 (enum button_type): Move enum from macmenu.c.
22060 (widget_value): Move typedef from macmenu.c.
22061 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22062 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22063 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22064 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22065 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22066 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22067 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22068 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22069 (Selection): Move typedef from macselect.c.
22070 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22071 macterm.c.
22072 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22073 (mac_is_window_collapsed, mac_bring_window_to_front)
22074 (mac_send_window_behind, mac_hide_window, mac_show_window)
22075 (mac_collapse_window, mac_front_non_floating_window)
22076 (mac_active_non_floating_window, mac_activate_window)
22077 (mac_move_window_structure, mac_move_window, mac_size_window)
22078 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22079
22080 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22081 (enum mac_menu_kind): Move enum to mactoolbox.c.
22082 (min_menu_id): Move variable to mactoolbox.c.
22083 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22084 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22085 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22086 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22087 [TARGET_API_MAC_CARBON]: Likewise.
22088 (XtPointer): Move typedef to macgui.h.
22089 (enum button_type): Move enum to macgui.h.
22090 (widget_value): Move typedef to macgui.h.
22091 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22092 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22093 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22094 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22095 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22096 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22097 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22098 (popup_activated_flag): Make variable non-static.
22099 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22100 (add_menu_item, fill_menu, dispose_menus):
22101 Move functions to mactoolbox.c.
22102 (restore_show_help_function, menu_target_item_handler)
22103 (install_menu_target_item_handler, mac_handle_dialog_event)
22104 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22105 [TARGET_API_MAC_CARBON]: Likewise.
22106 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22107 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22108 (find_and_call_menu_selection, name_is_separator): Make function
22109 non-static.
22110 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22111 to mactoolbox.c.
22112 (set_frame_menubar): Don't call install_menu_quit_handler.
22113 (menu_item_selection): New variable.
22114 (mac_menu_show): Use create_and_show_popup_menu.
22115 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22116 selection but set variable menu_item_selection. All uses changed.
22117 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22118 Call install_menu_quit_handler. Move to mactoolbox.c.
22119
22120 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22121 (Selection): Move typedef to macgui.h.
22122 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22123 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22124 Make variables non-static.
22125 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22126 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22127 Make functions non-static.
22128 (Vmac_service_selection) [MAC_OSX]: Likewise.
22129 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22130 (mac_valid_selection_target_p, mac_clear_selection)
22131 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22132 (mac_put_selection_value, mac_selection_has_target_p)
22133 (mac_get_selection_value, mac_get_selection_target_list)
22134 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22135 Move functions to mactoolbox.c.
22136 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22137 Likewise.
22138 (copy_scrap_flavor_data, mac_handle_service_event)
22139 (install_service_handler) [MAC_OSX]: Likewise.
22140 (syms_of_macselect) <Vmac_dnd_known_types>:
22141 Use mac_dnd_default_known_types.
22142
22143 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22144 Move to mactoolbox.c.
22145 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22146 (Fx_selection_owner_p): Add EXFUN.
22147 (install_window_handler, remove_window_handler, XSetWindowBackground):
22148 Remove externs.
22149 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22150 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22151 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22152 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22153 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22154 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22155 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22156 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22157 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22158 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22159 (mac_valid_selection_target_p, mac_clear_selection)
22160 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22161 (mac_put_selection_value, mac_selection_has_target_p)
22162 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22163 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22164 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22165 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22166 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22167 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22168 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22169 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22170 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22171
22172 * mactoolbox.c: New file.
22173
22174 2008-04-18 Jason Rumney <jasonr@gnu.org>
22175
22176 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22177
22178 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22179
22180 * character.c (Fmultibyte_char_to_unibyte):
22181 Return latin1 chars unchanged.
22182
22183 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22184 relocated if it points to `name'.
22185
22186 2008-04-17 Kenichi Handa <handa@m17n.org>
22187
22188 * data.c (Faset): Allow setting a multibyte character in an
22189 ASCII-only unibyte string.
22190
22191 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22192
22193 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22194
22195 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22196 done in config.h.
22197
22198 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
22199
22200 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22201 (Fchar_direction): Add usage in the docstring.
22202
22203 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
22204
22205 * keyboard.c (read_key_sequence): Remove always-true checks.
22206
22207 2008-04-14 Jason Rumney <jasonr@gnu.org>
22208
22209 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22210 compatibility struct, for better underline positioning.
22211
22212 2008-04-13 David Hansen <david.hansen@gmx.net>
22213
22214 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22215 string.
22216
22217 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22218
22219 * m/hp800.h (XUINT, XSET): Remove.
22220
22221 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
22222
22223 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22224 previous change.
22225
22226 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22227
22228 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22229 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22230
22231 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22232
22233 * keymap.h (map_keymap_canonical): Declare.
22234 * xmenu.c (single_keymap_panes): Use it.
22235
22236 2008-04-11 Glenn Morris <rgm@gnu.org>
22237
22238 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22239 set the target's value to that of the alias.
22240
22241 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22242
22243 * term.c (set_tty_color_mode): Left over typo.
22244
22245 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
22246
22247 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22248 only after check for file name handler functions. Signal, when
22249 native functionality is not supported.
22250 (syms_of_fileio): Declare it unconditionally.
22251
22252 2008-04-10 Jason Rumney <jasonr@gnu.org>
22253
22254 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22255 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22256
22257 * w32.c (logon_network_drive): Also logon to remote drives that
22258 are mapped to drive letters.
22259
22260 2008-04-10 Glenn Morris <rgm@gnu.org>
22261
22262 * xdisp.c (truncate-partial-width-windows): Doc fix.
22263
22264 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22265
22266 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22267 Move functions to minibuffer.el.
22268 (syms_of_fileio): Don't declare them.
22269
22270 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22271
22272 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22273 (syms_of_minibuf): Remove its initialization.
22274
22275 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22276
22277 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
22278
22279 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22280
22281 2008-04-09 Jason Rumney <jasonr@gnu.org>
22282
22283 * makefile.w32-in (distclean): Delete makefile too.
22284 (maintainer-clean): New target.
22285
22286 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22287
22288 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22289 for new font backend and composite cases.
22290
22291 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22292
22293 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22294 Most of the code moved to run_timers.
22295 (do_pending_atimers): Call run_timers.
22296 (run_timers): New function.
22297
22298 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22299 run atimers.
22300
22301 * process.c (wait_reading_process_output): The same as above.
22302
22303 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22304
22305 * minibuf.c (last_exact_completion): Remove variable.
22306 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22307 (complete_and_exit_1, complete_and_exit_2)
22308 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22309 (Fdisplay_completion_list, display_completion_list_1)
22310 (Fminibuffer_completion_help, Fself_insert_and_exit)
22311 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22312 minibuffer.el.
22313 (syms_of_minibuf): Remove corresponding initializations.
22314
22315 * keyboard.c (Qdeactivate_mark): New var.
22316 (command_loop_1): Use it to call `deactivate-mark'.
22317 (syms_of_keyboard): Initialize it.
22318
22319 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22320 to another frame.
22321 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22322 Don't call set_tty_color_mode.
22323 (store_frame_param): Reset previous_frame rather than call
22324 set_tty_color_mode.
22325 * term.c (set_tty_color_mode): Rewrite.
22326 * dispextern.h (set_tty_color_mode): New type.
22327 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22328
22329 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22330
22331 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22332 for generic chars, which do not exist any more in emacs-unicode.
22333
22334 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
22335
22336 * coding.c (detect_coding_emacs_mule)
22337 (Ffind_operation_coding_system): Fix typo.
22338
22339 2008-04-08 Jason Rumney <jasonr@gnu.org>
22340
22341 * w32uniscribe.c (SNAME): Extract only symbol name.
22342
22343 * w32font.h (struct w32_metric_cache): New struct.
22344 (w32font_info): Use it.
22345 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22346 (CACHE_BLOCKSIZE): New constants.
22347
22348 * w32font.c (Qja, Qko, Qzh): New symbols.
22349 (syms_of_w32font): Initialise them.
22350 (font_matches_spec): Use them to filter by language.
22351 (recompute_cached_metrics): Remove function.
22352 (compute_metrics, clear_cached_metrics): New functions.
22353 (w32font_encode_char): Use them to manage metric cache.
22354 (w32font_text_extents): Cache metrics for all glyphs on demand.
22355 Delay converting glyph indices to WORD until needed.
22356 (w32font_open_internal): Initialize metric cache to empty.
22357 (registry_to_w32_charset): Charset should always be a symbol.
22358 (fill_in_logfont, list_all_matching_fonts): Family should
22359 always be a symbol.
22360
22361 2008-04-06 Jason Rumney <jasonr@gnu.org>
22362
22363 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22364 Give up if glyph indices not supported. Use uniscribe obtained
22365 ABC widths for individual metrics. Map glyph clusters back to
22366 characters using fClusterStart flag. Return number of glyphs
22367 produced, not chars processed.
22368 (uniscribe_shape): Map char at FROM to current glyph.
22369
22370 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22371
22372 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22373 Use SetMenuItemHierarchicalMenu.
22374
22375 2008-04-05 Jason Rumney <jasonr@gnu.org>
22376
22377 * image.c (pbm_load): Allow color values up to 65535.
22378 Throw an error if max_color_idx is outside the supported range.
22379 Report an error when image size is invalid.
22380 Read two bytes at a time when raw images have max_color_idx above 255.
22381
22382 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22383
22384 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22385 append "CCL: Quitted" when the CCL program is quitted.
22386 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22387
22388 * ccl.h (struct ccl_program): New member quit_silently.
22389
22390 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
22391
22392 * search.c (compile_pattern_1): Treat non-nil and non-string of
22393 search-spaces-regexp as nil.
22394
22395 * minibuf.c (Fassoc_string): Tweak docstring.
22396
22397 2008-04-05 Eli Zaretskii <eliz@gnu.org>
22398
22399 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22400 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22401 2008-03-14 to force inode be positive.
22402
22403 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22404 _S_* ones, since we now use our own sys/stat.h.
22405 (stat, fstat): Don't mangle the inode number.
22406 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22407
22408 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22409
22410 * frame.h (struct frame): Give one more bit to `visible' since we use
22411 values larger than 1 to indicate obscured frames on ttys.
22412
22413 * keymap.c (Qkeymap_canonicalize): New var.
22414 (Fmap_keymap_internal): New fun.
22415 (describe_map): Use keymap-canonicalize.
22416
22417 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22418 (Fundo_boundary): Set them.
22419 (syms_of_undo): Initialize them.
22420 (record_point): Use them instead of last_point_position*.
22421 (last_undo_buffer): Change type.
22422
22423 2008-04-04 Jason Rumney <jasonr@gnu.org>
22424
22425 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22426 (recompute_cached_metrics): Don't set ascent and descent per char.
22427
22428 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22429 (uniscribe_check_otf): Add GC protection before consing.
22430 Rearrange loop for counting features.
22431
22432 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22433
22434 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22435 buffer with byte-size of source buffer.
22436
22437 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
22438
22439 * callint.c (Fcall_interactively): Handle temporary region even
22440 when shift-select-mode is off.
22441
22442 2008-04-03 Jason Rumney <jasonr@gnu.org>
22443
22444 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22445
22446 2008-04-03 Kenichi Handa <handa@m17n.org>
22447
22448 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22449 (CATEGORY_MASK_UTF_16): Likewise.
22450 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22451 binary file.
22452 (detect_coding): Add null-byte detection for a binary file.
22453 (detect_coding_system): Likewise.
22454
22455 2008-04-03 Jason Rumney <jasonr@gnu.org>
22456
22457 * w32uniscribe.c: New file.
22458
22459 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22460
22461 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22462
22463 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22464 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22465 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22466 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22467 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22468 (Qphonetic): New symbols.
22469 (syms_of_w32font): Initialize them.
22470 (font_supported_scripts): Use them.
22471 (w32font_list_family): List all charsets.
22472 (w32font_text_extents, recompute_cached_metrics): Fix metric
22473 calculations.
22474 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22475 Give opentype fonts their own format.
22476 (font_matches_spec): New arguments backend and logfont.
22477 Handle :otf spec for uniscribe backend.
22478 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22479 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22480
22481 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22482 font backend.
22483 (globals_of_w32fns): Initialize uniscribe font backend.
22484
22485 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22486 dependencies.
22487 (w32uniscribe.$(O)): New file to build.
22488 (FONT_OBJ): Include w32uniscribe.$(O).
22489 (LIBS): Add uniscribe libraries.
22490
22491 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22492
22493 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
22494
22495 * callint.c (Vshift_select_mode): New var.
22496 (Finteractive): Document new ^ spec.
22497 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22498 is present.
22499
22500 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22501 (command_loop_1): Avoid running the direct display versions of
22502 forward-char and backward-char if shift-selection may occur.
22503 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22504 shift-translation takes place.
22505
22506 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22507 avoid clobbering by define-minor-mode.
22508
22509 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22510 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22511
22512 * syntax.c (Fforward_word): Add ^ interactive spec.
22513
22514 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22515 (Fscroll_right): Add ^ interactive spec.
22516
22517 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22518
22519 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22520
22521 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22522
22523 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22524
22525 2008-03-31 Juri Linkov <juri@jurta.org>
22526
22527 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22528
22529 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22530
22531 * gtkutil.c (xg_set_geometry): Fix indentation.
22532 (xg_resize_outer_widget): Remove.
22533 (x_wm_size_hint_off): Fix indentation.
22534 (xg_frame_set_char_size): Call flush_and_sync after
22535 gtk_window_resize.
22536 (x_wm_set_size_hint): Pass NULL as geometry window to
22537 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22538 Add menu bar and tool bar height to base height.
22539 (xg_update_frame_menubar, free_frame_menubar)
22540 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22541 (update_frame_tool_bar, free_frame_tool_bar):
22542 Change xg_resize_outer_widget to xg_frame_set_char_size.
22543
22544 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
22545
22546 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22547 (Fdbus_call_method): New parameter TIMEOUT.
22548 (dbus-send-signal): Optimize UNGCPRO call.
22549
22550 2008-03-29 Juri Linkov <juri@jurta.org>
22551
22552 * window.c (Fdisplay_buffer): Move call to
22553 Vsplit_window_preferred_function out of conditions that check
22554 if window is eligible for vertical splitting.
22555 When Vsplit_window_preferred_function is non-nil, call it and use
22556 its non-nil return value as window. Otherwise, continue doing
22557 vertical splitting using Fsplit_window with arg horflag=nil.
22558 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22559 default value from `split-window' to nil.
22560
22561 2008-03-29 Juri Linkov <juri@jurta.org>
22562
22563 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22564 for interactive code letters 'b' and 'B'.
22565
22566 2008-03-29 Eli Zaretskii <eliz@gnu.org>
22567
22568 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22569 multibyte string.
22570
22571 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22572
22573 * keyboard.c (pending_funcalls): New var.
22574 (timer_check): Run it.
22575 (syms_of_keyboard): Initialize it.
22576 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22577 (Vdelete_terminal_functions): New vars.
22578 (syms_of_terminal): Initialize them.
22579 (Fdelete_terminal): Run delete-terminal-functions.
22580 * xdisp.c (safe_eval): Rewrite.
22581 (safe_call2): New fun.
22582 * frame.c (Qdelete_frame_functions): New var.
22583 (syms_of_frame): Initialize it.
22584 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22585 * lisp.h (safe_call2, pending_funcalls): Declare.
22586
22587 2008-03-28 Andreas Schwab <schwab@suse.de>
22588
22589 * indent.c (Fmove_to_column): Move declaration before statements.
22590
22591 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22592
22593 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22594 (struct frame): Use bit fields for boolean vars.
22595
22596 * process.c (server_accept_connection): Simplify naming.
22597 (emacs_get_tty_pgrp): Use SDATA.
22598
22599 * coding.c (decode_coding_object): Fix last change.
22600
22601 2008-03-27 Jason Rumney <jasonr@gnu.org>
22602
22603 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22604
22605 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22606
22607 * charset.c (Fdefine_charset_internal): Change the way of
22608 registering charsets in Vcharset_order_list.
22609 (syms_of_charset): Make the charset `eight-bit' supplementary.
22610
22611 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22612
22613 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22614 operations, to avoid having the difference between pointers
22615 overflow.
22616
22617 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22618
22619 * indent.c (check_display_width): New fun.
22620 (scan_for_column): Use it.
22621
22622 * data.c (syms_of_data): Mark most-positive-fixnum and
22623 most-negative-fixnum as constants.
22624
22625 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22626
22627 * indent.c (scan_for_column): Extract from current_column_1.
22628 Merge with the same code from Fmove_to_column.
22629 (current_column_1, Fmove_to_column): Use it.
22630
22631 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22632
22633 * keymap.c (map_keymap_internal): New fun.
22634 (map_keymap): Use it.
22635 (Fmap_keymap_internal): New fun.
22636 (Fmap_keymap): Remove left-out test from before make_save_value.
22637
22638 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22639
22640 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22641 Use XCAR/XCDR.
22642
22643 * process.h (struct Lisp_Process): Remove filter_multibyte.
22644 * process.c (QCfilter_multibyte): Remove.
22645 (setup_process_coding_systems): Don't use filter_multibyte.
22646 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22647 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22648 (Fset_process_filter_multibyte): Change the coding-system to
22649 approximate the previous behavior.
22650 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22651 coding-system.
22652
22653 * coding.c (decode_coding_object): When not decoding into a buffer,
22654 obey the coding system's preference of (uni|multi)byte.
22655
22656 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22657
22658 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22659 every char is changed and has a different byte-length.
22660 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22661 Fix int -> EMACS_INT.
22662
22663 2008-03-23 David Hansen <david.hansen@gmx.net>
22664
22665 * dbusbind.c (xd_read_message): Remove extra copying of message
22666 strings. Check for NULL `interface' or `member'.
22667
22668 2008-03-22 Eli Zaretskii <eliz@gnu.org>
22669
22670 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22671 cFileName a file name that includes `?' characters, use the 8+3
22672 alias in cAlternateFileName instead.
22673
22674 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22675
22676 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22677
22678 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22679
22680 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22681 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22682 work on current_buffer only instead (that was already the case
22683 for some of the code anyway).
22684 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22685 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22686 (SET_PT, SET_PT_BOTH): Adjust.
22687 * intervals.h (set_point, temp_set_point, set_point_both)
22688 (temp_set_point_both): Remove redundant declarations.
22689
22690 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22691
22692 * fileio.c (Finsert_file_contents):
22693 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22694 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22695 when buffer != current_buffer anyway.
22696
22697 2008-03-20 Andreas Schwab <schwab@suse.de>
22698
22699 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22700 as default.
22701
22702 2008-03-19 Jason Rumney <jasonr@gnu.org>
22703
22704 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22705 (syms_of_w32fns): Initialize them.
22706 (HOURGLASS_ID): New constant.
22707 (x_window_to_frame): Don't check hourglass_window.
22708 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22709 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22710 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22711 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22712 Only change the cursor if hourglass is not active.
22713 (Fx_create_frame): Initialize frame's current_cursor.
22714 (hourglass_atimer): Remove.
22715 (hourglass_started): New function.
22716 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22717 (show_hourglass): Adapt to w32, changing argument to frame.
22718
22719 * w32term.h (struct w32_output): Remove hourglass_window.
22720 Add current_cursor.
22721
22722 * eval.c (call_debugger, Fsignal):
22723 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22724 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22725 (Fexecute_extended_command, cancel_hourglass_unwind):
22726 * minibuf.c (read_minibuf):
22727 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22728
22729 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22730
22731 * window.c (run_funs): New fun.
22732 (run_window_configuration_change_hook): Use it to run the buffer-local
22733 and the global part of the hook.
22734
22735 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22736 (unwind_format_mode_line): Restore selected window.
22737 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22738
22739 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22740
22741 * editfns.c (Fchar_equal): Check they are valid characters.
22742
22743 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22744
22745 2008-03-17 Andreas Schwab <schwab@suse.de>
22746
22747 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22748 against a charset.
22749
22750 * lisp.h (Fbuffer_list): Declare.
22751
22752 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
22753
22754 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22755 handlebox_widget is != 0.
22756
22757 2008-03-16 Juri Linkov <juri@jurta.org>
22758
22759 * callint.c (Fcall_interactively): For interactive code letters
22760 'b' and 'B' put the buffer list into the list of default "future"
22761 values of the minibuffer.
22762
22763 2008-03-16 Andreas Schwab <schwab@suse.de>
22764
22765 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22766 modifiers.
22767
22768 * regex.c (re_match_2_internal): Correct matching of a charset
22769 against latin-1 characters.
22770
22771 2008-03-16 Kenichi Handa <handa@m17n.org>
22772
22773 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22774 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22775 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22776 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22777 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22778 CHAR_STRING_ADVANCE.
22779 (produce_chars): Fix for the case that the source and the
22780 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22781 instead of CHAR_STRING_ADVANCE.
22782 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22783 STRING_CHAR_ADVANCE.
22784
22785 2008-03-15 Andreas Schwab <schwab@suse.de>
22786
22787 * regex.c (re_match_2_internal): Correct matching of eight bit
22788 characters in unibyte strings.
22789
22790 2008-03-15 Martin Rudalics <rudalics@gmx.at>
22791
22792 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22793 at end of range when it coincides with the end of the buffer.
22794
22795 2008-03-14 Eli Zaretskii <eliz@gnu.org>
22796
22797 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22798
22799 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22800
22801 2008-03-14 Jason Rumney <jasonr@gnu.org>
22802
22803 * editfns.c (initial_tz): New variable.
22804 (syms_of_editfns): Initialize it.
22805 (Fset_time_zone_rule): Set it when first called.
22806 Use it when TZSTRING is nil.
22807
22808 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22809 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22810 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22811 (globals_of_w32fns): Initialize them.
22812 (compute_tip_xy): Use them to position tooltips.
22813
22814 2008-03-14 Glenn Morris <rgm@gnu.org>
22815
22816 * emacs.c (main): Revert previous change.
22817 (standard_args): Revert -internal-script back to -scriptload,
22818 and remove the long-option form.
22819
22820 2008-03-13 Glenn Morris <rgm@gnu.org>
22821
22822 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22823 Remove option -enable-font-backend.
22824
22825 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22826
22827 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22828
22829 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22830
22831 * xterm.c (x_connection_closed): For GTK: If this is the last
22832 terminal just exit without closing the display.
22833
22834 2008-03-11 Jason Rumney <jasonr@gnu.org>
22835
22836 * w32font.c (w32font_full_name): Use floor to round.
22837
22838 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22839
22840 * sound.c (alsa_configure): Declare vol at beginning of block.
22841
22842 * fontset.c (Ffontset_info): Remove extra semicolon.
22843
22844 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22845
22846 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22847 size of resulting string.
22848
22849 2008-03-10 Jason Rumney <jasonr@gnu.org>
22850
22851 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22852
22853 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22854
22855 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22856 Don't pretend as if characters with display property haven't been
22857 consumed for string-replacing-string case.
22858
22859 2008-03-08 Kim F. Storm <storm@cua.dk>
22860
22861 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22862 (get_next_display_element, next_element_from_string)
22863 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22864
22865 2008-03-08 Andreas Schwab <schwab@suse.de>
22866
22867 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22868
22869 2008-03-06 Jason Rumney <jasonr@gnu.org>
22870
22871 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22872 when charset not specified. Only translate ANSI to unicode when
22873 font_type is truetype.
22874 (w32font_coverage_ok): New function.
22875 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22876
22877 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22878
22879 * lread.c (Fread_char): Resolve modifiers.
22880 (Fread_char_exclusive): Likewise.
22881
22882 * character.c (char_resolve_modifier_mask): New function.
22883 (char_string): Use char_resolve_modifier_mask.
22884 (Fchar_resolve_modifiers): New function.
22885 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22886 function.
22887
22888 2008-03-04 Jason Rumney <jasonr@gnu.org>
22889
22890 * makefile.w32-in: Always include w32font.c in the build.
22891 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22892
22893 2008-03-04 Andreas Schwab <schwab@suse.de>
22894
22895 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22896 (versionclean): Likewise.
22897
22898 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
22899
22900 * .cvsignore: Add oo.
22901
22902 2008-03-03 Andreas Schwab <schwab@suse.de>
22903
22904 * coding.c (decode_coding_object): Inhibit gap shrinking while
22905 decoding in place.
22906
22907 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22908
22909 * w32term.c: Remove unused include "gnu.h".
22910 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22911
22912 * gnu.h: Rename to ...
22913 * emacs-icon.h: ... this.
22914 * xterm.c: Use emacs-icon.h instead of gnu.h.
22915 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22916
22917 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
22918
22919 * w32font.c: Include math.h.
22920
22921 2008-03-03 Jason Rumney <jasonr@gnu.org>
22922
22923 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22924 Compute options separately.
22925 (w32font_open_internal): Set glyph_idx before caching metrics.
22926
22927 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22928 Define if system headers don't.
22929 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22930 (w32font_encode_char): Don't declare here.
22931
22932 * w32font.c (Quniscribe, QCformat): New symbols.
22933 (syms_of_w32font): Define them.
22934 (w32font_has_char): Indicate uncertainty.
22935 (w32font_encode_char): Encode as glyph point. Make static.
22936 (recompute_cached_metrics): New function.
22937 (w32font_open_internal): Use it. Set font to use glyph points
22938 initially. Set format based on type of font.
22939 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22940 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22941 on it. Set format based on information available here.
22942 (add_font_entity_to_list): Identify backend based on opentype_only.
22943
22944 2008-03-02 Andreas Schwab <schwab@suse.de>
22945
22946 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22947
22948 * coding.c (decode_coding_big5, produce_chars):
22949 Fix typos in last change.
22950
22951 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22952
22953 * gnu.h: New icon.
22954
22955 2008-03-02 Kenichi Handa <handa@m17n.org>
22956
22957 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22958 `dos', don't decode '\r' if that is the last in the source.
22959 (decode_coding_utf_16, decode_coding_emacs_mule)
22960 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22961 (decode_coding_raw_text, decode_coding_charset): Likewise.
22962 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22963
22964 2008-03-01 Jason Rumney <jasonr@gnu.org>
22965
22966 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22967
22968 2008-03-01 Kim F. Storm <storm@cua.dk>
22969
22970 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22971
22972 2008-03-01 Jason Rumney <jasonr@gnu.org>
22973
22974 * w32font.c (w32font_full_name): New function.
22975 (w32font_open_internal): Use it.
22976
22977 2008-03-01 Kim F. Storm <storm@cua.dk>
22978
22979 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22980
22981 2008-03-01 Jason Rumney <jasonr@gnu.org>
22982
22983 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22984
22985 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22986
22987 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22988 xg_frame_resized when the event is for the edit widget.
22989
22990 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
22991
22992 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22993 set_char_size.
22994 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
22995 operations on widgets here. Just set frame size if needed.
22996 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22997 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22998 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22999 the whole frame.
23000 (xg_create_tool_bar): Move attachment of the tool bar to
23001 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
23002 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
23003
23004 2008-03-01 Jason Rumney <jasonr@gnu.org>
23005
23006 * w32fns.c (w32_msg_pump): Disable debug code.
23007
23008 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23009
23010 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
23011
23012 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23013
23014 * xdisp.c (next_overlay_string): Don't set
23015 overlay_strings_at_end_processed_p if we're currently reading from
23016 a display string.
23017
23018 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
23019
23020 * xdisp.c (get_overlay_strings_1): Fix typo.
23021
23022 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23023
23024 * xdisp.c (get_overlay_strings_1): Add missing argument type.
23025
23026 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
23027
23028 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23029
23030 * xdisp.c (display_mode_element): Cancel the previous change.
23031 (decode_mode_spec): Likewise.
23032 (handle_auto_composed_prop): Don't make composition if it->string
23033 is a string.
23034
23035 2008-02-27 Kim F. Storm <storm@cua.dk>
23036
23037 * lisp.h (GLYPH): Change type from int to struct with separate char
23038 and face_id members.
23039 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23040 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23041 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23042 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
23043 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
23044 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23045 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23046 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23047 handle new Lisp glyph code encoding, either an integer or a cons.
23048
23049 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23050 (GLYPH_ALIAS): Delete.
23051 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23052 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23053 (GLYPH_FROM_CHAR): Replace macro by ...
23054 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
23055
23056 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23057 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23058 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
23059 (GLYPH_INVALID_P): New macro.
23060 (spec_glyph_lookup_face): Update prototype.
23061
23062 * dispnew.c (line_draw_cost): Adapt to new glyph type.
23063 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23064 new glyph code encoding.
23065 (spec_glyph_lookup_face): No return value; update passed glyph instead.
23066 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23067
23068 * xdisp.c (get_next_display_element, next_element_from_display_vector):
23069 Adapt to new glyph type and new glyph code encoding.
23070
23071 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23072
23073 * indent.c (current_column, current_column_1, Fmove_to_column)
23074 (compute_motion): Adapt to new glyph code encoding.
23075
23076 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23077
23078 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
23079
23080 * process.c (wait_reading_process_output): Check for window
23081 changes caused by timers.
23082 Suggested by Johan Bockgård.
23083
23084 2008-02-27 Glenn Morris <rgm@gnu.org>
23085
23086 * emacs.c (USAGE1): Add `--disable-font-backend'.
23087
23088 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23089
23090 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23091 is made to the buffer.
23092
23093 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23094
23095 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23096 (face_at_string_position):
23097 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23098 (face_at_string_position):
23099 * xdisp.c (display_string, next_overlay_change):
23100 * buffer.h (overlays_at):
23101 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23102 Update callers.
23103
23104 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
23105
23106 * editfns.c (Fformat): Doc fix.
23107
23108 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
23109
23110 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23111 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23112 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23113
23114 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23115
23116 * buffer.c (Fbuffer_swap_text): New function.
23117 (syms_of_buffer): Defsubr it.
23118
23119 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
23120
23121 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23122
23123 2008-02-25 Jason Rumney <jasonr@gnu.org>
23124
23125 * w32font.c (w32font_draw): Draw one character at a time when padding.
23126
23127 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23128
23129 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23130 Handle a nil arg. Use run_window_configuration_change_hook.
23131 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23132 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23133 Use run_window_configuration_change_hook.
23134
23135 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23136
23137 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23138 1-pixel width.
23139
23140 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23141
23142 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23143 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23144 if the glyph in the font is zero pixel with.
23145
23146 * dispextern.h (struct glyph_string): New member padding_p.
23147
23148 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23149
23150 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23151
23152 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23153
23154 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23155
23156 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23157
23158 2008-02-25 Jason Rumney <jasonr@gnu.org>
23159
23160 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23161
23162 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23163
23164 Allow fine-grained image-cache flushing.
23165 * dispextern.h (struct image): Add `dependencies' field.
23166 (clear_image_caches): Change arg to Lisp_Object.
23167 * image.c (make_image): Initialize `dependencies' field.
23168 (clear_image_cache): Change arg to allow fine-grained flushing.
23169 Perform the flush even if image-cache-eviction-delay is nil.
23170 (clear_image_caches): Change arg to Lisp_Object.
23171 (Fclear_image_cache): Expand meaning of the argument.
23172 (mark_image): Mark `dependencies' field.
23173 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23174 (lface_hash): Use XHASH rather than XFASTINT.
23175 (face_at_buffer_position): Fix int -> EMACS_INT position.
23176 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23177 (select_frame_for_redisplay): Remove code duplication.
23178 (redisplay_internal): Adapt arg to call to clear_image_caches.
23179
23180 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23181
23182 * s/vms4-0.h:
23183 * s/vms4-2.h:
23184 * s/vms4-4.h:
23185 * s/vms5-5.h: Remove, unused.
23186
23187 * s/irix5-2.h:
23188 * s/irix6-0.h:
23189 * s/riscos5.h:
23190 * s/mach-bsd4-3.h:
23191 * m/mips4.h: Remove files for obsolete systems.
23192
23193 * Makefile.in:
23194 * filelock.c:
23195 * unexmips.c:
23196 * m/hp9000s300.h:
23197 * m/iris4d.h:
23198 * s/aix3-1.h:
23199 * s/hpux.h:
23200 * s/msdos.h:
23201 * s/usg5-0.h:
23202 * s/usg5-2-2.h:
23203 * s/usg5-2.h:
23204 * s/usg5-3.h: Remove references to obsolete variables.
23205
23206 * s/irix5-0.h: Remove, move all the contents ...
23207 * s/irix6-5.h: ... here. Simplify.
23208 * config.in: Regenerate.
23209
23210 2008-02-24 Jason Rumney <jasonr@gnu.org>
23211
23212 * w32term.c (x_draw_glyph_string_background): Clear the background
23213 manually when cleartype is in use.
23214 (x_draw_glyph_string_foreground): Draw text transparently when
23215 cleartype is in use.
23216
23217 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23218 a font into it unless we have to.
23219
23220 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23221
23222 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23223 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
23224
23225 2008-02-18 Jason Rumney <jasonr@gnu.org>
23226
23227 * w32fns.c (Fw32_shell_execute): Encode parameters.
23228
23229 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23230
23231 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23232
23233 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
23234
23235 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23236
23237 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23238
23239 * xterm.c (x_set_offset): Don't change the gravity if
23240 CHANGE_GRAVITY is -1.
23241
23242 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
23243
23244 * fileio.c (auto_save_error_occurred): New var.
23245 (auto_save_error): Set it.
23246 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23247 error occurred.
23248
23249 2008-02-23 Eli Zaretskii <eliz@gnu.org>
23250
23251 * w32.c (globals_of_w32): Add initializations for
23252 g_b_init_get_sid_sub_authority and
23253 g_b_init_get_sid_sub_authority_count.
23254
23255 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23256
23257 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23258 (font_parse_xlfd): Use them for sanity check.
23259 (Finternal_set_font_style_table): Make sure the table is bijective.
23260
23261 Consolidate the image_cache to the terminal struct.
23262 * termhooks.h (P_): Remove redundant def.
23263 (struct terminal): New field `image_cache'.
23264 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23265 of FRAME_X_IMAGE_CACHE.
23266 * xterm.h (struct x_display_info): Remove image_cache field.
23267 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23268 * w32term.h (struct w32_display_info): Remove image_cache field.
23269 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23270 * macterm.h (struct mac_display_info): Remove image_cache field.
23271 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23272 * xterm.c (x_term_init):
23273 * w32term.c (w32_term_init):
23274 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23275 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23276 Remove declarations.
23277 (clear_image_caches, mark_image_cache): New declarations.
23278 * xfaces.c (clear_face_cache):
23279 * xdisp.c (redisplay_internal): Use clear_image_caches.
23280 * image.c (clear_image_cache): Don't check that a frame is on
23281 a window-system before checking if it shares the same cache.
23282 (clear_image_caches): New function.
23283 (Fclear_image_cache): Use it.
23284 (mark_image): Move from allo.c.
23285 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23286 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23287 (mark_object): Don't call mark_image_cache for frames.
23288 (mark_terminals): Call mark_image_cache.
23289
23290 * lisp.h (Fdelete_terminal): Declare.
23291
23292 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23293 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23294 wrong_type_argument.
23295
23296 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23297
23298 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23299 malayalam.el, and tamil.el. Add sinhala.el.
23300
23301 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23302
23303 * xterm.c (x_connection_closed): Consolidate identical tests.
23304 (x_delete_terminal): Don't crash if called via x_connection_closed.
23305
23306 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23307
23308 * xdisp.c (decode_mode_spec): New arg string.
23309 (display_mode_element): Adjust for the above change.
23310
23311 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23312
23313 * callint.c (Fcall_interactively): Use AREF.
23314
23315 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23316
23317 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23318
23319 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23320
23321 * xfns.c (Fx_show_tip): Set string to " " if empty.
23322
23323 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23324
23325 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23326 with Qt.
23327
23328 2008-02-17 Kenichi Handa <handa@m17n.org>
23329
23330 * ftfont.c (ftfont_shape): Return Lispy number.
23331
23332 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23333 for GCs.
23334 (Finternal_set_font_selection_order): Call font_update_sort_order
23335 only when enable_font_backend is set.
23336 (realize_x_face): Set face->font_info to that of default face only
23337 when enable_font_backend is set.
23338
23339 * xdisp.c (handle_composition_prop): Set it->c to the fist
23340 character of the composed region.
23341 (fill_composite_glyph_string): Set base_face->font_info to
23342 s->font_info. Get a face for ascii from base_face->ascii_face.
23343 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23344 with a face already decided.
23345 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23346 non-negative.
23347 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23348 call font_prepare_composition unconditionally.
23349
23350 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23351
23352 * xterm.h (struct x_display_info): New member font.
23353
23354 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23355 (x_set_mouse_face_gc, x_new_font): Likewise.
23356 (x_term_init): Setup display_info->font.
23357 (x_delete_terminal): Free display_info->font.
23358
23359 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23360
23361 * ftxfont.c (ftxfont_default_fid): Delete it.
23362 (ftxfont_open): Set xfont->fid to 0.
23363 (ftxfont_end_for_frame): Clear data specific to the frame and the
23364 font-driver.
23365
23366 * xftfont.c (xftfont_default_fid): Delete it.
23367 (xftfont_open): Set xfont->fid to 0.
23368
23369 * fontset.c (FONTSET_OBJLIST): New macro.
23370 (fontset_find_font): Update font-object list of the fontset.
23371 (free_realized_fontset): New function.
23372 (free_face_fontset): Call free_realized_fontset.
23373 (Ffont_info): Call font_close_object only when enable_font_backend
23374 is set.
23375
23376 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23377 [HAVE_NTGUI]: Include w32term.h.
23378 [MAC_OS]: Include macterm.ch.
23379 (font_otf_ValueRecord): Use make_number.
23380 (font_finish_cache): Fix handling of reference count.
23381 (font_clear_cache): Update num_fonts.
23382 (font_open_entity): Update smallest_char_width and
23383 smallest_font_height of the frame.
23384 (font_close_object): Update num_fonts.
23385 (Fclear_font_cache): Fix finding the target cache data.
23386
23387 2008-02-16 Glenn Morris <rgm@gnu.org>
23388
23389 * fontset.c (Finternal_char_font): Fix compilation warning.
23390
23391 2008-02-16 Eli Zaretskii <eliz@gnu.org>
23392
23393 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23394 instead of char arrays. Enlarge the size of array passed to
23395 get_token_information.
23396
23397 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23398 warnings.
23399
23400 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23401
23402 * .gdbinit: Don't set `args', it breaks gdb --args.
23403
23404 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23405
23406 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23407 within a narrowed buffer.
23408
23409 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23410
23411 * coding.c (decode_coding_object, encode_coding_object):
23412 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23413
23414 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23415
23416 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23417 hardcoding 1.
23418 (detect_coding_system):
23419 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23420 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23421 * insdel.c (insert_from_gap):
23422 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23423 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23424 (string_to_multibyte):
23425 * character.c (chars_in_text, multibyte_chars_in_text):
23426 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23427
23428 * character.h (FETCH_STRING_CHAR_ADVANCE)
23429 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23430 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23431 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23432
23433 * casefiddle.c (casify_region): Only call after-change and composition
23434 functions on the part of the region that was changed.
23435
23436 * keyboard.c (read_avail_input):
23437 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23438
23439 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23440
23441 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23442 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23443
23444 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
23445
23446 * w32menu.c (push_submenu_start, push_submenu_end)
23447 (push_left_right_boundary, push_menu_pane, push_menu_item):
23448 * keyboard.c (read_key_sequence): Don't pass args with side effects
23449 to AREF, it fails when compiling with -DENABLE_CHECKING.
23450
23451 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23452
23453 * Makefile.in (${lispsource}international/charprop.el):
23454 Delete this target.
23455
23456 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23457 emacs-unicode-2.
23458
23459 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23460
23461 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23462
23463 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23464
23465 * frame.c (Qnoelisp): New symbol.
23466 (syms_of_frame): Initialize it.
23467 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23468 harmless Elisp code, from a strong `force' from x_connection_closed.
23469 * frame.h (Qnoelisp): Declare.
23470 * xterm.c (x_connection_closed): Pass `noelisp'.
23471
23472 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23473 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23474 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23475 rather than `int' for the type of `type'.
23476
23477 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23478
23479 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23480
23481 * Makefile.in (GNUC): Remove support for gcc-1.x.
23482
23483 2008-02-10 Richard Stallman <rms@gnu.org>
23484
23485 * lisp.h (ASET): Use AREF, not ASLOT.
23486
23487 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23488
23489 * lisp.h (ASET): Check bounds.
23490
23491 2008-02-10 Glenn Morris <rgm@gnu.org>
23492
23493 * buffer.c (mode-name): Doc fix.
23494
23495 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23496
23497 * Makefile.in:
23498 * emacs.c:
23499 * gmalloc.c:
23500 * keyboard.c:
23501 * lisp.h:
23502 * m/ibm370aix.h:
23503 * process.c:
23504 * regex.c:
23505 * s/hpux.h:
23506 * sysdep.c:
23507 * sysselect.h:
23508 * systty.h:
23509 * unexec.c:
23510 * w32term.c:
23511 * xsmfns.c:
23512 * xterm.c: Remove code that deals with obsolete variables.
23513
23514 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23515
23516 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23517 nothing else needs it anymore.
23518
23519 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23520
23521 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23522 instead of unibyte_char_to_multibyte.
23523
23524 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23525
23526 * s/gnu-linux.h: Remove commented out code.
23527
23528 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23529
23530 * Makefile.in: Update what RMS says about using autoconf.
23531 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23532 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23533 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23534 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23535
23536 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23537
23538 * keymap.c (Fkey_description): Move side effect outside of macro call.
23539
23540 * xfaces.c (Finternal_make_lisp_face):
23541 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23542
23543 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23544 (syms_of_fontset): Use ASET.
23545
23546 * fns.c (concat): Move side effect outside of macro call.
23547 (hash_clear): Use ASET.
23548
23549 2008-02-08 Richard Stallman <rms@gnu.org>
23550
23551 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23552 If FORCE, and frame has a surrogate minibuffer for another frame,
23553 delete the other frame first.
23554
23555 2008-02-07 Timo Savola <timo.savola@iki.fi>
23556
23557 * xterm.c (x_detect_focus_change): Handle embed client message.
23558 (handle_one_xevent): Ditto.
23559 (handle_one_xevent): If embedded and we get a button press/release,
23560 request focus.
23561 (xembed_set_info, xembed_send_message): New functions.
23562 (x_make_frame_visible): Call xembed_set_info if embedded.
23563 (x_make_frame_invisible): Call xembed_set_info if embedded.
23564 (x_term_init): Initialize Xatom_XEMBED.
23565 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23566 (x_iconify_frame): Ditto.
23567
23568 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23569 (enum xembed_info, enum xembed_message, enum xembed_focus)
23570 (enum xembed_modifier, enum xembed_accelerator): New.
23571 (xembed_set_info, xembed_send_message): Declare.
23572 (FRAME_X_EMBEDDED_P): New.
23573
23574 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23575 gtk_plug_new.
23576
23577 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23578 window ID of a frame.
23579 (x_window): Reparent frame if embedded.
23580 (Fx_create_frame): Don't set border width if embedded.
23581
23582 * emacs.c (USAGE3): Add --parent-id.
23583 (standard_args): Ditto.
23584
23585 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23586
23587 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23588
23589 2008-02-07 Jim Meyering <meyering@redhat.com>
23590
23591 Use "do...while (0)", not "if (1)...else" in macro definitions.
23592 The latter provokes a warning from gcc about the empty else, when
23593 followed by ";". Also, without that trailing semicolon, it would
23594 silently swallow up any following statement.
23595 * syntax.h (SETUP_SYNTAX_TABLE)
23596 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23597 * buffer.h (DECODE_POSITION): Likewise.
23598 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23599 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23600 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23601 (FETCH_CHAR_ADVANCE): Likewise.
23602 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23603
23604 2008-02-07 Jim Meyering <meyering@redhat.com>
23605
23606 * lread.c [lint]: Don't include <sys/inode.h>.
23607
23608 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23609
23610 * xselect.c (x_handle_dnd_message):
23611 * xmenu.c (digest_single_submenu, xmenu_show):
23612 * xdisp.c (with_echo_area_buffer_unwind_data)
23613 (format_mode_line_unwind_data, unwind_format_mode_line)
23614 (display_menu_bar):
23615 * eval.c (Ffetch_bytecode):
23616 * doc.c (store_function_docstring):
23617 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23618 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23619 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23620
23621 2008-02-07 Kenichi Handa <handa@m17n.org>
23622
23623 * ftxfont.c (ftxfont_open): Don't set
23624 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23625
23626 * ftfont.c (ftfont_open): Fix previous change.
23627
23628 2008-02-06 Jason Rumney <jasonr@gnu.org>
23629
23630 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23631 Use cached metrics for ASCII characters.
23632 (w32font_open_internal): Don't set font's owning_frame.
23633 Cache metrics for ASCII characters.
23634
23635 * w32font.h (struct w32font_info): Add ascii_metrics.
23636 Remove owning_frame.
23637
23638 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23639
23640 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23641 to negative value.
23642
23643 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23644
23645 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23646
23647 * charset.c (syms_of_charset): Set QCtest and Qeq.
23648
23649 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23650
23651 * process.c (Fstart_process):
23652 * callproc.c (Fcall_process): Handle the case where
23653 Funhandled_file_name_directory returns nil.
23654
23655 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23656 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23657 * font.c (check_gstring): Use them and AREF to access the vector before
23658 we know it's really a gstring.
23659 (Ffont_shape_text): Fix typo.
23660 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
23661
23662 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23663 Declare.
23664
23665 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23666
23667 2008-02-05 Jason Rumney <jasonr@gnu.org>
23668
23669 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23670 Set smallest_font_height and smallest_char_width in display info.
23671
23672 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23673
23674 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23675
23676 2008-02-05 Miles Bader <miles@gnu.org>
23677
23678 * xfaces.c (get_lface_attributes, merge_named_face)
23679 (lookup_named_face, lookup_derived_face, realize_named_face):
23680 Revert 2008-02-01 change by cyd@stupidchicken.com.
23681
23682 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23683
23684 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23685 fallback fonts.
23686 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23687
23688 2008-02-04 Jason Rumney <jasonr@gnu.org>
23689
23690 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23691 set full_name.
23692 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23693
23694 2008-02-03 Jason Rumney <jasonr@gnu.org>
23695
23696 * makefile.w32-in (OBJ1): Include font.o here.
23697 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23698
23699 2008-02-02 Jason Rumney <jasonr@gnu.org>
23700
23701 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23702
23703 2008-02-01 Jason Rumney <jasonr@gnu.org>
23704
23705 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23706
23707 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23708
23709 2008-02-01 Andreas Schwab <schwab@suse.de>
23710
23711 * Makefile.in (shortlisp, lisp): Update for rename of
23712 ../lisp/language/myanmar.el.
23713
23714 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
23715
23716 * xfaces.c (get_lface_attributes): Delete function.
23717 (merge_named_face, lookup_named_face, lookup_derived_face)
23718 (realize_named_face): Call lface_from_face_name directly, and use
23719 the fact that merge_face_vectors does not alter its FROM argument.
23720
23721 2008-02-01 Jason Rumney <jasonr@gnu.org>
23722
23723 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23724 input in the default locale. Handle non-Unicode multibyte input.
23725
23726 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23727
23728 * fontset.c (reorder_font_vector): Exclude nil elements from the
23729 font group. Don't try multiple fonts.
23730 (fontset_font): Adjust for the above change.
23731 (Finternal_char_font): Return nil if the found font doesn't
23732 contain the character ch.
23733
23734 * Makefile.in (lisp, shortlisp): Add cham.el.
23735
23736 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23737
23738 * font.h (FONTP): Make it return 1 also for a font-object.
23739
23740 * .gdbinit (xfontset): New function.
23741
23742 * font.c (font_find_for_lface): Check if the character C is
23743 supported or not only for the first font.
23744
23745 * fontset.c (reorder_font_vector): Fix typo.
23746 (fontset_find_font): Don't add a font-spec specifying a script.
23747 Use 0 (not Qt) for the indication of empty font-group. Change the
23748 format of RFONT-DEF. Return Qt if no font in the font-group
23749 support the character.
23750 (fontset_font): Adjust for the above change. If no font was
23751 found the character, remember that.
23752 (face_for_char): Adjust for the change of RFONT-DEF.
23753 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23754 no font for the target.
23755 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23756
23757 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23758
23759 * font.c (font_load_for_face): Handle the case that the font in
23760 face->lface is a string.
23761
23762 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23763
23764 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23765
23766 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23767
23768 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23769 Fix previous change. If the frame is not on a window system,
23770 signal an error.
23771
23772 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23773
23774 * coding.c (decode_coding_object, encode_coding_object):
23775 Adjust marker positions after conversion.
23776
23777 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23778
23779 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23780
23781 * font.c (font_find_for_lface): Fix the handling of the return
23782 value of font_has_char.
23783 (Ffont_shape_text): Fix previous change.
23784
23785 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23786 (fontset_ref_and_range): Delete it.
23787 (fontset_find_font): Call char_table_ref_and_range instead of
23788 FONTSET_REF_AND_RANGE.
23789 (make_fontset): Don't setup font groups of Latin here.
23790 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23791 (new_fontset_from_font): Make the specified font the default for
23792 all Latin characters.
23793
23794 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23795
23796 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23797 is on a window system before accessing the fontset of the frame.
23798
23799 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23800
23801 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23802
23803 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23804 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23805
23806 * font.c (Ffont_shape_text): If the font driver doesn't have a
23807 shaper function, make zero-width glyphs to have at least one-pixel
23808 width. Fix setting of `to' field of glyphs.
23809
23810 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23811
23812 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23813 glyphs.
23814
23815 * font.h (struct font_driver): Improve docstring of member `shape'.
23816
23817 2008-02-01 Kenichi Handa <handa@m17n.org>
23818
23819 * composite.c (syms_of_composite): Fix docstring of
23820 auto-composition-function.
23821
23822 * font.h (LGLYPH_SIZE): New macro.
23823
23824 * font.c (Ffont_fill_gstring): Stop filling when a character not
23825 supported by the font is found.
23826 (Ffont_shape_text): When a shape callback function returns nil,
23827 try at most two more times with larger gstring.
23828 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23829
23830 * xdisp.c (handle_auto_composed_prop): Change the argument to
23831 auto-composition-function.
23832
23833 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23834 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23835 Lispy glyph and store it in the lgstring.
23836
23837 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23838
23839 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23840
23841 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23842
23843 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23844
23845 * fontset.c (Vfont_encoding_charset_alist): New variable.
23846 (syms_of_fontset): DEFVAR it.
23847 (reorder_font_vector, fontset_find_font): Optimize for the case of
23848 no need of reordering.
23849 (face_for_char): Map the charset property by
23850 Vfont_encoding_charset_alist.
23851
23852 2008-02-01 Jason Rumney <jasonr@gnu.org>
23853
23854 * w32font.c (logfonts_match): Don't check adstyle here.
23855 (font_matches_spec): Check here against physical font instead.
23856 (add_font_entity_to_list): Avoid some substitutions.
23857
23858 * font.c (font_parse_fcname): Default weight and slant to normal.
23859 (font_score): Prefer normal fonts if weight or slant unspecified.
23860 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23861 match freetype scores.
23862
23863 2008-02-01 Jason Rumney <jasonr@gnu.org>
23864
23865 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23866 font, as it may have been deleted.
23867 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23868 most common hyphenless variation.
23869 (logfonts_match): Check generic family.
23870 (font_matches_spec): Don't check generic family here.
23871 (fill_in_logfont): Set generic family based on adstyle.
23872
23873 * w32font.h (w32font_get_cache): Update declaration.
23874
23875 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23876
23877 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23878
23879 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23880 If none of the new drivers are available, call font_update_drivers
23881 with the old drivers.
23882
23883 * w32font.c (w32font_get_cache): Adjust the argument type.
23884
23885 * xfont.c (xfont_get_cache): Adjust the argument type.
23886
23887 * font.h (struct font_driver): Change argument type of get_cache.
23888
23889 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23890
23891 * font.c (Ffont_get): Fix arguments to Fassoc.
23892 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23893 (font_clear_cache): New function.
23894 (font_list_entities, font_matching_entity): Use font_get_cache.
23895 (font_update_drivers): Call font_clear_cache when finishing a driver.
23896
23897 * fontset.c (fontset_find_font): Fix previous change.
23898
23899 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23900
23901 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23902 dpyinfo->font_table.
23903 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23904 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23905
23906 * font.c (font_at): Handle the case that the arg C is negative.
23907 Handle the unibyte case.
23908 (Ffont_at): Call font_at with the arg C -1.
23909
23910 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23911 the position here, and call font_at with the arg C -1.
23912 Don't check the range of the existing composition at the point.
23913
23914 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23915
23916 * fontset.c (fontset_add): New args charset_id and family.
23917 Change caller.
23918 (load_font_get_repertory, fontset_find_font): Assume that
23919 font_spec is always a font-spec object.
23920 (Fset_fontset_font): Always store a font-spec object in a fontset.
23921
23922 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23923 instead of get_property_and_range.
23924
23925 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23926
23927 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23928 (xftfont_open): Don't keep locking face.
23929 (xftfont_close): Don't unlock face.
23930 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23931
23932 * fontset.c (fontset_find_font): Don't prefer a font of
23933 supplementary charset.
23934
23935 2008-02-01 Kenichi Handa <handa@m17n.org>
23936
23937 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23938 script, langsys_tag to langsys, new member script.
23939 (OTF_TAG_STR): Terminate by '\0'.
23940 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
23941 listing to the script specified in that property. Fix arg to
23942 OTF_check_features.
23943
23944 2008-02-01 Jason Rumney <jasonr@gnu.org>
23945
23946 * w32font.h: New file.
23947
23948 * w32font.c: Include it.
23949 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23950 (w32font_open): Set owning_frame.
23951 (w32font_text_extents): Use owning_frame.
23952 (struct font_callback_data): Add opentype_only field.
23953 (add_font_entity_to_list): Use it to filter fonts.
23954 Don't check against full name.
23955 (w32font_list_internal): New function.
23956 (w32font_list): Use it.
23957 (w32font_match_internal): New function.
23958 (w32font_match): Use it.
23959 (w32font_open_internal): New function.
23960 (w32font_open): Use it.
23961 (w32font_get_cache, w32font_close, w32font_has_char)
23962 (w32font_encode_char, w32font_text_extents, w32font_draw):
23963 Make non-static.
23964
23965 * makefile.w32-in (w32font.o): Depend on w32font.h.
23966
23967 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23968
23969 * charset.c (Fdefine_charset_internal): Record a supplementary
23970 charset at the tail of Vcharset_order_list.
23971
23972 * font.c (Ffont_shape_text): Fix the return value.
23973
23974 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23975
23976 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23977
23978 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23979
23980 * ftfont.c (struct OpenTypeSpec): New struct.
23981 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23982 (ftfont_get_open_type_spec): New function.
23983 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23984
23985 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23986
23987 2008-02-01 Jason Rumney <jasonr@gnu.org>
23988
23989 * w32font.c (add_font_entity_to_list): Compare only the beginning
23990 of full name.
23991
23992 2008-02-01 Kenichi Handa <handa@m17n.org>
23993
23994 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23995 Never return HANDLED_RECOMPUTE_PROPS.
23996
23997 2008-02-01 Kenichi Handa <handa@m17n.org>
23998
23999 * font.c (font_gstring_produce): Delete it.
24000
24001 * composite.h (COMPOSITION_METHOD):
24002 Handle COMPOSITION_WITH_GLYPH_STRING.
24003
24004 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24005
24006 * xfont.c (Qx): Delete.
24007 (syms_of_xfont): Don't initialize Qx.
24008
24009 * composite.h (enum composition_method):
24010 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
24011
24012 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24013
24014 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
24015 (choose_face_font): Accept new form of font-spec.
24016
24017 * frame.h (font_driver_list): Declare it unconditionally.
24018 (struct frame): Define members font_driver_list and font_data_list
24019 unconditionally.
24020
24021 * fontset.c: Include "font.h" unconditionally.
24022 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24023 (Fset_fontset_font): Accept a font-spec object.
24024
24025 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24026 PIXEL_SIZE part a wild card.
24027
24028 * dispextern.h (struct glyph_string): Define members clip and
24029 num_clips unconditionally.
24030 (struct face): Define members font_info and extra unconditionally.
24031
24032 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24033 ftfont_info only when HAVE_LIBOTF is defined.
24034
24035 2008-02-01 Andreas Schwab <schwab@suse.de>
24036
24037 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24038 and end.
24039
24040 2008-02-01 Jason Rumney <jasonr@gnu.org>
24041
24042 * w32font.c (w32font_driver): Add new fields.
24043
24044 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24045
24046 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24047 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24048 (LIBES): Add @M17N_FLT_CFLAGS@.
24049
24050 * composite.c (compose_text): Don't treat the new style
24051 composition specially.
24052
24053 * emacs.c (main): Call syms_of_font unconditionally.
24054
24055 * font.h (FONT_ENTITY_NOT_LOADABLE)
24056 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24057 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24058 (struct font_driver): New member shape.
24059 (font_registry_charsets): Extern it.
24060 (font_find_for_lface, font_prepare_composition): Adjust prototype.
24061 (font_otf_capability, font_drive_otf): Delete their externs.
24062
24063 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24064 (font_charset_alist, font_registry_charsets): Move from xfont.c
24065 and rename.
24066 (font_prop_validate_otf): New function.
24067 (font_property_table): Register it for QCotf.
24068 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24069 (font_drive_otf): Delete.
24070 (font_prepare_composition): New arg F. Adjust for the change of
24071 lispy gstring.
24072 (font_find_for_lface): New arg C.
24073 (font_load_for_face): Adjust for the change of font_find_for_lface.
24074 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24075 lispy gstring.
24076 (Ffont_shape_text): New function.
24077 (Fopen_font): If the font size is not given, use 12-pixel.
24078 (Ffont_at): New arg STRING.
24079 (syms_of_font): Initialize font_charset_alist.
24080 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24081 conditionally.
24082
24083 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24084 fonts of the same font-spec. Change the format of RFONT-DEF.
24085 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24086 Adjust for the change of RFONT-DEF.
24087 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24088
24089 * ftfont.h: New file.
24090
24091 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24092 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24093 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24094 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24095 font_otf_capability and font_drive_otf, set ftfont_shape.
24096 (ftfont_list): Adjust for the change of :otf property value.
24097 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24098 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24099 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24100 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24101 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24102 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24103
24104 * w32term.c (x_draw_composite_glyph_string_foreground):
24105 Adjust for the change of lispy gstring.
24106
24107 * xdisp.c (handle_composition_prop): Adjust for the change of
24108 lispy gstring. Call a function for auto-composition with the
24109 third arg it->window.
24110 (fill_composite_glyph_string): Adjust for the change of lispy string.
24111 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24112
24113 * xfaces.c (set_font_frame_param): Adjust for the change of
24114 font_find_for_lface.
24115
24116 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24117 (xfont_registry_charsets): Likewise. Change caller.
24118 (syms_of_xfont): Don't handle x_font_charset_alist.
24119
24120 * xftfont.c: Include "ftfont.h".
24121 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24122 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24123 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24124 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24125 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24126 Set xftfont_driver.shape to xftfont_shape.
24127
24128 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24129 the change of lispy gstring.
24130
24131 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24132
24133 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24134
24135 2008-02-01 Jason Rumney <jasonr@gnu.org>
24136
24137 * w32font.c (w32font_draw): Fill background manually.
24138
24139 2008-02-01 Jason Rumney <jasonr@gnu.org>
24140
24141 * font.c (Qfontp): Remove unused symbol.
24142 (QCantialias): New symbol.
24143 (syms_of_font): Define it.
24144 (font_property_table): Set a validator for QCantialias.
24145
24146 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24147 Define if not already.
24148 (QCfamily): Share with xfaces.c.
24149 (Qstandard, Qsubpixel, Qnatural): New symbols.
24150 (syms_of_w32font): Define them. Don't define QCfamily here.
24151 (w32_antialias_type, lispy_antialias_type): New functions.
24152 (w32_enumfont_pattern_entity): New arg requested_font.
24153 Set antialias parameter if non-default was requested.
24154 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24155
24156 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24157
24158 * lread.c (read1): Undo the previous change.
24159
24160 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24161
24162 * frame.c (Fdelete_frame): Call font_update_drivers only when
24163 USE_FONT_BACKEND is defined.
24164
24165 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24166
24167 * font.h (struct font_bitmap): New member bits_per_pixel.
24168 (struct font_driver): New members start_for_frame and end_for_frame.
24169 (struct font_data_list): New struct.
24170 (font_put_frame_data, font_get_frame_data): Extern them.
24171
24172 * frame.h (struct frame): New member font_data_list.
24173
24174 * font.c (font_update_drivers): Call driver->start_for_frame and
24175 driver->end_for_frame at proper timings.
24176 (font_put_frame_data, font_get_frame_data): New functions.
24177 (Ffont_spec): Add usage in the docstring.
24178
24179 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24180 (Fdelete_frame): Call font_update_drivers.
24181
24182 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24183 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24184 (xftfont_get_xft_draw): New function.
24185 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24186 (xftfont_end_for_frame): New function.
24187 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24188
24189 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24190 Change argument. Cache GCs in the per-frame data.
24191 (struct ftxfont_frame_data): New struct.
24192 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24193 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24194 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24195 (ftxfont_end_for_frame): New function.
24196 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24197
24198 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24199
24200 2008-02-01 Kenichi Handa <handa@m17n.org>
24201
24202 * xselect.c (Vselection_coding_system)
24203 (Vnext_selection_coding_system): Delete them.
24204 (syms_of_xselect): Don't declare selection-coding-system and
24205 next-selection-coding-system. They are declared in select.el.
24206
24207 2008-02-01 Jason Rumney <jasonr@gnu.org>
24208
24209 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24210
24211 * w32fns.c: Include imm.h.
24212 (get_composition_string_fn, get_ime_context_fn): New optional
24213 system functions.
24214 (globals_of_w32fns): Load them from imm32.dll.
24215 (ignore_ime_char): New flag.
24216 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24217 WM_IME_ENDCOMPOSITION messages.
24218
24219 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24220 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24221
24222 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24223
24224 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24225 (READCHAR_REPORT_MULTIBYTE): New macro.
24226 (readchar): New 2nd arg MULTIBYTE.
24227 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24228 Make symbol's name multibyte according to the multibyteness of the
24229 source.
24230
24231 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24232
24233 * xfaces.c (face_for_overlay_string): Call lookup_face with
24234 correct arguments (fix of synching with the trunk).
24235
24236 2008-02-01 Kenichi Handa <handa@m17n.org>
24237
24238 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24239 (font_prop_validate_non_neg, font_prop_validate_spacing):
24240 Delete argument prop_index.
24241 (font_property_table): Change arguments to validater. Change Callers.
24242 (font_lispy_object): Delete.
24243 (font_at): Use font_find_object instead fo font_lispy_object.
24244
24245 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24246
24247 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24248 and file names.
24249
24250 2008-02-01 Jason Rumney <jasonr@gnu.org>
24251
24252 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24253 (font_matches_spec): Remove debug output.
24254 (add_font_entity_to_list): Avoid using substituted fonts.
24255
24256 2008-02-01 Jason Rumney <jasonr@gnu.org>
24257
24258 * doc.c (Fsnarf_documentation):
24259 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24260
24261 2008-02-01 Miles Bader <miles@gnu.org>
24262
24263 * dispextern.h (struct glyph_row): Only define "clip" field if
24264 HAVE_WINDOW_SYSTEM is defined.
24265
24266 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24267
24268 Fix up multi-tty merge.
24269
24270 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24271 and indentation.
24272
24273 * xfaces.c (free_realized_face, clear_face_gcs):
24274 Include font_done_for_face in the input_blocked section, just in case.
24275
24276 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24277 (get_char_face_and_encoding): Undo last change and remove the *other*
24278 duplicate definition (i.e. keep the one that's better scoped and that
24279 includes code for the font-backend).
24280
24281 * terminal.c (create_terminal): Default keyboard_coding to
24282 `no-conversion' and terminal_coding to `undecided'.
24283
24284 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24285
24286 * fontset.c (free_realized_fontsets): Check that the table entry does
24287 contain a fontset before trying to compare it to `base'.
24288
24289 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24290 syms_of_charset, and syms_of_coding earlier because init_window_once
24291 now needs Vcoding_system_hash_table to be setup.
24292
24293 * coding.h (default_buffer_file_coding): Remove.
24294
24295 * coding.c (default_buffer_file_coding): Remove.
24296 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24297 than ->symbol, and use the terminal-local coding system.
24298 (syms_of_coding): Don't setup the coding-systems that are not
24299 terminal-local.
24300 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24301
24302 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24303 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24304
24305 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24306 in chartab.c and were re-added here by mistake.
24307 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24308
24309 * doc.c (Fsnarf_documentation):
24310 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24311 src to etc.
24312
24313 * ChangeLog.10: Add mistakenly removed entry.
24314
24315 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24316
24317 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24318
24319 2008-02-01 Miles Bader <miles@gnu.org>
24320
24321 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24322 Add extra args to FACE_FOR_CHAR.
24323
24324 2008-02-01 Kenichi Handa <handa@m17n.org>
24325
24326 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24327 in sequence.
24328
24329 * chartab.c (map_sub_char_table, map_char_table): If the range
24330 contains just one character, call the function with that character
24331 even if the depth is not 3.
24332
24333 2008-02-01 Jason Rumney <jasonr@gnu.org>
24334
24335 * w32font.c (w32font_text_extents): Calculate metrics for the
24336 whole string.
24337
24338 2008-02-01 Jason Rumney <jasonr@gnu.org>
24339
24340 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24341
24342 2008-02-01 Jason Rumney <jasonr@gnu.org>
24343
24344 * w32term.c (x_set_glyph_string_clipping):
24345 Use get_glyph_string_clip_rects.
24346 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24347 Adjust for the change of struct glyph_string.
24348
24349 * w32font.c (w32font_draw): Do clipping here.
24350
24351 2008-02-01 Kenichi Handa <handa@m17n.org>
24352
24353 * xftfont.c (xftfont_draw): Adjust for the change of struct
24354 glyph_string.
24355
24356 * xterm.c (x_set_glyph_string_clipping):
24357 Use get_glyph_string_clip_rects.
24358 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24359 Adjust for the change of struct glyph_string.
24360
24361 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24362 the resulting clip(s}.
24363 (expose_overlaps): Add arg r. Change callers. Set it to
24364 row->clip temporarily.
24365 (expose_window): Redraw rows overlapping the exposed area.
24366
24367 * dispextern.h (struct glyph_row): New member clip.
24368 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24369 clip_height, new member clip, and num_clips.
24370
24371 2008-02-01 Kenichi Handa <handa@m17n.org>
24372
24373 * data.c (Fchar_or_string_p): Fix docstring.
24374
24375 2008-02-01 Kenichi Handa <handa@m17n.org>
24376
24377 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24378 create a temporary XftDraw object.
24379
24380 2008-02-01 Kenichi Handa <handa@m17n.org>
24381
24382 * font.c (Ffontp): Fix docstring.
24383
24384 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24385 strong evidence of ISO-2022.
24386
24387 2008-02-01 Kenichi Handa <handa@m17n.org>
24388
24389 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24390 SYNTAX_ENTRY_FOLLOW_PARENT.
24391
24392 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24393
24394 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24395 its type.
24396 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24397 Update to the new type of weak_hash_tables and next_weak.
24398
24399 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24400 a plain C pointer to Lisp_Hash_Table.
24401
24402 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24403 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24404 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24405 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24406 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24407 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24408 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24409 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24410 (GC_EQ): Remove since they've been identical to their non-GC_
24411 alter-egos ever since the markbit was eradicated.
24412
24413 * alloc.c:
24414 * buffer.c:
24415 * buffer.h:
24416 * data.c:
24417 * fileio.c:
24418 * filelock.c:
24419 * fns.c:
24420 * frame.h:
24421 * lisp.h:
24422 * macterm.c:
24423 * print.c:
24424 * process.c:
24425 * w32fns.c:
24426 * w32menu.c:
24427 * w32term.c:
24428 * xfns.c:
24429 * xmenu.c:
24430 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24431
24432 2008-02-01 Kenichi Handa <handa@m17n.org>
24433
24434 * chartab.c (map_sub_char_table): Make it work for the top-level
24435 char-table. Fix handling of parent char-table.
24436 (map_char_table): Adjust for the above change.
24437
24438 2008-02-01 Jason Rumney <jasonr@gnu.org>
24439
24440 * w32font.c (Qgdi): Rename from Qw32.
24441
24442 2008-02-01 Jason Rumney <jasonr@gnu.org>
24443
24444 * w32bdf.c (get_quoted_string): Make function static.
24445
24446 2008-02-01 Kenichi Handa <handa@m17n.org>
24447
24448 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24449 bigger ascent and descent than those of the font, use them as
24450 font's ascent and descent.
24451
24452 2008-02-01 Kenichi Handa <handa@m17n.org>
24453
24454 * Makefile.in (${lispsource}international/charprop.el): Move this
24455 target within "#ifdef HAVE_UNIDATA" and "#endif".
24456
24457 2008-02-01 Kenichi Handa <handa@m17n.org>
24458
24459 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24460 (shortlisp): Add ../lisp/language/tai-viet.el.
24461
24462 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
24463
24464 * Makefile.in (${lispsource}international/charprop.el): Depend on
24465 temacs${EXEEXT}.
24466
24467 2008-02-01 Jason Rumney <jasonr@gnu.org>
24468
24469 * w32font.c (w32font_close): Delete the GDI font object.
24470
24471 * w32menu.c: Include character.h.
24472
24473 * w32proc.c: Likewise.
24474
24475 * w32select.c: Likewise.
24476
24477 * makefile.w32-in (w32proc.o): Depend on character.h.
24478
24479 2008-02-01 Jason Rumney <jasonr@gnu.org>
24480
24481 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24482
24483 * w32menu.c (syms_of_w32menu): Likewise.
24484
24485 * w32proc.c (syms_of_ntproc): Likewise.
24486
24487 * w32select.c (syms_of_w32select): Likewise.
24488
24489 * w32term.c (syms_of_w32term): Likewise.
24490
24491 2008-02-01 Jason Rumney <jasonr@gnu.org>
24492
24493 * w32font.c (w32font_draw): Delete brush after using it.
24494
24495 2008-02-01 Jason Rumney <jasonr@gnu.org>
24496
24497 * w32font.c (w32font_open): Don't set font_idx.
24498 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24499 to font settings.
24500 (w32font_draw): Fill background explicitly.
24501
24502 2008-02-01 Jason Rumney <jasonr@gnu.org>
24503
24504 * w32term.c (w32_initialize): Don't call w32font_initialize.
24505
24506 * w32font.c (w32font_info): Remove subranges.
24507 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24508 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24509 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24510 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24511 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24512 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24513 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24514 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24515 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24516 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24517 New symbols.
24518 (font_callback_data): New struct.
24519 (w32font_list, w32font_match): Use it.
24520 (w32font_open): Don't populate subranges.
24521 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24522 (w32font_encode_char): Always return unicode code-point as-is.
24523 (w32font_text_extents): Supply a transformation matrix to
24524 GetGlyphOutline. Never look up by glyph index. Avoid looping
24525 twice. Use unicode version of GetTexExtentPoint32 instead of
24526 glyph index version.
24527 (set_fonts_frame): Remove.
24528 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24529 set frame parameter. Use backward compatible fake foundries.
24530 Save generic family in extra slot under QCfamily. Make width slot
24531 constant. Save QCspacing value. Save list of scripts instead of
24532 binary subranges.
24533 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24534 (add_font_entity_to_list): Use font_callback_data struct.
24535 Filter unwanted fonts.
24536 (add_one_font_entity_to_list): Use font_callback_data struct.
24537 (w32_registry): Default to iso10646_1.
24538 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24539 string font registries. Don't fill in font name if it is a generic
24540 family name, fill family instead. Use spacing, family and script
24541 extra info to fill pitch, family and charset fields.
24542 (list_all_matching_fonts): Use font_callback_data struct.
24543 (unicode_range_for_char): Remove.
24544 (font_supported_scripts): New function.
24545 (w32font_initialize): Remove.
24546 (syms_of_w32font): Update which symbols are defined.
24547
24548 2008-02-01 Jason Rumney <jasonr@gnu.org>
24549
24550 * font.c (font_pixel_size): Reverse assq_no_quit args.
24551
24552 * w32term.h (FONT_WIDTH): Report max width, not average.
24553 (FONT_MAX_WIDTH): Remove.
24554 (FONT_AVG_WIDTH): New macro.
24555
24556 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24557 redefinition of FONT_WIDTH.
24558
24559 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24560 (w32_cache_char_metrics): Use FONT_WIDTH.
24561
24562 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24563
24564 2008-02-01 Jason Rumney <jasonr@gnu.org>
24565
24566 * w32font.c (w32font_open): Make lfHeight negative.
24567
24568 * w32fns.c (x_default_font_parameter): Use new style font name.
24569 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24570
24571 2008-02-01 Jason Rumney <jasonr@gnu.org>
24572
24573 * w32font.c (QCsubranges): New symbol.
24574 (w32font_open, w32font_has_char): Get subranges from subproperty
24575 of extra.
24576 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24577 (syms_of_w32font): Define :subranges symbol.
24578
24579 * font.c (font_put_extra): Expose externally.
24580
24581 * font.h (font_put_extra): Move declaration from font.c.
24582
24583 * font.c (Ffont_get): Use font driver to determine otf capability.
24584 (adjust_anchor): Check if driver defines anchor_point before using.
24585
24586 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24587 (w32font_draw): Use options.
24588 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24589 Fix detection of truetype fonts.
24590 (registry_to_w32_charset): Handle charsets other than iso8859-1
24591 expressed as lisp symbols.
24592 (w32_registry): Express charset as lisp symbol.
24593 (fill_in_logfont): Reverse pixel and point height logic.
24594 Don't set width here. Set quality to default.
24595
24596 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24597 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24598
24599 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24600 Remove redundant loop and allocation.
24601
24602 * makefile.w32-in (font.o, w32font.o): New objects.
24603 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24604 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24605
24606 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24607 STORE_XCHARB a valid l-value.
24608
24609 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24610 calculations for non-Truetype fonts.
24611 (x_draw_glyph_string): Sync with xterm.c.
24612 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24613 Remove redundant code.
24614 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24615
24616 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24617 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24618
24619 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24620 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24621
24622 * w32font.c: New file for w32 font backend.
24623
24624 2008-02-01 Kenichi Handa <handa@m17n.org>
24625
24626 * term.c: Don't include "buffer.h" twice.
24627
24628 2008-02-01 Kenichi Handa <handa@m17n.org>
24629
24630 * character.c (Funibyte_string): New function.
24631 (syms_of_character): Defsubr it.
24632
24633 2008-02-01 Jason Rumney <jasonr@gnu.org>
24634
24635 * w32term.c [USE_FONT_BACKEND]:
24636 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24637 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24638 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24639 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24640 (x_free_frame_resources): Sync with xterm.c.
24641
24642 2008-02-01 Andreas Schwab <schwab@suse.de>
24643
24644 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24645 char-table size.
24646
24647 2008-02-01 Kenichi Handa <handa@m17n.org>
24648
24649 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24650
24651 2008-02-01 Kenichi Handa <handa@m17n.org>
24652
24653 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24654 font_otf_gpos, add font_drive_otf.
24655
24656 * fontset.c (fontset_find_font): Pay attention to font size
24657 specified for a font.
24658 (reorder_font_vector): Check contents of font_def.
24659
24660 * font.c (struct otf_list): Delete it.
24661 (otf_list): Make it a lisp variable.
24662 (otf_open): Use lispy otf_list.
24663 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24664 (check_otf_features): New function.
24665 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24666 New functions.
24667 (font_drive_otf): New function merging font_otf_gsub and
24668 font_otf_gpos.
24669 (font_open_for_lface): New arg spec. Change argument order.
24670 (font_load_for_face): Adjust for the change of font_open_for_lface.
24671 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24672 Ffont_otf_gpos.
24673 (syms_of_font): Staticpro otf_list. Delete defsubr of
24674 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24675
24676 * xfaces.c (set_font_frame_param): Adjust for the change of
24677 font_open_for_lface.
24678
24679 * font.h (font_open_for_lface): Adjust prototype.
24680 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24681 member otf_drive.
24682 (font_otf_gsub, font_otf_gpos): Delete externs.
24683 (font_drive_otf): Extern it.
24684
24685 2008-02-01 Kenichi Handa <handa@m17n.org>
24686
24687 * font.c (font_at): If the window W is not on a window system,
24688 return Qnil.
24689
24690 * coding.c (produce_chars, encode_coding): Don't call
24691 insert_from_gap if no characters to produce.
24692
24693 2008-02-01 Kenichi Handa <handa@m17n.org>
24694
24695 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24696 Fclear_face_cache.
24697
24698 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24699
24700 2008-02-01 Miles Bader <miles@gnu.org>
24701
24702 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24703 Parse "--disable-font-backend" option.
24704 (standard_args): Add "--disable-font-backend" option.
24705
24706 2008-02-01 Kenichi Handa <handa@m17n.org>
24707
24708 * fontset.c (fontset_find_font): New function.
24709 (fontset_font): Use fontset_find_font.
24710 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24711 Register the specified font for all Latin characters.
24712 (new_fontset_from_font): Register the specified font for all Latin
24713 characters.
24714 (dump_fontset): For a realized fontset, include the base fontset
24715 name in the returned vector.
24716
24717 2008-02-01 Kenichi Handa <handa@m17n.org>
24718
24719 * character.h (CHAR_STRING): Cast C to unsigned on calling
24720 char_string.
24721
24722 * character.c (char_string): Type of arg C changed to unsigned.
24723 Signal an error if C is an invalid character code.
24724
24725 * editfns.c (general_insert_function, Fchar_to_string):
24726 Use CHARACTERP, not INTEGERP.
24727
24728 2008-02-01 Kenichi Handa <handa@m17n.org>
24729
24730 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24731 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24732
24733 * regex.c (analyse_first): Fix for multibyte characters in "case
24734 charset:" and "case categoryspec:".
24735
24736 2008-02-01 Andreas Schwab <schwab@suse.de>
24737
24738 * Makefile.in (LIBES): Move standard libraries to the end.
24739
24740 2008-02-01 Kenichi Handa <handa@m17n.org>
24741
24742 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24743 nonzero, don't shrink the buffer nextb.
24744
24745 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24746
24747 * coding.c (coding_alloc_by_making_gap): New arg offset.
24748 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24749 offset.
24750 (decode_coding_iso_2022): Update coding->safe_charsets.
24751 (decode_coding_gap): Temporarily set
24752 current_buffer->text->inhibit_shrinking to 1.
24753
24754 2008-02-01 Kenichi Handa <handa@m17n.org>
24755
24756 * xterm.c (x_draw_composite_glyph_string_foreground):
24757 Fix indexing into elements of s->cmp and s->char2b.
24758
24759 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
24760
24761 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24762
24763 2008-02-01 Kenichi Handa <handa@m17n.org>
24764
24765 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24766 target_multibyte instead of multibyte.
24767 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24768 (bcmp_translate): Change the argument name from multibyte to
24769 target_multibyte.
24770
24771 2008-02-01 Kenichi Handa <handa@m17n.org>
24772
24773 These changes are to compile a regexp into a pattern that can be
24774 used both for multibyte and unibyte targets.
24775
24776 * Makefile.in (search.o): Depend on charset.h.
24777
24778 * character.c (multibyte_char_to_unibyte_safe): New function.
24779
24780 * search.c: Include "charset.h".
24781 (compile_pattern_1): Delete argument multibyte. Don't set
24782 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24783 (compile_pattern): Don't compare cp->buf.target_multibyte.
24784 Compare cp->buf.charset_unibyte.
24785 (compile_pattern): Set cp->buf.target_multibyte.
24786
24787 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24788
24789 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24790
24791 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24792 multibyte. Change callers.
24793 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24794 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24795 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24796 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24797 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24798 (regex_compile): Make the compiled pattern usable both for
24799 multibyte and unibyte targets.
24800 (analyse_first): Make the fastmap usable both for multibyte and
24801 unibyte targets.
24802 (TRANSLATE_VIA_MULTIBYTE): Delete.
24803 (re_match_2_internal): Pay attention to the case that the
24804 multibyteness of bufp and target may be different.
24805
24806 2008-02-01 Kenichi Handa <handa@m17n.org>
24807
24808 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24809 empty box occupy at least one column width.
24810
24811 2008-02-01 Miles Bader <miles@gnu.org>
24812
24813 * Makefile.in: Remove redundant HAVE_XFT clause.
24814
24815 2008-02-01 Kenichi Handa <handa@m17n.org>
24816
24817 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24818
24819 2008-02-01 Kenichi Handa <handa@m17n.org>
24820
24821 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24822 being nil.
24823
24824 2008-02-01 Kenichi Handa <handa@m17n.org>
24825
24826 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24827
24828 2008-02-01 Kenichi Handa <handa@m17n.org>
24829
24830 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24831
24832 2008-02-01 Kenichi Handa <handa@m17n.org>
24833
24834 * search.c (simple_search): Fix previous change.
24835
24836 2008-02-01 Kenichi Handa <handa@m17n.org>
24837
24838 * xftfont.c (ftfont_font_format): Extern declaration.
24839
24840 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24841
24842 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24843 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24844
24845 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24846 (ftfont_font_format): Fix previous change.
24847
24848 * font.h (Ffont_xlfd_name): EXFUN it.
24849
24850 * font.c (font_parse_xlfd): Fix the array size of `f'.
24851 (register_font_driver): Use EQ to compare driver->type.
24852
24853 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24854 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24855 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24856
24857 2008-02-01 Kenichi Handa <handa@m17n.org>
24858
24859 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24860 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24861
24862 2008-02-01 Kenichi Handa <handa@m17n.org>
24863
24864 * xfont.c (xfont_open): Set font->format.
24865
24866 * xftfont.c (xftfont_open): Set font->format.
24867
24868 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24869 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24870 (ftfont_open): Set font->format.
24871 (ftfont_font_format): New function.
24872
24873 * font.h (struct font): New member format.
24874
24875 * font.c (Qopentype): New variable.
24876 (syms_of_font): Defsym it.
24877 (Fquery_font): Change the format of the last element of the return
24878 value.
24879
24880 2008-02-01 Kenichi Handa <handa@m17n.org>
24881
24882 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24883 last resort.
24884
24885 2008-02-01 Kenichi Handa <handa@m17n.org>
24886
24887 * coding.c (detect_coding_charset): Fix detection of multi-byte
24888 charset.
24889
24890 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24891
24892 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24893
24894 2008-02-01 Kenichi Handa <handa@m17n.org>
24895
24896 * xdisp.c (get_next_display_element): Set it->face_id for the
24897 first component of a composition.
24898 (x_produce_glyphs): Check if the font is changed or not for composition.
24899
24900 2008-02-01 Kenichi Handa <handa@m17n.org>
24901
24902 * fontset.c (Qlatin): New variable.
24903 (syms_of_fontset): Define it as a lisp symbol.
24904 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24905
24906 2008-02-01 Kenichi Handa <handa@m17n.org>
24907
24908 * font.c (font_unparse_fcname): Pay attention to the case that
24909 some of font property is a null string.
24910
24911 2008-02-01 Kenichi Handa <handa@m17n.org>
24912
24913 * term.c: Include "composite.h".
24914 (encode_terminal_code): Output all components of composition.
24915 Check the size of encode_terminal_src.
24916 (produce_glyphs): For composition, call produce_composite_glyph.
24917 (append_composite_glyph, produce_composite_glyph): New functions.
24918
24919 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24920 is not found, get font_info from the current ascii face.
24921
24922 2008-02-01 Kenichi Handa <handa@m17n.org>
24923
24924 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24925 buffer-file-name to Qnil before calling insert_from_buffer.
24926
24927 * font.c (font_unparse_fcname): Pay attention to the case that
24928 foundry is a null string.
24929
24930 2008-02-01 Kenichi Handa <handa@m17n.org>
24931
24932 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24933
24934 * font.c (Qunicode_sip): New variable.
24935 (syms_of_font): Declare it as a Lisp symbol.
24936
24937 * font.h (Qunicode_sip): Extern it.
24938
24939 2008-02-01 Kenichi Handa <handa@m17n.org>
24940
24941 * composite.c (get_composition_id): Pay attention to TAB component.
24942
24943 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24944 TAB. Adjust for the change of s->char2b which always points to
24945 the first element of allocated memory.
24946
24947 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24948
24949 * xdisp.c (handle_composition_prop): Set it->c to the first
24950 non-TAB component.
24951 (fill_composite_glyph_string): Change argument.
24952 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24953 (x_produce_glyphs): Fix handling of left/right padding.
24954
24955 2008-02-01 Kenichi Handa <handa@m17n.org>
24956
24957 * coding.c (detect_coding_system): Fix for handling off
24958 inhibit_iso_escape_detection. Fix for the case that no coding
24959 system is defined for a specific coding category.
24960
24961 2008-02-01 Kenichi Handa <handa@m17n.org>
24962
24963 * font.c (font_matching_entity): Delete unused local var.
24964
24965 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24966 opening a font.
24967
24968 * fileio.c (Finsert_file_contents): On recovering a file, assume
24969 Unix-like eol.
24970 (choose_write_coding_system): On auto-saving a file, force
24971 Unix-like eol.
24972
24973 * coding.c (setup_coding_system): Fix setting of
24974 coding->common_flags based on eol_type.
24975 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24976 inherit from it.
24977
24978 2008-02-01 Kenichi Handa <handa@m17n.org>
24979
24980 * alloc.c (NSTATICS): Increas to 0x600.
24981
24982 2008-02-01 Kenichi Handa <handa@m17n.org>
24983
24984 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24985 (ftfont_list): Don't check :name property.
24986 (ftfont_match): New function.
24987 (ftfont_pattern_entity): If the pattern doesn't contain
24988 FC_SPACING, don't assume FC_MONO.
24989
24990 * font.h (struct font_driver): New member `match'.
24991 (font_update_drivers): Adjust prototype.
24992
24993 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24994 property of FONT.
24995 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24996 Define them unconditionally.
24997 (font_matching_entity): New function.
24998 (font_open_by_name): Try font_matching_entity if exact match is
24999 not found.
25000 (font_update_drivers): Delete the arg FONT. Return a list of
25001 actually used backends. Don't free faces, font caches here.
25002 Don't store data in frame parameters. Don't call x_set_font.
25003 (Ffont_spec): Store :name property as is.
25004 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
25005 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
25006 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
25007 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
25008 Call font->driver->otf_gsub instead of font_otf_gsub.
25009
25010 * frame.c (x_set_font_backend): Do more works that were done in
25011 font_update_drivers before.
25012
25013 * xfont.c (xfont_match): New function.
25014 (xfont_driver): Set xfont_driver.match to xfont_match.
25015 (xfont_draw): Set font in GC if necessary.
25016
25017 * ftxfont.c (ftxfont_match): New function.
25018 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
25019
25020 * xftfont.c (xftfont_match): New function.
25021 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25022
25023 2008-02-01 Kenichi Handa <handa@m17n.org>
25024
25025 * font.h (struct font): New member scalable.
25026 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25027 (font_otf_gsub): Adjust prototype.
25028
25029 * font.c (font_otf_capability): Fix handling of the default langsys.
25030 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
25031 Check the contents of SPEC.
25032 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25033 (check_gstring): New function.
25034 (REPLACEMENT_CHARACTER): New macro.
25035 (font_otf_gsub): New arg alternate_subst. Be sure to set all
25036 glyph codes of GSTRING.
25037 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25038 (font_prepare_composition): Set cmp->glyph_len.
25039 (font_open_entity): Set font->scalable.
25040 (Ffont_get): Handle :otf property.
25041 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25042 New functions.
25043 (Fquery_font): Use font->font.full_name.
25044 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25045 Sfont_otf_alternates.
25046
25047 * ftfont.c (ftfont_open): Set font->font.full_name and
25048 font->font.name properly. Fix calculation of font->font.height
25049 and font->min_width.
25050
25051 * ftxfont.c (ftxfont_create_gcs): New function.
25052 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25053 (ftxfont_draw_backgrond): Fix filling region.
25054 (ftxfont_default_fid): New function.
25055 (ftxfont_open): Set xfont->fid to the return value of
25056 ftxfont_default_fid.
25057 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25058 (ftxfont_done_face): Free only GCs that are created by
25059 ftxfont_create_gcs.
25060 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25061
25062 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25063 Clip to src->width, etc (not src->clip_XXX).
25064
25065 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25066 FontBackend frame parameter.
25067
25068 2008-02-01 Kenichi Handa <handa@m17n.org>
25069
25070 * font.h (struct font_driver_list): New member `on'.
25071 (Fclear_font_cache): EXFUN it.
25072 (font_update_drivers): Extern it.
25073
25074 * font.c (font_unparse_fcname): Fix typo (swidth->width).
25075 (font_list_entities): Check driver_list->on.
25076 (register_font_driver): Initialize `on' member to 0.
25077 (font_update_drivers): New function.
25078 (Fclear_font_cache): Check driver_list->on.
25079
25080 * frame.h (Qfont_backend): Extern it.
25081 (x_set_font_backend): Extern it.
25082
25083 * frame.c (Qfont_backend): New variable.
25084 (frame_parms): New element for font-backend.
25085 (x_set_font_backend): New function.
25086
25087 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25088 FontBackend frame parameter.
25089 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25090 x_set_font_backend.
25091
25092 * xfont.c (xfont_list): Don't try listing by :name property if the
25093 name is not for XLFD.
25094
25095 2008-02-01 Kenichi Handa <handa@m17n.org>
25096
25097 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25098 (LGLYPH_SET_TO): New macros.
25099 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25100 element of G is vector or not.
25101 (font_at): Extern it.
25102
25103 * font.c: Include window.h.
25104 (font_lispy_object): New function.
25105 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25106 end of valid glyph.
25107 (font_close_object): Fix getting (struct font *).
25108 (font_at): New function.
25109 (Ffont_get): If FONT is a font-object, get entity from it.
25110 (Ffont_make_gstring): Initialize elements of glyphs with nil.
25111 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25112 Fix range check.
25113 (Ffont_at): New function.
25114 (syms_of_font): Defsubr Sfont_at.
25115
25116 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25117 before the entry for Qcomposition.
25118 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25119 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25120 the font in gstring.
25121 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25122 LGLYPH_FORM (g) to detect the end of valid glyph.
25123 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25124 we are composing with gstring.
25125
25126 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25127 Check if adjustment is vector or not.
25128
25129 * Makefile.in (font.o): Make it depends on window.h.
25130
25131 2008-02-01 Kenichi Handa <handa@m17n.org>
25132
25133 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25134 adjustment is vector or not.
25135
25136 2008-02-01 Miles Bader <miles@gnu.org>
25137
25138 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25139
25140 2008-02-01 Kenichi Handa <handa@m17n.org>
25141
25142 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
25143 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
25144 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25145
25146 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25147 (DEVICE_DELTA): Fix typo.
25148 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25149 LGLYPH format.
25150
25151 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25152 the change of LGLYPH format.
25153
25154 2008-02-01 Kenichi Handa <handa@m17n.org>
25155
25156 * ftfont.c (ftfont_list): Fix typo.
25157 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25158
25159 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25160
25161 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25162
25163 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25164 xftface_info is non-NULL.
25165
25166 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25167
25168 * ftfont.c (ftfont_list): Move misplaced #endif.
25169
25170 2008-02-01 Kenichi Handa <handa@m17n.org>
25171
25172 * ftfont.c (ftfont_list): Pay attention to the case that
25173 FC_CAPABILITY is not defined.
25174
25175 2008-02-01 Kenichi Handa <handa@m17n.org>
25176
25177 * xftfont.c (xftfont_open): Set charset related members to -1.
25178
25179 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25180 QCname.
25181 (ftfont_open): Set charset related members to -1.
25182
25183 * fontset.c (Votf_script_alist): New variable.
25184 (syms_of_fontset): Initialize it.
25185 (fontset_font): Delete unused variable.
25186
25187 * fontset.h (Votf_script_alist): Extern it.
25188
25189 * font.c (font_find_for_lface): Optimize code.
25190
25191 * font.h (font_close_object, font_merge_old_spec): Extern them.
25192
25193 2008-02-01 Kenichi Handa <handa@m17n.org>
25194
25195 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25196 (syms_of_font): Initialize them.
25197 (font_pixel_size): Allow float value in dpi.
25198 (font_prop_validate_type): Delete.
25199 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25200 Change caller.
25201 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25202 (font_prop_validate_extra): Delete.
25203 (font_prop_validate_spacing): New function.
25204 (font_property_table): Add elements for all known properties.
25205 (get_font_prop_index): Rename from check_font_prop_name.
25206 New argument FROM. Change caller.
25207 (font_prop_validate): Validate all known properties.
25208 (font_put_extra): Delete argument force. Change caller.
25209 (font_expand_wildcards): Make it static. Fix the way of shrinking
25210 the possible range.
25211 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25212 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25213 Change caller.
25214 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25215 (font_parse_fcname): Delete argument merge. Fix parsing of point
25216 size. Don't validate properties values here. Change caller.
25217 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25218 (font_open_by_name): Delete unused variable.
25219 (Ffont_spec): Likewise. Validate property values.
25220 (Ffont_match_p): New function.
25221
25222 * font.h (QCscalable): Extern it.
25223 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25224
25225 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25226
25227 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25228 (xfont_list_pattern): New function.
25229 (xfont_list): Use xfont_list_pattern.
25230
25231 2008-02-01 Kenichi Handa <handa@m17n.org>
25232
25233 * font.h (Flist_fonts): EXFUN it.
25234
25235 2008-02-01 Jason Rumney <jasonr@gnu.org>
25236
25237 * w32term.c (w32_initialize): Add back smoothing_type and
25238 smoothing_enabled definitions.
25239
25240 2008-02-01 Kenichi Handa <handa@m17n.org>
25241
25242 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25243 s->face->font on determining underline position.
25244
25245 2008-02-01 Kenichi Handa <handa@m17n.org>
25246
25247 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25248 (font_has_char): Accept font-object too.
25249 (font_find_for_lface): Try at first with a size specified in face.
25250
25251 2008-02-01 Kenichi Handa <handa@m17n.org>
25252
25253 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25254 font_open_by_name.
25255
25256 2008-02-01 Kenichi Handa <handa@m17n.org>
25257
25258 * font.h (QCspacing, QCdpi): Extern them.
25259 (enum font_spacing): New enum.
25260 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25261
25262 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25263 (QCspacing, QCdpi): New variables.
25264 (syms_of_font): Initialize them.
25265 (font_pixel_size): New function.
25266 (font_put_extra): New function.
25267 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25268 in FONT_EXTRA.
25269 (font_parse_fcname): Handle enumerated values (e.g. bold).
25270 Fix handling font size. Add QCname property that contains only
25271 unknown properties.
25272 (font_score): Change argument. Change caller. Pay attention to
25273 FONT_PIXEL_SIZE_QUANTUM.
25274 (font_sort_entites, font_list_entities, font_find_for_lface)
25275 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25276 (Ffont_spec): Add QCname property that contains only unknown properties.
25277
25278 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25279 Don't include weight in listing pattern, instead check weight of each
25280 listed font. Don't include scalable in pattern. Pay attention to
25281 FONT_PIXEL_SIZE_QUANTUM.
25282
25283 2008-02-01 Kenichi Handa <handa@m17n.org>
25284
25285 * font.c (font_parse_fcname): Fix parsing of point-size.
25286 (font_unparse_fcname): Produce symbolic names for style properties.
25287 (font_list_entities): Handle float size correctly.
25288 (font_open_by_name): Prefer `normal' property values if the name
25289 doesn't specify them.
25290
25291 * fontset.c (Finternal_char_font): Use font_get_name, not
25292 Ffont_xlfd_name.
25293
25294 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25295 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25296 pattern. Don't force scalable.
25297
25298 * xftfont.c (xftfont_open): For generating a name, start from
25299 96-byte buffer.
25300
25301 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25302
25303 * frame.h (x_new_fontset2): Fix prototype.
25304
25305 2008-02-01 Kenichi Handa <handa@m17n.org>
25306
25307 * font.h (struct font_driver): Delete member parse_name.
25308 (font_match_p, font_get_spec, font_parse_fcname)
25309 (font_unparse_fcname): Extern them.
25310 (font_get_name): Adjust prototype.
25311
25312 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25313 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
25314 (font_expand_wildcards): Fix handling ENCODING field.
25315 Avoid unnecessary checks for weight, slant, and swidth.
25316 (font_parse_fcname): New function.
25317 (font_unparse_fcname): New function.
25318 (font_parse_name): New function.
25319 (font_match_p): New function.
25320 (font_get_name): Change return value to Lisp string.
25321 (font_get_spec): New function.
25322 (Qunspecified, Qignore_defface): Don't extern them.
25323 (font_find_for_lface): Assume that LFACE is fully specified.
25324 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25325 object, use it for FACE.
25326 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25327 driver->parse_name.
25328 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25329
25330 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25331 prototype.
25332
25333 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25334 argument F. Don't call Fnew_fontset. Instead, directly call
25335 make_fontset.
25336
25337 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25338
25339 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25340 of x_new_fontset2.
25341
25342 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25343 (Qsans__serif): New variables.
25344 (ftfont_generic_family_list): New variable.
25345 (syms_of_ftfont): Initialize the above variables.
25346 (ftfont_pattern_entity): Delete argument NAME.
25347 (ftfont_list_generic_family): New function.
25348 (ftfont_parse_name): Delete this function.
25349 (ftfont_list): Try generic family only when FcFontList found no font.
25350 (ftfont_list_family): Fix args to FcObjectSetBuild.
25351
25352 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25353 object in attrs[LFACE_FONT_INDEX].
25354 (set_lface_from_font_name): Cancel all changes for font-backend.
25355 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25356 function.
25357 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25358 font object in QCfont attribute.
25359 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25360 (realize_default_face) [USE_FONT_BACKEND]: Call
25361 set_lface_from_font_and_fontset.
25362
25363 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25364 "fixed", and signal error here if no suitable font was found.
25365
25366 * xfont.c (xfont_parse_name): Delete this function.
25367
25368 * xftfont.c (xftfont_open): Change coding style of error
25369 handling. Generate fontconfig's fontname pattern.
25370
25371 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25372 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25373
25374 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25375 Both args FONTSET and FONT_OBJECT must be existing ones.
25376
25377 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25378
25379 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25380
25381 2008-02-01 Kenichi Handa <handa@m17n.org>
25382
25383 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25384
25385 * font.h (struct font): Fix typo.
25386
25387 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25388 XLFD_XXX_INDEX.
25389 (enum xlfd_field_mask): New enum.
25390 (intern_font_field): Change argument. Change caller. If digits
25391 are followed by non-digits, return a symbol.
25392 (font_expand_wildcards): New function.
25393 (font_parse_xlfd): Fix wildcard handling.
25394 (Ffont_spec): If :name is specified, reflect the info in the other
25395 properties.
25396
25397 * ftfont.c (ftfont_pattern_entity): Fix typo.
25398 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25399 locale.
25400
25401 2008-02-01 Kenichi Handa <handa@m17n.org>
25402
25403 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25404
25405 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25406 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25407 registry doesn't specify encoding part.
25408 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25409 (font_open_by_name): At first try parsing the name.
25410 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25411 as Lisp symbols.
25412
25413 * fontset.c (reorder_font_vector): Pay attention to the case that
25414 the 3rd element of font_def is nil.
25415 (fontset_font): For the default fontset, append one more fontset
25416 elements for a script-based font specification. Don't add script
25417 attribute on finding a font.
25418 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25419 font name.
25420 (fontset_ascii_font): If a font can't be opened, return nil.
25421
25422 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25423 (ftfont_pattern_entity): New function.
25424 (ftfont_get_cache): Assume that freetype_font_cache is already
25425 initialized.
25426 (ftfont_list): Handle the case that a file is specified in font
25427 name. Use ftfont_pattern_entity to generate entities.
25428 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25429 (syms_of_ftfont): Initialize freetype_font_cache.
25430
25431 * xftfont.c (xftfont_open): Make the font name fontconfig's
25432 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25433 (xftfont_close): Free font->font.name if not NULL.
25434
25435 * xfont.c (xfont_list): If script is specified for a font, return
25436 null_vector.
25437 (xfont_list_family): Declare argument type.
25438
25439 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25440 name, set LFACE_FONT (lface) to nil.
25441
25442 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25443 return Qnil.
25444
25445 2008-02-01 Kenichi Handa <handa@m17n.org>
25446
25447 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25448 (standard_args): Add "-enable-font-backend".
25449
25450 2008-02-01 Kenichi Handa <handa@m17n.org>
25451
25452 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25453 (struct xftdraw_list, xftdraw_list): Delete them.
25454 (register_xftdraw, check_xftdraw): Delete them.
25455 (xftfont_prepare_face): Don't call register_xftdraw.
25456 (xftfont_done_face): Don't call check_xftdraw.
25457 (xftfont_draw): Get background color only when with_background is
25458 nonzero.
25459
25460 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25461
25462 2008-02-01 Kenichi Handa <handa@m17n.org>
25463
25464 These changes are for the new font handling codes.
25465
25466 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25467 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25468 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25469 (FONTSRC, FONTOBJ): New variables.
25470 (obj): Add $(FONTOBJ).
25471 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25472 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25473 @LIBOTF_LIBS@.
25474 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25475 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25476
25477 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25478
25479 * character.h (Vscript_representative_chars): Extern it.
25480
25481 * character.c (Vscript_representative_chars): New variable.
25482 (syms_of_character): Declare it as a Lisp variable.
25483
25484 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25485 enable_font_backend is nonzero, accept the composition method
25486 COMPOSITION_WITH_GLYPH_STRING.
25487
25488 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25489 enumeration COMPOSITION_WITH_GLYPH_STRING.
25490
25491 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25492 members clip_x, clip_y, clip_width, and clip_height.
25493 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25494
25495 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25496 --enable-font-backend. Call syms_of_font.
25497
25498 * fns.c (assoc_no_quit): New function.
25499
25500 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25501 (face_for_font, new_fontset_from_font)
25502 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25503
25504 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25505 (fontset_font, fontset_ascii, face_for_char)
25506 (make_fontset_for_ascii_face, Ffont_info)
25507 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25508 is nonzero, use font-backend mechanism.
25509 (find_font_encoding): Make it non-static.
25510 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25511 New functions.
25512
25513 * frame.h (struct frame): New members resx and resy.
25514 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25515 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25516
25517 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25518 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25519
25520 * lisp.h (assoc_no_quit): Extern it.
25521
25522 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25523 Through out the file, use FONT_INFO_FROM_FACE instead of
25524 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25525 rif->per_char_metric.
25526 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25527 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25528 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25529 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25530 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25531 nonzero, use font-backend mechanism.
25532 (get_per_char_metric): New function.
25533
25534 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25535 (set_lface_from_font_name)
25536 (set_font_frame_param, free_realized_face)
25537 (prepare_face_for_display, clear_face_gcs)
25538 (Finternal_set_font_selection_order, realize_x_face)
25539 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25540 font-backend mechanism.
25541 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25542 (load_face_font) [USE_FONT_BACKEND]: Abort.
25543 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25544 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25545
25546 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25547 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25548 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25549 nonzero, register all available font drivers.
25550 Call x_default_font_parameter for deciding a font.
25551 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25552
25553 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25554 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25555 (x_set_glyph_string_clipping_exactly)
25556 (x_compute_glyph_string_overhangs)
25557 (x_draw_glyph_string_foreground)
25558 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25559 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25560 enable_font_backend is nonzero, use font-backend mechanism.
25561 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25562
25563 2008-02-01 Kenichi Handa <handa@m17n.org>
25564
25565 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25566 system_eol_type.
25567 (syms_of_coding): Initialize system_eol_type.
25568
25569 * process.c (Fset_process_coding_system): Inherit system's eol
25570 format if necessary.
25571
25572 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25573
25574 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25575
25576 2008-02-01 Kenichi Handa <handa@m17n.org>
25577
25578 * coding.c (decode_eol): Pay attention to buffer relocation in
25579 del_range_2.
25580 (decode_coding): Call decode_eol before restoring undo_list.
25581
25582 2008-02-01 Kenichi Handa <handa@m17n.org>
25583
25584 * charset.c (Fdefine_charset_internal): Fix setting of
25585 emacs_mule_bytes.
25586
25587 2008-02-01 Kenichi Handa <handa@m17n.org>
25588
25589 * keyboard.c (read_char): Check if C is a character or not before
25590 looking up Vkeyboard_translate_table.
25591
25592 2008-02-01 Kenichi Handa <handa@m17n.org>
25593
25594 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25595 Fix condition to terminate the loop.
25596
25597 2008-02-01 Kenichi Handa <handa@m17n.org>
25598
25599 * coding.c (produce_composition): Compare charbuf[i] instead of
25600 args[i] against 0.
25601 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25602
25603 2008-02-01 Kenichi Handa <handa@m17n.org>
25604
25605 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25606 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25607 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25608 detect_coding.
25609 (emacs_mule_char): Handle old style (Emacs 20) component character
25610 of a composition.
25611 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25612 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25613 composition rule.
25614 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25615
25616 2008-02-01 Kenichi Handa <handa@m17n.org>
25617
25618 * coding.c (encode_coding_ccl): Allocate destination dynamically
25619 when necessary.
25620
25621 2008-02-01 Kenichi Handa <handa@m17n.org>
25622
25623 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25624 the loop. When quitted, show a proper error message.
25625
25626 2008-02-01 Kenichi Handa <handa@m17n.org>
25627
25628 * xterm.c (x_set_glyph_string_clipping_exactly):
25629 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
25630
25631 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25632 character sequence.
25633 (Fccl_execute_on_string): Use ASET, not XSET.
25634
25635 2008-02-01 Kenichi Handa <handa@m17n.org>
25636
25637 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25638
25639 2008-02-01 Kenichi Handa <handa@m17n.org>
25640
25641 * coding.c (decode_coding): Fix the condition of terminating the
25642 decoding loop.
25643
25644 2008-02-01 Kenichi Handa <handa@m17n.org>
25645
25646 * data.c (Faset): On setting a character bigger than 255 in a
25647 unibyte string, signal an error instead of make the string multibyte.
25648
25649 2008-02-01 Kenichi Handa <handa@m17n.org>
25650
25651 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25652 made by a mapping table.
25653
25654 2008-02-01 Kenichi Handa <handa@m17n.org>
25655
25656 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25657 not.
25658 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25659 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25660
25661 * xterm.c (x_draw_composite_glyph_string_foreground):
25662 Check s->face is NULL or not.
25663
25664 2008-02-01 Kenichi Handa <handa@m17n.org>
25665
25666 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25667 (x_draw_glyph_string): Fix drawing of right_overhang and
25668 left_overhang around/on cursor.
25669
25670 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25671
25672 2008-02-01 Kenichi Handa <handa@m17n.org>
25673
25674 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25675
25676 2008-02-01 Kenichi Handa <handa@m17n.org>
25677
25678 * coding.c (Fdefine_coding_system_internal)
25679 (Fdefine_coding_system_alias): Avoid a duplicated element in
25680 Vcoding_system_alist.
25681
25682 2008-02-01 Kenichi Handa <handa@m17n.org>
25683
25684 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25685
25686 * coding.c (Qcoding_system_define_form): New variable.
25687 (syms_of_coding): Intern and staticpro it.
25688 (Fcoding_system_p): Check Qcoding_system_define_form.
25689 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25690
25691 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25692 Fcoding_system_p.
25693 (CHECK_CODING_SYSTEM): If ID is not available, call
25694 Fcheck_coding_system.
25695 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25696 Try also Fcheck_coding_system.
25697
25698 2008-02-01 Kenichi Handa <handa@m17n.org>
25699
25700 * coding.c (code_conversion_restore): GCPRO arg.
25701
25702 2008-02-01 Kenichi Handa <handa@m17n.org>
25703
25704 * character.c (lisp_string_width): Check multibyteness of STRING.
25705
25706 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25707
25708 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25709 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25710 (decode_mac_font_name): Use decode_coding_c_string instead of
25711 decode_coding.
25712 (x_load_font): Initialize fontp->fontset to -1.
25713 Set fontp->encoding_type.
25714
25715 2008-02-01 Kenichi Handa <handa@m17n.org>
25716
25717 * search.c (search_buffer): Give up BM search on case-fold-search
25718 if one of a target character has a case-equivalence of different
25719 byte length even if that target character is an ASCII.
25720 (simple_search): Fix calculation of byte length of matched text.
25721 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25722
25723 2008-02-01 Kenichi Handa <handa@m17n.org>
25724
25725 * coding.c (decode_coding): Fix handling of invalid bytes.
25726
25727 2008-02-01 Kenichi Handa <handa@m17n.org>
25728
25729 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25730 Unicode characters.
25731
25732 2008-02-01 Kenichi Handa <handa@m17n.org>
25733
25734 * coding.c (encode_coding_object): If a pre-write-conversion
25735 function makes a new buffer, kill it.
25736
25737 2008-02-01 Kenichi Handa <handa@m17n.org>
25738
25739 * coding.c (QCascii_compatible_p): New variable.
25740 (syms_of_coding): Initialize it.
25741 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25742 calling string_char.
25743 (record_conversion_result): Add `default:' case.
25744 (coding_charset_list): Delete unused variable `coding_type'.
25745 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25746 property in the plist of the coding system.
25747 (Fcoding_system_put): Check QCascii_compatible_p.
25748
25749 2008-02-01 Miles Bader <miles@gnu.org>
25750
25751 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25752 removed calculation of frame `f', as it's now used.
25753
25754 2008-02-01 Kenichi Handa <handa@m17n.org>
25755
25756 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25757 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25758 (UNIDATA): New variable.
25759 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
25760 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25761 Run $(RUN_TEMACS) unconditionally.
25762
25763 2008-02-01 Kenichi Handa <handa@m17n.org>
25764
25765 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25766 (admindir): New variable.
25767 ($(lispsource)international/charprop.el): New target.
25768
25769 2008-02-01 Miles Bader <miles@gnu.org>
25770
25771 * character.c (chars-in-region): Remove obsolete function.
25772 (syms_of_character): Remove its initialization.
25773
25774 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25775
25776 * w32select.c (validate_coding_system)
25777 (setup_windows_coding_system): New functions.
25778 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25779 Use setup_windows_coding_system.
25780 (setup_config, Fw32_get_clipboard_data):
25781 Use validate_coding_system.
25782 (Fx_selection_exists): Move call to setup_config to a place
25783 where signals are allowed.
25784
25785 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25786 (Fcheck_coding_system): Add declarations.
25787
25788 2008-02-01 Kenichi Handa <handa@m17n.org>
25789
25790 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25791
25792 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25793
25794 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25795 string as the second argument for x_new_fontset.
25796
25797 2008-02-01 Kenichi Handa <handa@m17n.org>
25798
25799 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25800 (encode_coding_object): Use safe_call instead of call2.
25801
25802 2008-02-01 Kenichi Handa <handa@m17n.org>
25803
25804 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25805
25806 * Makefile.in (lisp): Include charprop.el.
25807
25808 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25809
25810 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25811 Not sure if it's unnecessary.
25812
25813 2008-02-01 Steven Tamm <steventamm@mac.com>
25814
25815 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25816 some possibly unnecessary fontset checking code that crashed
25817 when creating a new frame.
25818
25819 2008-02-01 Kenichi Handa <handa@m17n.org>
25820
25821 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25822 lookup_face.
25823
25824 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25825
25826 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25827
25828 2008-02-01 Kenichi Handa <handa@m17n.org>
25829
25830 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25831 (coding_charset_list): New function.
25832
25833 * coding.h (coding_charset_list): Extern it.
25834
25835 2008-02-01 Kenichi Handa <handa@m17n.org>
25836
25837 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25838 concatenation of family and registry.
25839
25840 2008-02-01 Kenichi Handa <handa@m17n.org>
25841
25842 * character.h (BYTE8_STRING): Fix typo.
25843
25844 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25845 string to multibyte (sync to HEAD).
25846
25847 * casefiddle.c (casify_region): Handle changes in byte-length
25848 using replace_range_2 (sync to HEAD).
25849
25850 2008-02-01 Andreas Schwab <schwab@suse.de>
25851
25852 * chartab.c (map_char_table): GCPRO table and arg.
25853
25854 2008-02-01 Kenichi Handa <handa@m17n.org>
25855
25856 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25857 already at limit.
25858
25859 2008-02-01 Kenichi Handa <handa@m17n.org>
25860
25861 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25862 instead of fast_c_string_match_ignore_case.
25863 (find_font_encoding): Change argument to Lisp_Object.
25864 Use fast_string_match_ignore_case instead of
25865 fast_c_string_match_ignore_case. Change caller.
25866
25867 2008-02-01 Kenichi Handa <handa@m17n.org>
25868
25869 * xdisp.c (get_next_display_element): In unibyte case, decide to
25870 display in octal form by checking a character by
25871 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25872
25873 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25874
25875 * character.c (unibyte_has_multibyte_table): New variable.
25876
25877 * character.h (unibyte_has_multibyte_table): Extern it.
25878 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25879
25880 2008-02-01 Kenichi Handa <handa@m17n.org>
25881
25882 * coding.c (encode_coding_iso_2022): Fix handling of charset
25883 annotation.
25884
25885 2008-02-01 Kenichi Handa <handa@m17n.org>
25886
25887 * coding.c (setup_coding_system): If coding_system is nil, use
25888 Qundecided.
25889 (Fterminal_coding_system): Return nil if terminal coding system is
25890 `undecided'.
25891 (syms_of_coding): Define coding-system `undecided' here.
25892 Setup terminal_coding as `undecided'.
25893
25894 2008-02-01 Kenichi Handa <handa@m17n.org>
25895
25896 * xdisp.c (message_dolog, set_message_1):
25897 Call unibyte_char_to_multibyte with arg type int.
25898
25899 * lread.c (read1): Fix reading of a char-table.
25900
25901 * print.c (print_object): Include sub char-table in circularities
25902 detection.
25903
25904 2008-02-01 Kenichi Handa <handa@m17n.org>
25905
25906 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25907 Append the found sequences in car of ARGS instead of prepending.
25908
25909 2008-02-01 Kenichi Handa <handa@m17n.org>
25910
25911 * fileio.c (report_file_error): Make a unibyte string from
25912 strerror (errorno).
25913 (Fsubstitute_in_file_name): Fix the arg to
25914 unibyte_char_to_multibyte. It is evaluated twice.
25915
25916 2008-02-01 Kenichi Handa <handa@m17n.org>
25917
25918 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25919
25920 2008-02-01 Kenichi Handa <handa@m17n.org>
25921
25922 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25923 BOM is not found.
25924 (detect_coding, detect_coding_system): Optimization for ISO-2022
25925 when no 8-bit data is found.
25926
25927 2008-02-01 Jason Rumney <jasonr@gnu.org>
25928
25929 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25930
25931 2008-02-01 Kenichi Handa <handa@m17n.org>
25932
25933 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25934 CHARS.
25935
25936 2008-02-01 Steven Tamm <steventamm@mac.com>
25937
25938 * macterm.c (mac_encode_char): Add charset argument and update
25939 to use encoding_type.
25940 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25941 switch to pure fontset.
25942 (decode_mac_font_name): Temporarily remove decoding.
25943 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25944 (x_load_font): Temporarily remove encoding.
25945
25946 2008-02-01 Kenichi Handa <handa@m17n.org>
25947
25948 * xfaces.c (Fface_font): If frame is not on a window system,
25949 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25950 refer to face->font.
25951 (split_font_name_into_vector, build_font_name_from_vector)
25952 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25953 when HAVE_WINDOW_SYSTEM is defined.
25954
25955 2008-02-01 Kenichi Handa <handa@m17n.org>
25956
25957 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25958 (x_produce_glyphs): Fix setting of members of cmp in case
25959 cmp->glyph_len is zero.
25960
25961 * fontset.c (Fset_fontset_font): Fix docstring.
25962 (Ffontset_info): Make it backward compatible. New arg ALL.
25963
25964 2008-02-01 Kim F. Storm <storm@cua.dk>
25965
25966 * process.c (read_process_output): Grow decoding_buf when needed;
25967 this could cause a crash in allocate_string and compact_small_strings.
25968
25969 2008-02-01 Kenichi Handa <handa@m17n.org>
25970
25971 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25972
25973 2008-02-01 Kenichi Handa <handa@m17n.org>
25974
25975 * coding.c (setup_coding_system): Set coding->common_flags
25976 correctly for raw-text.
25977 (consume_chars): On encoding unibyte text by raw-text, don't check
25978 multibyte form.
25979 (encode_coding): On encoding by raw-text, never use translation tables.
25980
25981 * fileio.c (e_write): Short cut for the case of no encoding.
25982
25983 2008-02-01 Kenichi Handa <handa@m17n.org>
25984
25985 * coding.c (detect_coding, detect_coding_system): Delete unused
25986 variables.
25987
25988 2008-02-01 Kenichi Handa <handa@m17n.org>
25989
25990 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25991 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25992
25993 2008-02-01 Kenichi Handa <handa@m17n.org>
25994
25995 * coding.c (Ffind_coding_systems_region_internal):
25996 Include raw-text and no-conversion in the result.
25997
25998 2008-02-01 Kenichi Handa <handa@m17n.org>
25999
26000 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
26001 (load_font_get_repertory): Delete unnecessary check of ENCODING of
26002 FONT_DEF.
26003 (font_def_arg, add_arg, from_arg, to_arg): New args.
26004 (set_fontset_font): Change argument.
26005 (Fset_fontset_font): Fix for the case that TARGET is a script
26006 name and charset name.
26007 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
26008
26009 2008-02-01 Kenichi Handa <handa@m17n.org>
26010
26011 * fontset.c (fontset_font): Rename from fontset_face. Change return
26012 value.
26013 (face_suitable_for_char_p, face_for_char): Adjust for the change
26014 of fontset_font.
26015 (make_fontset_for_ascii_face): Fix setting of the fontset element
26016 for ASCII.
26017 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
26018 to get a font name.
26019 (Ffontset_info): Adjust for the change of fontset_font.
26020
26021 * coding.c (emacs_mule_char): Check invalid code more rigidly.
26022
26023 * character.h (LEADING_CODE_LATIN_1_MIN)
26024 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26025
26026 2008-02-01 Kenichi Handa <handa@m17n.org>
26027
26028 * editfns.c (check_translation): New function.
26029 (Ftranslate_region_internal): Handle M:N mapping.
26030
26031 2008-02-01 Kenichi Handa <handa@m17n.org>
26032
26033 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26034
26035 2008-02-01 Kenichi Handa <handa@m17n.org>
26036
26037 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26038 goto invalid_code.
26039 (decode_coding_iso_2022): Fix handling of invalid designation.
26040
26041 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26042 after calling code_conversion_save.
26043
26044 2008-02-01 Kenichi Handa <handa@m17n.org>
26045
26046 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26047
26048 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26049
26050 * fontset.c: Include "intervals.h".
26051 (fontset_face): Fix comparing of Lisp_Objects.
26052 (free_face_fontset, new_fontset_from_font_name):
26053 Fix Lisp_Object/int mixup.
26054
26055 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26056
26057 * coding.c: Add many prototypes for static functions.
26058 (get_translation_table): Allow max_lookup to be NULL.
26059 (decode_coding, Ffind_coding_systems_region_internal)
26060 (Funencodable_char_position, Fcheck_coding_systems_region):
26061 Call get_translation_table with max_lookup NULL.
26062
26063 2008-02-01 Kenichi Handa <handa@m17n.org>
26064
26065 * coding.c (get_translation_table): Declare it as Lisp_Object.
26066 (LOOKUP_TRANSLATION_TABLE): New macro.
26067 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26068 instead of CHAR_TABLE_REF.
26069
26070 2008-02-01 Kenichi Handa <handa@m17n.org>
26071
26072 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26073 annotation data format.
26074 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26075 Change arguments FROM and TO to single argument NCHARS. Change caller.
26076 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26077 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26078 (decode_coding_ccl, decode_coding_charset): Pay attention to
26079 coding->charbuf_used.
26080 (get_translation): New function.
26081 (produce_chars): New arguments translation_table and last_block.
26082 Translate characters here. Return number of carryover chars.
26083 Change caller.
26084 (produce_composition): New argument pos. Change caller.
26085 Adjust for the change of annotation data format.
26086 (produce_charset, produce_annotation): Likewise.
26087 (decode_coding, encode_coding): Don't call translate_chars.
26088 (consume_chars): New arg translation_table. Change caller.
26089 (translate_chars): Delete.
26090 (syms_of_coding): Make translation-table's number of extra slots 2.
26091
26092 2008-02-01 Kenichi Handa <handa@m17n.org>
26093
26094 * search.c (simple_search): Fix setting this_pos_byte in backward
26095 search.
26096
26097 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26098 byte sequence.
26099 (detect_coding_ccl): Fix setting of the variable valids.
26100
26101 2008-02-01 Kenichi Handa <handa@m17n.org>
26102
26103 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26104
26105 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26106
26107 * editfns.c (Ftranslate_region_internal): Rename from
26108 Ftranslate_region. Accept a char-table in TABLE.
26109 (syms_of_editfns): Defsubr Stranslate_region_internal.
26110
26111 * xfaces.c (set_lface_from_font_name): If a font is specified for
26112 a frame, generate a fontset from the font.
26113 (build_scalable_font_name): If the scalable font is requested for
26114 a specific size, don't change that size.
26115 (try_font_list): Try a scalable font also in the case that a
26116 pattern string is specified.
26117
26118 2008-02-01 Kenichi Handa <handa@m17n.org>
26119
26120 * xfaces.c (Fface_font): New optional arg CHARACTER.
26121
26122 2008-02-01 Kenichi Handa <handa@m17n.org>
26123
26124 * charset.h (CHARSET_OFFSET): New macro.
26125
26126 2008-02-01 Kenichi Handa <handa@m17n.org>
26127
26128 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26129
26130 * fontset.c (fontset_face): Handle the case that repertory is a
26131 char-table.
26132 (find_font_encoding): Return nil for unknown encoding.
26133 (Fset_fontset_font): Ignore a font of unknown encoding.
26134
26135 2008-02-01 Kenichi Handa <handa@m17n.org>
26136
26137 * keymap.c (describe_vector): Handle default value of a char table.
26138
26139 * fontset.c (fontset_face): Handle fallback fonts correctly.
26140 (Ffontset_info): Return infomation about fallback fonts.
26141
26142 2008-02-01 Kenichi Handa <handa@m17n.org>
26143
26144 * fontset.c (FONTSET_DEFAULT): New macro.
26145 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26146 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26147 the case that it is nil.
26148 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26149 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26150
26151 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26152 subset or superset.
26153
26154 2008-02-01 Kenichi Handa <handa@m17n.org>
26155
26156 * emacs.c (main): Call init_charset after syms_of_XXX.
26157
26158 * charset.c (Vcharset_map_directory): Delete.
26159 (Vcharset_map_path): New variable.
26160 (load_charset_map_from_file): Use Vcharset_map_path instead.
26161 (init_charset): Initialize Vcharset_map_path.
26162 (syms_of_charset): Delete declaration of "charset-map-directory",
26163 add declaration of "charset-map-path".
26164
26165 2008-02-01 Kenichi Handa <handa@m17n.org>
26166
26167 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26168 ASCII only string.
26169
26170 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26171
26172 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26173 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26174
26175 2008-02-01 Kenichi Handa <handa@m17n.org>
26176
26177 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26178
26179 * coding.c (QCmnemonic, QCdefalut_char)
26180 (QCdecode_translation_table, QCencode_translation_table)
26181 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26182 (get_translation_table): Return a list of translation tables if
26183 necessary.
26184 (decode_coding): Call get_translation_table with ENCODEP 0.
26185 (char_encodable_p): If translation_table is non-nil, always call
26186 translate_char.
26187 (Fdefine_coding_system_internal): Accept list of translation
26188 tables as :encode-translation-table and :decode-translation-table.
26189 (Fcoding_system_put): New function.
26190 (syms_of_coding): Declare new symbols.
26191 Defsubr Scoding_system_put.
26192 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26193 typically JISX0212.
26194
26195 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26196 when the charset is superset type.
26197
26198 * character.c (translate_char): Accept list of translation tables.
26199
26200 2008-02-01 Kenichi Handa <handa@m17n.org>
26201
26202 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26203 (CODING_ATTR_TRANS_TBL): New macro.
26204
26205 * coding.c (get_translation_table): New function.
26206 (translate_chars): Fix the bug of skipping annotation data.
26207 (decode_coding, encode_coding): Utilize get_translation_table.
26208 (char_encodable_p, Funencodable_char_position): Translate char if
26209 necessary.
26210 (Ffind_coding_systems_region_internal)
26211 (Fcheck_coding_systems_region): Setup translation table for encode
26212 in a coding system attribute vector in advance.
26213 (Fdefine_coding_system_internal): Allow a symbol as translation
26214 table. For shift-jis type coding system, allow 4th charset.
26215
26216 2008-02-01 Kenichi Handa <handa@m17n.org>
26217
26218 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26219
26220 * xdisp.c (get_next_display_element): Pass -1 as POS to
26221 FACE_FOR_CHAR if displaying a C-string.
26222
26223 2008-02-01 Kenichi Handa <handa@m17n.org>
26224
26225 * composite.c (get_composition_id): Handle xoff and yoff in a
26226 composition rule.
26227
26228 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26229 (struct composition): New member lbearing and rbearing.
26230
26231 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26232 (x_get_glyph_overhangs): Handle a composition glyph.
26233 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26234
26235 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26236 composition glyph.
26237
26238 2008-02-01 Kenichi Handa <handa@m17n.org>
26239
26240 * print.c: Include charset.h.
26241 (Vprint_charset_text_property): New variable.
26242 (Qdefault): Extern it.
26243 (PRINT_STRING_NON_CHARSET_FOUND)
26244 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26245 (print_check_string_result): New variable.
26246 (print_check_string_charset_prop): New function.
26247 (print_prune_charset_plist): New variable.
26248 (print_prune_string_charset): New function.
26249 (print_object): Call print_prune_string_charset if
26250 Vprint_charset_text_property is not t.
26251 (print_interval): Print nothing if interval->plist is nil.
26252 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26253 variable. Init and staticpro print_prune_charset_plist.
26254
26255 2008-02-01 Kenichi Handa <handa@m17n.org>
26256
26257 * fontset.c (new_fontset_from_font_name): Use the specified font
26258 for all characters in the new fontset.
26259
26260 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26261 OBJECT args.
26262
26263 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26264 OBJECT args for composition too.
26265
26266 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26267 OBJECT args.
26268
26269 2008-02-01 Kenichi Handa <handa@m17n.org>
26270
26271 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26272
26273 * fontset.c (reorder_font_vector): Adjust for the change of
26274 FONT_DEF format.
26275 (fontset_face): New arg id. Change caller.
26276 (face_for_char): New args pos and object.
26277 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26278 (fs_query_fontset): Check NAME by Fassoc too.
26279 (Fset_fontset_font): Allow non-XLFD font name.
26280 (Ffontset_info): Adjust for the change of FONT_DEF format.
26281
26282 * fontset.h (face_for_char): Adjust prototype.
26283
26284 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26285 (append_space, extend_face_to_end_of_line)
26286 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26287 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26288
26289 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26290 POS and OBJECT args.
26291
26292 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26293 POS and OBJECT args.
26294
26295 2008-02-01 Jason Rumney <jasonr@gnu.org>
26296
26297 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26298 of GlobalAlloc'ed memory.
26299
26300 2008-02-01 Kenichi Handa <handa@m17n.org>
26301
26302 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26303
26304 * charset.h (charset_table_used): Delete extern.
26305
26306 * charset.c (charset_table_used): Make it static.
26307 (map_charset_chars): Fix args to c_function with.
26308
26309 * chartab.c (map_sub_char_table_for_charset): Fix args to
26310 c_function with.
26311
26312 * coding.h (enum coding_result_code):
26313 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
26314
26315 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26316 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26317 (Vlast_code_conversion_error): New variables.
26318 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26319 (ONE_MORE_BYTE): Record error if any instead of signaling an
26320 error. If non-ASCII multibyte char is found, return the negative
26321 value of the code. All callers changed to check it.
26322 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26323 (record_conversion_result): New function. Change all codes setting
26324 coding->result to call this function.
26325 (detect_coding_utf_8, decode_coding_utf_8)
26326 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26327 Don't use the local variable incomplete.
26328 (emacs_mule_char): Change the second arg to `const'.
26329 (decode_coding): Fix of flushing out unprocessed data.
26330 (make_conversion_work_buffer): Fix making of a work buffer.
26331 (decode_coding_object): Return coding->dst_object.
26332
26333 * fontset.c (set_fontset_font): Fix args.
26334
26335 * lisp.h (CHARACTERBITS): Define as 22.
26336
26337 * process.c (send_process): Be sure to set coding->src_multibyte.
26338
26339 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26340
26341 2008-02-01 Kenichi Handa <handa@m17n.org>
26342
26343 * xdisp.c (handle_auto_composed_prop): Give limit to
26344 Fnext_single_char_property_change.
26345
26346 2008-02-01 Kenichi Handa <handa@m17n.org>
26347
26348 * composite.c (syms_of_composite): Don't make the composition hash
26349 table weak.
26350
26351 * fontset.c (Fset_fontset_font): Fix docstring.
26352
26353 * lisp.h (detect_coding_system): Adjust prototype.
26354
26355 * fileio.c (kill_workbuf_unwind): Delete this function.
26356 (Finsert_file_contents): Adjust the call of detect_coding_system.
26357 Get conversion_buffer by code_conversion_save. Use the macro
26358 CODING_MAY_REQUIRE_DECODING. After decoding, update
26359 coding_system.
26360
26361 * coding.h (make_conversion_work_buffer): Delete extern.
26362 (code_conversion_save): Extern it.
26363
26364 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26365 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26366 (decode_coding_utf_8): Don't do eol converion.
26367 (detect_coding_utf_16): Check coding->src_chars, not
26368 coding->src_bytes. Add heuristics for those that have no signature.
26369 (decode_coding_emacs_mule, decode_coding_iso_2022)
26370 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26371 Don't do eol converion.
26372 (adjust_coding_eol_type): Return a new coding system.
26373 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26374 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26375 each change.
26376 (decode_coding): Pay attention to undo_list. Do eol conversion for
26377 all types of coding-systems (if necessary).
26378 (Vcode_conversion_work_buf_list): Delete it.
26379 (Vcode_conversion_reused_workbuf): Rename from
26380 Vcode_conversion_reused_work_buf.
26381 (Vcode_conversion_workbuf_name): New variable.
26382 (reused_workbuf_in_use): New variable.
26383 (make_conversion_work_buffer): Delete the arg DEPTH.
26384 (code_conversion_restore): Change argument to cons.
26385 (code_conversion_save): Delete the argument BUFFER. Change callers.
26386 (detect_coding_system): New argument src_chars. Change callers.
26387 Fix for utf-16 detection.
26388 (init_coding_once): Don't use ISO_carriage_return.
26389 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26390 reused_workbuf_in_use.
26391
26392 2008-02-01 Kenichi Handa <handa@m17n.org>
26393
26394 * keymap.c (store_in_keymap): Pay attention to the case that idx
26395 is a cons specifying a character range.
26396
26397 2008-02-01 Kenichi Handa <handa@m17n.org>
26398
26399 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26400 HANDLED_RECOMPUTE_PROPS.
26401
26402 * coding.c (Fdefine_coding_system_internal): Fix checking of
26403 ascii compatibility.
26404
26405 2008-02-01 Kenichi Handa <handa@m17n.org>
26406
26407 * charset.c (find_charsets_in_text): Delete unused locale variable.
26408 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26409
26410 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26411 Resync charset_list to Vemacs_mule_charset_list.
26412
26413 * keymap.c (store_in_keymap): Pay attention to the case that idx
26414 is a cons specifying a character range.
26415
26416 2008-02-01 Kenichi Handa <handa@m17n.org>
26417
26418 * composite.c (update_compositions): Bind inhibit-read-only, etc
26419 to t before calling remove-list-of-text-properties.
26420
26421 * print.c (print_object): Always print ASCII chars as is.
26422
26423 2008-02-01 Kenichi Handa <handa@m17n.org>
26424
26425 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26426
26427 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26428 is a char table.
26429
26430 2008-02-01 Kenichi Handa <handa@m17n.org>
26431
26432 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26433
26434 2008-02-01 Kenichi Handa <handa@m17n.org>
26435
26436 * xfaces.c (set_lface_from_font_name): Fix for the case that
26437 FONTNAME is not fontset name.
26438
26439 2008-02-01 Kenichi Handa <handa@m17n.org>
26440
26441 * fns.c (base64_encode_1): Fix previous change.
26442
26443 2008-02-01 Kenichi Handa <handa@m17n.org>
26444
26445 * fontset.c (set_fontset_font): New function.
26446 (Fset_fontset_font): If a font is specified for a charset, use
26447 map_charset_chars to store the font spec in a fontset.
26448
26449 2008-02-01 Kenichi Handa <handa@m17n.org>
26450
26451 * fontset.c (fontset_face): Create a fallback fontset on demand.
26452 (make_fontset): Don't create a fallback fontset here.
26453 (free_face_fontset): Free a fallback fontset (if any) too.
26454 (n_auto_fontsets): Delete this variable.
26455 (auto_fontset_alist): New variable.
26456 (new_fontset_from_font_name): Check auto_fontset_alist.
26457 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26458 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26459 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26460 Defsubr Sfontset_list_all.
26461
26462 2008-02-01 Kenichi Handa <handa@m17n.org>
26463
26464 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26465
26466 2008-02-01 Kenichi Handa <handa@m17n.org>
26467
26468 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26469
26470 2008-02-01 Kenichi Handa <handa@m17n.org>
26471
26472 * editfns.c (Fgoto_char): Fix docstring.
26473
26474 2008-02-01 Kenichi Handa <handa@m17n.org>
26475
26476 * insdel.c (insert_from_gap): Adjust intervals correctly.
26477
26478 2008-02-01 Jason Rumney <jasonr@gnu.org>
26479
26480 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26481 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26482 (w32_initialize): Try to load it.
26483 (x_get_font_repertory): Use it if available.
26484 (w32_encode_char): Add shortcut for unicode output.
26485
26486 * w32fns.c (w32_load_system_font): Default charset to -1.
26487 (x_to_w32_charset): Match all fonts for unicode.
26488 (w32_to_x_charset): New parameter matching. Don't return partial
26489 or wildcard charsets.
26490 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26491 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26492 (w32_to_x_font): Match charset to real charset.
26493 (enum_font_cb2): Always list unicode versions.
26494
26495 * makefile.w32-in (temacs): Increase EMHEAP.
26496
26497 2008-02-01 Jason Rumney <jasonr@gnu.org>
26498
26499 * w32term.c (w32_encode_char): New charset parameter.
26500 font_info.encoding becomes encoding_type.
26501 (x_get_font_repertory): New function. Warning: stub only!
26502 (x_new_font): Return quickly if font already set.
26503 (x_new_fontset): fontsetname parameter is Lisp_Object.
26504 Use new fs_query_fontset. Try new_fontset_from_font_name.
26505 Use fontset_name for return value.
26506
26507 * w32term.h: Declare x_get_font_repertory.
26508
26509 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26510 place of find_charset_in_text. Use encode_coding_object in place
26511 of encode_coding.
26512 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26513 decode_coding.
26514
26515 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26516 of x_new_fontset.
26517 (w32_load_system_font): Initialize charset as unicode.
26518 font_info.encoding becomes encoding_type.
26519 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26520 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26521 (syms_of_w32fns): Set get_font_repertory_func.
26522
26523 * w32console.c: Include character.h. Use terminal_encode_buffer
26524 from term.c.
26525 (write_glyphs): Use new version of encode_terminal_code.
26526 Use encode_coding_object in place of encode_coding.
26527
26528 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26529 encoding becomes encoding_type.
26530
26531 * term.c (terminal_encode_buffer): Make externally visible.
26532
26533 * makefile.w32-in: Add character.h dependancies.
26534 (character.o, chartab.o): New targets.
26535
26536 2008-02-01 Kenichi Handa <handa@m17n.org>
26537
26538 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26539 CODING_ID_EOL_TYPE.
26540
26541 2008-02-01 Andreas Schwab <schwab@suse.de>
26542
26543 * coding.c (produce_chars): Revert last change.
26544
26545 2008-02-01 Kenichi Handa <handa@m17n.org>
26546
26547 * charset.h (charset_unicode): Extern it.
26548
26549 * charset.c (string_xstring_p): Check by (C >= 0x100).
26550 (find_charsets_in_text): Change format of the arc CHARSETS.
26551 New arg MULTIBYTE.
26552 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26553 change of find_charsets_in_text.
26554 (Fsplit_char): Fix doc. Never return unknown.
26555
26556 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26557
26558 * coding.c (Fdefine_coding_system_alias):
26559 Update Vcoding_system_list.
26560
26561 * fontset.c (load_font_get_repertory): Pay attention to the case
26562 that ENCODING of a font is specified by a char-table.
26563
26564 * xterm.c (x_get_font_repertory): Handle the case that the
26565 encoding of font is other than Unicode.
26566
26567 2008-02-01 Kenichi Handa <handa@m17n.org>
26568
26569 * term.c (encode_terminal_code): Don't handle glyph-table.
26570 Check if a character is encodable by the terminal coding system.
26571 If not, produces proper number of `?'s. Update
26572 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26573 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26574
26575 2008-02-01 Kenichi Handa <handa@m17n.org>
26576
26577 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26578 New variables.
26579 (encode_terminal_code): Change argument. Encode multiple
26580 characters at once. Store the result of encoding in
26581 terminal_encode_buffer.
26582 (write_glyphs, insert_glyphs): Adjust for the change of
26583 encode_terminal_code.
26584 (term_init): Initialize terminal_encode_buffer and
26585 terminal_encode_buf_size.
26586
26587 * coding.c (consume_chars): If coding->src_object is nil, don't
26588 check annotation.
26589
26590 2008-02-01 Kenichi Handa <handa@m17n.org>
26591
26592 * character.c (char_string): Use ASCII_CHAR_P instead of
26593 SINGLE_BYTE_CHAR_P.
26594
26595 2008-02-01 Kenichi Handa <handa@m17n.org>
26596
26597 * xdisp.c (handle_auto_composed_prop): Check if the last
26598 characters of auto-composed region is newly composed with the
26599 following characters.
26600 (handle_composition_prop): Fix checking of point being inside
26601 composition.
26602
26603 2008-02-01 Kenichi Handa <handa@m17n.org>
26604
26605 * fns.c (concat): Don't change multibyteness of the result by
26606 concatenating an 8-bit character.
26607
26608 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26609 multibyteness of the result when newelt is an 8-bit character.
26610
26611 2008-02-01 Dave Love <fx@gnu.org>
26612
26613 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26614 EMACS_INT.
26615
26616 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26617
26618 * xfaces.c (face_numeric_value): Declare dim size_t.
26619 (Finternal_lisp_face_equal_p): Remove unused f.
26620
26621 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26622 (MATRIX_ROW): Remove unused vars.
26623 (draw_glyphs, x_insert_glyphs, fast_find_position)
26624 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26625 byte/char counts.
26626
26627 * regex.c (regex_compile): Remove unused var.
26628
26629 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26630
26631 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26632 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26633
26634 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26635
26636 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26637
26638 * fileio.c (Fwrite_region): Remove unused var.
26639
26640 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26641 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26642
26643 * composite.c (Fremove_list_of_text_properties): Declare.
26644
26645 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26646 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26647 (coding_inherit_eol_type): Remove unused attrs.
26648 (detect_coding): Cast arg of detect_eol.
26649
26650 * charset.c (syms_of_charset): Remove unused var p.
26651 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26652 byte/char counts.
26653
26654 * casetab.c (set_case_table): Remove unused var.
26655
26656 * window.c (Fdisplay_buffer, Fframe_selected_window):
26657 Remove unused vars.
26658
26659 2008-02-01 Dave Love <fx@gnu.org>
26660
26661 * xterm.c (x_bitmap_mask): Declare.
26662
26663 2008-02-01 Dave Love <fx@gnu.org>
26664
26665 * xterm.c (x_term_init): Fix type error.
26666
26667 * lisp.h: Add Funibyte_char_to_multibyte.
26668
26669 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26670 (Fset_coding_system_priority): Doc fix.
26671
26672 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26673
26674 * indent.c (check_composition): Make start and end EMACS_INT.
26675
26676 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26677
26678 * xdisp.c (handle_composition_prop, check_point_in_composition):
26679 Make buffer positions EMACS_INT.
26680
26681 * composite.c (find_composition, run_composition_function)
26682 (update_compositions, Ffind_composition_internal): Make buffer
26683 positions EMACS_INT.
26684
26685 * composite.h (find_composition, update_compositions):
26686 Make position args EMACS_INT.
26687
26688 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26689
26690 * intervals.c (get_property_and_range):
26691 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26692
26693 * unexalpha.c: Don't include varargs.h.
26694
26695 2008-02-01 Dave Love <fx@gnu.org>
26696
26697 * coding.h (ENCODE_UTF_8): New.
26698
26699 * Makefile.in (gtkutil.o): Depend on coding.h.
26700
26701 * coding.c (Fset_coding_system_priority): Doc fix.
26702
26703 2008-02-01 Kenichi Handa <handa@m17n.org>
26704
26705 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26706 the case of auto saving.
26707
26708 2008-02-01 Andreas Schwab <schwab@suse.de>
26709
26710 * chartab.c (map_char_table, map_char_table_for_charset):
26711 Protect `range' from GC.
26712
26713 2008-02-01 Kenichi Handa <handa@m17n.org>
26714
26715 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26716
26717 2008-02-01 Kenichi Handa <handa@m17n.org>
26718
26719 * fileio.c (choose_write_coding_system): Return a decided coding system.
26720 (Fwrite_region): Set Vlast_coding_system_used to the return value
26721 of choose_write_coding_system.
26722
26723 2008-02-01 Kenichi Handa <handa@m17n.org>
26724
26725 * charset.c (Fset_charset_priority): Pay attention to duplicated
26726 arguments.
26727
26728 * coding.c (QCcategory): New variable.
26729 (syms_of_coding): Defsym it. Set all elements of
26730 Vcoding_category_table and their symbol values.
26731 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26732 coding-category-XXX, and coding-category-list.
26733 (Fdefine_coding_system_internal): Add category in the plist.
26734
26735 2008-02-01 Kenichi Handa <handa@m17n.org>
26736
26737 * callproc.c (Fcall_process): Handle carryover correctly.
26738
26739 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26740 (raw_text_coding_system): Check NILP (coding_system).
26741 (coding_inherit_eol_type): Check NILP (coding_system) and
26742 NILP (parent).
26743 (consume_chars): Fix for the case of raw-text.
26744
26745 * process.c (read_process_output): Handle carryover correctly.
26746
26747 2008-02-01 Dave Love <fx@gnu.org>
26748
26749 * regex.c (re_search_2): Fix last change.
26750
26751 2008-02-01 Kenichi Handa <handa@m17n.org>
26752
26753 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26754 target_multibyte. Even in a unibyte case, return a converted
26755 multibyte char.
26756 (GET_CHAR_AFTER): New macro.
26757 (PATFETCH): Translate via multibyte char.
26758 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26759 (SETUP_MULTIBYTE_RANGE): New macro.
26760 (regex_compile): Setup compiled code so that its multibyteness
26761 matches that of a target. Fix the handling of "[X-YZ]" using
26762 SETUP_MULTIBYTE_RANGE.
26763 (analyse_first) <charset>: For filling fastmap for all multibyte
26764 characters, don't check by BASE_LEADING_CODE_P.
26765 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26766 the same as RE_MULTIBYTE_P (bufp) now.
26767 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26768 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26769 (TRANSLATE_VIA_MULTIBYTE): New macro.
26770 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26771 It is the same as RE_MULTIBYTE_P (bufp) now.
26772 <exactn>: Translate via multibyte.
26773 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26774 Don't translate it.
26775 <charset, charset_not>: Fetch a character by
26776 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26777 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26778 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26779 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26780 by GET_CHAR_AFTER.
26781 (bcmp_translate): Likewise.
26782
26783 * search.c (compile_pattern): Check the member target_multibyte,
26784 not the member multibyte of buf.
26785
26786 * lread.c (read1): While reading a string, set force_singlebyte
26787 and force_multibyte correctly.
26788
26789 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26790 up of unibyte_to_multibyte_table.
26791
26792 2008-02-01 Kenichi Handa <handa@m17n.org>
26793
26794 * coding.c (setup_coding_system): If coding has
26795 post-read-conversion or pre-write-conversion, set
26796 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26797 respectively.
26798 (decode_coding_gap): Run post-read-conversion if any.
26799
26800 * fileio.c (Finsert_file_contents): Even if we read into a
26801 unibyte buffer, check if we must decode the result or not.
26802
26803 2008-02-01 Kenichi Handa <handa@m17n.org>
26804
26805 * coding.c (make_conversion_work_buffer): Change the work buffer
26806 name to the same one as that of Emacs 21.
26807
26808 2008-02-01 Kenichi Handa <handa@m17n.org>
26809
26810 * coding.h (make_conversion_work_buffer): Adjust prototype.
26811 (code_conversion_restore): Don't extern it.
26812
26813 * coding.c (detected_mask): Delete unused variable.
26814 (decode_coding_iso_2022): Pay attention to the byte sequence of
26815 CTEXT extended segment, and retain those bytes as is.
26816 (decode_coding_ccl): Delete unused variable `valids'.
26817 (setup_coding_system): Delete unused variable `category'.
26818 (consume_chars): Delete unused variable `category'. Make it work
26819 for non-multibyte case.
26820 (make_conversion_work_buffer): Change argument.
26821 (saved_coding): Delete unused variable.
26822 (code_conversion_restore): Don't check saved_coding->destination.
26823 (code_conversion_save): New function.
26824 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26825 instead of record_unwind_protect.
26826 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26827 (detect_coding_system): Delete unused variable `mask'.
26828 (Fdefine_coding_system_internal): Delete unused variable id.
26829
26830 * fileio.c (kill_workbuf_unwind): New function.
26831 (Finsert_file_contents): On replacing, call
26832 make_conversion_work_buffer with correct args, and call
26833 record_unwind_protect with the first arg kill_workbuf_unwind.
26834
26835 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26836
26837 2008-02-01 Kenichi Handa <handa@m17n.org>
26838
26839 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26840 (fontset_add): Fix for the case that TO is less than TO1.
26841 (Ffontset_info): Don't use fallback fontset on checking the
26842 default fontset.
26843 (dump_fontset): New function for debugging.
26844
26845 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26846 coding_type is Qcharset.
26847
26848 2008-02-01 Kenichi Handa <handa@m17n.org>
26849
26850 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26851 (map_char_table): Don't inherit the value from the parent on
26852 initializing VAL. Adjust for the above change.
26853
26854 2008-02-01 Kenichi Handa <handa@m17n.org>
26855
26856 * coding.c (Qsignature, Qendian): Delete these variables.
26857 (syms_of_coding): Don't initialize them.
26858 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26859 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26860 detect_info->found.
26861 (decode_coding_utf_16): Don't detect BOM here.
26862 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26863 is NOT utf_16_without_bom.
26864 (setup_coding_system): For a coding system of type utf-16, check
26865 if the attribute :endian is Qbig or not (not nil or not), and set
26866 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26867 (detect_coding): If coding type is utf-16 and BOM detection is
26868 required, detect it.
26869 (Fdefine_coding_system_internal): For a coding system of type
26870 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26871
26872 2008-02-01 Kenichi Handa <handa@m17n.org>
26873
26874 * coding.c (coding_set_source): Fix for the case that the current
26875 buffer is different from coding->src_object.
26876 (decode_coding_object): Don't use the conversion work buffer if
26877 DST_OBJECT is a buffer.
26878
26879 2008-02-01 Dave Love <fx@gnu.org>
26880
26881 * lread.c (read_emacs_mule_char) [len==2]: Index
26882 emacs_mule_charset correctly.
26883
26884 2008-02-01 Dave Love <fx@gnu.org>
26885
26886 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26887 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26888 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26889 treated specially.)
26890 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26891 (detected_mask): Remove Big5 bits.
26892
26893 2008-02-01 Kenichi Handa <handa@m17n.org>
26894
26895 The following changes are to make the font rescaling facility
26896 compatible with Emacs 21.
26897
26898 * xfaces.c (Vface_font_rescale_alist): Rename from
26899 Vface_resizing_fonts.
26900 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26901 (font_rescale_ratio): Rename from font_resizing_ratio.
26902 (split_font_name): Set font->rescale_ratio.
26903 (better_font_p): Pay attention to font->rescale_ratio.
26904 (build_scalable_font_name): Likewise. Change RESX, and RESY
26905 fields.
26906 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26907
26908 2008-02-01 Kenichi Handa <handa@m17n.org>
26909
26910 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26911 (Qutf_16_le): Remove these variables.
26912 (syms_of_coding): Don't DEFSYM them.
26913 (decode_coding_utf_16): Fix handling of BOM.
26914 (encode_coding_utf_16): Fix handling of BOM.
26915
26916 2008-02-01 Kenichi Handa <handa@m17n.org>
26917
26918 * fileio.c (Finsert_file_contents): On replacing, before decoding
26919 the file into the work buffer, set point of the work buffer to the end.
26920
26921 2008-02-01 Dave Love <fx@gnu.org>
26922
26923 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26924
26925 2008-02-01 Dave Love <fx@gnu.org>
26926
26927 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26928 and fix C types.
26929
26930 2008-02-01 Kenichi Handa <handa@m17n.org>
26931
26932 * xdisp.c (SKIP_GLYPHS): New macro.
26933 (set_cursor_from_row): Pay attention to string display properties.
26934
26935 * category.c (copy_category_entry): Fix for the case that RANGE
26936 is an integer.
26937
26938 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26939
26940 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26941
26942 2008-02-01 Kenichi Handa <handa@m17n.org>
26943
26944 * charset.c (Fcharset_id_internal): New function.
26945 (syms_of_charset): Defsubr it.
26946
26947 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26948 with the last arg charset_list acquired from coding.
26949 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26950 the attribute coding_attr_ccl_valids.
26951
26952 * coding.h (enum define_coding_ccl_arg_index): Set the first
26953 member coding_arg_ccl_decoder to coding_arg_max.
26954
26955 * ccl.h (ccl_driver): Adjust prototype.
26956
26957 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26958 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
26959 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
26960 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26961 last arg Qnil.
26962
26963 2008-02-01 Kenichi Handa <handa@m17n.org>
26964
26965 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26966 call encode_char.
26967
26968 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26969
26970 2008-02-01 Dave Love <fx@gnu.org>
26971
26972 * composite.c (syms_of_composite): Make composition_hash_table weak.
26973
26974 2008-02-01 Kenichi Handa <handa@m17n.org>
26975
26976 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26977 (font_name_registry): Don't extern them.
26978 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26979
26980 * fontset.h (Qfontset): Don't extern it.
26981 (new_fontset_from_font_name): Extern it.
26982
26983 * fontset.c: Give 8 extra slots to fontset objects.
26984 (Qfontset_info): New variable.
26985 (syms_of_fontset): Defsym it.
26986 (FONTSET_FALLBACK): New macro.
26987 (fontset_face): Try also the default fontset.
26988 (make_fontset): Realize a fallback fontset from the default fontset.
26989 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26990 using split_font_name_into_vector and build_font_name_from_vector.
26991 (Fset_fontset_font): Access the elements of font_spec by enum
26992 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26993 name by using split_font_name_into_vector.
26994 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
26995 generate a proper font name from the fontset name.
26996 Update Vfontset_alias_alist.
26997 (n_auto_fontsets): New variable.
26998 (new_fontset_from_font_name): New function.
26999 (Ffont_info): Store the information about fonts generated from the
27000 default fontset in the first extra slot of the returned char-table.
27001
27002 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
27003 (font_name_registry): Delete function.
27004 (split_font_name_into_vector): New function.
27005 (build_font_name_from_vector): New function.
27006 (font_list): The argument REGISTRY is now a list of registry names.
27007 (choose_face_font): If we are choosing an ASCII font, and ATTRS
27008 specifies an explicit font name, return the name as is. Make a
27009 list of registy names.
27010
27011 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
27012 of x_new_fontset.
27013 (Fx_create_frame): Don't call x_new_fontset here. Just use
27014 x_list_fonts to check the existence of fonts.
27015
27016 * xterm.h (x_new_fontset): Adjust prototype.
27017
27018 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
27019 string. Use new_fontset_from_font_name to create a fontset from a
27020 font name.
27021
27022 2008-02-01 Kenichi Handa <handa@m17n.org>
27023
27024 * syntax.c (Vfind_word_boundary_function_table): New name for
27025 Vnext_word_boundary_function_table.
27026 (find-word-boundary-function-table): New name for
27027 next-word-boundary-function-table.
27028
27029 2008-02-01 Dave Love <fx@gnu.org>
27030
27031 * Makefile.in: Fix some dependencies.
27032
27033 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27034 set it to nil before returning.
27035
27036 * composite.c (update_compositions): Fix type error.
27037
27038 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27039
27040 2008-02-01 Kenichi Handa <handa@m17n.org>
27041
27042 * xterm.c (x_new_font): Optimize for the case that the font is
27043 already set for the frame.
27044
27045 2008-02-01 Kenichi Handa <handa@m17n.org>
27046
27047 * chartab.c (char_table_ascii): Check if the char table contents
27048 is sub-char-table or not.
27049 (char_table_set, char_table_set_range): Fix argument to
27050 char_table_ascii.
27051
27052 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27053 (detect_coding_utf_8, detect_coding_utf_16)
27054 (detect_coding_emacs_mule, detect_coding_iso_2022)
27055 (detect_coding_sjis, detect_coding_big5)
27056 (detect_coding_ccl, detect_coding_charset): Change argument MASK
27057 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
27058 sequence is valid in this coding system. Change callers.
27059 (MAX_ANNOTATION_LENGTH): New macro.
27060 (ADD_ANNOTATION_DATA): New macro.
27061 (ADD_COMPOSITION_DATA): Change argument. Change callers.
27062 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
27063 (ADD_CHARSET_DATA): New macro.
27064 (emacs_mule_char): New argument ID. Change callers.
27065 (decode_coding_emacs_mule, decode_coding_iso_2022)
27066 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27067 Produce charset annotation data in coding->charbuf.
27068 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27069 to charset annotation data in coding->charbuf.
27070 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27071 coding->common_flags if the coding system is iso-2022 based and
27072 uses designation.
27073 (produce_composition): Adjust for the new annotation data format.
27074 (produce_charset): New function.
27075 (produce_annotation): Handle charset annotation.
27076 (handle_composition_annotation, handle_charset_annotation):
27077 New functions.
27078 (consume_chars): Handle charset annotation. Utilize the above two
27079 functions.
27080 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27081 buffer, get the deleted text as a string and set
27082 coding->src_object to that string.
27083 (detect_coding, detect_coding_system): Use the new struct
27084 coding_detection_info.
27085
27086 * coding.h (struct coding_detection_info): New structure.
27087 (struct coding_system): Adjust prototype of the member `detector'.
27088 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27089
27090 2008-02-01 Kenichi Handa <handa@m17n.org>
27091
27092 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27093
27094 2008-02-01 Dave Love <fx@gnu.org>
27095
27096 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27097 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27098 to new local and nullify apropos_accumulate before returning.
27099 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27100
27101 2008-02-01 Kenichi Handa <handa@m17n.org>
27102
27103 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27104 correctly.
27105
27106 2008-02-01 Dave Love <fx@gnu.org>
27107
27108 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27109
27110 2008-02-01 Kenichi Handa <handa@m17n.org>
27111
27112 The following changes are to make character composition happen
27113 automatically on displaying.
27114
27115 * Makefile.in (lisp, shortlisp): Add composite.elc.
27116
27117 * composite.h (Qauto_composed, Vauto_composition_function)
27118 (Qauto_composition_function): Extern them.
27119
27120 * composite.c (Vcomposition_function_table)
27121 (Qcomposition_function_table): Delete variables.
27122 (Qauto_composed, Vauto_composition_function)
27123 (Qauto_composition_function): New variables.
27124 (run_composition_function): Don't call
27125 compose-chars-after-function.
27126 (update_compositions): Clear `auto-composed' text property.
27127 (compose_chars_in_text): Delete this function.
27128 (syms_of_composite): Staticpro Qauto_composed and
27129 Qauto_composition_function. Declare Vauto_composition_function as
27130 a Lisp variable.
27131
27132 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27133
27134 * xdisp.c (it_props): Add an entry for Qauto_composed.
27135 (handle_auto_composed_prop): New function.
27136
27137 * xselect.c (selection_data_to_lisp_data): Don't call
27138 compose_chars_in_text.
27139
27140 2008-02-01 Dave Love <fx@gnu.org>
27141
27142 * keyboard.c (read_char): Modify checking around use of
27143 Vkeyboard_translate_table.
27144
27145 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27146 and fix C types.
27147
27148 2008-02-01 Kenichi Handa <handa@m17n.org>
27149
27150 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27151 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27152 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27153 the case that the last byte is '\r' correctly.
27154 (decode_coding): Flush out the unprocessed data correctly.
27155 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27156
27157 2008-02-01 Dave Love <fx@gnu.org>
27158
27159 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27160 Add XK_ISO... case.
27161 (xaw_scroll_callback): Revert last change.
27162
27163 2008-02-01 Kenichi Handa <handa@m17n.org>
27164
27165 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27166
27167 2008-02-01 Kenichi Handa <handa@m17n.org>
27168
27169 * xfaces.c (Vface_resizing_fonts): New variable.
27170 (struct font_name): New member `resizing_ratio'.
27171 (font_resizing_ratio): New function.
27172 (split_font_name): Set font->resizing_ratio.
27173 (better_font_p): Pay attention to font->resizing_ratio.
27174 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27175 RESX, and RESY fields.
27176 (try_alternative_families): Try scalable fonts if
27177 Vscalable_fonts_allowed is not Qt.
27178 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27179
27180 2008-02-01 Dave Love <fx@gnu.org>
27181
27182 * xterm.c (xaw_scroll_callback): Cast correctly.
27183
27184 2008-02-01 Dave Love <fx@gnu.org>
27185
27186 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27187 (lispy_kana_keys): Comment out.
27188 (make_lispy_event) [XK_kana_A]: Comment out.
27189
27190 * xterm.c (xaw_scroll_callback): Cast call_data.
27191 (XTread_socket): Deal with ASCII keysyms.
27192 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27193
27194 2008-02-01 Dave Love <fx@gnu.org>
27195
27196 * xterm.c (Vx_keysym_table): New.
27197 (syms_of_xterm): Initialize it.
27198 (XTread_socket): Use it.
27199 From head: Eliminate incorrect optimization that tried to avoid
27200 decoding the output of X*LookupString.
27201 (x_get_font_repertory): Delete charset declaration.
27202
27203 2008-02-01 Kenichi Handa <handa@m17n.org>
27204
27205 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27206 return 0.
27207 (Fdefine_coding_system_internal):
27208 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
27209
27210 2008-02-01 Dave Love <fx@gnu.org>
27211
27212 * coding.c (Fcheck_coding_system): Doc fix.
27213
27214 * editfns.c (Finsert_byte): Return a proper value.
27215
27216 2008-02-01 Kenichi Handa <handa@m17n.org>
27217
27218 * coding.c (decode_coding): Fix args to translate_chars.
27219 Pay attention to Vstandard_translation_table_for_decode.
27220 (encode_coding): Fix args to translate_chars. Pay attention to
27221 Vstandard_translation_table_for_encode.
27222
27223 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27224 SINGLE_BYTE_CHAR_P.
27225
27226 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27227 not by SINGLE_BYTE_CHAR_P.
27228
27229 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27230 SINGLE_BYTE_CHAR_P.
27231
27232 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27233 SINGLE_BYTE_CHAR_P.
27234
27235 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27236 by SINGLE_BYTE_CHAR_P.
27237
27238 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27239 SINGLE_BYTE_CHAR_P.
27240
27241 2008-02-01 Dave Love <fx@gnu.org>
27242
27243 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27244
27245 2008-02-01 Dave Love <fx@gnu.org>
27246
27247 * fns.c (Flanginfo): Fix typo.
27248
27249 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27250
27251 2008-02-01 Kenichi Handa <handa@m17n.org>
27252
27253 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27254 (detect_coding_emacs_mule, detect_coding_iso_2022)
27255 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27256 incomplete byte sequence. Don't update *mask when correctly detected.
27257 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27258 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27259 (detect_coding, detect_coding_system): Adjust for the changes above.
27260
27261 2008-02-01 Kenichi Handa <handa@m17n.org>
27262
27263 * character.c (char_string): Rename from
27264 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27265 (string_char): Rename from string_char.
27266
27267 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27268 if C is greater than MAX_3_BYTE_CHAR.
27269 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27270 Call string_char instead of string_char_with_unification.
27271
27272 2008-02-01 Dave Love <fx@gnu.org>
27273
27274 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27275
27276 2008-02-01 Kenichi Handa <handa@m17n.org>
27277
27278 * keymap.c (push_key_description): Pay attention to force_multibyte.
27279
27280 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27281
27282 2008-02-01 Dave Love <fx@gnu.org>
27283
27284 * charset.c (define_charset_internal): Rename `supprementary'.
27285
27286 * Makefile.in (lisp, shortlisp): Remove latin-N.
27287
27288 2008-02-01 Dave Love <fx@gnu.org>
27289
27290 * xfns.c (x_window, x_window): Use use_xim.
27291
27292 * xterm.c (use_xim): Initialize.
27293 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27294 (x_term_init): Maybe set use_xim.
27295
27296 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27297
27298 2008-02-01 Kenichi Handa <handa@m17n.org>
27299
27300 * search.c (search_buffer): Fix case-fold-search of multibyte
27301 characters.
27302 (boyer_moore): Rename the last argument to char_high_bits.
27303
27304 2008-02-01 Kenichi Handa <handa@m17n.org>
27305
27306 * xdisp.c (display_string): Fix for the case of zero width glyph.
27307
27308 * xfns.c (x_set_font): Change the error message of the case that
27309 x_new_fontset returns Qt.
27310
27311 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27312 (Finternal_set_lisp_face_attribute): Use signal_error for the
27313 error of invalid fontset.
27314
27315 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27316 fontset, return Qt.
27317
27318 2008-02-01 Dave Love <fx@gnu.org>
27319
27320 * unexelf.c (unexec): Make .got handling not SGI-specific.
27321
27322 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27323
27324 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27325
27326 * keyboard.c (read_key_sequence): Fix type error.
27327
27328 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27329 Fix type error.
27330
27331 * fontset.c (fontset_add): Return Lisp_Object.
27332
27333 2008-02-01 Dave Love <fx@gnu.org>
27334
27335 * charset.h (charset_ordered_list_tick): Declare extern.
27336
27337 2008-02-01 Kenichi Handa <handa@m17n.org>
27338
27339 The following changes (and some of 2008-02-01 changes of mine) are
27340 for handling syntax, category, and case conversion for unibyte
27341 characters by converting them to multibyte on the fly. With these
27342 changes, we don't have to setup syntax and case tables for unibyte
27343 characters in each language environment.
27344
27345 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27346 multibyte if necessary.
27347
27348 * bytecode.c (Fbyte_code): Likewise.
27349
27350 * character.h (LEADING_CODE_LATIN_1_MIN)
27351 (LEADING_CODE_LATIN_1_MAX): New macros.
27352 (unibyte_to_multibyte_table): Extern it.
27353 (unibyte_char_to_multibyte): New macro.
27354 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27355 (CHAR_LEADING_CODE): New macro.
27356 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27357
27358 * character.c (unibyte_to_multibyte_table): New variable.
27359 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27360 (multibyte_char_to_unibyte): If C is an eight-bit character,
27361 convert it to the corresponding byte value.
27362
27363 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27364 not 1, signals an error. Update the elements of
27365 unibyte_to_multibyte_table.
27366 (init_charset_once): Initialize unibyte_to_multibyte_table.
27367 (syms_of_charset): Define the charset `iso-8859-1'.
27368
27369 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27370 as is without converting it to unibyte. In a unibyte buffer,
27371 convert C to multibyte before checking the syntax.
27372
27373 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27374
27375 * minibuf.c (Fminibuffer_complete_word): Use the macro
27376 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27377
27378 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27379
27380 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
27381 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27382 If that is zero, convert an eight-bit char to multibyte.
27383 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27384 non-emacs case.
27385 (PATFETCH): Convert an eight-bit char to multibyte.
27386 (HANDLE_UNIBYTE_RANGE): New macro.
27387 (regex_compile): Setup the compiled pattern for multibyte chars
27388 even if the given regex string is unibyte. Use PATFETCH_RAW
27389 instead of PATFETCH in many places. To handle `charset'
27390 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27391 only for ASCII chars.
27392 (analyse_first) <exactn>: Simplify because the compiled pattern
27393 is multibyte.
27394 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27395 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27396 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27397 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27398 multibyte always 1.
27399 (re_search_2): In emacs, set the locale variable multibyte to 1,
27400 otherwise to 0. New local variable target_multibyte. Check it
27401 to decide the multibyteness of STR1 and STR2.
27402 If target_multibyte is zero, convert unibyte chars to multibyte
27403 before translating and checking fastmap.
27404 (TARGET_CHAR_AND_LENGTH): New macro.
27405 (re_match_2_internal): In emacs, set the locale variable multibyte
27406 to 1, otherwise to 0. New local variable target_multibyte.
27407 Check it to decide the multibyteness of STR1 and STR2.
27408 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
27409 <charset, charset_not>: If multibyte is nonzero, check fastmap
27410 only for ASCII chars. Call bcmp_translate with
27411 target_multibyte, not with multibyte.
27412 <begline>: Declare the local variable C as `unsigned'.
27413 (bcmp_translate): Change the last arg name to target_multibyte.
27414
27415 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27416 the regexp pattern and the matching target. Set cp->buf.multibyte
27417 to the multibyteness of the regexp pattern. Set
27418 cp->but.target_multibyte to the multibyteness of the matching target.
27419 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27420 FETCH_STRING_CHAR_ADVANCE.
27421 (Freplace_match): Convert unibyte chars to multibyte.
27422
27423 * syntax.c (char_quoted, back_comment, scan_words)
27424 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27425 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27426 unibyte chars to multibyte.
27427 (skip_chars): Delete the arg syntaxp, and move the code for
27428 handling syntaxes to skip_syntaxes. Change callers.
27429 Fix the case that the multibyteness of STRING and the current
27430 buffer doesn't match.
27431 (skip_syntaxes): New function.
27432 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27433 SINGLE_BYTE_CHAR_P.
27434
27435 2008-02-01 Kenichi Handa <handa@m17n.org>
27436
27437 * xfaces.c (QCfontset): New variable.
27438 (LFACE_FONTSET): New macro.
27439 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27440 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27441 (Finternal_set_lisp_face_attribute)
27442 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27443 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27444 check also LFACE_FONTSET_INDEX.
27445 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27446 attrs[LFACE_FONT_INDEX].
27447 (syms_of_xfaces): Intern and staticpro QCfontset.
27448
27449 * dispextern.h (enum lface_attribute_index): New member
27450 LFACE_FONTSET_INDEX.
27451
27452 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27453
27454 2008-02-01 Kenichi Handa <handa@m17n.org>
27455
27456 * coding.c (coding_set_destination): Fix coding->destination for
27457 the case converting a region.
27458 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27459 (encode_coding_object): Fix coding->dst_pos and
27460 coding->dst_pos_byte for the case converting a region.
27461
27462 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27463
27464 * character.h (BYTE8_STRING): New macro.
27465
27466 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27467
27468 2008-02-01 Kenichi Handa <handa@m17n.org>
27469
27470 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27471 characters by octal form.
27472
27473 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27474
27475 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27476 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27477 _fetch_multibyte_char_len.
27478 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27479
27480 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27481
27482 * casefiddle.c (casify_object): Simplify. Handle the case that
27483 the case conversion change the byte length.
27484 (casify_region): Likewise.
27485
27486 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27487
27488 * character.c (_fetch_multibyte_char_len): Delete this variable.
27489 (syms_of_character): Setup Vprintable_chars.
27490
27491 * editfns.c (Fchar_equal): Fix for the unibyte case.
27492 (Finsert_byte): New function.
27493 (syms_of_editfns): Defsubr it.
27494
27495 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27496 of direct code 0x3ffff.
27497
27498 * search.c (Freplace_match): Fix for the unibyte case.
27499
27500 2008-02-01 Kenichi Handa <handa@m17n.org>
27501
27502 * lread.c (safe_to_load_p): Fix the logic.
27503
27504 * syntax.c (scan_words): Don't treat characters belonging to
27505 different scripts as constituting a word.
27506
27507 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27508
27509 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27510
27511 * emacs.c (main): In the case of --unibyte, instead of aborting on
27512 finding non-empty buffer, make it unibyte.
27513
27514 2008-02-01 Kenichi Handa <handa@m17n.org>
27515
27516 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27517 to create a fontset.
27518
27519 2008-02-01 Dave Love <fx@gnu.org>
27520
27521 * character.c (Funibyte_char_to_multibyte): Doc fix.
27522
27523 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27524
27525 2008-02-01 Kenichi Handa <handa@m17n.org>
27526
27527 * fontset.c (fontset_add): Make the type `int'.
27528 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27529
27530 * character.c (unibyte_char_to_multibyte)
27531 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27532 charset_unibyte, not charset_primary.
27533
27534 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27535
27536 * charset.c (charset_unibyte): Rename from charset_primary.
27537 (Funibyte_charset): Rename from Fprimary_charset.
27538 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27539 (syms_of_charset): Adjust for the above changes.
27540
27541 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27542 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27543 it->multibyte_p is zero.
27544
27545 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27546 Delete extern.
27547
27548 2008-02-01 Kenichi Handa <handa@m17n.org>
27549
27550 * coding.c (Fdefine_coding_system_internal): Fix category setting
27551 for a coding system of type iso-2022.
27552
27553 2008-02-01 Kenichi Handa <handa@m17n.org>
27554
27555 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27556
27557 2008-02-01 Kenichi Handa <handa@m17n.org>
27558
27559 * syntax.c (Vnext_word_boundary_function_table): New variable.
27560 (next-word-boundary-function-table): Declare it as a Lisp variable
27561 in syms_of_syntax.
27562 (scan_words): Call functions in Vnext_word_boundary_function_table
27563 if any.
27564
27565 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27566
27567 * fontset.c (fs_load_font): If fontp->charset is not negative,
27568 return fontp without setting its members.
27569
27570 2008-02-01 Dave Love <fx@gnu.org>
27571
27572 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27573
27574 * m/sparc.h (HAVE_ALLOCA): Delete.
27575
27576 * s/irix6-5.h: Don't include strings.h.
27577 (bcopy, bzero, bcmp): Don't undef.
27578
27579 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27580
27581 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27582 (TIOCSIGSEND): Don't test IRIX6.
27583 (bcopy, bzero, bcmp): Define conditionally.
27584
27585 2008-02-01 Kenichi Handa <handa@m17n.org>
27586
27587 * buffer.c (Qas, Qmake, Qto): New variables.
27588 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27589 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27590
27591 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27592 we are inserting a process output into a multibyte buffer.
27593
27594 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27595 multibyte_char_to_unibyte.
27596
27597 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27598 by the primary charset, make it eight-bit char.
27599 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27600
27601 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27602 (charset_8_bit__control, charset_8_bit_graphic)
27603 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27604 (define_charset_internal): New function.
27605 (syms_of_charset): Call define_charset_internal for pre-defined
27606 charsets.
27607
27608 * charset.h (charset_8_bit): Extern it.
27609
27610 * coding.c (make_conversion_work_buffer): Adjust for the change
27611 of Fset_buffer_multibyte.
27612 (encode_coding_raw_text): Increment p0 in the loop.
27613
27614 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27615
27616 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27617 Adjust for the change of Fset_buffer_multibyte.
27618
27619 * fns.c (Fstring_to_multibyte): New function.
27620 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27621
27622 2008-02-01 Dave Love <fx@gnu.org>
27623
27624 * xfns.c (x_put_x_image): Declare args.
27625
27626 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27627 (try_font_list): Declare an arg.
27628
27629 * xdisp.c (message2_nolog, set_message): Declare an arg.
27630
27631 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27632
27633 * syntax.c (scan_sexps_forward): Declare an arg.
27634
27635 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27636 Declare an arg.
27637
27638 * lisp.h (Fnew_fontset): Declare.
27639
27640 * keymap.c (push_key_description): Call CHARACTERP correctly.
27641
27642 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27643 (face_for_char): Delete unused vars.
27644 (Fset_fontset_font): Doc fix. Delete unused vars.
27645
27646 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27647
27648 * composite.c (update_compositions): Declare arg.
27649
27650 * cm.c (calccost, cmgoto): Declare args.
27651
27652 * charset.c: Remove `emacs' conditional. Doc fixes.
27653 (map_char_table_for_charset): Declare.
27654
27655 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27656
27657 * ccl.c: Remove `emacs' conditional.
27658
27659 2008-02-01 Kenichi Handa <handa@m17n.org>
27660
27661 The following changes are to allow specifying multiple font
27662 patterns for a character range (specified by script or charset).
27663
27664 * Makefile.in (abbrev.o): Depend on syntax.h.
27665 (xfaces.o): Depend on charset.h.
27666
27667 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27668 SINGLE_BYTE_CHAR_P.
27669
27670 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27671
27672 * character.h (Vchar_script_table): Extern it.
27673
27674 * character.c (Vscript_alist): Delete.
27675 (Vchar_script_table, Qchar_script_table): New variable.
27676 (syms_of_character): Declare Vchar_script_table as a lisp variable
27677 and initialize it.
27678
27679 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27680 have property char-table-extra-slots, make no extra slot.
27681
27682 * dispextern.h (struct face): Delete member `charset'.
27683 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27684 SINGLE_BYTE_CHAR_P.
27685 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27686 Add prototypes.
27687 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27688 (generate_ascii_font_name): Rename from generate_ascii_font.
27689
27690 * fontset.h (get_font_repertory_func): New prototype.
27691 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27692 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27693
27694 * fontset.c (Qprepend, Qappend): New variables.
27695 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27696 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27697 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27698 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27699 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27700 (load_font_get_repertory): New functions.
27701 (fontset_set): Delete.
27702 (fontset_face): New arg FACE. Return face ID, not face.
27703 Complete re-write to handle new fontset structure. Change caller.
27704 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27705 (face_for_char): Don't call lookup_face.
27706 (make_fontset_for_ascii_face): New arg FACE.
27707 (fs_load_font): New arg CHARSET_ID. Don't check
27708 Vfont_encoding_alist here.
27709 (find_font_encoding): New function.
27710 (list_fontsets): Use STRINGP, not ! NILP.
27711 (accumulate_script_ranges): New function.
27712 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27713 Completely re-written to handle new fontset structure.
27714 (Ffontset_font): Return a copy of element.
27715 (syms_of_fontset): Define symbols Qprepend and Qappend.
27716 Fix docstring of font-encoding-alist.
27717
27718 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27719 (Fset_fotset_font): Fix arguments to 5.
27720
27721 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27722
27723 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27724 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27725 (highlight_trailing_whitespace): Adjust for the change of
27726 lookup_named_face.
27727
27728 * xfaces.c: Include charset.h.
27729 (load_face_font): Delete argument C. Change caller.
27730 (generate_ascii_font_name): Rename from generate_ascii_font.
27731 (font_name_registry): New function.
27732 (cache_face): Store ascii faces before non-ascii faces in buckets.
27733 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27734 Lookup only ascii faces.
27735 (lookup_non_ascii_face): New function.
27736 (lookup_named_face): Delete argument C. Change caller.
27737 (lookup_derived_face): Delete argument C. Change caller.
27738 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27739 a string, just call font_list with it.
27740 (choose_face_font): Delete arguments FACE and C. New arg
27741 FONT_SPEC. Change caller.
27742 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27743 Change caller.
27744 (realize_non_ascii_face): New function.
27745 (realize_x_face): Call load_face_font here.
27746 (realize_tty_face): Delete argument C. Change caller.
27747 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27748 get a face ID.
27749 (dump_realized_face): Don't print charset of FACE.
27750
27751 * xfns.c (x_set_font): Always call x_new_fontset and
27752 store_frame_parameter.
27753 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27754 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27755
27756 * xterm.h (x_get_font_repertory): Extern it.
27757
27758 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27759 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27760 it->multibyte_p is zero.
27761 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27762 (x_new_fontset): If FONTSETNAME doesn't match any existing
27763 fontsets, create a new one.
27764 (x_get_font_repertory): New function.
27765
27766 2008-02-01 Kenichi Handa <handa@m17n.org>
27767
27768 * coding.c (Ffind_coding_systems_region_internal): Detect an
27769 ASCII only string correctly.
27770
27771 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27772 version is 0.
27773
27774 2008-02-01 Kenichi Handa <handa@m17n.org>
27775
27776 * lread.c: Include "coding.h".
27777 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27778 (load_each_byte, unread_char): New variables.
27779 (readchar_backlog): Delete.
27780 (readchar): Return a character unless load_each_byte is nonzero.
27781 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27782 cons. If unread_char is not -1, simply return it.
27783 (unreadchar): Handle the case that readcharfun is
27784 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27785 (read_multibyte): Delete.
27786 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27787 (read_emacs_mule_char): New functions.
27788 (Fload): Even if the file doesn't have the extension ".elc", if
27789 safe_to_load_p returns a positive version number, assume that the
27790 file contains bytecompiled code. If the version is less than 22,
27791 load the file while decoding multibyte sequences by emacs-mule.
27792 (readevalloop): Don't use readchar_backlog.
27793 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27794 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27795 (read_escape): Delete the arg BYTEREP.
27796 (read1): Set load_each_byte to 1 temporarily while handling
27797 #@NUMBER. Don't call read_multibyte.
27798 (read_vector): Call Fread with a cons. If readcharfun is
27799 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27800 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27801 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27802 and Qload_force_doc_strings.
27803
27804 2008-02-01 Kenichi Handa <handa@m17n.org>
27805
27806 * xdisp.c (face_before_or_after_it_pos):
27807 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
27808
27809 2008-02-01 Kenichi Handa <handa@m17n.org>
27810
27811 * character.h (TRAILING_CODE_P): New macro.
27812 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27813 (string_char_with_unification): Fix prototype.
27814 (Vscript_alist): Extern it.
27815
27816 * character.c (Vscript_alist): New variable.
27817 (string_char_with_unification, str_as_unibyte)
27818 (string_escape_byte8): Add `const' to local variables.
27819 (syms_of_character): Declare script-alist as a Lisp variable.
27820
27821 * charset.h (Vcharset_ordered_list): Extern it.
27822 (charset_ordered_list_tick): Extern it.
27823 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27824 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27825 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27826 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27827 (Funify_charset): Adjust for the change of Funify_charset.
27828
27829 * charset.c (charset_ordered_list_tick): New variable.
27830 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27831 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
27832 deunify instead of unify a charset.
27833 (string_xstring_p): Add `const' to local variables.
27834 (find_charsets_in_text): Add `const' to arguments and local variables.
27835 (encode_char): Adjust for the change of Funify_charset.
27836 Fix detecting of invalid code.
27837 (Fset_charset_priority): Increment charset_ordered_list_tick.
27838 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27839 and TO_CODE.
27840
27841 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27842 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27843 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27844 (decode_coding_ccl, consume_chars)
27845 (Ffind_coding_systems_region_internal)
27846 (Fcheck_coding_systems_region): Add `const' to local variables.
27847
27848 * print.c (print_object): Use octal form for printing the
27849 contents of a bool vector.
27850
27851 2008-02-01 Dave Love <fx@gnu.org>
27852
27853 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27854 <version == 20>: Refuse to load.
27855
27856 2008-02-01 Dave Love <fx@gnu.org>
27857
27858 * fns.c: Move coding.h.
27859 (Qcodeset, Qdays, Qmonths): New.
27860 (concat): Use CHARACTERP instead of INTEGERP.
27861 (Flocale_codeset): Delete.
27862 (Flanginfo): New function.
27863 (syms_of_fns): Change accordingly.
27864
27865 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27866
27867 2008-02-01 Dave Love <fx@gnu.org>
27868
27869 * casetab.c (init_casetab_once, init_casetab_once):
27870 Fix CHAR_TABLE_SET call.
27871
27872 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27873
27874 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27875
27876 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27877 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27878 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27879
27880 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27881
27882 * coding.c (ENCODE_DESIGNATION, decode_eol)
27883 (make_conversion_work_buffer, code_conversion_restore)
27884 (Fdefine_coding_system_internal): Convert Lisp types.
27885 (code_conversion_restore): Use EQ, not ==.
27886 (Fencode_coding_string): Fix code_convert_string call.
27887
27888 * coding.h (code_convert_region): Fix prototype.
27889
27890 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27891
27892 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27893 (Ffontset_info): Convert Lisp types.
27894
27895 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27896
27897 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27898
27899 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27900
27901 * chartab.c: Include "...h", not <...h> in some cases.
27902
27903 * callproc.c (Fcall_process): Remove unused variables.
27904
27905 2008-02-01 Dave Love <fx@gnu.org>
27906
27907 * coding.c (Fset_coding_system_priority): Allow null arg list.
27908
27909 2008-02-01 Dave Love <fx@gnu.org>
27910
27911 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27912 (Fself_insert_and_exit): Use CHARACTERP.
27913
27914 * callproc.c (Fcall_process): Remove unused vars.
27915
27916 * xterm.c (XTread_socket): Add extra dead keysyms.
27917
27918 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27919
27920 * dispextern.h: Remove prototypes for redraw_frame,
27921 redraw_garbaged_frames.
27922
27923 * cmds.c (Fself_insert_command): Use CHARACTERP.
27924
27925 * chartab.c (make_sub_char_table): Remove unused var.
27926 (Fset_char_table_default, Fmap_char_table): Doc fix.
27927
27928 * keymap.c (access_keymap): Remove generic char code.
27929 (push_key_description): Use CHARACTERP.
27930
27931 2008-02-01 Dave Love <fx@gnu.org>
27932
27933 * charset.c: Doc fixes.
27934 (Funify_charset): Extra checking.
27935
27936 2008-02-01 Dave Love <fx@gnu.org>
27937
27938 * lread.c: Remove some unused variables.
27939 (safe_to_load_p): If safe, return the magic number version byte.
27940 (Fload): Maybe use load-with-code-conversion.
27941
27942 2008-02-01 Kenichi Handa <handa@m17n.org>
27943
27944 * category.c (Fmodify_category_entry): Don't modify the contents
27945 of category_set for characters out of the range.
27946 Avoid unnecessary modification.
27947
27948 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27949 Vchar_unify_table. The default value of the table is now nil.
27950
27951 * character.c (syms_of_character): Setup Vchar_width_table for
27952 eight-bit-control and raw-byte chars.
27953
27954 * charset.h (enum define_charset_arg_index):
27955 Delete charset_arg_parents and add charset_arg_subset and
27956 charset_arg_superset.
27957 (enum charset_attr_index): Delete charset_parents and add
27958 charset_subset and charset_superset.
27959 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27960 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27961 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27962 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27963 (CHARSET_SUPERSET): New macros.
27964 (charset_work): Extern it.
27965 (ENCODE_CHAR): Use charset_work.
27966 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27967 (map_charset_chars): Extern it.
27968
27969 * charset.c (load_charset_map): Set the default value of encoder
27970 and deunifier char-tables to nil.
27971 (map_charset_chars): Change argument. Change callers.
27972 Use map_char_table_for_charset instead of map_char_table.
27973 (Fmap_charset_chars): New optional args from_code and to_code.
27974 (Fdefine_charset_internal): Adjust for the change of
27975 `define-charset' (:parents -> :subset or :superset).
27976 (charset_work): New variable.
27977 (encode_char, syms_of_charset): Adjust for the change of
27978 Fdefine_charset_internal.
27979 (Ffind_charset_string): Setup the vector `charsets' correctly.
27980
27981 * chartab.c (sub_char_table_ref_and_range): New arg default.
27982 Fix the previous change.
27983 (char_table_ref_and_range): Adjust for the above change.
27984 (map_sub_char_table_for_charset): New function.
27985 (map_char_table_for_charset): New function.
27986
27987 * keymap.c (describe_vector): Handle a char-table directly here.
27988 (describe_char_table): Delete.
27989
27990 * lisp.h (map_charset_chars): Delete.
27991
27992 2008-02-01 Dave Love <fx@gnu.org>
27993
27994 * fns.c (count_combining): Comment out (unused).
27995 (Flocale_codeset): New.
27996 (syms_of_fns): Defsubr it.
27997
27998 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27999 (size_t): Remove.
28000
28001 2008-02-01 Dave Love <fx@gnu.org>
28002
28003 * Makefile.in (chartab.o): Depend on charset.h.
28004
28005 2008-02-01 Kenichi Handa <handa@m17n.org>
28006
28007 * character.c (syms_of_character): Set the default value of
28008 Vprintable_chars to Qnil.
28009
28010 2008-02-01 Dave Love <fx@gnu.org>
28011
28012 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
28013
28014 2008-02-01 Kenichi Handa <handa@m17n.org>
28015
28016 * charset.c (load_charset_map): Handle the case that from < to
28017 correctly.
28018
28019 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
28020 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
28021 Pay attention to raw-8-bit chars.
28022
28023 2008-02-01 Kenichi Handa <handa@m17n.org>
28024
28025 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28026 It is not bytecompiled now.
28027
28028 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28029 (charset_jisx0208): New variables.
28030 (Fdefine_charset_internal): Setup them if appropriate.
28031 (init_charset_once): Initialize them to -1.
28032
28033 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28034 (charset_jisx0208): Extern them.
28035
28036 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28037 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28038 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28039 (setup_iso_safe_charsets): Fix arguments to Fassq.
28040 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28041 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28042 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28043 (encode_coding_iso_2022): Change the 1st arg to
28044 ENCODE_ISO_CHARACTER to a variable.
28045
28046 2008-02-01 Kenichi Handa <handa@m17n.org>
28047
28048 * charset.h (enum define_charset_arg_index): New enums
28049 charset_arg_min_code and charset_arg_max_code.
28050 (struct charset): New member char_index_offset.
28051
28052 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28053 Take charset->char_index_offset into account.
28054 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28055 args[charset_arg_max_code]. Setup charset.char_index_offset.
28056 (syms_of_charset): Fix args to Fdefine_charset_internal.
28057
28058 2008-02-01 Dave Love <fx@gnu.org>
28059
28060 * coding.c (decode_coding_utf_8): Reject overlong sequences.
28061
28062 2008-02-01 Dave Love <fx@gnu.org>
28063
28064 * coding.c: Doc fixes.
28065 (Fcoding_system_aliases): Fix return value.
28066 (Qmac): Remove (duplicated) definition.
28067
28068 2008-02-01 Dave Love <fx@gnu.org>
28069
28070 * charset.c (Fcharset_priority_list, Fset_charset_priority):
28071 New functions.
28072
28073 * character.c (Fstring): Doc fix.
28074
28075 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28076
28077 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
28078 (font-encoding-alist): Doc fix.
28079
28080 2008-02-01 Dave Love <fx@gnu.org>
28081
28082 * term.c (costs_set): Declare static, non-initialized for pcc.
28083 (encode_terminal_code): Remove unused var.
28084
28085 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28086 for K&R.
28087
28088 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28089
28090 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28091 (suffixes): Move out of make_subsidiaries for K&R.
28092
28093 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28094
28095 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28096
28097 2008-02-01 Dave Love <fx@gnu.org>
28098
28099 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28100
28101 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28102
28103 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28104
28105 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28106
28107 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28108
28109 2008-02-01 Kenichi Handa <handa@m17n.org>
28110
28111 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28112 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28113
28114 2008-02-01 Kenichi Handa <handa@m17n.org>
28115
28116 * coding.c (decode_coding_charset): Adjust for the change of
28117 Fdefine_coding_system_internal.
28118 (Fdefine_coding_system_internal): For a coding system of
28119 `charset' type, store a list of charset IDs in
28120 `charset_attr_charset_valids' element of coding attributes.
28121
28122 2008-02-01 Kenichi Handa <handa@m17n.org>
28123
28124 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
28125 (emacs_mule_char): New arg src. Delete arg `composition'.
28126 Change caller. Handle 2-byte and 3-byte charsets correctly.
28127 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28128 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28129 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
28130 (DECODE_EMACS_MULE_21_COMPOSITION):
28131 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
28132 sequence.
28133 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28134 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28135 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28136 and alt&rule composition.
28137 (decode_coding_iso_2022): Handle composition correctly.
28138 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28139
28140 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28141 re-defining a charset. If the charset has :emacs-mule-id, setup
28142 emacs_mule_bytes.
28143 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28144
28145 2008-02-01 Kenichi Handa <handa@m17n.org>
28146
28147 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28148 (encode_coding_big5, encode_coding_charset): If coding requires safe
28149 encoding, produce a character specified by
28150 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28151
28152 2008-02-01 Dave Love <fx@gnu.org>
28153
28154 * xterm.c (XSetIMValues): Declare.
28155
28156 * process.c: Conditionally include sys/wait.h, pty.h.
28157
28158 * print.c (print_object): Fix print format for 64-bit systems.
28159
28160 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28161
28162 * buffer.c (emacs_strerror): Declare.
28163
28164 * fontset.c (Fclear_face_cache): Declare.
28165 (accumulate_font_info): Comment-out (unused).
28166 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28167 variables.
28168
28169 * character.h (string_escape_byte8): Declare.
28170
28171 * charset.c (load_charset_map, load_charset_map_from_file):
28172 Remove unused vars.
28173 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28174 (Fmap_charset_chars): Doc fix.
28175
28176 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28177 (Fset_coding_system_priority, Fset_coding_system_priority)
28178 (Fdefine_coding_system_internal): Doc fix.
28179
28180 2008-02-01 Dave Love <fx@gnu.org>
28181
28182 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28183
28184 2008-02-01 Kenichi Handa <handa@m17n.org>
28185
28186 * character.c (string_escape_byte8): Make multibyte string with
28187 correct size.
28188
28189 * charset.c (Fmake_char): Delete unnecessary code.
28190
28191 2008-02-01 Kenichi Handa <handa@m17n.org>
28192
28193 * xfns.c (x_encode_text): Allocate coding.destination here, and
28194 call encode_coding_object with dst_object Qnil.
28195
28196 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28197 multibyte form correctly.
28198
28199 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28200 against Vfont_encoding_alist.
28201
28202 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28203 handling of charset list.
28204 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28205 (decode_coding_object): Move point to coding->dst_pos before
28206 calling post-read-conversion function.
28207 (encode_coding_object): Give correct arguments to
28208 pre-write-conversion. Ignore the return value of
28209 pre-write-conversion function. Pay attention to the case that
28210 pre-write-conversion changes the current buffer. If dst_object is
28211 Qt, even if coding->src_bytes is zero, allocate at least one byte
28212 to coding->destination.
28213
28214 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28215
28216 * charset.c (Fmake_char): Make it more backward compatible.
28217 (Fmap_charset_chars): Fix docstring.
28218
28219 2008-02-01 Dave Love <fx@gnu.org>
28220
28221 * coding.c: Doc fixes.
28222 (Fdefine_coding_system_alias): Use names, not symbols, in
28223 coding-system-alist.
28224
28225 2008-02-01 Kenichi Handa <handa@m17n.org>
28226
28227 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28228 of calling free_realized_face.
28229
28230 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28231
28232 * charset.c (read_hex): Don't treat SPC as a comment starter.
28233 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28234 (Fdecode_char): Fix typo.
28235
28236 2008-02-01 Kenichi Handa <handa@m17n.org>
28237
28238 * charset.h (struct charset): New member `code_space_mask'.
28239
28240 * coding.c (coding_set_source): Delete the local variable beg_byte.
28241 (encode_coding_charset, Fdefine_coding_system_internal):
28242 Delete the local variable charset.
28243 (Fdefine_coding_system_internal):
28244 Setup attrs[coding_attr_charset_valids] correctly.
28245
28246 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28247 member to check if CODE is valid or not.
28248 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28249 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28250 is within the range of charset->min_code and carset->max_code.
28251
28252 2008-02-01 Dave Love <fx@gnu.org>
28253
28254 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28255
28256 * dispextern.h (generate_ascii_font): Fix return type.
28257
28258 * xfaces.c (generate_ascii_font): Fix arg declaration.
28259
28260 * coding.c (coding_inherit_eol_type)
28261 (Fset_terminal_coding_system_internal)
28262 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28263
28264 2008-02-01 Kenichi Handa <handa@m17n.org>
28265
28266 * coding.c (decode_coding_charset, encode_coding_charset):
28267 Handle multiple charsets correctly.
28268
28269 2008-02-01 Kenichi Handa <handa@m17n.org>
28270
28271 * search.c (boyer_moore): Fix handling of multibyte character
28272 translation.
28273
28274 * xdisp.c (display_mode_element): When the variable `elt' is
28275 changed, update `this' and `lisp_string'.
28276
28277 2008-02-01 Kenichi Handa <handa@m17n.org>
28278
28279 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28280
28281 * callproc.c (Fcall_process): Be sure to give the current buffer
28282 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28283
28284 * charset.c (struct charset_map_entries): New struct.
28285 (load_charset_map): Rename from parse_charset_map. New args
28286 entries and n_entries. Change caller.
28287 (load_charset_map_from_file): Rename from load_charset_map.
28288 Change caller. New arg control_flag. Call load_charset_map at
28289 the tail.
28290 (load_charset_map_from_vector): New function.
28291 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28292 (encode_char): If the charset is compact, change a character index
28293 to a code point.
28294
28295 * coding.c (coding_alloc_by_making_gap): Check the case that the
28296 source and destination are the same correctly.
28297 (decode_coding_raw_text): Set coding->consumed_char and
28298 coding->consumed to 0.
28299 (produce_chars): If coding->chars_at_source is nonzero, update
28300 coding->consumed_char and coding->consumed before calling
28301 alloc_destination.
28302 (Fdefine_coding_system_alias): Register ALIAS in
28303 Vcoding_system_alist.
28304 (syms_of_coding): Define `no-conversion' coding system at the tail.
28305
28306 * fileio.c (Finsert_file_contents): Set coding_system instead of
28307 val. If the current buffer is multibyte, always call
28308 decode_coding_gap.
28309
28310 * xfaces.c (try_font_list): Give higher priority to fontset's
28311 family than face's family.
28312
28313 2008-02-01 Kenichi Handa <handa@m17n.org>
28314
28315 * callproc.c (Fcall_process): Be sure to give the current buffer
28316 to decode_coding_c_string.
28317
28318 * xfaces.c (try_font_list): Give a family specified in a fontset
28319 higher priority than a family specified in a face.
28320
28321 2008-02-01 Kenichi Handa <handa@m17n.org>
28322
28323 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28324 Fix arguments to insert_from_buffer.
28325
28326 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28327
28328 2008-02-01 Kenichi Handa <handa@m17n.org>
28329
28330 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28331 (decode_coding_gap): Set coding->dst_multibyte correctly.
28332
28333 2008-02-01 Kenichi Handa <handa@m17n.org>
28334
28335 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28336 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28337 (encode_coding_utf_16): Substitute coding->default_char for
28338 non-Unicode characters.
28339 (decode_coding): Don't call record_insert here.
28340 (setup_coding_system): Initialize `surrogate' of
28341 coding->spec.utf_16 to 0.
28342 (EMIT_ONE_BYTE): Fix for multibyte case.
28343
28344 * insdel.c (insert_from_gap): Call record_insert.
28345
28346 2008-02-01 Kenichi Handa <handa@m17n.org>
28347
28348 * casefiddle.c (casify_region): Fix multibyte case.
28349
28350 * character.c (c_string_width): Add return type `int'.
28351 (char_string_with_unification): Delete arg ADVANCED.
28352
28353 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28354 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28355 (CHAR_STRING_ADVANCE): Make it do-while statement.
28356
28357 * chartab.c (sub_char_table_set_range): Optimize for the case
28358 DEPTH == 3. Add workaround code for a GCC optimization bug.
28359
28360 * charset.c (parse_charset_map): Remove an unused variable.
28361
28362 * coding.c: Delete unused variables.
28363
28364 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28365 earlier. If inserted is zero and the coding system doesn't
28366 require flushing, don't call decode_coding_gap.
28367
28368 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28369
28370 2008-02-01 Kenichi Handa <handa@m17n.org>
28371
28372 The following changes are for using Unicode as an internal
28373 character model, and use UTF-8 format for buffer/string
28374 representation.
28375
28376 * .gdbinit (xchartable): Adjust for the change of char table structure.
28377 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28378
28379 * Makefile.in (obj): Add character.o and chartab.o.
28380 (lisp, shortlisp): Remove utf-8.elc.
28381 (*.o): For many files, change dependency on charset.h to
28382 character.h, and add dependency on character.h.
28383 (character.o, chartab.o): New targets.
28384
28385 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28386 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28387 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28388 of "charset.h".
28389
28390 * dired.c, filelock.c: Include "character.h".
28391
28392 * alloc.c: Include "character.h" instead of "charset.h".
28393 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28394 (syms_of_alloc): Remove defsubr for Smake_char_table.
28395
28396 * buffer.c: Include "character.h" instead of "charset.h", don't
28397 include "coding.h".
28398 (Fset_buffer_multibyte): Adjust for UTF-8.
28399
28400 * buffer.h: EXFUN Fbuffer_live_p.
28401
28402 * callproc.c: Include "character.h" instead of "charset.h".
28403 (Fcall_process): Big change for the new code-conversion APIs.
28404
28405 * casetab.c: Include "character.h" instead of "charset.h".
28406 (set_canon, set_identity, shuffle): Adjust for the new
28407 map_char_table spec.
28408 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28409 accessing the char table structure.
28410
28411 * chartab.c: New file that implements char table.
28412
28413 * category.c: Include "character.h".
28414 (copy_category_entry): New function.
28415 (copy_category_table): Call map_char_table and copy_category_entry.
28416 (Fmake_category_table): Initialize all top-level slots.
28417 (char_category_set): New function.
28418 (modify_lower_category_set): Delete.
28419 (Fmodify_category_entry): Call char_table_ref_and_range.
28420
28421 * category.h (CATEGORY_SET): Just call char_category_set.
28422
28423 * ccl.c: Include "character.h".
28424 (Qccl, Qcclp): New variables.
28425 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28426 it's less than 256.
28427 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28428 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28429 and DST type.
28430 (ccl_driver): Change types of argument, adjust code accordingly.
28431 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28432 ccl_driver.
28433 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28434
28435 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28436 New members src_multibyte, dst_multibyte, consumed, and produced.
28437 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28438 (CODING_SPEC_CCL_PROGRAM): New macro.
28439 (ccl_driver): Update prototype.
28440 (Qccl, Qcclp, Fccl_program_p): Extern them.
28441 (CHECK_CCL_PROGRAM): New macro.
28442
28443 * character.c, character.h, chartab.c: New files.
28444
28445 * charset.c: Mostly re-written. Move character and multibyte sequence
28446 handling codes to character.c.
28447
28448 * charset.h: Mostly re-written. Move character and multibyte sequence
28449 handling codes to character.h.
28450
28451 * coding.c, coding.h: Mostly re-written.
28452
28453 * composite.c: Include "character.h" instead of "charset.h".
28454 (CHAR_WIDTH): Move to character.h.
28455 (HASH_KEY, HASH_VALUE): Delete.
28456
28457 * composite.h (enum composition_method): Change order of enumeration
28458 symbols.
28459
28460 * data.c: Include "character.h" instead of "charset.h".
28461 (Faref): Call CHAR_TABLE_REF for a char table.
28462 (Faset): Call CHAR_TABLE_SET for a char table.
28463
28464 * dispextern.h (free_realized_face, check_face_attribytes)
28465 (generate_ascii_font): Extern them.
28466 (free_realized_multibyte_face): Delete extern.
28467
28468 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28469 table structure.
28470
28471 * editfns.c: Include "character.h" instead of "charset.h".
28472 (Fchar_to_string): Always call CHAR_STRING.
28473
28474 * emacs.c (main): Call init_charset_once, init_charset,
28475 syms_of_chartab, and syms_of_character.
28476
28477 * fileio.c: Include "character.h" instead of "charset.h".
28478 (Finsert_file_contents): Big change for the new code-conversion API.
28479 (choose_write_coding_system, Fwrite_region): Likewise.
28480 (build_annotations_2): Delete.
28481 (e_write): Big change for the new code-conversion API.
28482
28483 * fns.c: Include "character.h" instead of "charset.h".
28484 (copy_sub_char_table): Move to chartab.c.
28485 (Fcopy_sequence): Call copy_char_table for a char table.
28486 (concat): Delete codes calling count_multibyte.
28487 (string_char_to_byte, string_byte_to_char): Adjust for the new
28488 multibyte form.
28489 (internal_equal): Adjust for the change of char table structure.
28490 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28491 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28492 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28493 (char_table_translate, optimize_sub_char_table)
28494 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28495 chartab.c.
28496 (char_table_ref_and_index): Delete.
28497 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28498 (Fmd5): Call preferred_coding_system instead of accessing
28499 Vcoding_category_list. Adjust for the new code-conversion API.
28500 (syms_of_fns): Move defsubr for char table related functions to
28501 chartab.c.
28502
28503 * fontset.c: Mostly re-written.
28504
28505 * fontset.h (struct font_info): Change type of the member encoding_type.
28506 (enum FONT_SPEC_INDEX): New enum.
28507 (fontset_font_pattern, fs_load_font): Update prototype.
28508 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28509
28510 * indent.c: Include "character.h" instead of "charset.h".
28511 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28512
28513 * insdel.c: Include "character.h" instead of "charset.h".
28514 (copy_text): Don't refer to Vnonascii_translation_table.
28515 (insert_from_gap): New function.
28516
28517 * keyboard.c: Include "character.h" instead of "charset.h".
28518 (command_loop_1): Never call direct_output_forward_char before
28519 a non-ASCII character.
28520 (read_char): If Vkeyboard_translate_table is a char table, always
28521 translate a character.
28522
28523 * keymap.c: Include "character.h".
28524 (store_in_keymap): Handle the case that IDX is a cons.
28525 (Fdefine_key): Handle the case that KEY is a cons and the car part
28526 is also a cons (range).
28527 (push_key_description): Adjust for the new character code.
28528 (describe_vector): Call describe_char_table for a char table.
28529 (describe_char_table): New function.
28530
28531 * keymap.h (describe_char_table): Extern it.
28532
28533 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28534 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28535 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28536 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28537 Delete.
28538 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28539 structure.
28540 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28541 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28542 (CHARTAB_SIZE_BITS_3): New macros.
28543 (chartab_size): Extern it.
28544 (struct Lisp_Char_Table): Re-design.
28545 (struct Lisp_Sub_Char_Table): New structure.
28546 (HASH_KEY, HASH_VALUE): Move from fns.c.
28547 (CHARACTERBITS): Define as 22.
28548 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28549 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28550 (GC_SUB_CHAR_TABLE_P): New macro.
28551 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28552 (code_convert_string_norecord): Delete extern.
28553 (init_character_once, syms_of_character, init_charset)
28554 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28555
28556 * lread.c: Include "character.h".
28557 (read_multibyte): New arg NBYTES.
28558 (read_escape): Change the meaning of returned *BYTEREP.
28559 (to_multibyte): Delete.
28560 (read1): Adjust the handling of char table and string.
28561
28562 * print.c: Include "character.h" instead of "charset.h".
28563 (print_string): Convert 8-bit raw bytes to octal form by
28564 string_escape_byte8.
28565 (print_object): Adjust for the new multibyte form. Print 8-bit
28566 raw bytes always in octal form. Handle sub char table correctly.
28567
28568 * process.c: Include "character.h" instead of "charset.h".
28569 (read_process_output, send_process): Adjust for the new
28570 code-conversion API.
28571
28572 * puresize.h (BASE_PURESIZE): Increase.
28573
28574 * regex.c: Include "character.h" instead of "charset.h".
28575 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28576 (regex_compile): Accept a range whose starting and ending
28577 character have different leading bytes.
28578 (analyse_first): Adjust for the above change.
28579
28580 * search.c: Include "character.h" instead of "charset.h".
28581 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28582 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28583
28584 * syntax.c: Include "character.h" instead of "charset.h".
28585 (syntax_parent_lookup): Delete.
28586 (Fmodify_syntax_entry): Accept a cons as CHAR.
28587 (skip_chars): Adjust for the new multibyte form.
28588 (init_syntax_once): Call char_table_set_range instead of directly
28589 accessing the structure of a char table.
28590
28591 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28592 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28593 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28594 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28595
28596 * term.c: Include "buffer.h" and "character.h".
28597 (encode_terminal_code, write_glyphs): Adjust for the new
28598 code-conversion API.
28599 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28600
28601 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28602
28603 * xdisp.c: Include "character.h".
28604 (get_next_display_element): Adjust for the new multibyte form.
28605 (disp_char_vector): Adjust for the new char table structure.
28606 (decode_mode_spec_coding): Adjust for the new structure of
28607 coding system.
28608 (decode_mode_spec): Adjust for the new code-conversion API.
28609
28610 * xfaces.c: Include "character.h" instead of "charset.h".
28611 (load_face_font): Adjust for the change of choose_face_font and
28612 FS_LOAD_FONT.
28613 (generate_ascii_font): New function.
28614 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28615 (set_font_frame_param): Adjust for the change of choose_face_font.
28616 (free_realized_face): Make it public.
28617 (free_realized_faces_for_fontset): Rename from
28618 free_realized_multibyte_face. Free also faces realized for ASCII.
28619 (choose_face_font): Change arguments. Adjust for the change of
28620 fontset_font_pattern and FS_LOAD_FONT.
28621
28622 * xfns.c: Include "character.h".
28623 (x_encode_text): Adjust for the new code-conversion API.
28624
28625 * xselect.c: Don't include "charset.h".
28626 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28627
28628 * xterm.c: Include "character.h".
28629 (x_encode_char): New argument CHARSET. Change caller.
28630 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28631 Call ENCODE_CHAR instead of SPLIT_CHAR.
28632 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28633 CHAR_WIDTH instead of CHARSET_WIDTH.
28634 (XTread_socket): Adjust for the new code-conversion API.
28635 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28636 (x_load_font): Adjust for the change of struct font.
28637
28638 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28639
28640 * xfaces.c (face_at_buffer_position): Remove unused vars.
28641
28642 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28643
28644 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28645 Fix overflow checking.
28646
28647 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28648
28649 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28650 Cancel previous change.
28651
28652 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28653
28654 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28655 ccl->eight_bit_control. Fix check for buffer overflow.
28656 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28657 (ccl_driver): Initialize extra_bytes to 0.
28658
28659 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28660
28661 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28662 return it ORed with ctrl_modifier.
28663
28664 2008-01-29 Miles Bader <miles@gnu.org>
28665
28666 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28667
28668 2008-01-28 Jason Rumney <jasonr@gnu.org>
28669
28670 * w32.c (stat): Don't double check for networked drive.
28671
28672 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28673
28674 * window.c (run_window_configuration_change_hook): New function.
28675 Code extracted from set_window_buffer. Set the selected frame.
28676 (set_window_buffer): Use it.
28677 * window.h (run_window_configuration_change_hook): Declare.
28678 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28679
28680 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28681
28682 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28683
28684 * Makefile.in: Remove references to unused macros.
28685
28686 2008-01-26 Eli Zaretskii <eliz@gnu.org>
28687
28688 * w32.c (g_b_init_get_sid_sub_authority)
28689 (g_b_init_get_sid_sub_authority_count): New static variables.
28690 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28691 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28692 (init_user_info): Use them to retrieve uid and gid.
28693 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28694 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28695 st_uid and st_gid of the file.
28696
28697 2008-01-26 Jason Rumney <jasonr@gnu.org>
28698
28699 * w32.c (logon_network_drive): New function.
28700 (stat): Use it.
28701
28702 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
28703
28704 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28705 invisible text covered with an ellipsis.
28706
28707 2008-01-25 Richard Stallman <rms@gnu.org>
28708
28709 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28710 jump back to beginning. Move some other initializations after that.
28711 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28712 New variables.
28713 (syms_of_xdisp): Init them.
28714
28715 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28716
28717 * buffer.c (reset_buffer_local_variables):
28718 Implement `permanent-local-hook'.
28719 (Qpermanent_local_hook): New variable.
28720 (syms_of_buffer): Init and staticpro it.
28721
28722 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
28723
28724 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28725
28726 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28727
28728 * fns.c (Fclrhash): Return TABLE.
28729
28730 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28731
28732 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28733 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28734 is set even without positional changes.
28735 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28736
28737 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28738
28739 2008-01-23 Jason Rumney <jasonr@gnu.org>
28740
28741 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28742
28743 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28744 the unicode range available in MULE by locale-coding-system.
28745 Improve dbcs lead byte detection. Set event timestamp and modifiers
28746 earlier.
28747
28748 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28749
28750 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28751 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28752 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28753 when used on child processes.
28754
28755 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
28756
28757 * dbusbind.c (Fdbus_method_return_internal): Rename from
28758 Fdbus_method_return.
28759 (Fdbus_unregister_object): Move to dbus.el.
28760 (Fdbus_call_method, Fdbus_method_return_internal)
28761 (Fdbus_send_signal): Improve debug messages.
28762
28763 2008-01-20 Martin Rudalics <rudalics@gmx.at>
28764
28765 * undo.c (undo_inhibit_record_point): New variable.
28766 (syms_of_undo): Initialize it.
28767 (record_point): Don't record point when undo_inhibit_record_point
28768 is set.
28769
28770 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28771
28772 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28773
28774 * xdisp.c (Qauto_hscroll_mode): New var.
28775 (syms_of_xdisp): Initialize it.
28776 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28777 window's buffer.
28778 (hscroll_windows): Don't check automatic_hscrolling_p here.
28779
28780 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28781 vscroll if we're setting window-buffer to the value it already has.
28782
28783 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28784
28785 * m/intel386.h: Remove references to XENIX.
28786
28787 2008-01-17 Andreas Schwab <schwab@suse.de>
28788
28789 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28790 instead of HAVE_X86_64_LIB64_DIR.
28791 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28792
28793 2008-01-17 Glenn Morris <rgm@gnu.org>
28794
28795 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28796 to HAVE_X86_64_LIB64_DIR.
28797
28798 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28799
28800 * s/irix3-3.h:
28801 * s/irix4-0.h:
28802 * s/386-ix.h:
28803 * s/domain.h:
28804 * s/hpux9-x11r4.h:
28805 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28806
28807 * sysdep.c: Remove code containing references to symbols defined
28808 by unsupported systems.
28809
28810 2008-01-16 Glenn Morris <rgm@gnu.org>
28811
28812 * coding.c (select-safe-coding-system-function): Doc fix.
28813
28814 2008-01-15 Glenn Morris <rgm@gnu.org>
28815
28816 * config.in: Revert 2008-01-13 change: this is a generated file.
28817
28818 2008-01-13 Tom Tromey <tromey@redhat.com>
28819
28820 * lisp.h: Fix typo.
28821
28822 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28823
28824 * m/sequent-ptx.h:
28825 * m/sequent.h:
28826 * s/ptx.h:
28827 * s/ptx4-2.h:
28828 * s/ptx4.h: Remove files for systems no longer supported.
28829
28830 * callproc.c (Fcall_process): Fix previous change.
28831
28832 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28833
28834 * unexsunos4.c: Remove file, system not supported anymore.
28835
28836 * m/mips.h:
28837 * m/intel386.h:
28838 * callproc.c:
28839 * config.in:
28840 * ecrt0.c:
28841 * emacs.c:
28842 * fileio.c:
28843 * frame.c:
28844 * getpagesize.h:
28845 * keyboard.c:
28846 * lread.c:
28847 * process.c:
28848 * puresize.h:
28849 * sysdep.c:
28850 * systty.h:
28851 * syswait.h:
28852 * unexec.c:
28853 * xdisp.c:
28854 * alloc.c: Remove code containing references to symbols defined by
28855 unsupported systems.
28856
28857 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28858
28859 * coding.c (detect_coding_mask): Fix previous change.
28860
28861 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28862
28863 * coding.c (detect_coding_iso2022): New arg
28864 latin_extra_code_state. Allow Latin extra codes only
28865 when *latin_extra_code_state is nonzero.
28866 (detect_coding_mask): If there is a NULL byte, detect the encoding
28867 as UTF-16 or binary. If Latin extra codes exist, detect the
28868 encoding as ISO-2022 only when there's no other proper encoding is
28869 found.
28870
28871 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28872
28873 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28874 #ifdef MAC_OS.
28875
28876 2008-01-08 Richard Stallman <rms@gnu.org>
28877
28878 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28879
28880 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
28881
28882 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28883 menu bar in parentheses.
28884
28885 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28886
28887 * m/7300.h:
28888 * m/acorn.h:
28889 * m/alliant-2800.h:
28890 * m/alliant.h:
28891 * m/alliant1.h:
28892 * m/alliant4.h:
28893 * m/altos.h:
28894 * m/amdahl.h:
28895 * m/apollo.h:
28896 * m/att3b.h:
28897 * m/aviion-intel.h:
28898 * m/aviion.h:
28899 * m/celerity.h:
28900 * m/clipper.h:
28901 * m/cnvrgnt.h:
28902 * m/convex.h:
28903 * m/cydra5.h:
28904 * m/delta88k.h:
28905 * m/dpx2.h:
28906 * m/dual.h:
28907 * m/elxsi.h:
28908 * m/f301.h:
28909 * m/gould-np1.h:
28910 * m/gould.h:
28911 * m/i860.h:
28912 * m/ibmps2-aix.h:
28913 * m/ibmrt-aix.h:
28914 * m/ibmrt.h:
28915 * m/irist.h:
28916 * m/is386.h:
28917 * m/isi-ov.h:
28918 * m/mega68.h:
28919 * m/mg1.h:
28920 * m/news-r6.h:
28921 * m/news-risc.h:
28922 * m/news.h:
28923 * m/nh3000.h:
28924 * m/nh4000.h:
28925 * m/ns16000.h:
28926 * m/ns32000.h:
28927 * m/nu.h:
28928 * m/orion.h:
28929 * m/orion105.h:
28930 * m/paragon.h:
28931 * m/pfa50.h:
28932 * m/plexus.h:
28933 * m/pyramid.h:
28934 * m/pyrmips.h:
28935 * m/sh3el.h:
28936 * m/sps7.h:
28937 * m/sr2k.h:
28938 * m/stride.h:
28939 * m/sun1.h:
28940 * m/sun2.h:
28941 * m/sun3-68881.h:
28942 * m/sun3-fpa.h:
28943 * m/sun3-soft.h:
28944 * m/sun3.h:
28945 * m/sun386.h:
28946 * m/symmetry.h:
28947 * m/tad68k.h:
28948 * m/tahoe.h:
28949 * m/targon31.h:
28950 * m/tek4300.h:
28951 * m/tekxd88.h:
28952 * m/tower32.h:
28953 * m/tower32v3.h:
28954 * m/ustation.h:
28955 * m/wicat.h:
28956 * m/xps100.h:
28957 * s/cxux.h:
28958 * s/cxux7.h:
28959 * s/dgux.h:
28960 * s/dgux4.h:
28961 * s/dgux5-4-3.h:
28962 * s/dgux5-4r2.h:
28963 * s/esix.h:
28964 * s/esix5r4.h:
28965 * s/hiuxmpp.h:
28966 * s/hiuxwe2.h:
28967 * s/iris3-5.h:
28968 * s/iris3-6.h:
28969 * s/isc2-2.h:
28970 * s/isc3-0.h:
28971 * s/isc4-0.h:
28972 * s/isc4-1.h:
28973 * s/newsos5.h:
28974 * s/newsos6.h:
28975 * s/osf1.h:
28976 * s/osf5-0.h:
28977 * s/riscix1-1.h:
28978 * s/riscix12.h:
28979 * s/sco4.h:
28980 * s/sco5.h:
28981 * s/sunos4-0.h:
28982 * s/sunos4-1.h:
28983 * s/sunos413.h:
28984 * s/sunos4shr.h:
28985 * s/umax.h:
28986 * s/unipl5-2.h:
28987 * s/xenix.h:
28988 * cxux-crt0.s:
28989 * unexapollo.c:
28990 * unexconvex.c:
28991 * unexenix.c:
28992 * unexsni.c: Remove files for systems no longer supported.
28993
28994 * m/intel386.h: Remove references to unsupported systems.
28995
28996 * w32.c (get_emacs_configuration): Remove reference to i860.
28997
28998 * sysdep.c: Remove dead code.
28999
29000 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
29001
29002 * s/rtu.h:
29003 * m/masscomp.h: Remove files. Platform is obsolete.
29004
29005 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
29006
29007 * dbusbind.c (Fdbus_method_return): New function.
29008 (xd_read_message): Add the serial number to the event.
29009 (Fdbus_register_method): Activate the function.
29010
29011 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
29012
29013 * keyboard.c (read_key_sequence): Fix typo.
29014
29015 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
29016
29017 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
29018 (xd_signature, xd_append_arg): Handle element type detection for
29019 empty arrays.
29020 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
29021 SDATA () calls; this must be solved more general.
29022 (Fdbus_register_signal): Use SBYTES instead of strlen.
29023
29024 2008-01-03 Magnus Henoch <magnus@zemdatav>
29025
29026 * dbusbind.c (xd_append_arg): Use unsigned char instead of
29027 unsigned int for byte values (necessary for big-endian platform).
29028 (Fdbus_call_method): Handle the case of no returned arguments.
29029
29030 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
29031
29032 * dbusbind.c (xd_read_message): Use non-static input_event struct.
29033
29034 2007-12-31 Magnus Henoch <mange@freemail.hu>
29035
29036 * dbusbind.c (xd_signature): Signature of variant is just "v".
29037
29038 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
29039
29040 * dbusbind.c: Fix several errors and compiler warnings.
29041 Reported by Tom Tromey <tromey@redhat.com>.
29042 (XD_ERROR, XD_DEBUG_MESSAGE)
29043 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29044 (xd_append_arg): Part for basic D-Bus types rewritten.
29045 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29046 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
29047 appropriate.
29048 (xd_read_message): Return Qnil. Don't signal an error; it is not
29049 useful during event reading.
29050 (Fdbus_register_signal): Signal an error if the check for
29051 FUNCTIONP fails.
29052 (Fdbus_register_method): New function. The implementation is not
29053 complete, the call of the function signals an error therefore.
29054 (Fdbus_unregister_object): New function, renamed from
29055 Fdbus_unregister_signal. The initial check signals an error, if
29056 the object is not well formed.
29057
29058 2007-12-30 Richard Stallman <rms@gnu.org>
29059
29060 * textprop.c (get_char_property_and_overlay):
29061 Signal error if POSITION is out of range in a buffer.
29062
29063 2007-12-29 Martin Rudalics <rudalics@gmx.at>
29064
29065 * w32fns.c (Fx_create_frame): Make copy of frame parameters
29066 because the original parameters are in pure storage now.
29067
29068 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29069
29070 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29071
29072 2007-12-22 Eli Zaretskii <eliz@gnu.org>
29073
29074 * callint.c (syms_of_callint) <command-history>: Add reference to
29075 history-length in the doc string.
29076
29077 2007-12-17 Jason Rumney <jasonr@gnu.org>
29078
29079 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29080 before passing as wParam.
29081
29082 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
29083
29084 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29085 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29086 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29087 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29088 as number.
29089 (Fdbus_call_method): Fix docstring.
29090
29091 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
29092
29093 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29094 New macros.
29095 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29096 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29097 Simplify.
29098 (xd_signature): New function.
29099 (xd_append_arg): Compute also signatures. Major rewrite.
29100 (xd_retrieve_arg): Make debug messages friendly.
29101 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29102 Check for signatures of arguments.
29103
29104 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
29105
29106 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29107 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29108 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29109 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29110 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29111 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29112 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29113 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29114 (xd_retrieve_value): Remove. Functionality included in ...
29115 (xd_append_arg): New function.
29116 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29117
29118 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
29119
29120 * dbusbind.c (top): Include <stdio.h>.
29121 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29122 dbus_message_new_method_call and dbus_message_new_signal.
29123 (Fdbus_register_signal): Rename unique_name to uname.
29124 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29125 non-existing unique name. Fix typos in matching rule. Return an
29126 object which is useful in Fdbus_unregister_signal.
29127 (Fdbus_unregister_signal): Reimplementation, in order to remove
29128 only the corresponding entry.
29129 (Vdbus_registered_functions_table): Change the order of entries.
29130 Apply these changes in xd_read_message and Fdbus_register_signal.
29131
29132 2007-12-16 Andreas Schwab <schwab@suse.de>
29133
29134 * fileio.c (Finsert_file_contents): Fix overflow check to not
29135 depend on undefined integer overflow.
29136
29137 2007-12-14 Jason Rumney <jasonr@gnu.org>
29138
29139 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29140 for characters above 127.
29141
29142 2007-12-13 Jason Rumney <jasonr@gnu.org>
29143
29144 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29145 before dereferencing array.
29146 (lookup_vk_code): Remove zero comparison.
29147
29148 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
29149
29150 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29151 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29152 Use `unsigned int' instead of `uint'.
29153 (xd_read_message, Fdbus_register_signal): Split expressions into
29154 multiple lines before operators "&&" and "||", according to the
29155 GNU Coding Standards.
29156
29157 2007-12-14 Eli Zaretskii <eliz@gnu.org>
29158
29159 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29160
29161 2007-12-12 Juri Linkov <juri@jurta.org>
29162
29163 * buffer.c (Frename_buffer): In interactive spec replace
29164 `read-buffer' with `read-string' that uses `buffer-name-history'
29165 as history, and the current buffer's name as default.
29166
29167 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29168
29169 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29170 manipulating the backtrace manually.
29171 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29172 (struct backtrace, backtrace_list): Remove.
29173 (command_loop_1): Remove dead var `no_direct'.
29174
29175 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29176 preserve non-built-in buffer-local variables.
29177 (Fkill_all_local_variables): Don't re-create&re-set permanent
29178 buffer-local variables.
29179
29180 2007-12-09 Juri Linkov <juri@jurta.org>
29181
29182 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29183 Lisp code that uses `read-buffer' with current buffer as default.
29184
29185 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
29186
29187 * dbusbind.c (xd_read_message): Generate an event for every
29188 registered handler. There might be several handlers registered
29189 for the same signal.
29190 (Fdbus_register_signal): Don't overwrite a registration for the
29191 same signal. Add a new registration if handlers are different.
29192 (Vdbus_registered_functions_table): Rework doc string.
29193
29194 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
29195
29196 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29197 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29198 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29199 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29200 Unify argument lists.
29201 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29202 arguments and hash table keys. Use unique name for service.
29203 (Fdbus_unregister_signal): Remove checks.
29204 (Vdbus_registered_functions_table): Fix doc string.
29205
29206 2007-12-05 Magnus Henoch <mange@freemail.hu>
29207
29208 * process.c (make_process): Initialize pty_flag to 0.
29209
29210 2007-12-05 Jason Rumney <jasonr@gnu.org>
29211
29212 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29213 specified XBMs.
29214
29215 2007-12-05 Richard Stallman <rms@gnu.org>
29216
29217 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29218
29219 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29220
29221 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29222 New variable.
29223 (mac_try_close_socket) [MAC_OSX]: New function.
29224 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29225 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29226
29227 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29228 Use mac_try_close_socket.
29229
29230 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29231
29232 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29233 reloc_base.
29234 (copy_dysymtab): Compute relocation base here.
29235 (rebase_reloc_address) [__ppc64__]: New function.
29236 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29237 changed.
29238
29239 2007-12-05 Jason Rumney <jasonr@gnu.org>
29240
29241 * w32proc.c (sys_spawnve): Quote args with wildcards.
29242
29243 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29244
29245 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29246 __objc_* sections.
29247 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29248
29249 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
29250
29251 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29252 Move check for Vdbus_registered_functions_table to
29253 xd_read_queued_messages.
29254 (xd_read_queued_messages): Protect xd_read_message calls by
29255 internal_condition_case_1.
29256
29257 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
29258
29259 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29260 Qdbus_system_bus and Qdbus_session_bus, respectively.
29261 (Vdbus_intern_symbols): Remove.
29262 (Vdbus_registered_functions_table): New hash table.
29263 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29264 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29265 Rewrite in order to manage registered functions by hash table
29266 Vdbus_registered_functions_table.
29267
29268 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29269
29270 * xterm.c: Update URL to Window Manager Specification in comment.
29271
29272 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
29273
29274 * config.in (HAVE_DBUS): Add.
29275
29276 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29277 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29278 (obj): Add $(DBUS_OBJ).
29279 (LIBES): Add $(DBUS_LIBS).
29280 (dbusbind.o): New target.
29281
29282 * dbusbind.c: New file.
29283
29284 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29285
29286 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29287 (Qdbus_event): New Lisp symbol.
29288 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29289 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
29290 (keys_of_keyboard): Define dbus-event.
29291
29292 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29293
29294 2007-12-01 Richard Stallman <rms@gnu.org>
29295
29296 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29297
29298 2007-11-30 Jason Rumney <jasonr@gnu.org>
29299
29300 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29301 (w32con_reset_terminal_modes): Clear screen buffer.
29302 (w32_face_attributes): Don't use color indexes that are out of range.
29303 Only reverse the default colors.
29304
29305 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29306 WINDOWSNT.
29307
29308 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29309
29310 2007-11-29 Jason Rumney <jasonr@gnu.org>
29311
29312 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29313 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29314 if the terminal colors are initialized.
29315 (unspecified_fg, unspecified_bg): Remove unused declarations.
29316
29317 2007-11-29 Andreas Schwab <schwab@suse.de>
29318
29319 * keyboard.c (apply_modifiers): Fix typo.
29320
29321 2007-11-29 Richard Stallman <rms@gnu.org>
29322
29323 * keymap.c (Fcurrent_local_map): Doc fix.
29324
29325 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29326
29327 * s/gnu-kfreebsd.h: New file.
29328
29329 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29330
29331 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29332 Don't cast redundantly.
29333
29334 * keyboard.c (KEY_TO_CHAR): New macro.
29335 (parse_modifiers, apply_modifiers): Accept integer arguments.
29336 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29337 for chars and symbol keys.
29338 After doing such remapping, apply function-key-map again.
29339
29340 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29341
29342 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29343 compiled anymore.
29344
29345 2007-11-26 Andreas Schwab <schwab@suse.de>
29346
29347 * process.c (list_processes_1): Fix indentation level of the
29348 command column.
29349
29350 2007-11-23 Andreas Schwab <schwab@suse.de>
29351
29352 * editfns.c (Fformat): Handle %c specially since it requires the
29353 argument to be of type int.
29354
29355 2007-11-23 Markus Triska <markus.triska@gmx.at>
29356
29357 * emacs.c (main): Call init_editfns before init_process, since
29358 init_process sets Vprocess_connection_type depending on OS release.
29359
29360 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29361
29362 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29363 (find_symbol_value): Use do_symval_forwarding.
29364
29365 * data.c (set_internal): Set the value in the `cons-cell' (for
29366 Buffer_Local_values) not only for frame-local variables.
29367
29368 2007-11-22 Andreas Schwab <schwab@suse.de>
29369
29370 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29371 values to sprintf.
29372 * keymap.c (Fsingle_key_description): Likewise.
29373 * print.c (print_object): Likewise.
29374
29375 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29376
29377 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29378 file for image is nil.
29379
29380 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29381
29382 * term.c: Include stdarg.h.
29383 (fatal): Implement using varargs.
29384 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29385
29386 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29387
29388 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29389 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29390 Update call to buffer_slot_type_mismatch.
29391 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29392 (buffer_slot_type_mismatch): Update.
29393 * buffer.c (buffer_local_types): Remove.
29394 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29395 (defvar_per_buffer): Set the type in the buffer_objfwd.
29396
29397 2007-11-21 Jason Rumney <jasonr@gnu.org>
29398
29399 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29400 CreateFileMapping returns NULL on failure.
29401
29402 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29403
29404 * search.c (Fset_match_data): Remove the `evaporate' feature.
29405 (unwind_set_match_data): Don't use the `evaporate' feature.
29406
29407 2007-11-21 Jason Rumney <jasonr@gnu.org>
29408
29409 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29410
29411 * w32console.c (w32con_write_glyphs): Remove unused variables.
29412
29413 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29414
29415 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29416
29417 * s/darwin.h (MULTI_KBOARD): Remove.
29418
29419 * macfns.c (x_create_tip_frame, Fx_create_frame)
29420 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29421
29422 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29423
29424 * buffer.c (Fbuffer_local_value): Remove redundant test.
29425 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29426 than in `current-buffer' to match the comment.
29427 Do the swap using swap_in_global_binding.
29428
29429 * data.c (store_symval_forwarding, set_internal):
29430 * eval.c (specbind): Remove dead code.
29431
29432 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29433 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29434 Since we do not want to see internal Lisp_*fwd objects here.
29435
29436 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29437
29438 * sysdep.c (init_system_name): Use getaddrinfo if available.
29439
29440 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29441 (x_scroll_bar_note_movement): start, end, with, height in struct
29442 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29443
29444 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29445
29446 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29447
29448 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29449
29450 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29451 This undoes Richard's change of 14-Oct-2002.
29452
29453 * alloc.c (allocate_other_vector):
29454 * lisp.h (allocate_other_vector): Remove.
29455
29456 * window.c (struct save_window_data): Move non-lisp data to the end
29457 and make it `int' rather than Lisp_Object.
29458 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29459 Done wrap/unwrap integer values.
29460 (Fset_window_configuration, compare_window_configurations):
29461 Update use of fields to their new types.
29462
29463 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29464 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29465 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29466 (SET_SCROLL_BAR_X_WINDOW): Remove.
29467 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29468 Access the new x_window field directly.
29469 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29470 Don't wrap/unwrap integers into Lisp_Objects.
29471 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29472 (x_scroll_bar_report_motion):
29473 Don't wrap/unwrap integers into Lisp_Objects.
29474 (x_term_init): Use SDATA.
29475 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29476 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29477 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29478 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29479 * xfns.c (x_set_background_color):
29480 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29481 Access the new x_window field directly.
29482
29483 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29484 (allocate_pseudovector): Make non-static.
29485
29486 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29487 (allocate_pseudovector): Declare.
29488 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29489
29490 2007-11-15 Andreas Schwab <schwab@suse.de>
29491
29492 * editfns.c (Fformat): Correctly format EMACS_INT values.
29493 Also take precision into account when formatting an integer.
29494
29495 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29496
29497 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29498
29499 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29500 (syms_of_keyboard): Defsubr it.
29501
29502 * data.c (swap_in_global_binding): Fix longstanding bug where
29503 store_symval_forwarding was not called with the right second argument,
29504 thus causing objfwd-ing from being dropped.
29505
29506 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29507
29508 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29509 (Fx_display_pixel_height, Fx_display_planes)
29510 (Fx_display_color_cells, Fx_server_max_request_size)
29511 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29512 (Fx_display_visual_class, Fx_display_save_under):
29513 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29514 (Fx_display_pixel_height, Fx_display_planes)
29515 (Fx_display_color_cells, Fx_server_max_request_size)
29516 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29517 (Fx_display_mm_height, Fx_display_mm_width)
29518 (Fx_display_backing_store, Fx_display_visual_class)
29519 (Fw32_select_font, Fx_display_save_under):
29520 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29521 (Fx_display_pixel_height, Fx_display_planes)
29522 (Fx_display_color_cells, Fx_server_max_request_size)
29523 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29524 (Fx_display_save_under): Fix typos in docstrings.
29525
29526 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29527
29528 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29529 corresponding to deleted entries; they are an implementation detail.
29530 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29531 Remove variables.
29532 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29533 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29534 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29535 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29536 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29537 (Fw32_define_rgb_color, Fw32_load_color_file)
29538 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29539 Fix typos in docstrings.
29540 (Fx_server_version): Reflow docstring.
29541 (Fw32_shell_execute): Doc fixes.
29542
29543 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
29544
29545 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29546 if w32_parse_hot_key returned nil.
29547
29548 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29549
29550 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29551
29552 2007-11-09 Jason Rumney <jasonr@gnu.org>
29553
29554 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29555
29556 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29557
29558 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29559 Remove W32_SCROLL_BAR_CLICK_EVENT.
29560
29561 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29562 Add MULTIMEDIA_KEY_EVENT.
29563
29564 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29565 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29566 (make_lispy_event) [WINDOWSNT]: Use it to translate
29567 MULTIMEDIA_KEY_EVENT.
29568
29569 * w32term.h (WM_APPCOMMAND): Define if not already.
29570 (GET_APPCOMMAND_LPARAM): Likewise.
29571
29572 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29573 WM_APPCOMMAND.
29574
29575 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29576 (syms_of_w32fns): Export and initialize it.
29577 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29578
29579 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
29580
29581 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29582 twice.
29583
29584 * xdisp.c (handle_face_prop): Fix last change.
29585
29586 2007-11-09 Richard Stallman <rms@gnu.org>
29587
29588 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29589 not just for after-strings and before-strings.
29590 Call face_for_overlay_string and pass the overlay to it.
29591 (handle_display_prop): Determine whether property came from an overlay.
29592 Pass OVERLAY arg to handle_single_display_spec.
29593 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29594 (load_overlay_strings): Fill in it->string_overlays.
29595 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29596
29597 * xfaces.c (face_for_overlay_string): Function renamed from
29598 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29599
29600 * dispextern.h (struct it): New elt string_overlays.
29601 New elt from_overlay, also in stack.
29602 Rearrange a few elements.
29603 (face_for_overlay_string): Decl renamed from
29604 face_at_buffer_position_no_overlays, and add argument.
29605
29606 2007-11-09 Richard Stallman <rms@gnu.org>
29607
29608 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29609 to get the base face for an overlay string.
29610
29611 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29612
29613 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29614
29615 * xdisp.c (handle_stop): Move some code out of loop.
29616
29617 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29618
29619 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29620 Fix conversion from Lisp object to ATSUFontID.
29621
29622 2007-11-09 Jason Rumney <jasonr@gnu.org>
29623
29624 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29625
29626 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29627
29628 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29629 Don't assume regions are aligned to page boundary.
29630 (print_load_command_name): Add LC_UUID if defined.
29631
29632 2007-11-09 Richard Stallman <rms@gnu.org>
29633
29634 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29635
29636 2007-11-07 Jason Rumney <jasonr@gnu.org>
29637
29638 * s/windows95.h: Remove.
29639
29640 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29641
29642 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29643 abort with a message on unhandled store_type values.
29644
29645 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29646
29647 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29648 Remove HAVE_X11R5 and HAVE_X11R4.
29649
29650 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29651
29652 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29653
29654 2007-11-01 Johan Bockgård <bojohan@gnu.org>
29655
29656 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29657 Don't set s->stippled_p here, since it has already been set by
29658 x_set_glyph_string_gc from x_draw_glyph_string.
29659
29660 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29661
29662 * sunfns.c: Remove file.
29663
29664 * m/sun386.h:
29665 * m/sun2.h:
29666 * m/sparc.h: Remove Sun windows code.
29667
29668 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29669
29670 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29671 (init_keyboard): Set current_kboard's window-system to nil.
29672 (tty_read_avail_input): Typo.
29673 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29674
29675 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29676
29677 * s/usg5-4.h:
29678 * s/usg5-3.h:
29679 * s/ptx.h:
29680 * m/is386.h:
29681 * m/ibmps2-aix.h:
29682 * Makefile.in: Remove all mentions of X10.
29683
29684 * dispnew.c (syms_of_display): Don't mention version 10.
29685
29686 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
29687
29688 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29689 ($(BLD)/abbrev.$(O)): Remove.
29690
29691 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29692
29693 Rewrite abbrev.c in Elisp.
29694 * image.c (Qcount): Don't declare as extern.
29695 (syms_of_image): Initialize and staticpro `Qcount'.
29696 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29697 * emacs.c (main): Don't call syms_of_abbrev.
29698 * Makefile.in (obj): Remove abbrev.o.
29699 (abbrev.o): Remove.
29700 * abbrev.c: Remove.
29701
29702 2007-10-26 Martin Rudalics <rudalics@gmx.at>
29703
29704 * window.c (window_min_size_2): Don't count header-line.
29705
29706 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29707
29708 * frame.h (struct frame): Move all bit fields after the first bit
29709 field to take advantage of the available space. Group all the
29710 chars together to reduce wasted space due to padding.
29711
29712 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
29713
29714 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29715
29716 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29717 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29718 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29719 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29720 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29721 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29722 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29723 (last_marked, mark_object_loop_halt): Make static.
29724
29725 * frame.c (syms_of_frame) <delete-frame-functions>:
29726 Fix typo in docstring.
29727
29728 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
29729
29730 * w32.c (init_environment): Fix tiny memory leak.
29731 (w32_get_resource): Remove unused variable `ok'.
29732
29733 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29734
29735 Make `window-system' into a keyboard-local variable (rather than
29736 frame-local as done originally by multi-tty).
29737
29738 * keyboard.h (struct kboard): Add Vwindow_system.
29739 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29740 (mark_kboards): Mark Vwindow_system.
29741
29742 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29743 (init_display): Don't set the obsolete `window-system' frame-param.
29744
29745 * xterm.c (x_term_init):
29746 * w32term.c (w32_create_terminal):
29747 * term.c (init_tty): Set Vwindow_system.
29748 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29749 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29750
29751 * xfns.c (Fx_create_frame, x_create_tip_frame):
29752 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29753 * macfns.c (Fx_create_frame):
29754 Don't set the obsolete `window-system' frame-param.
29755
29756 * frame.h (Qwindow_system): Remove.
29757 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29758 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29759
29760 2007-10-24 Richard Stallman <rms@gnu.org>
29761
29762 * frame.c (x_figure_window_size): For fullscreen case,
29763 set USPosition | PPosition without clobbering rest of window_prompting.
29764
29765 * keyboard.c (Fcurrent_idle_time): Doc fix.
29766
29767 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29768
29769 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29770
29771 * process.c (unwind_request_sigio): Only define if __ultrix__.
29772
29773 * callproc.c (child_setup): Remove spurious *.
29774
29775 * lisp.h (Fget_text_property): Declare.
29776 (have_menus_p): Declare it here rather than in sys-dep header files.
29777 * macterm.h (have_menus_p):
29778 * msdos.h (have_menus_p):
29779 * xterm.h (have_menus_p): Remove.
29780
29781 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29782 (Fmake_variable_frame_local): Just check the variable's const-ness
29783 rather than checking nil or t.
29784
29785 2007-10-22 Jason Rumney <jasonr@gnu.org>
29786
29787 * w32fns.c: Include math.h.
29788 (w32_abort): Declaration moved to nt/config.nt.
29789
29790 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29791 (abort): Redefinition moved to nt/config.nt.
29792
29793 * m/windowsnt.h: Remove.
29794
29795 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
29796
29797 * emacs.c (Fdump_emacs): Fix typo in message.
29798 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29799 <installation-directory>: Reflow docstring.
29800
29801 2007-10-22 Juri Linkov <juri@jurta.org>
29802
29803 * minibuf.c: Allow minibuffer default to be a list of default values.
29804 With empty input use the first element of this list as returned default.
29805 (string_to_object)
29806 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29807 (read_minibuf): If defalt is cons, set histstring to its car.
29808 (Fread_string): If default_value is cons, set val to its car.
29809 (Fread_buffer): If def is cons, use its car.
29810 (Fcompleting_read): If defalt is cons, set val to its car.
29811
29812 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
29813
29814 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29815
29816 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
29817
29818 * doc.c (Fdocumentation): Check for advice in all cases.
29819
29820 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
29821
29822 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29823
29824 2007-10-19 Richard Stallman <rms@gnu.org>
29825
29826 * doc.c (Fdocumentation): Check for and handle an advised function.
29827
29828 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
29829
29830 * process.c (Fset_process_filter): Doc fix.
29831
29832 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29833
29834 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29835 which caused key-translation-map to applied repeatedly (thus breaking
29836 double-mode).
29837
29838 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29839
29840 * xselect.c (x_own_selection, x_handle_selection_clear)
29841 (x_clear_frame_selections):
29842 * w32menu.c (list_of_panes, list_of_items):
29843 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29844 * textprop.c (validate_plist, interval_has_all_properties)
29845 (interval_has_some_properties, interval_has_some_properties_list)
29846 (add_properties, text_property_list):
29847 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29848 * minibuf.c (Fassoc_string):
29849 * macselect.c (x_own_selection, x_clear_frame_selections)
29850 (Fx_disown_selection_internal):
29851 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29852 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29853
29854 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
29855
29856 * process.c: Link to libs for calling res_init() if available.
29857 (Fmake_network_process): Call res_init() before getaddrinfo or
29858 gethostbyname, if possible.
29859
29860 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29861
29862 * lread.c (read1): Set pvectype for char_tables.
29863
29864 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29865 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29866 Add type checks.
29867 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29868
29869 * alloc.c (free_misc): Use XMISCTYPE.
29870 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29871
29872 2007-10-17 Glenn Morris <rgm@gnu.org>
29873
29874 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29875 (syms_of_minibuf): Add Qcompletion_ignore_case.
29876 * dired.c (Qcompletion_ignore_case): Change to external.
29877 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29878 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29879 (Fread_file_name): Use it rather than intern'ing.
29880
29881 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29882 (Fread_coding_system): Ignore case of user input.
29883
29884 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29885
29886 * xdisp.c (handle_display_prop): Ignore display specs after
29887 replacing one when string text is being replaced.
29888 (handle_single_display_spec): Pretend as if characters with display
29889 property haven't been consumed only when buffer text is being replaced.
29890
29891 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29892
29893 * xfns.c (Fx_create_frame, Fx_display_list):
29894 * window.c (window_fixed_size_p, enlarge_window)
29895 (shrink_window_lowest_first):
29896 * macterm.c (init_font_name_table):
29897 * macfns.c (Fx_create_frame, Fx_display_list):
29898 * lread.c (close_load_descs):
29899 * keyboard.c (read_char_x_menu_prompt):
29900 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29901 * coding.c (code_convert_region_unwind): Test the type of an object
29902 rather than just !NILP before extracting data from it.
29903
29904 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29905
29906 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29907 (XMISCANY): New macro.
29908 (XMISCTYPE): Use it.
29909 (struct Lisp_Misc_Any): New type.
29910 (union Lisp_Misc): Use it.
29911 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29912 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29913 (find_symbol_value, set_internal, default_value, Fset_default)
29914 (Fmake_variable_buffer_local, Fmake_local_variable)
29915 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29916 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29917 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29918 * alloc.c (allocate_buffer): Set the size and tag.
29919 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29920 Use XMISCANY.
29921 (die): Follow the GNU convention for error messages.
29922 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29923 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29924 tag any more.
29925 (set_buffer_internal_1):
29926 * frame.c (store_frame_param):
29927 * eval.c (specbind):
29928 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29929
29930 * doc.c (Fsnarf_documentation): Simplify.
29931
29932 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
29933
29934 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29935 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29936
29937 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29938
29939 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29940
29941 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
29942
29943 * eval.c (do_autoload): Don't save autoloads.
29944
29945 * data.c (Ffset): Save autoload of the function being set.
29946
29947 2007-10-07 John Paul Wallington <jpw@pobox.com>
29948
29949 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29950 parameter before setting up faces.
29951
29952 2007-10-13 Eli Zaretskii <eliz@gnu.org>
29953
29954 * ccl.c (Fregister_code_conversion_map):
29955 * keyboard.c (append_tool_bar_item): Reformat last change.
29956
29957 * lisp.h (eabs): Rename from `abs'. All callers changed.
29958
29959 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29960
29961 * buffer.c (add_overlay_mod_hooklist):
29962 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29963 * fontset.c (make_fontset):
29964 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29965 (append_tool_bar_item):
29966 * macmenu.c (grow_menu_items):
29967 * w32menu.c (grow_menu_items):
29968 * xmenu.c (grow_menu_items): Use larger_vector.
29969
29970 2007-10-13 Eli Zaretskii <eliz@gnu.org>
29971
29972 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29973 selected frame'' on MSDOS).
29974
29975 2007-10-12 Martin Rudalics <rudalics@gmx.at>
29976
29977 * frame.c (Qexplicit_name): New variable.
29978 (x_report_frame_params): Report it in parameter alist.
29979 (syms_of_frame): Intern and staticpro it.
29980
29981 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29982
29983 * macfns.c (x_create_tip_frame): Set terminal for frame.
29984
29985 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29986
29987 * frame.c (Qenvironment): Remove.
29988 (syms_of_frame) <Qenvironment>: Don't initialize.
29989 (Fdelete_frame): Don't treat the `environment' param specially.
29990 * frame.h (Qenvironment): Don't declare.
29991 * callproc.c (set_initial_environment): Don't set unused frame param.
29992
29993 * frame.c (Fframe_with_environment): Remove.
29994 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29995
29996 * lisp.h (Fframe_with_environment): Don't declare.
29997
29998 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
29999
30000 * indent.c (indent_tabs_mode, last_known_column)
30001 (last_known_column_modified): Make static.
30002 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
30003
30004 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
30005
30006 * puresize.h (BASE_PURESIZE): Increase to 1170000.
30007
30008 2007-10-09 Jason Rumney <jasonr@gnu.org>
30009
30010 * w32term.c (x_set_window_size): Disable code that attempts to tell
30011 Lisp code about a size change before it actually happens.
30012
30013 2007-10-09 Richard Stallman <rms@gnu.org>
30014
30015 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
30016 return HANDLED_RETURN.
30017
30018 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30019
30020 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
30021 when there's an unread command event.
30022
30023 * frame.c (focus_follows_mouse): Move here from frame.el to allow
30024 window autoselection act appropriately when leaving selected frame.
30025 (syms_of_frame): Initialize focus_follows_mouse.
30026 * frame.h (focus_follows_mouse): Extern it.
30027 * macterm.c (XTread_socket): When focus_follows_mouse is nil
30028 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30029 * msdos.c (dos_rawgetc): Likewise.
30030 * w32term.c (w32_read_socket): Likewise.
30031 * xterm.c (handle_one_xevent): Likewise.
30032 * xdisp.c (syms_of_xdisp): In doc-string of
30033 mouse-autoselect-window mention focus-follows-mouse.
30034
30035 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30036
30037 * macterm.c (mac_load_query_font): Fix missing return value.
30038 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30039 Add BLOCK_INPUT.
30040
30041 2007-10-08 Richard Stallman <rms@gnu.org>
30042
30043 * xdisp.c (get_window_cursor_type): Implement documented behavior
30044 for cursor-in-non-selected-windows = t.
30045
30046 2007-10-08 Jason Rumney <jasonr@gnu.org>
30047
30048 * w32.c (w32_get_resource): Always close registry keys.
30049
30050 2007-10-08 Jason Rumney <jasonr@gnu.org>
30051
30052 * makefile.w32-in (LIBS): Add COMCTL32.
30053
30054 * w32fns.c (globals_of_w32fns): Init common controls.
30055
30056 2007-10-08 Richard Stallman <rms@gnu.org>
30057
30058 * image.c (our_memory_buffer): Rename from omfib_buffer.
30059
30060 2007-10-08 Richard Stallman <rms@gnu.org>
30061
30062 * buffer.c (Foverlays_at): Doc fix.
30063
30064 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
30065
30066 * fns.c (Fplist_put): Preserve uneven tail data.
30067
30068 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
30069
30070 * termhooks.h (enum event_kind): Remove trailing comma.
30071
30072 * frame.h (enum): Remove trailing comma.
30073
30074 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
30075
30076 * w32proc.c (delete_child): Don't terminate threads of zombies.
30077
30078 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30079
30080 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30081
30082 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30083 last-repeatable-command.
30084 (init_kboard): Initialize Vlast_repeatable_command.
30085 (command_loop_1): Set it to real_this_command unless that was
30086 bound to an input event.
30087 (mark_kboards): Mark it.
30088
30089 2007-10-08 Richard Stallman <rms@gnu.org>
30090
30091 * eval.c (condition-case): Doc fix.
30092
30093 2007-10-08 Masatake YAMATO <jet@gyve.org>
30094
30095 * xfaces.c (tty_supports_face_attributes_p): Fix code
30096 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30097 was copied and not edited.
30098
30099 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30100
30101 Add new `input-decode-map' keymap and use it for terminal
30102 escape sequences.
30103 * keyboard.h (struct kboard): Add Vinput_decode_map.
30104 Remove Vlocal_key_translation_map.
30105 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30106 (init_kboard): Init input-decode-map.
30107 Replace local-key-translation-map back with key-translation-map.
30108 (syms_of_keyboard): Declare input-decode-map.
30109 Remove local-key-translation-map. Update docstrings.
30110 (mark_kboards): Mark Vinput_decode_map.
30111 Don't mark Vlocal_key_translation_map.
30112 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30113 Replace local-key-translation-map back with key-translation-map.
30114 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30115 Bind in input-decode-map rather than function-key-map.
30116
30117 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30118 This was made redundant by the previous introduction of XSETPVECTYPE.
30119
30120 2007-10-09 Richard Stallman <rms@gnu.org>
30121
30122 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30123
30124 2007-09-29 Richard Stallman <rms@gnu.org>
30125
30126 * eval.c (internal_condition_case_2, internal_condition_case_1)
30127 (internal_condition_case): Reenable abort if x_catching_errors ()
30128 to see if that really happens and why.
30129
30130 2007-10-06 Andreas Schwab <schwab@suse.de>
30131
30132 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30133
30134 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
30135
30136 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30137
30138 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30139
30140 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30141
30142 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30143
30144 * window.h (struct window):
30145 * window.c (struct save_window_data, struct saved_window):
30146 * termhooks.h (struct terminal):
30147 * process.h (struct Lisp_Process):
30148 * frame.h (struct frame):
30149 * buffer.h (struct buffer):
30150 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30151 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30152 The size field of (pseudo)vectors is now unsigned.
30153 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30154
30155 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30156 Turn `count' into an integer.
30157
30158 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30159 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30160 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30161 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30162 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30163
30164 * alloc.c (allocate_pseudovector): New fun.
30165 (ALLOCATE_PSEUDOVECTOR): New macro.
30166 (allocate_window, allocate_terminal, allocate_frame)
30167 (allocate_process): Use it.
30168 (mark_vectorlike): New function.
30169 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30170 (mark_terminals): Use it.
30171 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30172 (Fmake_byte_code): Use XSETPVECTYPE.
30173
30174 * frame.c (Fframe_parameters): Minor simplification.
30175
30176 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30177
30178 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30179
30180 * buffer.c (Fget_buffer_create, init_buffer_once):
30181 * lread.c (defsubr):
30182 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30183
30184 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30185 defined differently in the m/*.h files.
30186 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30187 (XSETPVECTYPE): New macro.
30188 (XSETPSEUDOVECTOR): Use it.
30189
30190 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30191 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30192
30193 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30194 * lread.c (defvar_per_buffer):
30195 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30196
30197 * window.c (candidate_window_p): Only consider as visible frames that
30198 are on the same terminal.
30199
30200 * m/ibms390x.h (MARKBIT): Remove unused macro.
30201
30202 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
30203
30204 * lread.c (Fload): Fix typo in docstring.
30205
30206 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30207
30208 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30209 of a non-zero value can't yield zero.
30210
30211 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30212
30213 * term.c (term_clear_mouse_face, term_mouse_highlight)
30214 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30215
30216 * print.c (safe_debug_print): Use XHASH.
30217
30218 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30219 Lisp elements such as tags.
30220 (XHASH): New macro.
30221 (EQ): Use it.
30222 (SREF, SSET, STRING_COPYIN): Use SDATA.
30223 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30224
30225 * alloc.c (mark_terminal): Remove left-over declaration.
30226 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30227 (allocate_vectorlike): Remove type argument. Adjust callers.
30228 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30229 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30230
30231 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30232 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30233 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30234 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30235 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30236 Use them.
30237
30238 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30239 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30240 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30241
30242 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30243
30244 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30245 loaded by default.
30246
30247 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30248
30249 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30250 on this tty.
30251 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30252
30253 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30254 Update all users.
30255 (handle_one_term_event): Use Gpm_DrawPointer.
30256 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30257 Signal errors instead of returning nil. Always return nil.
30258 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30259 Make it a noop if gpm-mouse was not activated.
30260 (syms_of_term): Update names.
30261
30262 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30263
30264 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30265 (init_sys_modes): Check that gpm_tty is the current tty.
30266
30267 * alloc.c (allocate_terminal): Set the vector size to only count the
30268 lisp fields. Initialize those to nil.
30269 (mark_object): Don't treat terminals specially.
30270 (mark_terminal): Remove.
30271 (mark_terminals): Use mark_object instead.
30272
30273 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30274 the GC to the beginning.
30275
30276 * indent.h:
30277 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30278
30279 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30280
30281 2007-09-25 Jason Rumney <jasonr@gnu.org>
30282
30283 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30284
30285 * w32console.c (create_w32cons_output): Remove.
30286
30287 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30288
30289 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30290 (reset_sys_modes): Use reset_terminal_modes_hook.
30291
30292 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30293
30294 * eval.c (do_autoload): Don't output any message.
30295
30296 2007-09-24 Juri Linkov <juri@jurta.org>
30297
30298 * emacs.c (standard_args): Change priority of "--no-splash"
30299 from 40 to 3. Add "--no-desktop" with the same priority.
30300
30301 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30302
30303 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30304 and optimize the case where they are all 1.
30305
30306 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
30307
30308 * lisp.h (abs): Define if not defined.
30309 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30310 Don't define `abs', since it's defined in lisp.h.
30311
30312 2007-09-22 Eli Zaretskii <eliz@gnu.org>
30313
30314 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30315 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30316 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30317 (init_tty): Use DEV_TTY instead of "/dev/tty".
30318 [WINDOWSNT]: No need to protect from NAME arg being null.
30319
30320 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30321
30322 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30323 up the tty state.
30324
30325 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30326
30327 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30328 (gpm_tty): Change its type.
30329 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30330 (gpm_tty): Change its type and initialize it.
30331 (Fterm_open_connection): Check the frame is indeed a tty.
30332 Use the new gpm_tty.
30333 (Fterm_close_connection): Use the new gpm_tty.
30334 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30335 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30336
30337 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
30338
30339 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30340 underline_color, to draw strike-through.
30341
30342 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30343
30344 * lisp.h (allocate_terminal): Declare.
30345
30346 * window.c (candidate_window_p): Consider frames that are being placed
30347 by the user as somewhere between visible and iconified.
30348 (window_loop): Prefer windows on the current frame.
30349 (Fselect_window): Move the use of select-frame to the beginning so we
30350 can just delegate all the work (it'll call us back anyway).
30351
30352 * frame.c (Qdisplay_environment_variable):
30353 * frame.h (Qdisplay_environment_variable): Delete.
30354
30355 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30356 of the first arg, since that value may be a union.
30357
30358 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30359 parameter rather than Qdisplay_environment_variable. If all else
30360 fails, look for DISPLAY in initial-environment.
30361
30362 2007-09-21 Glenn Morris <rgm@gnu.org>
30363
30364 * Makefile.in (emacstool): Remove target.
30365 (lisp, shortlisp): Remove termdev.elc.
30366
30367 2007-09-21 Markus Triska <markus.triska@gmx.at>
30368
30369 * xterm.c (x_delete_display): Compile session management conditionally.
30370
30371 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30372
30373 * callproc.c (getenv_internal_1): New function.
30374 (getenv_internal): Use it.
30375 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30376
30377 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30378 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30379 (Fset_terminal_parameter): Work with dead terminals as well.
30380 (Fmodify_terminal_parameters): Remove.
30381
30382 * terminal.c (get_terminal): Handle terminals.
30383 Make sure the terminal returned is live.
30384 (create_terminal): Use allocate_terminal.
30385 (mark_terminals): Move to alloc.c.
30386 (delete_terminal): Use terminal->name as liveness status.
30387 NULL out fields after freeing their contents.
30388 Don't deallocate the object.
30389 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30390 rather than an int.
30391 (Fterminal_live_p): Accept non-integer arguments.
30392 (Fterminal_list): Return terminal objects rather than an ints.
30393
30394 * alloc.c (enum mem_type): New member for `terminal' objects.
30395 (allocate_terminal): New function.
30396 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30397 Handle terminals.
30398 (mark_terminal): New fun.
30399 (mark_terminals): Move from terminal.c.
30400
30401 * term.c (get_tty_terminal): Don't treat output_initial specially.
30402 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30403 (delete_tty): Use terminal->name as liveness status.
30404
30405 * termhooks.h (struct terminal): Make it into a pseudovector.
30406 Remove `deleted' replaced by checking `name's nullness.
30407
30408 * print.c (print_object): Handle terminals.
30409
30410 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30411 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30412
30413 * frame.c (make_terminal_frame):
30414 * keyboard.c (tty_read_avail_input):
30415 * w32term.c (x_delete_terminal):
30416 * xfns.c (Fx_create_frame, x_create_tip_frame):
30417 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30418
30419 2007-09-20 Glenn Morris <rgm@gnu.org>
30420
30421 * process.c (Fmake_network_process): Doc fix.
30422
30423 2007-09-19 Jason Rumney <jasonr@gnu.org>
30424
30425 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30426
30427 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30428
30429 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30430 Fix a C warning regarding variable constness.
30431
30432 * xterm.c (handle_one_xevent): Fix a C warning.
30433
30434 2007-09-18 Jason Rumney <jasonr@gnu.org>
30435
30436 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30437
30438 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30439
30440 * gtkutil.c (gdpy_def): New variable.
30441 (xg_initialize): Initialize gdpy_def.
30442 (xg_display_close): If no other display exists, set gdpy_def to a
30443 new connection.
30444
30445 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30446
30447 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30448 when we have no file name for the icon.
30449 (xg_tool_bar_expose_callback): Remove.
30450 (xg_create_tool_bar): Don't connect expose signal to
30451 xg_tool_bar_expose_callback.
30452 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30453
30454 2007-09-16 Andreas Schwab <schwab@suse.de>
30455
30456 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30457 values instead of zapping them.
30458
30459 2007-09-14 Glenn Morris <rgm@gnu.org>
30460
30461 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30462 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30463 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30464 scope and rename to omfib_buffer for clarity.
30465 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30466
30467 2007-09-14 Kenichi Handa <handa@m17n.org>
30468
30469 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30470
30471 2007-09-13 Jason Rumney <jasonr@gnu.org>
30472
30473 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30474
30475 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30476
30477 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30478 (mac_term_init): Call here instead, passing rif.
30479
30480 2007-09-13 Glenn Morris <rgm@gnu.org>
30481
30482 * s/hpux.h: No longer define `static' as nothing.
30483
30484 2007-09-13 Johan Bockgård <bojohan@gnu.org>
30485
30486 * callint.c (Fcall_interactively): Remove unused var `fun'.
30487
30488 2007-09-12 Romain Francoise <romain@orebokech.com>
30489
30490 * window.c (prefer_window_split_horizontally, display_buffer):
30491 Revert 2007-09-08 change.
30492
30493 2007-09-12 Glenn Morris <rgm@gnu.org>
30494
30495 * alloca.c: Remove file.
30496 * Makefile.in (alloca): Do not undef.
30497 (allocaobj, alloca.o): Remove.
30498 (otherobj): Remove allocaobj.
30499 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30500 * regex.c (C_ALLOCA): Remove all references and code that was only
30501 used when this was defined.
30502 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30503 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30504 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30505
30506 * Makefile.in (SOURCES, unlock, relock): Delete.
30507
30508 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30509 (menu_grab_callback): All uses changed.
30510
30511 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30512 (x_reply_selection_request): All uses changed.
30513
30514 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30515
30516 * lread.c (load_warn_old_style_backquotes): Change message to look
30517 better when it appears in the middle of byte-compiler messages.
30518
30519 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30520
30521 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30522
30523 * xterm.c (x_create_terminal): Add comment.
30524
30525 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30526
30527 2007-09-10 Richard Stallman <rms@gnu.org>
30528
30529 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30530
30531 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30532
30533 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30534 (DEFUN): Document `intspec', use it instead of `prompt'.
30535
30536 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30537
30538 * data.c (Finteractive_form): If the interactive specification starts
30539 with a `(', use it as a Lisp form.
30540
30541 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30542 name and file modes.
30543
30544 * callint.c (Fcall_interactively): Comment fixes.
30545
30546 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30547
30548 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30549 and compiled functions.
30550
30551 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30552
30553 * window.c (prefer_window_split_horizontally): New variable.
30554 (display_buffer): Consider splitting window horizontally depending
30555 on prefer_window_split_horizontally.
30556
30557 2007-09-08 Eli Zaretskii <eliz@gnu.org>
30558
30559 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30560
30561 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30562
30563 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30564
30565 * frame.c (x_set_frame_parameters): Check number is positive before
30566 using XFASTINT.
30567
30568 * window.c (freeze_window_start): Don't presume selected_window holds
30569 a window object.
30570 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30571
30572 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30573
30574 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30575
30576 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30577
30578 * window.c (Vsplit_window_preferred_function): New var.
30579 (Fdisplay_buffer): Use it.
30580 (syms_of_window): Export, and initialize it.
30581
30582 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30583
30584 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30585
30586 2007-09-06 Glenn Morris <rgm@gnu.org>
30587
30588 * gtkutil.c (menu_grab_callback) <cnt>:
30589 * xselect.c (x_reply_selection_request) <cnt>: Move static
30590 variable to file scope.
30591
30592 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30593
30594 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30595 consistent values of selected_frame and selected_window.
30596
30597 2007-09-04 Jason Rumney <jasonr@gnu.org>
30598
30599 * w32console.c (initialize_w32_display): Zero unused hooks.
30600
30601 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30602
30603 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30604 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30605
30606 2007-09-04 Jason Rumney <jasonr@gnu.org>
30607
30608 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30609 in w32console.c. Set up input. Remove XXX comments that have been
30610 confirmed as correct.
30611
30612 * s/ms-w32.h (MULTI_KBOARD): Define.
30613
30614 * w32console.c (one_and_only_w32cons): Remove.
30615 (initialize_w32_display): Take terminal argument.
30616
30617 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30618 initialize_w32_display.
30619 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30620
30621 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30622
30623 * keyboard.c (discard_mouse_events): Discard it.
30624 (make_lispy_event): Translate it to a lisp event.
30625 (lispy_wheel_names): Add wheel-left and right events.
30626 (syms_of_keyboard): Enlarge wheel_syms.
30627
30628 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30629 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30630
30631 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30632
30633 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30634 from WM_MOUSEHWHEEL.
30635 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30636
30637 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30638 terminal.
30639
30640 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30641 keyboard for the terminal.
30642
30643 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30644
30645 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30646 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30647 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30648 and resume-tty-function to resume-tty-hook.
30649 (Fsuspend_tty, Fresume_tty): Use new names.
30650
30651 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30652
30653 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30654 if it starts with "n:".
30655
30656 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30657
30658 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30659
30660 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30661
30662 * frame.h:
30663 * frame.c (Qterm_environment_variable): Remove.
30664 (syms_of_frame): Don't init and staticpro it.
30665
30666 * callproc.c (getenv_internal): Remove special case for $TERM.
30667
30668 * callproc.c (Vinitial_environment): New variable.
30669 (set_initial_environment): Initialize it.
30670 (syms_of_callproc): Declare it.
30671 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30672 TERM under which a process runs is never related to the TERM in which
30673 Emacs is running.
30674
30675 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30676
30677 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30678 * s/darwin.h: ... do it here.
30679
30680 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30681
30682 * lisp.h (set_initial_environment): Rename from set_global_environment.
30683
30684 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30685 removed by mistake on the multi-tty branch.
30686
30687 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30688 (Fmodify_frame_parameters): Return a value.
30689
30690 * image.c (png_load): Comment-out var only used in commented-out code.
30691
30692 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30693 before passing it to mark_object.
30694
30695 * xfaces.c (internal_resolve_face_name): Return a value.
30696 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30697
30698 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30699 (x_icon): Comment-out var only used in commented-out code.
30700
30701 2007-08-29 Romain Francoise <romain@orebokech.com>
30702
30703 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30704 QUIT hasn't been provided.
30705
30706 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30707
30708 * callproc.c (child_setup, getenv_internal): Use the
30709 display-environment-variable and term-environment-variable frame params.
30710 (set_initial_environment): Initialise Vprocess_environment.
30711
30712 * config.in: Disable multi-keyboard support on a mac.
30713
30714 * frame.c (Qterm_environment_variable)
30715 (Qdisplay_environment_variable): New variables.
30716 (syms_of_frame): Intern and staticpro them.
30717 (Fmake_terminal_frame): Disable output method test.
30718
30719 * frame.h: Declare them here.
30720
30721 * macfns.c (x_set_mouse_color): Get rif from the frame.
30722 (x_set_tool_bar_lines): Don't use updating_frame.
30723 (mac_window): Add 2 new parameters for consistency with other systems.
30724 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30725 frame parameters following what is done in X11 and w32. Don't use
30726 FRAME_MAC_DISPLAY_INFO.
30727 (Fx_open_connection, start_hourglass): Remove window-system check.
30728 (x_create_tip_frame): Get the keyboard from the terminal.
30729
30730 * macmenu.c: Reorder includes.
30731 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30732
30733 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30734 terminal parameter.
30735 (x_clear_frame): Add a frame parameter.
30736 (note_mouse_movement): Get rif from the frame.
30737 (mac_term_init): Initialize the terminal.
30738 (mac_initialize): Make static and move terminal initialization ...
30739 (mac_create_terminal): ... to this new function.
30740
30741 * macterm.h (struct mac_display_info): Add terminal.
30742 (mac_initialize): Delete declaration.
30743
30744 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30745
30746 * sysdep.c: Comment out text after #endif.
30747
30748 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30749 is defined. Better initialize ttys in windows. Use terminal
30750 specific mouse_position_hook.
30751
30752 * termhooks.h (union display_info): Add mac_display_info.
30753
30754 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30755 Set the default minibuffer frame, window_system and the rest of the
30756 frame parameters following what is done in X11.
30757
30758 * w32term.c (w32_initialize): Make static.
30759
30760 * xselect.c (x_handle_selection_clear): Only access
30761 terminal->kboard when MULTI_KBOARD is defined.
30762
30763 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30764 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30765
30766 2007-08-29 Jason Rumney <jasonr@gnu.org>
30767
30768 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30769 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30770
30771 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30772 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30773
30774 * keyboard.c (restore_kboard_configuration): Only define when
30775 MULTI_KBOARD defined.
30776
30777 * makefile.w32-in: Update dependancies from Makefile.in.
30778 (OBJ1): Add terminal.$(O)
30779
30780 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30781 Don't define function body.
30782 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30783
30784 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30785
30786 * w32.c (request_sigio, unrequest_sigio): Remove.
30787
30788 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30789 (w32con_clear_frame, w32con_clear_end_of_line)
30790 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30791 (w32con_delete_glyphs, w32con_set_terminal_window)
30792 (scroll_line, w32_sys_ring_bell): Add frame arg.
30793 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30794 Add terminal arg.
30795 (PICK_FRAME): Remove.
30796 (w32con_write_glyphs): Use frame specific terminal coding.
30797 (one_and_only_w32cons): New global variable.
30798 (initialize_w32_display): Use it for storing hooks.
30799 (create_w32cons_output): New function.
30800
30801 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30802 arg a frame.
30803
30804 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30805 Set window_system.
30806 (x_set_tool_bar_lines): Don't use updating_frame.
30807 (Fx_create_frame): Set terminal and ref count.
30808 (Fx_open_connection): Remove window-system check.
30809
30810 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30811
30812 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30813 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30814 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30815 Add frame arg.
30816 (x_delete_terminal, w32_create_terminal): New functions.
30817 (w32_term_init): Create a terminal.
30818 (w32_initialize): Move terminal specific initialization to
30819 w32_create_terminal.
30820
30821 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30822 (w32_clear_rect, w32_clear_area): Use background from frame.
30823 (w32_display_info): Add terminal.
30824 (w32_sys_ring_bell, x_delete_display): Declare here.
30825
30826 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30827
30828 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30829
30830 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30831
30832 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30833 Fix get_named_tty calls for the controlling tty.
30834
30835 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30836
30837 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
30838
30839 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30840
30841 * term.c (tty_insert_glyphs): Add missing first parameter.
30842
30843 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30844
30845 * buffer.c (Fbuffer_list, Fbury_buffer):
30846 Take frame->buried_buffer_list into account.
30847
30848 * cm.c (current_tty): New variable, for cmputc().
30849 (cmputc): Use it.
30850 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30851 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30852 (cmgoto): Add tty parameter. Pass it on to calccost().
30853 Use emacs_tputs() instead of tputs().
30854
30855 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30856 tputs().
30857 (current_tty): New variable, for cmputc().
30858 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30859
30860 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30861 (internal_condition_case, internal_condition_case_1)
30862 (internal_condition_case_2): Don't abort when x_catching_errors.
30863
30864 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30865 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30866 prevent crashes caused by bogus longjmps in read_char.
30867
30868 * keymap.h (Fset_keymap_parent): Add EXFUN.
30869
30870 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30871 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30872 Remove redundant definition.
30873
30874 * macfns.c (x_set_mouse_color, x_make_gc):
30875 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30876
30877 * w32term.c (x_free_frame_resources):
30878 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30879 (w32_initialize): Use the accessor macros for terminal characteristics.
30880
30881 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30882 Use the accessor macros for terminal characteristics.
30883 * msdos.c (internal_terminal_init): Use the accessor macros for
30884 terminal characteristics.
30885 (ScreenVisualBell, internal_terminal_init):
30886 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30887
30888 * termopts.h (no_redraw_on_reenter): Declare.
30889
30890 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30891 (mark_terminals, mark_ttys): Declare.
30892 (Fgarbage_collect): Call them.
30893 (mark_object): Mark buried_buffer_list.
30894
30895 * prefix-args.c: Include stdlib.h for exit.
30896
30897 * syssignal.h: Add comment.
30898
30899 * indent.c: Include stdio.h.
30900
30901 * window.h (Vinitial_window_system): Declare.
30902 (Vwindow_system): Delete declaration.
30903
30904 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30905
30906 * image.c (lookup_image): Don't initialize `c' until the xasserts
30907 have been run.
30908
30909 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30910 FRAME_FOREGROUND_PIXEL.
30911
30912 * print.c (print_preprocess): Don't lose print_depth levels while
30913 iterating.
30914
30915 * widget.c (update_from_various_frame_slots):
30916 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30917
30918 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30919 frames.
30920 (window_internal_height): Remove bogus make_number call.
30921 (init_window_once): Call make_terminal_frame with two zero parameters.
30922
30923 * fileio.c (Fread_file_name): Update comment.
30924
30925 * callint.c (Fcall_interactively):
30926 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30927 Make sure it is correctly unwound.
30928
30929 * xsmfns.c (x_session_close): New function.
30930
30931 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30932 Delete declarations.
30933
30934 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30935 (x_output): Remove background_pixel and foreground_pixel fields.
30936 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30937 (x_delete_device, x_session_close): Declare.
30938
30939 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30940 (read_filtered_event): Call `read_char' with a local
30941 `wrong_kboard_jmpbuf'.
30942
30943 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30944 Don't call single_kboard_state. Use FRAME_RIF.
30945
30946 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30947 systems.
30948
30949 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30950 (Fframe_with_environment, Fset_input_meta_mode)
30951 (Fset_quit_char): EXFUN.
30952 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30953 (init_sys_modes, reset_sys_modes): Update prototypes.
30954 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30955
30956 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30957 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30958 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30959 Delete declarations.
30960 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30961 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30962 New declarations.
30963
30964 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30965 already does that during init_display(). Call syms_of_keymap
30966 before syms_of_keyboard. Call `syms_of_terminal'.
30967 Call set_initial_environment, not set_process_environment.
30968 (shut_down_emacs): Call reset_all_sys_modes() instead of
30969 reset_sys_modes().
30970
30971 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30972 (internal_resolve_face_name, resolve_face_name_error): New functions.
30973 (resolve_face_name): Protect against loops and errors thrown by Fget.
30974 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30975 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30976
30977 * scroll.c: Replace CURTTY() with local variables throughout the
30978 file (where applicable).
30979 (calculate_scrolling, calculate_direct_scrolling)
30980 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30981 characteristics.
30982
30983 * keymap.c (Vfunction_key_map): Remove.
30984 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30985 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30986 (Vkey_translation_map): Remove.
30987 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30988 (Fdescribe_buffer_bindings)
30989 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30990 Update for terminal-local key-translation-map.
30991
30992 * Makefile.in (callproc.o): Update dependencies.
30993 (lisp, shortlisp): Add termdev.elc.
30994 (obj): Add terminal.o.
30995 (terminal.o): Add dependencies.
30996 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30997 (data.o, fns.o): Add termhooks.h dependency.
30998 (SOME_MACHINE_LISP): Add dnd.elc.
30999 (minibuf.o): Fix typo.
31000 Update dependencies.
31001
31002 * data.c (do_symval_forwarding, store_symval_forwarding)
31003 (find_symbol_value): Use the selected frame's keyboard, not
31004 current_kboard.
31005
31006 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
31007 Vwindow_system.
31008
31009 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
31010 Fmenu_bar_open.
31011 (syms_of_xmenu): Update defsubr.
31012 (mouse_position_for_popup, Fx_popup_menu)
31013 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
31014 (set_frame_menubar, free_frame_menubar)
31015 (create_and_show_popup_menu, xmenu_show)
31016 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
31017 an X frame.
31018
31019 * xselect.c (x_own_selection): Abort if not an X frame.
31020 (some_frame_on_display): Check if it is an X frame.
31021 (x_handle_selection_clear): Deal with MULTI_KBOARD.
31022
31023 * coding.c: Include frame.h and termhooks.h.
31024 (terminal_coding, keyboard_coding): Delete.
31025 (Fset_terminal_coding_system_internal)
31026 (Fset_keyboard_coding_system_internal)
31027 (Fkeyboard_coding_system)
31028 (Fterminal_coding_system): Add a terminal parameter.
31029 Get terminal_coding from the terminal.
31030 (init_coding_once): Don't call setup_coding_system here.
31031
31032 * dispextern.h (set_scroll_region, turn_off_insert)
31033 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31034 (tty_clear_end_of_line, tty_setup_colors)
31035 (delete_tty, updating_frame)
31036 (produce_special_glyphs, produce_glyphs, write_glyphs)
31037 (insert_glyphs): Remove.
31038 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31039 (tty_turn_off_highlight, get_tty_size): Add declaration.
31040 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31041
31042 * frame.h (enum output_method): Add output_initial.
31043 (struct x_output): Delete.
31044 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31045 Access foreground_pixel and background_pixel directly from the frame.
31046 (tty_display): Delete.
31047 (struct frame): Add buried_buffer_list, foreground_pixel,
31048 background_pixel and terminal. Delete kboard.
31049 (union output_data): Add tty.
31050 (FRAME_KBOARD): Get the kboard from the terminal.
31051 (FRAME_INITIAL_P): New macro.
31052 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31053 (Qterm_environment_variable, Qdisplay_environment_variable)
31054 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31055 New declarations.
31056
31057 * termchar.h (tty_output, tty_display_info): New structures.
31058 (tty_list): Declare.
31059 (FRAME_TTY, CURTTY): New macros.
31060 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31061 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31062 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31063 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31064
31065 * callproc.c: Include frame.h and termhooks.h, for terminal
31066 parameters.
31067 (add_env): New function.
31068 (child_setup): Use it.
31069 (child_setup, getenv_internal): Handle the new Vprocess_environment.
31070 (getenv_internal): Fix get_terminal_param call.
31071 (Fgetenv_internal, egetenv): Update doc.
31072 (syms_of_callproc): Initialize Vprocess_environment to nil.
31073 Register and initialize them. Remove obsolete defvars. Update doc
31074 strings.
31075 (child_setup): Handle Vlocal_environment_variables.
31076 (getenv_internal): Add terminal parameter.
31077 Handle Vlocal_environment_variables.
31078 (Fgetenv_internal): Add terminal parameter.
31079 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31080 environment in a frame (not terminal) parameter. Update doc strings.
31081 (set_initial_environment): Rename from set_global_environment.
31082 Store Emacs environment in initial frame parameter.
31083
31084 * xdisp.c (redisplay_internal): Update references to
31085 `previous_terminal_frame'.
31086 (display_mode_line, Fformat_mode_line): Replace calls to
31087 `push_frame_kboard' with `push_kboard'.
31088 (get_glyph_string_clip_rects): Add extra parentheses and
31089 braces to prevent compiler warnings.
31090 (calc_pixel_width_or_height): Add xassert to check that the
31091 frame is alive. Don't call `lookup_image' on a termcap frame.
31092 (message2_nolog, message3_nolog, redisplay_internal)
31093 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31094 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31095 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31096 (Fx_display_pixel_width, Fx_display_pixel_height)
31097 (Fx_display_planes, Fx_display_color_cells)
31098 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31099 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31100 (Fx_display_backing_store, Fx_display_visual_class)
31101 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31102 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31103
31104 * xfns.c (x_set_foreground_color x_set_background_color)
31105 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31106 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31107 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31108 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31109 terminal that is being deleted.
31110 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31111 frame parameter, and make sure it overrides any user-supplied setting.
31112 (Fx_close_connection, Fx_synchronize): Unify argument names with
31113 the rest of the DEFUNs.
31114
31115 * dispnew.c (Fsend_string_to_terminal): Update call to
31116 `get_tty_terminal'.
31117 (Fredraw_frame, Fsend_string_to_terminal)
31118 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31119 FRAME_TERMCAP_P and FRAME_TTY.
31120 (window_change_signal): Don't believe width/height values that are
31121 impossibly small.
31122 (Vinitial_window_system): Rename from Vwindow_system.
31123 (termscript, Wcm, rif): Delete.
31124
31125 * termhooks.h (struct terminal): New struct containing the
31126 previously global text display hooks and new members NAME,
31127 DELETED and PARAM_ALIST.
31128 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31129 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31130 (FRAME_RIF): New macros.
31131 (get_terminal_param, get_device): New declarations.
31132 (termscript): Delete declaration.
31133
31134 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31135 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31136 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31137 FRAME_FOREGROUND_PIXEL.
31138 (x_fully_uncatch_errors): Disable definition.
31139 (x_scroll_bar_expose): Fix reference to foreground pixel.
31140 (XTread_socket): Disable loop on all X displays.
31141 (x_delete_terminal): Don't set terminal->deleted and let
31142 delete_terminal delete the frames on the terminal.
31143 (x_delete_display): Doc update to reflect changes in
31144 delete_terminal.
31145 (x_display_info) <terminal>: Move member earlier in the struct.
31146 (deleting_tty): Remove old variable.
31147 (Fsuspend_tty): Call clear_tty_hooks.
31148 (Fresume_tty, init_tty): Call set_tty_hooks.
31149 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31150 errors on X frames.
31151 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31152 (handle_one_xevent): Initialize `f' to NULL.
31153 (x_delete_terminal, x_create_terminal): New functions.
31154 (XTset_terminal_modes, XTreset_terminal_modes)
31155 (XTread_socket, x_connection_closed, x_term_init)
31156 (x_term_init, x_delete_display): Add terminal parameter.
31157 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31158 X connections.
31159
31160 * frame.c: Include termchar.h.
31161 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31162 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31163 (Qdisplay_environment_variable): New vars.
31164 (Fframep): Deal with output_initial.
31165 (Fframe-live-p): Doc fix.
31166 (Fwindow-system): New function.
31167 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31168 (make_terminal_frame): Don't create frames on a terminal that is
31169 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31170 (store_frame_param): Check for found_for_frame before calling XFRAME.
31171 (Fmake_terminal_frame): Handle NULL tty names correctly.
31172 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31173 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31174 frames to refer to a deleted frame in their 'environment parameter.
31175 (Fframe_with_environment): New function.
31176 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31177 (get_future_frame_param): New function.
31178 (Fmake_terminal_frame): Use it.
31179 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31180
31181 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31182 * sysdep.c (reset_sys_modes): Update for renames.
31183
31184 * keyboard.c (tty_read_avail_input): New function.
31185 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31186 (syms_of_keyboard): Defsubr them.
31187 (Fset_input_meta_mode, Fset_quit_char): New functions.
31188 (Fset_input_mode): Split to above functions.
31189 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31190 parameter. Use it in call to `read_char'.
31191 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31192 Set wrong_kboard_jmpbuf correctly in recursive calls.
31193 Use current_kboard to access Vkeyboard_translate_table.
31194 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31195 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31196 Update longjmp invocations. Remember the original current_kboard,
31197 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31198 changes it. Comment out unnecessary calls to
31199 `record_single_kboard_state' and `any_kboard_state'.
31200 Update recursive calls.
31201 (wrong_kboard_jmpbuf): Remove global variable.
31202 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31203 Handle deleted interrupted_kboards correctly; that is a legal
31204 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31205 and read_char calls. Abort if interrupted_kboard died in read_char.
31206 (any_kboard_state, single_kboard_state)
31207 (push_frame_kboard): Remove function.
31208 (pop_kboard): Switch out of single_kboard mode if the kboard has
31209 been deleted. Remove unused variable. Help debugging by not
31210 changing current_kboard unnecessarily. Set current_kboard to the
31211 kboard of the selected frame when the stored kboard object has
31212 been deleted before pop_kboard.
31213 (temporarily_switch_to_single_kboard): Change first parameter to a
31214 frame pointer. Throw an error when caller wants to change kboards
31215 while in single_kboard mode. Don't push_kboard if we weren't in
31216 single kboard state. Don't pop_kboard if we popped into any
31217 kboard state.
31218 (restore_kboard_configuration): Abort if pop_kboard changed the
31219 kboard in single_kboard mode. Call pop_kboard only after setting
31220 up single_kboard mode.
31221 (Frecursive_edit): Switch to single_kboard mode only in nested
31222 command loops.
31223 (cmd_error, command_loop, command_loop_1, timer_check):
31224 Comment out unnecessary call to `any_kboard_state' and
31225 `record_single_kboard_state'.
31226 (delete_kboard): Exit single_kboard mode if we have just deleted
31227 that kboard. Use FRAME_KBOARD.
31228 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31229 `fatal_error_signal'.
31230 (record_single_kboard_state): Don't push_kboard if we weren't in
31231 single kboard state. Don't pop_kboard if we popped into any
31232 kboard state.
31233 (push_frame_kboard): Rename to push_kboard.
31234 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31235 (read_avail_input): Read input from all terminals.
31236 (mark_kboards): Also mark Vkeyboard_translate_table.
31237 (kbd_buffer_store_event_hold): Simplify condition.
31238 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31239 (Vkeyboard_translate_table): Move to struct kboard.
31240 (init_kboard): Initialize Vkeyboard_translate_table.
31241 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31242 Vkeyboard_translate_table. Update doc strings. Update docs of
31243 local-function-key-map and function-key-map.
31244
31245 * terminal.c: New file.
31246
31247 * term.c: Include errno.h.
31248 (Vring_bell_function, device_list, initial_device)
31249 (next_device_id, ring_bell, update_begin, update_end)
31250 (set_terminal_window, cursor_to, raw_cursor_to)
31251 (clear_to_end, clear_frame, clear_end_of_line)
31252 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31253 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31254 (syms_of_term): Move their initialization to terminal.c.
31255 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31256 (Ftty_display_color_cells)
31257 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31258 (clear_tty_hooks, set_tty_hooks)
31259 (init_tty, maybe_fatal): New functions.
31260 (Ftty_type): Return nil if terminal is not on a tty instead of
31261 throwing an error. Doc update.
31262 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31263 Doc update. Initialize new subrs and variables.
31264 (delete_tty): Use terminal->deleted.
31265 (tty_set_terminal_modes): Rename from set_terminal_modes.
31266 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31267 (set_scroll_region): Rename to `tty_set_scroll_region'.
31268 (turn_on_insert): Rename to `tty_turn_on_insert'.
31269 (turn_off_insert): Rename to `tty_turn_off_insert'.
31270 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31271 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31272 (toggle_highligh): Rename to `tty_toggle_highlight'.
31273 (background_highlight): Rename to `tty_background_highlight'.
31274 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31275 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31276 (tty_set_scroll_region, tty_background_highlight)
31277 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31278 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31279 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31280 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31281 Add static modifier.
31282 (tty_reset_terminal_modes, tty_set_terminal_window)
31283 (tty_set_scroll_region, tty_background_highlight)
31284 (tty_highlight_if_desired, tty_cursor_to)
31285 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31286 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31287 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31288 renames.
31289
31290 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31291
31292 * keyboard.c: Qrtl is new.
31293 (parse_tool_bar_item): Handle :rtl keyword.
31294 (syms_of_keyboard): Intern :rtl keyword.
31295
31296 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31297
31298 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31299 so no Lisp code is executed.
31300 (file_for_image, find_rtl_image): New functions.
31301 (xg_get_image_for_pixmap): Use file_for_image.
31302 (update_frame_tool_bar): If direction is RTL, use RTL image if
31303 defined. Use Gtk stock images if defined.
31304
31305 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31306
31307 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31308 for nonexistent or zero-width glyph in composition glyph.
31309
31310 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31311
31312 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31313
31314 * xdisp.c (Finvisible_p): New function.
31315 (syms_of_xdisp): defsubr it.
31316
31317 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
31318
31319 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31320 Doc fixes.
31321
31322 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31323
31324 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31325
31326 2007-08-24 Martin Rudalics <rudalics@gmx.at>
31327
31328 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31329 whether decoding has modified buffer contents.
31330
31331 2007-08-24 Jason Rumney <jasonr@gnu.org>
31332
31333 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31334 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31335 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31336 (init_svg_functions) [HAVE_NTGUI]: New function.
31337 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31338 (svg_load_image): Use them.
31339 (svg_load_image) [HAVE_NTGUI]: Implement background.
31340
31341 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31342
31343 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31344 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31345 (LIBX): Remove @RSVG_LIBS@.
31346 (LIBES): Add $(RSVG_LIBS).
31347
31348 * image.c (svg_load_image): Blend with specified background if exists.
31349 Use IMAGE_BACKGROUND. Add Mac OS Support.
31350
31351 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31352 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31353 Remove macros.
31354 [MAC_OSX] (socket_callback): Do nothing.
31355 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31356 ReceiveNextEvent.
31357 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31358 socket_callback.
31359 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31360
31361 2007-08-22 Glenn Morris <rgm@gnu.org>
31362
31363 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31364
31365 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31366
31367 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31368
31369 * image.c: Add support for SVG images. Some additional comments
31370 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31371 (svg_image_p): New function to test for SVG image.
31372 (svg_load): New function to load SVG image.
31373 (svg_load_image): New function, helper for svg_load.
31374 (Qsvg): New Lisp_object.
31375 (svg_keyword_index): New enum.
31376 (svg_format): New static `image_keyword' struct.
31377 (svg_type): New static `image_type' struct.
31378 (librsvg/rsvg.h): Include it.
31379
31380 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31381
31382 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31383
31384 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31385
31386 * lread.c (Qold_style_backquotes): New var.
31387 (syms_of_lread): Init and staticpro it.
31388 (load_warn_old_style_backquotes): New fun.
31389 (Fload): Use them to warn about old style backquotes.
31390 (end_of_file_error, Fload): Remove unused vars.
31391
31392 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31393
31394 * lread.c (Vold_style_backquotes): New var.
31395 (syms_of_lread): Init and export it to Elisp.
31396 (read1): Set it when we find an old-style (back)quote.
31397
31398 2007-08-22 Jason Rumney <jasonr@gnu.org>
31399
31400 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31401
31402 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31403
31404 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31405
31406 2007-08-19 Richard Stallman <rms@gnu.org>
31407
31408 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31409
31410 2007-08-19 Andreas Schwab <schwab@suse.de>
31411
31412 * alloc.c (pure): Round PURESIZE up.
31413
31414 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31415
31416 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31417 active frame.
31418
31419 2007-08-16 Richard Stallman <rms@gnu.org>
31420
31421 * eval.c (Fcommandp): Add parens to clarify.
31422
31423 * minibuf.c (Fall_completions): Use enum for type of table.
31424
31425 * emacs.c (USAGE2): Improve text.
31426
31427 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31428
31429 * term.c (tty_default_color_capabilities): Declare static
31430 variables in file scope, to avoid HPUX compiler problem.
31431
31432 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31433
31434 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31435 to gtk_toolbar_insert.
31436
31437 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31438
31439 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31440
31441 * insdel.c (reset_var_on_error): New fun.
31442 (signal_before_change, signal_after_change):
31443 Use it to reset (after|before)-change-functions to nil in case of error.
31444 Bind inhibit-modification-hooks to t.
31445 Don't bind (after|before)-change-functions to nil while they run.
31446
31447 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31448
31449 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31450 filling pixmap with stippled background.
31451
31452 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31453
31454 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31455 Don't use invisible frame as parent window for repositioning.
31456
31457 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31458
31459 * print.c (new_backquote_output): Rename from old_backquote_output.
31460 (print): Inverse its logic (according to its name) so as to match the
31461 behavior of new_backquote_flag in lread.c.
31462
31463 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31464
31465 * gmalloc.c (posix_memalign): New function.
31466
31467 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31468 ActivateControl/DeactivateControl here.
31469 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31470 frame-notice-user-settings is non-nil.
31471 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31472 for kEventParamFMFontStyle.
31473 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31474 mac_pass_command_to_system and mac_pass_control_to_system here.
31475 (XTread_socket): Call ActivateControl/DeactivateControl here.
31476 (XTread_socket) [TARGET_API_MAC_CARBON]:
31477 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31478 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31479 for window repositioning.
31480
31481 2007-08-08 Glenn Morris <rgm@gnu.org>
31482
31483 * Replace `iff' in doc-strings and comments.
31484
31485 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
31486
31487 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31488
31489 2007-08-07 Martin Rudalics <rudalics@gmx.at>
31490
31491 * fileio.c (Finsert_file_contents): Run format-decode and
31492 after_insert_file_functions on entire buffer when REPLACE is
31493 non-nil and inhibit modification_hooks and point_motion_hooks.
31494 For consistency, run after_insert_file_functions iff something
31495 got inserted. Move signal_after_change and update_compositions
31496 after code running after_insert_file_functions. Make sure that
31497 undo_list doesn't record intermediate steps of the decoding process.
31498
31499 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31500
31501 * emacs.c (main)
31502 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31503 Call malloc_enable_thread on interactive startup.
31504
31505 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31506 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31507 [USE_PTHREAD]: Conditionalize with it.
31508 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31509 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31510 New functions.
31511
31512 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
31513
31514 * xdisp.c (redisplay_window): When restoring original buffer
31515 position, make sure it is still valid.
31516
31517 * image.c (png_load): Ignore png-supplied background color.
31518
31519 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31520
31521 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31522 Use kCFAbsoluteTimeIntervalSince1970.
31523
31524 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31525 New variable.
31526 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31527 event loop should be quit.
31528 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31529 Quit dialog event loop if quit_dialog_event_loop is set.
31530
31531 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31532 (Selection): New typedef. Use instead of ScrapRef.
31533 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31534 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31535 (mac_clear_selection): Rename from clear_scrap.
31536 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31537 scrap_has_target_type. All uses changed.
31538 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31539 (mac_selection_has_target_p): New functions.
31540 (mac_put_selection_value): Rename from put_scrap_string.
31541 (mac_get_selection_value): Rename from get_scrap_string.
31542 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31543 (put_scrap_private_timestamp, scrap_has_target_type)
31544 (get_scrap_private_timestamp): Remove functions.
31545 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31546 (x_own_selection, x_get_local_selection):
31547 Use mac_valid_selection_value_p.
31548 (x_own_selection): Don't use put_scrap_private_timestamp.
31549 Record OWNERSHIP-INFO into Vselection_alist instead.
31550 (x_get_local_selection): Don't check type if request is local.
31551 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31552 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31553
31554 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31555
31556 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31557 add comment explaining why.
31558
31559 2007-08-03 Richard Stallman <rms@gnu.org>
31560
31561 * fileio.c (Fvisited_file_modtime): Use make_time.
31562
31563 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31564
31565 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31566 build.
31567
31568 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31569
31570 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31571
31572 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31573
31574 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31575
31576 2007-07-30 Richard Stallman <rms@gnu.org>
31577
31578 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31579
31580 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31581
31582 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31583
31584 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
31585
31586 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31587 remote default-directory.
31588
31589 * buffer.c (mode-line-format): Update doc string.
31590
31591 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31592
31593 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31594 scroll bar gap.
31595 (x_scroll_bar_create): Set bar->fringe_extended_p.
31596 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31597 on frame edge. Check fringe background extension. Don't clear
31598 extended fringe background area.
31599
31600 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31601 (w32_fill_area): Enclose multiple statements with do ... while (0).
31602
31603 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31604 Extend fringe background to scroll bar gap.
31605 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31606 Set bar->fringe_extended_p.
31607 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31608 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31609 background extension. Don't clear extended fringe background area.
31610
31611 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31612 New member fringe_extended_p.
31613
31614 2007-07-25 Glenn Morris <rgm@gnu.org>
31615
31616 * Relicense all FSF files to GPLv3 or later.
31617
31618 * COPYING: Switch to GPLv3.
31619
31620 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31621
31622 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31623
31624 * data.c (Finteractive_form): Check for the presence of an
31625 `interactive-form' symbol property more thoroughly.
31626
31627 * data.c (Finteractive_form): Use an `interactive-form' property if
31628 present, analogous to the function-documentation property.
31629
31630 2007-07-24 Jason Rumney <jasonr@gnu.org>
31631
31632 * w32fns.c (x_real_positions): Get real position from OS instead of
31633 calculating it.
31634
31635 2007-07-23 Jason Rumney <jasonr@gnu.org>
31636
31637 * filelock.c (current_lock_owner): Allow for @ sign in username.
31638
31639 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
31640
31641 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31642 remote default-directory.
31643
31644 * buffer.c (mode-line-format): Describe above case in doc string.
31645
31646 2007-07-20 Eli Zaretskii <eliz@gnu.org>
31647
31648 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31649 Define if not defined.
31650
31651 2007-07-18 Jason Rumney <jasonr@gnu.org>
31652
31653 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31654
31655 2007-07-18 Richard Stallman <rms@gnu.org>
31656
31657 * data.c (Fsetq_default): Doc fix.
31658
31659 * eval.c (Fsetq): Doc fix.
31660
31661 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
31662
31663 * coding.c (Ffind_operation_coding_system):
31664 * eval.c (For, Fand): Doc fixes.
31665 Reported by Johan Bockgård.
31666
31667 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31668
31669 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31670
31671 * xterm.h: Declare x_ewmh_activate_frame.
31672
31673 * xterm.c (x_ewmh_activate_frame): New function.
31674 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31675
31676 2007-07-17 Martin Rudalics <rudalics@gmx.at>
31677
31678 * window.c (Fdisplay_buffer): If largest or LRU window is the
31679 only window, split it even if it is not eligible for splitting.
31680 This restores the original behavior broken by the 2007-07-15
31681 change.
31682
31683 2007-07-17 Glenn Morris <rgm@gnu.org>
31684
31685 * abbrev.c (abbrev_check_chars): New function.
31686 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31687 Call abbrev_check_chars to check abbrev characters are word
31688 constituents. Doc fix.
31689
31690 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31691
31692 * process.c (Fstart_process, Fmake_network_process)
31693 (read_process_output): Fix up last changes.
31694
31695 2007-07-16 Eli Zaretskii <eliz@gnu.org>
31696
31697 * makefile.w32-in (clean): Don't delete *~.
31698
31699 2007-07-16 Andreas Schwab <schwab@suse.de>
31700
31701 * window.c (Fdisplay_buffer): Use NILP.
31702 (Fset_window_scroll_bars): Likewise.
31703
31704 2007-07-15 Martin Rudalics <rudalics@gmx.at>
31705
31706 * window.c (window_min_size_2): New function.
31707 (window_min_size_1, size_window, Fdisplay_buffer)
31708 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31709 windows without mode- or header-lines when window-min-height is
31710 too small.
31711 (size_window): Reset nodelete_p after testing it, following an
31712 earlier note by Kim F. Storm.
31713 (display_buffer): Do not set split_height_threshold to twice the
31714 value of window_min_height to avoid changing the value of a
31715 customizable variable. Rather explicitly check whether the
31716 height of the window that shall be splitted is at least as large
31717 as split_height_threshold.
31718 (Fwindow_full_width_p): New defun.
31719 (syms_of_window): Defsubr it.
31720
31721 * window.h: Add EXFUN for Fwindow_full_width_p.
31722
31723 2007-07-14 Jason Rumney <jasonr@gnu.org>
31724
31725 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31726
31727 2007-07-14 Richard Stallman <rms@gnu.org>
31728
31729 * eval.c (maybe_call_debugger): New function.
31730 (find_handler_clause): Use maybe_call_debugger.
31731 Call it when the handler says `debug'.
31732 Eliminate DEBUGGER_VALUE_PTR.
31733 (Fsignal): Eliminate debugger_value.
31734 (Qdebug): New variable.
31735 (syms_of_eval): Initialize it.
31736
31737 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
31738
31739 * eval.c (Fprogn):
31740 * keyboard.c (Ftrack_mouse):
31741 * print.c (Fwith_output_to_temp_buffer):
31742 * window.c (Fsave_window_excursion): Doc fix.
31743
31744 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31745
31746 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31747
31748 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31749
31750 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31751 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31752 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31753 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31754 Remove unused encoding_carryover.
31755 * process.c: Adjust all functions accordingly.
31756
31757 2007-07-12 Richard Stallman <rms@gnu.org>
31758
31759 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31760
31761 2007-07-11 Jason Rumney <jasonr@gnu.org>
31762
31763 * makefile.w32-in (LIBS): Include OLE32.
31764
31765 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31766 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31767
31768 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31769
31770 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31771 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31772 from a Lisp_Object into a bare pointer.
31773 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31774 Adjust the code correspondingly.
31775
31776 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31777
31778 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31779 (term_show_mouse_face): Remove unused var `j'.
31780 (handle_one_term_event): Remove unused vars `i' and `j'.
31781 Don't cast return value of ttyname since it's not necessary.
31782
31783 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31784
31785 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31786 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31787
31788 * fns.c (map_char_table): Use an array of int for `indices' rather than
31789 an array of Lisp_Objects (which are only ever integers anyway).
31790 (Fmap_char_table): Update caller.
31791 * lisp.h: Update prototype.
31792 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31793 * fontset.c (Ffontset_info):
31794 * casetab.c (set_case_table): Update callers.
31795
31796 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31797
31798 * keymap.c (struct accessible_keymaps_data)
31799 (struct where_is_internal_data): New structures.
31800 (accessible_keymaps_1, where_is_internal_1): Use them to change
31801 interface to adhere to the one used by map_keymap.
31802 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31803 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31804
31805 * keymap.h (map_keymap_function_t): More informative prototype.
31806
31807 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31808
31809 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31810 (looking_at_1): Don't change search_regs and last_thing_searched
31811 if `inhibit-changing-match-data' is non-nil.
31812 (string_match_1, search_buffer, set_search_regs): Likewise.
31813 (syms_of_search): Add Lisp level definition for
31814 `inhibit-changing-match-data' and set it to nil.
31815 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31816 start and end of the match, instead of using values in search_regs.
31817
31818 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31819
31820 * minibuf.c (Fcompleting_read): New value `confirm-only'
31821 for `require-match'.
31822
31823 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31824
31825 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31826 part of the 2007-06-27 change to syms_of_fileio.
31827
31828 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31829
31830 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31831 Check WINDOWP before using XWINDOW. Consolidate return statements.
31832
31833 2007-06-27 Richard Stallman <rms@gnu.org>
31834
31835 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31836
31837 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
31838
31839 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31840
31841 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31842
31843 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31844 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31845 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31846 (_free_internal, memalign): Use them.
31847 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31848 Initialize to PTHREAD_MUTEX_INITIALIZER.
31849 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31850 (morecore_nolock): Rename from morecore. All uses changed.
31851 Use only nolock versions of internal allocation functions.
31852 (_malloc_internal_nolock, _realloc_internal_nolock)
31853 (_free_internal_nolock): New functions created from
31854 _malloc_internal, _realloc_internal, and _free_internal.
31855 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31856 Copy hook value to automatic variable before its use.
31857 (memalign): Copy hook value to automatic variable before its use.
31858
31859 2007-06-26 Kenichi Handa <handa@m17n.org>
31860
31861 * coding.c (Ffind_operation_coding_system): Docstring improved.
31862 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31863
31864 2007-06-25 David Kastrup <dak@gnu.org>
31865
31866 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31867 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31868 cater for additional parameter.
31869
31870 * keymap.h: Adjust number of parameters to `current-active-maps'.
31871
31872 * doc.c (Fsubstitute_command_keys): Adjust call of
31873 `current-active-maps'.
31874
31875 2007-06-25 David Kastrup <dak@gnu.org>
31876
31877 * callint.c (Fcall_interactively): Make the parsing of interactive
31878 specs somewhat more readable.
31879
31880 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31881
31882 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31883 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31884 if extended background has already been filled.
31885
31886 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31887
31888 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31889 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31890
31891 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31892 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31893 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31894 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31895 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31896 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31897 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31898 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31899 Run timers during dialog popup.
31900 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31901
31902 2007-06-21 Jason Rumney <jasonr@gnu.org>
31903
31904 * image.c (convert_mono_to_color_image): Swap fore and background.
31905
31906 2007-06-20 Jason Rumney <jasonr@gnu.org>
31907
31908 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31909 (w32_free_bdf_font): Unmap memory not handle.
31910
31911 2007-06-20 Sam Steingold <sds@gnu.org>
31912
31913 * gmalloc.c (__morecore): Fix the declaration to comply with the
31914 definition.
31915
31916 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
31917
31918 * w32term.c (w32_delete_display): Remove leftover declaration.
31919 (w32_define_cursor, w32_initialize): Make static.
31920
31921 * w32.c (_wsa_errlist): Fix typo in error message.
31922 (init_environment): Ignore any environment variable from the
31923 registry having a null value.
31924
31925 2007-06-20 Glenn Morris <rgm@gnu.org>
31926
31927 * Makefile.in (LIBGIF): Default to -lgif.
31928
31929 2007-06-17 Jason Rumney <jasonr@gnu.org>
31930
31931 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31932 unicode strings.
31933
31934 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
31935
31936 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31937 Fix typo in docstring.
31938
31939 2007-06-16 Eli Zaretskii <eliz@gnu.org>
31940
31941 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31942 and their keybindings.
31943
31944 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
31945
31946 * composite.c (update_compositions): Fix last fix.
31947
31948 2007-06-14 Jason Rumney <jasonr@gnu.org>
31949
31950 * w32.c (get_process_times_fn): New function pointer.
31951 (globals_of_w32): Intialize it if present in kernel32.dll.
31952 (w32_get_internal_run_time): New function.
31953
31954 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31955
31956 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31957
31958 * composite.c (update_compositions): Check the validness of
31959 compositions.
31960
31961 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31962
31963 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31964 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31965
31966 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31967 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31968
31969 * macgui.h (USE_MAC_TOOLBAR): New define.
31970
31971 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31972 Return immediately unless popup is activated.
31973
31974 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31975 background to scroll bar gap.
31976 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31977 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31978 scroll bars on frame edge. Check fringe background extension.
31979 Don't clear extended fringe background area.
31980 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31981 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31982 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31983 [USE_MAC_TOOLBAR]: New macros.
31984 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31985 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31986 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31987 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31988 [USE_MAC_TOOLBAR]: New functions.
31989 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31990 manually if previous repositioning has failed.
31991 (mac_handle_keyboard_event): Use precomputed event kind.
31992 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31993 as tool bar item click. Handle mouse movement over tool bar items.
31994
31995 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31996 toolbar_win_gravity.
31997 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31998 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31999 Add externs.
32000
32001 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
32002 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
32003
32004 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
32005
32006 * image.c (search_image_cache): Remove unused variable.
32007
32008 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
32009
32010 * xfns.c, xmenu.c: Link to xaw3d if available.
32011
32012 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32013
32014 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
32015 frame_foreground and frame_background.
32016
32017 * image.c (lookup_image): Save frame foreground and background colors.
32018 (search_image_cache): Check if saved and current frame colors match.
32019
32020 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
32021
32022 * regex.c (regex_compile): Remove the `regnum' counter.
32023 Use bufp->re_nsub instead. Add support for \(?N:RE\).
32024
32025 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
32026
32027 * term.c: Include intervals.h to declare Fget_text_property.
32028
32029 2007-06-10 Jason Rumney <jasonr@gnu.org>
32030
32031 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32032
32033 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
32034
32035 * callint.c (Fcall_interactively):
32036 * editfns.c (Fdelete_and_extract_region):
32037 * fileio.c (Fread_file_name):
32038 * fns.c (Fmapconcat):
32039 * keyboard.c (cmd_error_internal):
32040 * keymap.c (Fkey_description):
32041 * lread.c (openp):
32042 * minibuf.c (read_minibuf):
32043 * search.c (wordify):
32044 * sunfns.c (sel_read):
32045 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32046 * xfns.c (x_default_scroll_bar_color_parameter):
32047 * xmenu.c (menu_help_callback):
32048 * xselect.c (Fx_get_atom_name):
32049 * xterm.c (x_term_init): Use empty_unibyte_string.
32050
32051 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
32052
32053 * alloc.c (init_strings): Initialize canonical empty strings.
32054 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32055 canonical empty string when the requested size is 0.
32056
32057 * emacs.c (empty_unibyte_string): Rename from empty_string.
32058 (empty_multibyte_string): New canonical empty string.
32059 (syms_of_emacs): Don't initialize empty_string.
32060
32061 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32062 string, if appropriate.
32063 (empty_unibyte_string, empty_multibyte_string): New externs.
32064 (empty_string): Remove extern.
32065
32066 * lread.c (syms_of_lread): Use empty_unibyte_string.
32067
32068 2007-06-07 Jason Rumney <jasonr@gnu.org>
32069
32070 * s/ms-w32.h: Don't define HAVE_TZNAME.
32071
32072 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32073
32074 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32075
32076 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32077
32078 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32079 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32080
32081 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32082 Don't call next handler.
32083 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32084 Remove argument. Install handler to application.
32085 (set_frame_menubar): Don't change deep_p.
32086 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32087 FRAME_OUTER_TO_INNER_DIFF_Y.
32088 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32089 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32090 [HAVE_DIALOGS]: New macros.
32091 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32092 Use them.
32093 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32094
32095 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32096 init_service_handler. All callers changed. Return OSStatus value.
32097
32098 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32099 All callers changed so as not to call SetPortWindowPort.
32100 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32101 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32102 mac_draw_string_common.
32103 (mac_draw_image_string_qd): Likewise.
32104 (mac_draw_string_common): Use them. Add INLINE.
32105 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32106 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32107 GetGlobalMouse.
32108 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32109 and FRAME_OUTER_TO_INNER_DIFF_Y.
32110 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32111 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32112 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32113 repositioning window to mac_handle_window_event.
32114 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32115 saving window location to mac_handle_window_event
32116 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32117 (install_menu_target_item_handler): Remove argument in extern.
32118 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32119 Also accept command events.
32120 (do_keystroke): New function created from XTread_socket.
32121 (init_command_handler): Remove functions.
32122 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32123 and save window location by kEventWindowShowing and kEventWindowHiding
32124 handlers here. Don't call next handler for window state change and
32125 focus events.
32126 (mac_handle_application_event, mac_handle_keyboard_event)
32127 [TARGET_API_MAC_CARBON]: New functions.
32128 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32129 kEventWindowShowing and kEventWindowHiding events. Move installation
32130 of mouse, font, text input and menu target item handlers to
32131 install_application_handler.
32132 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32133 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32134 New function.
32135 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32136 Register it.
32137 (XTread_socket) [TARGET_API_MAC_CARBON]:
32138 Consolidate SendEventToEventTarget calls.
32139 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32140 Move application activation handler to mac_handle_application_event.
32141 Move keyboard handler to mac_handle_keyboard_event.
32142 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32143 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32144 init_command_handler. Call install_application_handler.
32145
32146 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32147 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32148
32149 2007-06-07 Glenn Morris <rgm@gnu.org>
32150
32151 * emacs.c (main): Use `emacs-copyright' in --version output.
32152
32153 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
32154
32155 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32156
32157 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32158
32159 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32160
32161 * macgui.h: Replace WindowPtr with WindowRef.
32162
32163 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32164 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32165 Replace ControlHandle with ControlRef.
32166 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32167
32168 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32169 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32170 Replace ControlHandle with ControlRef.
32171 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32172 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32173
32174 * macterm.h (struct scroll_bar): Rename member control_handle_low
32175 and control_handle_high to control_ref_low and control_ref_high.
32176 All uses changed.
32177 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32178 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32179 respectively. All uses changed.
32180 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32181 (install_window_handler, remove_window_handler): Replace WindowPtr
32182 with WindowRef in externs.
32183
32184 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
32185
32186 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32187
32188 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
32189
32190 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32191
32192 * frame.c (Fmouse_position, Fmouse_pixel_position):
32193 Condition on HAVE_GPM too.
32194
32195 * term.c (term_mouse_highlight): Remove unused variables.
32196 (Fterm_open_connection): Set gpm_zerobased to 1.
32197 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32198 Use zero based co-ordinates.
32199 (handle_one_term_event): Report a drag as mouse movement too.
32200
32201 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32202
32203 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
32204
32205 * image.c (search_image_cache): New function. Require background
32206 color match if background color is unspecified in the image spec.
32207 (uncache_image, lookup_image): Use it.
32208
32209 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
32210
32211 * window.c (Fshrink_window): Reflow docstring.
32212
32213 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
32214
32215 * Version 22.1 released.
32216
32217 2007-06-01 Richard Stallman <rms@gnu.org>
32218
32219 * xfns.c (x_encode_text): Add GCPRO.
32220
32221 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32222
32223 * xfns.c (x_set_name_internal): Save encoded name before
32224 x_encode_text in case string data is relocated.
32225
32226 2007-05-31 Richard Stallman <rms@gnu.org>
32227
32228 * buffer.c (syms_of_buffer): Doc fix.
32229
32230 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
32231
32232 * sysdep.c (init_sys_modes): Add rather than replace with
32233 O_NONBLOCK.
32234
32235 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32236 term_mouse_moveto.
32237
32238 * termhooks.h (term_mouse_moveto): New extern.
32239
32240 * term.c (mouse_face_window): Rename...
32241 (Qmouse_face_window): ...to this.
32242 (term_show_mouse_face, term_clear_mouse_face)
32243 (term_mouse_highlight): Use Qmouse_face_window.
32244 (term_mouse_moveto): New function.
32245 (term_mouse_position): Make it work.
32246 (syms_of_term): Uncomment assignment to mouse_position_hook.
32247 Staticpro Qmouse_face_window.
32248
32249 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32250
32251 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32252 around current_column call.
32253
32254 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32255
32256 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32257 * xdisp.c (next_element_from_buffer):
32258 * window.c (delete_window):
32259 * term.c (term_mouse_highlight):
32260 * msdos.c (getdefdir):
32261 * macterm.c (mac_create_bitmap_from_bitmap_data)
32262 (init_font_name_table):
32263 * fns.c (Fsxhash):
32264 * data.c (Fmake_local_variable):
32265 * ccl.c (ccl_driver): Likewise.
32266
32267 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32268
32269 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32270 Call mac_wakeup_from_rne on window size change.
32271
32272 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
32273
32274 * image.c (uncache_image): Fix typo.
32275
32276 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32277
32278 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32279
32280 2007-05-22 Richard Stallman <rms@gnu.org>
32281
32282 * xterm.c (x_connection_closed): Remove NO_RETURN.
32283
32284 2007-05-22 Martin Rudalics <rudalics@gmx.at>
32285
32286 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32287
32288 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
32289
32290 * image.c (uncache_image): New function.
32291 (Fimage_refresh): New function.
32292
32293 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32294
32295 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32296
32297 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32298
32299 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32300 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32301
32302 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32303
32304 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32305 conditional on [HAVE_GPM_H].
32306
32307 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32308
32309 * syntax.c (skip_chars): Update syntax-table only after we checked that
32310 the new location is valid.
32311
32312 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32313
32314 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32315 mac_get_window_bounds.
32316
32317 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32318
32319 * Makefile.in (LIBGPM): Allow it to be set from configure.
32320 If set then link Emacs with it.
32321
32322 * config.in: Regenerate.
32323
32324 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32325 New externs.
32326
32327 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32328 Include gpm.h.
32329 (handle_one_term_event, term_gpm): New externs.
32330
32331 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32332 and allow it to be interrupted by SIGIO.
32333
32334 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32335 (wait_reading_process_output): Wait on gpm_fd too.
32336 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32337 (add_gpm_wait_descriptor_called_flag): New variable.
32338 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32339
32340 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32341 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32342 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32343 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32344 (make_lispy_event): Add case GPM_CLICK_EVENT.
32345 (read_avail_input): Handle mouse input.
32346
32347 * term.c (write_glyphs_with_face): New function.
32348 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32349 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32350 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32351 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32352 (last_mouse_x, last_mouse_y): New variables.
32353 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32354 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32355 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32356 (Fterm_close_connection): New functions.
32357 (term_init): Initialise mouse_face_window.
32358
32359 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
32360
32361 * xdisp.c (redisplay_window): If first window line is a
32362 continuation line, recompute the new window start instead of
32363 recentering.
32364
32365 2007-05-18 Glenn Morris <rgm@gnu.org>
32366
32367 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32368 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32369
32370 2007-05-17 Glenn Morris <rgm@gnu.org>
32371
32372 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32373
32374 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32375
32376 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32377 dead key repeat and up events.
32378
32379 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
32380
32381 * image.c (pbm_load): Check image size for monochrome pbm.
32382
32383 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
32384
32385 * xterm.c (XTread_socket): Revert last change.
32386
32387 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
32388
32389 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32390
32391 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32392
32393 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32394
32395 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32396 mixup (YAILOM).
32397
32398 2007-05-07 Andreas Schwab <schwab@suse.de>
32399
32400 * keymap.c (Flookup_key): Fix typo in last change.
32401
32402 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32403
32404 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32405 mapping for unibyte strings.
32406
32407 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32408
32409 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32410 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32411
32412 2007-04-29 Richard Stallman <rms@gnu.org>
32413
32414 * insdel.c (replace_range): For undo, record insertion first.
32415
32416 2007-04-29 Andreas Schwab <schwab@suse.de>
32417
32418 * lisp.h (VECSIZE): Use OFFSETOF.
32419
32420 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32421
32422 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32423 disabled lines.
32424
32425 2007-04-28 Richard Stallman <rms@gnu.org>
32426
32427 * lread.c (read_escape): In a string, \s is always space.
32428
32429 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32430
32431 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32432
32433 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32434 submenu for menu bar items.
32435
32436 See ChangeLog.10 for earlier changes.
32437
32438 ;; Local Variables:
32439 ;; coding: utf-8
32440 ;; End:
32441
32442 Copyright (C) 2007-2011 Free Software Foundation, Inc.
32443
32444 This file is part of GNU Emacs.
32445
32446 GNU Emacs is free software: you can redistribute it and/or modify
32447 it under the terms of the GNU General Public License as published by
32448 the Free Software Foundation, either version 3 of the License, or
32449 (at your option) any later version.
32450
32451 GNU Emacs is distributed in the hope that it will be useful,
32452 but WITHOUT ANY WARRANTY; without even the implied warranty of
32453 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32454 GNU General Public License for more details.
32455
32456 You should have received a copy of the GNU General Public License
32457 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.