* gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label is null.
[bpt/emacs.git] / src / ChangeLog
1 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
4 is null.
5
6 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
7
8 * callproc.c (Fcall_process):
9 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
10 comment.
11
12 2011-02-12 Martin Rudalics <rudalics@gmx.at>
13
14 * window.c (select_window): Check inhibit_point_swap argument when
15 deciding whether to return immediately.
16
17 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
18
19 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
20 zero (Bug#7348).
21
22 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
23
24 * config.in (TERMINFO): New definition.
25
26 * s/netbsd.h: Use it to choose between terminfo and termcap
27 (Bug#7642).
28
29 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
30
31 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
32 The difference doesn't matter here, in practice, and sizeof is
33 more portable to non-GCC compilers. Also, this makes the code
34 match the already-existing comment.
35
36 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
37
38 * process.c (create_process): Reset SIGPIPE handler in the child.
39 * callproc.c (Fcall_process): Likewise. (Bug#5238)
40
41 2011-02-12 Eli Zaretskii <eliz@gnu.org>
42
43 * xdisp.c <this_line_min_pos>: New variable.
44 (move_it_in_display_line_to): Record in this_line_min_pos the
45 smallest position iterated across.
46 (display_line): Use this_line_min_pos to record the smallest
47 position in the line even if it is not displayed due to
48 hscrolling. (Bug#7939)
49
50 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
51
52 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
53 * md5.h (ATTRIBUTE_ALIGNED): New macro.
54 (struct md5_ctx): Use it.
55
56 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
57 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
58 defined.
59 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
60 FC_HINT_STYLE is supported.
61
62 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
63
64 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
65 Make sure we don't do x_catch_errors twice.
66
67 2011-02-10 Glenn Morris <rgm@gnu.org>
68
69 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
70
71 2011-02-09 Eli Zaretskii <eliz@gnu.org>
72
73 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
74 New macros.
75 (globals.h, gl-stamp): New targets.
76 (clean): Clean gl-stamp and globals.h.
77
78 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
79
80 * Makefile.in (gl-stamp): Create globals.h here.
81 (globals.h): Don't do it here.
82 (mostlyclean): Clean globals.h and gl-stamp.
83
84 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
85
86 * Makefile.in ($(otherobj)): Depend on globals.h.
87 Otherwise 'make -j10' failed on my host, because the build lacked
88 necessary dependencies, e.g., vm-limit.o depends on globals.h.
89
90 2011-02-08 Tom Tromey <tromey@redhat.com>
91
92 * Makefile.in (NS_OBJC_OBJ): New variable.
93 (base_obj): Rename from 'obj'.
94 (obj): New variable.
95 (globals.h, gl-stamp, $(obj)): New targets.
96 (GLOBAL_SOURCES): New variable.
97 * globals.h: Remove.
98 * nsselect.m (Vselection_alist): Define. Reverts part of
99 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
100 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
101 variable.
102 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
103
104 2011-02-08 Kenichi Handa <handa@m17n.org>
105
106 * font.c (Ffont_get): Do not cache :otf value.
107
108 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
109
110 conform to C89 pointer rules
111
112 * dired.c (scmp, file_name_completion):
113 Change types between char * and unsigned char *, to satisfy C89
114 rules about pointer type compatibility.
115 * casefiddle.c (casify_object, casify_region): Likewise.
116 * search.c (Freplace_match, Fregexp_quote): Likewise.
117 * alloc.c (make_string, make_specified_string, make_pure_string):
118 Likewise.
119 * data.c (Fstring_to_number): Likewise.
120 * print.c (float_to_string, PRINTFINISH, printchar, strout):
121 (print_object): Likewise.
122 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
123 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
124 (Fformat): Likewise.
125 * callint.c (Fcall_interactively): Likewise.
126 * fns.c (string_make_multibyte, string_to_multibyte):
127 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
128 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
129 Likewise.
130 * lread.c (read1, hash_string): Likewise.
131 * process.c (read_process_output, send_process, Fprocess_send_region):
132 Likewise.
133 * callproc.c (Fcall_process): Likewise.
134 * doprnt.c (doprnt): Likewise.
135 * indent.c (compute_motion): Likewise.
136 * xfont.c (xfont_decode_coding_xlfd): Likewise.
137 * ralloc.c (resize_bloc): Likewise.
138 * image.c (tiff_load): Likewise.
139 * xml.c (make_dom, parse_region): Likewise.
140 * character.c (strwidth): Make its argument const char *, not const
141 unsigned char *, since more callers prefer it that way. All callers
142 changed.
143
144 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
145
146 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
147 Emacs assumes two's complement elsewhere, but the assumption is
148 easy to remove here, and this suppresses a warning with Sun C 5.8.
149
150 conform to C89 pointer rules
151
152 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
153 (same_x_server, x_term_init):
154 Change types between char * and unsigned char *, to satisfy C89
155 rules about pointer type compatibility.
156 * doc.c (get_doc_string, Fsnarf_documentation):
157 (Fsubstitute_command_keys): Likewise.
158 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
159 * bitmaps/gray.xbm (gray_bits): Likewise.
160 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
161 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
162 Likewise.
163 * keymap.c (Ftext_char_description): Likewise.
164 * minibuf.c (Fread_buffer): Likewise.
165 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
166 (DRIVE_LETTER) [defined DOS_NT]:
167 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
168 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
169 (search_embedded_absfilename, Fsubstitute_in_file_name):
170 (barf_or_query_if_file_exists, Fmake_directory_internal):
171 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
172 (Finsert_file_contents, Fwrite_region):
173 Likewise.
174 * insdel.c (insert, insert_and_inherit, insert_before_markers):
175 (insert_before_markers_and_inherit, insert_1, insert_1_both):
176 Likewise. This changes these functions' signatures, which is
177 more convenient since most callers use char *. All remaining
178 callers changed.
179 * editfns.c (general_insert_function): Change signature to
180 match changes to insert functions' signatures.
181 * keymap.c (map_keymap_char_table_item, map_keymap_internal): Use
182 explicit cast when converting between void * and function pointer
183 types, as C89 requires this.
184
185 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
186
187 don't ignore chdir failure
188 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
189 failure and exit.
190 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
191 remaining unchecked chdir calls in this function; some DOS/NT
192 expert needs to fix them.
193 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
194 in this function; some NextStep expert needs to fix them.
195
196 2011-02-05 Glenn Morris <rgm@gnu.org>
197
198 * xfaces.c (Finternal_set_lisp_face_attribute):
199 Try to clarify some error messages. (Bug#2659)
200
201 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
202
203 * editfns.c (save_restriction_restore): Don't forget to invalidate the
204 current_column cache (bug#7946).
205
206 2011-02-05 Kenichi Handa <handa@m17n.org>
207
208 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
209
210 * xftfont.c (xftfont_open): Likewise.
211
212 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
213
214 * window.c (Fselect_window): Add missing return value.
215
216 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
217
218 xstrcasecmp: conform to C89 pointer rules
219 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
220 to const char *, since they're usually low-level C strings, and
221 this stays compatible with C89 pointer rules. All callers changed.
222
223 * charset.c: conform to C89 pointer rules
224 (define_charset_internal): Switch between char * and unsigned char *.
225
226 * xmenu.c: conform to C89 const rules
227 (xmenu_show, xdialog_show): Declare local var as char *, not
228 const char *, to stay compatible with C89 const rules.
229
230 * xdisp.c: conform to C89 pointer rules
231 (store_mode_line_noprop, display_string, reseat_to_string):
232 (c_string_pos, number_of_chars, message_dolog):
233 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
234 (display_mode_element, display_string):
235 Switch between char * and unsigned char * to stay compatible wth
236 C89 pointer rules.
237
238 * regex.c: conform to C89 pointer rules
239 (re_wctype): Add cast, as C89 does not allow assigning between
240 char * and unsigned char *.
241 (regex_compile): Likewise.
242
243 sync from gnulib to remove HAVE_STDBOOL_H
244 * config.in: Regenerate.
245
246 2011-02-04 Eli Zaretskii <eliz@gnu.org>
247
248 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
249 Replace all uses of lisp.h with $(LISP_H), and all uses of
250 process.h with $(PROCESS_H).
251 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
252 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
253
254 * deps.mk: Update for recent changes: gnutls support, gnulib
255 imports, addition of globals.h.
256
257 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
258 ../lib/ignore-value.h.
259
260 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
261
262 allow C code to suppress warnings about ignored return values
263
264 We need to go through the code and for each such warning, either
265 fix the code to pay attention to the returned value, or tell GCC
266 that we really do want to ignore the returned value. Here is one
267 example of how to do the latter.
268 * sysdep.c: Include <ignore-value.h>.
269 (sys_subshell): Suppress an undesirable warning about not checking
270 the returned value of 'write', as there's nothing useful one can
271 do with that returned value.
272
273 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
274
275 * xterm.c (x_connection_closed): Remove all calls that calls
276 XSync (Bug#7949).
277
278 2011-02-01 Eli Zaretskii <eliz@gnu.org>
279
280 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
281 TIFFClientOpen.
282
283 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
284
285 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
286 (x_session_check_input): Change args and return type so it can be used
287 as argument to add_read_fd. Make static. Remove call to select.
288 Call kbd_buffer_store_event for emacs_event.
289 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
290 (ice_conn_watch_CB): Call add_read_fd.
291
292 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
293 x_session_check_input.
294 (x_session_initialized): Remove definition.
295 (x_initialize): Remove setting of x_session_initialized.
296
297 * xterm.h (x_session_check_input): Remove declaration.
298
299 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
300
301 format-time-string now supports subsecond time stamp resolution
302 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
303 for consistency with its new argument and with gnulib nstrftime.
304 All callers changed. New argument NS.
305 (Fformat_time_string): Check that the time argument's microseconds
306 component, if any, is in range; this avoids integer overflow and
307 also nstrftime needs this. Document %N.
308
309 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
310
311 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
312 of int. All uses adjusted.
313 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
314 (svg_load_image): Remove casts.
315
316 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
317
318 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
319 function definitions for compiling with libpng-1.5.
320 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
321 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
322 (Bug#7908).
323
324 2011-01-31 Eli Zaretskii <eliz@gnu.org>
325
326 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
327
328 * makefile.w32-in (OBJ2): Remove strftime.$(O).
329 ($(BLD)/strftime.$(O)): Remove prerequisites.
330
331 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
332
333 src/emacs.c now gets version number from configure.in
334 * emacs.c (emacs_version): Set to VERSION so that it
335 is determined automatically from ../configure.in.
336
337 2011-01-31 Jim Meyering <meyering@redhat.com>
338
339 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
340 Use xmalloc rather than malloc.
341
342 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
343
344 strftime: import from gnulib
345 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
346 * deps.mk (strftime.o): Remove.
347 * editfns.c: Include <strftime.h>, supplied by gnulib.
348 (emacs_strftimeu): Remove decl.
349 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
350 emacs_strftimeu.
351 * config.in: Regenerate.
352 * strftime.c: Remove; we now use strftime from gnulib.
353
354 Use SSDATA when the context wants char *.
355 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
356 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
357 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
358 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
359 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
360 Use SSDATA (not SDATA) when the context of the expression wants
361 char * (not unsigned char *).
362
363 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
364
365 * .gdbinit: Read global lisp variables as globals.f_V*.
366
367 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
368
369 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
370 All uses changed.
371 (PROP_SAVE): Likewise.
372
373 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
374
375 * keyboard.c (make_lispy_position): Fix typo in last change
376 (Bug#7935).
377
378 2011-01-29 Eli Zaretskii <eliz@gnu.org>
379
380 * s/ms-w32.h (HAVE_MKTIME): Remove.
381
382 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
383 (GNULIB): New variable.
384 (LIBS): Add $(GNULIB).
385 $(TEMACS): Depend on $(GNULIB).
386 <top-level>: Fix font-lock disrupted by a lone `"'.
387
388 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
389
390 * nsselect.m (ns_string_from_pasteboard): Get length of string
391 and use make_string instead of build_string (Bug#7934).
392 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
393 instead of stringWithUTF8String (Bug#7934).
394
395 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
396
397 * nsfont.m (nsfont_open): Ensure that fonts with inexact
398 descenders would not become one pixel too tall (Bug#7887).
399
400 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
401
402 * keyboard.c (make_lispy_position): For clicks on right fringe or
403 margin, compute text position using the X coordinate relative to
404 the left of the text area (Bug#7839).
405
406 2011-01-28 Kenichi Handa <handa@m17n.org>
407
408 * ftfont.c (ftfont_spec_pattern): Check each extra property
409 value.
410
411 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
412
413 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
414
415 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
416
417 * font.c (font_parse_fcname): Undefine a temporary macro.
418
419 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
420
421 Let the debugger continue to the normal handler (bug#7825).
422 * eval.c (maybe_call_debugger): Declare before new use.
423 (find_handler_clause): Don't call debugger any more.
424 Ignore Vstack_trace_on_error.
425 Use XCAR/XCDR.
426 (syms_of_eval): Remove Vstack_trace_on_error.
427 (Fsignal): Only modify handlerlist when we know we need to do it.
428 Call the debugger when necessary.
429 * globals.h (Vstack_trace_on_error): Remove.
430
431 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
432
433 * font.c (font_parse_fcname): Rewrite GTK font name parser.
434
435 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
436
437 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
438 the buffer's point-max (bug#7876).
439
440 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
441
442 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
443 Remove unused case (Bug#6811).
444
445 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
446
447 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
448 setFrameTopLeftPoint is constrained.
449
450 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
451
452 Check return values of some library calls.
453 * emacs.c (main): Check dup result.
454 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
455 (frame_name_fnn_p): Check strtol result.
456
457 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
458 when calling XpmCreatePixmapFromData.
459
460 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
461 * lisp.h (SSDATA): New macro.
462 All uses of (char *) SDATA (x) replaced with SSDATA (x),
463 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
464 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
465 * xsmfns.c (SSDATA): Likewise.
466
467 2011-01-22 Martin Rudalics <rudalics@gmx.at>
468
469 * window.c (select_window): New function.
470 (Fselect_window): Call it.
471 (inhibit_point_swap): Variable deleted.
472 (Fset_window_configuration): Call select_window directly.
473
474 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
475
476 * nsterm.m (constrainFrameRect): Only constrain the first time called.
477
478 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
479
480 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
481 screen, not the window screen.
482 (x_set_window_size): Remove constraints.
483 Calculate origin.y only if zooming is 0 and without referring to a
484 screen.
485 (windowWillResize): Don't modify frameSize.
486 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
487 (initFrameFromEmacs): Initialize ns_userRect.
488 (windowShouldZoom): Set zooming to one. Remove all other code.
489 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
490 Zero it after restore.
491 (constrainFrameRect): New method for EmacsWindow.
492 (mouseDragged): Always post NSWindowDidResizeNotification after call to
493 windowWillResize.
494
495 * nsterm.h (ns_output): Add dont_constrain and zooming.
496 (EmacsView): Add ns_userRect.
497
498 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
499 if ns_alternate_modifier is none.
500
501 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
502
503 * unexmacosx.c: Add comment about include order.
504
505 2011-01-20 Glenn Morris <rgm@gnu.org>
506
507 * minibuf.c (syms_of_minibuf) <read-expression-history>:
508 Give it a doc string.
509 * globals.h: Add Vread_expression_history.
510
511 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
512 Give it a doc string.
513 * globals.h: Add Vkbd_macro_termination_hook.
514
515 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
516
517 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
518
519 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
520
521 Fix X11 compilation failure.
522 * globals.h (struct emacs_globals): Document f_Vselection_alist.
523 * xselect.c (Vselection_alist): Remove declaration, moving its
524 documentation to globals.h. This fixes a compilation failure
525 induced by the earlier change to globals.h today.
526
527 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
528
529 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
530
531 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
532 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
533 (ns_input_spi_name, ns_input_spi_arg)
534 (ns_alternate_modifier, ns_right_alternate_modifier)
535 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
536 (ns_right_control_modifier, ns_function_modifier)
537 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
538 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
539 (x_underline_at_descent_line): Remove declaration.
540 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
541
542 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
543 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
544 (syms_of_nsselect): Remove & from DEFVAR_LISP.
545
546 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
547 Remove declaration.
548
549 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
550 globals.h.
551 (syms_of_nsfont): Remove & from DEFVAR_LISP.
552
553 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
554 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
555 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
556
557 * globals.h (struct emacs_globals): Add f_ns_input_file,
558 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
559 f_ns_input_color, f_ns_input_text, f_ns_working_text,
560 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
561 f_ns_right_alternate_modifier, f_ns_command_modifier,
562 f_ns_right_command_modifier, f_ns_control_modifier,
563 f_ns_right_control_modifier, f_ns_function_modifier,
564 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
565 f_Vns_version_string, f_Vns_sent_selection_hooks,
566 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
567 and corresponding defines.
568
569
570 2011-01-19 Sam Steingold <sds@gnu.org>
571
572 * w32.c (check_windows_init_file): Remove declarations of
573 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
574 * w32fns.c: Fix an error introduced by the previous patch.
575
576 2011-01-19 Tom Tromey <tromey@redhat.com>
577
578 * window.c: Fix error introduced by previous patch.
579
580 2011-01-18 Tom Tromey <tromey@parfait>
581
582 * globals.h: New file.
583 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
584 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
585 (Vwindow_system_version): Remove declaration.
586 * w32term.h (Vw32_enable_palette)
587 (Vx_pixel_size_width_font_regexp): Remove declaration.
588 * w32menu.c (Voverriding_local_map)
589 (Voverriding_local_map_menu_flag): Remove declaration.
590 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
591 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
592 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
593 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
594 (Vw32_phantom_key_code, Vw32_recognize_altgr)
595 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
596 (w32_use_full_screen_buffer): Remove declaration.
597 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
598 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
599 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
600 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
601 (no_redraw_on_reenter, visible_bell): Remove declaration.
602 * sysdep.c (Vsystem_name): Remove declaration.
603 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
604 * menu.h (Vmenu_updating_frame): Remove declaration.
605 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
606 Remove declaration.
607 * lisp.h (Vafter_init_time, Vafter_load_alist)
608 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
609 (Vcompletion_regexp_list, Vcurrent_load_list)
610 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
611 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
612 (Vexec_directory, Vexec_path, Vexec_suffixes)
613 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
614 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
615 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
616 (Vinstallation_directory, Vinvocation_directory)
617 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
618 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
619 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
620 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
621 (Vscalable_fonts_allowed, Vselect_active_regions)
622 (Vshell_file_name, Vstandard_input, Vstandard_output)
623 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
624 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
625 (Vuser_login_name, Vwindow_scroll_functions)
626 (Vwindow_system_version, Vx_no_window_manager)
627 (Vx_resource_class, Vx_resource_name, baud_rate)
628 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
629 (history_delete_duplicates, inhibit_x_resources)
630 (last_nonmenu_event, load_in_progress, max_specpdl_size)
631 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
632 (use_dialog_box, use_file_dialog): Remove declaration. Include
633 globals.h.
634 * keymap.h (Voverriding_local_map)
635 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
636 declaration.
637 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
638 (Vinput_method_function, Vkey_translation_map)
639 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
640 (do_mouse_tracking, extra_keyboard_modifiers)
641 (num_nonmacro_input_events): Remove declaration.
642 * intervals.h (Vchar_property_alias_alist)
643 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
644 (Vtext_property_default_nonsticky): Remove declaration.
645 * gtkutil.h (x_gtk_file_dialog_help_text)
646 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
647 (x_gtk_whole_detached_tool_bar): Remove declaration.
648 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
649 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
650 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
651 (focus_follows_mouse): Remove declaration.
652 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
653 (Vignore_relative_composition, Votf_script_alist)
654 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
655 declaration.
656 * font.h (Vfont_log): Remove declaration.
657 * dosfns.h (Vdos_display_scancodes, Vdos_version)
658 (Vdos_windows_version, dos_codepage, dos_country_code)
659 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
660 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
661 declaration.
662 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
663 declaration.
664 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
665 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
666 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
667 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
668 (inverse_video, mode_line_in_non_selected_windows)
669 (tool_bar_button_relief, tool_bar_max_label_size)
670 (underline_minimum_offset)
671 (unibyte_display_via_language_environment, x_stretch_cursor_p):
672 Remove declaration.
673 * composite.h (Vauto_composition_function)
674 (Vcomposition_function_table): Remove declaration.
675 * commands.h (Vexecuting_kbd_macro)
676 (Vminibuffer_local_completion_map)
677 (Vminibuffer_local_filename_completion_map)
678 (Vminibuffer_local_filename_must_match_map)
679 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
680 (Vminibuffer_local_ns_map, Vthis_command)
681 (Vunread_command_events, cursor_in_echo_area)
682 (last_command_event, last_nonmenu_event, unread_command_char):
683 Remove declaration.
684 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
685 (Vdefault_file_name_coding_system)
686 (Vdefault_process_coding_system, Vfile_name_coding_system)
687 (Vlast_coding_system_used, Vlocale_coding_system)
688 (Vselect_safe_coding_system_function)
689 (Vtranslation_table_for_input, coding_system_require_warning)
690 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
691 (eol_mnemonic_unix, inherit_process_coding_system): Remove
692 declaration.
693 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
694 declaration.
695 * character.h (Vauto_fill_chars, Vchar_direction_table)
696 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
697 (Vscript_representative_chars, Vtranslation_table_vector)
698 (Vunicode_category_table): Remove declaration.
699 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
700 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
701 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
702 (inhibit_modification_hooks): Remove declaration.
703 * xterm.c (syms_of_xterm): Update.
704 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
705 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
706 (x_mouse_click_focus_ignore_position)
707 (x_underline_at_descent_line)
708 (x_use_underline_position_properties): Remove.
709 * xsmfns.c (syms_of_xsmfns): Update.
710 (Vx_session_id, Vx_session_previous_id): Remove.
711 * xsettings.c (syms_of_xsettings): Update.
712 (Vxft_settings, use_system_font): Remove.
713 * xselect.c (syms_of_xselect): Update.
714 (Vselection_converter_alist, Vx_lost_selection_functions)
715 (Vx_sent_selection_functions, x_selection_timeout): Remove.
716 * xfns.c (syms_of_xfns): Update.
717 (Vgtk_version_string, Vmotif_version_string)
718 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
719 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
720 (Vx_no_window_manager, Vx_nontext_pointer_shape)
721 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
722 (Vx_sensitive_text_pointer_shape)
723 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
724 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
725 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
726 Remove.
727 * xfaces.c (syms_of_xfaces): Update.
728 (Vface_default_stipple, Vface_font_rescale_alist)
729 (Vface_ignored_fonts, Vface_new_frame_defaults)
730 (Vface_remapping_alist, Vfont_list_limit)
731 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
732 * xdisp.c (syms_of_xdisp): Update.
733 (Vauto_resize_tool_bars, Vblink_cursor_alist)
734 (Vdisplay_pixels_per_inch, Vfontification_functions)
735 (Vframe_title_format, Vglobal_mode_string)
736 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
737 (Vicon_title_format, Vinhibit_redisplay)
738 (Vline_number_display_limit, Vline_prefix)
739 (Vmax_mini_window_height, Vmenu_bar_update_hook)
740 (Vmenu_updating_frame, Vmessage_log_max)
741 (Vmouse_autoselect_window, Vnobreak_char_display)
742 (Voverlay_arrow_position, Voverlay_arrow_string)
743 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
744 (Vresize_mini_windows, Vshow_trailing_whitespace)
745 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
746 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
747 (Vwindow_scroll_functions, Vwindow_size_change_functions)
748 (Vwindow_text_change_functions, Vwrap_prefix)
749 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
750 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
751 (highlight_nonselected_windows, hscroll_margin)
752 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
753 (inhibit_menubar_update, inhibit_try_cursor_movement)
754 (inhibit_try_window_id, inhibit_try_window_reusing)
755 (line_number_display_limit_width)
756 (make_cursor_line_fully_visible_p, message_truncate_lines)
757 (mode_line_inverse_video, multiple_frames, overline_margin)
758 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
759 (tool_bar_max_label_size, underline_minimum_offset)
760 (unibyte_display_via_language_environment, x_stretch_cursor_p):
761 Remove.
762 * window.c (syms_of_window): Update.
763 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
764 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
765 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
766 (Vwindow_point_insertion_type, auto_window_vscroll_p)
767 (mode_line_in_non_selected_windows, next_screen_context_lines)
768 (window_min_height, window_min_width): Remove.
769 (scroll_margin): Remove declaration.
770 * w32term.c (syms_of_w32term): Update.
771 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
772 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
773 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
774 (w32_use_visible_system_caret, x_underline_at_descent_line)
775 (x_use_underline_position_properties): Remove.
776 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
777 Remove declaration.
778 * w32select.c (syms_of_w32select): Update.
779 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
780 * w32proc.c (syms_of_ntproc): Update.
781 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
782 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
783 (Vw32_start_process_inherit_error_mode)
784 (Vw32_start_process_share_console)
785 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
786 (Vsystem_name): Remove declaration.
787 * w32font.c (syms_of_w32font): Update.
788 (Vw32_charset_info_alist): Remove.
789 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
790 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
791 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
792 (Vw32_enable_palette, Vw32_lwindow_modifier)
793 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
794 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
795 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
796 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
797 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
798 (Vx_no_window_manager, Vx_nontext_pointer_shape)
799 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
800 (Vx_sensitive_text_pointer_shape)
801 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
802 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
803 (w32_mouse_move_interval)
804 (w32_pass_extra_mouse_buttons_to_system)
805 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
806 (w32_strict_fontnames, w32_strict_painting): Remove.
807 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
808 (Vw32_recognize_altgr, Vwindow_system_version)
809 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
810 declaration.
811 * w32console.c (syms_of_ntterm): Update.
812 (w32_use_full_screen_buffer): Remove.
813 (Vtty_defined_color_alist): Remove declaration.
814 * w16select.c (syms_of_win16select): Update.
815 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
816 * undo.c (syms_of_undo): Update.
817 (Vundo_outer_limit, Vundo_outer_limit_function)
818 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
819 Remove.
820 * textprop.c (syms_of_textprop): Update.
821 (Vchar_property_alias_alist, Vdefault_text_properties)
822 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
823 Remove.
824 * terminal.c (syms_of_terminal): Update.
825 (Vdelete_terminal_functions, Vring_bell_function): Remove.
826 * term.c (syms_of_term): Update.
827 (Vresume_tty_functions, Vsuspend_tty_functions)
828 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
829 Remove.
830 * syntax.c (syms_of_syntax): Update.
831 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
832 (open_paren_in_column_0_is_defun_start)
833 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
834 (words_include_escapes): Remove.
835 * search.c (syms_of_search): Update.
836 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
837 * process.c (syms_of_process): Update.
838 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
839 (delete_exited_processes): Remove.
840 * print.c (syms_of_print): Update.
841 (Vfloat_output_format, Vprint_charset_text_property)
842 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
843 (Vprint_length, Vprint_level, Vprint_number_table)
844 (Vstandard_output, print_escape_multibyte)
845 (print_escape_newlines, print_escape_nonascii, print_quoted):
846 Remove.
847 * msdos.c (syms_of_msdos): Update.
848 (Vdos_unsupported_char_glyph): Remove.
849 (unibyte_display_via_language_environment): Remove declaration.
850 * minibuf.c (syms_of_minibuf): Update.
851 (Vcompletion_regexp_list, Vhistory_add_new_input)
852 (Vhistory_length, Vminibuffer_completing_file_name)
853 (Vminibuffer_completion_confirm)
854 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
855 (Vminibuffer_exit_hook, Vminibuffer_help_form)
856 (Vminibuffer_history_position, Vminibuffer_history_variable)
857 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
858 (Vread_buffer_function, Vread_expression_map)
859 (completion_ignore_case, enable_recursive_minibuffers)
860 (history_delete_duplicates, minibuffer_allow_text_properties)
861 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
862 Remove.
863 * marker.c (syms_of_marker): Update.
864 (byte_debug_flag): Remove.
865 * macros.c (syms_of_macros): Update.
866 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
867 * lread.c (syms_of_lread): Update.
868 (Vafter_load_alist, Vbyte_boolean_vars)
869 (Vbytecomp_version_regexp, Vcurrent_load_list)
870 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
871 (Vload_history, Vload_path, Vload_read_function)
872 (Vload_source_file_function, Vload_suffixes, Vobarray)
873 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
874 (Vread_symbol_positions_list, Vread_with_symbol_positions)
875 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
876 (force_load_messages, load_convert_to_unibyte)
877 (load_dangerous_libraries, load_force_doc_strings)
878 (load_in_progress): Remove.
879 * keymap.c (syms_of_keymap): Update.
880 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
881 (Vminibuffer_local_completion_map)
882 (Vminibuffer_local_filename_completion_map)
883 (Vminibuffer_local_filename_must_match_map)
884 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
885 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
886 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
887 Remove.
888 * keyboard.c (syms_of_keyboard): Update.
889 (Vauto_save_timeout, Vcommand_error_function)
890 (Vcommand_hook_internal, Vdeactivate_mark)
891 (Vdeferred_action_function, Vdeferred_action_list)
892 (Vdisable_point_adjustment, Vdouble_click_time)
893 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
894 (Vfunction_key_map, Vglobal_disable_point_adjustment)
895 (Vhelp_char, Vhelp_event_list, Vhelp_form)
896 (Vinput_method_function, Vinput_method_previous_message)
897 (Vkey_translation_map, Vlast_event_frame)
898 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
899 (Vminibuffer_message_timeout, Voverriding_local_map)
900 (Voverriding_local_map_menu_flag, Vpost_command_hook)
901 (Vpre_command_hook, Vprefix_help_command)
902 (Vsaved_region_selection, Vselect_active_regions)
903 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
904 (Vthis_command, Vthis_command_keys_shift_translated)
905 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
906 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
907 (Vtty_erase_char, Vunread_command_events)
908 (Vunread_input_method_events, Vunread_post_input_method_events)
909 (auto_save_interval, cannot_suspend, do_mouse_tracking)
910 (double_click_fuzz, extra_keyboard_modifiers)
911 (inhibit_local_menu_bar_menus, last_command_event)
912 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
913 (menu_prompting, meta_prefix_char, num_input_keys)
914 (num_nonmacro_input_events, polling_period, unread_command_char):
915 Remove.
916 * insdel.c (syms_of_insdel): Update.
917 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
918 * indent.c (syms_of_indent): Update.
919 (indent_tabs_mode): Remove.
920 * image.c (syms_of_image): Update.
921 (Vimage_cache_eviction_delay, Vimage_types)
922 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
923 (cross_disabled_images): Remove.
924 * fringe.c (syms_of_fringe): Update.
925 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
926 * frame.c (syms_of_frame): Update.
927 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
928 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
929 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
930 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
931 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
932 Remove.
933 * fontset.c (syms_of_fontset): Update.
934 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
935 (Vfontset_alias_alist, Vignore_relative_composition)
936 (Votf_script_alist, Vuse_default_ascent)
937 (Vvertical_centering_font_regexp): Remove.
938 * font.c (syms_of_font): Update.
939 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
940 (Vfont_weight_table, Vfont_width_table): Remove.
941 * fns.c (syms_of_fns): Update.
942 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
943 * filelock.c (syms_of_filelock): Update.
944 (Vtemporary_file_directory): Remove.
945 * fileio.c (syms_of_fileio): Update.
946 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
947 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
948 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
949 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
950 (Vinhibit_file_name_operation, Vset_auto_coding_function)
951 (Vwrite_region_annotate_functions)
952 (Vwrite_region_annotations_so_far)
953 (Vwrite_region_post_annotation_function)
954 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
955 (Vw32_get_true_file_attributes): Remove declaration.
956 * eval.c (syms_of_eval): Update.
957 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
958 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
959 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
960 (debug_on_next_call, debug_on_quit, debugger_may_continue)
961 (max_lisp_eval_depth, max_specpdl_size): Remove.
962 * emacs.c (syms_of_emacs): Update.
963 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
964 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
965 (Vinstallation_directory, Vinvocation_directory)
966 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
967 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
968 (Vsystem_configuration, Vsystem_configuration_options)
969 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
970 (inhibit_x_resources, noninteractive1): Remove.
971 * editfns.c (syms_of_editfns): Update.
972 (Vbuffer_access_fontified_property)
973 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
974 (Voperating_system_release, Vsystem_name, Vuser_full_name)
975 (Vuser_login_name, Vuser_real_login_name): Remove.
976 * dosfns.c (syms_of_dosfns): Update.
977 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
978 (dos_codepage, dos_country_code, dos_decimal_point)
979 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
980 (dos_super_key, dos_timezone_offset): Remove.
981 * doc.c (syms_of_doc): Update.
982 (Vbuild_files, Vdoc_file_name): Remove.
983 * dispnew.c (syms_of_display): Update.
984 (Vglyph_table, Vinitial_window_system)
985 (Vredisplay_preemption_period, Vstandard_display_table)
986 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
987 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
988 * dired.c (syms_of_dired): Update.
989 (Vcompletion_ignored_extensions): Remove.
990 (Vw32_get_true_file_attributes): Remove declaration.
991 * dbusbind.c (syms_of_dbusbind): Update.
992 (Vdbus_debug, Vdbus_registered_buses)
993 (Vdbus_registered_objects_table): Remove.
994 * data.c (syms_of_data): Update.
995 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
996 * composite.c (syms_of_composite): Update.
997 (Vauto_composition_function, Vauto_composition_mode)
998 (Vcompose_chars_after_function, Vcomposition_function_table):
999 Remove.
1000 * coding.c (syms_of_coding): Update.
1001 (Vcharset_revision_table, Vcoding_category_list)
1002 (Vcoding_system_alist, Vcoding_system_for_read)
1003 (Vcoding_system_for_write, Vcoding_system_list)
1004 (Vdefault_process_coding_system, Venable_character_translation)
1005 (Vfile_coding_system_alist, Vlast_code_conversion_error)
1006 (Vlast_coding_system_used, Vlatin_extra_code_table)
1007 (Vlocale_coding_system, Vnetwork_coding_system_alist)
1008 (Vprocess_coding_system_alist)
1009 (Vselect_safe_coding_system_function)
1010 (Vstandard_translation_table_for_decode)
1011 (Vstandard_translation_table_for_encode)
1012 (Vtranslation_table_for_input, coding_system_require_warning)
1013 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1014 (eol_mnemonic_unix, inherit_process_coding_system)
1015 (inhibit_eol_conversion, inhibit_iso_escape_detection)
1016 (inhibit_null_byte_detection): Remove.
1017 * cmds.c (syms_of_cmds): Update.
1018 (Vpost_self_insert_hook): Remove.
1019 * charset.c (syms_of_charset): Update.
1020 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
1021 (inhibit_load_charset_map): Remove.
1022 * character.c (syms_of_character): Update.
1023 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
1024 (Vchar_width_table, Vprintable_chars)
1025 (Vscript_representative_chars, Vtranslation_table_vector)
1026 (Vunicode_category_table): Remove.
1027 * ccl.c (syms_of_ccl): Update.
1028 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
1029 (Vtranslation_hash_table_vector): Remove.
1030 * category.c (syms_of_category): Update.
1031 (Vword_combining_categories, Vword_separating_categories): Remove.
1032 * callproc.c (syms_of_callproc): Update.
1033 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
1034 (Vexec_directory, Vexec_path, Vexec_suffixes)
1035 (Vinitial_environment, Vprocess_environment)
1036 (Vshared_game_score_directory, Vshell_file_name): Remove.
1037 * callint.c (syms_of_callint): Update.
1038 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
1039 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
1040 * bytecode.c (syms_of_bytecode): Update.
1041 (Vbyte_code_meter, byte_metering_on): Remove.
1042 * buffer.c (syms_of_buffer): Update.
1043 (Vafter_change_functions, Vbefore_change_functions)
1044 (Vchange_major_mode_hook, Vfirst_change_hook)
1045 (Vinhibit_read_only, Vkill_buffer_query_functions)
1046 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
1047 * alloc.c (syms_of_alloc): Update.
1048 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
1049 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
1050 (cons_cells_consed, floats_consed, garbage_collection_messages)
1051 (gc_cons_threshold, gcs_done, intervals_consed)
1052 (misc_objects_consed, pure_bytes_used, string_chars_consed)
1053 (strings_consed, symbols_consed, vector_cells_consed): Remove.
1054
1055 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1056 (DEFVAR_INT): Assume global is in `globals'.
1057 * alloc.c (globals): Define.
1058
1059 2011-01-18 Tom Tromey <tromey@redhat.com>
1060
1061 * image.c (Vimagemagick_render_type): Remove redundant
1062 definition.
1063
1064 2011-01-18 Tom Tromey <tromey@redhat.com>
1065
1066 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
1067 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
1068 (redisplay_window): Update.
1069 (syms_of_xdisp): Update.
1070
1071 2011-01-18 Tom Tromey <tromey@redhat.com>
1072
1073 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
1074 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
1075 Declare.
1076 * gtkutil.c (xg_uses_old_file_dialog):
1077 (xg_get_file_with_chooser):
1078 (xg_tool_bar_detach_callback): Don't redeclare globals.
1079
1080 2011-01-18 Tom Tromey <tromey@redhat.com>
1081
1082 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
1083 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
1084
1085 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
1086
1087 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
1088 defined __GNUC__. ../configure now checks for this GCC feature,
1089 which is now also supported by IBM and Oracle compilers.
1090 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1091 since Solaris malloc returns mult-of-8.
1092
1093 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
1094
1095 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1096
1097 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
1098
1099 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1100 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1101 * data.c (Fnumber_to_string): Use it.
1102 * print.c (float_to_string, print_object): Likewise.
1103
1104 Include <unistd.h> unilaterally.
1105 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1106 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1107 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1108 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1109 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1110 * xterm.c:
1111 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1112 unistd.h is always present now, possibly supplied by gnulib.
1113
1114 * mktime.c: Remove; moving to ../lib.
1115
1116 Use gnulib's mktime module.
1117 * deps.mk (mktime.o): Remove rule.
1118
1119 Use gnulib's ftoastr module.
1120 * print.c: Include ftoastr.h.
1121 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1122 Remove; no longer needed.
1123 (float_to_string): Use dtoastr rather than rolling our own code,
1124 which had an off-by-one bug on non-IEEE hosts.
1125
1126 Automate syncing from gnulib.
1127 * Makefile.in (lib): New macro.
1128 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1129 ($(lib)/libgnu.a): New rule.
1130 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1131
1132 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1133 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1134 so change the type of 'ign' to unsigned int from int.
1135
1136 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1137
1138 * xterm.h (struct x_display_info): Remove stray semicolon.
1139 The extra semicolon didn't conform to the C standard.
1140 Problem reported by Sun cc.
1141
1142 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1143 These changes make compilation easier to follow with Sun cc.
1144 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1145 EMACS_INT values without provoking overflow diagnostics.
1146 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1147 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1148 diagnostic with signed left shift.
1149
1150 * fileio.c (make_temp_name): Remove unreachable code.
1151
1152 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1153 Previously it was marked by preceding it with "return;", but
1154 Sun cc complains about this.
1155
1156 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1157 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1158 which fixed Bug#2370. Caught by Sun cc.
1159
1160 2011-01-15 Martin Rudalics <rudalics@gmx.at>
1161
1162 * window.c (inhibit_point_swap): New variable.
1163 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1164 point this time.
1165 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1166 of setting selected_window to nil (Bug#7728).
1167
1168 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1169
1170 * image.c (imagemagick_load_image, Finit_image_library):
1171 Free intermediate image after creating a MagickWand from it.
1172 Terminate MagickWand environment after image loading.
1173
1174 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
1175
1176 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1177 unexpected return values.
1178 (Fdbus_register_method): Remove connection initialization.
1179
1180 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
1181
1182 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1183 used by Fdbus_register_service.
1184 (QCdbus_request_name_replace_existing): Likewise.
1185 (QCdbus_request_name_do_not_queue): Likewise.
1186 (QCdbus_request_name_reply_primary_owner): Likewise.
1187 (QCdbus_request_name_reply_in_queue): Likewise.
1188 (QCdbus_request_name_reply_exists): Likewise.
1189 (QCdbus_request_name_reply_already_owner): Likewise.
1190 (Fdbus_register_service): New function.
1191 (Fdbus_register_method): Use Fdbus_register_service to do the name
1192 registration.
1193 (syms_of_dbusbind): Add symbols dbus-register-service,
1194 :allow-replacement, :replace-existing, :do-not-queue,
1195 :primary-owner, :existing, :in-queue and :already-owner.
1196
1197 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
1198
1199 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1200 when removing extra buttons.
1201
1202 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
1203
1204 * fns.c (Fyes_or_no_p): Doc fix.
1205
1206 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1207
1208 * fns.c (Fyes_or_no_p): Add usage.
1209
1210 2011-01-08 Glenn Morris <rgm@gnu.org>
1211
1212 * makefile.w32-in ($(EMACS)):
1213 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1214
1215 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1216 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1217
1218 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1219
1220 * image.c (imagemagick_load_image): Fix some resource leaks and
1221 error handling.
1222
1223 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
1224
1225 * fns.c (Fyes_or_no_p): Accept format string args.
1226
1227 2011-01-07 Glenn Morris <rgm@gnu.org>
1228
1229 * emacs.c (no_site_lisp): New int.
1230 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1231 (main): Set no_site_lisp.
1232 (standard_args): Add --no-site-lisp.
1233 * lisp.h (no_site_lisp): New int.
1234 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1235 directories to Vload_path.
1236
1237 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1238
1239 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1240
1241 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1242
1243 * dbusbind.c (Fdbus_register_method): Add optional parameter
1244 dont_register_service. Updated docstring accordingly.
1245
1246 2011-01-04 Glenn Morris <rgm@gnu.org>
1247
1248 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1249
1250 2011-01-03 Eli Zaretskii <eliz@gnu.org>
1251
1252 * image.c (png_jmpbuf): Remove definition.
1253 (my_png_error, png_load): Don't use png_jmpbuf.
1254
1255 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1256
1257 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1258
1259 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1260
1261 * image.c <Qlibpng_version>: New variable.
1262 (syms_of_image): Intern and staticpro it. Set its value to the
1263 version of PNG library we were compiled with.
1264 (my_png_error, png_load): Avoid GCC warnings about direct access
1265 to png_ptr->jmpbuf. (Bug#7716)
1266 (png_jmpbuf): New macro.
1267 (my_png_error, png_load): Use it instead of #ifdef'ing according
1268 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
1269
1270 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1271
1272 * .gdbinit (xgetptr): Fix the union+lsb case.
1273 (xbacktrace): Fix the union case.
1274
1275 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1276
1277 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1278 different from selected-window's.
1279
1280 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1281
1282 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1283 equivalent of a menu item when the key sequence is given by the
1284 `:keys' attribute. (Bug#7662)
1285
1286 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1287 the basic faces are supported.
1288
1289 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
1290
1291 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1292
1293 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1294
1295 * xdisp.c (Fformat_mode_line): Fix last change.
1296
1297 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
1298
1299 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1300 faces (Bug#7587).
1301
1302 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1303
1304 * fileio.c (Fexpand_file_name): One more doc fix.
1305
1306 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
1307
1308 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1309 image or label in the container.
1310 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1311 (xg_show_toolbar_item): Function deleted.
1312 (xg_tool_item_stale_p): New function.
1313 (update_frame_tool_bar): Calculate tool-bar style once per call.
1314 Instead of hiding text labels, omit them. Don't use
1315 xg_show_toolbar_item; create new GtkToolItems from scratch if
1316 necessary, instead of trying to re-use them. This avoids an
1317 annoying animation when changing tool-bars.
1318
1319 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1320
1321 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1322 title and buffer filename only for RepresentedFilename.
1323 Handle bad UTF-8 in buffer name (Bug#7517).
1324
1325 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1326
1327 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1328
1329 * nsfns.m (ns_set_name_iconic): Remove.
1330 (ns_set_name_internal): New function (Bug#7517).
1331 (Vicon_title_format): Extern declare.
1332 (ns_set_name): Call ns_set_name_internal.
1333 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1334 (x_implicitly_set_name): Ditto.
1335 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1336 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1337
1338 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1339
1340 * window.c (syms_of_window): Add missing defsubr for
1341 window-use-time.
1342
1343 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1344
1345 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1346 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1347
1348 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1349
1350 * buffer.c: Remove unused declarations.
1351 * buffer.h: Likewise.
1352 * charset.h: Likewise.
1353 * composite.h: Likewise.
1354 * dispextern.h: Likewise.
1355 * dispnew.c: Likewise.
1356 * font.h: Likewise.
1357 * fontset.c: Likewise.
1358 * fontset.h: Likewise.
1359 * intervals.h: Likewise.
1360 * keymap.h: Likewise.
1361 * lisp.h: Likewise.
1362 * syntax.c: Likewise.
1363 * syntax.h: Likewise.
1364 * termhooks.h: Likewise.
1365 * window.h: Likewise.
1366 * xsettings.h: Likewise.
1367 * xterm.c: Likewise.
1368 * xterm.h: Likewise.
1369
1370 * chartab.c (sub_char_table_ref): Make static.
1371 * dispnew.c (line_hash_code, required_matrix_height)
1372 (required_matrix_width): Likewise.
1373 * eval.c (interactive_p, apply_lambda): Likewise.
1374 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1375 Likewise.
1376 * font.c (QCadstyle, QCregistry, font_make_spec)
1377 (font_parse_fcname, font_encode_char, font_at): Likewise.
1378 * frame.c (x_frame_get_arg): Likewise.
1379 * keymap.c (get_keyelt): Likewise.
1380 * lread.c (read_filtered_event): Likewise.
1381 * print.c (write_string_1): Likewise.
1382 * window.c (delete_window, window_height, window_width)
1383 (foreach_window): Likewise.
1384 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1385 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1386 (xembed_send_message): Likewise.
1387
1388 * eval.c (run_hook_list_with_args): Delete.
1389 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1390 * terminal.c (get_terminal_param): Likewise.
1391 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1392
1393 * scroll.c: Fix comment.
1394
1395 * dispnew.c (add_window_display_history)
1396 (add_frame_display_history, glyph_row_slice_p)
1397 (find_glyph_row_slice, flush_stdout)
1398 (check_matrix_pointer_lossage, matrix_row)
1399 (check_matrix_invariants, check_window_matrix_pointers)
1400 (check_matrix_pointers, window_to_frame_vpos)
1401 (window_to_frame_hpos): Prototize.
1402 * textprop.c (erase_properties): Likewise.
1403
1404 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1405
1406 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1407 (print_preprocess): Fix handling of uninterned symbols in last change.
1408
1409 * print.c (print, print_preprocess, print_object): Use a hash table
1410 rather than a linear table for Vprint_number_table.
1411
1412 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1413
1414 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1415
1416 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1417
1418 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1419 (parse_tool_bar_item): Use it to obtain image separators for
1420 displays not using native tool-bar separators.
1421
1422 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1423 specially, since this is now done in parse_tool_bar_item.
1424
1425 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1426
1427 Minor clean up to silence some gcc warnings.
1428 * window.c (Fset_window_buffer):
1429 * xterm.c (x_set_frame_alpha): Restructure code to silence
1430 compiler warning.
1431 (handle_one_xevent): Remove unused var `p'.
1432 (do_ewmh_fullscreen): Remove unused var `lval'.
1433 (xembed_set_info): Remove unused var `atom'.
1434 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1435 compiler warning.
1436 * fontset.c (fontset_id_valid_p, dump_fontset):
1437 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1438 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1439 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1440 label only when it's used.
1441 * image.c (x_create_bitmap_from_xpm_data):
1442 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1443 its callers.
1444 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1445 `consumed_chars'.
1446 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1447 (decode_coding_emacs_mule): Remove unused label `retry'.
1448 (detect_eol): Add parens to silence compiler warning.
1449 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1450 it's used to silence the compiler.
1451 (make_number): Modernize k&r declaration.
1452 (mark_char_table): Add parens to silence compiler warning.
1453
1454 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
1455
1456 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1457 tool-bar maps.
1458 (menu_separator_name_p): New function, from gtkutil.c.
1459 (separator_names): Move from gtkutil.c.
1460
1461 * keyboard.h (menu_separator_name_p): Add prototype.
1462
1463 * gtkutil.c (XG_BIN_CHILD): New macro.
1464 (xg_get_menu_item_label, xg_update_menubar)
1465 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1466 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1467 (separator_names, xg_separator_p): Move to keyboard.c.
1468 (create_menus, xg_update_submenu, update_frame_tool_bar):
1469 Use menu_separator_name_p.
1470
1471 * nsmenu.m (name_is_separator): Function deleted.
1472 (addItemWithWidgetValue): Use menu_separator_name_p.
1473
1474 * w32menu.c (name_is_separator): Function deleted.
1475 (add_menu_item): Use menu_separator_name_p.
1476
1477 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1478
1479 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1480 same as the background, use the face forground as cursor.
1481
1482 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1483
1484 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1485
1486 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1487
1488 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1489 (face_before_or_after_it_pos, next_element_from_string)
1490 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1491 calculations of maximum string length before calling
1492 string_char_and_length and STRING_CHAR_AND_LENGTH.
1493 (string_char_and_length): Update commentary: MAXLEN is no longer
1494 needed.
1495
1496 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1497
1498 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1499 as (Qsave_session arg).
1500
1501 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1502 (smc_die_CB): Make an event with arg Qt.
1503 (Fhandle_save_session): If event has Qt as argument,
1504 call Fkill_emacs (Bug#7552).
1505
1506 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1507
1508 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1509
1510 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1511
1512 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1513
1514 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1515
1516 * dispextern.h (struct it): New member overlay_strings_charpos.
1517
1518 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1519 charpos where we computed n_overlay_strings.
1520 (next_overlay_string): Load overlay strings at recorded position,
1521 which may not be the same as the iterator's charpos (Bug#7016).
1522
1523 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1524
1525 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1526 obscured due to a vscroll (Bug#7537).
1527
1528 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
1529
1530 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1531
1532 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1533 Use FRAME_TOOLBAR_HEIGHT.
1534 (x_set_offset): Handle XNegative and YNegative in
1535 f->size_hint_flags (Bug#7510).
1536
1537 2010-12-11 Eli Zaretskii <eliz@gnu.org>
1538
1539 * w32fns.c (Fx_show_tip): Call try_window with last argument
1540 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1541 solved. Round up the tip height to an integral multiple of the
1542 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1543 (Bug#7398)
1544
1545 2010-12-08 Glenn Morris <rgm@gnu.org>
1546
1547 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1548
1549 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1550
1551 * xml.c (parse_region): Ignore blank HTML nodes.
1552 (make_dom): Return CDATA sections (like <style>foo</style>) as
1553 text nodes.
1554
1555 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1556
1557 * lread.c (read1): Allow newstyle unquote outside of backquote.
1558 Disallow old-style backquotes inside new-style backquotes.
1559 Don't count unquotes to figure out when we're "syntactically inside
1560 but semantically outside of a backquote" any more.
1561 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1562 to all contexts.
1563
1564 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
1565
1566 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1567
1568 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1569
1570 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1571 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1572 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1573
1574 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1575
1576 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1577 bit-field.
1578 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1579 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1580 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1581 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1582 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1583 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1584 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1585 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1586 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1587 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1588 * m/hp800.h: Remove file.
1589 * m/mips.h: Remove file.
1590
1591 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1592
1593 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1594 with cursor color and draw a rectangle around the image (Bug#7412).
1595
1596 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1597
1598 * frame.c (x_set_font): Remove unused variable.
1599
1600 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1601
1602 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1603
1604 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1605 drawing text under filled box cursor (Bug#7479).
1606
1607 2010-11-27 Kenichi Handa <handa@m17n.org>
1608
1609 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1610 i.e. integer.
1611 (Fdefine_charset_internal): Adjust for the above change.
1612 (init_charset_once): Likewise.
1613
1614 * charset.h (emacs_mule_charset): Adjust the prototype.
1615 Delete duplicated extern.
1616
1617 * coding.c (emacs_mule_char): Adjust for the change of
1618 emacs_mule_charset.
1619
1620 * lread.c (read_emacs_mule_char): Adjust for the change of
1621 emacs_mule_charset.
1622
1623 2010-11-27 Eli Zaretskii <eliz@gnu.org>
1624
1625 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1626 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1627
1628 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1629
1630 * alloc.c (mark_terminals): Ensure that the image cache is marked
1631 even if the terminal object was marked earlier (Bug#6301).
1632
1633 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
1634
1635 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1636
1637 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
1638
1639 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1640 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1641 Use 23 as menubar height if 0. (Bug#7425).
1642
1643 2010-11-26 Eli Zaretskii <eliz@gnu.org>
1644
1645 * xdisp.c (set_message_1): Force paragraph direction in echo area
1646 be left-to-right.
1647
1648 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1649 when the click is on the header or mode line.
1650
1651 2010-11-25 Eli Zaretskii <eliz@gnu.org>
1652
1653 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1654 `cursor' property of the first character in overlay strings.
1655 (Bug#7474) (Bug#7481)
1656
1657 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1658
1659 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1660 (NSLeftAlternateKeyMask): New defines.
1661 (keyDown): Parse left and right keys separately (Bug#7458).
1662 Compare Left key masks exactly (Bug#7458).
1663
1664 2010-11-23 Eli Zaretskii <eliz@gnu.org>
1665
1666 * intervals.c (temp_set_point_both): Define before calling, to
1667 avoid GCC warnings.
1668
1669 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1670
1671 * nsmenu.m: Use #include <config.h> instead of "config.h".
1672
1673 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1674 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1675 Move declarations ...
1676 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1677 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1678 ... here.
1679
1680 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1681 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1682 (gdb_pvec_type):
1683 * print.c (print_output_debug_flag):
1684 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1685 (safe_debug_print): New declaration.
1686
1687 * xterm.c:
1688 * systty.h:
1689 * sound.c: Include <sys/ioctl.h> unconditionally.
1690
1691 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1692
1693 * alloc.c (mark_maybe_object): Return early if given a Lisp
1694 integer (Bug#6301).
1695
1696 2010-11-21 Ken Brown <kbrown@cornell.edu>
1697
1698 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1699
1700 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1701
1702 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1703 Define (Bug#7458).
1704 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1705 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1706 NSRightControlKeyMask also (Bug#7458).
1707 (keyDown): Ditto (Bug#7458).
1708 (syms_of_nsterm): Defvar ns-right-command-modifier and
1709 ns-right-control-modifier (Bug#7458).
1710
1711 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1712
1713 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1714 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1715
1716 * intervals.h (temp_set_point, temp_set_point_both):
1717 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1718
1719 2010-11-20 Ken Brown <kbrown@cornell.edu>
1720
1721 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1722
1723 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1724
1725 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1726 \xNNNNNN for hex-code display of glyphless characters.
1727
1728 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1729
1730 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1731 Set important to ! vert_only.
1732 (xg_show_toolbar_item): Don't show label horizontally if
1733 tool item isn't important.
1734 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1735 xg_make_tool_item, or update important on existing tool item.
1736
1737 * keyboard.c (QCvert_only): New variable.
1738 (parse_tool_bar_item): Check for QCvert_only.
1739 (syms_of_keyboard): Initialize QCvert_only.
1740
1741 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1742
1743 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1744
1745 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1746 same in-line.
1747
1748 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1749
1750 * xfaces.c (lookup_face): Make static.
1751 * dispnew.c (copy_row_except_pointers): Likewise.
1752 * syntax.c (dec_bytepos): Likewise.
1753 (inc_bytepos): Remove.
1754 * dispextern.h (lookup_face): Remove declaration.
1755
1756 2010-11-19 Eli Zaretskii <eliz@gnu.org>
1757
1758 * xdisp.c (set_cursor_from_row): Display cursor after all the
1759 glyphs that come from an overlay. Don't overstep the last glyph
1760 when skipping glyphs from an overlay. (Bug#6687)
1761
1762 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1763
1764 * alloc.c (refill_memory_reserve): Move declaration ...
1765 * lisp.h (refill_memory_reserve): ... here.
1766
1767 * strftime.c (_strftime_copytm): Add declaration.
1768
1769 * callproc.c (syms_of_callproc): Use intern_c_string.
1770
1771 Move declarations from .c files to .h files.
1772 * process.c (timers_run):
1773 * minibuf.c (quit_char):
1774 * lread.c (read_emacs_mule_char):
1775 * keyboard.c (minibuf_level, message_enable_multibyte)
1776 (pending_malloc_warning):
1777 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1778 (Qonly): Remove declarations.
1779 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1780 (Vselect_active_regions):
1781 * keyboard.h (timers_run): Add declarations.
1782
1783 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1784 (tm_diff): Convert definitions to standard C.
1785 (extra_args_spec_iso): Remove, unused.
1786
1787 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
1788
1789 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1790
1791 * config.in (HAVE_G_TYPE_INIT): New symbol.
1792
1793 2010-11-18 Eli Zaretskii <eliz@gnu.org>
1794
1795 * lread.c (Fload): Mention `load-in-progress' and
1796 `load-file-name'. (Bug#7346)
1797
1798 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1799 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1800 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1801 subprocesses. Use buffer_free only ifdef subprocesses.
1802
1803 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1804 the subprocesses version, not in the non-subprocesses one.
1805
1806 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1807
1808 2010-11-17 Eli Zaretskii <eliz@gnu.org>
1809
1810 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1811 lines on text-mode terminals. (bug#7417)
1812
1813 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1814
1815 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1816 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1817
1818 2010-11-17 Kenichi Handa <handa@m17n.org>
1819
1820 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1821 change (set charset-ID list instead of charset-symbol list).
1822
1823 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
1824
1825 * keyboard.c (make_lispy_position): For text area clicks, record Y
1826 pixel position relative to the text area, excluding header line.
1827 Also change X and Y to Lisp_Objects, not pointers; don't return
1828 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1829 buffer_posn_from_coords counting from the start of the text area.
1830 (Fposn_at_x_y, make_lispy_event): Callers changed.
1831
1832 * window.c (coordinates_in_window): Change X and Y to ints rather
1833 than pointers; don't return coordinates via pointers.
1834 (struct check_window_data): Change X and Y from pointers to ints.
1835 (window_from_coordinates): Remove args WX and WY; don't return
1836 coordinates via pointers.
1837 (Fcoordinates_in_window_p, window_from_coordinates):
1838 (check_window_containing, Fwindow_at): Callers changed.
1839 (window_relative_x_coord): New function.
1840
1841 * window.h (window_from_coordinates, window_relative_x_coord):
1842 Update prototypes.
1843
1844 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1845 the start of the text area.
1846
1847 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1848 call. Use window_relative_x_coord.
1849 (note_mouse_highlight): Change window_from_coordinates call.
1850
1851 * w32term.c (w32_read_socket):
1852 * msdos.c (dos_rawgetc):
1853 * xterm.c (handle_one_xevent): Likewise.
1854
1855 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1856
1857 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1858 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1859 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1860 Convert definitions to standard C.
1861 * regex.c: Do not include <stdlib.h>, config.h does it.
1862 Include unistd.h.
1863 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1864 (regerror, regfree): Convert definitions to standard C.
1865 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1866 (__mktime_internal): Convert definitions to standard C.
1867
1868 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1869
1870 * w32proc.c:
1871 * w32inevt.c:
1872 * w32heap.c:
1873 * w32.c: Remove config.h include guards.
1874
1875 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1876 No code changes.
1877
1878 * process.c: Include <sys/ioctl.h> unconditionally,
1879 keyboard.c already does it.
1880
1881 * keyboard.c (pending_malloc_warning): Add const to match
1882 definition in alloc.c.
1883 (Fset_input_interrupt_mode): Simplify #ifdefs.
1884
1885 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1886
1887 Clean up systty.h macros.
1888 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1889 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1890 definition in all uses.
1891 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1892 * sysdep.c (discard_tty_input, child_setup_tty)
1893 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1894 * emacs.c (shut_down_emacs):
1895 * callproc.c (child_setup):
1896 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1897
1898 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1899
1900 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1901
1902 * w32fns.c (Fx_create_frame):
1903 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1904 resource here; it's now done at startup.
1905
1906 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1907
1908 * xterm.c (set_wm_state): Add Qnil to final cons.
1909
1910 * xselect.c (x_send_client_event): Remove unused variables cons and
1911 size.
1912
1913 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1914
1915 * keyboard.c (modify_event_symbol) : Add const to array elements of
1916 arg NAME_TABLE.
1917 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1918 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1919 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1920 Add const to array elements.
1921 (scroll_bar_parts): Make static. Fix position of const.
1922
1923 * w32fns.c (lispy_function_keys): Add const to extern.
1924
1925 * w32inevt.c (lispy_function_keys): Likewise.
1926
1927 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1928
1929 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1930 resource here; it's now done at startup.
1931
1932 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1933
1934 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
1935
1936 Fix compilation on Solaris.
1937 * sysdep.c: Do not #include <term.h>.
1938 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1939
1940 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1941
1942 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1943
1944 * xterm.c (set_wm_state): Don't put Atom in cons, call
1945 make_fixnum_or_float on them first.
1946 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1947 Xatom_net_supported correctly.
1948
1949 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1950 (Fx_send_client_event): to here.
1951
1952 2010-11-13 Martin Rudalics <rudalics@gmx.at>
1953
1954 * window.c (Fwindow_use_time): New function.
1955
1956 2010-11-13 Eli Zaretskii <eliz@gnu.org>
1957
1958 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1959 zero-width characters.
1960
1961 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1962
1963 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1964 box before drawing the glyphs inside it.
1965
1966 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1967
1968 * dispextern.h (enum glyphless_display_method):
1969 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1970 All users changed.
1971
1972 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1973 Fix comments.
1974 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1975 whitespace in "[]", to simulate a box. Don't use uninitialized
1976 variable `width'.
1977
1978 2010-11-11 Julien Danjou <julien@danjou.info>
1979
1980 * xsettings.c (init_xsettings): Use already fetch atoms.
1981
1982 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1983 from dpyinfo.
1984
1985 * xselect.c (Fx_send_client_event): Split and create
1986 x_send_client_event.
1987
1988 * lisp.h: Do not EXFUN Fx_send_client_event.
1989
1990 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1991 from dpyinfo.
1992 (wm_supports): Use atoms from dpyinfo.
1993 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1994 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1995 (xembed_set_info): Use atoms from dpyinfo.
1996 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1997 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1998 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1999 Get all atoms in one round-trip.
2000 (set_wm_state): Use x_send_client_event rather than
2001 Fx_send_client_event, using Atom directly.
2002 (x_ewmh_activate_frame): Ditto.
2003 (x_set_sticky): Pass atoms to set_wm_state.
2004 (do_ewmh_fullscreen): Ditto.
2005
2006
2007 * xterm.h (x_display_info): Add Xatom_net_supported,
2008 Xatom_net_supporting_wm_check, Xatom_net_active_window,
2009 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
2010
2011 * xfns.c (Fx_show_tip): Fix typo in docstring.
2012
2013 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2014
2015 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
2016 it's not negative.
2017
2018 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2019
2020 * font.c (font_filter_properties): Add const to array elements of
2021 properties args.
2022
2023 * font.h (font_filter_properties): Likewise.
2024
2025 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
2026 elements.
2027
2028 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
2029
2030 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
2031
2032 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
2033 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
2034 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
2035 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
2036 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
2037
2038 2010-11-10 Glenn Morris <rgm@gnu.org>
2039
2040 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2041
2042 2010-11-09 Eli Zaretskii <eliz@gnu.org>
2043
2044 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
2045
2046 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
2047
2048 * image.c (free_image): Don't garbage the frame here, since this
2049 function can be called while redisplaying (Bug#7210).
2050 (uncache_image): Garbage the frame here (Bug#6426).
2051
2052 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
2053
2054 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
2055 parent is the root window. Check this after traversing window tree.
2056
2057 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
2058
2059 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
2060
2061 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
2062 before traversing window tree (Bug#5721).
2063
2064 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
2065
2066 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
2067
2068 * xdisp.c (note_mode_line_or_margin_highlight):
2069 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
2070
2071 2010-11-06 Eli Zaretskii <eliz@gnu.org>
2072
2073 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
2074 adjust width of tool-tip frame to the width of text, excluding the
2075 stretch glyph at the beginning of R2L glyph rows.
2076
2077 * w32fns.c (Fx_show_tip): Likewise.
2078
2079 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
2080
2081 * nsfont.m: Include termchar for new mouse-highlight.
2082 (nsfont_draw): Use MOUSE_HL_INFO.
2083
2084 2010-11-05 Eli Zaretskii <eliz@gnu.org>
2085
2086 Unify mouse-highlight code for all GUI and TTY sessions.
2087
2088 * term.c: Remove static mouse_face_* variables. All users
2089 changed.
2090 (term_show_mouse_face, term_clear_mouse_face)
2091 (fast_find_position, term_mouse_highlight): Functions deleted.
2092 (tty_draw_row_with_mouse_face): New function.
2093 (term_mouse_movement): Call note_mouse_highlight instead of
2094 term_mouse_highlight.
2095
2096 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2097 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2098 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2099 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2100 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2101 Replace Display_Info with Mouse_HLInfo everywhere where
2102 mouse_face_* members were accessed for mouse highlight purposes.
2103
2104 * xterm.c (x_update_window_begin, x_update_window_end)
2105 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
2106 (handle_one_xevent, x_free_frame_resources, x_term_init):
2107 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
2108 members were accessed for mouse highlight purposes.
2109
2110 * w32term.c (x_update_window_begin, x_update_window_end)
2111 (x_update_end, w32_read_socket, x_free_frame_resources)
2112 (w32_initialize_display_info): Replace Display_Info with
2113 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2114 for mouse highlight purposes.
2115
2116 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2117 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2118 unless the frame is on a window-system.
2119 (get_tool_bar_item, handle_tool_bar_click)
2120 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2121 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2122 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2123 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2124 Replace Display_Info with Mouse_HLInfo everywhere where
2125 mouse_face_* members were accessed for mouse highlight purposes.
2126 (coords_in_mouse_face_p): Move prototype out of the
2127 HAVE_WINDOW_SYSTEM conditional.
2128 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2129 HAVE_WINDOW_SYSTEM block.
2130 (try_window_id) [HAVE_GPM || MSDOS]:
2131 Call x_clear_window_mouse_face.
2132 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
2133 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2134 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2135 calling draw_glyphs directly.
2136 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2137 (cursor_in_mouse_face_p, rows_from_pos_range)
2138 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2139 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2140 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2141 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2142 fragments.
2143 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2144 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2145 integer.
2146 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
2147 (x_consider_frame_title, tool_bar_lines_needed):
2148 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
2149 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2150 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2151 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2152 part.
2153
2154 * dispnew.c (mirror_make_current): Set Y coordinate of the
2155 mode-line and header-line rows.
2156 (init_display): Setup initial frame's output_data for text
2157 terminal frames.
2158
2159 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2160 its own definition on msdos.c.
2161
2162 * msdos.c (show_mouse_face, clear_mouse_face)
2163 (fast_find_position, IT_note_mode_line_highlight)
2164 (IT_note_mouse_highlight): Functions deleted.
2165 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2166 instead of IT_note_mouse_highlight.
2167 (draw_row_with_mouse_face, popup_activated): New functions.
2168 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2169 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2170 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2171 where mouse_face_* members were accessed for mouse highlight
2172 purposes.
2173
2174 * msdos.h (initialize_msdos_display): Add prototype.
2175
2176 * frame.h (MOUSE_HL_INFO): New macro.
2177
2178 * lisp.h (Mouse_HLInfo): New data type.
2179
2180 * xterm.h (struct x_display_info):
2181 * w32term.h (struct w32_display_info):
2182 * nsterm.h (struct ns_display_info):
2183 * termchar.h (struct tty_display_info): Use it instead of
2184 mouse_face_* members.
2185
2186 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2187 1st argument.
2188 (frame_to_window_pixel_xy, note_mouse_highlight)
2189 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2190 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2191 HAVE_WINDOW_SYSTEM conditional.
2192 (draw_row_with_mouse_face): Declare prototype.
2193 (tty_draw_row_with_mouse_face): Declare prototype.
2194
2195 2010-11-05 Eli Zaretskii <eliz@gnu.org>
2196
2197 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2198 Remove unused variables.
2199
2200 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2201
2202 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2203 logic pointed out by Eli Zaretskii.
2204
2205 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2206
2207 * coding.c (coding-category-list): Refer to set-coding-system-priority
2208 instead of the obsolete set-coding-priority in the doc string.
2209
2210
2211 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2212
2213 * nsfont.m (nsfont_draw): Correct previous patch to return
2214 correct value.
2215 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2216 don't change the method signature, change the return.
2217
2218 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
2219
2220 * nsfont.m (nsfont_draw)
2221 * nsimage.m (EmacsImage-setXBMColor:)
2222 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
2223
2224 2010-11-03 Julien Danjou <julien@danjou.info>
2225
2226 * image.c (gif_load): Add support for transparency and specified
2227 :background.
2228
2229 2010-11-01 Kenichi Handa <handa@m17n.org>
2230
2231 * dispextern.h (lookup_glyphless_char_display): Extern it.
2232
2233 * termhooks.h (struct terminal): New member charset_list.
2234
2235 * coding.c (Fset_terminal_coding_system_internal): Set the
2236 `charset_list' member of struct terminal.
2237
2238 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
2239 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2240
2241 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2242 (lookup_glyphless_char_display): Set it->what at the end.
2243 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2244 (last_glyphless_glyph_merged_face_id): Make them non-static.
2245
2246 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2247 Fix the arg with_background for font->driver->draw.
2248
2249 2010-11-01 Kenichi Handa <handa@m17n.org>
2250
2251 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2252 Surround chp by parentheses.
2253
2254 2010-11-01 Kenichi Handa <handa@m17n.org>
2255
2256 Implement various display methods for glyphless characters.
2257
2258 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2259 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2260 (Qzero_width): New variables.
2261 (THIN_SPACE_WIDTH): New macro.
2262 (lookup_glyphless_char_display): New funciton.
2263 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2264 (last_glyphless_glyph_merged_face_id): New variables.
2265 (get_next_display_element): Check glyphless characters.
2266 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2267 last_glyphless_glyph_face_id.
2268 (fill_glyphless_glyph_string): New function.
2269 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2270 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2271 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2272 (x_produce_glyphs): If a suitable font is not found, produce a
2273 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2274 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2275 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2276 Qzero_width.
2277 (Vglyphless_char_display): Declare it as a Lisp variable.
2278
2279 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
2280 (struct glyph): Change the size of the member "type" to 3.
2281 Add glyphless to the union slice and u.
2282 (enum display_element_type): Add IT_GLYPHLESS.
2283 (enum glyphless_display_method): New enum.
2284 (struct it): New member glyphless_method.
2285 (Vglyphless_char_display): Extern it.
2286
2287 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2288 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2289
2290 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
2291 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2292
2293 * nsterm.m (ns_draw_glyph_string): Handle the case
2294 GLYPHLESS_GLYPH (the detail is not yet implemented).
2295
2296 2010-10-31 Glenn Morris <rgm@gnu.org>
2297
2298 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2299
2300 * frame.c (syms_of_frame) <tool-bar-mode>:
2301 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2302
2303 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
2304
2305 * xterm.c (x_connection_closed): Print informative error message
2306 when aborting on GTK. This requires using shut_down_emacs
2307 directly instead of Fkill_emacs.
2308
2309 2010-10-29 Eli Zaretskii <eliz@gnu.org>
2310
2311 * emacs.c (main): Call syms_of_filelock unconditionally.
2312
2313 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2314 clause, but keep part of it conditioned on CLASH_DETECTION.
2315
2316 2010-10-29 Glenn Morris <rgm@gnu.org>
2317
2318 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2319 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2320 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2321 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2322 Sync docs between X, W32, NS.
2323
2324 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2325 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2326
2327 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
2328
2329 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2330 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2331
2332 2010-10-26 Eli Zaretskii <eliz@gnu.org>
2333
2334 * cmds.c (internal_self_insert): Don't insert if argument N is
2335 zero or negative. (Bug#7281)
2336
2337 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2338
2339 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2340
2341 2010-10-25 Glenn Morris <rgm@gnu.org>
2342
2343 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2344
2345 2010-10-24 Glenn Morris <rgm@gnu.org>
2346
2347 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2348 (Fx_window_property, Fx_file_dialog):
2349 * xfns.c (Fx_synchronize, Fx_change_window_property)
2350 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2351
2352 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
2353
2354 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2355
2356 2010-10-24 Eli Zaretskii <eliz@gnu.org>
2357
2358 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2359
2360 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2361 Deprecate use as a boolean flag.
2362
2363 2010-10-24 Jim Meyering <jim@meyering.net>
2364
2365 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2366
2367 2010-10-24 Glenn Morris <rgm@gnu.org>
2368
2369 * w16select.c (syms_of_win16select) <selection-coding-system>:
2370 <next-selection-coding-system>:
2371 * w32select.c (syms_of_w32select) <selection-coding-system>:
2372 <next-selection-coding-system>:
2373 Sync docs with select.el.
2374
2375 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2376 Lisp version.
2377
2378 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2379 Sync doc with the xterm.c version.
2380
2381 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2382 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2383
2384 2010-10-23 Glenn Morris <rgm@gnu.org>
2385
2386 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
2387 * frame.c (syms_of_frame) <menu-bar-mode>:
2388 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
2389 <hourglass-delay>: Sync docs with Lisp.
2390
2391 2010-10-23 Eli Zaretskii <eliz@gnu.org>
2392
2393 Implement mouse highlight for bidi-reordered lines.
2394
2395 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2396 (mouse_face_from_string_pos): New function, replaces
2397 fast_find_string_pos.
2398 (note_mouse_highlight): Call it instead of fast_find_string_pos.
2399 (note_mode_line_or_margin_highlight): Support bidi-reordered
2400 strings and R2L glyph rows. Fix comments.
2401 (note_mouse_highlight): When bidi reordering is turned on in a
2402 buffer, call next-single-property-change and
2403 previous-single-property-change with last argument nil.
2404 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
2405 glyph that stands for no text beyond the line end.
2406 (row_containing_pos): Don't return too early when CHARPOS is in a
2407 bidi-reordered continued line. Return immediately when the first
2408 hit is found in a line that is not continued, or when an exact
2409 match for CHARPOS is found.
2410 (rows_from_pos_range): New function.
2411 (mouse_face_from_buffer_pos): Use it instead of calling
2412 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2413 function to support mouse highlight in bidi-reordered lines and
2414 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2415 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2416 that the former is always above the latter or identical to it.
2417 (show_mouse_face): Support drawing highlighted R2L lines.
2418 (coords_in_mouse_face_p): New function, bidi-aware.
2419 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2420 Call it instead of comparing with mouse-face members of dpyinfo.
2421 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2422 usage of hpos and vpos.
2423
2424 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2425
2426 * xrdb.c: Include keyboard.h for MOTIF.
2427
2428 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2429 MOTIF (Bug#7263).
2430
2431 * xfns.c: Include Xm/TextF and Xm/List.
2432 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2433 Make ANSI prototypes.
2434
2435 2010-10-22 Glenn Morris <rgm@gnu.org>
2436
2437 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2438 Remove ccl and duplicate mouse.
2439
2440 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
2441
2442 * insdel.c (prepare_to_modify_buffer): Don't set
2443 saved-region-selection if modification hooks are disabled.
2444
2445 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
2446
2447 * cmds.c (Fdelete_char): Doc fix.
2448
2449 2010-10-19 Ken Brown <kbrown@cornell.edu>
2450
2451 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2452
2453 2010-10-19 Kenichi Handa <handa@m17n.org>
2454
2455 Fix incorrect font metrics when the same font is opened with
2456 different pixelsizes.
2457
2458 * xftfont.c: Include composite.h.
2459 (xftfont_shape): New function.
2460 (syms_of_xftfont): Set xftfont_driver.shape.
2461
2462 2010-10-18 Julien Danjou <julien@danjou.info>
2463
2464 * frame.c (Fframe_pointer_visible_p):
2465 Add `frame-pointer-visible-p' to get the pointer visibility.
2466
2467 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2468
2469 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2470 non-"EAGAIN"-like error to signal to Emacs that the socket should
2471 be closed.
2472
2473 2010-10-15 Eli Zaretskii <eliz@gnu.org>
2474
2475 * unexcoff.c (make_hdr): Fix prototype according to changes in
2476 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2477
2478 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2479
2480 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2481
2482 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2483 made building the X menu fail.
2484 (really-oldXMenu): Fix my previous fix.
2485
2486 2010-10-14 Damyan Pepper <damyanp@gmail.com>
2487
2488 Fix handling of font properties on Windows (bug#6303).
2489 * font.c (font_filter_properties): New function, refactored from
2490 ftfont_filter_properties.
2491 * font.h (font_filter_properties): Declare.
2492 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2493 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2494 (w32font_filter_properties): New function.
2495 (w32font_driver): Add w32font_filter_properties.
2496
2497 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2498
2499 * font.c (Ffont_variation_glyphs):
2500 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2501
2502 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2503
2504 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2505 * w32font.c (w32_generic_family):
2506 * w32inevt.c (key_event):
2507 * w32menu.c (fill_in_menu):
2508 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2509 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2510 * w32term.c (w32_read_socket): Make static.
2511
2512 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2513
2514 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2515 prototypes; all callers changed.
2516
2517 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2518
2519 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2520 (OBJ2): New macro.
2521 (WIN32OBJ, FONTOBJ): Remove.
2522 (OBJ1): Redistribute object files with OBJ2.
2523 (LIBS, $(TEMACS)): Use TLIB2.
2524 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2525 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2526
2527 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2528
2529 * emacs.c (Vdynamic_library_alist)
2530 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2531 Doc fix.
2532
2533 * lisp.h (Vdynamic_library_alist): Declare extern.
2534
2535 * image.c (Vimage_library_alist)
2536 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2537 (lookup_image_type): Use Vdynamic_library_alist.
2538 (Finit_image_library): Doc fix.
2539
2540 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2541
2542 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2543 (lispdir): Remove trailing /, update all uses.
2544
2545 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
2546
2547 * nsterm.m (Qleft): Declare.
2548 (ns_right_alternate_modifier): New variable
2549 (NSRightAlternateKeyMask): New define.
2550 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2551 ns_right_alternate_modifier isn't Qleft.
2552 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2553 as emacs modifier for NSRightAlternateKeyMask.
2554 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2555
2556 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2557
2558 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2559 gnutls is ready, return EAGAIN as the errno.
2560
2561 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2562
2563 * vm-limit.c:
2564 * unexhp9k800.c:
2565 * unexelf.c:
2566 * unexaix.c:
2567 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2568
2569 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2570 (PROFILING_LDFLAGS): Remove, not needed anymore.
2571
2572 * Makefile.in: Use $(...) everywhere instead of ${...}
2573 (CRT_DIR): Move near potential user.
2574 (START_FILE): Move near CRT_DIR, it might use it.
2575
2576 * sysdep.c (LPASS8): Remove, unused.
2577 (emacs_ospeed): Change from being a global to a local in the only
2578 user: init_baud_rate.
2579
2580 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2581
2582 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
2583 (emacs_gnutls_write): Remove the debuggin fsync call.
2584 (emacs_gnutls_read): Return -1 if we got an error from
2585 gnutls_read. This allows us to actually read lots of data from
2586 the GnuTLS stream.
2587 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2588 According to the documentation, this is correct, and it seems to
2589 make things work.
2590
2591 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
2592
2593 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2594
2595 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2596
2597 * keyboard.c: Revert last change; it was not intended to be
2598 synchronized with the trunk.
2599
2600 2010-10-08 Kenichi Handa <handa@m17n.org>
2601
2602 * coding.c (complement_process_encoding_system): Fix previous change.
2603
2604 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2605
2606 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2607 (Fdbus_init_bus): ... here. (Bug#7113)
2608
2609 2010-10-08 Glenn Morris <rgm@gnu.org>
2610
2611 * buffer.c (before-change-functions, after-change-functions):
2612 Three-year overdue doc fix following 2007-08-13 change.
2613
2614 2010-10-08 Kenichi Handa <handa@m17n.org>
2615
2616 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2617 eol-format, inherit from the system's default.
2618 (complement_process_encoding_system): Make a new coding system
2619 inherit the original eol-format.
2620
2621 2010-10-08 Kenichi Handa <handa@m17n.org>
2622
2623 * coding.c (complement_process_encoding_system): New function.
2624
2625 * coding.h (complement_process_encoding_system): Extern it.
2626
2627 * callproc.c (Fcall_process): Complement the coding system for
2628 encoding arguments.
2629 (Fcall_process_region): Complement the coding system for encoding
2630 the input to the process.
2631
2632 * process.c (Fstart_process): Complement the coding system for
2633 encoding arguments.
2634 (send_process): Complement the coding system for encoding what
2635 sent to the process.
2636
2637 2010-10-08 Kenichi Handa <handa@m17n.org>
2638
2639 * xfont.c (xfont_open): Fix setting of font->average_width from
2640 :avgwidth property (Bug#7123).
2641
2642 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2643
2644 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2645 is more portable.
2646
2647 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2648 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2649 has not defined SIGIO.
2650
2651 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
2652
2653 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2654 draw the outermost line using the black relief, for legibility.
2655 Omit drawing the four corner pixels.
2656
2657 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
2658
2659 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2660 (read_key_sequence): Inline echo_prompt.
2661 (echo_dash): Add a dash only if key is continued (Bug#7137).
2662
2663 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2664
2665 Remove O_RDONLY, O_WRONLY definitions, not needed.
2666 * unexcoff.c:
2667 * lread.c:
2668 * fileio.c:
2669 * doc.c:
2670 * callproc.c:
2671 * alloc.c:
2672 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2673
2674 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2675
2676 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2677
2678 * gnutls.c: Add property list symbol holders.
2679 (emacs_gnutls_handshake): Clarify how sockets are passed to
2680 GnuTLS.
2681 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2682 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2683 and keyfiles to be a list of file names. Default to "NORMAL" for
2684 the priority string. Improve logging.
2685
2686 2010-10-03 Glenn Morris <rgm@gnu.org>
2687
2688 * fileio.c (Vdirectory_sep_char): Remove.
2689
2690 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2691
2692 * termhooks.h: Remove #ifdef CONSP.
2693
2694 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2695
2696 Include <fcntl.h> unconditionally.
2697 * termcap.c:
2698 * sysdep.c:
2699 * lread.c:
2700 * keyboard.c:
2701 * filelock.c:
2702 * fileio.c:
2703 * doc.c:
2704 * callproc.c:
2705 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2706 does it.
2707
2708 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2709
2710 * sysdep.c (flush_pending_output): Remove code, does not do
2711 anything on any platform.
2712
2713 Remove unused code.
2714 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2715 Remove select emulation, all systems support select.
2716 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2717 * process.c (create_process): Remove #if 0 code.
2718
2719 Remove unused arguments for unexec.
2720 The third one is never used, and the last two are always passed as zero.
2721 * emacs.c (unexec): Add declaration.
2722 (Fdump_emacs): Only pass the first two arguments to unexec.
2723 Simplify #ifdef.
2724 * unexw32.c (unexec):
2725 * unexsol.c (unexec):
2726 * unexhp9k800.c (unexec):
2727 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2728 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2729 (find_section): Use const.
2730 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2731 (unexec_error): Declare it NO_RETURN.
2732 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2733 it as an argument, remove data_start and entry_address arguments, unused.
2734 (unexec): Remove bss_start, data_start and
2735 entry_address arguments.
2736 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2737 it as an argument, remove data_start and entry_address arguments, unused.
2738 (unexec): Remove bss_start, data_start and
2739 entry_address arguments.
2740
2741 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
2742
2743 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2744
2745 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2746 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2747 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2748 Fix typos in docstrings.
2749 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2750 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2751
2752 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
2753
2754 * keyboard.c (command_loop_1): Make sure the mark is really alive
2755 before using it (Bug#7044).
2756
2757 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
2758
2759 * makefile.w32-in (tags): Rename target to full-tags.
2760
2761 2010-10-02 Eli Zaretskii <eliz@gnu.org>
2762
2763 * emacs.c (main): Remove !WINDOWSNT conditional.
2764 (Fkill_emacs): Don't mention exemption on MS-Windows.
2765
2766 2010-10-02 Glenn Morris <rgm@gnu.org>
2767
2768 * character.c (Fchar_bytes): Remove obsolete function.
2769 (syms_of_character): Remove Schar_bytes.
2770
2771 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2772 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2773 in batch-mode.
2774 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2775 (kill-emacs-hook): Doc fix.
2776
2777 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2778
2779 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
2780 (parse_region): Rework to take regions instead of strings, and
2781 renamed to reflect that these are the libxml functions.
2782
2783 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2784
2785 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2786 screen dimensions in tty->Wcm.
2787
2788 * xdisp.c (set_cursor_from_row): When the row is truncated and
2789 point is outside the range of displayed characters, position the
2790 cursor inside the scroll margin. (Bug#6349)
2791
2792 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2793
2794 Do not include stdlib.h and string.h, config.h does it.
2795 * xfont.c:
2796 * w32term.c:
2797 * w32reg.c:
2798 * w32inevt.c:
2799 * w32heap.c:
2800 * w32console.c:
2801 * w16select.c:
2802 * unexsol.c:
2803 * term.c:
2804 * sound.c:
2805 * scroll.c (m):
2806 * gtkutil.c:
2807 * font.c:
2808 * filelock.c:
2809 * fileio.c:
2810 * dosfns.c:
2811 * dbusbind.c:
2812 * bidi.c:
2813 * callproc.c:
2814 * process.c:
2815 * msdos.c:
2816 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2817
2818 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2819 defines it.
2820
2821 * process.c: Move #include <pty.h> earlier.
2822 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2823 (pty_name): Move definition later.
2824
2825 * nsselect.m (syms_of_nsselect):
2826 * nsmenu.m (syms_of_nsmenu):
2827 * nsfns.m (syms_of_nsfns):
2828 * msdos.c (syms_of_msdos):
2829
2830 * image.c (syms_of_image):
2831 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2832
2833 * point.h: Remove, unused.
2834
2835 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2836
2837 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2838 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2839 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2840
2841 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2842
2843 * xml.c (parse_string): Use const.
2844
2845 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2846
2847 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2848 Also only override Vprint_level if it isn't already bound, and increase
2849 the level to 8 to produce more useful backtraces for bug reports.
2850
2851 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2852
2853 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2854
2855 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
2856
2857 * w32console.c (vga_stdcolor_name): Remove unused function;
2858 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2859
2860 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2861
2862 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2863 (Fgnutls_boot): Start the handshake.
2864 (emacs_gnutls_read): Perform the handshake from the reader loop.
2865 (Fgnutls_boot): Remove some debugging messages.
2866 Change indentation throughout to use the Emacs style.
2867 (emacs_gnutls_handshake): Cast the fds to something that's
2868 possibly the expected length.
2869 (emacs_gnutls_write): Return -1 if we try to write before handshake.
2870
2871 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2872
2873 * process.c (make_process): Set the gnutls_p field to zero by
2874 default.
2875 (read_process_output): Always call the gnutls_read function if the
2876 stream is a gnutls stream.
2877 (send_process): Ditto for writes.
2878
2879 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2880 or write anything until the state is GNUTLS_STAGE_READY.
2881 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2882
2883 2010-09-29 Eli Zaretskii <eliz@gnu.org>
2884
2885 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2886 NEUTRAL_DIR.
2887 (handle_invisible_prop, iterate_out_of_display_property)
2888 (next_element_from_buffer): If bidi_it.first_elt is set, call
2889 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2890 (Bug#7128)
2891
2892 * print.c (print_object): Fix format string and argument types for
2893 printing a Lisp_Misc_Marker.
2894
2895 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2896 (load_overlay_strings, get_overlay_strings_1)
2897 (get_overlay_strings, forward_to_next_line_start)
2898 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2899 (get_next_display_element, next_element_from_string)
2900 (next_element_from_c_string, next_element_from_buffer)
2901 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2902 (message_dolog, message_log_check_duplicate, message2_nolog)
2903 (message3, message3_nolog, vmessage, set_message, set_message_1)
2904 (hscroll_window_tree, text_outside_line_unchanged_p)
2905 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2906 (find_last_unchanged_at_beg_row)
2907 (find_first_unchanged_at_end_row, row_containing_pos)
2908 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
2909 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2910 Use EMACS_INT for buffer and string positions.
2911
2912 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2913 (row_containing_pos): Adjust prototype.
2914
2915 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2916 (message2_nolog, set_message): Adjust prototypes.
2917
2918 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2919
2920 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2921 (Fgnutls_boot): Use SDATA.
2922 (Fgnutls_handshake): Remove unused var `max_log_level'.
2923
2924 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2925
2926 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
2927 (Bug#7113)
2928
2929 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2930
2931 * xgselect.c (xg_select): Clear file descriptors not set from
2932 rfds and wfds.
2933
2934 * process.c (wait_reading_process_output): Add missing FD_CLR
2935 for write_mask (must mirror connect_wait_mask).
2936
2937 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2938
2939 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2940 prefix.
2941 (Fgnutls_boot): Use changed process members. Use log level with a
2942 function parameter to set it. Bring back Emacs-level debugging
2943 messages at log level 1 and 2.
2944
2945 * process.c (make_process): Initialize gnutls_log_level.
2946
2947 * process.h: Add gnutls_log_level and rename x509_cred and
2948 anon_cred to have the gnutls_ prefix for consistency.
2949
2950 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2951
2952 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
2953
2954 * w32.c (g_b_init_get_sid_identifier_authority)
2955 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2956 Remove, not used.
2957 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2958 (init_winsock): Remove useless assignment.
2959 (open_process_token, get_token_information, lookup_account_sid)
2960 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2961 (get_security_descriptor_owner, get_security_descriptor_group)
2962 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2963 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2964 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2965 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2966 (unc_volume_file_attributes, convert_from_time_t)
2967 (create_toolhelp32_snapshot, process32_first, process32_next)
2968 (open_thread_token, impersonate_self, revert_to_self)
2969 (get_process_memory_info, get_process_working_set_size)
2970 (global_memory_status, global_memory_status_ex, socket_to_fd)
2971 (shutdown_handler): Make static.
2972
2973 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2974
2975 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2976 (xd_pending_messages): Functions removed.
2977 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2978 order to be compatible with add_read_fd. Determine bus from data,
2979 and call xd_read_message just for this bus.
2980 (xd_add_watch): Use xd_read_queued_messages as callback function.
2981 Add data.
2982
2983 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2984
2985 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2986
2987 * gnutls.c (gnutls_log_function): Add more debugging.
2988 (emacs_gnutls_read): Don't infloop while reading.
2989
2990 2010-09-27 Kenichi Handa <handa@m17n.org>
2991
2992 These changes are to remove restriction on the number of glyphs in
2993 one composition.
2994
2995 * dispextern.h (struct glyph): Change the member "slice" to union.
2996 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
2997 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
2998
2999 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
3000 instead of glyph->slice.
3001 (marginal_area_string): Likewise.
3002
3003 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
3004 glyph->u.cmp.
3005 (append_composite_glyph): Likewise.
3006
3007 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
3008 glyph->u.cmp.
3009 (fill_gstring_glyph_string, x_get_glyph_overhangs)
3010 (append_composite_glyph): Likewise.
3011 (fill_image_glyph_string): Use glyph->slice.img instead of
3012 glyph->slice.
3013 (append_glyph, produce_image_glyph, append_stretch_glyph)
3014 (note_mouse_highlight): Likewise.
3015
3016 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
3017
3018 * process.c (add_keyboard_wait_descriptor)
3019 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
3020 (wait_reading_process_output): Don't pass write_mask to select
3021 if SELECT_CANT_DO_WRITE_MASK is defined.
3022 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
3023
3024 * process.h (add_read_fd, delete_read_fd, add_write_fd)
3025 (delete_write_fd): Declare.
3026
3027 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
3028 (write_mask): New variable.
3029 (max_input_desc): Rename from max_keyboard_desc.
3030 (fd_callback_info): New variable.
3031 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
3032 New functions.
3033 (Fmake_network_process): FD_SET write_mask.
3034 (deactivate_process): FD_CLR write_mask.
3035 (wait_reading_process_output): Connecting renamed to Writeok.
3036 check_connect removed. check_write is new. Remove references to gpm.
3037 Use Writeok/check_write unconditionally (i.e. no #ifdef
3038 NON_BLOCKING_CONNECT) instead of Connecting.
3039 Loop over file descriptors and call callbacks in fd_callback_info
3040 if file descriptor is ready for I/O.
3041 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
3042 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
3043 (keyboard_bit_set): Use max_input_desc.
3044 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
3045 Remove #ifdef subprocesses. Use max_input_desc.
3046 (init_process): Initialize write_mask and fd_callback_info.
3047
3048 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
3049
3050 * dbusbind.c: Include process.h.
3051 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
3052 (xd_read_message_1): New functions.
3053 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
3054 Handle watch for both read and write.
3055 (Fdbus_init_bus): Also register xd_toggle_watch.
3056 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3057 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
3058 to dbus_connection_flush.
3059 (xd_read_message): Move most of the code to xd_read_message_1.
3060 Call xd_read_message_1 until status is COMPLETE.
3061
3062 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
3063
3064 * term.c: Do not include sys/ioctl.h, not needed.
3065 (init_tty): Reorder code to reduce the number of #ifdefs.
3066 No code changes.
3067
3068 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
3069
3070 * process.h: Set up GnuTLS support.
3071
3072 * process.c (make_process, Fstart_process)
3073 (read_process_output, send_process): Set up GnuTLS support for
3074 process input/output file descriptors.
3075
3076 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
3077
3078 * gnutls.c: The source code for GnuTLS support in Emacs.
3079
3080 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
3081
3082 * config.in: Set up GnuTLS support.
3083
3084 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
3085 (obj, LIBES): Set up GnuTLS support.
3086
3087 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
3088
3089 * w32.c (get_emacs_configuration_options): Fix previous change.
3090
3091 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
3092
3093 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3094 alive before using it (Bug#6977).
3095
3096 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3097
3098 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3099
3100 * dispextern.h: EMACS_INT/int fixup.
3101
3102 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3103 fixup.
3104
3105 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3106
3107 2010-09-25 Eli Zaretskii <eliz@gnu.org>
3108
3109 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3110 (Fselect_window, window_scroll_pixel_based)
3111 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3112 Use EMACS_INT for buffer positions.
3113
3114 * textprop.c (validate_interval_range, interval_of)
3115 (property_change_between_p, Fadd_text_properties)
3116 (set_text_properties_1, Fremove_text_properties)
3117 (Fremove_list_of_text_properties, Ftext_property_any)
3118 (Ftext_property_not_all, copy_text_properties)
3119 (text_property_list, extend_property_ranges)
3120 (verify_interval_modification): Use EMACS_INT for buffer
3121 positions.
3122
3123 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3124 for buffer positions.
3125
3126 * process.c (read_process_output, send_process)
3127 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3128 and string positions and size.
3129
3130 * print.c (print_object, print_string, strout): Use EMACS_INT for
3131 string indices.
3132
3133 * minibuf.c (string_to_object): Use EMACS_INT for string position
3134 and size.
3135
3136 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3137
3138 * lread.c <read_from_string_index, read_from_string_index_byte>
3139 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3140 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3141 buffer positions and string length.
3142
3143 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3144 EMACS_INT.
3145 (echo_truncate, adjust_point_for_property, read_char)
3146 (gen_help_event, make_lispy_event, modify_event_symbol)
3147 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3148 for buffer positions and string length.
3149
3150 * keyboard.h (gen_help_event): Adjust prototype.
3151
3152 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3153
3154 * commands.h <last_point_position>: Declare EMACS_INT.
3155
3156 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3157 (truncate_echo_area): Accept EMACS_INT argument.
3158
3159 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3160
3161 * lisp.h (truncate_echo_area): Adjust prototype.
3162
3163 * composite.c (composition_adjust_point): Return EMACS_INT.
3164
3165 * composite.h (composition_adjust_point): Adjust prototype.
3166
3167 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
3168
3169 * process.c (Fmake_network_process): When arg :host is 'local,
3170 use address 127.0.0.1, not name "localhost". (Bug#6781)
3171
3172 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3173
3174 * indent.c (Fcurrent_indentation, indented_beyond_p)
3175 (compute_motion): Use EMACS_INT for buffer position variables.
3176
3177 * lisp.h (indented_beyond_p): Adjust prototype.
3178
3179 * buffer.c (overlay_strings): Return EMACS_INT.
3180
3181 * buffer.h (overlay_strings): Adjust prototype.
3182
3183 * region-cache.c (pp_cache): Adjust format to arguments.
3184
3185 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3186 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3187 (verror): Use EMACS_INT for size of allocated buffer.
3188
3189 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3190 positions.
3191
3192 * xdisp.c (redisplay_internal, try_window_id)
3193 (set_cursor_from_row, find_first_unchanged_at_end_row):
3194 Use EMACS_INT for buffer positions.
3195
3196 * dispextern.h (set_cursor_from_row): Adjust prototype.
3197
3198 * dispnew.c (increment_matrix_positions)
3199 (increment_row_positions, copy_glyph_row_contents)
3200 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3201 positions.
3202
3203 * dispextern.h (mode_line_string, marginal_area_string)
3204 (increment_matrix_positions, increment_row_positions):
3205 Adjust prototypes.
3206
3207 * data.c (Faref, Faset): Use EMACS_INT for string length and
3208 positions.
3209
3210 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3211 characters to insert.
3212
3213 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3214 position and size.
3215
3216 * syntax.c (scan_words, update_syntax_table)
3217 (prev_char_comend_first, back_comment, skip_chars)
3218 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3219 Use EMACS_INT for buffer and string positions.
3220
3221 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3222
3223 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3224 positions.
3225
3226 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3227
3228 * scroll.c (calculate_scrolling, line_ins_del)
3229 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3230 conversion.
3231
3232 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3233 (region_cache_backward, region_cache_forward)
3234 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3235 conversion.
3236
3237 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3238
3239 * eval.c (verror): Fix EMACS_INT/int conversion.
3240
3241 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
3242 (print_preprocess, print_check_string_charset_prop)
3243 (print_object): Fix EMACS_INT/int conversion.
3244
3245 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3246
3247 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3248
3249 * callproc.c (Fcall_process): Use EMACS_INT for count of
3250 characters read from the subprocess.
3251
3252 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3253 positions.
3254 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3255 positions.
3256
3257 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3258 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3259 length.
3260 (advance_to_char_boundary, Fset_buffer_multibyte)
3261 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3262 (overlay_touches_p, record_overlay_string, overlay_strings)
3263 (recenter_overlay_lists, fix_start_end_in_overlays)
3264 (modify_overlay, Fmove_overlay, report_overlay_modification)
3265 (evaporate_overlays): Use EMACS_INT for buffer positions.
3266
3267 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3268 Adjust prototypes.
3269
3270 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3271 positions.
3272
3273 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3274 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3275 (Fsubstring_no_properties, substring_both, Ffillarray)
3276 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3277 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3278 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3279 (Fmd5): Use EMACS_INT for buffer and string positions and length
3280 variables and arguments.
3281
3282 * lisp.h (substring_both): Adjust prototype.
3283
3284 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
3285
3286 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3287 * w32fns.c (clipboard_sequence_fn): Don't declare.
3288 (globals_of_w32fns): Don't initialize it.
3289
3290 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
3291
3292 * syntax.c (back_comment): Detect the case where a 1-char comment
3293 starter is also the 2nd char of a 2-char comment ender.
3294
3295 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
3296
3297 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3298
3299 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3300
3301 * eval.c (verror): EMACS_INT/int cleanup.
3302
3303 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3304 unwind_protect more than 2GB worth of functions.
3305
3306 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3307
3308 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3309 string and avoid compiler warnings.
3310 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3311 all users.
3312
3313 * lread.c (oblookup): EMACS_INT/int cleanup.
3314
3315 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3316
3317 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3318
3319 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3320
3321 * lisp.h (clip_to_bounds): Adjust prototype.
3322
3323 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3324
3325 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3326
3327 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3328
3329 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3330
3331 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3332 cleanup.
3333
3334 * lisp.h: Change the definition of all marker.c functions that
3335 take and return buffer stuff to be EMACS_INT instead of int.
3336
3337 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3338 (buf_charpos_to_bytepos, bytepos_to_charpos)
3339 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3340 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3341 for all buffer positions.
3342
3343 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
3344
3345 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3346 (split_interval_right, find_interval, next_interval)
3347 (delete_node, delete_interval, interval_deletion_adjustment)
3348 (adjust_intervals_for_deletion, merge_interval_right)
3349 (merge_interval_left, graft_intervals_into_buffer)
3350 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3351
3352 * intervals.h (traverse_intervals): Update prototype.
3353
3354 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3355
3356 * indent.c (compute_motion): Use EMACS_INT for arguments to
3357 region_cache_forward.
3358
3359 * region-cache.c (struct boundary, struct region_cache):
3360 Use EMACS_INT for positions.
3361 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3362 (delete_cache_boundaries, set_cache_region)
3363 (invalidate_region_cache, know_region_cache)
3364 (region_cache_forward, region_cache_backward, pp_cache):
3365 Use EMACS_INT for buffer positions.
3366
3367 * region-cache.h (know_region_cache, invalidate_region_cache)
3368 (region_cache_forward, region_cache_backward): Adjust prototypes.
3369
3370 * search.c (string_match_1, fast_c_string_match_ignore_case)
3371 (looking_at_1, scan_buffer, scan_newline)
3372 (find_next_newline_no_quit, find_before_next_newline)
3373 (search_command, trivial_regexp_p, search_buffer, simple_search)
3374 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3375 and string positions and length.
3376
3377 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3378 (find_before_next_newline): Adjust prototypes.
3379
3380 * editfns.c (transpose_markers, update_buffer_properties)
3381 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3382 (get_pos_property, Fconstrain_to_field)
3383 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3384 (Fchar_after, Fchar_before, Finsert_char)
3385 (Finsert_buffer_substring, Fcompare_buffer_substrings)
3386 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3387 Use EMACS_INT for buffer and string position variables.
3388 (Finsert_char): Protect against too large insertions.
3389
3390 * lisp.h (clip_to_bounds): Adjust prototype.
3391
3392 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3393 (balance_an_interval, split_interval_right, split_interval_left)
3394 (find_interval, next_interval, update_interval)
3395 (adjust_intervals_for_insertion, delete_node, delete_interval)
3396 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3397 (offset_intervals, merge_interval_right, merge_interval_left)
3398 (graft_intervals_into_buffer, adjust_for_invis_intang)
3399 (move_if_not_intangible, get_local_map, copy_intervals)
3400 (copy_intervals_to_string, compare_string_intervals)
3401 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
3402 and for interval tree size.
3403
3404 * intervals.h (traverse_intervals, split_interval_right)
3405 (split_interval_left, find_interval, offset_intervals)
3406 (graft_intervals_into_buffer, copy_intervals)
3407 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3408 (update_interval): Adjust prototypes.
3409
3410 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3411 Use EMACS_INT for buffer position variables and arguments.
3412
3413 * composite.c (get_composition_id, find_composition)
3414 (run_composition_function, compose_text)
3415 (composition_gstring_width, autocmp_chars)
3416 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3417 for buffer positions and string length variables and arguments.
3418
3419 * composite.h (get_composition_id, find_composition, compose_text)
3420 (composition_gstring_width): Adjust prototypes.
3421
3422 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3423
3424 * xdisp.c (store_mode_line_noprop, display_mode_element):
3425 Use EMACS_INT for string positions.
3426
3427 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3428 position arguments.
3429
3430 * intervals.h (get_property_and_range): Adjust prototype.
3431
3432 * character.c (parse_str_as_multibyte, str_as_multibyte)
3433 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3434 (string_count_byte8, string_escape_byte8, c_string_width)
3435 (strwidth, lisp_string_width, multibyte_chars_in_text):
3436 Use EMACS_INT for string length variables and arguments.
3437
3438 * character.h (parse_str_as_multibyte, str_as_multibyte)
3439 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3440 (c_string_width, strwidth, lisp_string_width):
3441 Adjust prototypes.
3442
3443 * font.c (font_intern_prop): Use EMACS_INT for string length
3444 variables.
3445
3446 * font.c (font_intern_prop): Use EMACS_INT for string length
3447 variables.
3448
3449 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3450 variables.
3451
3452 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3453 (Fmake_string): Protect against too large strings.
3454 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3455 (live_misc_p): Use ptrdiff_t instead of int for pointer
3456 differences.
3457 (string_bytes, check_sblock, check_string_free_list)
3458 (allocate_string_data, compact_small_strings, Fmake_string)
3459 (Fmake_bool_vector, make_string, make_unibyte_string)
3460 (make_multibyte_string, make_string_from_bytes)
3461 (make_specified_string_string, Fmake_list, Fmake_vector):
3462 Use EMACS_INT for string length variables and arguments.
3463 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3464 (Fpurecopy): Use EMACS_INT for string size.
3465 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3466 for vector size.
3467
3468 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3469 (make_string_from_bytes, make_specified_string_string)
3470 (make_pure_string, string_bytes, check_point_in_composition):
3471 Adjust prototypes.
3472
3473 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3474
3475 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3476 (check_translation): Use EMACS_INT for buffer positions and
3477 length.
3478
3479 * undo.c (record_marker_adjustment, record_delete)
3480 (record_change, record_point, record_insert)
3481 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3482 buffer positions.
3483
3484 * lisp.h (record_marker_adjustment, record_delete)
3485 (record_change, record_point, record_insert)
3486 (record_property_change, Fprimitive_undo): Adjust prototypes.
3487
3488 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
3489 Eli Zaretskii <eliz@gnu.org>
3490
3491 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3492
3493 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3494
3495 * minibuf.c (Fminibuffer_contents)
3496 (Fminibuffer_contents_no_properties)
3497 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3498 positions.
3499
3500 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3501 mark.
3502
3503 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3504 (allocate_string_data): Accept EMACS_INT for string length.
3505
3506 * editfns.c (Ffield_string, Ffield_string_no_properties)
3507 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3508 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3509 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3510 (Ffield_end): Use EMACS_INT for buffer positions.
3511
3512 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3513 point with mark.
3514
3515 * lisp.h (allocate_string_data, make_uninit_string)
3516 (make_uninit_multibyte_string, make_buffer_string)
3517 (make_buffer_string_both): Adjust prototypes.
3518
3519 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
3520
3521 * xml.c: Switch to GNU indentation.
3522 (make_dom): Change parse tree format to match xml.el.
3523 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3524 (Fxml_parse_string_internal): Rename from xml-parse-string.
3525
3526 2010-09-22 Kenichi Handa <handa@m17n.org>
3527
3528 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3529 only if we are not at a composition.
3530 (set_iterator_to_next): Give it->end_charpos to
3531 composition_compute_stop_pos.
3532 (set_iterator_to_next, next_element_from_buffer): Likewise.
3533
3534 * dispnew.c (buffer_posn_from_coords): Fix position when the
3535 current display element is a grapheme cluster in bidi-reordered
3536 region.
3537
3538 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3539
3540 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3541 the regions may overlap.
3542
3543 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
3544
3545 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3546
3547 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3548
3549 * emacs.c: Do not include sys/ioctl.h, not needed.
3550
3551 * doprnt.c: Do not include stdlib.h, config.h does it.
3552 Move #include before macro definition.
3553
3554 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3555
3556 * Makefile.in (temacs): Link using $(CC) not $(LD).
3557 (LD_FIRSTFLAG): Define using autoconf.
3558 (LD): Remove.
3559
3560 Remove HAVE_TERMIOS definitions.
3561 * s/usg5-4-common.h (HAVE_TERMIOS):
3562 * s/template.h (HAVE_TERMIOS):
3563 * s/gnu-linux.h (HAVE_TERMIOS):
3564 * s/darwin.h (HAVE_TERMIOS):
3565 * s/cygwin.h (HAVE_TERMIOS):
3566 * s/bsd-common.h (HAVE_TERMIOS):
3567 * s/aix4-2.h (HAVE_TERMIOS):
3568 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3569 defined on all non-MS platforms.
3570 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3571
3572 * xterm.c (xt_action_hook): Use const.
3573
3574 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
3575
3576 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3577 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3578 (gethostname) [!HAVE_SOCKETS]: Remove.
3579 (SOCK_REPLACE_HANDLE): Remove macro.
3580 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3581 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3582 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3583 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3584
3585 2010-09-18 Eli Zaretskii <eliz@gnu.org>
3586
3587 * deps.mk (xml.o): Add dependencies.
3588
3589 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3590 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
3591
3592 * bidi.c (bidi_paragraph_init): Accept an additional argument
3593 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3594 search back until a paragraph with a strong directional character
3595 is found, and use that to determine paragraph's base direction.
3596
3597 * dispextern.h (bidi_paragraph_init): Update prototype.
3598
3599 2010-09-17 Eli Zaretskii <eliz@gnu.org>
3600
3601 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3602 of w32api >= 3.15. (Bug#6989)
3603
3604 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3605
3606 * process.c (wait_reading_process_output): Don't message about
3607 accept-process-output unless the time limit really is zero.
3608
3609 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3610
3611 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3612 int/Lisp_Object mixup).
3613
3614 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3615
3616 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3617 not HELP.
3618
3619 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
3620
3621 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3622 bar's pixel width to Lisp (Bug#7048).
3623
3624 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3625
3626 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3627
3628 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3629
3630 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3631 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3632
3633 2010-09-17 Kenichi Handa <handa@m17n.org>
3634
3635 * ftfont.c (ftfont_check_otf): Fix previous change.
3636
3637 2010-09-14 Kenichi Handa <handa@m17n.org>
3638
3639 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3640 existence of GSUB or GPOS.
3641
3642 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3643
3644 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3645
3646 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3647
3648 * xml.c (parse_buffer): Rename to parse_string(), since that's
3649 what it does.
3650 (parse_string): Return nil when the document can't be parsed.
3651
3652 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
3653
3654 * xterm.c (get_current_vm_state): New function.
3655 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3656 want_fullscreen so set_wm_state calls are few (Bug#7013).
3657 (x_handle_net_wm_state): Move code to get_current_vm_state and
3658 call that function.
3659
3660 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
3661
3662 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3663
3664 2010-09-14 Kenichi Handa <handa@m17n.org>
3665
3666 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3667 we may use designation or locking-shift.
3668
3669 2010-09-14 Kenichi Handa <handa@m17n.org>
3670
3671 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3672 sequence when the source is multibyte.
3673
3674 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3675
3676 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3677 Don't make first argument optional. Doc fix.
3678
3679 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3680
3681 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3682 parameters for the doc string.
3683
3684 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3685
3686 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3687
3688 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3689
3690 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3691 (syms_of_fns): Don't defsubr Sy_or_n_p.
3692 * lisp.h: Don't declare Fy_or_n_p.
3693 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3694
3695 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3696
3697 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3698
3699 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3700
3701 * xml.c: New file.
3702 (Fhtml_parse_buffer): New function to interface to the libxml2
3703 html parsing function.
3704
3705 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
3706
3707 * biditype.h: Regenerate.
3708
3709 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3710
3711 * nsimage.m (ns_load_image): Check argument types.
3712
3713 * image.c: Remove all uses of gcpro.
3714 (xpm_load): Check all lisp types.
3715 (pbm_load): Likewise.
3716 (png_load): Likewise.
3717 (jpeg_load): Likewise.
3718 (tiff_load): Likewise.
3719 (gif_load): Likewise.
3720 (imagemagick_load_image): Likewise.
3721 (imagemagick_load): Likewise.
3722 (svg_load): Likewise.
3723 (gs_load): Likewise.
3724
3725 2010-09-04 Eli Zaretskii <eliz@gnu.org>
3726
3727 * w32uniscribe.c (uniscribe_shape): Update commentary.
3728 Don't try to reorder grapheme clusters, since LGSTRING should always
3729 hold them in the logical order.
3730 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3731 return glyph codes in the logical order.
3732
3733 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3734
3735 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
3736 (imagemagick_load_image): Fix type mismatch.
3737 (Fimagemagick_types): Likewise. Doc fix.
3738
3739 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3740
3741 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3742
3743 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3744
3745 * xselect.c: Remove declaration of cut-buffer objects and functions.
3746 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3747 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3748 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3749 (Fx_rotate_cut_buffers_internal): Remove.
3750 (syms_of_xselect): Remove defsubr of above.
3751 Remove intern of QCUT_BUFFERn.
3752
3753 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3754
3755 * cmds.c (Vblink_paren_function): Remove.
3756 (internal_self_insert): Make it insert N chars at a time.
3757 Don't call blink-paren-function.
3758 (Fself_insert_command): Adjust accordingly.
3759 (syms_of_cmds): Don't declare blink-paren-function.
3760
3761 2010-08-31 Kenichi Handa <handa@m17n.org>
3762
3763 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3764 characters.
3765
3766 * term.c (encode_terminal_code): Fix the previous change.
3767 (produce_glyphs): Don't set it->char_to_display here.
3768 Don't handle unibyte-display-via-language-environment here.
3769 (produce_special_glyphs): Set temp_it.char_to_display before
3770 calling produce_glyphs.
3771
3772 * xdisp.c (get_next_display_element): Set it->char_to_display
3773 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3774 characters.
3775 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3776 calling PRODUCE_GLYPHS.
3777 (append_space_for_newline): Save and store it->char_to_display.
3778 Set it->char_to_display before calling PRODUCE_GLYPHS.
3779 (extend_face_to_end_of_line): Set it->char_to_display before
3780 calling PRODUCE_GLYPHS.
3781 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3782 character to its byte value.
3783 (get_char_glyph_code): New function.
3784 (produce_stretch_glyph): Set it2.char_to_display too before
3785 calling x_produce_glyphs.
3786 (x_produce_glyphs): Simplify by using the same code for ASCII and
3787 non-ASCII characters. Don't set it->char_to_display here.
3788 Don't handle unibyte-display-via-language-environment here. For a
3789 character of no glyph, use font->space_width instead of FONT_WIDTH.
3790
3791 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3792
3793 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3794
3795 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
3796
3797 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3798
3799 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3800
3801 * marker.c (Fcopy_marker): Make the first arg optional.
3802
3803 2010-08-30 Kenichi Handa <handa@m17n.org>
3804
3805 * composite.c (composition_update_it): Fix computing of
3806 cmp_it->width.
3807
3808 2010-08-29 Kenichi Handa <handa@m17n.org>
3809
3810 * term.c (encode_terminal_code): Encode byte chars to the
3811 corresponding bytes.
3812
3813 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3814
3815 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3816
3817 2010-08-26 Kenichi Handa <handa@m17n.org>
3818
3819 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3820 on calling composition_compute_stop_pos.
3821
3822 2010-08-25 Kenichi Handa <handa@m17n.org>
3823
3824 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3825 :otf.
3826
3827 * composite.c (composition_compute_stop_pos): Don't break
3828 composition at PT.
3829 (composition_reseat_it): Likewise. Fix calculation of character
3830 position starting a composition.
3831 (Fcomposition_get_gstring): Don't limit the number of components
3832 for automatic composition.
3833
3834 2010-08-25 Kenichi Handa <handa@m17n.org>
3835
3836 * composite.c (composition_compute_stop_pos): In forward search,
3837 pay attention to the possibility that some character after ENDPOS
3838 will be composed with charactrs before ENDPOS.
3839
3840 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
3841
3842 * keyboard.c (command_loop_1): Don't clobber primary selection
3843 during handle-switch-frame (Bug#6872).
3844
3845 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
3846
3847 * dbusbind.c: Accept UNIX domain sockets as bus address.
3848 (Fdbus_close_bus): New function.
3849 (Vdbus_registered_buses): New variable.
3850 (xd_initialize): Implement string as bus address.
3851 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3852 (Fdbus_get_unique_name, Fdbus_call_method)
3853 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3854 (Fdbus_method_error_internal, Fdbus_send_signal)
3855 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3856 check. This is done in xd_initialize_bus. Adapt doc string, if
3857 necessary.
3858 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3859 Vdbus_registered_buses.
3860 (Vdbus_registered_objects_table): Create hash.
3861
3862 2010-08-22 Juri Linkov <juri@jurta.org>
3863
3864 * keyboard.c (Fexecute_extended_command): Move reading a command name
3865 with `completing-read' to a new Elisp function `read-extended-command'.
3866 Call it to read a command to `function' (bug#5364, bug#5214).
3867
3868 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3869
3870 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3871
3872 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
3873
3874 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3875 instead of SAFE_ALLOCA.
3876
3877 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3878
3879 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3880 (Bug#6214).
3881
3882 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3883
3884 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3885
3886 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3887
3888 * doc.c (Fsnarf_documentation): Initialize skip_file before
3889 build-files test.
3890
3891 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
3892
3893 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3894 New definitions.
3895 (HAVE_TERMIO): Remove.
3896
3897 2010-08-22 Eli Zaretskii <eliz@gnu.org>
3898
3899 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3900
3901 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3902 for w32.
3903
3904 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3905 it's done in nt/config.nt.
3906
3907 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3908
3909 * unexcoff.c (report_error, make_hdr, write_segment)
3910 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3911 Convert argument lists and prototypes to ANSI C.
3912 (make_hdr, write_segment): Remove unused variables.
3913 (unexec): Remove commented-out line. Initialize `new' to shut up
3914 compiler warnings.
3915
3916 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3917
3918 Simplify termio code.
3919 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3920 HAVE_TERMIO code is obsolete.
3921 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3922 * systty.h: Do not define HAVE_TCATTR.
3923 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3924 Do not define EMACS_HAVE_TTY_PGRP. Only define
3925 EMACS_GET_TTY_PGRP for !DOS_NT.
3926 * sysdep.c: Include sysselect.h unconditionally. Do not include
3927 sys/ioctl.h and termios.h, systty.h does it.
3928 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
3929 (init_baud_rate): Remove HAVE_TERMIO code.
3930 (child_setup_tty): Remove HAVE_TERMIO code.
3931 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3932 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3933 (new_ltchars, new_tchars): Remove, unused.
3934 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
3935 code. Remove special casing for __mips__, it was a no-op.
3936 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
3937 (init_sys_modes): Remove HPUX special case.
3938 * process.c: Include stdlib.h unconditionally. Do not include
3939 fcntl.h, systty.h does it. Remove conditional code for
3940 HAVE_SERIAL, it is always true.
3941 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3942 always true when SIGNALS_VIA_CHARACTERS is true.
3943 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3944 !WINDOWSNT means HAVE_TERMIOS.
3945 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3946 conditional, which is true for all HAVE_TERMIOS systems.
3947 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3948 instead of HAVE_TERMIOS.
3949 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3950 EMACS_HAVE_TTY_PGRP.
3951 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3952 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3953 anyway.
3954
3955 2010-08-21 Eli Zaretskii <eliz@gnu.org>
3956
3957 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3958 mirroring pixel positions.
3959
3960 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3961
3962 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3963 write only.
3964 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3965 malloc_sbrk_used, nothing uses them.
3966
3967 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3968 defined, unconditionally defined in lisp.h.
3969
3970 * term.c: Do not include <termios.h>, systty.h does it.
3971
3972 * s/unixware.h (HAVE_TCATTR):
3973 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3974 systty.h defines it when HAVE_TERMIOS is defined.
3975
3976 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3977
3978 * dispnew.c (buffer_posn_from_coords): Fix last change for text
3979 terminals: add one-character offset for R2L lines.
3980
3981 * emacs.c <emacs_version>: Add a comment regarding
3982 msdos/mainmake.v2's dependency on the syntax of this declaration.
3983
3984 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3985
3986 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3987 position for R2L lines by mirroring the pixel position wrt the
3988 text are box. Improve commentary.
3989
3990 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3991
3992 * image.c (imagemagick_clear_image): Remove debugging output.
3993
3994 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3995
3996 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3997 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3998 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3999 self-insert-face.
4000 (syms_of_cmds): Initialize the new vars.
4001
4002 2010-08-19 Jason Rumney <jasonr@gnu.org>
4003
4004 * w32menu.c (set_frame_menubar): Remove call to undefined function.
4005
4006 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
4007
4008 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
4009
4010 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
4011
4012 2010-08-18 Eli Zaretskii <eliz@gnu.org>
4013
4014 * xterm.c (x_draw_bar_cursor):
4015 * w32term.c (x_draw_bar_cursor): If the character under cursor is
4016 R2L, draw the bar cursor on its right rather than on its left.
4017
4018 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
4019
4020 * eval.c (Fdefmacro): Only obey one declaration.
4021
4022 * casefiddle.c (casify_region): Setup gl_state.
4023
4024 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4025
4026 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
4027
4028 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4029
4030 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
4031
4032 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
4033
4034 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
4035 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
4036 QPRIMARY => NXPrimaryPboard.
4037 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
4038 NXPrimaryPboard => QPRIMARY.
4039 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
4040 NXSecondaryPboard = SecondarySelection.
4041 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
4042
4043 2010-08-18 Joakim Verona <joakim@verona.se>
4044
4045 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
4046 defined:
4047 (imagemagick_image_p): New function to test for ImageMagic image.
4048 (imagemagick_load): New function to load ImageMagick image.
4049 (imagemagick_load_image): New function, helper for imagemagick_load.
4050 (imagemagick-types): New function.
4051 (Qimagemagick): New Lisp_object.
4052 (imagemagick-render-type): New variable, decides which renderer to use.
4053
4054 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
4055
4056 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
4057 is a string.
4058
4059 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
4060
4061 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
4062 x_set_tool_bar_position handler.
4063
4064 2010-08-17 Eli Zaretskii <eliz@gnu.org>
4065
4066 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
4067 x_set_tool_bar_position handler, needed to support changes from
4068 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
4069
4070 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
4071
4072 * nsselect.m: include keyboard.h for QPRIMARY, remove its
4073 declaration (Bug#6863).
4074 (syms_of_nsselect): Don't intern QPRIMARY.
4075
4076 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
4077
4078 * keyboard.h (QPRIMARY): Declare (Bug#6864).
4079
4080 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
4081
4082 * keyboard.c (command_loop_1): Avoid setting selection twice,
4083 since it's done in deactivate-mark as well.
4084 (Vselect_active_regions): Change default to t. Replace `lazy'
4085 with non-default value `only', meaning only set PRIMARY for
4086 temporarily active regions.
4087
4088 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4089 select-active-regions.
4090
4091 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4092
4093 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4094 isn't a string.
4095
4096 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4097
4098 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4099
4100 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4101
4102 * keyboard.c (parse_tool_bar_item): malloc buf.
4103 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4104 new_lbl (Bug#6855).
4105
4106 2010-08-14 Eli Zaretskii <eliz@gnu.org>
4107
4108 * xterm.c (x_draw_stretch_glyph_string):
4109 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4110 the cursor on the right edge of the stretch glyph.
4111
4112 * xdisp.c (window_box_right_offset, window_box_right):
4113 Fix commentary.
4114
4115 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4116 direction when point is inside a run of whitespace characters.
4117
4118 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4119
4120 2010-08-14 Jason Rumney <jasonr@gnu.org>
4121
4122 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4123
4124 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
4125
4126 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4127
4128 2010-08-13 Jason Rumney <jasonr@gnu.org>
4129
4130 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4131 (MessageBoxW_Proc): New function typedef.
4132 (unicode-message-box): New function pointer.
4133 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
4134
4135 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4136
4137 * frame.h (Qtool_bar_position): Declare.
4138
4139 * xfns.c (Fx_create_frame): Call x_default_parameter for
4140 Qtool_bar_position.
4141
4142 2010-08-13 Eli Zaretskii <eliz@gnu.org>
4143
4144 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4145 (report_error, report_error_1): Ditto.
4146 (write_segment): Remove "#if 0" unused code.
4147 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4148 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4149 (start_of_text): Remove unused function (was used only if NO_REMAP
4150 was NOT defined).
4151
4152 * msdos.c (IT_set_face): Fix format string to match argument
4153 types.
4154 (IT_write_glyphs, IT_note_mode_line_highlight)
4155 (IT_set_frame_parameters): Remove unused variables.
4156 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4157 (IT_set_terminal_modes): Disambiguate expression in if clause.
4158 (Fmsdos_remember_default_colors): Return Qnil.
4159 (IT_set_frame_parameters): Add parens to disambiguate boolean
4160 expression for logging the cursor type to termscript.
4161 (keyboard_layout_list, keypad_translate_map)
4162 (grey_key_translate_map): Add braces in inner initializers.
4163 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4164 (dos_rawgetc): Remove unused label.
4165 (XMenuActivate): Add braces to remove ambiguous `else'.
4166 (dos_ttraw): Always return a value.
4167 (spawnve): Declare.
4168 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4169
4170 * dosfns.h (x_set_title): Declare.
4171
4172 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4173 Remove unused variables.
4174
4175 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4176 variables.
4177 (init_dosfns): Declare get_lim_data.
4178 (system_process_attributes): Declare Fget_internal_run_time.
4179
4180 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4181 list to be consistent with menu.h.
4182
4183 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4184 warnings due to mixing of "char *" and "const char *".
4185
4186 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4187
4188 Introduce a new comment style "c" flag.
4189 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4190 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4191 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4192 (syntax_prefix_flag_p): New function.
4193 (Fstring_to_syntax): Understand new "c" flag.
4194 (Finternal_describe_syntax_value): Recognize new flag; use the
4195 SYNTAX_FLAGS_* macros.
4196 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4197 comment style to accomodate the new styles.
4198 (back_comment, forw_comment, Fforward_comment, scan_lists)
4199 (scan_sexps_forward): Update code to obey the new comment style flag.
4200
4201 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4202
4203 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4204
4205 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4206
4207 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4208 first.
4209 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
4210
4211 * gtkutil.h (xg_check_special_colors): Declare.
4212
4213 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4214 (xg_create_frame_widgets): Connect theme name changes to
4215 style_changed_cb.
4216
4217 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4218 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4219 (x_term_init): Use char[] display_opt and name_opt instead of
4220 string literal. file is const char*.
4221
4222 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4223 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4224 props. Free them at the end.
4225
4226 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4227
4228 * xrdb.c (get_system_app): Make path const and use char *p for
4229 non-const char.
4230
4231 * xmenu.c (Fx_popup_dialog): error_name is const char*.
4232 (xmenu_show): error parameter is const char **. pane_string is const
4233 char *.
4234 (button_names): Is const char *.
4235 (xdialog_show): error_name and pane_string is const.
4236
4237 * process.h (synch_process_death): Is const char*.
4238
4239 * w32menu.c (w32_menu_show):
4240 * nsmenu.m (ns_menu_show): error parameter is const char **.
4241
4242 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4243 is const char **.
4244
4245 * menu.c (Fx_popup_menu): error_name is const.
4246
4247 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4248 with unsigned char and XtPointer with void *.
4249
4250 * gtkutil.h: Replace widget_value with struct _widget_value.
4251 (enum button_type, struct _widget_value): Remove and use the one from
4252 keyboard.h.
4253
4254 * gtkutil.c (get_utf8_string): Always return an allocated string.
4255 Parameter is const.
4256 (create_dialog, xg_create_one_menuitem, create_menus)
4257 (xg_item_label_same_p, xg_update_menu_item): Free result from
4258 get_utf8_string.
4259 (xg_separator_p, xg_item_label_same_p): label is const.
4260
4261 * font.h (font_open_by_name): Make name const.
4262
4263 * font.c (font_open_by_name): Make name const.
4264
4265 * floatfns.c (matherr): Use a const char* variable for x->name.
4266
4267 * emacs.c (main): Pass char[] to putenv instead of literal.
4268
4269 * callproc.c (synch_process_death): Make const.
4270 (Fcall_process): Make signame const.
4271
4272 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4273 (addDisplayItemWithImage): Use const char*.
4274
4275 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4276 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4277
4278 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4279
4280 * keyboard.h (_widget_value): name, value and key are const char*.
4281
4282 * unexmacosx.c (unexec_error): Use const char *.
4283
4284 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4285
4286 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4287 (font_parse_name, font_open_by_name):
4288 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4289 (font_parse_name, font_open_by_name): Remove const.
4290
4291 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4292
4293 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4294 definition.
4295
4296 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4297 * m/amdx86-64.h: Likewise.
4298 * m/arm.h: Likewise.
4299 * m/hp800.h: Likewise.
4300 * m/ia64.h: Likewise.
4301 * m/ibmrs6000.h: Likewise.
4302 * m/ibms390.h: Likewise.
4303 * m/intel386.h: Likewise.
4304 * m/iris4d.h: Likewise.
4305 * m/m68k.h: Likewise.
4306 * m/macppc.h: Likewise.
4307 * m/mips.h: Likewise.
4308 * m/sh3.h: Likewise.
4309 * m/sparc.h: Likewise.
4310 * m/template.h: Likewise.
4311 * m/vax.h: Likewise.
4312 * m/xtensa.h: Likewise.
4313 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4314 WORDS_BIG_ENDIAN.
4315 * lisp.h: Likewise.
4316 * md5.c: Likewise.
4317 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4318
4319 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4320
4321 Use const char* instead of char*.
4322 Reduce the number of warnings with -Wwrite-strings.
4323 * xrdb.c (get_environ_db, get_system_name):
4324 * unexelf.c (find_section):
4325 * term.c (string_cost, string_cost_one_line, per_line_cost)
4326 (get_named_tty, init_tty):
4327 * sysdep.c (sys_subshell):
4328 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4329 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4330 * search.c (Freplace_match):
4331 * process.c (Fmake_network_process, send_process, init_process):
4332 * lread.c (Fload, init_lread):
4333 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4334 * keyboard.c (parse_tool_bar_item, struct event_head):
4335 * gtkutil.h (xg_get_font_name):
4336 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4337 (make_widget_for_menu_item, make_menu_item, create_menus)
4338 (xg_make_tool_item):
4339 * font.c (parse_matrix, font_parse_name):
4340 * floatfns.c (rounding_driver, float_error_fn_name):
4341 * filelock.c (get_boot_time_1, lock_file_1):
4342 * fileio.c (barf_or_query_if_file_exists, check_writable):
4343 * editfns.c (get_system_name, get_operating_system_release)
4344 (Fencode_time, Fset_time_zone_rule):
4345 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4346 * buffer.c (defvar_per_buffer): Use const.
4347
4348 2010-08-08 Kenichi Handa <handa@m17n.org>
4349
4350 * charset.c: Include <stdlib.h>.
4351 (struct charset_sort_data): New struct.
4352 (charset_compare): New function.
4353 (Fsort_charsets): New function.
4354 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4355
4356 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4357 number in CTEXT extended segment.
4358
4359 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4360
4361 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4362 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4363
4364 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4365
4366 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4367 (Fhash_table_size): Fix typos in docstrings.
4368 (Fmake_hash_table): Doc fix.
4369
4370 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4371
4372 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4373 Doc fix (bug#5625).
4374
4375 2010-08-08 Ken Brown <kbrown@cornell.edu>
4376
4377 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4378 the MSDOS definition.
4379
4380 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4381
4382 Use const char* instead of char*.
4383 * xterm.c (x_create_toolkit_scroll_bar):
4384 * xfont.c (xfont_list_pattern):
4385 * xfns.c (x_default_scroll_bar_color_parameter)
4386 (xic_create_fontsetname, x_default_font_parameter)
4387 (x_screen_planes):
4388 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4389 (store_mode_line_string, decode_mode_spec, display_string):
4390 * menu.c (digest_single_submenu):
4391 * keymap.h (initial_define_key, initial_define_lispy_key):
4392 * keymap.c (initial_define_key, initial_define_lispy_key):
4393 * image.c (image_error, image_keyword):
4394 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4395 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4396 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4397 (ftfont_list, ftfont_match):
4398 * frame.c (frame_parm_table):
4399 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4400 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4401 (font_add_log, font_deferred_log):
4402 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4403 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4404 (font_add_log, font_deferred_log):
4405 * emacs.c (argmatch):
4406 * dispextern.h (struct it):
4407 * coding.c (ENCODE_DESIGNATION):
4408 * charset.c (define_charset_internal): Use const.
4409
4410 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4411
4412 * xrdb.c: Remove include guard.
4413 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
4414 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4415 realloc->xrealloc instead of using #defines.
4416
4417 2010-08-08 Eli Zaretskii <eliz@gnu.org>
4418
4419 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
4420 * editfns.c (Fline_beginning_position, Fline_end_position):
4421 State in the doc strings that start and end of line are in the
4422 logical order.
4423
4424 * xdisp.c (display_line): Move the handling of overlay arrow after
4425 the call to find_row_edges. (Bug#6699)
4426
4427 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4428
4429 * keyboard.c (command_loop_1):
4430 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4431
4432 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4433
4434 * insdel.c (prepare_to_modify_buffer): Save active region text to
4435 Vsaved_region_selection.
4436
4437 * xselect.c (QPRIMARY): Move to keyboard.c.
4438
4439 * keyboard.c (Vselect_active_regions): Move from simple.el.
4440 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4441 (command_loop_1): Set window selection prior to deactivating the mark.
4442
4443 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
4444
4445 * alloc.c (lisp_malloc):
4446 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4447 * charset.h (emacs_mule_charset):
4448 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4449 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4450 (bitch_at_user):
4451 * lisp.h (Fcheck_coding_system, Fget_text_property)
4452 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4453 Remove duplicate declarations.
4454
4455 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4456
4457 * process.c: Simplify include logic.
4458
4459 * keyboard.h (quit_char): Add declaration.
4460 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
4461 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4462 Add declarations.
4463 * sysdep.c:
4464 * w32.c: Remove the above declarations.
4465
4466 Remove extern declarations in .c files, .h files have them.
4467 * xterm.c:
4468 * xdisp.c:
4469 * msdos.c:
4470 * image.c:
4471 * gtkutil.c:
4472 * fileio.c:
4473 * eval.c: Remove declarations.
4474
4475 * frame.c (frame_params): Make const.
4476
4477 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4478
4479 * emacs.c (emacs_copyright, emacs_version): Make static.
4480 (Vinitial_window_system, Vauto_save_list_file_name)
4481 (Vinhibit_redisplay): Remove declarations.
4482 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4483 for AIX.
4484
4485 Use const for some arrays and functions.
4486 * xterm.h (xg_set_icon_from_xpm_data):
4487 * xfns.c (xg_set_icon_from_xpm_data):
4488 * term.c (fkeys):
4489 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4490 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4491 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4492 (frame.c frame_parms):
4493 * emacs-icon.h (gnu_xpm_bits):
4494 * callint.c (callint_argfuns): Use const.
4495
4496 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4497
4498 * sysdep.c: Move include term.h last of includes (Bug#6812).
4499
4500 2010-08-06 Eli Zaretskii <eliz@gnu.org>
4501
4502 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4503
4504 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4505
4506 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4507
4508 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4509
4510 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4511
4512 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4513
4514 * xterm.h (x_get_focus_frame): Declare.
4515
4516 * keyboard.h (poll_for_input_1): Unconditionally declare.
4517
4518 * nsterm.h (x_set_menu_bar_lines): Declare.
4519
4520 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4521
4522 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4523
4524 * window.c: Include menu.h.
4525
4526 * unexmacosx.c (print_region_list, print_regions)
4527 (build_region_list, find_emacs_zone_regions)
4528 (unexec_regions_merge, read_load_commands, dump_it)
4529 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4530
4531 * term.c: Check HAVE_SYS_IOCTL_H.
4532
4533 * sysdep.c: Check HAVE_TERM_H.
4534
4535 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
4536
4537 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4538 (ns_ring_bell, ns_defined_color, hide_hourglass)
4539 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4540 Convert to ANSI C prototypes.
4541 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4542 before code.
4543
4544 * nsterm.h : Include sysselect.h.
4545 (x_sync, x_get_focus_frame, x_set_mouse_position)
4546 (x_set_mouse_pixel_position, x_make_frame_visible)
4547 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4548 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4549 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4550 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
4551 Declare.
4552
4553 * nsmenu.m (popup_activated, name_is_separator)
4554 (syms_of_nsmenu): Convert to ANSI C prototypes.
4555 (runMenuAt): Prototypes and move declarations before code.
4556
4557 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4558
4559 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4560 prototypes.
4561
4562 * nsfns.m (have_menus_p, ns_display_info_for_name)
4563 (x_set_cursor_type, ns_appkit_version_str)
4564 (ns_appkit_version_int, ns_do_applescript)
4565 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4566 (syms_of_nsfns): Convert to ANSI C prototypes.
4567
4568 * menu.h (x_set_menu_bar_line): Declare.
4569 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4570
4571 * lisp.h (fmod_float): Declare.
4572
4573 * image.c (xpm_scan, xpm_make_color_table_v)
4574 (xpm_put_color_table_v, xpm_get_color_table_v)
4575 (xpm_make_color_table_h, xpm_put_color_table_h)
4576 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4577 (xpm_load): Convert to ANSI C prototypes.
4578
4579 * emacs.c: Include nsterm.h if HAVE_NS.
4580
4581 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4582
4583 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4584
4585 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4586 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4587 (socket_options): Use const char* for name.
4588
4589 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4590
4591 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4592
4593 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4594 Don't declare xmalloc_widget_value and digest_single_submenu.
4595
4596 * w32font.c (Qlatin): Remove declaration.
4597
4598 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4599
4600 * dired.c (compile_pattern): Restore declaration.
4601
4602 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4603
4604 Remove extern declarations in .c files, .h files have them.
4605 * data.c:
4606 * dired.c:
4607 * editfns.c:
4608 * filelock.c:
4609 * fns.c:
4610 * font.c:
4611 * fontset.c:
4612 * frame.c:
4613 * fringe.c:
4614 * ftfont.c:
4615 * gtkutil.c:
4616 * indent.c:
4617 * keyboard.c:
4618 * keymap.c:
4619 * lread.c:
4620 * menu.c:
4621 * print.c:
4622 * search.c:
4623 * sound.c:
4624 * window.c:
4625 * xdisp.c:
4626 * xfaces.c:
4627 * xfns.c:
4628 * xfont.c:
4629 * xftfont.c:
4630 * xmenu.c:
4631 * xterm.c: Remove declarations.
4632
4633 Cleanup syssignal.h.
4634 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4635 (main_thread): Move down to remove #ifdef.
4636 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4637 Remove conditional definition following unconditional ones.
4638
4639 * lisp.h: Remove HAVE_SHM code, unused.
4640 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4641 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4642 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4643 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4644 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4645 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4646 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4647 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4648 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4649 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4650 (Qwindow_scroll_functions, Vafter_load_alist)
4651 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4652 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4653 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4654 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4655 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4656 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4657 (initial_argv, last_nonmenu_event, load_in_progress)
4658 (noninteractive_need_newline, scroll_margin): Add declarations.
4659
4660 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4661 Remove declarations, menu.h has them.
4662 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4663 (Vinput_method_function, Qinput_method_function)
4664 (Qevent_symbol_element_mask, last_event_timestamp):
4665 * dispextern.h (Voverflow_newline_into_fringe):
4666 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4667 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4668 (syms_of_w32font, syms_of_nsfont):
4669 * fontset.h (find_font_encoding, Qlatin):
4670 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4671 (Vtool_bar_mode, set_frame_menubar):
4672 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4673 * xterm.h (Qx_gtk_map_stock):
4674 * keymap.h (meta_prefix_char): Add declarations.
4675
4676 * term.c: Remove dead code.
4677
4678 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4679 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4680 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4681 which is what was there before BSD_PGRPS was removed.
4682
4683 2010-08-05 Eli Zaretskii <eliz@gnu.org>
4684
4685 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4686
4687 * unexcoff.c: Renamed from unexec.c.
4688
4689 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4690
4691 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4692
4693 2010-08-03 Johan Bockgård <bojohan@gnu.org>
4694
4695 * data.c (Flocal_variable_p): Handle variable aliases correctly.
4696 (Bug#6744)
4697
4698 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4699
4700 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4701 to TRUE if depth of screen is < 16.
4702
4703 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4704 USE_GTK_TOOLTIP.
4705 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4706 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4707 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
4708 USE_GTK_TOOLTIP.
4709 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4710
4711 * xterm.h (USE_GTK_TOOLTIP): New define.
4712 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4713
4714 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4715 to Control-D (Bug#6771).
4716
4717 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
4718
4719 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4720 Wording by Drew Adams <drew.adams@oracle.com>.
4721
4722 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4723
4724 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4725 ttip_lbl.
4726
4727 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4728 calling gtk_widget_queue_draw.
4729 (x_free_frame_resources): Call xg_free_frame_widgets.
4730
4731 * xfns.c (x_gtk_use_system_tooltips): New variable.
4732 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4733 new gtkutil tooltip functions to show the tooltip.
4734 (Fx_hide_tip): Call xg_hide_tooltip.
4735 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4736
4737 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4738 (xg_show_tooltip, xg_hide_tooltip): Declare.
4739
4740 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
4741 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4742 New functions.
4743 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4744 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4745 Remove code that is commented out.
4746
4747 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4748
4749 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4750
4751 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
4752
4753 * xselect.c (x_own_selection): Use list4.
4754
4755 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4756
4757 * buffer.c (Qwindow): Do not define, already defined in data.c.
4758 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4759
4760 2010-07-29 Chad Brown <yandros@mit.edu>
4761
4762 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4763 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4764 * config.in: Undef HAVE_DIRENT_H.
4765 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
4766 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
4767
4768 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4769
4770 Rename s/usg5-4.h -> s/usg5-4-common.h.
4771 * s/usg5-4.h: Rename file to ...
4772 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4773 * s/unixware.h:
4774 * s/sol2-6.h:
4775 * s/irix6-5.h: Update includes accordingly.
4776
4777 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4778
4779 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4780
4781 * xterm.h (struct x_output): Add toolbar_top_height,
4782 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4783 Remove toolbar_height.
4784 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
4785 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4786 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4787 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4788
4789 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4790
4791 * xfns.c (x_set_tool_bar_position): New function.
4792 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4793 (x_frame_parm_handlers): Add x_set_tool_bar_position.
4794 (syms_of_xfns): If USE_GTK, provide move-toolbar.
4795
4796 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4797 and FRAME_TOOLBAR_LEFT_WIDTH.
4798
4799 * gtkutil.h (xg_change_toolbar_position): Declare.
4800
4801 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4802 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4803 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4804 (xg_create_frame_widgets): Create a hobox for placing widgets
4805 vertically. Use gtk_box_pack_start.
4806 (xg_height_or_width_changed): Rename from xg_height_changed.
4807 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4808 (xg_update_frame_menubar, free_frame_menubar): Change to
4809 xg_height_or_width_changed.
4810 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4811 size correctly. Remove hardcoded 4, instead use handlebox size -
4812 toolbar size.
4813 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
4814 size correctly. Use handlebox size + toolbar size as additional size.
4815 (xg_pack_tool_bar): POS is a new parameter.
4816 Set orientation of tool bar based on pos.
4817 Only make handlebox_widget if NULL.
4818 Check if tool bar goes to vbox or hbox depending on pos.
4819 (xg_update_tool_bar_sizes): New function.
4820 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
4821 height, call xg_update_tool_bar_sizes instead.
4822 (free_frame_tool_bar): Remove from hbox or vbox depending on
4823 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4824 (xg_change_toolbar_position): New function.
4825
4826 * frame.h (struct frame): Add tool_bar_position.
4827 (Qbottom): Declare.
4828
4829 * frame.c (Qtool_bar_position): New variable.
4830 (make_frame): Set tool_bar_position to Qtop.
4831 (frame_parms): Add tool-bar-position.
4832 (x_report_frame_params): Store tool_bar_position.
4833 (x_set_fringe_width): Reset wm size hint after fringe changes.
4834
4835 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4836
4837 Make lisp_time_argument declaration work on all systems.
4838 * lisp.h (lisp_time_argument): Move declaration ...
4839 * systime.h (lisp_time_argument): ... here
4840 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4841
4842 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4843
4844 * vm-limit.c (POINTER): Add typedef for it.
4845 (start_of_data): Change return type from POINTER to char *.
4846
4847 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4848 HAVE_WINDOW_SYSTEM.
4849
4850 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4851
4852 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4853 Remove reference to __osf__, unused.
4854
4855 * mem-limits.h: Remove duplicated includes.
4856 (NULL): Remove definition, unused.
4857 (POINTER): Remove definition.
4858 (start_of_data): Use char* in prototype, as the function
4859 definition does.
4860
4861 Remove extern declarations from .c files, and them to .h files.
4862 * keyboard.h (Qhelp_echo, waiting_for_input)
4863 (input_available_clear_time, ignore_mouse_drag_p)
4864 (Vdouble_click_time, real_this_command, Vthis_original_command):
4865 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4866 (Voverriding_local_map_menu_flag):
4867 * lisp.h (Qinteractive_form, use_file_dialog)
4868 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4869 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4870 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4871 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4872 (Qfunction, debug_on_next_call, Qfield)
4873 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4874 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4875 (Qfile_directory_p, Qinsert_file_contents)
4876 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4877 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4878 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4879 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4880 (Qminibuffer_prompt)
4881 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4882 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4883 (gray_bitmap_bits, xic_create_fontsetname):
4884 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4885
4886 * xsmfns.c (Vuser_login_name):
4887 * xrdb.c (Vdouble_click_time):
4888 * xfaces.c (xic_create_fontsetname):
4889 * w32select.c (waiting_for_input):
4890 * print.c (minibuffer_auto_raise):
4891 * msdos.c (Qhelp_echo):
4892 * macros.c (real_this_command):
4893 * keymap.c (Voverriding_local_map):
4894 * xterm.c (poll_for_input_1, gray_bitmap_width)
4895 (gray_bitmap_height, gray_bitmap_bits;
4896 * xmenu.c ( Voverriding_local_map)
4897 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4898 (use_file_dialog, Xt_app_con):
4899 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4900 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4901 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4902 (Qtool_bar_lines, ignore_mouse_drag_p):
4903 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4904 (Qrear_nonsticky, nconc2):
4905 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4906 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4907 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4908 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4909 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4910 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4911 (gc_in_progress):
4912 * doc.c (Voverriding_local_map, Qremap):
4913 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4914 (Vcompletion_regexp_list):
4915 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4916 (Qcompletion_ignore_case):
4917 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4918 (Vhistory_length, Vthis_original_command, real_this_command)
4919 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4920 * image.c (Qrisky_local_variable):
4921 * fontset.c (QCname):
4922 * fns.c (minibuffer_auto_raise, QCname):
4923 * dispnew.c (char_ins_del_cost):
4924 * composite.c (font_fill_lglyph_metrics):
4925 * cmds.c (Qface, Vtranslation_table_for_input):
4926 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4927 * ccl.c (charset_unicode):
4928 * callproc.c (Vtemporary_file_directory):
4929 * buffer.c (emacs_strerror): Remove extern declarations.
4930
4931 * data.c (Qwindow): Make non-static, used from other files too.
4932 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4933
4934 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4935 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4936 * s/usg5-4.h (COFF):
4937 * s/template.h:
4938 * s/msdos.h (COFF, NO_REMAP):
4939 * s/ms-w32.h (NO_REMAP):
4940 * s/hpux10-20.h (NO_REMAP):
4941 * m/sparc.h (SEGMENT_MASK):
4942 * m/m68k.h (NO_REMAP):
4943 * m/intel386.h (SEGMENT_MASK):
4944 * m/arm.h (NO_REMAP):
4945 * m/alpha.h (COFF):
4946 * m/template.h: Remove references to unused defines.
4947
4948 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4949
4950 * xsettings.c (Ftool_bar_get_system_style): Also check for
4951 Qtext_image_horiz.
4952
4953 * xdisp.c (Qtext_image_horiz): Define.
4954 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
4955 to documentation of tool-bar-style.
4956
4957 * lisp.h (Qtext_image_horiz): Declare.
4958
4959 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4960 style text_image_horiz.
4961
4962 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4963
4964 * emacs.c (Fkill_emacs): Remove return statement.
4965
4966 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4967 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
4968 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4969 Remove local extern declarations.
4970
4971 * xmenu.c: Do not included lwlib.h, not needed.
4972
4973 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4974
4975 * process.c: Move definitions earlier to minimize #ifdefs.
4976
4977 * xterm.h (x_get_customization_string, x_load_resources)
4978 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4979 (x_check_errors, x_property_data_to_lisp, defined_color)
4980 (xic_set_xfontset, x_defined_color): Use const.
4981
4982 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4983 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4984
4985 * xselect.c (selection_data_to_lisp_data)
4986 (x_property_data_to_lisp):
4987 * xrdb.c (x_get_string_resource, file_p)
4988 (x_get_customization_string, magic_file_p, search_magic_path)
4989 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4990 (x_get_string_resource): Use const.
4991
4992 * xfns.c: Include xlwmenu.h when USE_LUCID.
4993 (x_defined_color, xic_set_xfontset): Use const.
4994 (Fx_hide_tip): Remove local extern declaration.
4995
4996 * xfaces.c (Qmouse_face): Remove declaration.
4997 (face_color_gray_p, tty_defined_color, defined_color)
4998 (face_color_gray_p, face_color_supported_p): Add const.
4999
5000 * xdisp.c (do_mouse_tracking): Remove declaration.
5001 (add_to_log): Use const.
5002
5003 * minibuf.c (Qmouse_face): Remove declaration.
5004
5005 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
5006
5007 * keyboard.h (do_mouse_tracking): Add declaration.
5008
5009 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
5010 (QCdata, QCtype, Qcenter): Remove declarations.
5011
5012 * frame.c (x_get_resource_string, x_get_string_resource)
5013 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5014 (x_default_parameter): Use const.
5015
5016 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
5017 (QCheight, QCsize, QCname): Remove declarations.
5018
5019 * emacs.c (main): Remove local extern declaration.
5020
5021 * editfns.c (region_limit, syms_of_editfns): Remove local extern
5022 declarations.
5023
5024 * dispnew.c: Remove duplicate #include <unistd.h>.
5025 (update_window, update_frame_1, init_display): Remove local extern
5026 declarations.
5027
5028 * dispextern.h (add_to_log): Remove declaration.
5029 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5030 (x_frame_get_and_record_arg, x_default_parameter): Add const.
5031
5032 * dired.c (scmp): Add const.
5033 (directory_files_internal): Remove local extern declaration.
5034
5035 * data.c (Finteractive_form): Use const.
5036
5037 * composite.c (syms_of_composite): Remove local extern declarations.
5038
5039 * charset.c (add_to_log): Remove declaration.
5040
5041 * character.c (strwidth, parse_str_to_multibyte): Add const.
5042
5043 * character.h (strwidth, parse_str_to_multibyte): Likewise.
5044
5045 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
5046
5047 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
5048 (Lisp_Subr): Make doc and intspec constant.
5049 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
5050 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
5051 (QCheight, QCsize, QCname, QCwidth, QCforeground)
5052 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
5053 (display_arg): Add declarations.
5054
5055 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
5056
5057 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
5058
5059 * window.c (Fwindow_height): Doc fix (bug#6518).
5060
5061 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
5062
5063 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
5064
5065 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
5066
5067 * keyboard.c (Ftop_level, Fexit_recursive_edit)
5068 (Fabort_recursive_edit): Remove return statements in NO_RETURN
5069 functions.
5070
5071 * frame.h (Qtty_color_mode): Add declaration.
5072
5073 * lisp.h (Ftop_level, Fexit_recursive_edit)
5074 (Fabort_recursive_edit): Mark as NO_RETURN.
5075
5076 2010-07-26 Kenichi Handa <handa@m17n.org>
5077
5078 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
5079 number of glyphs gets smaller than the original length. (Bug#6621)
5080
5081 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
5082
5083 * lread.c (unreadpure, mapatoms_1): Make static.
5084
5085 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
5086
5087 * terminfo.c (tparam): Fix prototype of tparm.
5088
5089 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5090
5091 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5092 find start of text segment.
5093 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5094 is defined.
5095
5096 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5097
5098 2010-07-25 Ken Brown <kbrown@cornell.edu>
5099
5100 * vm-limit.c (check_memory_limits): Fix previous change;
5101 accidentally reverted an earlier change.
5102
5103 2010-07-25 Ken Brown <kbrown@cornell.edu>
5104
5105 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5106 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5107
5108 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
5109
5110 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5111 * dired.c (opendir, readdir): Fix prototypes.
5112 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5113 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5114 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5115 (telldir): Remove declaration.
5116 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5117 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5118 * syssignal.h (strsignal): Fix prototype.
5119 * term.c (tparam): Fix prototype.
5120 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5121 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5122 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5123 and __morecore.
5124 * w32gui.h (XParseGeometry): Fix prototype.
5125 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5126 * w32term.c (my_set_focus): Declare inside #if 0.
5127 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5128 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5129 (drain_message_queue, get_next_msg, post_msg, parse_button)
5130 (ClipboardSequence_Proc): Fix prototypes.
5131 (wait_for_sync): Remove declaration.
5132
5133 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
5134
5135 * w32fns.c (w32_to_x_color): Remove, unused.
5136
5137 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5138
5139 * lisp.h: Remove leftover P_.
5140
5141 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5142
5143 * ecrt0.c, unexalpha.c: Remove files, unused.
5144
5145 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5146
5147 * cmds.c (internal_self_insert): Make static.
5148 * lisp.h (internal_self_insert): Remove declaration.
5149
5150 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
5151
5152 * alloc.c (free_float):
5153 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5154 * frame.c (delete_frame_handler):
5155 * ralloc.c (reorder_bloc):
5156 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5157 Remove unused static functions.
5158
5159 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5160 it is called only from NS code.
5161
5162 * w32term.c (my_set_focus): #ifdef away; it is called only from
5163 "#ifdef 0" code.
5164
5165 * w32fns.c (x_edge_detection):
5166 * xfaces.c (may_use_scalable_font_p):
5167 Remove obsolete static declarations.
5168
5169 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
5170
5171 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5172 (emacs_blocked_realloc, uninterrupt_malloc):
5173 * fringe.c (w32_reset_fringes):
5174 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5175 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5176 * sound.c (be2hs, do_play_sound):
5177 * vm-limit.c (get_lim_data, ret_lim_data):
5178 * w32term.c (x_free_frame_resources):
5179 * xfaces.c (x_create_gc, x_free_gc):
5180 Convert definitions to standard C.
5181
5182 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5183
5184 * eval.c (Feval, Ffuncall): Use the new names.
5185
5186 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5187 (DEFUN): Add braces around the union initialisation and use ## to
5188 specify the right union alternative and avoid a cast.
5189
5190 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
5191
5192 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5193
5194 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
5195
5196 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5197
5198 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5199
5200 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5201 is related to the menu bar (Bug#6499).
5202 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
5203
5204 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5205
5206 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5207
5208 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5209
5210 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5211 i.e. don't put back ButtonRelease (Bug#6608).
5212
5213 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5214 instead of Window. Call xg_event_is_for_menubar when
5215 USE_GTK (Bug#6499).
5216
5217 * gtkutil.h (xg_event_is_for_menubar): Declare.
5218
5219 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5220
5221 2010-07-16 Eli Zaretskii <eliz@gnu.org>
5222
5223 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5224 when it's the same as the old foreground. (Bug#6609)
5225
5226 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5227
5228 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5229 widget is non-null (Bug#6645).
5230
5231 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5232
5233 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5234 Convert old-style definition.
5235
5236 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5237 timestamp argument.
5238
5239 2010-07-15 Eli Zaretskii <eliz@gnu.org>
5240
5241 * fringe.c (update_window_fringes): Restore mistakenly reverted
5242 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5243
5244 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5245
5246 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5247 (SET_SAVED_KEY_EVENT): Remove (not used).
5248 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5249 remove size parameter.
5250 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5251 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5252 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5253 ButtonRelease.
5254 (x_set_window_size_1): scroll_bar_actual_width is always
5255 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
5256
5257 * xdisp.c (pending_menu_activation): Remove extern declaration.
5258 (prepare_menu_bars): Remove setting of pending_menu_activation.
5259
5260 * xmenu.c (pending_menu_activation): Remove.
5261 (x_activate_menubar): Set popup_activated_flag for Xt also.
5262 Remove setting of pending_menu_activation.
5263 (set_frame_menubar): Remove check of pending_menu_activation.
5264 Declare menubar_size before code. Correct spelling in comment.
5265
5266 2010-07-14 Kenichi Handa <handa@m17n.org>
5267
5268 * font.c (font_open_entity): Cancel previous change.
5269 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5270
5271 2010-07-13 Eli Zaretskii <eliz@gnu.org>
5272
5273 Remove subprocesses #ifdefs.
5274 * process.c <inhibit_sentinels>: Move to the common part.
5275 (Fwaiting_for_user_input_p): Move to the common part; return nil
5276 if async subprocesses aren't supported.
5277 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5278 MS-DOS. Remove "#ifdef subprocesses".
5279 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5280 (gettimeofday): Remove "#ifdef subprocesses".
5281 (wait_without_blocking): Remove function.
5282 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5283 Remove "#ifdef subprocesses".
5284 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5285 compiled on MS-DOS.
5286 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5287 wait_for_termination on MS-DOS.
5288 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5289 initialization of inhibit_sentinels.
5290 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5291 subprocesses" conditional.
5292 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5293 wait_for_termination, since `buffer' cannot be an integer when
5294 async subprocesses are not supported
5295 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5296 for ifdefing away the call to Fprocess_status.
5297
5298 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5299 away the entire body of the function.
5300
5301 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5302
5303 Remove subprocesses #ifdefs from term.c.
5304 * process.c (add_keyboard_wait_descriptor)
5305 (delete_keyboard_wait_descriptor): Move to common section, do
5306 nothing when subprocesses is not defined.
5307 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5308 Remove subprocesses #ifdefs.
5309
5310 Convert maybe_fatal to standard C.
5311 * lisp.h (verror): Declare.
5312 * eval.c (verror): New function containing the code from ...
5313 (error): ... this. Call verror.
5314 * term.c (vfatal): New function containing the code from ...
5315 (fatal): ... this. Call vfatal.
5316 (maybe_fatal): Convert to standard C, use variable number of
5317 arguments. Declare as non-return.
5318 (init_tty): Fix maybe_fatal call.
5319
5320 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5321
5322 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5323 (_scroll_bar_note_movement): Convert definitions to standard C.
5324 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5325 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5326
5327 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5328
5329 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5330 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5331 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5332 (xaw_jump_callback, xaw_scroll_callback)
5333 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
5334 (x_wm_set_size_hint, x_activate_timeout_atimer):
5335 Convert definitions to standard C.
5336 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5337 (popup_activate_callback, popup_deactivate_callback)
5338 (menu_highlight_callback, menubar_selection_callback)
5339 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5340 (free_frame_menubar, popup_selection_callback, as)
5341 (create_and_show_popup_menu, dialog_selection_callback)
5342 (create_and_show_dialog):
5343 * xfns.c (hack_wm_protocols, x_window):
5344 * xfaces.c (x_update_menu_appearance):
5345 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5346 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5347 (set_frame_size, update_wm_hints, setup_frame_gcs)
5348 (update_various_frame_slots, update_from_various_frame_slots)
5349 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5350 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5351 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5352
5353 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5354
5355 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
5356
5357 2010-07-12 Eli Zaretskii <eliz@gnu.org>
5358
5359 * process.c (setup_process_coding_systems): Move to the part
5360 shared by non-subprocesses systems, and make its body empty when
5361 subprocesses is not defined.
5362 (close_process_descs): Move to the part shared by non-subprocesses
5363 systems.
5364 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5365 ANSI C.
5366
5367 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5368
5369 * editfns.c (transpose_markers): Convert old-style definition.
5370 * emacs.c (abort, shut_down_emacs, fixup_locale)
5371 (synchronize_system_time_locale)
5372 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5373 * floatfns.c (extract_float, matherr, init_floatfns)
5374 (syms_of_floatfns): Likewise.
5375 * fns.c (make_hash_table): Likewise.
5376 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5377 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5378 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5379 (ftfont_variation_glyphs): Likewise.
5380 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5381 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5382 * lread.c (read_filtered_event): Likewise.
5383 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5384 * process.c (wait_reading_process_output): Likewise.
5385 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5386 * search.c (search_buffer, boyer_moore): Likewise.
5387 * syntax.c (scan_sexps_forward): Likewise.
5388 * xdisp.c (try_scrolling): Likewise.
5389 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5390 (face_at_string_position): Likewise.
5391 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5392 * xselect.c (x_get_window_property, receive_incremental_selection)
5393 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5394 Likewise.
5395 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5396
5397 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5398
5399 * callproc.c (child_setup): Remove subprocesses conditional.
5400 Remove code dealing with SET_EMACS_PRIORITY, unused.
5401
5402 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
5403 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5404
5405 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5406 (__do_global_dtors, __main): Use void in definition.
5407 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5408 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5409 the only users from ...
5410 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5411 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5412 (HAVE_VOLATILE): Remove, unused.
5413
5414 Convert more function definitions to standard C.
5415 * xdisp.c (window_box_edges, handle_single_display_spec)
5416 (display_string): Convert definition to standard C.
5417 * scroll.c (do_direct_scrolling, scrolling_1):
5418 * dispnew.c (allocate_matrices_for_frame_redisplay)
5419 (mirrored_line_dance):
5420 * coding.c (code_convert_string):
5421 * charset.c (map_charset_chars):
5422 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5423 (Fregister_ccl_program, Fregister_code_conversion_map):
5424 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5425 (head_table): Make static and const.
5426
5427 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5428
5429 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5430 (PROFILING_LDFLAGS): Set from substitution.
5431 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5432 CFLAGS last.
5433
5434 2010-07-12 Kenichi Handa <handa@m17n.org>
5435
5436 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5437 (shortlisp): Likewise.
5438
5439 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5440
5441 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5442 of FONT_ENTITY_INDEX.
5443 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5444 property, get the property value dynamically.
5445 (Ffont_put): Accept font-entity and font-object too.
5446 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
5447 return value changed.
5448 (syms_of_font): Adjust for the above change.
5449
5450 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5451
5452 * blockinput.h: Remove obsolete comment.
5453
5454 * lisp.h: Include <stddef.h>.
5455 (OFFSETOF): Don't define.
5456 (VECSIZE): Use offsetof instead of OFFSETOF.
5457 (PSEUDOVECSIZE): Likewise.
5458 * process.c (conv_sockaddr_to_lisp): Likewise.
5459 * alloc.c: Don't include <stddef.h>.
5460 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5461
5462 * process.c: Remove obsolete comment.
5463
5464 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
5465
5466 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5467
5468 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5469
5470 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5471 index, rindex.
5472 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5473 * editfns.c (Fuser_full_name, Fformat): Likewise.
5474 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5475 * fileio.c (Ffile_symlink_p): Likewise.
5476 * filelock.c (current_lock_owner): Likewise.
5477 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5478 * fontset.c (fontset_pattern_regexp): Likewise.
5479 * lread.c (read1): Likewise.
5480 * sysdep.c (init_system_name): Likewise.
5481 * xfns.c (select_visual): Likewise.
5482 * s/hpux10-20.h (index, rindex): Don't define.
5483 * s/ms-w32.h (index): Likewise.
5484 * s/usg5-4.h: Likewise.
5485
5486 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5487
5488 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5489 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5490 (egetenv): Likewise.
5491 * doprnt.c (doprnt): Likewise.
5492 * editfns.c (set_time_zone_rule, format2): Likewise.
5493 * emacs.c (decode_env_path): Likewise.
5494 * eval.c (signal_error, error): Likewise.
5495 * insdel.c (replace_range_2): Likewise.
5496 * keyboard.c (cmd_error_internal): Likewise.
5497 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5498 * print.c (write_string, write_string_1, print_error_message):
5499 Likewise.
5500 * vm-limit.c (warn_function, memory_warnings): Likewise.
5501 * xdisp.c (message1, message1_nolog, message_with_string)
5502 (vmessage, message, message_nolog): Likewise.
5503 * emacs.c: Remove duplicate declaration.
5504 * keyboard.h: Likewise.
5505 * lisp.h: Update prototypes.
5506
5507 * eval.c: Fix indentation problem.
5508
5509 * keyboard.c: Include "process.h"
5510
5511 * eval.c: Remove obsolete noinline declaration.
5512 * fns.c: Likewise.
5513
5514 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
5515
5516 * doprnt.c (doprnt): Take a va_list argument instead of count and
5517 pointer.
5518 * eval.c (error): Change to a standard-C variadic function.
5519 * xdisp.c (vmessage): Rename from message, made static, and
5520 changed to take a va_list argument.
5521 (message): New variadic wrapper.
5522 (message_nolog): Now a variadic function, calling vmessage.
5523 * lisp.h: Include stdarg.h for va_list.
5524 (doprnt, error, message, message_nolog): Decls updated.
5525
5526 2010-07-11 Eli Zaretskii <eliz@gnu.org>
5527
5528 * process.c (syms_of_process) <delete-exited-processes>: Define
5529 even if !subprocesses.
5530 (delete_exited_processes): Ditto.
5531
5532 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5533 (delete_exited_processes): Don't define.
5534
5535 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
5536
5537 * frame.c (make_frame): Initialize menu_bar_lines and
5538 tool_bar_lines members.
5539 (make_initial_frame, make_terminal_frame):
5540 Initialize menu_bar_lines using value of menu-bar-mode.
5541
5542 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5543
5544 2010-07-10 Eli Zaretskii <eliz@gnu.org>
5545
5546 * process.c: Reshuffle #include's. Condition some of the global
5547 and static variables on `subprocesses'.
5548 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5549 Leave only one implementation.
5550 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5551 (kill_buffer_processes, Flist_system_processes)
5552 (Fprocess_attributes, init_process, syms_of_process): Unify the
5553 implementations for with subprocesses and without them.
5554
5555 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5556
5557 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5558 correct size for Motif.
5559 (free_frame_menubar): Call x_set_window_size to update frame size.
5560
5561 * xfns.c (x_window): Set borderWidth to 0 for pane and
5562 EmacsFrame. Frame size calculation is wrong otherwise.
5563
5564 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
5565
5566 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5567 allows to suppress errors when polling in Emacs' main loop.
5568 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5569 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5570 (Fdbus_method_error_internal, Fdbus_send_signal)
5571 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5572 (Fdbus_register_method): Use it. (Bug#6579)
5573
5574 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5575
5576 * alloc.c: Convert DEFUNs to standard C.
5577 * buffer.c:
5578 * bytecode.c:
5579 * callint.c:
5580 * callproc.c:
5581 * casefiddle.c:
5582 * casetab.c:
5583 * category.c:
5584 * character.c:
5585 * charset.c:
5586 * chartab.c:
5587 * cmds.c:
5588 * coding.c:
5589 * composite.c:
5590 * data.c:
5591 * dbusbind.c:
5592 * dired.c:
5593 * dispnew.c:
5594 * doc.c:
5595 * dosfns.c:
5596 * editfns.c:
5597 * emacs.c:
5598 * eval.c:
5599 * fileio.c:
5600 * filelock.c:
5601 * floatfns.c:
5602 * fns.c:
5603 * font.c:
5604 * fontset.c:
5605 * frame.c:
5606 * fringe.c:
5607 * image.c:
5608 * indent.c:
5609 * insdel.c:
5610 * keyboard.c:
5611 * keymap.c:
5612 * lread.c:
5613 * macros.c:
5614 * marker.c:
5615 * menu.c:
5616 * minibuf.c:
5617 * msdos.c:
5618 * nsfns.m:
5619 * nsmenu.m:
5620 * nsselect.m:
5621 * print.c:
5622 * process.c:
5623 * search.c:
5624 * sound.c:
5625 * syntax.c:
5626 * term.c:
5627 * terminal.c:
5628 * textprop.c:
5629 * undo.c:
5630 * w16select.c:
5631 * w32console.c:
5632 * w32fns.c:
5633 * w32font.c:
5634 * w32menu.c:
5635 * w32proc.c:
5636 * w32select.c:
5637 * window.c:
5638 * xdisp.c:
5639 * xfaces.c:
5640 * xfns.c:
5641 * xmenu.c:
5642 * xselect.c:
5643 * xsettings.c:
5644 * xsmfns.c: Likewise.
5645
5646 2010-07-08 Eli Zaretskii <eliz@gnu.org>
5647
5648 * process.c (kbd_is_on_hold, hold_keyboard_input)
5649 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5650
5651 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5652
5653 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5654 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5655 unless USE_LUCID.
5656
5657 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5658
5659 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5660 declaration.
5661
5662 Clean up include guards.
5663 * tparam.c: Remove include guards for config.h, string.h and code
5664 that assumes #ifndef emacs.
5665 * termcap.c:
5666 * unexalpha.c:
5667 * sysdep.c:
5668 * filemode.c:
5669 * filelock.c:
5670 * bidi.c: Likewise.
5671
5672 Remove prefix-args.c
5673 * prefix-args.c: Remove file.
5674 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5675 * Makefile.in (temacs${EXEEXT}): Remove references to
5676 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5677 (mostlyclean): Remove reference to prefix-args.
5678 (prefix-args): Remove.
5679
5680 Simplify cstart_of_data, start_of_code and related code.
5681 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5682 (start_of_data): Merge into start_of_data function.
5683 * sysdep.c (start_of_text): Remove. Move simplified versions of
5684 it in the only users: unexaix.c and unexec.c.
5685 (read_input_waiting): Remove local declaration of quit_char.
5686 (start, etext): Remove declarations.
5687 (start_of_data): Merge with the version in mem-limits.h and move
5688 to vm-limits.c.
5689 * vm-limit.c (start_of_data): Merged and simplified version of the
5690 code formerly in mem-limits.h and sysdep.c.
5691 * unexec.c (start): New declaration, moved from sysdep.c.
5692 (start_of_text): Simplified version of the code formerly in sysdep.c.
5693 * unexaix.c (start_of_text): Simplified version of the code
5694 formerly in sysdep.c.
5695 * m/alpha.h (HAVE_TEXT_START): Remove.
5696 (TEXT_START): Move ...
5697 * unexalpha.c (TEXT_START): ... here.
5698 * s/hpux10-20.h (TEXT_START): Remove.
5699 * s/darwin.h (TEXT_START):
5700 * m/mips.h (TEXT_START):
5701 * m/macppc.h (HAVE_TEXT_START):
5702 * m/m68k.h (TEXT_START):
5703 * m/iris4d.h (TEXT_START):
5704 * m/intel386.h (TEXT_START):
5705 * m/ibmrs6000.h (TEXT_START):
5706 * m/ia64.h (HAVE_TEXT_START):
5707 * s/msdos.h (TEXT_START): Likewise.
5708
5709 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5710
5711 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5712 (overrun_check_free, xstrdup, allocate_string)
5713 (allocate_string_data, compact_small_strings, Fmake_string)
5714 (make_unibyte_string, make_multibyte_string)
5715 (make_string_from_bytes, make_specified_string, make_float)
5716 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5717 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5718 memcpy, memmove, memset, memcmp.
5719 * atimer.c (start_atimer, set_alarm): Likewise.
5720 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5721 (mmap_realloc, init_buffer_once): Likewise.
5722 * callint.c (Fcall_interactively): Likewise.
5723 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5724 (getenv_internal_1): Likewise.
5725 * casefiddle.c (casify_object): Likewise.
5726 * ccl.c (ccl_driver): Likewise.
5727 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5728 * charset.c (load_charset_map_from_file)
5729 (load_charset_map_from_file, load_charset_map_from_vector)
5730 (Fdefine_charset_internal): Likewise.
5731 * cm.c (Wcm_clear): Likewise.
5732 * coding.c (decode_eol, decode_coding_object)
5733 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5734 * data.c (Faset): Likewise.
5735 * dired.c (directory_files_internal, file_name_completion_stat):
5736 Likewise.
5737 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5738 (clear_glyph_row, copy_row_except_pointers)
5739 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5740 (save_current_matrix, restore_current_matrix)
5741 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5742 (mirror_line_dance, scrolling_window): Likewise.
5743 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5744 Likewise.
5745 * doprnt.c (doprnt): Likewise.
5746 * editfns.c (Fuser_full_name, make_buffer_string_both)
5747 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5748 * emacs.c (sort_args): Likewise.
5749 * eval.c (Fapply, Ffuncall): Likewise.
5750 * fileio.c (Ffile_name_directory, make_temp_name)
5751 (Fexpand_file_name, search_embedded_absfilename)
5752 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5753 (auto_save_error): Likewise.
5754 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5755 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5756 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5757 (Fmake_hash_table): Likewise.
5758 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5759 * ftfont.c (ftfont_text_extents): Likewise.
5760 * getloadavg.c (getloadavg): Likewise.
5761 * image.c (define_image_type, make_image, make_image_cache)
5762 (x_create_x_image_and_pixmap, xbm_image_p)
5763 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5764 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5765 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5766 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5767 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5768 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5769 Likewise.
5770 * indent.c (scan_for_column, compute_motion): Likewise.
5771 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5772 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5773 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5774 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5775 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5776 (store_user_signal_events, menu_bar_items, tool_bar_items)
5777 (process_tool_bar_item, append_tool_bar_item)
5778 (read_char_minibuf_menu_prompt, read_key_sequence)
5779 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5780 Likewise.
5781 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5782 Likewise.
5783 * lisp.h (STRING_COPYIN): Likewise.
5784 * lread.c (Fload, read1, oblookup): Likewise.
5785 * msdos.c (Frecent_doskeys): Likewise.
5786 * nsfns.m (Fx_create_frame): Likewise.
5787 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5788 Likewise.
5789 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5790 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5791 Likewise.
5792 * nsmenu.m (ns_update_menubar): Likewise.
5793 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5794 * print.c (print_unwind, printchar, strout, print_string)
5795 (print_error_message): Likewise.
5796 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5797 (Fmake_network_process, Fnetwork_interface_list)
5798 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5799 (init_process): Likewise.
5800 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5801 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5802 Likewise.
5803 * scroll.c (do_scrolling, do_direct_scrolling)
5804 (scrolling_max_lines_saved): Likewise.
5805 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5806 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5807 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5808 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5809 (emacs_set_tty): Likewise.
5810 * term.c (encode_terminal_code, calculate_costs)
5811 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5812 Likewise.
5813 * termcap.c (tgetst1, gobble_line): Likewise.
5814 * termhooks.h (EVENT_INIT): Likewise.
5815 * tparam.c (tparam1): Likewise.
5816 * unexalpha.c (unexec): Likewise.
5817 * unexec.c (write_segment): Likewise.
5818 * unexmacosx.c (unexec_write_zero): Likewise.
5819 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5820 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5821 * w32font.c (w32font_list_family, w32font_text_extents)
5822 (w32font_list_internal, w32font_match_internal)
5823 (w32font_open_internal, compute_metrics, Fx_select_font):
5824 Likewise.
5825 * w32menu.c (set_frame_menubar, add_menu_item)
5826 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5827 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5828 * w32uniscribe.c (uniscribe_list_family): Likewise.
5829 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5830 * window.c (make_window, replace_window, set_window_buffer)
5831 (Fsplit_window): Likewise.
5832 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5833 (add_to_log, message3, x_consider_frame_title)
5834 (append_space_for_newline, extend_face_to_end_of_line)
5835 (decode_mode_spec_coding, init_glyph_string): Likewise.
5836 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5837 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5838 (face_attr_equal_p, make_realized_face, make_face_cache)
5839 (free_realized_faces, lookup_named_face, smaller_face)
5840 (face_with_height, lookup_derived_face)
5841 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5842 (Finternal_set_font_selection_order, realize_default_face)
5843 (compute_char_face, face_at_buffer_position)
5844 (face_for_overlay_string, face_at_string_position, merge_faces):
5845 Likewise.
5846 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5847 (Fx_window_property, x_create_tip_frame)
5848 (Fx_backspace_delete_keys_p): Likewise.
5849 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5850 (xfont_text_extents): Likewise.
5851 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5852 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5853 * xselect.c (x_queue_event, x_get_window_property)
5854 (receive_incremental_selection): Likewise.
5855 * xsmfns.c (x_session_check_input): Likewise.
5856 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5857 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5858 Likewise.
5859 * character.h (BCOPY_SHORT): Removed.
5860 * config.in: Regenerate.
5861 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5862 * emacs.c (main) [PROFILING]: Don't declare
5863 dump_opcode_frequencies.
5864 * lisp.h (safe_bcopy): Remove declaration.
5865 (memset) [!HAVE_MEMSET]: Declare.
5866 (memcpy) [!HAVE_MEMCPY]: Likewise.
5867 (memmove) [!HAVE_MEMMOVE]: Likewise.
5868 (memcmp) [!HAVE_MEMCMP]: Likewise.
5869 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5870 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5871 Don't define.
5872 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5873 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5874 (BCOPY_DOWNWARD_SAFE): Don't define.
5875 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5876 (memcpy) [!HAVE_MEMCPY]: Define.
5877 (memmove) [!HAVE_MEMMOVE]: Define.
5878 (memcmp) [!HAVE_MEMCMP]: Define.
5879
5880 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5881
5882 * process.c (kbd_is_on_hold): New variable.
5883 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5884 New functions.
5885 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5886 select on empty input mask.
5887 (init_process): Initialize kbd_is_on_hold to 0.
5888
5889 * process.h (hold_keyboard_input, unhold_keyboard_input)
5890 (kbd_on_hold_p): Declare.
5891
5892 * keyboard.c (input_available_signal): Declare.
5893 (kbd_buffer_nr_stored): New function.
5894 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5895 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5896 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5897 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5898 (tty_read_avail_input): If input is on hold, return.
5899 Don't read more that free slots in kbd_buffer (Bug#6571).
5900
5901 2010-07-07 Eli Zaretskii <eliz@gnu.org>
5902
5903 * msdos.h:
5904 * msdos.c:
5905 * dosfns.c:
5906 * w16select.c: Convert function definitions to ANSI C.
5907
5908 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5909 Remove unused prototypes.
5910
5911 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5912
5913 * coding.c, sysdep.c: Convert some more functions to standard C.
5914
5915 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5916
5917 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5918 (encode_coding_object): Use SPECPDL_INDEX.
5919 (syms_of_coding): Use DOS_NT.
5920
5921 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5922
5923 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5924
5925 Make the function member of Lisp_Subr use standard C prototypes.
5926 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5927 (DECL_ALIGN): Add a cast for the function.
5928 * eval.c (Feval, Ffuncall): Use the proper type for each type
5929 function call.
5930
5931 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
5932
5933 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5934 fringe face id, so face-remapping-alist works (Bug#6091).
5935
5936 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
5937
5938 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5939 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5940 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5941
5942 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5943
5944 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5945 * lisp.h: Declare x_get_keysym_name.
5946 * keyboard.c (modify_event_symbol): Don't declare
5947 x_get_keysym_name here.
5948
5949 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5950
5951 * ecrt0.c: Revert conversion to standard C.
5952
5953 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5954
5955 * vm-limit.c (memory_warnings):
5956 * keyboard.c (modify_event_symbol):
5957 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5958 (round2, emacs_rint):
5959 * process.c (send_process, old_sigpipe): Convert function
5960 definitions and declarations to standard C.
5961
5962 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
5963
5964 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5965 * xdisp.c: Convert function definitions to standard C.
5966
5967 * cm.c (cmputc): Arg C is now int, not char.
5968 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5969
5970 2010-07-05 James Cloos <cloos@jhcloos.com>
5971
5972 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5973
5974 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5975 _NET_WM_ICON_NAME atoms.
5976
5977 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5978 and _NET_WM_ICON_NAME properties, too, matching what is
5979 done in the Gtk+ case.
5980
5981 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5982
5983 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5984
5985 * xsmfns.c (SSDATA): New macro.
5986 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5987 passed to strlen/strcpy/strcat.
5988 (create_client_leader_window): Surround with #ifndef USE_GTK.
5989 Cast 7:th arg to XChangeProperty to (unsigned char *).
5990
5991 * xsettings.c (something_changedCB, parse_settings)
5992 (apply_xft_settings): Reformat prototype.
5993 (something_changedCB, init_gconf): Remove unused variable i.
5994 (read_settings): Remove unused variable long_len.
5995
5996 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5997 (xg_get_image_for_pixmap, create_dialog)
5998 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5999 (menuitem_highlight_callback, make_menu_item)
6000 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
6001 (xg_create_scroll_bar, xg_update_scrollbar_pos)
6002 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
6003 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
6004 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
6005 (xg_tool_bar_item_expose_callback): Reformat prototype.
6006 (xg_update_menubar): GList *group => GSList *group.
6007 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
6008 before use.
6009 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
6010 to GTK_IMAGE (wimage).
6011
6012 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
6013
6014 * atimer.c: Use "" instead of <> for local includes for
6015 consistency with the rest of the code.
6016
6017 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
6018 * xrdb.c (get_system_name):
6019 * window.c (shrink_windows):
6020 * syntax.c (forw_comment):
6021 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
6022 (ins_del_costs):
6023 * mem-limits.h (start_of_data):
6024 * lread.c (readevalloop):
6025 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
6026 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
6027 * frame.c (x_get_focus_frame):
6028 * floatfns.c (fmod_float):
6029 * fileio.c (choose_write_coding_system):
6030 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
6031 (malloc_initialize_hook, sort_args, synchronize_locale):
6032 * doprnt.c (doprnt):
6033 * dired.c (compile_pattern):
6034 * data.c (fmod_float):
6035 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
6036 (map_char_table_for_charset):
6037 * charset.c (define_charset_internal):
6038 * alloc.c (Fgarbage_collect): Convert declarations or definitions
6039 to standard C.
6040
6041 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
6042 Stefan Monnier <monnier@iro.umontreal.ca>
6043
6044 * lread.c (read1): Fix up last change to not mess up `c'.
6045
6046 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6047
6048 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
6049
6050 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6051
6052 Fix prototypes.
6053
6054 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
6055 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
6056 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
6057 arg, as required by internal_condition_case_1.
6058 * print.c (strout): Use const char* for arg PTR.
6059 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
6060 (analyse_first): Fix "const const".
6061 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
6062 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
6063 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
6064
6065 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
6066
6067 * alloc.c: Convert function definitions to standard C.
6068 * atimer.c:
6069 * bidi.c:
6070 * bytecode.c:
6071 * callint.c:
6072 * callproc.c:
6073 * casefiddle.c:
6074 * casetab.c:
6075 * category.c:
6076 * ccl.c:
6077 * character.c:
6078 * charset.c:
6079 * chartab.c:
6080 * cmds.c:
6081 * coding.c:
6082 * composite.c:
6083 * data.c:
6084 * dbusbind.c:
6085 * dired.c:
6086 * dispnew.c:
6087 * doc.c:
6088 * doprnt.c:
6089 * ecrt0.c:
6090 * editfns.c:
6091 * fileio.c:
6092 * filelock.c:
6093 * filemode.c:
6094 * fns.c:
6095 * font.c:
6096 * fontset.c:
6097 * frame.c:
6098 * fringe.c:
6099 * ftfont.c:
6100 * ftxfont.c:
6101 * gtkutil.c:
6102 * indent.c:
6103 * insdel.c:
6104 * intervals.c:
6105 * keymap.c:
6106 * lread.c:
6107 * macros.c:
6108 * marker.c:
6109 * md5.c:
6110 * menu.c:
6111 * minibuf.c:
6112 * prefix-args.c:
6113 * print.c:
6114 * ralloc.c:
6115 * regex.c:
6116 * region-cache.c:
6117 * scroll.c:
6118 * search.c:
6119 * sound.c:
6120 * strftime.c:
6121 * syntax.c:
6122 * sysdep.c:
6123 * termcap.c:
6124 * terminal.c:
6125 * terminfo.c:
6126 * textprop.c:
6127 * tparam.c:
6128 * undo.c:
6129 * unexelf.c:
6130 * window.c:
6131 * xfaces.c:
6132 * xfns.c:
6133 * xfont.c:
6134 * xftfont.c:
6135 * xgselect.c:
6136 * xmenu.c:
6137 * xrdb.c:
6138 * xselect.c:
6139 * xsettings.c:
6140 * xsmfns.c:
6141 * xterm.c: Likewise.
6142
6143 2010-07-03 Eli Zaretskii <eliz@gnu.org>
6144
6145 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6146 frames other than the initial one. Fix reversal of colors when
6147 `reverse' is specified in the frame parameters.
6148 Call update_face_from_frame_parameter instead of
6149 internal-set-lisp-face-attribute. Initialize screen colors from
6150 initial_screen_colors[] when f->default_face_done_p is zero,
6151 instead of depending on being called with default-frame-alist as
6152 the alist argument.
6153
6154 * xfaces.c (update_face_from_frame_parameter): Move out of
6155 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6156 with HAVE_WINDOW_SYSTEM.
6157
6158 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6159 to menu-bar-mode, if not set in the frame parameters or in
6160 default-frame-alist.
6161
6162 * w32console.c (sys_tputs): Adjust argument list to prototype in
6163 term.c.
6164
6165 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
6166
6167 * lisp.h (memory_warnings): Fix prototype.
6168
6169 * cm.h (evalcost): Fix prototype.
6170
6171 * cm.c (evalcost): Fix arg type.
6172
6173 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6174
6175 * term.c (term_clear_mouse_face, Fidentity):
6176 * syssignal.h (signal_handler_t):
6177 * lisp.h (memory_warnings):
6178 * coding.h (preferred_coding_system):
6179 * cm.h (evalcost):
6180 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6181
6182 2010-07-02 Eli Zaretskii <eliz@gnu.org>
6183
6184 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6185 from prototypes.
6186
6187 * msdos.h (load_pixmap): Don't define away.
6188
6189 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6190
6191 * lisp.h:
6192 * atimer.h: Remove define for P_.
6193
6194 * alloc.c: Remove __P and P_ from .c and .m files.
6195 * atimer.c:
6196 * buffer.c:
6197 * callint.c:
6198 * category.c:
6199 * charset.c:
6200 * chartab.c:
6201 * cm.c:
6202 * coding.c:
6203 * composite.c:
6204 * data.c:
6205 * dired.c:
6206 * dispnew.c:
6207 * doc.c:
6208 * editfns.c:
6209 * emacs.c:
6210 * eval.c:
6211 * fileio.c:
6212 * filelock.c:
6213 * fns.c:
6214 * font.c:
6215 * fontset.c:
6216 * frame.c:
6217 * ftfont.c:
6218 * ftxfont.c:
6219 * gmalloc.c:
6220 * gtkutil.c:
6221 * image.c:
6222 * indent.c:
6223 * intervals.c:
6224 * keyboard.c:
6225 * keymap.c:
6226 * lread.c:
6227 * marker.c:
6228 * menu.c:
6229 * minibuf.c:
6230 * print.c:
6231 * process.c:
6232 * scroll.c:
6233 * search.c:
6234 * sound.c:
6235 * strftime.c:
6236 * syntax.c:
6237 * sysdep.c:
6238 * term.c:
6239 * terminal.c:
6240 * textprop.c:
6241 * unexalpha.c:
6242 * w32console.c:
6243 * w32fns.c:
6244 * w32font.c:
6245 * w32menu.c:
6246 * w32term.c:
6247 * w32uniscribe.c:
6248 * window.c:
6249 * xdisp.c:
6250 * xfaces.c:
6251 * xfns.c:
6252 * xfont.c:
6253 * xftfont.c:
6254 * xmenu.c:
6255 * xselect.c:
6256 * xterm.c: Likewise.
6257
6258 Remove P_ and __P macros.
6259 * atimer.h: Remove P_ and __P macros.
6260 * buffer.h:
6261 * category.h:
6262 * ccl.h:
6263 * character.h:
6264 * charset.h:
6265 * cm.h:
6266 * coding.h:
6267 * composite.h:
6268 * dispextern.h:
6269 * disptab.h:
6270 * dosfns.h:
6271 * font.h:
6272 * fontset.h:
6273 * frame.h:
6274 * gtkutil.h:
6275 * indent.h:
6276 * intervals.h:
6277 * keyboard.h:
6278 * keymap.h:
6279 * lisp.h:
6280 * macros.h:
6281 * md5.h:
6282 * menu.h:
6283 * msdos.h:
6284 * nsterm.h:
6285 * puresize.h:
6286 * region-cache.h:
6287 * syntax.h:
6288 * syssignal.h:
6289 * systime.h:
6290 * termhooks.h:
6291 * w32font.h:
6292 * w32term.h:
6293 * widget.h:
6294 * window.h:
6295 * xgselect.h:
6296 * xsettings.h:
6297 * xterm.h: Likewise.
6298
6299 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6300
6301 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6302
6303 Cleanup old code.
6304 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6305 * syssignal.h: Remove code for Lynx, not supported anymore.
6306 * vm-limit.c: Remove unused code the depends on emacs not being
6307 defined and NO_LIM_DATA being defined.
6308 * mem-limits.h: Remove dead code.
6309
6310 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6311
6312 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6313
6314 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6315 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6316
6317 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6318 parameters, they are already absolute.
6319
6320 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6321 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
6322
6323 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
6324
6325 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6326 Update FRAME_TOOLBAR_HEIGHT.
6327
6328 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6329 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
6330
6331 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
6332
6333 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6334 Don't check default-frame-alist.
6335
6336 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6337
6338 * process.c (create_process): Avoid using invalid file descriptors.
6339
6340 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6341
6342 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6343
6344 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6345 Improve documentation. Return font regardless of use_system_font.
6346 (syms_of_xsettings): Improve documentation for font-use-system-font.
6347
6348 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
6349
6350 * xfaces.c (realize_face): Garbage the frame if a face is removed
6351 (Bug#6593).
6352
6353 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6354
6355 * keyboard.c: Remove duplicate <setjmp.h>.
6356 (read_key_sequence): Remove volatile qualifiers.
6357
6358 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6359
6360 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6361 (struct glyph_row): New members left_fringe_offset and
6362 right_fringe_offset.
6363
6364 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6365 specially.
6366 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6367 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6368
6369 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
6370 Take account of bitmap offset.
6371 (draw_window_fringes): Take account of window vscroll.
6372 (update_window_fringes): Likewise. Extend top-aligned top indicator
6373 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6374 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6375 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6376
6377 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6378
6379 * w32fns.c (Qtooltip): Declare.
6380 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6381
6382 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6383
6384 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6385 grab on just Press (Bug#6499).
6386
6387 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
6388
6389 * frame.c (Qtooltip): New var.
6390 (delete_frame): Use it. Fix faulty if statement. Don't update
6391 mode line for tooltip frames. Suggested by Martin Rudalics.
6392
6393 * xfns.c (x_create_tip_frame):
6394 * w32fns.c (x_create_tip_frame): Use it.
6395
6396 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
6397
6398 * xftfont.c (xftfont_open): Check font width one by one also when
6399 spacing is dual.
6400
6401 * ftfont.c (ftfont_open): Ditto.
6402
6403 2010-06-30 Glenn Morris <rgm@gnu.org>
6404
6405 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6406
6407 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6408
6409 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6410 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6411 * s/darwin.h (SYSTEM_MALLOC):
6412 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6413
6414 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6415
6416 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6417 (ns_get_screen): Don't assign integer to f.
6418 (Fx_display_color_cells): Declarations before statements.
6419
6420 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6421
6422 * xfns.c (x_default_font_parameter): Remove got_from_system
6423 (Bug#6526).
6424
6425 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
6426 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6427 New defines based on what configure finds.
6428
6429 * xterm.c (XTflash): Use gtk_widget_get_window.
6430 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6431 gtk_adjustment_get_page_size.
6432 (handle_one_xevent): Use gtk_widget_get_mapped.
6433 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6434 messages.
6435
6436 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6437
6438 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6439 HAVE_GTK_FILE_SELECTION_NEW.
6440
6441 * gtkutil.c (xg_display_open, xg_display_close):
6442 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
6443 (xg_display_open): Return type is void.
6444 (gtk_widget_set_has_window)
6445 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6446 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6447 (gtk_adjustment_set_page_increment)
6448 (gtk_adjustment_get_step_increment): #define these if not found
6449 by configure.
6450 (remove_submenu): New define based on Gtk+ version.
6451 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6452 Use gtk_widget_get_window.
6453 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6454 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6455 (create_dialog): Use gtk_dialog_get_action_area and
6456 gtk_dialog_get_content_area.
6457 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6458 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6459 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
6460 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6461 Use g_object_ref and g_object_unref.
6462 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6463 Use gtk_widget_get_sensitive.
6464 (xg_update_submenu): Use remove_submenu.
6465 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6466 properties instead to get old x and y position.
6467 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6468 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
6469 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
6470 (xg_get_tool_bar_widgets): New function.
6471 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6472 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6473 (toolbar_set_orientation): New #define based on if configure
6474 finds gtk_orientable_set_orientation.
6475 (xg_create_tool_bar): Call toolbar_set_orientation.
6476 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6477 instead of gtk_box_pack_start_defaults.
6478
6479 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
6480
6481 * cmds.c (Fdelete_backward_char): Move into Lisp.
6482
6483 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6484
6485 * s/freebsd.h (BSD4_2): Remove redundant definition.
6486 bsd-common.h defines it already.
6487
6488 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
6489
6490 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6491 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6492 tool-bar-mode, which are now set using these X resources at
6493 startup, to determine the defaults (Bug#2249).
6494
6495 * w32fns.c (Fx_create_frame):
6496 * nsfns.m (Fx_create_frame): Likewise.
6497
6498 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6499
6500 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
6501
6502 * gtkutil.c (xg_update_scrollbar_pos):
6503 Avoid C99 mid-block variable declaration.
6504
6505 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6506
6507 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6508
6509 * gtkutil.h (xg_show_scroll_bar): Remove.
6510
6511 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6512 if height is less than scroll bar min size.
6513 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6514
6515 * xfns.c (x_default_font_parameter): Try to open font from system
6516 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6517
6518 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
6519
6520 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6521
6522 2010-06-20 Eli Zaretskii <eliz@gnu.org>
6523
6524 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6525 most-positive-fixnum, be extra accurate when scrolling window
6526 start, to avoid missing the cursor line.
6527
6528 2010-06-19 Eli Zaretskii <eliz@gnu.org>
6529
6530 * xdisp.c (try_scrolling): Compute the limit for searching point
6531 in forward scroll from scroll_max, instead of an arbitrary limit
6532 of 10 screen lines.
6533 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
6534 and
6535 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6536 for details.
6537
6538 2010-06-16 Glenn Morris <rgm@gnu.org>
6539
6540 * editfns.c (Fbyte_to_string): Pacify compiler.
6541
6542 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6543
6544 * lread.c (read1): Phase out old-style backquotes a bit more.
6545
6546 2010-06-12 Eli Zaretskii <eliz@gnu.org>
6547
6548 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6549 bidimirror.h.
6550
6551 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6552
6553 * bidi.c (bidi_initialize): Remove explicit initialization of
6554 bidi_type_table; include biditype.h instead. Don't support
6555 entries whose second codepoint is zero. Initialize bidi_mirror_table.
6556 (bidi_mirror_char): Use bidi_mirror_table.
6557
6558 * biditype.h: New file.
6559
6560 * bidimirror.h: New file.
6561
6562 * window.c (syms_of_window): Doc fix (bug#6409).
6563
6564 2010-06-12 Romain Francoise <romain@orebokech.com>
6565
6566 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6567 ediff-hook.
6568
6569 2010-06-10 Glenn Morris <rgm@gnu.org>
6570
6571 * editfns.c (Fbyte_to_string): Pacify compiler.
6572
6573 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6574
6575 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6576
6577 * alloc.c (Fmake_byte_code): Don't access undefined argument
6578 (Bug#6517).
6579
6580 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
6581
6582 * xdisp.c (next_element_from_image): Ensure that after-strings are
6583 read the next time we hit handle_stop (Bug#1336).
6584
6585 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6586
6587 * lread.c (read1): Signal error if #s is not followed by paren.
6588
6589 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
6590
6591 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6592
6593 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6594
6595 2010-06-15 Glenn Morris <rgm@gnu.org>
6596
6597 * editfns.c (Fbyte_to_string): Pacify compiler.
6598
6599 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6600
6601 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6602 Check `object's type before accessing its guts.
6603
6604 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6605
6606 * s/usg5-4.h: Fix previous change.
6607 Suggested by Lawrence Mitchell <wence@gmx.li>
6608
6609 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6610
6611 * minibuf.c (Fall_completions): Add more checks.
6612
6613 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
6614
6615 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6616
6617 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6618
6619 * lread.c (X_OK): Remove, unused.
6620
6621 * dispnew.c: Remove obsolete comment.
6622
6623 Remove INCLUDED_FCNTL.
6624 * xterm.c (INCLUDED_FCNTL):
6625 * callproc.c (INCLUDED_FCNTL):
6626 * alloc.c (INCLUDED_FCNTL):
6627 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6628 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6629
6630 2010-06-07 Martin Rudalics <rudalics@gmx.at>
6631
6632 * window.c (Fselect_window): Move `record_buffer' up to the
6633 beginning of this function, so the buffer gets recorded
6634 even if the selected window does not change.
6635 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6636
6637 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
6638
6639 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6640 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6641
6642 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6643
6644 Remove BSTRING related code, all platforms define it.
6645 * s/usg5-4.h (BSTRING): Remove definition.
6646 * s/template.h (BSTRING):
6647 * s/msdos.h (BSTRING):
6648 * s/ms-w32.h (BSTRING):
6649 * s/hpux10-20.h (BSTRING):
6650 * s/gnu-linux.h (BSTRING):
6651 * s/darwin.h (BSTRING):
6652 * s/cygwin.h (BSTRING):
6653 * s/bsd-common.h (BSTRING):
6654 * s/aix4-2.h (BSTRING): Likewise.
6655 * sysdep.c: Remove code depending on BSTRING not being defined.
6656
6657 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
6658
6659 Remove obsolete macro BASE_LEADING_CODE_P.
6660 * character.h (BASE_LEADING_CODE_P): Remove.
6661 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6662 * buffer.c (Fset_buffer_multibyte):
6663 * indent.c (scan_for_column, compute_motion):
6664 * insdel.c (count_combining_before, count_combining_after):
6665 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6666
6667 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
6668
6669 Turn `directory-sep-char' into a noop.
6670
6671 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6672 (DIRECTORY_SEP): Define unconditionally.
6673
6674 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6675
6676 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6677 call dostounix_filename directly.
6678
6679 * fileio.c (CORRECT_DIR_SEPS): Remove.
6680 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6681 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6682 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6683 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6684
6685 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6686 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6687
6688 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6689
6690 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6691 (Bug#6346)
6692
6693 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6694
6695 * ccl.c (Fccl_program_p): Fix typo in docstring.
6696
6697 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6698
6699 Move UNEXEC definition to autoconf.
6700 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6701 * s/sol2-10.h (UNEXEC):
6702 * s/irix6-5.h (UNEXEC):
6703 * s/hpux10-20.h (UNEXEC):
6704 * s/gnu-linux.h (UNEXEC):
6705 * s/darwin.h (UNEXEC):
6706 * s/cygwin.h (UNEXEC):
6707 * s/bsd-common.h (UNEXEC):
6708 * s/aix4-2.h (UNEXEC):
6709 * m/alpha.h (UNEXEC): Likewise.
6710 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6711
6712 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6713
6714 Remove obsolete pre-unicode2 macros.
6715 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6716 * composite.c (composition_reseat_it):
6717 * data.c (Faset):
6718 * fns.c (Ffillarray):
6719 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6720 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6721
6722 2010-06-03 Juri Linkov <juri@jurta.org>
6723
6724 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6725 (Fswitch_to_buffer): Remove unused variable `err'.
6726
6727 2010-06-03 Glenn Morris <rgm@gnu.org>
6728
6729 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6730
6731 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6732 now that AH_BOTTOM does it.
6733
6734 * m/hp800.h (HAVE_ALLOCA):
6735 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6736
6737 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6738 Remove NOT_C_CODE tests, it is always true now.
6739
6740 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6741
6742 Fix config.h includes.
6743 * xsettings.c:
6744 * xgselect.c:
6745 * nsterm.m:
6746 * nsselect.m:
6747 * nsimage.m:
6748 * nsfont.m:
6749 * nsfns.m:
6750 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6751 other files do.
6752
6753 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6754
6755 * s/sol2-6.h: Remove obsolete comments.
6756
6757 Remove unnecessary alloca.h includes.
6758 * keymap.c: Do not include alloca.h, config.h does that.
6759 * sysdep.c: Likewise. Do not define fwrite, not used.
6760
6761 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6762
6763 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6764 the HAVE_TERMIO where it belongs (bug#6149).
6765
6766 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6767
6768 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6769 of bug#6305).
6770
6771 2010-05-30 Eli Zaretskii <eliz@gnu.org>
6772
6773 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6774 state is always cached (bug#6306).
6775
6776 2010-05-29 Eli Zaretskii <eliz@gnu.org>
6777
6778 Fix cursor motion in bidi-reordered continued lines.
6779 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6780 only after finding point's row. Fix the logic. Rewrite the loop
6781 over continuation lines in bidi-reordered buffers.
6782 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6783 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6784
6785 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
6786
6787 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6788
6789 2010-05-28 Kenichi Handa <handa@m17n.org>
6790
6791 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6792 Don't sheck SPEC if it is nil.
6793 (font_list_entities): Call font_delete_unmatched if
6794 Vface_ignored_fonts is non-nil. (Bug#6287)
6795
6796 2010-05-28 Glenn Morris <rgm@gnu.org>
6797
6798 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6799
6800 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6801
6802 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6803 whether to trash.
6804 (internal_delete_file, Frename_file): Callers changed.
6805 (delete_by_moving_to_trash): Doc fix.
6806 (Fdelete_directory_internal): Don't move to trash.
6807
6808 * callproc.c (delete_temp_file):
6809 * buffer.c (Fkill_buffer): Callers changed.
6810
6811 * lisp.h: Update prototype.
6812
6813 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6814
6815 * xdisp.c (redisplay_window): After redisplay, check if point is
6816 still valid before setting it (Bug#6177).
6817
6818 2010-05-27 Glenn Morris <rgm@gnu.org>
6819
6820 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6821 Convert comments to Makefile format.
6822
6823 * Makefile.in (bootstrap-clean): No more Makefile.c.
6824
6825 2010-05-26 Glenn Morris <rgm@gnu.org>
6826
6827 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6828 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6829
6830 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6831 Remove.
6832 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6833
6834 2010-05-26 Kenichi Handa <handa@m17n.org>
6835
6836 * composite.c (composition_compute_stop_pos): Fix condition for
6837 backward scanning.
6838
6839 2010-05-25 Glenn Morris <rgm@gnu.org>
6840
6841 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6842 Move before TEMACS_LDFLAGS.
6843 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6844 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6845
6846 * Makefile.in (NOT_C_CODE): No longer define.
6847 (config.h): No longer include.
6848
6849 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6850 variables it may reference.
6851
6852 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6853 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6854
6855 2010-05-25 Kenichi Handa <handa@m17n.org>
6856
6857 * dispextern.h (struct composition_it): New members rule_idx and
6858 charpos.
6859
6860 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6861 that the character positions of IT point the last character of the
6862 current grapheme cluster.
6863 (next_element_from_composition): Don't change character positions
6864 of IT.
6865 (append_composite_glyph): Set glyph->charpos to
6866 it->cmp_it.charpos.
6867
6868 * composite.c (autocmp_chars): Change the first argument to RULE,
6869 and try composition with RULE only.
6870 (composition_compute_stop_pos): Record the index number of the
6871 composition rule in CMP_IT->rule_idx.
6872 (composition_reseat_it): Call autocmp_chars repeatedly until the
6873 correct rule of the composition is found.
6874 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6875 is at the last character of the current grapheme cluster when
6876 CMP_IT->reversed_p is nonzero.
6877
6878 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6879
6880 * editfns.c (Fbyte_to_string): New function.
6881
6882 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6883
6884 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6885 Suggested by Masatake YAMATO <yamato@redhat.com>.
6886
6887 2010-05-23 Eli Zaretskii <eliz@gnu.org>
6888
6889 * dispextern.h (init_iterator): Sync prototype with changed definition.
6890
6891 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6892
6893 * s/netbsd.h: If terminfo is found, use it in preference to
6894 termcap. (Bug#6190) [Backport from trunk]
6895
6896 2010-05-19 Eli Zaretskii <eliz@gnu.org>
6897
6898 Redesign and reimplement bidi-aware edge positions of glyph rows.
6899
6900 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6901 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6902 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6903 and maxpos members instead of start.pos and end.pos, respectively.
6904
6905 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6906 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6907 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
6908 (try_window_reusing_current_matrix, try_window_id):
6909 Use ROW->minpos rather than ROW->start.pos.
6910 (init_from_display_pos, init_iterator): Use EMACS_INT for
6911 character and byte positions.
6912 (find_row_edges): Rename from find_row_end. Accept additional
6913 arguments for minimum and maximum buffer positions seen by
6914 display_line for this row. Don't use iterator to find the
6915 position following the maximum one; instead, increment the
6916 position found by display_line directly. Fix logic; eol_pos
6917 should be tested before the rest. Handle the case of characters
6918 delivered from display vector (bug#6036). Fix tests related to
6919 it->method. Handle the truncated_on_right_p rows.
6920 (RECORD_MAX_MIN_POS): New macro.
6921 (display_line): Use it to record the minimum and maximum buffer
6922 positions for glyphs in the row being assembled. Record the
6923 position of the newline that terminates the line. If word wrap is
6924 in effect, restore minimum and maximum positions seen up to the
6925 wrap point, when iterator returns to it.
6926 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6927 row and cursor not already at point. Restore original pre-bidi
6928 code for unidirectional buffers.
6929
6930 * dispnew.c (increment_row_positions, check_matrix_invariants):
6931 Increment and check row->start.pos and row->end.pos, in addition
6932 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6933
6934 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6935 Display truncated_on_left_p and truncated_on_right_p flags.
6936 Formatting fixes.
6937 (pmtxrows): Display the ordinal number of each row. Don't display
6938 rows beyond the last one.
6939
6940 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6941 it is not copied by bidi_copy_it.
6942
6943 2010-05-22 Eli Zaretskii <eliz@gnu.org>
6944
6945 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6946 (Bug#6237)
6947
6948 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
6949
6950 * image.c (Fimage_flush): Rename from image-refresh.
6951
6952 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
6953
6954 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6955 just one window.
6956
6957 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6958 (clear_image_cache): If the number of cached images is unusually
6959 large, decrease the cache eviction delay (Bug#6230).
6960
6961 2010-05-21 Glenn Morris <rgm@gnu.org>
6962
6963 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6964 Move these rules to ns.mk.
6965 * ns.mk: New file.
6966
6967 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6968
6969 * Makefile.in (CANNOT_DUMP): New, set by configure.
6970 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6971
6972 2010-05-20 Juri Linkov <juri@jurta.org>
6973
6974 * fileio.c (Fdelete_file): Change interative spec to use
6975 `read-file-name' like in `find-file-read-args' where the default
6976 value is `default-directory' instead of `buffer-file-name'.
6977 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6978
6979 2010-05-20 Kevin Ryde <user42@zip.com.au>
6980
6981 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6982 (Voverriding_terminal_local_map, Vsystem_key_alist)
6983 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6984
6985 2010-05-20 Glenn Morris <rgm@gnu.org>
6986
6987 * Makefile.in (DEPDIR): New constant.
6988 (DEPFLAGS): Set with configure, not cpp.
6989 (MKDEPDIR): New, set by configure.
6990 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6991 (clean): Use $DEPDIR.
6992 (deps_frag): Include from configure.
6993 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6994 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6995
6996 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6997 Fix reallocation of the cache. (Bug#6210)
6998
6999 2010-05-19 Glenn Morris <rgm@gnu.org>
7000
7001 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
7002
7003 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
7004 (GNULIB_VAR): Remove.
7005 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
7006
7007 * m/ibms390x.h (LINKER):
7008 * m/macppc.h (LINKER) [GNU_LINUX]:
7009 * s/aix4-2.h (ORDINARY_LINK):
7010 * s/cygwin.h (LINKER):
7011 * s/darwin.h (ORDINARY_LINK):
7012 * s/gnu.h (ORDINARY_LINK):
7013 * s/netbsd.h (LINKER):
7014 * s/usg5-4.h (ORDINARY_LINK):
7015 Move to configure.
7016
7017 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
7018
7019 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
7020
7021 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
7022 prevent stack overflow if number of arguments is too large
7023 (Bug#6214).
7024
7025 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
7026
7027 * charset.c (load_charset_map_from_file): Don't call close after fclose.
7028
7029 2010-05-18 Glenn Morris <rgm@gnu.org>
7030
7031 * s/gnu-linux.h: Combine two conditionals.
7032
7033 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
7034 $(POST_ALLOC_OBJ).
7035
7036 * Makefile.in (RALLOC_OBJ): New, set by configure.
7037 (rallocobj): Replace with the previous variable.
7038 (otherobj): Use $RALLOC_OBJ.
7039
7040 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
7041 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
7042
7043 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
7044 (gmallocobj, vmlimitobj): Replace with previous two variables.
7045 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
7046
7047 2010-05-17 Glenn Morris <rgm@gnu.org>
7048
7049 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
7050 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
7051
7052 2010-05-16 Glenn Morris <rgm@gnu.org>
7053
7054 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
7055
7056 * Makefile.in (clean): Get rid of HAVE_NS conditional.
7057
7058 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
7059 trailing "/".
7060
7061 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
7062 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
7063
7064 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
7065 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
7066 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
7067 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
7068 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
7069
7070 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
7071 Remove ${STARTFLAGS}, nothing ever sets it.
7072
7073 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
7074
7075 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
7076
7077 2010-05-16 Glenn Morris <rgm@gnu.org>
7078
7079 * Makefile.in (LIBX_BASE): Always define.
7080
7081 * Makefile.in (LIBX_OTHER): Move out of cpp section.
7082
7083 * Makefile.in (LIBXT): Always define.
7084
7085 2010-05-15 Glenn Morris <rgm@gnu.org>
7086
7087 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
7088
7089 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7090 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7091
7092 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
7093
7094 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
7095 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7096
7097 * emacs.c (main): Initialize initial-environment and
7098 process-environment before generating from env, not after.
7099
7100 Handle --version reasonably in CANNOT_DUMP configuration.
7101 * emacs.c (emacs_version, emacs_copyright): New string variables.
7102 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7103 (syms_of_emacs): Defvar them, and initialize them from the C
7104 string variables.
7105 (main): If initialization hasn't been done, print initial version
7106 info from the C strings, instead of starting an interactive session.
7107
7108 2010-05-15 Eli Zaretskii <eliz@gnu.org>
7109
7110 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7111 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
7112 (bidi_paragraph_init): Remove redundant assertion that we are at
7113 the beginning of a line after call to bidi_find_paragraph_start.
7114
7115 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7116 (syms_of_xdisp): Defsubr it.
7117
7118 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7119
7120 * Makefile.in: Fix MSDOS-related comments.
7121
7122 2010-05-15 Glenn Morris <rgm@gnu.org>
7123
7124 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7125 (really-lwlib, really-oldXMenu): Always define.
7126 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7127
7128 * Makefile.in: Simplify cpp conditional.
7129
7130 * Makefile.in (${ns_appdir}): Simplify using umask.
7131
7132 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7133
7134 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7135
7136 * eval.c (specbind): Remove left-over duplicate test.
7137 Disallow let-binding frame-local vars. Add comment.
7138
7139 2010-05-14 Eli Zaretskii <eliz@gnu.org>
7140
7141 Make the cache of bidi iterator states dynamically allocated.
7142 * bidi.c (bidi_cache_shrink): New function.
7143 (bidi_init_it): Call it.
7144 (bidi_cache_iterator_state): Enlarge the cache if needed.
7145
7146 * bidi.c (bidi_move_to_visually_next): Rename from
7147 bidi_get_next_char_visually. All callers changed.
7148
7149 2010-05-14 Kenichi Handa <handa@m17n.org>
7150
7151 * dispextern.h (struct composition_it): New member reversed_p.
7152
7153 * composite.c (composition_compute_stop_pos): Search backward if
7154 ENDPOS < CHARPOS.
7155 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7156 Set CMP_IT->reversed_p.
7157 (composition_update_it): Pay attention to CMP_IT->reversed_p.
7158
7159 * xdisp.c (set_iterator_to_next):
7160 Call composition_compute_stop_pos with negative ENDPOS if we are
7161 scanning backward. Call composition_compute_stop_pos if scan
7162 direction is changed.
7163 (next_element_from_buffer): Call composition_compute_stop_pos with
7164 negative ENDPOS if we are scanning backward.
7165 (next_element_from_composition): Pay attention to
7166 IT->cmp_it.reversed_p.
7167
7168 2010-05-14 Kenichi Handa <handa@m17n.org>
7169
7170 * font.c (font_range): Return the range for the font found at first.
7171
7172 2010-05-14 Glenn Morris <rgm@gnu.org>
7173
7174 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7175
7176 * Makefile.in (mktime, X11, register): Move undefs to configure.
7177
7178 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7179 (MSDOS_X_OBJ): New variable.
7180 (MSDOS_SUPPORT_REAL): New constant.
7181 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7182 (obj): Use MSDOS_X_OBJ.
7183 (lisp): Use MSDOS_SUPPORT as a variable.
7184
7185 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7186 (GPM_MOUSE_SUPPORT): Now it's a constant.
7187 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7188 not cpp.
7189
7190 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
7191 (ns_appresdir): Remove, unused.
7192
7193 * Makefile.in (SHELL): Move outside cpp section.
7194
7195 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7196
7197 2010-05-13 Glenn Morris <rgm@gnu.org>
7198
7199 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7200 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7201
7202 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7203 HAVE_WINDOW_SYSTEM must be too.
7204
7205 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7206 (lisp): Remove WINNT_SUPPORT.
7207
7208 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7209 Let configure set these variables (to empty) in this case as well.
7210
7211 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7212 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7213
7214 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7215 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7216 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7217 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7218 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
7219 the values output by configure.
7220 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7221
7222 2010-05-12 Glenn Morris <rgm@gnu.org>
7223
7224 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7225 (LINKER_WAS_SPECIFIED): Remove.
7226
7227 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7228 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7229 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7230 * s/cygwin.h (LIB_GCC):
7231 * s/freebsd.h (LIB_GCC):
7232 * s/gnu-linux.h (LIB_GCC):
7233 * s/msdos.h (LIB_GCC):
7234 * s/netbsd.h (LIB_GCC):
7235 Move to configure.
7236
7237 2010-05-11 Karel Klíč <kklic@redhat.com>
7238
7239 * ftfont.c: Fix incorrect parentheses of #if condition for
7240 definining M17N_FLT_USE_NEW_FEATURE.
7241
7242 2010-05-11 Glenn Morris <rgm@gnu.org>
7243
7244 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7245 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7246
7247 2010-05-10 Eli Zaretskii <eliz@gnu.org>
7248
7249 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7250 unibyte buffers. See
7251 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7252
7253 2010-05-10 Glenn Morris <rgm@gnu.org>
7254
7255 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7256 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7257 (LIBES): Use LIBS_SYSTEM as a variable.
7258 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7259 * s/aix4-2.h (LIBS_SYSTEM):
7260 * s/freebsd.h (LIBS_SYSTEM):
7261 * s/hpux10-20.h (LIBS_SYSTEM):
7262 * s/sol2-6.h (LIBS_SYSTEM):
7263 * s/unixware.h (LIBS_SYSTEM):
7264 Move to configure.
7265
7266 * s/aix4-2.h (MAIL_USE_LOCKF):
7267 * s/bsd-common.h (MAIL_USE_FLOCK):
7268 * s/darwin.h (MAIL_USE_FLOCK):
7269 * s/gnu-linux.h (MAIL_USE_FLOCK):
7270 * s/irix6-5.h (MAIL_USE_FLOCK):
7271 * s/template.h (MAIL_USE_FLOCK):
7272 Move to configure.
7273
7274 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
7275
7276 * Version 23.2 released.
7277
7278 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
7279
7280 * composite.c (autocmp_chars): Save point as marker before calling
7281 auto-composition-function (Bug#5984).
7282
7283 * lisp.h (restore_point_unwind): Add prototype.
7284
7285 * fileio.c (restore_point_unwind): Remove static attribute.
7286
7287 2010-05-08 Kenichi Handa <handa@m17n.org>
7288
7289 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7290 new feature of libotf and m17n-flt.
7291 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7292 Call OTF_check_features even if no specific feature is given.
7293 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7294 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7295 that OUT is NULL. Use OTF_drive_gsub_with_log and
7296 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7297 OTF_drive_gpos.
7298 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
7299 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7300 Setup mflt_enable_new_feature and mflt_try_otf.
7301
7302 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7303
7304 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7305
7306 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7307 box and toolbar (Bug #6139).
7308 (xg_create_tool_bar): Remove comment (Bug #6139).
7309 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7310 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7311
7312 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
7313
7314 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7315 Update dependencies.
7316
7317 2010-05-08 Eli Zaretskii <eliz@gnu.org>
7318
7319 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7320 R2L lines.
7321
7322 2010-05-08 Glenn Morris <rgm@gnu.org>
7323
7324 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7325
7326 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7327 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7328 (termcapobj): Replace with TERMCAP_OBJ.
7329 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7330 (LIBES): Use LIBS_TERMCAP as a variable.
7331
7332 * s/freebsd.h (osreldate.h): No longer include, since this file
7333 does not use __FreeBSD_version any more.
7334
7335 * s/aix4-2.h (TERMINFO):
7336 * s/cygwin.h (TERMINFO):
7337 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7338 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7339 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7340 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7341 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7342 * s/irix6-5.h (TERMINFO):
7343 * s/netbsd.h (LIBS_TERMCAP):
7344 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7345 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7346 * s/usg5-4.h (TERMINFO):
7347 Move to configure.
7348
7349 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7350
7351 * eval.c (unbind_to): Don't unbind a local binding into the global
7352 binding when the local binding disappeared. Inversely, don't unbind
7353 a global binding into a newly created local binding.
7354 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7355 can specify the frame to use, when applicable. Adjust callers.
7356
7357 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
7358 Stefan Monnier <monnier@iro.umontreal.ca>
7359
7360 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7361
7362 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7363
7364 * w32fns.c: Include w32.h.
7365 (Fw32_shell_execute): Decode the error message before passing it
7366 to `error'. (Bug#6126)
7367
7368 * msdos.c (dos_set_window_size):
7369 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7370 instead of `XSYMBOL (foo)->value'.
7371
7372 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7373
7374 Fix the MS-DOS build, broken by autoconfiscation.
7375
7376 * Makefile.in: Don't use Make-style comments past the "start of
7377 cpp stuff" line.
7378 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7379
7380 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7381 edited directly by msdos/sed1v2.inp).
7382
7383 2010-05-07 Glenn Morris <rgm@gnu.org>
7384
7385 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7386 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7387 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7388 move out of cpp section.
7389 * s/freebsd.h (LD_SWITCH_SYSTEM):
7390 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7391 * s/netbsd.h (LD_SWITCH_SYSTEM):
7392 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7393
7394 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7395
7396 Define LIB_STANDARD and START_FILES using autoconf.
7397 * s/usg5-4.h (LIB_STANDARD):
7398 * s/netbsd.h (START_FILES):
7399 * s/irix6-5.h (LIB_STANDARD):
7400 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7401 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7402 * s/freebsd.h (START_FILES):
7403 * s/darwin.h (START_FILES):
7404 * s/cygwin.h (START_FILES):
7405 * s/aix4-2.h (LIB_STANDARD):
7406 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7407 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7408 autoconf, not cpp.
7409
7410 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7411
7412 Remove NEED_BSDTTY and NEED_UNISTD_H.
7413 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7414 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7415 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7416 <sys/ptyio.h> and <unistd.h>.
7417
7418 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7419
7420 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7421 * s/gnu.h (START_FILES): Remove empty definition.
7422
7423 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7424
7425 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7426
7427 2010-05-06 Glenn Morris <rgm@gnu.org>
7428
7429 * Makefile.in (CPP, LN_S): Remove unused variables.
7430
7431 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7432
7433 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7434
7435 2010-05-05 Lawrence Mitchell <wence@gmx.li>
7436
7437 * m/sparc.h: Fix typo in earlier change.
7438
7439 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7440
7441 Misc tweaks.
7442 * eval.c (Fdefvaralias): Remove unintended nested if.
7443 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7444
7445 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
7446
7447 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7448
7449 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7450
7451 Remove BSD_PGRPS.
7452 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7453 * s/gnu-linux.h (BSD_PGRPS): Remove.
7454 * term.c (dissociate_if_controlling_tty):
7455 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7456 (init_sys_modes, reset_sys_modes):
7457 * emacs.c (main):
7458 * callproc.c (Fcall_process, child_setup): Remove code depending
7459 on BSD_PGRPS.
7460
7461 Remove POSIX_SIGNALS.
7462 * s/usg5-4.h (POSIX_SIGNALS):
7463 * s/netbsd.h (POSIX_SIGNALS):
7464 * s/msdos.h (POSIX_SIGNALS):
7465 * s/ms-w32.h (POSIX_SIGNALS):
7466 * s/hpux11.h (POSIX_SIGNALS):
7467 * s/gnu.h (POSIX_SIGNALS):
7468 * s/gnu-linux.h (POSIX_SIGNALS):
7469 * s/freebsd.h (POSIX_SIGNALS):
7470 * s/darwin.h (POSIX_SIGNALS):
7471 * s/cygwin.h (POSIX_SIGNALS):
7472 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7473 * s/unixware.h:
7474 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7475 * process.c (create_process):
7476 * syssignal.h:
7477 * sysdep.c (wait_for_termination, init_signals):
7478 * process.c (create_process):
7479 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7480 remove all code that assumes the contrary.
7481
7482 2010-05-04 Glenn Morris <rgm@gnu.org>
7483
7484 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7485 variable.
7486 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7487 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7488 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7489 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7490 LD_SWITCH_SYSTEM_tmp.
7491 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7492 New variables, set by configure.
7493
7494 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7495 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7496 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7497 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7498 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7499
7500 * s/aix4-2.h (C_SWITCH_SYSTEM):
7501 * m/alpha.h (C_SWITCH_MACHINE):
7502 Move to configure.in.
7503 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7504 New variables, set by configure.
7505 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7506 $c_switch_machine and $c_switch_system.
7507
7508 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7509
7510 * s/hpux10-20.h (LIB_STANDARD): New definition.
7511 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7512 on it, not used anymore.
7513
7514 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
7515
7516 * eval.c (internal_condition_case_n): Rename from
7517 internal_condition_case_2.
7518 (internal_condition_case_2): New function.
7519
7520 * xdisp.c (safe_call): Use internal_condition_case_n.
7521
7522 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7523 (internal_delete_file, Frename_file): Callers changed.
7524
7525 * buffer.c (Fkill_buffer):
7526 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7527
7528 * lisp.h: Update prototypes.
7529
7530 2010-05-03 Glenn Morris <rgm@gnu.org>
7531
7532 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7533 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7534 (LIBXT): Set with configure, not cpp.
7535 (LIBX): Remove.
7536 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7537
7538 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7539
7540 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7541 The FreeBSD is not needed, the default works, Solaris version is
7542 not needed, and the remaining case is not supported by configure.
7543
7544 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7545
7546 * xsmfns.c (CHDIR_OPT): New define.
7547 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7548 restarting emacs.
7549
7550 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7551 shut_down_emacs.
7552
7553 * emacs.c (USAGE1): Mention --chdir.
7554 (main): Handle --chdir.
7555 (standard_args): Add --chdir.
7556 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7557 #5552).
7558
7559 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7560
7561 Remove LD_SWITCH_MACHINE.
7562 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7563 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7564
7565 Clean up IRIX code.
7566 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7567 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7568
7569 Clean up AIX code.
7570 * m/ibmrs6000.inp: Remove file, unused.
7571 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7572 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7573 definition ...
7574 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7575
7576 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7577 unused.
7578
7579 2010-05-01 Eli Zaretskii <eliz@gnu.org>
7580
7581 Emulate POSIX_SIGNALS on MS-Windows.
7582
7583 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7584 (SIG_SETMASK, SIG_UNBLOCK): Define.
7585
7586 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7587 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7588 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7589
7590 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7591 New stubs.
7592
7593 Miscellaneous fixes of bidi display.
7594
7595 * xdisp.c (find_row_end): New function, refactored from display_line.
7596 (display_line): Use it.
7597 (extend_face_to_end_of_line): In almost-filled rows, extend only
7598 if the row is R2L and not continued.
7599 (display_line): Fix prepending of truncation glyphs to R2L rows.
7600 Preserve overlay and string info in row->end.
7601 (insert_left_trunc_glyphs): Support addition of left truncation
7602 glyphs to R2L rows.
7603 (set_cursor_from_row): Don't place cursor on the vertical border
7604 glyph between adjacent windows. Fix a crash when a display string
7605 is continued to the next line. Don't return zero if cursor was
7606 found by `cursor' property of a display string.
7607 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7608 test for that explicitly.
7609
7610 2010-05-01 Glenn Morris <rgm@gnu.org>
7611
7612 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7613 for clarity.
7614 (OTHER_OBJ): Remove.
7615 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7616 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7617
7618 2010-05-01 Karel Klíč <kklic@redhat.com>
7619
7620 * fileio.c (Ffile_selinux_context): Context functions may return null.
7621
7622 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7623
7624 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
7625
7626 2010-04-30 Glenn Morris <rgm@gnu.org>
7627
7628 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7629 (OTHER_OBJ): Define as a separate variable, for clarity.
7630
7631 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7632
7633 * xsettings.c: include limits.h and update file comment.
7634
7635 2010-04-30 Glenn Morris <rgm@gnu.org>
7636
7637 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7638 Set with configure, not cpp.
7639 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7640
7641 * Makefile.in (mallocobj): Remove.
7642 (otherobj): Simplify using @OTHER_OBJ@.
7643
7644 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7645 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7646 Don't bother making nsgui.h dependency platform-specific.
7647
7648 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7649
7650 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7651
7652 * process.c (read_process_output, exec_sentinel): Don't burp if the
7653 sentinel/filter kills the current buffer (bug#6060).
7654
7655 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
7656 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7657 Remove unused var `args'.
7658 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7659 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7660 * doc.c (store_function_docstring): Use XSETCAR.
7661
7662 2010-04-28 Glenn Morris <rgm@gnu.org>
7663
7664 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7665 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7666
7667 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7668
7669 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7670 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7671
7672 * Makefile.in (FONT_OBJ): New, set by configure.
7673 (FONT_DRIVERS): Use $FONT_OBJ.
7674
7675 * Makefile.in (LIBXMU): Set with configure, not cpp.
7676 * s/aix4-2.h (LIBXMU):
7677 * s/hpux10-20.h (LIBXMU):
7678 Remove definition, now set in configure.
7679
7680 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7681
7682 * m/amdx86-64.h [i386]: Move this test to configure.in.
7683
7684 2010-04-27 Glenn Morris <rgm@gnu.org>
7685
7686 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7687 * s/unixware.h (NEED_LIBW): Remove definition.
7688
7689 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7690 (TOOLKIT_LIBW): New, set by configure.
7691 (@X_TOOLKIT_TYPE@): No longer define it.
7692
7693 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7694 (MOTIF_LIBW): Set with configure, not cpp.
7695 * s/aix4-2.h (LIB_MOTIF):
7696 * s/gnu-linux.h (LIB_MOTIF):
7697 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7698
7699 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7700
7701 Reduce CPP usage.
7702 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7703 (obj): Use autoconf for unexec instead of cpp.
7704 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7705 Remove definitions and undefs. Inline definitions in the only user.
7706 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
7707
7708 2010-04-27 Glenn Morris <rgm@gnu.org>
7709
7710 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7711 since the defaults (set by the system file) are fine in most cases.
7712 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7713 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7714 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7715 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7716 Remove definitions, since they are set correctly in s/gnu-linux.h.
7717 * s/freebsd.h (START_FILES, LIB_STANDARD):
7718 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7719 * s/hpux10-20.h (START_FILES):
7720 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7721 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7722
7723 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7724 (MOTIF_LIBW): Use $LIBXP.
7725 (otherobj): Use $WIDGET_OBJ.
7726
7727 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7728
7729 * Makefile.in (LIBS_MACHINE): Remove, unused.
7730
7731 Use autoconf instead of cpp for LIB_MATH.
7732 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7733 * s/cygwin.h (LIB_MATH): Likewise.
7734 * Makefile.in (LIB_MATH): Do not define with cpp.
7735 (LIBES): Use autoconf for LIB_MATH.
7736
7737 2010-04-26 Kenichi Handa <handa@m17n.org>
7738
7739 * composite.c (Ffind_composition_internal): Fix the return value
7740 for an automatic composition.
7741
7742 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7743
7744 Remove all NO_ARG_ARRAY uses.
7745 * fns.c (concat2, concat3, nconc2):
7746 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7747 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7748 * m/xtensa.h (NO_ARG_ARRAY):
7749 * m/template.h (NO_ARG_ARRAY):
7750 * m/sparc.h (NO_ARG_ARRAY):
7751 * m/sh3.h (NO_ARG_ARRAY):
7752 * m/mips.h (NO_ARG_ARRAY):
7753 * m/macppc.h (NO_ARG_ARRAY):
7754 * m/iris4d.h (NO_ARG_ARRAY):
7755 * m/intel386.h (NO_ARG_ARRAY):
7756 * m/ibms390x.h (NO_ARG_ARRAY):
7757 * m/ibms390.h (NO_ARG_ARRAY):
7758 * m/ibmrs6000.h (NO_ARG_ARRAY):
7759 * m/ia64.h (NO_ARG_ARRAY):
7760 * m/hp800.h (NO_ARG_ARRAY):
7761 * m/arm.h (NO_ARG_ARRAY):
7762 * m/amdx86-64.h (NO_ARG_ARRAY):
7763 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7764
7765 2010-04-25 Eli Zaretskii <eliz@gnu.org>
7766
7767 * xdisp.c (display_line): Don't assume 2nd call to
7768 get_next_display_element cannot return zero. (Bug#6030)
7769 (iterate_out_of_display_property): New function, body from pop_it.
7770 (pop_it): Use it.
7771
7772 2010-04-24 Glenn Morris <rgm@gnu.org>
7773
7774 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7775 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7776 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7777 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7778
7779 2010-04-24 Eli Zaretskii <eliz@gnu.org>
7780
7781 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7782 use `get_next_display_element' and `set_iterator_to_next' to
7783 advance to the next character, when looking for the character that
7784 begins the next row.
7785
7786 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
7787 definition of "struct Lisp_Symbol".
7788
7789 2010-04-24 Glenn Morris <rgm@gnu.org>
7790
7791 * Makefile.in (CRT_DIR): New variable, set by configure.
7792 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7793 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7794
7795 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7796
7797 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7798
7799 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7800
7801 Remove redundant flags.
7802 * s/freebsd.h (C_SWITCH_SYSTEM):
7803 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7804 * s/netbsd.h (C_SWITCH_SYSTEM):
7805 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7806 of these.
7807
7808 Simplify m/intel386.h.
7809 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7810 user: ecrt0.c.
7811 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7812 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7813 the only user: s/unixware.h.
7814 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7815 from m/intel386.h.
7816 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7817 Definitions moved here from m/intel386.h.
7818
7819 * m/mips.h: Remove #if 0 code.
7820
7821 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7822
7823 Fix display of composed characters from L2R scripts in bidi buffers.
7824 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7825 After advancing IT past the composition, resync the bidi iterator
7826 with IT's position. (Bug#5977)
7827
7828 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7829
7830 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7831 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7832
7833 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7834
7835 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7836
7837 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7838
7839 Support `display' text properties and overlay strings in bidi buffers.
7840 * xdisp.c (pop_it): When the stack is popped after displaying
7841 from a string, bidi-iterate to exit from the text portion covered
7842 by the `display' property or overlay. (Bug#5988, bug#5920)
7843
7844 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7845
7846 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7847 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7848
7849 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7850 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7851
7852 Simplify STARTFILES definition.
7853 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7854 relying on Makefile.in to define it.
7855 * s/cygwin.h (START_FILES): Likewise.
7856 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7857
7858 Clean up Solaris code.
7859 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7860 (LIB_MOTIF): Remove, configure takes care of this.
7861 (NOT_USING_MOTIF): Remove, unused.
7862 * xrdb.c: Remove #if 0-ed #include.
7863 (SYSV): Remove conditional for old SysV.
7864 * sysdep.c (closedir): Remove conditional code for Solaris,
7865 Solaris has closedir.
7866
7867 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7868
7869 * xsettings.c (read_and_apply_settings): Check if current_font is
7870 NULL before strcmp (Bug#6001).
7871
7872 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7873
7874 Clean up HP-UX files.
7875 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7876 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7877 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7878 * s/hpux10-20.h: ... to the only user, here.
7879
7880 2010-04-21 Eli Zaretskii <eliz@gnu.org>
7881
7882 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7883 use buffer-local values of paragraph-start and paragraph-separate.
7884 <paragraph_start_re, paragraph_separate_re>: Rename from
7885 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7886 (Bug#5992)
7887
7888 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7889
7890 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7891 current_tool_bar_style are new.
7892 (store_config_changed_event): Rename from store_font_changed_event.
7893 (XSETTINGS_TOOL_BAR_STYLE): New define.
7894 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7895 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7896 HAVE_XFT.
7897 (something_changedCB): store_font_changed_event is now
7898 store_config_changed_event.
7899 (parse_settings): Rename from parse_xft_settings.
7900 Read non-xft xsettings outside #ifdef HAVE_XFT.
7901 (read_settings): Rename from read_xft_settings.
7902 (apply_xft_settings): Take current settings as parameter. Do not
7903 call read_(xft)_settings.
7904 (read_and_apply_settings): New function.
7905 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7906 Call read_and_apply_settings if there are settings to be read.
7907 (init_xsettings): Rename from init_xfd_settings.
7908 Call read_and_apply_settings unconditionally.
7909 (xsettings_initialize): Call init_xsettings.
7910 (Ftool_bar_get_system_style): New function.
7911 (syms_of_xsettings): Define Qmonospace_font_name and
7912 Qtool_bar_style. Initialize current_tool_bar_style to nil.
7913 defsubr Stool_bar_get_system_style. Fprovide on
7914 dynamic-setting.
7915 Move misplaced HAVE_GCONF
7916
7917 * xsettings.h (Ftool_bar_get_system_style): Declare.
7918
7919 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7920 Qtext, Qboth, Qboth_horiz are new.
7921 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7922 Vtool_bar_style, tool_bar_max_label_size.
7923
7924 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7925
7926 * keyboard.c: QClabel is new.
7927 (parse_tool_bar_item): Take out QClabel from tool bar items.
7928 Try to construct a label if ther is no QClabel.
7929 (syms_of_keyboard): Intern :label as QClabel.
7930
7931 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7932 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7933 New.
7934
7935 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7936 dynamic-setting.el.
7937
7938 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7939 (xg_make_tool_item, xg_show_toolbar_item): New function.
7940 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7941 Call xg_make_tool_item to make a tool bar item.
7942 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7943
7944 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7945 into account for toolbars.
7946
7947 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7948
7949 * data.c (make_blv): Declarations before code (Bug#5993).
7950
7951 2010-04-21 Glenn Morris <rgm@gnu.org>
7952
7953 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7954 Define using autoconf, not cpp.
7955 (LIBXSM): New variable, set by autoconf.
7956 (LIBXT): Use $LIBXSM.
7957
7958 2010-04-21 Dan Nicolaescu <local_user@dannlt>
7959
7960 Remove NOMULTIPLEJOBS, unused.
7961 * s/template.h (NOMULTIPLEJOBS):
7962 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7963
7964 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7965 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7966 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7967 detects -znocombreloc and passes it to the linker
7968 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7969
7970 2010-04-21 Glenn Morris <rgm@gnu.org>
7971
7972 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7973
7974 2010-04-21 Karel Klíč <kklic@redhat.com>
7975
7976 * Makefile.in (LIBSELINUX_LIBS): New.
7977 (LIBES): Add $LIBSELINUX_LIBS.
7978 * eval.c, lisp.h (call7): New function.
7979 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7980 (Ffile_selinux_context, Fset_file_selinux_context):
7981 New functions.
7982 (Fcopy_file): New parameter preserve-selinux-context.
7983 (Frename_file): Preserve selinux context when renaming by copy-file.
7984
7985 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
7986 Eli Zaretskii <eliz@gnu.org>
7987
7988 Don't depend on cm.c or termcap.c on Windows, use stubs.
7989 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7990 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7991 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7992 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7993 (sys_tputs, sys_tgetstr): New stubs.
7994 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7995 (tputs, tgetstr): New; define to sys_*.
7996
7997 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
7998
7999 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
8000
8001 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8002
8003 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
8004 Just signal a warning rather than an error when inside a let.
8005 (Fmake_variable_frame_local): Add the same test.
8006
8007 * font.c (syms_of_font): Make the style table vars read-only.
8008
8009 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
8010 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
8011
8012 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
8013
8014 2010-04-20 Eli Zaretskii <eliz@gnu.org>
8015
8016 Fix R2L paragraph display on TTY.
8017
8018 * xdisp.c (unproduce_glyphs): New function.
8019 (display_line): Use it when produced glyphs are discarded from R2L
8020 glyph rows.
8021 (append_composite_glyph): In R2L rows, prepend the glyph rather
8022 than appending it.
8023
8024 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
8025 rather than append it. Set up the resolved_level and bidi_type
8026 attributes of the appended glyph.
8027 (produce_special_glyphs): Mirror the backslash continuation
8028 character in R2L lines.
8029
8030 Implement display of R2L paragraphs in GUI sessions.
8031
8032 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
8033 append_stretch_glyph.
8034 (set_cursor_from_row) <cursor_x>: Remove unused variable.
8035 Fix off-by-one error in computing x at end of text in the row.
8036 (append_stretch_glyph): In reversed row, prepend the glyph rather
8037 than append it. Set resolved_level and bidi_type of the glyph.
8038 (extend_face_to_end_of_line): If the row is reversed, prepend a
8039 stretch glyph whose width is such that the rightmost glyph will be
8040 drawn at the right margin of the window. Fix off-by-one error on
8041 TTY frames in testing whether a line needs face extension.
8042 Fix face extension at ZV. If this is the last glyph row, use
8043 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
8044 region face.
8045 (set_cursor_from_row, display_line):
8046 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
8047 row->continuation_lines_width.
8048 (next_element_from_buffer): Don't call bidi_paragraph_init if we
8049 are at ZV. Fixes a crash when reseated to ZV by
8050 try_window_reusing_current_matrix.
8051 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
8052 which happens with R2L glyph rows. Fixes a crash when inserting a
8053 character at end of an R2L line.
8054 (set_cursor_from_row): Don't be fooled by truncated rows: don't
8055 treat them as having zero-width characters. Improve comments.
8056 Don't reverse pos_before and pos_after for reversed glyph rows.
8057 Set cursor.x to negative value when the cursor might be on the
8058 left fringe.
8059 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
8060 left fringe, not the right one.
8061 (notice_overwritten_cursor, draw_phys_cursor_glyph)
8062 (erase_phys_cursor): For reversed cursor_row, support cursor on
8063 the left fringe.
8064
8065 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
8066 of continuation indicators on the fringes.
8067 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
8068 left fringe.
8069
8070 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
8071 draw cursor on the left fringe.
8072
8073 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
8074 cursor on the left fringe.
8075
8076 * dispnew.c (update_text_area): Handle reversed desired rows when
8077 the cursor is on the left fringe.
8078 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
8079 below, not by 0, for when the cursor is on the left fringe.
8080
8081 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
8082
8083 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
8084 widget is a scrollbar.
8085
8086 2010-04-20 Kenichi Handa <handa@m17n.org>
8087
8088 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8089 only when the arg CHARSET_LIST is nil.
8090
8091 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8092
8093 Make variable forwarding explicit rather the using special values.
8094 Basically, this makes the structure of buffer-local values and object
8095 forwarding explicit in the type of Lisp_Symbols rather than use
8096 special Lisp_Objects for that. This tends to lead to slightly more
8097 verbose code, but is more C-like, simpler, and makes it easier to make
8098 sure we handled all cases, among other things by letting the compiler
8099 help us check it.
8100 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8101 Removing forwarding objects.
8102 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8103 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8104 explicit rather than hiding them inside Lisp_Object "values".
8105 (XFWDTYPE): New macro.
8106 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8107 (XBUFFER_LOCAL_VALUE): Remove.
8108 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8109 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8110 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8111 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8112 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8113 Remove the Lisp_Misc_* header.
8114 (struct Lisp_Buffer_Local_Value): Redefine.
8115 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8116 (struct Lisp_Misc_Any): Add filler to get the right size.
8117 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8118 Lisp_Intfwd.
8119 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8120 (DEFVAR_KBOARD): Allocate a forwarding object.
8121 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8122 (let_shadows_global_binding_p): New function.
8123 (union Lisp_Val_Fwd): New type.
8124 (make_blv): New function.
8125 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8126 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8127 (swap_in_symval_forwarding, find_symbol_value, Fset)
8128 (let_shadows_buffer_binding_p, set_internal, default_value)
8129 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8130 (Fkill_local_variable, Fmake_variable_frame_local)
8131 (Flocal_variable_p, Flocal_variable_if_set_p)
8132 (Fvariable_binding_locus):
8133 * xdisp.c (select_frame_for_redisplay):
8134 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8135 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8136 * frame.c (store_frame_param):
8137 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8138 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8139 value structure.
8140 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8141 (clone_per_buffer_values): Only adjust markers into the current buffer.
8142 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8143 (Fbuffer_local_value, set_buffer_internal_1)
8144 (swap_out_buffer_local_variables):
8145 Adapt to the new symbol value structure.
8146 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8147 (defvar_per_buffer): Take a new arg for the fwd object.
8148 (buffer_lisp_local_variables): Return a proper alist (different fix
8149 for bug#4138).
8150 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8151 (Fgarbage_collect): Don't handle buffer_defaults specially.
8152 (mark_object): Handle new symbol value structure rather than the old
8153 special Lisp_Misc_* objects.
8154 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8155 * term.c (set_tty_color_mode):
8156 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8157 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8158 a buffer_local_flags.
8159 * print.c (print_object): Get rid of impossible forwarding objects.
8160
8161 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8162
8163 * bidi.c (bidi_get_type, bidi_get_category)
8164 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
8165 (bidi_type_of_next_char, bidi_level_of_next_char):
8166 Declare static. Use `INLINE' rather than `inline'.
8167
8168 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
8169
8170 * dired.c (Ffile_attributes): Fix typo in docstring.
8171
8172 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8173
8174 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8175 NSInteger (Bug#5811).
8176
8177 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8178
8179 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8180 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8181
8182 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8183
8184 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8185
8186 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
8187
8188 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8189 terminal frames (Bug#5837).
8190
8191 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8192
8193 * .gdbinit (xsubchartable): New command.
8194
8195 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8196
8197 * xdisp.c (display_line): Don't write beyond the last glyph row in
8198 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
8199 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8200 and
8201 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8202
8203 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8204
8205 * alloc.c (Fpurecopy): Hash-cons if requested.
8206 (syms_of_alloc): Update purify-flag docstring.
8207
8208 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8209
8210 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8211 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8212
8213 2010-04-17 Eli Zaretskii <eliz@gnu.org>
8214
8215 Fix a crash when an NSM character is inserted at BEGV.
8216
8217 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8218 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8219 NEUTRAL_B or UNKNOWN_BT.
8220
8221 2010-04-16 Eli Zaretskii <eliz@gnu.org>
8222
8223 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8224 other rows with cursor unless they are different from this row and
8225 this row is part of a continued line. (Bug#5943)
8226
8227 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8228
8229 * s/freebsd.h: Restore osreldate.h include.
8230 Suggested by Naohiro Aota.
8231
8232 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8233
8234 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8235
8236 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8237
8238 * s/cygwin.h: Avoid linking against static libgcc.
8239
8240 2010-04-15 Juri Linkov <juri@jurta.org>
8241
8242 * window.c: Add Qscroll_command.
8243 Remove Vscroll_preserve_screen_position_commands.
8244 (window_scroll_pixel_based, window_scroll_line_based): Check the
8245 `scroll-command' property on the last command instead of searching
8246 the last command in Vscroll_preserve_screen_position_commands.
8247 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8248 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8249 (scroll-preserve-screen-position): Doc fix.
8250 (Vscroll_preserve_screen_position_commands): Remove variable.
8251
8252 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8253
8254 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8255
8256 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8257
8258 Reduce cpp use in Makefile.in.
8259 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8260 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8261 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8262 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8263 (CRT0_COMPILE): Remove, inline it in the only user.
8264
8265 2010-04-14 Juri Linkov <juri@jurta.org>
8266
8267 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8268 `scroll-up-command' and `M-v' from `scroll-down' to
8269 `scroll-down-command'.
8270
8271 2010-04-14 Juri Linkov <juri@jurta.org>
8272
8273 * window.c (Vscroll_preserve_screen_position_commands): New variable
8274 with the default value as the list of Qscroll_down and Qscroll_up.
8275 (window_scroll_pixel_based, window_scroll_line_based): Search the
8276 last command in the list Vscroll_preserve_screen_position_commands
8277 instead of comparing with Qscroll_up and Qscroll_down.
8278
8279 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8280
8281 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8282 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8283 does that.
8284
8285 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8286 to zero.
8287
8288 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8289
8290 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8291
8292 Try to solve the problem of spurious EOF chars in long lines of text
8293 sent to interactive subprocesses.
8294 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8295 (system_process_attributes): Remove unused var `ttotal'.
8296 * process.c (send_process): Don't bother breaking long line with EOF
8297 chars when talking to ttys any more.
8298 (wait_reading_process_output): Output a warning when called in such
8299 a way that it could block without being interruptible.
8300
8301 Try to detect file modification within the same second.
8302 * buffer.h (struct buffer): New field modtime_size.
8303 * buffer.c (reset_buffer): Initialize it.
8304 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8305 (Fverify_visited_file_modtime): Check it.
8306 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8307 (Fset_visited_file_modtime): Set (or clear) it.
8308
8309 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8310
8311 * process.c (status_notify): Remove unused var `ro'.
8312
8313 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8314
8315 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8316 more than one visual (Bug#5938).
8317
8318 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8319
8320 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8321 Undefine.
8322
8323 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8324
8325 Remove C_SWITCH_SYSTEM_TEMACS.
8326 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8327 (malloc, realloc, free): Use emacs, not temacs for conditional
8328 definition.
8329
8330 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8331 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8332
8333 Use autoconf, not cpp for some variables.
8334 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8335 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8336 (ALL_CFLAGS): Use them as make variables.
8337 (really-lwlib, really-oldXMenu): Do not pass them.
8338
8339 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8340
8341 * xmenu.c (apply_systemfont_to_dialog): New.
8342 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8343
8344 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8345
8346 * process.c (exec_sentinel): Preserve current-buffer.
8347
8348 * process.c (read_process_output): Move the save-current-buffer to
8349 apply to both the filter and the non-filter branches.
8350
8351 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8352
8353 * s/msdos.h (UNEXEC): New definition.
8354
8355 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8356
8357 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8358 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8359
8360 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8361 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8362 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8363 TRY_WINDOW_CHECK_MARGINS.
8364
8365 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
8366 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8367 width only when it is for padding.
8368
8369 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8370
8371 * xfns.c (Fx_show_tip): Call try_window in a loop until
8372 fonts_changed_p is zero (Bug#2423).
8373
8374 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8375
8376 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8377 the end of TEXT_AREA. (Bug#5856)
8378
8379 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8380
8381 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8382 HAVE_GCONF.
8383
8384 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8385
8386 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8387 prev.orig_type, for resolving type of NSM. (Bug#5858)
8388
8389 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8390
8391 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8392 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8393 in current_font.
8394 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
8395 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8396 New functions.
8397 (syms_of_xsettings): Initialize current_font.
8398 defsubr Sfont_get_system_normal_font.
8399
8400 * xsettings.h (Ffont_get_system_normal_font)
8401 (xsettings_get_system_normal_font): Declare.
8402
8403 * xfns.c (extern xlwmenu_default_font): Remove.
8404 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8405 to xlwmenu.c.
8406
8407 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8408 menu items in UTF-8.
8409
8410 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8411 (apply_systemfont_to_menu): New function.
8412 (set_frame_menubar, create_and_show_popup_menu):
8413 Call apply_systemfont_to_menu.
8414
8415 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8416
8417 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8418 FRAME_LINE_TO_PIXEL_Y.
8419
8420 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8421 pixelwidth/height.
8422
8423 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8424
8425 Simplify code for HP machines.
8426 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8427 for GNU_LINUX, not needed.
8428 (UNEXEC, NEED_BSDTTY): Move definitions...
8429 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8430
8431 * m/iris4d.h (UNEXEC): Move definition ...
8432 * s/irix6-5.h (UNEXEC): ... here.
8433
8434 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8435
8436 * xfns.c (set_machine_and_pid_properties): New function.
8437 (Fx_create_frame): Call set_machine_and_pid_properties.
8438
8439 2010-04-03 Eli Zaretskii <eliz@gnu.org>
8440
8441 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8442 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
8443 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8444
8445 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8446 in this function. (Bug#5703)
8447
8448 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
8449
8450 * nsterm.h: Fix last change.
8451
8452 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8453
8454 * m/intel386.h (NO_REMAP): Move definition ...
8455 * s/msdos.h (NO_REMAP): ... here.
8456
8457 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8458
8459 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8460 used on those platforms.
8461
8462 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8463
8464 Remove extern errno declarations.
8465 * xterm.c:
8466 * xrdb.c:
8467 * w32term.c:
8468 * unexec.c:
8469 * unexaix.c:
8470 * sysdep.c:
8471 * process.c:
8472 * lread.c:
8473 * keyboard.c:
8474 * floatfns.c:
8475 * filelock.c:
8476 * fileio.c:
8477 * emacs.c (main):
8478 * ecrt0.c:
8479 * dispnew.c:
8480 * callproc.c:
8481 * buffer.c: Remove errno extern declarations.
8482 * s/netbsd.h (NEED_ERRNO): Remove.
8483
8484 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8485
8486 Remove all uses of LIBX11_SYSTEM.
8487 * Makefile.in (LIBX11_SYSTEM): Remove.
8488 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8489 instead.
8490
8491 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8492
8493 Remove support for DJGPP v1.x (bug#5813).
8494
8495 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8496 * s/msdos.h:
8497 * unexec.c (make_hdr, copy_text_and_data):
8498 * sysdep.c (wait_for_termination, sys_subshell):
8499 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
8500 (IT_set_terminal_modes, __write, _rename, gethostname)
8501 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8502 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8503 the value of __DJGPP__.
8504 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8505 compatibility code.
8506 * lread.c:
8507 * gmalloc.c (memalign):
8508 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8509 * emacs.c (main):
8510 * dosfns.c (init_dosfns):
8511 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8512
8513 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8514
8515 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8516 string with `cursor' property comes from an `after-string'
8517 overlay. (Bug#5816)
8518
8519 2010-04-01 Glenn Morris <rgm@gnu.org>
8520
8521 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8522 Define as Makefile variables.
8523 (LIBX): Use above variables rather than directly using autoconf.
8524
8525 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8526
8527 Clean up BSD_SYSTEM use.
8528 * xterm.c:
8529 * process.c:
8530 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8531 for including <sys/ioctl.h>.
8532 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8533 code is only used for MSDOS.
8534
8535 2010-03-31 Juri Linkov <juri@jurta.org>
8536
8537 * image.c: Add `Qextension_data'.
8538 (syms_of_image): Initialize and staticpro `Qextension_data'.
8539 (Fimage_metadata): Rename from `Fimage_extension_data'.
8540 (gif_load): Put GIF extension data to the property
8541 `Qextension_data'.
8542
8543 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8544
8545 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8546 * nsterm.h: Fix prototype.
8547
8548 2010-03-31 Eli Zaretskii <eliz@gnu.org>
8549
8550 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8551 trailing whitespace in right-to-left rows.
8552
8553 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8554
8555 Get rid of the direct_output optimizations.
8556 * keyboard.c (nonundocount): Remove extern declaration.
8557 (command_loop_1): Remove brittle optimisation for cheap and
8558 common operations.
8559 * xdisp.c (redisplay_internal): Don't bother checking
8560 redisplay_performed_directly_p any more.
8561 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8562 any more.
8563 * dispnew.c (redisplay_performed_directly_p)
8564 (direct_output_for_insert, direct_output_forward_char):
8565 * dispextern.h (redisplay_performed_directly_p)
8566 (direct_output_for_insert, direct_output_forward_char): Remove.
8567 * cmds.c (nonundocount): Make it static.
8568
8569 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
8570
8571 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8572
8573 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
8574
8575 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8576 invisible (Bug#5766).
8577
8578 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
8579
8580 * xdisp.c (x_consider_frame_title, update_window_cursor):
8581 Remove HAVE_NS conditionals.
8582 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
8583
8584 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8585 filename for the title.
8586 (ns_set_doc_edited): Do nothing if the selected window is a
8587 minibuffer window.
8588
8589 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8590 ns_set_doc_edited.
8591
8592 * nsterm.m: Remove unneeded prototype.
8593
8594 2010-03-31 Glenn Morris <rgm@gnu.org>
8595
8596 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8597 in the DOC file. (Bug#5336)
8598
8599 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8600
8601 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8602
8603 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8604
8605 * window.c (keys_of_window): Remove redundant/overridden bindings.
8606
8607 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8608
8609 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8610 Restore original behavior when the iterator is not bidi_p.
8611
8612 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8613
8614 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8615
8616 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8617
8618 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8619 are outside the range of cached character positions.
8620
8621 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
8622
8623 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8624
8625 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8626
8627 Initial support for bidirectional editing.
8628
8629 * Makefile.in (obj): Include bidi.o.
8630 (bidi.o): New target.
8631
8632 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8633 ($(BLD)/bidi.$(O)): New target.
8634
8635 * bidi.c: New file.
8636
8637 * buffer.h (struct buffer): New members bidi_display_reordering
8638 and bidi_paragraph_direction.
8639
8640 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8641 and bidi_paragraph_direction.
8642 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8643 and bidi-paragraph-direction.
8644 (Fbuffer_swap_text): Swap the values of
8645 bidi_display_reordering and bidi_paragraph_direction.
8646
8647 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8648 (bidi_type_t, bidi_dir_t): New types.
8649 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8650 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8651 prev_stop, base_level_stop, and eol_pos.
8652 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8653 (IT_STACK_SIZE): Enlarge to 5.
8654 (struct glyph_row): New member reversed_p.
8655 <string_buffer_position>: Update prototype.
8656 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8657 glyph_row if bidi_it.paragraph_dir == R2L.
8658 (struct glyph): New members resolved_level and bidi_type.
8659
8660 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8661 processing or buffer's direction is right-to-left.
8662 (prepare_desired_row): Preserve the reversed_p flag.
8663 (row_equal_p): Compare the reversed_p attributes as well.
8664
8665 * xdisp.c (init_iterator): Initialize it->bidi_p.
8666 Call bidi_init_it and set it->paragraph_embedding from the current
8667 buffer's value of bidi_paragraph_direction.
8668 (reseat_1): Initialize bidi_it.first_elt.
8669 (set_iterator_to_next, next_element_from_buffer): Use the value of
8670 paragraph_embedding to determine the paragraph direction.
8671 (set_iterator_to_next): Under bidi reordering, call
8672 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8673 new_paragraph flag is set in the bidi iterator.
8674 (next_element_from_buffer): If bidi_it.first_elt is set,
8675 initialize paragraph direction and find the first character to
8676 display in the visual order. If reseated to a middle of a line,
8677 prime the bidi iterator starting at the line's beginning.
8678 Handle the situation where we overstepped stop_charpos due to
8679 non-linearity of the bidi iteration. Likewise for when we back up
8680 beyond the previous stop_charpos. When moving across stop_charpos,
8681 record it in prev_stop.
8682 (display_line): Set row->end and it->start for the next row to the
8683 next character in logical order. Always extend reversed_p rows to
8684 the end of line, even if they end at ZV. Copy the reversed_p flag
8685 to the next glyph row. Keep calling set_cursor_from_row for
8686 bidi-reordered rows even if we already have a possible candidate
8687 for cursor position. Set row_end after all the row's glyphs have
8688 been produced, by looping over the glyphs. Record the position
8689 after EOL in it->eol_pos, and use it to set end_pos of the last
8690 row produced for a continued line.
8691 <Qright_to_left, Qleft_to_right>: New variables.
8692 (syms_of_xdisp): Initialize and staticpro them.
8693 (string_buffer_position_lim): New function.
8694 (string_buffer_position): Most of code moved to
8695 string_buffer_position_lim. Last argument and return value are
8696 now EMACS_INT; all callers changed.
8697 (set_cursor_from_row): Rewritten to support bidirectional text and
8698 reversed glyph rows.
8699 (text_outside_line_unchanged_p, try_window_id):
8700 Disable optimizations if we are reordering bidirectional text and the
8701 paragraph direction can be affected by the change.
8702 (append_glyph, append_composite_glyph)
8703 (produce_image_glyph, append_stretch_glyph): Set the
8704 resolved_level and bidi_type members of each glyph.
8705 (append_glyph): If the glyph row is reversed, prepend the glyph
8706 rather than appending it.
8707 (handle_stop_backwards): New function.
8708 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8709 (reseat): call handle_stop_backwards to recompute prev_stop and
8710 base_level_stop for the new position.
8711 (handle_invisible_prop): Under bidi iteration, skip invisible text
8712 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8713 paragraph direction. Update IT->prev_stop after skipping
8714 invisible text.
8715 (move_it_in_display_line_to): New variables prev_method
8716 and prev_pos. Compare for strict equality in
8717 BUFFER_POS_REACHED_P.
8718 (try_cursor_movement): Examine all the candidate rows that occlude
8719 point, to return the best match. If rows are bidi-reordered
8720 and point moved backwards, back up to the row that is not a
8721 continuation line, and start looking for a suitable row from
8722 there.
8723
8724 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8725 rather than appending, if the glyph_row's reversed_p flag is set.
8726 Set the resolved_level and bidi_type members of each glyph.
8727
8728 * .gdbinit (pbiditype): New command.
8729 (pgx): Use it to display bidi level and type of the glyph.
8730 (pitx): Display some bidi information about the iterator.
8731 (prowlims, pmtxrows): New commands.
8732
8733 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8734
8735 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8736 * s/usg5-4.h (LIBS_DEBUG):
8737 * s/irix6-5.h (C_DEBUG_SWITCH):
8738 * s/gnu-linux.h (LIBS_DEBUG):
8739 * s/darwin.h (LIBS_DEBUG):
8740 * s/bsd-common.h (LIBS_DEBUG):
8741 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8742 * m/iris4d.h (LIBS_DEBUG):
8743 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8744
8745 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8746 (LIBS_DEBUG): Remove definition.
8747
8748 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
8749
8750 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8751 Windows.
8752
8753 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8754
8755 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8756 `connect' (Bug#5723).
8757
8758 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
8759
8760 * process.c (Fmake_network_process): Call `select' for interrupted
8761 `connect' rather than creating new socket (Bug#5173).
8762
8763 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
8764
8765 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8766
8767 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8768
8769 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8770
8771 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8772
8773 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8774 XLoadQueryFont.
8775
8776 2010-03-24 Kenichi Handa <handa@m17n.org>
8777
8778 * coding.c (decode_coding_ccl): Fix previous change for the
8779 multibyte case.
8780 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8781 case that the output buffer is fullfilled.
8782 (encode_coding): Setup ccl program here.
8783
8784 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8785
8786 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8787
8788 Simplify LIBS_MACHINE definitions.
8789 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8790 * m/iris4d.h (LIBS_MACHINE): Likewise.
8791 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8792 * s/aix4-2.h (LIBS_SYSTEM): ... here.
8793 * s/netbsd.h: Remove commented out code.
8794
8795 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8796
8797 Remove dead code dealing with POSIX_SIGNALS.
8798 * atimer.c (set_alarm): Remove dead code, all USG systems define
8799 POSIX_SIGNALS.
8800 * data.c (arith_error): Likewise.
8801 * keyboard.c (input_available_signal, handle_user_signal)
8802 (interrupt_signal): Likewise.
8803 * process.c (sigchld_handler): Likewise.
8804 (create_process): Remove if 0 code. Remove HPUX conditional when
8805 !defined (POSIX_SIGNALS), it cannot be true.
8806 * syssignal.h: Remove USG5_4 and USG conditionals when
8807 !POSIX_SIGNALS, they cannot be true.
8808
8809 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8810 NO_SOCK_SIGIO, not used anymore.
8811
8812 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8813
8814 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8815 support vax on BSDs.
8816
8817 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8818 * s/aix4-2.h (ORDINARY_LINK): ... here.
8819
8820 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8821
8822 * Makefile.in (abs_builddir): Define.
8823 (bootstrap_exe): Use it.
8824 (VPATH): Use $(srcdir) instead of @srcdir@.
8825
8826 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8827
8828 * Makefile.in (bootstrap_exe): Use an absolute name.
8829
8830 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8831
8832 Remove support for old GNU/Linux using libc version 5.
8833 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8834 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8835
8836 Consolidate redundant definitions in s/bsd-common.h.
8837 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8838 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8839 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8840 doing it in all files that include this one.
8841 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8842 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8843 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8844 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8845 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8846 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8847 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8848 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8849 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8850
8851 Consolidate redundant definitions.
8852 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8853 it's undefined in all files that include this one.
8854 (POSIX_SIGNALS): Define here instead of doing it in all files that
8855 include this one.
8856 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8857 (POSIX_SIGNALS): Do not define.
8858 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8859 (POSIX_SIGNALS): Do not define.
8860 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8861 (POSIX_SIGNALS): Do not define.
8862
8863 Remove support for old UNIX System V systems.
8864 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8865 * s/usg-5-4-2.h: Remove.
8866
8867 Remove support for Solaris on PPC and for old versions.
8868 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8869 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8870 that cancel each other.
8871 * s/sol2-3.h:
8872 * s/sol2-4.h:
8873 * s/sol2-5.h: Remove.
8874 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8875 (NO_REMAP): Remove, unused.
8876 (UNEXEC): Move definition ...
8877 * s/aix4-2.h (UNEXEC): ... here.
8878
8879 * s/openbsd.h: Remove support for non-ELF and for systems that do
8880 not support shared libraries.
8881 * s/netbsd.h:
8882 * s/freebsd.h: Likewise.
8883
8884 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8885
8886 Remove non-working support for lynxos 3.0.
8887 * s/lynxos.h: Remove file.
8888
8889 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8890 COFF_BSD_SYMBOLS, nothing defines it anymore.
8891
8892 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8893
8894 Remove obsolete uses of HAVE_SHM.
8895 * emacs.c (standard_args):
8896 (Fdump_emacs):
8897 (syms_of_emacs): Remove code depending on HAVE_SHM.
8898
8899 * alloc.c: Remove HAVE_SHM dependent definition.
8900
8901 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8902
8903 2010-03-18 Glenn Morris <rgm@gnu.org>
8904
8905 * emacs.c (USAGE4): Hard-code bug address.
8906 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8907 (bug_reporting_address): Remove.
8908 (main): Don't call bug_reporting_address.
8909
8910 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8911 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8912
8913 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
8914
8915 * xfns.c (Fx_create_frame):
8916 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8917 on left.
8918
8919 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8920
8921 * editfns.c (Fformat): Account for string precision when computing
8922 field width (Bug#5710).
8923
8924 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
8925
8926 * xfns.c (Fx_create_frame): Set default to Qright.
8927
8928 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8929 all window systems.
8930
8931 2010-03-12 Eli Zaretskii <eliz@gnu.org>
8932
8933 These changes remove termcap.c from the build on Posix platforms.
8934 * Makefile.in (termcapobj): Move termcap.o from here...
8935 (MSDOS_OBJ): ...to here.
8936 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8937 now identical to when LIBS_TERMCAP is defined.
8938
8939 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8940
8941 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8942
8943 * config.in: Regenerated. (See top-level ChangeLog.)
8944
8945 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
8946
8947 * Branch for 23.2.
8948
8949 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8950
8951 Cleanup setup of gl_state in various parts of the code.
8952 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8953 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8954 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8955 (skip_chars):
8956 * regex.c (regex_compile): Use it.
8957 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8958 it's now set in regex_compile when/if we need it.
8959
8960 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8961
8962 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8963 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8964 (QUIT): Use it to consolidate code and remove redundancy.
8965 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8966
8967 * regex.c (regex_compile): Setup gl_state as well.
8968
8969 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8970 (in_classes): Use CONSP before XCAR/XCDR.
8971
8972 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
8973
8974 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8975 definitions, so that keyboard macros are correctly handled
8976 (Bug#5481).
8977
8978 2010-03-02 Eli Zaretskii <eliz@gnu.org>
8979
8980 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8981 text that could be relocated inside the call to emacs_mule_char.
8982 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8983 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8984
8985 2010-03-02 Kenichi Handa <handa@m17n.org>
8986
8987 * character.c (parse_str_as_multibyte): Fix handling of the
8988 multibyte form of raw-bytes.
8989 (str_as_multibyte): Likewise.
8990
8991 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8992 form of raw-bytes.
8993
8994 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
8995
8996 * charset.c (load_charset_map_from_file)
8997 (load_charset_map_from_vector): Zero out allocated
8998 charset_map_entries before using them.
8999
9000 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
9001
9002 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
9003
9004 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
9005
9006 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
9007 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
9008
9009 2010-02-26 Kenichi Handa <handa@m17n.org>
9010
9011 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
9012
9013 * xdisp.c (reseat_to_string): Fix previous change.
9014
9015 2010-02-26 David Reitter <david.reitter@gmail.com>
9016
9017 * nsfont.m (nsfont_draw): ns_antialias_text should be a
9018 Lisp_Object (Bug#4736).
9019
9020 2010-02-25 Kenichi Handa <handa@m17n.org>
9021
9022 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
9023
9024 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
9025
9026 * xterm.c (XTflash): Move declarations before statements.
9027
9028 * gtkutil.c (xg_get_gdk_display): Remove (unused).
9029 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
9030 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
9031 (xg_create_tool_bar): Remove unused variables.
9032 (x_wm_set_size_hint): Move declarations before statements.
9033 (xg_create_frame_widgets): Remove variable grav.
9034
9035 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
9036
9037 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
9038
9039 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9040
9041 * term.c (fatal): Add a final \n if needed (bug#5596).
9042
9043 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
9044
9045 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
9046
9047 2010-02-18 Glenn Morris <rgm@gnu.org>
9048
9049 * callint.c (Finteractive): Doc fix.
9050
9051 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
9052
9053 * coding.c (record_conversion_result):
9054 Handle CODING_RESULT_INSUFFICIENT_DST.
9055 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
9056 memory allocation error.
9057
9058 2010-02-17 Kenichi Handa <handa@m17n.org>
9059
9060 * coding.c (decode_coding_ccl): Don't setup ccl program here.
9061 Fix for the case that the output buffer is fullfilled.
9062 (decode_coding): Setup ccl program here. Keep looping when the
9063 decoder stopped because the output buffer is
9064 fullfilled (bug#5534).
9065
9066 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
9067
9068 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
9069
9070 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
9071 bug #5571.
9072 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
9073 overdrawn.
9074
9075 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
9076
9077 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
9078 doing_interact here.
9079 (ice_connection_closed): New function.
9080 (x_session_check_input, smc_die_CB, ice_io_error_handler)
9081 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
9082 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
9083 returns I/O error.
9084 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
9085 bug #5512.
9086
9087 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
9088
9089 * nsfont.m (nsfont_open): The system's value for the font descent
9090 is negative, so round it down to avoid clipping.
9091
9092 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
9093
9094 * charset.c (load_charset_map_from_file)
9095 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
9096 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
9097
9098 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
9099
9100 * charset.c (load_charset_map_from_file): Allocate large
9101 charset_map_entries structure on the heap rather than the stack.
9102 (Bug#5526).
9103
9104 2010-01-31 Kenichi Handa <handa@m17n.org>
9105
9106 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
9107 size in NAME is invalid, return -1 (Bug#5396).
9108
9109 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
9110
9111 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9112 <deactivated@gmail.com> (Bug#3605).
9113
9114 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
9115
9116 * fileio.c (Frename_file): Correctly rename symlinks to
9117 directories (Bug#5496).
9118
9119 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9120
9121 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9122
9123 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9124
9125 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9126
9127 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
9128
9129 * frame.c (DEFAULT_ROWS): Change default to 35.
9130
9131 * xfns.c (x_default_font_parameter): Change default XFT font to
9132 monospace-10 (Bug#3643).
9133
9134 2010-01-29 Eli Zaretskii <eliz@gnu.org>
9135
9136 * w32inevt.c (key_event): Remove unnecessary comparison of
9137 event->uChar.AsciiChar with 128.
9138
9139 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
9140
9141 * fileio.c (Frename_file): Fix last change (Bug#5487).
9142
9143 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9144
9145 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9146
9147 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9148
9149 * xfns.c (Fx_create_frame): Remove window size matching code from
9150 2010-01-15.
9151 (x_get_current_desktop, x_get_desktop_workarea): Remove.
9152
9153 2010-01-27 Jason Rumney <jasonr@gnu.org>
9154
9155 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
9156 (key_event): Use unicode for characters 128 and higher (Bug#4567).
9157
9158 2010-01-27 Kenichi Handa <handa@m17n.org>
9159
9160 * regex.c (analyse_first): Fix setting of fastmap for unibyte
9161 pattern string (Bug#4209).
9162
9163 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
9164
9165 * fileio.c (Frename_file): Call copy-directory and
9166 delete-directory for directories, in order to handle cross-device
9167 renaming (Bug#3353).
9168
9169 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9170
9171 * xfns.c (Fx_create_frame): If frame height is too big, try
9172 sizes 24 and 10. Bug #3643.
9173
9174 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9175
9176 Try and fix bug#788, hopefully for real this time.
9177 * keymap.c (shadow_lookup): Add `remap' arg.
9178 (describe_map, describe_vector): Update calls to shadow_lookup.
9179 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9180 `remapped' so this flag is applicable to `sequence'. Be careful to
9181 perform remapping during shadow_lookup check of remapped_sequences.
9182
9183 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9184
9185 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9186 png_check_sig, which has been removed in libpng 1.4.
9187
9188 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9189
9190 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9191 lacks this header file).
9192
9193 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9194
9195 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9196 as in Emacs 22.
9197
9198 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9199
9200 * lisp.h (make_pure_string): String pointer arg now points to const.
9201
9202 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9203 args now point to const.
9204
9205 2010-01-22 Eli Zaretskii <eliz@gnu.org>
9206
9207 * lread.c (Fload): Don't treat files without .elc extension as
9208 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9209 them. (bug#5303)
9210
9211 2010-01-20 Kenichi Handa <handa@m17n.org>
9212
9213 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9214 treat the source as actual byte sequence.
9215
9216 2010-01-19 Alan Mackenzie <acm@muc.de>
9217
9218 Fix spurious before-change-functions invocation from (insert ?\n).
9219 * textprop.c (set_text_properties): Rename parameter
9220 `signal_after_change_p' to `coherent_change_p', and make the
9221 invocation of `modify_region' conditional on it.
9222
9223 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9224
9225 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9226 for debug purpose.
9227 (syms_of_xsettings): Declare xft-settings.
9228
9229 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
9230
9231 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9232
9233 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9234
9235 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9236
9237 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
9238
9239 * emacs.c (standard_args): Adjust arg priorities to reflect how
9240 they are processed in startup.el.
9241
9242 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9243
9244 * Makefile.in (lisp, shortlisp): Update.
9245
9246 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9247
9248 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9249 code, link the new kboard into all_kboard before running Lisp code,
9250 and protect the new terminal with GCPRO (Bug#5365).
9251 (x_term_init): Remove unused var `atom'.
9252 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9253
9254 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9255
9256 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9257 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9258 to find out usable size of the desktop. Don't make frames larger than
9259 this. Bug #3643.
9260
9261 2010-01-15 Kenichi Handa <handa@m17n.org>
9262
9263 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9264
9265 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
9266
9267 * nsterm.m (Qnone): Define.
9268
9269 * nsfns.m (Qnone): Move definition to nsterm.m.
9270
9271 2010-01-14 Kenichi Handa <handa@m17n.org>
9272
9273 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9274 systems.
9275
9276 2010-01-14 Kenichi Handa <handa@m17n.org>
9277
9278 Make auto-composition work on all buffers even if they are
9279 fundamental mode.
9280
9281 * composite.c (Vauto_composition_mode): New variable.
9282 (composition_compute_stop_pos): Check Vauto_composition_mode
9283 instead of Vauto_composition_function.
9284 (composition_adjust_point, Ffind_composition_internal): Likewise.
9285 (syms_of_composite): Declare Lisp variable
9286 "auto-composition-mode" here.
9287
9288 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
9289
9290 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9291 during call to vendor-specific-keysyms (Bug#5365).
9292
9293 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9294
9295 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9296 Call SIGNAL_THREAD_CHECK (Bug#5333).
9297
9298 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9299 Call SIGNAL_THREAD_CHECK.
9300
9301 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9302
9303 Try to fix bug#5314. This is probably not the final word, tho.
9304 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9305 recent-auto-save-p as a side-effect.
9306 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9307 * buffer.c (Fkill_buffer, reset_buffer):
9308 * editfns.c (Fsubst_char_in_region):
9309 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9310 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9311
9312 2010-01-13 Kenichi Handa <handa@m17n.org>
9313
9314 Display buffer name, etc. in mode line by composing correctly.
9315
9316 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9317 STRING is not nil.
9318 (display_mode_element): Adjust for the change of
9319 decode_mode_spec and display_line.
9320 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9321 (display_string): Handle the case that STRING is non-null and
9322 LISP_STRING is not nil.
9323
9324 * xterm.c (x_draw_composite_glyph_string_foreground):
9325 Pay attention to s->face->overstrike.
9326
9327 * composite.c (composition_reseat_it): Don't check PT if STRING is
9328 non nil.
9329
9330 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9331
9332 * keyboard.c (read_char): Don't apply previous change when current
9333 buffer is unchanged by command execution.
9334
9335 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9336
9337 * keyboard.c (read_char): Return after executing from special map.
9338
9339 2010-01-12 Glenn Morris <rgm@gnu.org>
9340
9341 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9342 bug-gnu-emacs rather than emacs-pretest-bug.
9343
9344 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
9345
9346 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9347 initializing the Lisp variables that depend on them.
9348
9349 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9350
9351 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9352 Clear areas that will not be updated after change of menu bar lines.
9353 Clear the menu bar window's current matrix when the window gets empty.
9354
9355 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
9356
9357 * intervals.h, textprop.c (extend_property_ranges): Return value
9358 and args changed. Discard properties that begin at or after the
9359 new end (Bug#5306).
9360
9361 * editfns.c (Fformat): Caller changed.
9362
9363 * nsterm.m (ns_set_default_prefs): Delete function.
9364 (syms_of_nsterm): Initialize ns_command_modifier,
9365 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9366 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9367
9368 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9369 position (Bug#4040).
9370
9371 2010-01-09 Eli Zaretskii <eliz@gnu.org>
9372
9373 * editfns.c (Ffloat_time): Doc fix.
9374
9375 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9376
9377 * xfns.c (Fx_create_frame): Don't create frame larger than display
9378 by default bug#3643.
9379
9380 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9381
9382 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9383 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9384 windows above internal border.
9385
9386 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9387 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9388 windows above internal border.
9389
9390 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9391 tool bar windows specially.
9392
9393 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9394
9395 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9396 specially.
9397 (XTflash): Take account of menu bar height.
9398
9399 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9400 specially.
9401
9402 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9403
9404 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
9405 also be true before we can return early (bug #5339).
9406
9407 2010-01-06 David Reitter <david.reitter@gmail.com>
9408
9409 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9410 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9411 (Bug#3233).
9412
9413 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9414
9415 * font.c (font_open_entity): Enable chache and call cached_font_ok
9416 for the driver if defined.
9417 (QCuser_spec): New symbol.
9418 (font_spec_from_name): Save name as user-spec.
9419 (font_load_for_lface): Keep user-spec instead of name.
9420 (font_open_by_name): Save name as user-spec.
9421 (syms_of_font): Initialize QCuser_spec.
9422 (font_clear_prop): Clear name if it exists in font (bug#5157).
9423
9424 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9425 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9426 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9427
9428 * font.h (struct font_driver): Add cached_font_ok.
9429
9430 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9431
9432 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9433
9434 * xterm.c (x_new_font): Move code for setting rows/cols before
9435 resizing ...
9436 (x_set_window_size): ... to here. Bug #2568.
9437
9438 * gtkutil.c (xg_clear_under_internal_border): New function.
9439 (xg_frame_resized, xg_frame_set_char_size):
9440 Call xg_clear_under_internal_border.
9441 (xg_update_scrollbar_pos): Clear under old scroll bar position.
9442
9443 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
9444
9445 * keyboard.c (read_key_sequence): Catch keyboard switch after
9446 making a new tty frame (Bug#5095).
9447
9448 2010-01-05 Kenichi Handa <handa@m17n.org>
9449
9450 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9451
9452 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9453
9454 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9455 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9456 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9457
9458 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
9459
9460 * dbusbind.c (xd_add_watch): Improve debug message.
9461 (xd_remove_watch): Improve debug message. If DATA is the session
9462 bus, unset D-Bus session environment.
9463 (Fdbus_init_bus): Pass the bus as argument to
9464 dbus_connection_set_watch_functions. (Bug#5283)
9465
9466 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
9467
9468 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9469
9470 * lread.c (syms_of_lread): Make it clearer that these are the
9471 names of loaded files (Bug#5068).
9472
9473 * eval.c (run_hook_with_args): Handle the case where the global
9474 value has the obsolete single-function form (Bug#5026).
9475
9476 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
9477
9478 * minibuf.c (Fall_completions): Minor optimization.
9479
9480 2009-12-26 Eli Zaretskii <eliz@gnu.org>
9481
9482 * .gdbinit (pgx): Fix display of composite glyphs.
9483 Display cmp.from and cmp.to as well.
9484 (pitx): Fix last change.
9485
9486 2009-12-25 Kenichi Handa <handa@m17n.org>
9487
9488 * composite.h (composition_adjust_point): Update prototype.
9489
9490 * composite.c (composition_reseat_it): Don't make a composition
9491 spanning over point.
9492 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9493 composable characters.
9494 (composition_adjust_point): New arg NEW_PT. Callers changed.
9495
9496 * keyboard.c (command_loop_1): Force redisplay if the last point
9497 was within a composition.
9498 (adjust_point_for_property): Don't adjust point for automatic
9499 composition when called after buffer modification.
9500
9501 2009-12-19 Eli Zaretskii <eliz@gnu.org>
9502
9503 * .gdbinit (pitx): Don't use enum names, use their values.
9504 Remove reference to non-existing value GET_FROM_COMPOSITION.
9505 (pgx): Don't use enum names, use their values.
9506 (pitmethod): New helper command.
9507 (pitx): Use it to display iteration method.
9508 (pgrowit): New command.
9509
9510 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9511
9512 Update dependencies in Makefile.in.
9513
9514 * Makefile.in (alloc.o): Depend on termhooks.h.
9515 (atimer.o): Depend on blockinput.h.
9516 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9517 and frame.h.
9518 (callint.o): Depend on systime.h, coding.h, and composite.h.
9519 (callproc.o): Depend on buffer.h.
9520 (casefiddle.o): Don't depend on charset.h.
9521 (casetab.o): Depend on character.h.
9522 (ccl.o): Depend on composite.h.
9523 (chartab.o): Depend on ccl.h.
9524 (cm.o): Depend on dispextern.h.
9525 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9526 (coding.o): Don't depend on $(INTERVALS_H).
9527 (composite.o): Don't depend on dispextern.h explicitly (it's in
9528 $(INTERVALS_H)). Depend on ccl.h.
9529 (data.o): Depend on systime.h, coding.h, composite.h,
9530 dispextern.h, font.h, and ccl.h.
9531 (dired.o): Depend on composite.h.
9532 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9533 composite.h (it's in $(INTERVALS_H)).
9534 (doc.o): Depend on systime.h, coding.h, and composite.h.
9535 (editfns.o): Don't depend explicitly on dispextern.h.
9536 (emacs.o): Depend on frame.h and coding.h.
9537 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9538 (fileio.o): Depend on frame.h and commands.h. Don't depend
9539 explicitly on dispextern.h.
9540 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9541 composite.h.
9542 (fns.o): Don't depend on termhooks.h.
9543 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9544 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9545 coding.h, $(INTERVALS_H), window.h, xterm.h.
9546 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9547 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9548 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9549 fontset.h, ccl.h, and ftfont.h.
9550 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9551 (gtkutil.o): Depend on dispextern.h and composite.h.
9552 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9553 termhooks.h, and ccl.h.
9554 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9555 (intervals.o): Depend on systime.h and coding.h.
9556 (keyboard.o): Depend on composite.h and coding.h.
9557 (keymap.o): Depend on coding.h and frame.h.
9558 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9559 (macros.o): Depend on systime.h, coding.h, and composite.h.
9560 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9561 and atimer.h.
9562 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9563 dispextern.h explicitly.
9564 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9565 Don't depend explicitly on dispextern.h and composite.h.
9566 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9567 (regex.o): Don't depend on charset.h.
9568 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9569 (search.o): Don't depend explicitly on composite.h.
9570 (sound.o): Depend on atimer.h and systime.h.
9571 (syntax.o): Don't depend explicitly on composite.h.
9572 (sysdep.o): Depend on coding.h and composite.h.
9573 (term.o): Depend on xterm.h and buffer.h.
9574 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9575 (textprop.o): Don't depend on dispextern.h explicitly.
9576 (undo.o): Depend on dispextern.h.
9577 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9578 dispextern.h and composite.h explicitly.
9579 (xdisp.o): Depend on ccl.h.
9580 (xfaces.o): Depend on coding.h and ccl.h.
9581 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9582 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9583 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9584 ftfont.h.
9585 (xgselect.o): New dependency.
9586 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9587 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9588 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9589 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9590 (xsmfns.o): Depend on frame.h and dispextern.h.
9591 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9592 sysselect.h.
9593
9594 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9595
9596 * font.c (Fclear_font_cache): Pass correct cache argument to
9597 font_clear_cache.
9598
9599 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9600
9601 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9602 twice.
9603
9604 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
9605
9606 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9607 calling file-remote-p. Reported by Jim Meyering.
9608
9609 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
9610
9611 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
9612 avoid compiler warnings. (Bug #5217)
9613
9614 2009-12-14 Kenichi Handa <handa@m17n.org>
9615
9616 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9617 in 8-bit encoding.
9618
9619 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
9620
9621 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9622 tooltip windows.
9623
9624 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9625
9626 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9627 Xatom_net_window_type.
9628
9629 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9630 Xatom_net_window_type.
9631
9632 * xterm.c (my_log_handler): New function.
9633 (x_term_init): Set my_log_handler as log handler during gtk_init
9634 so we can filter out buggy messages. (Bug #5120).
9635
9636 * xterm.c (xg_scroll_callback): Parameter list changed,
9637 use parameter GtkScrollType to determine scroll/line/page.
9638 Only allow dragging if a button < 4 is grabbed (bug #5177).
9639 (xg_end_scroll_callback): New function.
9640 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9641 xg_create_scroll_bar.
9642
9643 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9644 (scroll_end_callback): Remove.
9645 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9646 button-release-event. Replace value-changed event with change-value,
9647 bug #5177.
9648 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9649 bug #5177.
9650
9651 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9652 (xg_create_scroll_bar): Add GCallback end_callback.
9653
9654 * xftfont.c (QClcdfilter): New variable.
9655 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9656 (syms_of_xftfont): Initialize QClcdfilter.
9657
9658 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9659
9660 * xsettings.c (struct xsettings): Add member seen.
9661 (parse_xft_settings): Update member seen with what we have read.
9662 Return non-zero if Xft-settings have been parsed, 0 otherwise.
9663 (apply_xft_settings): Only update Xft settings with what member seen
9664 indicates as new.
9665
9666 2009-12-12 Eli Zaretskii <eliz@gnu.org>
9667
9668 * dispextern.h (struct text_pos): Use EMACS_INT.
9669 (struct glyph): Use EMACS_INT for charpos.
9670 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9671 region_beg_charpos, region_end_charpos,
9672 redisplay_end_trigger_charpos, and also for
9673 iterator_stack_entry.end_charpos and
9674 iterator_stack_entry.stop_charpos.
9675
9676 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9677
9678 * gtkutil.c (scroll_end_callback): New function (bug #5177).
9679 (xg_create_scroll_bar): Call scroll_end_callback on button release
9680 event (bug #5177).
9681 (xg_event_is_for_scrollbar): != replaced with ==.
9682
9683 2009-12-12 Kenichi Handa <handa@m17n.org>
9684
9685 * ftfont.c (struct ftfont_info): New member matrix.
9686 (ftfont_open): Setup xftfont_info->matrix.
9687 (MFLTFontFT): New member matrix.
9688 (FLOOR, CEIL, ROUND): New macros.
9689 (ftfont_get_metrics): Handle matrix transformation.
9690 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9691
9692 * xftfont.c (struct xftfont_info): New member matrix.
9693 (xftfont_open): Setup xftfont_info->matrix.
9694
9695 2009-12-10 Kenichi Handa <handa@m17n.org>
9696
9697 * xdisp.c (append_space_for_newline): Consider face-remapping.
9698
9699 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9700
9701 * xsettings.c: Include "keyboard.h".
9702
9703 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9704
9705 Fix implicit function declarations.
9706 * cmds.c: Include "frame.h".
9707 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9708 * frame.h: Move declaration of delete_frame outside of
9709 HAVE_WINDOW_SYSTEM.
9710
9711 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9712
9713 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9714
9715 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9716 GTK builds.
9717
9718 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9719
9720 * unexelf.c (unexec): Don't search for .data twice.
9721
9722 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
9723
9724 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9725 if push failed.
9726 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9727 of push_display_prop (Bug#5000).
9728
9729 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9730 value of font_list_entities (Bug#5085).
9731
9732 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
9733
9734 Fix `string-to-number' to deal consistently with integers and floats.
9735 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9736 trailing characters, not just whitespace.
9737 (read1): Pass new arg 0 to keep old behavior.
9738 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9739 trailing chars, as it is already done for integers. Doc fixes.
9740 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9741
9742 2009-12-04 Eli Zaretskii <eliz@gnu.org>
9743
9744 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9745 Delete unused enumeration value.
9746
9747 2009-12-03 Eli Zaretskii <eliz@gnu.org>
9748
9749 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9750
9751 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9752
9753 * process.c (Fmake_network_process): Fix up the tests for
9754 "connectionless socket", so they DTRT for seqpacket sockets as well.
9755
9756 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9757
9758 * process.c (Qseqpacket): New symbol.
9759 (HAVE_SEQPACKET): New macro.
9760 (Fmake_network_process): Accept new :type `seqpacket'.
9761 (init_process): Add `seqpacket' feature when applicable.
9762 (syms_of_process): Initialize Qseqpacket.
9763
9764 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9765
9766 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9767 if entity is Qnil.
9768
9769 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9770
9771 * print.c (print_preprocess): Preprocess the key_and_value table of
9772 hashtables, even tho they're "hidden" (bug#5082).
9773
9774 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9775
9776 * frame.c (frame_make_pointer_invisible)
9777 (frame_make_pointer_visible): Declare f before statements.
9778
9779 2009-11-28 Eli Zaretskii <eliz@gnu.org>
9780
9781 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9782 omitted dependencies on lisp.h.
9783
9784 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9785
9786 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9787 is NULL.
9788
9789 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9790
9791 * frame.c (frame_make_pointer_invisible)
9792 (frame_make_pointer_visible): Just return if there isn't any selected
9793 frame.
9794
9795 * search.c (simple_search): Remove warning by making *p const.
9796
9797 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9798
9799 * xdisp.c (power_letter): Remove duplicate const.
9800
9801 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9802
9803 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9804
9805 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
9806 defaults (bug #5025).
9807
9808 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9809
9810 * insdel.c (adjust_markers_for_delete): Move it in the
9811 right direction! (bug#4803)
9812
9813 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9814
9815 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9816
9817 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9818
9819 2009-11-24 Glenn Morris <rgm@gnu.org>
9820
9821 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9822
9823 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9824
9825 * Makefile.in: Must create deps for ecrt0.o in its rule.
9826
9827 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9828 because that is what Gtk+ font dialog understands.
9829
9830 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9831 of Fcopy_sequence.
9832 (font_open_by_name): Put name given into QCname for font-object returned.
9833
9834 * frame.c (x_set_font): Save original font name as frame parameter
9835 font-parameter.
9836
9837 * xsettings.c (set_default_xft_settings): New function.
9838 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9839 is found.
9840
9841 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9842
9843 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9844 searching backwards through multibyte buffer.
9845
9846 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9847
9848 * xterm.c: #include xgselect.h.
9849 (x_initialize): Call xgselect_initialize.
9850
9851 * xsettings.c (something_changedCB): C++ comments => C comments.
9852 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9853 does that now.
9854
9855 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9856 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9857 (scroll_bar_button_cb): Remove.
9858 (create_menus): C++ comments => C comments. Don't bind grab-notify
9859 event.
9860 (xg_create_scroll_bar): Don't bind button-press-event and
9861 button-release-event.
9862
9863 * process.c: Include xgselect.h if defined (USE_GTK) ||
9864 defined (HAVE_GCONF).
9865 (wait_reading_process_output): Call xg_select for the same condition.
9866
9867 * xgselect.c (xg_select): New function to better integrate with
9868 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9869
9870 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9871
9872 * Makefile.in (XOBJ): Add xgselect.o.
9873
9874 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9875
9876 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9877 Remove ignored second argument. All callers changed.
9878 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9879 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9880 * xdisp.c (string_char_and_length): Likewise.
9881
9882 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9883
9884 * xterm.c (x_new_font):
9885 * print.c (print_object):
9886 * cmds.c (Fself_insert_command): Move declarations before statements.
9887
9888 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9889
9890 * s/cygwin.h: Remove unneeded linker flags.
9891
9892 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9893
9894 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9895
9896 * xsettings.h: Declare xsettings_get_system_font.
9897
9898 * xsettings.c (xsettings_get_system_font): New function.
9899 (init_gconf): No use initiating gconf unless we have Xft also.
9900 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9901 HAVE_GCONF.
9902
9903 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9904 add a blank entry so it doesn't collapse into nothing.
9905
9906 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9907
9908 * lread.c (Funintern): Comment out last change.
9909
9910 2009-11-19 Richard Stallman <rms@gnu.org>
9911
9912 * lread.c (Funintern): Error if symbol is t or nil.
9913
9914 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9915
9916 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9917 representation of Lisp integers.
9918 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9919
9920 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9921
9922 * lisp.h: Remove declaration of Ffont_get_system_font.
9923 * xfns.c: Move include of "xsettings.h".
9924 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9925
9926 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9927
9928 * xsettings.c (something_changedCB, Ffont_get_system_font):
9929 Check use_system_font.
9930 (syms_of_xsettings): DEFVAR font-use-system-font.
9931
9932 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9933
9934 * xfns.c (x_default_font_parameter): Remove dead assignment.
9935
9936 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9937
9938 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9939
9940 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
9941 not have FC_LCD_*. #define them if not there.
9942
9943 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
9944
9945 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9946
9947 * xterm.c (handle_one_xevent): Call xft_settings_event for
9948 ClientMessage, PropertyNotify and DestroyNotify.
9949 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9950 Call xsettings_initialize.
9951
9952 * xftfont.c (xftfont_fix_match): New function.
9953 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9954 Call xftfont_fix_match after XftFontMatch.
9955
9956 * xfont.c (xfont_driver): Initialize all members.
9957
9958 * xfns.c (x_default_font_parameter):
9959 Try font from Ffont_get_system_font.
9960 Do not get font from x_default_parameter if we got one from
9961 Ffont_get_system_font.
9962 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
9963
9964 * w32font.c (w32font_driver): Initialize all members.
9965
9966 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9967
9968 * lisp.h: Declare syms_of_xsettings.
9969
9970 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9971 Handle CONFIG_CHANGED_EVENT.
9972
9973 * ftfont.c (ftfont_filter_properties): New function.
9974
9975 * frame.c (x_set_font): Remove unused variable lval.
9976
9977 * font.h (struct font_driver): Add filter_properties.
9978
9979 * font.c (font_put_extra): Don't return if val is nil, it means
9980 boolean option is off.
9981 (font_parse_fcname): Collect all extra properties in extra_props
9982 and call filter_properties for all drivers with extra_props and
9983 font as parameter.
9984 (font_open_entity): Do not use cache, it does not pick up new
9985 fontconfig settings like hinting.
9986 (font_load_for_lface): If spec had a name in it, store it in entity.
9987
9988 * emacs.c (main): Call syms_of_xsettings.
9989
9990 * config.in: HAVE_GCONF is new.
9991
9992 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9993 xsettings.o is new.
9994
9995 2009-11-17 Kenichi Handa <handa@m17n.org>
9996
9997 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9998 back to the default font in case that no suitable font is found.
9999
10000 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10001
10002 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
10003 Suggested by Chad Brown <yandros@mit.edu>.
10004 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
10005
10006 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
10007
10008 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
10009
10010 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
10011
10012 * Makefile.in: Ignore errors from mkdir when creating deps directory.
10013
10014 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
10015
10016 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
10017 has a parent.
10018
10019 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
10020 dependency files in deps/. Include those files into Makefile.
10021
10022 * config.in: Generated (AUTO_DEPEND).
10023
10024 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
10025
10026 * dbusbind.c (Vdbus_registered_objects_table): Rename from
10027 Vdbus_registered_functions_table, because it contains also
10028 properties. Fix docstring.
10029 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
10030
10031 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
10032
10033 * alloc.c (mark_object): Don't reprocess marked strings.
10034 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
10035 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
10036
10037 2009-11-13 Kenichi Handa <handa@m17n.org>
10038
10039 * category.c (word_boundary_p): Adjust for the change of the
10040 semantics of Vword_combining_categories.
10041 (Vword_combining_categories): Describe the slight change of the
10042 semantics.
10043
10044 2009-11-13 Eli Zaretskii <eliz@gnu.org>
10045
10046 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
10047
10048 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
10049
10050 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
10051
10052 * xdisp.c (syms_of_xdisp): Fix typo in last change.
10053
10054 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
10055
10056 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
10057
10058 2009-11-11 David Reitter <david.reitter@gmail.com>
10059
10060 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
10061 variables to fix 2009-11-09 change.
10062
10063 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
10064
10065 * process.c (ifflag_def): Make flag_sym constant.
10066 (Fnetwork_interface_info): Use a constant pointer.
10067 (ifflag_table):
10068 * xfns.c (cursor_bits):
10069 * xdisp.c (power_letter):
10070 * termcap.c (speeds, esctab):
10071 * sysdep.c (baud_convert):
10072 * keyboard.c (lispy_accent_codes, modifier_names):
10073 * image.c (xbm_format, xpm_format, pbm_format, png_format)
10074 (jpeg_format, tiff_format, gif_format, svg_format)
10075 (interlace_start, interlace_increment, gs_format):
10076 * gtkutil.c (separator_names):
10077 * fringe.c (swap_nibble):
10078 * fns.c (base64_value_to_char, base64_char_to_value):
10079 * fileio.c (make_temp_name_tbl):
10080 * coding.c (suffixes): Make constant.
10081
10082 * frame.c (make_initial_frame):
10083 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
10084 build_string.
10085 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
10086
10087 * s/freebsd.h:
10088 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10089
10090 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10091 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10092
10093 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10094 * xterm.c (syms_of_xterm):
10095 * xfaces.c (syms_of_xfaces):
10096 * xdisp.c (syms_of_xdisp):
10097 * lread.c (syms_of_lread):
10098 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10099 build_string.
10100
10101 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10102
10103 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10104
10105 * fns.c (Fplist_get): Merge the active and the commented out code.
10106
10107 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10108
10109 * keyboard.h: Declare timer_check.
10110
10111 * keyboard.c (timer_check_2): New function that does what the old
10112 timer_check did.
10113 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10114 returned, i.e. don't return -1 with timers pending.
10115
10116 * process.c: Remove extern declaration of timer_check.
10117
10118 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10119 even if timer_check returned -1.
10120
10121 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10122 xg_dialog_data.
10123 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10124 the event loop.
10125 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10126 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10127 Destroy the dialog after xg_dialog_run.
10128
10129 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10130
10131 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10132
10133 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10134
10135 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10136
10137 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
10138
10139 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10140
10141 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10142
10143 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10144 w32menu.c, and nsmenu.m.
10145 Simplify the obsolete case where position is nil.
10146 (cleanup_popup_menu): New function, moved from nsmenu.m.
10147 (struct skp): Remove slot `notreal'.
10148 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10149 adjust callers.
10150 (single_menu_item): Adjust call to parse_menu_item.
10151 (syms_of_menu): Defsubr x-popup-menu.
10152 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10153 (keymap_panes): Don't export any more.
10154 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10155 (xmenu_show): Declare.
10156 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10157 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10158 * keyboard.h (parse_menu_item): Update declaration.
10159 * xmenu.c (Fx_popup_menu): Remove.
10160 (syms_of_xmenu): Don't defsubr x-popup-menu.
10161 * w32menu.c (Fx_popup_menu): Remove.
10162 (syms_of_w32menu): Don't defsubr x-popup-menu.
10163 * nsmenu.m (cleanup_popup_menu): Remove.
10164 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10165 moved to menu.c's Fx_popup_menu.
10166 (Fx_popup_menu): Remove.
10167 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10168 menu_items (it's done in menu.c already).
10169
10170 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10171
10172 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10173 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10174
10175 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
10176
10177 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
10178 xmenu_show. Hide any tooltip before opening a menu.
10179 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10180 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10181
10182 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10183
10184 Let integers use up 2 tags to give them one extra bit and thus double
10185 their range.
10186 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10187 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10188 New macros.
10189 (enum Lisp_Type): Use them. Give explicit values.
10190 (Lisp_Type_Limit): Remove.
10191 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10192 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10193 Pay attention to USE_2_TAGS_FOR_INTS.
10194 (INTEGERP): Use LISP_INT_TAG_P.
10195 * fns.c (internal_equal): Simplify the default case.
10196 (sxhash): Use case_Lisp_Int.
10197 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10198 any more.
10199 (Ftype_of): Use case_Lisp_Int.
10200 (store_symval_forwarding): Take into account the fact that Ints can
10201 now have more than one tag.
10202 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
10203 (buffer_slot_type_mismatch):
10204 * xfaces.c (face_attr_equal_p):
10205 * print.c (print_object):
10206 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10207 Use case_Lisp_Int.
10208
10209 2009-11-06 Eli Zaretskii <eliz@gnu.org>
10210
10211 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10212
10213 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10214 warning.
10215
10216 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10217
10218 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10219
10220 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10221
10222 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10223 ButtonPressRelease and MotionNotify (bug#4870).
10224
10225 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10226
10227 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10228
10229 * xterm.c (syms_of_xterm):
10230 * xselect.c (syms_of_xselect):
10231 * xmenu.c (syms_of_xmenu):
10232 * xfns.c (syms_of_xfns):
10233 * xfaces.c (syms_of_xfaces):
10234 * xdisp.c (syms_of_xdisp):
10235 * window.c (syms_of_window):
10236 * w32fns.c (syms_of_w32fns):
10237 * undo.c (syms_of_undo):
10238 * textprop.c (syms_of_textprop):
10239 * terminal.c (syms_of_terminal):
10240 * syntax.c (syms_of_syntax):
10241 * sound.c (syms_of_sound):
10242 * search.c (syms_of_search):
10243 * print.c (syms_of_print):
10244 * minibuf.c (syms_of_minibuf):
10245 * macros.c (syms_of_macros):
10246 * keymap.c (syms_of_keymap, initial_define_key)
10247 (initial_define_lispy_key):
10248 * keyboard.c (syms_of_keyboard):
10249 * insdel.c (syms_of_insdel):
10250 * image.c (syms_of_image):
10251 * fringe.c (syms_of_fringe):
10252 * frame.c (syms_of_frame):
10253 * fontset.c (syms_of_fontset):
10254 * fns.c (syms_of_fns):
10255 * fns.c (syms_of_fns):
10256 * fileio.c (syms_of_fileio):
10257 * fileio.c (syms_of_fileio):
10258 * eval.c (syms_of_eval):
10259 * doc.c (syms_of_doc):
10260 * dispnew.c (syms_of_display):
10261 * dired.c (syms_of_dired):
10262 * dbusbind.c (syms_of_dbusbind):
10263 * data.c (syms_of_data):
10264 * composite.c (syms_of_composite):
10265 * coding.c (syms_of_coding):
10266 * cmds.c (syms_of_cmds):
10267 * charset.c (define_charset_internal, syms_of_character):
10268 * ccl.c (syms_of_ccl):
10269 * category.c (syms_of_category, init_category_once):
10270 * casetab.c (syms_of_casetab):
10271 * casefiddle.c (syms_of_casefiddle):
10272 * callint.c (syms_of_callint):
10273 * bytecode.c (syms_of_bytecode):
10274 * buffer.c (keys_of_buffer, syms_of_buffer):
10275 * alloc.c (syms_of_alloc):
10276 * process.c (syms_of_process, init_process):
10277 * lread.c (syms_of_lread, init_obarray):
10278 * font.c (build_style_table):
10279 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10280 intern_c_string, calls to make_pure_string with
10281 make_pure_c_string. Use pure_cons instead of Fcons.
10282
10283 * process.c (socket_options): Make it const.
10284 (set_socket_option, init_process): Use a const pointer.
10285
10286 * lread.c (intern_c_string): New function.
10287 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10288 (defvar_int): Uset it. Make the name const char*.
10289
10290 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10291 (defvar_int): Update prototypes.
10292 (DEFUN, EXFUN): Support for prototypes is now required.
10293 (intern_c_string): New prototype.
10294 (struct Lisp_Subr): Make symbol_name constant.
10295
10296 * font.c (struct table_entry): Remove unused member. Make NAMES
10297 constant.
10298 (weight_table, slant_table, width_table): Make constant.
10299
10300 * emacs.c (struct standard_args): Make name and longname constant.
10301
10302 * character.h (DEFSYM): Use intern_c_string.
10303
10304 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10305
10306 * alloc.c (make_pure_c_string): New function.
10307
10308 * eval.c (Fautoload): Purecopy all arguments.
10309
10310 2009-11-05 Kenichi Handa <handa@m17n.org>
10311
10312 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10313 the buffer in case of replace.
10314
10315 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10316
10317 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10318
10319 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10320
10321 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10322 when applicable (bug#4851).
10323
10324 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10325 (P_): Support for prototypes is now required.
10326
10327 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
10328
10329 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10330 (Bug#4827).
10331
10332 2009-10-30 Eli Zaretskii <eliz@gnu.org>
10333
10334 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
10335
10336 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10337
10338 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10339
10340 * lread.c (Fload): Purecopy the file name when building
10341 Vpreloaded_file_list.
10342
10343 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10344
10345 * w32fns.c (syms_of_w32fns): Change default value of
10346 w32-scroll-lock-modifier to nil. (Bug#2827)
10347
10348 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10349
10350 * minibuf.c (Fall_completions): Fix typos in docstring.
10351
10352 2009-10-26 Andreas Schwab <schwab@redhat.com>
10353
10354 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10355
10356 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10357
10358 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10359 For delta < 0, skip check that only makes sense when the mini-window
10360 is going to be enlarged. (Bug#4534)
10361
10362 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
10363
10364 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10365 string in menu maps (Bug#4471).
10366
10367 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
10368
10369 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10370 FRAME_NS_VIEW on terminal frames (Bug#4765).
10371
10372 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10373
10374 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10375 DBUS_TYPE_UINTnn separately to get proper sign extension.
10376
10377 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10378 can properly handle unsigned types.
10379 (make_uid, make_gid): Remove.
10380
10381 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10382 types again.
10383
10384 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10385 (system_process_attributes): Likewise.
10386
10387 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10388
10389 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10390
10391 * eval.c (Fautoload): Purecopy the filename. Simplify.
10392
10393 * category.c (Fdefine_category): Purecopy docstring.
10394
10395 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10396
10397 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10398
10399 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10400
10401 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
10402
10403 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10404 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10405 (Bug#4775).
10406
10407 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10408
10409 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10410 (init_fileio_once):
10411 * lisp.h (init_fileio_once): Remove.
10412 * emacs.c (main): Don't call init_fileio_once.
10413
10414 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10415
10416 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10417
10418 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10419
10420 * doprnt.c (doprnt): Fix overflow check.
10421
10422 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10423
10424 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10425
10426 * xterm.h (x_wait_for_event): Declare it.
10427
10428 * xterm.c (pending_event_wait): New variable.
10429 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10430 see pending_event_wait.eventtype.
10431 (handle_one_xevent): Don't change gravity when parent changes.
10432 (x_new_font): Call change_frame_size with new rows/columns before we
10433 try to resize the frame.
10434 (x_wait_for_event): New function.
10435 (x_set_window_size_1): Don't change gravity unless change_gravity
10436 is set.
10437 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10438 don't change frame size, instead wait for the ConfigureNotify.
10439 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10440 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10441 (x_initialize): Initialize pending_event_wait.
10442
10443 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10444 size.
10445
10446 * widget.c (EmacsFrameSetValues): Add comment.
10447 (EmacsFrameSetCharSize): Just call x_set_window_size.
10448
10449 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10450 x_wait_for_event.
10451 (flush_and_sync): Remove again.
10452 (xg_get_font_name): Suggest monospace if no previous font is known.
10453
10454 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10455
10456 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
10457 8th bit, since that only made sense in the ASCII world (bug#4751).
10458
10459 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10460
10461 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10462 processing pending events when event is filtered for input method.
10463 (Bug#3681)
10464
10465 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
10466
10467 * fns.c: Add #endif accidentally removed in previous change.
10468
10469 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10470
10471 * fns.c: Remove code for unsupported system: MAC_OS.
10472 * image.c: Likewise. Include setjmp.h.
10473
10474 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10475
10476 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10477 pixel -1 (bug #4742).
10478
10479 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10480
10481 * process.c (create_pty): Remove conditionals for no longer
10482 supported systems: UNIPLUS and RTU.
10483
10484 * xterm.c:
10485 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10486
10487 * alloc.c: Do not define struct catchtag.
10488 * eval.c: Move struct catchtag definition ...
10489 * lisp.h: ... here.
10490
10491 * image.c: Move png.h #include earlier to avoid warnings.
10492
10493 * xterm.c:
10494 * xsmfns.c:
10495 * xselect.c:
10496 * xrdb.c:
10497 * xmenu.c:
10498 * xftfont.c:
10499 * xfont.c:
10500 * xfns.c:
10501 * xfaces.c:
10502 * xdisp.c:
10503 * window.c:
10504 * widget.c:
10505 * w32xfns.c:
10506 * w32uniscribe.c:
10507 * w32term.c:
10508 * w32select.c:
10509 * w32reg.c:
10510 * w32proc.c:
10511 * w32menu.c:
10512 * w32inevt.c:
10513 * w32heap.c:
10514 * w32font.c:
10515 * w32fns.c:
10516 * w32console.c:
10517 * w32.c:
10518 * w16select.c:
10519 * vm-limit.c:
10520 * unexsol.c:
10521 * unexec.c:
10522 * unexcw.c:
10523 * unexaix.c:
10524 * undo.c:
10525 * tparam.c:
10526 * textprop.c:
10527 * terminfo.c:
10528 * terminal.c:
10529 * termcap.c:
10530 * term.c:
10531 * syntax.c:
10532 * sound.c:
10533 * sheap.c:
10534 * search.c:
10535 * scroll.c:
10536 * region-cache.c:
10537 * regex.c:
10538 * ralloc.c:
10539 * process.c:
10540 * print.c:
10541 * nsterm.m:
10542 * nsselect.m:
10543 * nsmenu.m:
10544 * nsimage.m:
10545 * nsfont.m:
10546 * nsfns.m:
10547 * msdos.c:
10548 * minibuf.c:
10549 * menu.c:
10550 * marker.c:
10551 * macros.c:
10552 * keymap.c:
10553 * keyboard.c:
10554 * intervals.c:
10555 * insdel.c:
10556 * indent.c:
10557 * gtkutil.c:
10558 * ftxfont.c:
10559 * ftfont.c:
10560 * fringe.c:
10561 * frame.c:
10562 * fontset.c:
10563 * font.c:
10564 * fns.c:
10565 * floatfns.c:
10566 * filelock.c:
10567 * fileio.c:
10568 * emacs.c:
10569 * editfns.c:
10570 * dosfns.c:
10571 * doprnt.c:
10572 * doc.c:
10573 * dispnew.c:
10574 * dired.c:
10575 * dbusbind.c:
10576 * data.c:
10577 * composite.c:
10578 * coding.c:
10579 * cmds.c:
10580 * cm.c:
10581 * chartab.c:
10582 * charset.c:
10583 * character.c:
10584 * ccl.c:
10585 * category.c:
10586 * casetab.c:
10587 * casefiddle.c:
10588 * callproc.c:
10589 * callint.c:
10590 * bytecode.c:
10591 * buffer.c:
10592 * atimer.c: Include setjmp.h. (Bug#4643)
10593
10594 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10595
10596 Remove leftover table unibyte_to_multibyte_table.
10597 * character.c (unibyte_to_multibyte_table): Remove.
10598 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10599 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10600 * character.h (UNIBYTE_TO_CHAR): New macro.
10601 (MAKE_CHAR_MULTIBYTE): Use it.
10602 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10603 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10604 (message_dolog, set_message_1):
10605 * search.c (Freplace_match):
10606 * editfns.c (Fcompare_buffer_substrings):
10607 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10608 (concat):
10609 * insdel.c (copy_text, count_size_as_multibyte):
10610 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10611 * term.c (produce_glyphs):
10612 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10613 * regex.c (RE_CHAR_TO_MULTIBYTE):
10614 * cmds.c (internal_self_insert):
10615 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10616
10617 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10618
10619 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10620
10621 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10622
10623 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
10624
10625 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10626
10627 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10628
10629 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10630 still needed under Tiger.
10631
10632 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10633
10634 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10635 __Apple__.
10636
10637 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10638
10639 2009-10-15 Kenichi Handa <handa@m17n.org>
10640
10641 * print.c (print_object): Escape a symbol like "2E10" too.
10642
10643 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
10644
10645 Cleanups and changes for 64-bit compile under Snow Leopard.
10646 Based on suggestions by Erik Charlebois.
10647
10648 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10649
10650 * nsfont.m (ns_char_width): Replace deprecated call.
10651 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10652 cast argument.
10653 (nsfont_open): Use ns_char_width() everywhere.
10654 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
10655
10656 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10657
10658 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10659 where appropriate.
10660
10661 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10662 where appropriate.
10663 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10664 Use stringWithUTF8String.
10665 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10666
10667 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10668 Add formal protocol mention to inheritance.
10669 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10670
10671 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10672 Fix printf format.
10673 (ns_query_color): Use CGFloat where appropriate.
10674 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
10675 (EmacsScroller-mouseDown:): Use long format in printf, and cast
10676 argument.
10677
10678 * config.in (NS_HAVE_NSINTEGER): Drop.
10679
10680 * dbusbind.c (dbus-method-return-internal)
10681 (dbus-method-error-internal): Use long format in printf, and cast
10682 argument.
10683
10684 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10685 in printf, and cast argument.
10686
10687 * process.c (list_processes_1): Use long format in printf, and
10688 cast argument.
10689
10690 2009-10-11 Glenn Morris <rgm@gnu.org>
10691
10692 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10693
10694 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10695
10696 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10697 menu bar with a small width so it doesn't enlarge the frame.
10698
10699 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
10700
10701 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10702
10703 2009-10-06 Glenn Morris <rgm@gnu.org>
10704
10705 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10706 SOME_MACHINE_LISP (this enters indirectly via DOC).
10707
10708 2009-10-05 Eli Zaretskii <eliz@gnu.org>
10709
10710 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10711
10712 2009-10-04 Eli Zaretskii <eliz@gnu.org>
10713
10714 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10715 Doc fix.
10716
10717 2009-10-03 Martin Rudalics <rudalics@gmx.at>
10718
10719 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10720
10721 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
10722
10723 * lisp.h (Qdelete_directory_internal): Remove, because it is not
10724 used anymore outside fileio.c.
10725
10726 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10727
10728 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
10729
10730 * lisp.h (Qdelete_directory_internal):
10731 Declare, instead of Qdelete_directory.
10732
10733 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10734
10735 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10736
10737 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10738
10739 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
10740
10741 * fileio.c (Fdelete_directory_internal): Rename from
10742 Fdelete_directory. It is not a command anymore. It has no file
10743 name handler.
10744
10745 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10746
10747 * xdisp.c (get_next_display_element): Use an enum in last change.
10748
10749 2009-09-28 Kenichi Handa <handa@m17n.org>
10750
10751 * xdisp.c (get_next_display_element): Pay attention to
10752 unibyte_display_via_language_environment in handling
10753 Vnobreak_char_display.
10754
10755 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10756
10757 * nsterm.h (ns_app_name): New extern variable.
10758
10759 * nsterm.m (ns_app_name): New variable.
10760 (ns_term_init): Set and use it.
10761 (ns_term_shutdown): Use it.
10762
10763 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10764 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10765
10766 * nsfns.m (ns_set_name_iconic, ns_set_name)
10767 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10768 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10769
10770 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10771 Remove double-casting in client_data comparison.
10772
10773 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10774
10775 * keyboard.c (make_lispy_event): Remember last wheel direction.
10776 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10777
10778 2009-09-26 Glenn Morris <rgm@gnu.org>
10779
10780 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10781 internal.elc. Add term/pc-win.elc.
10782 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10783 term/x-win.elc.
10784 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10785 term/w32-win.elc.
10786 (NS_SUPPORT): New.
10787 (lisp): Add NS_SUPPORT.
10788 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10789
10790 2009-09-25 David Reitter <david.reitter@gmail.com>
10791
10792 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10793 on Mac OS X 10.6+ (bug#4513).
10794
10795 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10796
10797 * frame.c (xrdb_get_resource): Return nil for empty string resources;
10798 some parts of Emacs code (like font selection) don't grok them.
10799 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
10800
10801 2009-09-24 Andreas Schwab <schwab@redhat.com>
10802
10803 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10804
10805 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10806
10807 * dired.c (Fdirectory_files): Fix typo in docstring.
10808
10809 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10810
10811 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10812 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10813 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10814 under GNUstep.
10815 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10816
10817 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10818 glyph advancement.
10819
10820 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10821
10822 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
10823 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
10824
10825 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10826 deleted (bug #4492).
10827
10828 * nsfont.m (Vns_reg_to_script): New lisp variable.
10829 (syms_of_nsfont): Declare it.
10830 (ns_registry_to_script): New function.
10831 (ns_get_req_script): Call it.
10832 (ns_findfonts): Don't give up on non-unicode registry.
10833
10834 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10835
10836 2009-09-20 Tom Tromey <tromey@redhat.com>
10837
10838 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10839 batch mode (bug#4228).
10840
10841 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
10842
10843 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
10844 carefully. (Bug #4339)
10845
10846 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
10847
10848 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
10849
10850 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10851
10852 * emacs.c (inhibit_x_resources): Update doc string for NS.
10853 (main) [HAVE_NS]: Don't process --no-init-file option.
10854 Remove legacy code for -NXHost. Fix error printf in daemon case.
10855
10856 * nsterm.h (ns_no_defaults): Remove.
10857
10858 * nsterm.m (ns_no_defaults): Remove.
10859 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10860 (ns_use_qd_smoothing): Remove legacy variable.
10861 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10862 don't update the NSWindow itself.
10863 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10864 Improve state detection and store user rect ourselves. (Bug #3581)
10865
10866 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10867 ns_use_qd_smoothing.
10868
10869 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10870 platform versions. Drop support for emacs-20-style face specs.
10871 (x-close-connection): Drop PSFlush() under OS X.
10872 (x-focus-frame): Activate the app first. (Bug #4180)
10873
10874 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
10875
10876 * emacs.c (inhibit_x_resources): New variable.
10877 (main) [HAVE_NS]: Don't process --quick command line option.
10878 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10879
10880 * lisp.h (inhibit_x_resources): Declare it extern.
10881
10882 * w32reg.c (x_get_string_resource):
10883 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10884
10885 2009-09-17 Eli Zaretskii <eliz@gnu.org>
10886
10887 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10888 Add lisp/term/internal.elc.
10889
10890 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10891
10892 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10893 (bug#4461).
10894
10895 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10896
10897 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10898
10899 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10900 (OBJECTS_MACHINE): Remove, unused.
10901
10902 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10903
10904 * frame.c (x_get_resource_string): Remove unused.
10905
10906 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10907
10908 * xterm.c (x_new_font): Call change_frame_size before calling
10909 x_set_window_size, in case frame size won't change.
10910
10911 * frame.c (x_set_font): Remove dead code.
10912
10913 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10914
10915 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10916
10917 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10918
10919 * lread.c (Fload): Don't output a message after loading an obsolete
10920 package any more (done in Lisp now).
10921
10922 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
10923
10924 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10925
10926 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10927
10928 * keymap.c (Fwhere_is_internal): Use nconc2.
10929
10930 2009-09-11 Alan Mackenzie <acm@muc.de>
10931
10932 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10933 batch mode.
10934
10935 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10936
10937 * xdisp.c (display_mode_element): Detect cycles.
10938
10939 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10940
10941 * keymap.c (where_is_internal): Don't erroneously return nil right after
10942 filling the cache.
10943 (where_is_internal_1): Fix up typo.
10944
10945 2009-09-11 Glenn Morris <rgm@gnu.org>
10946
10947 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10948 share a common doc-string.
10949
10950 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10951
10952 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10953 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10954
10955 * keymap.c (QCadvertised_binding): New constant.
10956 (syms_of_keymap): Initialize it.
10957 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10958 if applicable.
10959
10960 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10961
10962 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10963 (parse_menu_item): Streamline since bindings are recomputed all the
10964 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10965 more and don't support lmenu's menu-alias any more either.
10966
10967 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10968 (where_is_internal): Strip it down to only traverse the keymaps.
10969 Move the cache handling from Fwhere_is_internal to here.
10970 (Fwhere_is_internal): Move the handling of remapping and the choice of
10971 the best binding from where_is_internal to here.
10972 Unify the cached/noncached paths, so remapping is also handled
10973 correctly when the cache is used, and so the cache can be used to
10974 speed up remap-handling when applicable.
10975 Give preference to non-remapped bindings.
10976 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10977 non-remapped bindings.
10978 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10979 command remapping.
10980
10981 * xdisp.c (display_mode_element): Move list length limit from 50 to
10982 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10983
10984 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
10985
10986 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10987
10988 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10989
10990 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10991 (Bug#4334)
10992
10993 * keymap.c (where_is_internal): Filter out shadowed remappings.
10994 Assume that where_is_internal returns unshadowed bindings to simplify
10995 the code and get rid of the gotos. Use ASIZE.
10996
10997 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10998
10999 * xterm.c (x_focus_changed): If we get a focusout and pointer
11000 is invisible, make it visible.
11001
11002 * xterm.h: Remove condition for declaration of
11003 x_*_window_to_frame.
11004
11005 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
11006
11007 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
11008 initial terminal as well.
11009
11010 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
11011
11012 * xterm.h: Rename x_non_menubar_window_to_frame to
11013 x_menubar_window_to_frame.
11014
11015 * xterm.c: Remove declarations also in xterm.h.
11016 (XTmouse_position): Do not return valid positions
11017 for clicks in the menubar and the toolbar for Gtk+.
11018
11019 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
11020 if the widget for the event has the same top level as a frame,
11021 return the frame.
11022 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
11023 internal windows, bug #4122.
11024 (x_non_menubar_window_to_frame): Remove.
11025
11026 2009-09-02 Glenn Morris <rgm@gnu.org>
11027
11028 * buffer.c (default-major-mode): Move most of the doc from here...
11029 (major-mode): ... to here.
11030
11031 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
11032
11033 * process.c (wait_reading_process_output): Keep the descriptor
11034 when pty is used by a non-child process, e.g., in I/O buffer of
11035 GDB this allows inferior to be restarted.
11036
11037 2009-08-29 Eli Zaretskii <eliz@gnu.org>
11038
11039 * xdisp.c (redisplay_internal): Remove redundant test and collapse
11040 both branches into one.
11041
11042 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11043
11044 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
11045 (main): Use enable-multibyte-characters rather than
11046 default-enable-multibyte-characters. Output a warning message when
11047 running a unibyte session.
11048
11049 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11050
11051 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
11052 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
11053 (copy_data_segment): Also copy __program_vars section.
11054 (copy_dyld_info) [LC_DYLD_INFO]: New function.
11055 (dump_it) [LC_DYLD_INFO]: Use it.
11056
11057 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
11058
11059 2009-08-28 Eli Zaretskii <eliz@gnu.org>
11060
11061 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
11062 $(SRC)/buildobj.h.
11063 (buildobj.h): Rename from $(SRC)/buildobj.h.
11064 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
11065 $(SRC)/buildobj.h.
11066 (clean): Add buildobj.h.
11067
11068 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
11069
11070 * print.c (print_object): Set escapeflag to 1 when printing
11071 hashtable keys and values.
11072
11073 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
11074
11075 * lread.c (read_integer): Use doubles (and potentially return a float
11076 number) as we do in string-to-number.
11077 (read1): Use strtol to read integers, signal errors on strtol's
11078 overflow and use floats if strtol's output is too large for
11079 Elisp integers.
11080
11081 2009-08-27 Eli Zaretskii <eliz@gnu.org>
11082
11083 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
11084 (make-buildobj-SH): Fix last change.
11085 (SRC): Move to before where it's first used.
11086
11087 2009-08-27 Kenichi Handa <handa@m17n.org>
11088
11089 * process.c (send_process): Use encode_coding_object instead of
11090 encode_coding_string to perform eol-conversion even if the string
11091 is unibyte.
11092
11093 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11094 character.
11095
11096 * cmds.c (Fself_insert_command): Avoid unnecessay
11097 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
11098
11099 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11100
11101 * callproc.c (Fcall_process): Remove always true #if.
11102
11103 * lisp.h: Replace #if 0 code for checking with text pointing to
11104 the --enable-checking configure flag.
11105
11106 * emacs.c (main): Mention the --enable-profiling configure flag
11107 instead of using CFLAGS.
11108
11109 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
11110
11111 * Makefile.in (buildobj.h): New target.
11112 (doc.o): Depend on it.
11113 (temacs${EXEEXT}): Don't generate buildobj.lst.
11114 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11115 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11116 ($(BLD)/doc.$(O)): Depend on it.
11117 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11118 provided by Eli Zaretskii.)
11119 ($(TEMACS)): Don't generate buildobj.lst.
11120 * doc.c: Include buildobj.h.
11121 (buildobj): New static variable.
11122 (Fsnarf_documentation): Use it, instead of opening and reading
11123 buildobj.lst.
11124
11125 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
11126
11127 * dbusbind.c (Fdbus_call_method)
11128 (Fdbus_call_method_asynchronously): Use English numeric format for
11129 timeout values in doc string.
11130
11131 2009-08-25 Kenichi Handa <handa@m17n.org>
11132
11133 * alloc.c (mark_char_table): New function.
11134 (mark_object): Use mark_char_table for a char-table.
11135
11136 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11137 (CHAR_TABLE_REF): Use it.
11138
11139 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
11140
11141 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11142 before invoking the newly build emacs to check for load-path
11143 shadowing.
11144
11145 2009-08-22 Glenn Morris <rgm@gnu.org>
11146
11147 * Makefile.in (bootstrap_exe): New variable.
11148 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11149 Use ${bootstrap_exe}.
11150
11151 2009-08-22 Eli Zaretskii <eliz@gnu.org>
11152
11153 * coding.h (encode_coding_string): Don't encode unibyte strings.
11154 (Bug#4047)
11155
11156 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
11157
11158 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11159
11160 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11161 intended as hotfix only.
11162 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11163
11164 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11165
11166 * nsterm.m (ns_get_color): Update documentation properly for last
11167 change, and clean up loose ends in the code left by it.
11168 Fix longstanding bug with 16-bit hex parsing, and add support for
11169 yet another X11 format (rgb:r/g/b) for compatibility.
11170 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11171 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11172
11173 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11174
11175 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11176
11177 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
11178
11179 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11180 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11181 (xd_initialize, xd_pending_messages): Check, whether
11182 $DBUS_SESSION_BUS_ADDRESS is set.
11183
11184 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11185
11186 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11187
11188 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11189
11190 2009-08-20 Glenn Morris <rgm@gnu.org>
11191
11192 * emacs.c (system-type): Doc fix.
11193
11194 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11195
11196 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11197 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11198
11199 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
11200
11201 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11202 New functions.
11203 (xd_initialize): Revert change from 2009-08-16.
11204
11205 2009-08-18 Kenichi Handa <handa@m17n.org>
11206
11207 * fontset.c (Ffontset_font): If a nil element is found in a
11208 font-group vector, return nil.
11209
11210 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
11211
11212 * process.c (status_notify): Don't perform redisplay.
11213 (Fdelete_process, list_processes_1, process_send_signal):
11214 Expliticly perform redisplay.
11215 (wait_reading_process_output): Always check process status, but
11216 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11217
11218 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
11219
11220 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
11221 (XFLOAT_INIT): New macro for storing a float value.
11222 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11223 * fns.c (sxhash): Copy out the value of a float in order to
11224 examine its bytes.
11225 * dbusbind.c (xd_append_arg): Likewise.
11226
11227 * emacs.c (main): Don't call syms_of_data twice.
11228
11229 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
11230
11231 * dbusbind.c (xd_initialize): Add connection file descriptor to
11232 input_wait_mask, in order to let select() detect, whether a new
11233 message has been arrived.
11234 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
11235
11236 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
11237
11238 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11239 New functions.
11240
11241 * lisp.h (xd_pending_messages): Declare.
11242
11243 * keyboard.c (readable_events): Call xd_pending_messages.
11244
11245 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
11246
11247 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
11248
11249 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11250
11251 * buffer.c (set_buffer_internal_1)
11252 (swap_out_buffer_local_variables): Check for unbound local
11253 variables (Bug#4138).
11254
11255 2009-08-14 Eli Zaretskii <eliz@gnu.org>
11256
11257 * process.c (create_pty): Fix last change.
11258
11259 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
11260
11261 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11262 (xbm_load_image): Caller changed.
11263 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
11264
11265 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
11266
11267 * process.c (create_pty): New function.
11268 (Fstart_process): Use it to allow Emacs to just associate a pty
11269 with the buffer. See associated change in gdb-mi.el.
11270 (list_processes_1): Deal with no program name.
11271 (start_process_unwind): Use pid == -2 to mean no process.
11272
11273 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11274
11275 * cmds.c (nonundocount): New global variable.
11276 (keys_of_cmds): Initialize it.
11277 (Fself_insert_command): Use it to combine upto 20 sequential chars
11278 into a single undo entry, just like the Qself_insert_command code in
11279 keyboard.c does.
11280 Call frame_make_pointer_invisible, also like the Qself_insert_command
11281 code in keyboard.c does.
11282 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11283 than its own local replacement for it.
11284
11285 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
11286
11287 * fns.c (concat): Don't re-set string length to its current value.
11288
11289 * coding.h (decode_coding_string, encode_coding_string):
11290 Use SBYTES macro.
11291
11292 * doprnt.c (doprnt_lisp): Delete unused function.
11293 (doprnt): Merge with doprnt1, discarding lispstrings code.
11294 * lisp.h (doprnt_lisp): Don't declare.
11295
11296 2009-08-07 Juri Linkov <juri@jurta.org>
11297
11298 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11299
11300 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11301
11302 * print.c (syms_of_print): Undo previous change.
11303
11304 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11305
11306 * lread.c (read1, syms_of_lread): Read hashtables back from the
11307 readable format.
11308
11309 * print.c (print_preprocess, print_object): Print hashtables fully
11310 and readably.
11311 (syms_of_print): Provide 'hashtable-print-readable.
11312
11313 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11314
11315 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11316 no family set.
11317 (nsfont_open): Handle case when entity has no family.
11318
11319 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11320
11321 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11322 element, not a list, for match case.
11323
11324 2009-07-28 Kenichi Handa <handa@m17n.org>
11325
11326 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11327 rigidly.
11328
11329 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11330 font_parse_xlfd. Check font properties more rigidly.
11331
11332 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11333
11334 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11335 bsd-common.h.
11336
11337 2009-07-27 Kenichi Handa <handa@m17n.org>
11338
11339 * xfaces.c (face_with_height): Call font_clear_prop.
11340
11341 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
11342
11343 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11344
11345 * xterm.c (x_term_init): Use Qx.
11346
11347 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11348
11349 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
11350 (ns_get_color): Revert 2009-07-16 change.
11351
11352 2009-07-25 Eli Zaretskii <eliz@gnu.org>
11353
11354 * lread.c (syms_of_lread) <force_load_messages>: New variable.
11355 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
11356
11357 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
11358
11359 * coding.h (decode_coding_string, encode_coding_string):
11360 Use SCHARS macro.
11361
11362 * lread.c: Rewrite 2009-07-21 changes.
11363 (load_depth): Delete.
11364 (Qload_in_progress): New variable.
11365 (load_unwind): Don't reference load_depth or load_in_progress.
11366 (Fload): Likewise; specbind Qload_in_progress instead.
11367 (init_lread): Don't initialize load_depth.
11368 (syms_of_lread): Initialize and protect Qload_in_progress.
11369
11370 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11371
11372 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11373
11374 2009-07-23 Yavor Doganov <yavor@gnu.org>
11375
11376 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11377
11378 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11379
11380 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
11381 Bugs 3792, 3720, 2402.
11382 (ns_lookup_indexed_color): Check for bad index.
11383 (ns_index_color): Init unused slot to 0.
11384 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11385 Bug 3714, possibly 3082.
11386
11387 2009-07-22 Jason Rumney <jasonr@gnu.org>
11388
11389 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11390 Position IME window at cursor (Bug#2570).
11391 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11392 (globals_of_w32fns): Dynamically load functions required above.
11393
11394 * w32term.c (w32_draw_window_cursor): Send message to reposition
11395 any IME window.
11396
11397 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11398
11399 * fileio.c: Revert 2009-07-16 changes.
11400 (Vauto_save_include_big_deletions): New variable.
11401 (Fdo_auto_save): Disable auto-save only if
11402 auto-save-include-big-deletions is nil.
11403
11404 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11405
11406 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11407 the overflowed pixels into account (Bug#3879).
11408
11409 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
11410
11411 * lread.c (load_depth): New variable.
11412 (Fload, load_unwind, init_lread): Set it to the load recursion
11413 depth; set load_in_progress as a simple boolean based on the
11414 current load_depth. (Bug#3892)
11415
11416 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11417
11418 * nsfont.m (ns_has_attribute): Remove.
11419 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11420
11421 2009-07-18 Juri Linkov <juri@jurta.org>
11422
11423 * process.c (Fset_process_query_on_exit_flag): Mention killing
11424 a buffer in docstring.
11425
11426 2009-07-17 Kenichi Handa <handa@m17n.org>
11427
11428 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11429
11430 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11431
11432 * nsfns.m (Fns_set_alpha): Remove function.
11433 (syms_of_nsfns): Don't defsubr it.
11434
11435 * nsterm.m (ns_get_color): Remove incompatible color formats.
11436 (ns_color_to_lisp): Generate #rrggbb color format string.
11437
11438 2009-07-16 Richard Stallman <rms@gnu.org>
11439
11440 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11441 (Fset_buffer_auto_saved): Handle save_length = -2.
11442
11443 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
11444
11445 * xterm.c (Qx_gtk_map_stock): New var.
11446
11447 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11448 of calling intern each time.
11449
11450 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11451
11452 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11453 does tiling.
11454
11455 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11456
11457 2009-07-14 Kenichi Handa <handa@m17n.org>
11458
11459 * font.c (font_vconcat_entity_vectors): New function.
11460 (struct font_sort_data): New member font_driver_preference.
11461 (font_compare): Check font_driver_preference.
11462 (font_sort_entities): The format of the first argument changed.
11463 (font_delete_unmatched): Likewise.
11464 (font_list_entities): The return type changed.
11465 (font_select_entity): The format of the second argument changed.
11466 (font_find_for_lface): Adjuste for the above changes.
11467 Don't suppress the checking of C even if the repertory supports it.
11468 (Flist_fonts): Adjust for the above changes.
11469
11470 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11471 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
11472 Reject a font who has adstyle property that is different from a
11473 langname derived from registry property.
11474 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
11475
11476 2009-07-13 Eli Zaretskii <eliz@gnu.org>
11477
11478 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11479 local copy of dirfilename.
11480
11481 2009-07-13 Kenichi Handa <handa@m17n.org>
11482
11483 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11484 against max_char.
11485
11486 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11487 calling XSYMBOL (sym).
11488
11489 2009-07-11 Eli Zaretskii <eliz@gnu.org>
11490
11491 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11492 New function.
11493 (directory_files_internal) [WINDOWSNT]:
11494 Bind w32-get-true-file-attributes to either t or nil, depending whether
11495 the filesystem of the directory is fast or slow.
11496
11497 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11498 file name.
11499 (is_slow_fs): New function.
11500 (stat): Use it to determine whether to issue more system calls to
11501 get accurate file attributes, when w32-get-true-file-attributes is
11502 `local'.
11503
11504 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11505
11506 * xfns.c (Fx_select_font): Remember last font selected in
11507 x_last_font_name and use that the next time. Also try the frame
11508 parameter font-parameter as default to the font dialog.
11509
11510 2009-07-10 Kenichi Handa <handa@m17n.org>
11511
11512 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11513
11514 2009-07-09 Eli Zaretskii <eliz@gnu.org>
11515
11516 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11517
11518 * w32.c (stat): Treat UNC file names as residing on remote
11519 drives. (Bug#3542)
11520
11521 2009-07-09 Kenichi Handa <handa@m17n.org>
11522
11523 * fontset.c (fontset_find_font): Fix previous change.
11524
11525 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
11526
11527 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11528 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11529 error flag.
11530
11531 2009-07-08 Kenichi Handa <handa@m17n.org>
11532
11533 * fontset.c (fontset_find_font): Fix the logic of handling
11534 charset_matched.
11535 (font_for_char): Delete unused var.
11536 (generate_ascii_font_name): Delete it.
11537
11538 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11539
11540 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11541 (encode_coding_sjis): Fix the code range check.
11542
11543 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
11544
11545 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11546 (Fexpand_file_name): Copy string data properly (Bug#3772).
11547
11548 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11549
11550 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11551 first MapNotify.
11552
11553 2009-07-07 Kenichi Handa <handa@m17n.org>
11554
11555 * character.h (unibyte_has_multibyte_table): Delete extern.
11556 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11557
11558 * charset.c (Fset_charset_priority): Update charset_unibyte.
11559 (syms_of_charset): Initialize charset_unibyte.
11560
11561 * character.c (unibyte_has_multibyte_table): Delete it.
11562 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11563 charset_unibyte.
11564 (multibyte_char_to_unibyte_safe): Likewise.
11565 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11566
11567 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
11568 (x_produce_glyphs): Likewise.
11569
11570 * .gdbinit (xcharset): Fix the treating $arg0.
11571
11572 2009-07-04 Eli Zaretskii <eliz@gnu.org>
11573
11574 Emulation of `getloadavg' on MS-Windows.
11575 * w32.c: Include float.h.
11576 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11577 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11578 (get_native_system_info, get_system_times): New functions.
11579 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11580 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11581 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11582 g_b_init_get_system_times, and num_of_processors.
11583
11584 2009-07-03 Jason Rumney <jasonr@gnu.org>
11585
11586 * w32term.c (w32_initialize): Use standard types.
11587
11588 2009-07-03 Eli Zaretskii <eliz@gnu.org>
11589
11590 * dired.c (Ffile_attributes): Decode user and group names by the
11591 locale's encoding. (Bug#3443)
11592
11593 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11594
11595 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11596 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11597
11598 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11599
11600 * term.c (init_tty): Remove spurious #ifdef.
11601
11602 * m/mips.h: Mention this file is also used for netbsd.
11603 * m/pmax.h: Remove file.
11604
11605 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11606
11607 * xterm.h (struct x_display_info): Add invisible_cursor.
11608 (struct x_output): Add current_cursor.
11609
11610 * xterm.c (XTtoggle_invisible_pointer): New function.
11611 (x_define_frame_cursor): Don't define cursor if invisible or the
11612 same as before. Set current_cursor.
11613 (x_create_terminal): Set toggle_invisible_pointer_hook.
11614
11615 * xfns.c (make_invisible_cursor): New function.
11616 (x_set_mouse_color): Call make_invisible_cursor.
11617 Set current_cursor.
11618 (x_window): Set current_cursor.
11619
11620 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11621
11622 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11623 inserting a character.
11624 (read_avail_input): Call frame_make_pointer_visible.
11625
11626 * frame.c (Vmake_pointer_invisible): New variable.
11627 (frame_make_pointer_invisible, frame_make_pointer_visible):
11628 New functions.
11629 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11630
11631 * frame.h: Declare frame_make_pointer_invisible and
11632 frame_make_pointer_visible.
11633 (struct frame): Add pointer_invisible.
11634
11635 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11636
11637 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11638 frame isn't visible.
11639 (xg_frame_resized): If width/height is -1, get size of window
11640 from X server.
11641
11642 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11643 for MapNotify.
11644
11645 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
11646 here or call change_frame_size. Just call flush_and_sync.
11647 (flush_and_sync): Reintroduce.
11648
11649 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
11650
11651 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
11652
11653 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11654 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11655
11656 * frame.h: Declare Qsticky.
11657
11658 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11659
11660 * nsfns.m (ns_frame_parm_handlers): Ditto.
11661
11662 * frame.c: Declare Qsticky.
11663 (frame_parms): Add sticky.
11664
11665 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11666
11667 * xterm.h: Declare x_set_sticky.
11668
11669 * xterm.c (x_set_sticky): New function.
11670
11671 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11672 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11673 xg_tool_bar_proxy_help_callback.
11674
11675 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11676
11677 * frame.c: Qmaximized is new.
11678 (x_set_frame_parameters): Do not handle fullscreen specially.
11679 Only set width and height if explicitly set.
11680 (x_set_fullscreen): Handle Qmaximized.
11681 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11682 (syms_of_frame): Initialize Qmaximized.
11683
11684 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11685 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
11686
11687 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
11688 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11689 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
11690 set gravity to NorthWestGravity when USE_GTK.
11691 (set_wm_state): New function.
11692 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
11693 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11694 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
11695 or the case when no window manager is running. That means remove calls
11696 to x_real_positions and x_fullscreen_adjust.
11697
11698 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11699 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11700 flush_and_sync.
11701 (xg_height_changed): New function.
11702 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
11703 and gtk_window_set_policy. Set frame gravity after parsing the
11704 geometry string.
11705 (xg_update_frame_menubar, free_frame_menubar)
11706 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11707 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11708 Remove calls to xg_frame_set_char_size.
11709
11710 2009-07-01 Kenichi Handa <handa@m17n.org>
11711
11712 * keyboard.c (decode_keyboard_code): New function.
11713 (tty_read_avail_input): Decode the input bytes if necessary.
11714
11715 * coding.c (setup_coding_system):
11716 Initialize coding->carryover_bytes to 0.
11717 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11718 use Qno_conversion.
11719
11720 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11721
11722 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11723
11724 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
11725
11726 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
11727
11728 2009-06-30 Jason Rumney <jasonr@gnu.org>
11729
11730 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11731 is already loaded.
11732 Set user model ID if supported (bug#1849).
11733
11734 2009-06-29 Jim Meyering <meyering@redhat.com>
11735
11736 Remove useless if-before-xfree test.
11737 * nsfont.m (nsfont_close): Remove useless test.
11738 * term.c (delete_tty): Likewise.
11739 * w32.c (system_process_attributes): Likewise.
11740 * w32font.c (w32font_close): Likewise.
11741 * xfaces.c (x_free_gc): Likewise.
11742 * xselect.c (buffer): Likewise.
11743
11744 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11745
11746 * process.c (send_process): Keep decoded string in a local
11747 variable and protect it from GC. (Bug#3521)
11748
11749 2009-06-28 Eli Zaretskii <eliz@gnu.org>
11750
11751 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11752 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11753
11754 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
11755
11756 * xdisp.c (start_display, handle_face_prop)
11757 (move_it_vertically_backward, cursor_row_fully_visible_p)
11758 (redisplay_window, try_window_id, produce_image_glyph):
11759 Delete some #ifdef-ed out code chunks that are now obsolete.
11760
11761 * xterm.c (x_update_window_begin, x_new_focus_frame)
11762 (x_scroll_bar_handle_click, handle_one_xevent)
11763 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11764 (x_make_frame_visible, x_make_frame_invisible)
11765 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11766 code chunks that are now obsolete.
11767
11768 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
11769
11770 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11771 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11772 for hours, when optimzation is enabled.
11773 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11774 (xd_read_message): Make them static.
11775
11776 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11777
11778 * term.c (turn_on_face): Allow simultaneously bold and dim
11779 terminal faces (Bug#3530).
11780
11781 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
11782
11783 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11784
11785 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11786 truncation glyphs (Bug#3686).
11787
11788 2009-06-27 Glenn Morris <rgm@gnu.org>
11789
11790 * m/pmax.h: Restore file, with only netbsd portions.
11791
11792 2009-06-26 David Reitter <david.reitter@gmail.com>
11793
11794 * nsterm.m (keydown): Avoid infinite loop.
11795
11796 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11797
11798 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11799 the arg FORCE_SYMBOL.
11800
11801 2009-06-25 Kenichi Handa <handa@m17n.org>
11802
11803 * fontset.c (fontset_find_font): When a usable rfont_def is found
11804 in a fallback font-group, make it the first element of the group.
11805
11806 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
11807
11808 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11809
11810 2009-06-24 Kenichi Handa <handa@m17n.org>
11811
11812 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11813 set for C.
11814 (fontset_font): Record the availability of a font for C both in
11815 the realized fontsets of the current one and the default one.
11816
11817 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11818
11819 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11820 conditional, it is always defined on AIX.
11821
11822 2009-06-23 Miles Bader <miles@gnu.org>
11823
11824 * window.c (Vrecenter_redisplay): New variable.
11825 (syms_of_window): Initialize it.
11826 (Qtty): New extern declaration.
11827 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11828
11829 2009-06-23 Jim Meyering <meyering@redhat.com>
11830
11831 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11832 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
11833 pointer dereferences are guaranteed to be valid.
11834
11835 2009-06-23 Kenichi Handa <handa@m17n.org>
11836
11837 * emacs.c (main): Call init_font ().
11838
11839 * font.h (Vfont_log): Extern it.
11840 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11841
11842 * font.c (font_sort_entities, font_list_entities)
11843 (font_matching_entity, font_open_entity)
11844 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11845 (Vfont_log): Delete static.
11846 (font_log_env_checked): Delete this variable.
11847 (font_add_log): Don't check font_log_env_checked.
11848 (font_deferred_log): Check Vfont_log.
11849 (init_font): New function.
11850
11851 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11852
11853 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11854
11855 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11856
11857 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11858
11859 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11860 (face_for_char): Don't call font_deferred_log here.
11861 (font_for_char): Likewise.
11862
11863 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
11864
11865 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11866 rather than its background_width for drawing the overline and
11867 underline (Bug#489).
11868
11869 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11870 rather than its background_width for drawing the overline and
11871 underline (Bug#489).
11872 (xg_default_icon_file): New variable.
11873 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11874 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
11875
11876 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11877 (load_overlay_strings): Remove externs.
11878 (fast_find_position): Function deleted.
11879 (mouse_face_from_buffer_pos): New function, based on
11880 fast_find_position. Correctly handle before-strings,
11881 display-strings, and after-strings (Bug#1220).
11882 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11883
11884 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11885
11886 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
11887 (move_it_in_display_line_to, move_it_in_display_line_to)
11888 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11889
11890 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11891
11892 * Branch for 23.1.
11893
11894 2009-06-21 Jason Rumney <jasonr@gnu.org>
11895
11896 * w32term.c (keyboard_codepage): New static variable.
11897 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11898 (w32_read_socket) [WM_CHAR]: Use it to decode character
11899 input (bug#3237).
11900 (w32_initialize): Initialize it.
11901 (codepage_for_locale): New function.
11902
11903 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
11904
11905 * process.c (status_message): Pass Faset index argument as a lisp
11906 object, so as to work with USE_LISP_UNION_TYPE.
11907
11908 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11909
11910 * coding.c (Ffind_coding_systems_region_internal):
11911 Cache checked characters.
11912
11913 2009-06-18 Kenichi Handa <handa@m17n.org>
11914
11915 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
11916
11917 2009-06-18 Andreas Schwab <aschwab@redhat.com>
11918
11919 * xdisp.c (redisplay_internal): Check that the frame is still
11920 live after redisplay of its windows.
11921 (redisplay_windows): Check that the window is still live.
11922
11923 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11924
11925 * coding.c (detect_coding_utf_16): Fix previous change.
11926
11927 2009-06-16 Kenichi Handa <handa@m17n.org>
11928
11929 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11930 UTF-16 by checking the dispersion of Eth and Oth bytes.
11931
11932 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11933
11934 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11935
11936 2009-06-15 Kenichi Handa <handa@m17n.org>
11937
11938 * process.c (status_message): Fix previous change. Be sure to
11939 decode a localized string.
11940
11941 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11942
11943 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11944 add comment explaining why.
11945
11946 2009-06-14 Sidney Markowitz <sidney@sidney.com>
11947
11948 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
11949
11950 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11951
11952 * nsfont.m (ns_attribute_value): Remove.
11953 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11954 (ns_has_attribute): Shrink the normal range.
11955 (ns_findfonts): Don't worry about requested spec in determining
11956 need for synthItal.
11957 (ns_get_covering_families): Retain scriptToFamilies.
11958
11959 2009-06-14 Seiji Zenitani <zenitani@mac.com>
11960
11961 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11962
11963 2009-06-11 Kenichi Handa <handa@m17n.org>
11964
11965 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11966 overhang for the static composition case.
11967
11968 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11969
11970 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11971 overhang for the automatic composition case.
11972
11973 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11974 composition case.
11975
11976 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
11977
11978 * xdisp.c (get_next_display_element): When handling wrap-prefix
11979 and line-prefix, treat \n as a control character (bug#3502).
11980
11981 2009-06-10 Kenichi Handa <handa@m17n.org>
11982
11983 * font.c (font_parse_family_registry): Fix for one-char foundry.
11984 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11985
11986 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11987
11988 * process.c (status_message): Fix handling of multibyte signal
11989 string (Bug#3499).
11990
11991 2009-06-09 Jim Meyering <meyering@redhat.com>
11992
11993 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11994 color name is missing.
11995
11996 2009-06-09 Kenichi Handa <handa@m17n.org>
11997
11998 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11999 FROM-CODE and TO-CODE are codepoints of CHARSET.
12000
12001 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12002
12003 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
12004
12005 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12006
12007 Changes to support :script/:lang/:otf in NS font driver.
12008 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
12009 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
12010 indicate not part of font driver interface, and change callers.
12011 (ns_get_family): Remove pointless null check.
12012 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
12013 ns_spec_to_descriptor, ns_descriptor_to_entity.
12014 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
12015 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
12016 (ns_spec_to_descriptor, ns_descriptor_to_entity)
12017 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
12018 (ns_get_req_script, ns_accumulate_script_ranges)
12019 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
12020 New functions.
12021 (nsfont_list, nsfont_match): Use ns_findfonts.
12022 (nsfont_open): Use font descriptor instead of traits.
12023 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
12024 (dump_glyphstring): Rename to ns_dump_glyphstring.
12025
12026 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
12027
12028 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
12029
12030 * fontset.c (fontset_from_font): Remove NS-specific code.
12031
12032 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
12033
12034 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
12035 nonactive windows.
12036
12037 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
12038
12039 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
12040
12041 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
12042
12043 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
12044
12045 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
12046
12047 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
12048 account for the overflowing of newlines into the last glyph on the
12049 display line (Bug#3482).
12050
12051 2009-06-05 David Reitter <david.reitter@gmail.com>
12052
12053 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
12054 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
12055 Fns_selection_exists_p, Fns_selection_owner_p.
12056
12057 2009-06-03 Jason Rumney <jasonr@gnu.org>
12058
12059 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
12060 available. (Bug#3379)
12061
12062 2009-05-29 Kenichi Handa <handa@m17n.org>
12063
12064 * coding.c (get_translation_table):
12065 Check Venable_character_translation.
12066
12067 2009-05-26 David Reitter <david.reitter@gmail.com>
12068
12069 * nsterm.m (ns_raise_frame): Only raise frame if visible.
12070 (x_make_frame_visible): Move frame to front rather than calling
12071 ns_raise_frame().
12072 (keyDown:): Do not swallow events that aren't re-sent if frame
12073 isn't key window.
12074 (drawRect:): Do not set visibility/iconified flags because
12075 drawRect may be called by NSView even if the frame is hidden.
12076
12077 * nsfns.m (Fx_create_frame): Follow other ports in
12078 determining visibility; default to t. Ensure async_visible is set.
12079
12080 2009-05-23 Eli Zaretskii <eliz@gnu.org>
12081
12082 * dired.c (Ffile_attributes): Doc fix.
12083
12084 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
12085
12086 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
12087
12088 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12089
12090 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12091 and xfont_scratch_props.
12092 (syms_of_xfont): Do it here instead.
12093 (xfont_find_ccl_program): Delete, unused.
12094 (xfont_open): Delete unused var `i'.
12095
12096 2009-05-21 Kenichi Handa <handa@m17n.org>
12097
12098 * fontset.c (Qlatin): Don't make it static.
12099
12100 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12101 New functions.
12102 (xfont_scripts_cache, xfont_scratch_props): New variables.
12103 (Qlatin, Vscalable_fonts_allowed): Extern it.
12104 (xfont_list_pattern): Argument changed. Callers changed.
12105 Check Vscalable_fonts_allowed. Check the support of a script.
12106 (xfont_list): Don't reject a font spec with :script property.
12107 (xfont_has_char): Fix setting of encoding.
12108 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12109 xfont_scratch_props.
12110
12111 2009-05-19 Kenichi Handa <handa@m17n.org>
12112
12113 * font.c (font_sort_entities): Rename from font_sort_entites.
12114 Callers changed.
12115
12116 2009-05-18 Kenichi Handa <handa@m17n.org>
12117
12118 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12119
12120 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12121
12122 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12123 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12124
12125 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12126
12127 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12128 (x_delete_terminal): Dissociate resource database from display and
12129 then call XrmDestroyDatabase before closing display.
12130
12131 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12132
12133 * nsterm.m (ns_read_socket): Remove unused variable.
12134 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12135 whether selected frame is viable before raising it (based on patch
12136 by David Reitter), and improve commentary.
12137 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
12138
12139 2009-05-15 Kenichi Handa <handa@m17n.org>
12140
12141 * font.c (Ffont_spec): Check arguments.
12142
12143 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
12144
12145 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12146 weight when testing attributes (Bug#3282).
12147
12148 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12149
12150 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12151 what we expect to get in the next ConfigureNotify event.
12152
12153 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12154 before Xft one (Bug#1696).
12155
12156 2009-05-07 David Reitter <david.reitter@gmail.com>
12157
12158 * nsfns.m (Fx_display_planes): Compute bitplanes using
12159 NSBitsPerPixelFromDepth (Bug#3207).
12160
12161 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
12162
12163 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12164
12165 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
12166
12167 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12168
12169 2009-05-07 David Reitter <david.reitter@gmail.com>
12170
12171 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12172 Respect mouse face background.
12173
12174 2009-05-07 David Reitter <david.reitter@gmail.com>
12175
12176 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12177 Mouse movement/highlight: bracket drawing operations
12178 in ns_update_begin and ns_update_end.
12179
12180 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12181
12182 * nsfns.m (ns_get_screen): Rewrite.
12183 Don't presume selected-frame is of type `ns'.
12184
12185 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12186 all drivers.
12187
12188 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12189
12190 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12191
12192 * keyboard.h (add_user_signal): Fix typo in extern.
12193
12194 * lisp.h (add_user_signal): Remove extern.
12195
12196 * unexelf.c (unexec): Consider a section to precede the .bss section
12197 if its addresses overlap that of .bss.
12198 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12199 instead of dumping process.
12200
12201 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12202
12203 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12204
12205 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12206
12207 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12208
12209 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12210
12211 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12212 any statements.
12213
12214 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12215
12216 * process.c (read_process_output): Make sure the current buffer is
12217 always restored.
12218
12219 * coding.c (record_conversion_result): Don't modify
12220 Vlast_code_conversion_error for successful result.
12221 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12222
12223 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12224
12225 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
12226 (load_charset_map): Remove unnecessary code.
12227
12228 2009-04-30 David Reitter <david.reitter@gmail.com>
12229
12230 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
12231 through f24.
12232
12233 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
12234
12235 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12236
12237 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12238 face_at_buffer_position.
12239 (face_before_or_after_it_pos, get_next_display_element)
12240 (note_mouse_highlight): Update face_at_buffer_position call.
12241
12242 * term.c (term_mouse_highlight):
12243 * msdos.c (IT_note_mouse_highlight):
12244 * fontset.c (Finternal_char_font):
12245 * font.c (font_at, font_range): Update face_at_buffer_position call.
12246
12247 * dispextern.h (face_at_buffer_position): Update prototype.
12248
12249 2009-04-30 Kenichi Handa <handa@m17n.org>
12250
12251 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
12252
12253 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12254
12255 * callproc.c (Fcall_process): Fix GC protection. Make sure
12256 current buffer is always restored.
12257
12258 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12259
12260 * atimer.c (init_atimer): Also clear stopped_atimers.
12261
12262 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12263
12264 * process.c (create_process): Clean up merger residues of
12265 2008-07-17 change.
12266
12267 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
12268
12269 * lread.c (Vread_circle): New variable.
12270 (read1): Disable recursive read if Vread_circle is nil.
12271
12272 2009-04-29 Kenichi Handa <handa@m17n.org>
12273
12274 * fontset.h (set_default_ascii_font): Delete extern.
12275
12276 * fontset.c (set_default_ascii_font): Delete this unused function.
12277
12278 * frame.c (x_set_font): When ARG is a font-object, check if the
12279 font-object matches with the ASCII font-spec of the frame's
12280 fontset. If not, create a new fontset for the frame. (Bug #3075)
12281
12282 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12283
12284 * fns.c (Flocale_info): Protect vector from GC during decoding.
12285
12286 * process.c (Fstart_process): Protect argv strings from GC during
12287 encoding.
12288
12289 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12290
12291 * sysdep.c: Include <ctype.h>.
12292
12293 2009-04-27 David Reitter <david.reitter@gmail.com>
12294
12295 * nsfont.m (nsfont_open): Remove unused variable shrink.
12296 Remove commented-out code.
12297
12298 2009-04-26 Johan Bockgård <bojohan@gnu.org>
12299
12300 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12301
12302 2009-04-25 Jason Rumney <jasonr@gnu.org>
12303
12304 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12305
12306 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12307
12308 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12309 Swap bytes in short integer if fringe bitmap width > 8.
12310
12311 2009-04-23 Kenichi Handa <handa@m17n.org>
12312
12313 * xfaces.c (Fx_list_fonts): If a font size is specified in
12314 PATTERN, set it in returned scalable fonts.
12315
12316 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
12317
12318 * keyboard.c (Fset_input_meta_mode): Doc fix.
12319
12320 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12321
12322 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
12323
12324 * coding.c (Fterminal_coding_system): Doc fix.
12325
12326 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12327 (Fx_display_pixel_height, Fx_display_planes)
12328 (Fx_display_color_cells, Fx_server_max_request_size)
12329 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12330 (Fx_display_mm_height, Fx_display_mm_width)
12331 (Fx_display_backing_store, Fx_display_visual_class)
12332 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12333 Doc fixes, replacing "terminal id" with "terminal object".
12334 (check_x_display_info): Handle terminal objects instead of
12335 terminal ids.
12336
12337 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12338 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
12339 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12340 Doc fixes, replacing "terminal id" with "terminal object".
12341
12342 2009-04-21 Kenichi Handa <handa@m17n.org>
12343
12344 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
12345 (font_score): Check AVGWIDTH too.
12346
12347 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12348 worst case.
12349 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12350 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
12351
12352 2009-04-19 Jason Rumney <jasonr@gnu.org>
12353
12354 The following changes fix Bug#3005 for wide glyphs on each platform,
12355 without reintroducing Bug#1258 for stretch glyphs.
12356
12357 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12358 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12359 get_phys_cursor_geometry.
12360
12361 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
12362 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12363 using get_phys_cursor_geometry.
12364
12365 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12366 correctly calculated.
12367
12368 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12369
12370 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12371 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
12372 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12373 is deprecated.
12374
12375 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12376
12377 * font.c (font_put_frame_data): Use xfree instead of free.
12378
12379 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
12380
12381 * w32font.c (Qja, Qko): Remove declarations.
12382 (syms_of_w32font): Don't DEFSYM them.
12383
12384 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
12385
12386 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12387
12388 * font.h (Qja, Qko): Extern them.
12389
12390 * ftfont.c (Qja, Qko): Remove declarations.
12391
12392 * xfont.c (Qja, Qko): Remove declarations.
12393
12394 2009-04-17 Kenichi Handa <handa@m17n.org>
12395
12396 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12397 string from a vector to handle Latin-1 characters correctly.
12398
12399 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12400 entity even if the cache hits.
12401
12402 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12403
12404 * search.c (boyer_moore): Use zero as marker value for a possible
12405 match instead of depending on overflow behavior. (Bug#2844)
12406
12407 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12408 * lisp.h: Adjust prototypes.
12409
12410 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
12411
12412 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12413 change (Bug#3003).
12414
12415 2009-04-16 Kenichi Handa <handa@m17n.org>
12416
12417 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
12418
12419 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12420 adstyle.
12421
12422 * ftfont.c (Qja, Qko): Don't make them static.
12423 (enum ftfont_cache_for): New enum.
12424 (fc_charset_table): Undo the previous change.
12425 (ftfont_get_latin1_charset): Delete it.
12426 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12427 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
12428 non-scarable font, try to get AVERAGE_WIDTH.
12429 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12430 Change ft_face_cache from a list of a hash-table. Don't check
12431 `ja' and `ko' adstyle here.
12432 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12433 FTFONT_CACHE_FOR_CHARET.
12434 (ftfont_get_charset): Undo the previous change.
12435 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
12436 (ftfont_close): Likewise.
12437 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12438
12439 * font.c (font_sort_entites): Change the meaning of the arg
12440 BEST-ONLY. Don't optimize for VEC of lenght 1.
12441 (font_select_entity): Just return the value of font_sort_entites.
12442
12443 * xfaces.c (merge_face_vectors): Reflect font properties in
12444 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12445 font_clear_prop if a face attribute doesn't change.
12446
12447 * charset.h (charset_ksc5601): Extern it.
12448
12449 * charset.c (charset_ksc5601): New variable.
12450 (Fdefine_charset_internal): Set charset_ksc5601.
12451 (init_charset_once): Initialize charset_ksc5601 to -1.
12452
12453 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12454
12455 * fileio.c (history_delete_duplicates): Remove unused declaration.
12456
12457 * callint.c (history_delete_duplicates): New declaration.
12458 (Fcall_interactively): Remove command history duplicates when
12459 history_delete_duplicates is true.
12460
12461 2009-04-14 Eli Zaretskii <eliz@gnu.org>
12462
12463 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12464
12465 2009-04-14 Kenichi Handa <handa@m17n.org>
12466
12467 * font.c (Ffont_info): Fix docstring. Fix the second element of
12468 the returned value (bug#2949).
12469
12470 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
12471
12472 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12473
12474 2009-04-14 Kenichi Handa <handa@m17n.org>
12475
12476 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12477 encoding charset is ascii_compatible.
12478
12479 * charset.c (Fdefine_charset_internal): Make charset
12480 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12481 code_offset is 0, and covers all ASCII characters.
12482
12483 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12484
12485 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12486 (ns_string_to_pasteboard_internal):
12487 * nsmenu.m (process_dialog):
12488 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12489 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12490 * lisp.h (Fx_load_color_file): Declare.
12491
12492 2009-04-13 Kenichi Handa <handa@m17n.org>
12493
12494 * font.c (font_delete_unmatched): Preserve the order of list elements.
12495 (font_select_entity): Suppress the code to optimize for the same
12496 kind of fonts.
12497 (font_load_for_lface): Get a font that supports at least ASCII
12498 characters.
12499
12500 * ftfont.c (Qja, Qko): New variables.
12501 (fc_charset_table): Delete uniquifier data for iso8859-1.
12502 (ftfont_get_latin1_charset): New function.
12503 (get_adstyle_property): New function.
12504 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12505 bitmap fonts.
12506 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12507 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12508 `ko' or `ja'.
12509 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
12510 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
12511 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12512 property.
12513 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12514 (syms_of_ftfont): DEFSYM Qja and Qko.
12515
12516 2009-04-09 Kenichi Handa <handa@m17n.org>
12517
12518 * charset.c (map_charset_chars): For a charset of `superset'
12519 method, fix calculation of code range.
12520
12521 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12522 from the list of extra properties.
12523 (font_clear_prop): Be sure to delete `:name' font property.
12524
12525 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12526
12527 * dispnew.c (redraw_overlapping_rows): Fix detection of
12528 overlapping for topmost and bottommost rows.
12529
12530 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
12531
12532 2009-04-06 Jason Rumney <jasonr@gnu.org>
12533
12534 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12535
12536 2009-04-06 Kenichi Handa <handa@m17n.org>
12537
12538 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12539
12540 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12541
12542 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12543
12544 * ftfont.c (ftfont_open): Fix checking of the return value of
12545 FT_Load_Char. Fix setting font->underline_thickness.
12546
12547 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
12548
12549 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12550 (Fterminal_parameters, Fterminal_parameter)
12551 (Fset_terminal_parameter): In doc string, refer to terminal
12552 objects rather than terminal ids.
12553
12554 2009-04-04 Eli Zaretskii <eliz@gnu.org>
12555
12556 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12557 ret_lim_data. (Bug#2867)
12558
12559 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
12560
12561 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12562 so they don't get wider than the window, matching 2006-01-23
12563 change to the partner function in xdisp.c (Bug#2800).
12564
12565 2009-04-03 Kenichi Handa <handa@m17n.org>
12566
12567 * print.c (print_object): Make each lowest sub_char_table start a
12568 new line (Bug#2866).
12569
12570 2009-04-02 Kenichi Handa <handa@m17n.org>
12571
12572 * fontset.c (fontset_font): Record no-font when a fontset
12573 explicitly tells not to try another font-specs.
12574
12575 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12576
12577 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12578
12579 2009-03-30 Kenichi Handa <handa@m17n.org>
12580
12581 * fontset.c (fontset_from_font): Specify only registry in a
12582 font-spec for all characters supported by that registry.
12583
12584 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12585 even if HAVE_M17N_FLT is not defined.
12586
12587 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12588
12589 * ftfont.c: Conditionalize prototyping and use of
12590 ftfont_variation_glyphs.
12591
12592 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12593
12594 * frame.c (delete_frame): Work around compiler bug.
12595
12596 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12597 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12598 Some more EMACS_INT.
12599 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12600
12601 * xdisp.c (dump_glyph): Fix typo.
12602
12603 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12604 (adjust_markers_gap_motion, adjust_markers_for_delete)
12605 (adjust_markers_for_insert, adjust_point)
12606 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12607 (make_gap, copy_text, count_size_as_multibyte, insert)
12608 (insert_and_inherit, insert_before_markers)
12609 (insert_before_markers_and_inherit, insert_1)
12610 (count_combining_before, count_combining_after, insert_1_both)
12611 (insert_from_string, insert_from_string_before_markers)
12612 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12613 (insert_from_buffer_1, adjust_after_replace)
12614 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12615 (replace_range_2, del_range, del_range_1, del_range_byte)
12616 (del_range_both, del_range_2, modify_region)
12617 (prepare_to_modify_buffer, signal_before_change)
12618 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12619 for buffer positions and sizes.
12620 * lisp.h: Adjust prototypes accordingly.
12621
12622 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12623 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12624 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12625
12626 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12627
12628 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12629
12630 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12631 lines and columns so we keep the same pixel height and width.
12632
12633 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12634 the property _NET_WM_STATE has changed.
12635 (x_handle_net_wm_state): New function to update frame parameter
12636 fullscreen.
12637 (x_term_init): Initialize atoms for _NET_WM_STATE.
12638
12639 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12640
12641 2009-03-27 Kevin Ryde <user42@zip.com.au>
12642
12643 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12644 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12645 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12646 (Fgpm_mouse_stop): Pass that new parameter.
12647 * termhooks.h (close_gpm): Adjust prototype.
12648
12649 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12650
12651 * lisp.h (Fx_focus_frame): Declare.
12652
12653 * callint.c (Fcall_interactively): For '^' just delegate the work to
12654 handle-shift-selection.
12655 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12656
12657 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
12658
12659 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12660
12661 * data.c (Qinteractive_form): New variable.
12662 (Finteractive_form): Use it.
12663
12664 * eval.c (Fcommandp): Use Qinteractive_form.
12665
12666 2009-03-24 Jason Rumney <jasonr@gnu.org>
12667
12668 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12669 Calculate total size precisely. Decode environment variables
12670 before substituting. (Bug#38)
12671
12672 2009-03-24 Kenichi Handa <handa@m17n.org>
12673
12674 * font.c (find_font_encoding): Return Qnil for unsupported
12675 encoding (Bug#2722).
12676
12677 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12678
12679 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12680 that gdpy is set.
12681
12682 2009-03-22 Alan Mackenzie <acm@muc.de>
12683
12684 * callint.c (Finteractive): Clarify the doc string - even
12685 promptless elements need \n separators.
12686
12687 2009-03-22 Jason Rumney <jasonr@gnu.org>
12688
12689 * w32term.c (syms_of_w32term): Doc fix for
12690 x-use-underline-position-properties.
12691
12692 2009-03-21 Eli Zaretskii <eliz@gnu.org>
12693
12694 * w32.c (getpwuid): Change argument type to unsigned.
12695 (struct w32_id): Change type of `rid' member to unsigned.
12696 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12697 argument ID to unsigned. All callers changed.
12698 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12699
12700 2009-03-20 Eli Zaretskii <eliz@gnu.org>
12701
12702 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12703 negative, produce a float value.
12704
12705 * dired.c (make_uid, make_gid): New functions.
12706 (Ffile_attributes): Use them to avoid negative UID and GID.
12707
12708 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
12709
12710 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12711 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12712 Fix typos in docstrings.
12713
12714 2009-03-19 Kenichi Handa <handa@m17n.org>
12715
12716 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
12717 changed, use font_load_for_lface to get a new font object.
12718 Call free_realized_fontset after handling ASCII font change.
12719
12720 * frame.c (x_set_font): Handle the case that ARG is a cons.
12721
12722 2009-03-19 Glenn Morris <rgm@gnu.org>
12723
12724 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12725
12726 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
12727
12728 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12729
12730 2009-03-19 Kenichi Handa <handa@m17n.org>
12731
12732 * charset.c (load_charset_map_from_file): When a mapfile can't be
12733 loaded, signal an error.
12734
12735 2009-03-18 Eli Zaretskii <eliz@gnu.org>
12736
12737 * dired.c (Ffile_attributes): Make sure UID and GID are always
12738 positive, even if the value is too large for a positive EMACS_INT.
12739 Doc fix.
12740
12741 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12742
12743 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12744
12745 * xmenu.c (xdialog_show): Move Fredisplay call ...
12746 (Fx_popup_dialog): ... here.
12747
12748 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12749
12750 * dired.c (file_name_completion): Disable the first optimization just
12751 installed, since it is not implemented correctly.
12752
12753 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12754
12755 * dired.c (file_name_completion): Check completion-ignored-extensions
12756 only if the entry can affect bestmatch.
12757 Stop the search early, as Ftry_completion already does.
12758
12759 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
12760
12761 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
12762
12763 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
12764
12765 * keyboard.c (parse_menu_item): Don't display remappings as menu
12766 equivalent bindings (Bug#788).
12767
12768 2009-03-15 Jason Rumney <jasonr@gnu.org>
12769
12770 * w32term.h (WM_EMACS_PAINT): New message.
12771 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12772 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12773 before passing to lisp thread. (Bug#950)
12774
12775 2009-03-14 David Reitter <david.reitter@gmail.com>
12776
12777 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12778 variable as it was never reset.
12779 (ns_term_init): Remove initialization of Lisp-settable defaults
12780 and ns_expand_space.
12781 (-setPanelFromDefaultValues): Remove ns_expand_space.
12782 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12783 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
12784 i.e. no additional spacing, similar to Carbon port.
12785
12786 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12787 * nsfns.m (ns-popup-prefs-panel): Remove.
12788
12789 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12790
12791 * sound.c (alsa_configure): Remove call to deprecated
12792 snd_pcm_sw_params_set_xfer_align.
12793
12794 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
12795
12796 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12797 after clicking in a detached tool bar.
12798 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12799
12800 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12801
12802 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12803 int/Lisp_Object mixup).
12804
12805 2009-03-13 Kenichi Handa <handa@m17n.org>
12806
12807 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
12808 Handle NAME nil and t correctly. Callers changed.
12809 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12810 (set_fontset_font): Change ARG to a vector. Handle range_list in
12811 ARG correctly.
12812 (Fset_fontset_font): Fix the case that TARGET is both a script
12813 name and charset name. Adjust the arg to set_fontset_font for
12814 the above change.
12815 (fontset_from_font): Fix previous change.
12816 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
12817 entry. If FONTSET is the default fontset, don't set the extra
12818 slot of the returning char-table.
12819
12820 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
12821
12822 * nsfns.m (Fx_close_connection): Doc fix.
12823 (Fns_do_applescript): Reflow docstring.
12824 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12825 (Fx_display_pixel_width, Fx_display_pixel_height)
12826 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12827 Fix typos in docstrings.
12828 (Fns_set_alpha): Fix typos in error messages.
12829
12830 2009-03-12 David Reitter <david.reitter@gmail.com>
12831
12832 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
12833 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12834 were used for such events.
12835
12836 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12837 (toggleToolbar, performDragOperation, runHelp): Use it.
12838
12839 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
12840 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12841
12842 2009-03-11 Kenichi Handa <handa@m17n.org>
12843
12844 * font.h (font_open_by_spec): Extern it.
12845
12846 * font.c (font_open_by_spec): New function.
12847 (font_open_by_name): Use font_open_by_spec.
12848
12849 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12850 fontset of the frame.
12851
12852 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12853 modify the default font of frames that use this fontset.
12854 (num_auto_fontsets): New variable.
12855 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12856 name. Be sure to set FONTSET_ASCII to the correct font name.
12857 (update_auto_fontset_alist): New function.
12858
12859 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
12860
12861 * makefile.w32-in: Update dependencies.
12862
12863 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12864
12865 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12866
12867 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12868
12869 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12870
12871 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
12872
12873 * lread.c (Feval_buffer): Doc fix.
12874
12875 2009-03-09 Kenichi Handa <handa@m17n.org>
12876
12877 * charset.c (Qfile_name_handler_alist): Extern it.
12878 (load_charset_map_from_file): Temporarily bind
12879 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12880
12881 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
12882
12883 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12884 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
12885
12886 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12887
12888 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12889 (x_set_window_size): Change back to calculated method of setting
12890 toolbar height under Cocoa. (Bug#2546)
12891 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12892 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12893
12894 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12895
12896 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12897 accelerator in parens under GNUstep.
12898
12899 2009-03-06 Kenichi Handa <handa@m17n.org>
12900
12901 These changes are to detect incorrect composition sequence without
12902 looking ahead the source. (Bug#2370)
12903
12904 * coding.h: Include "composite.h".
12905 (enum compisition_state): New enum.
12906 (struct compisition_status): New struct.
12907 (struct iso_2022_spec): New member cmp_status.
12908 (struct emacs_mule_spec): New struct.
12909 (struct coding_system): New members ctext_extended_segment_len and
12910 embedded_utf_8. Change the union member
12911 spec.emacs_mule_full_support to spec.emacs_mule.
12912
12913 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12914 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
12915 (MAX_ANNOTATION_LENGTH): Define to 5.
12916 (ADD_COMPOSITION_DATA): New arg nbytes.
12917 (emacs_mule_char): New arg cmp_status.
12918 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12919 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12920 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12921 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12922 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12923 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12924 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12925 (EMACS_MULE_COMPOSITION_END): New macro.
12926 (emacs_mule_finish_composition): New function.
12927 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12928 (decode_coding_emacs_mule): Avoid long looking ahead while
12929 handling composition.
12930 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12931 (ENCODE_COMPOSITION_RULE): New macro.
12932 (finish_composition): New function.
12933 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12934 (DECODE_COMPOSITION_START): New implementation.
12935 (DECODE_COMPOSITION_END): Likewise.
12936 (STORE_COMPOSITION_RULE): New macro.
12937 (decode_coding_iso_2022): Avoid long looking ahead while handling
12938 composition, CTEXT extended segment, and embedded UTF-8.
12939 (setup_coding_system): For a coding of type iso-2022, reset
12940 CODING_ISO_EXTSEGMENT_LEN (coding) and
12941 CODING_ISO_EMBEDDED_UTF_8 (coding).
12942 (get_translation): Delete arguments last_block, from_nchars,
12943 to_nchars. Callers changed.
12944 (produce_chars): Don't modify charbuf. Adjusted for the change of
12945 get_translation.
12946 (produce_composition): Adjust for the new annotation sequence.
12947 (handle_composition_annotation): Likewise.
12948 (consume_chars): Adjust for the change of get_translation.
12949
12950 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12951
12952 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
12953
12954 2009-03-05 Kenichi Handa <handa@m17n.org>
12955
12956 * font.c (font_select_entity): New function.
12957 (font_find_for_lface): Use font_select_entity to select a font.
12958
12959 * fontset.c (fontset_find_font): If a font found without
12960 restricting to the characters C doesn't support C, try to find a
12961 font with C restriction.
12962
12963 2009-03-04 Nikolaj Schumacher <me@nschum.de>
12964
12965 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
12966
12967 2009-03-04 Jason Rumney <jasonr@gnu.org>
12968
12969 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
12970 characters that have already been read. (Bug#2569)
12971
12972 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12973 Log an error message if check_image_size failed.
12974 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
12975 (gs_load): Mention max-image-size in size error message. (Bug#2560)
12976
12977 2009-03-02 Eli Zaretskii <eliz@gnu.org>
12978
12979 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12980 when decoding process output.
12981
12982 2009-03-01 Richard M Stallman <rms@gnu.org>
12983
12984 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12985
12986 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12987
12988 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12989
12990 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12991 (decode_coding_emacs_mule, decode_coding_iso_2022)
12992 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12993 (decode_coding_raw_text, decode_coding_charset)
12994 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12995 Honor inhibit-eol-conversion. (Bug #2186)
12996
12997 2009-02-28 Jason Rumney <jasonr@gnu.org>
12998
12999 * coding.c (detect_coding_charset): If not checking latin extra,
13000 fail on characters between 0x80 and 0xA0. (Bug#2354)
13001
13002 2009-02-28 Eli Zaretskii <eliz@gnu.org>
13003
13004 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
13005 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
13006
13007 2009-02-27 Glenn Morris <rgm@gnu.org>
13008
13009 * callint.c (Finteractive): Doc fix.
13010
13011 2009-02-27 Kenichi Handa <handa@m17n.org>
13012
13013 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
13014
13015 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
13016
13017 * font.c (font_style_to_value): Set value for unknown symbols to
13018 100 instead of 255.
13019 (weight_table, slant_table, width_table): Treat "unspecified" as
13020 the default value.
13021
13022 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
13023
13024 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
13025
13026 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
13027
13028 * lread.c (Fload): Stop checking Vloads_in_progress and signal
13029 error as soon as a recursive load is detected.
13030
13031 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13032
13033 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
13034 before caching.
13035
13036 2009-02-24 Kenichi Handa <handa@m17n.org>
13037
13038 * fontset.c (fontset_find_font): Fix the condition for checking
13039 unavailable font.
13040
13041 2009-02-24 Glenn Morris <rgm@gnu.org>
13042
13043 * xfaces.c (Finternal_set_font_selection_order): Remove leading
13044 whitespace that confuses documentation.
13045
13046 2009-02-23 Miles Bader <miles@gnu.org>
13047
13048 * process.c (Flist_system_processes, Fprocess_attributes)
13049 (syms_of_process): Rename `system-process-attributes' to
13050 `process-attributes'.
13051
13052 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
13053
13054 * coding.h (struct coding_system): Make safe_charsets a pointer to
13055 unsigned char.
13056 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
13057 being 255.
13058 (SAFE_CHARSET_P): Likewise.
13059 (setup_iso_safe_charsets): Properly setup safe_charsets.
13060 (Fdefine_coding_system_internal): Likewise.
13061 (setup_coding_system): Likewise. Remove unneeded casts.
13062 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
13063 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
13064 Remove unneeded casts.
13065
13066 * insdel.c (del_range_2): Don't modify gap contents when called
13067 from decode_coding_object. (Bug#1809)
13068
13069 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
13070
13071 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
13072 Qfont_object.
13073 (Ftype_of): Recognize font objects.
13074
13075 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
13076
13077 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
13078 Definitions moved to data.c.
13079
13080 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13081
13082 * nsterm.m (x_make_frame_invisible): Unset async_visible,
13083 async_iconified. Based on a patch by Christian Lynbech
13084 <christian.lynbech@tieto.com>.
13085 (EmacsView-windowDidMiniaturize:): Unset async_visible.
13086
13087 2009-02-20 Glenn Morris <rgm@gnu.org>
13088
13089 * syntax.c (Fskip_chars_forward): Fix doc typo.
13090
13091 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
13092
13093 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13094
13095 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
13096
13097 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13098
13099 2009-02-19 Kenichi Handa <handa@m17n.org>
13100
13101 * coding.c (detect_coding): Preserve coding->mode.
13102 Don't overflow coding->carryover. (Bug#2370)
13103
13104 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13105
13106 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13107
13108 2009-02-18 Kenichi Handa <handa@m17n.org>
13109
13110 * font.c (font_check_otf_features): Fix handling of `nil' element.
13111 (Ffont_spec): Describe :lang and :otf in the docstring.
13112
13113 2009-02-16 Andreas Schwab <schwab@suse.de>
13114
13115 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13116 string.
13117
13118 2009-02-16 Kenichi Handa <handa@m17n.org>
13119
13120 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
13121 (Bug#1723)
13122
13123 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
13124
13125 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
13126
13127 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13128 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13129
13130 2009-02-14 Eli Zaretskii <eliz@gnu.org>
13131
13132 * msdos.c (MAX_SCREEN_BUF): New macro.
13133 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13134 Encode the entire run of glyphs sharing the same face, instead of
13135 doing that one glyph at a time (fixes a bug with displaying
13136 double-size characters).
13137
13138 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13139
13140 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13141
13142 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13143 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
13144 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
13145
13146 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
13147 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
13148
13149 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13150
13151 * keyboard.c (adjust_point_for_property): Allow stopping between two
13152 invisible areas.
13153
13154 2009-02-12 Jason Rumney <jasonr@gnu.org>
13155
13156 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13157 (add_font_entity_to_list): Call check_face_name even when family
13158 is unspecified.
13159
13160 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13161 Release DC when finished. Use NULL window to refer to desktop.
13162 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
13163
13164 * w32font.c (add_font_entity_to_list): Fix check for substituted
13165 raster fonts. (Bug#2219)
13166
13167 2009-02-12 Kenichi Handa <handa@m17n.org>
13168
13169 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13170 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13171 (autocmp_chars): Use fast_looking_at. Don't compose more
13172 characters than MAX_COMPOSITION_COMPONENTS.
13173 (find_automatic_composition): While looking forward and backward,
13174 check static composition. Fix where to stop looking forward.
13175 (composition_adjust_point): Fix checking of static composition.
13176 (Fcomposition_get_gstring): Pay attention to
13177 MAX_COMPOSITION_COMPONENTS.
13178
13179 * lisp.h (fast_looking_at): Extern it.
13180
13181 * search.c (fast_looking_at): New function.
13182
13183 * term.c (encode_terminal_code): Adjust for the change of
13184 <struct glyph>.u.cmp.to.
13185 (append_composite_glyph): Likewise.
13186
13187 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
13188 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13189 composition.
13190 (append_composite_glyph): Adjust for the change of
13191 <strcut glyph>.u.cmp.to.
13192
13193 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
13194
13195 * casetab.c (init_casetab_once):
13196 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13197 * font.c (font_update_lface):
13198 * fontset.c (Fnew_fontset):
13199 * ftfont.c (ftfont_drive_otf):
13200 * xfont.c (xfont_open):
13201 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13202
13203 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13204
13205 * fileio.c (Fwrite_region): !NILP -> CONSP.
13206
13207 2009-02-10 Andreas Schwab <schwab@suse.de>
13208
13209 * process.c (send_process): Properly relocate pointer into data
13210 when using encoded data. (Bug#2272)
13211
13212 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13213
13214 * coding.c (detect_coding_charset): Fix previous change.
13215
13216 2009-02-08 Jason Rumney <jasonr@gnu.org>
13217
13218 * w32fns.c (w32_hide_hourglass): Handle case where frame
13219 disappeared while hourglass was displayed. (Bug #2193)
13220
13221 2009-02-07 Andreas Schwab <schwab@suse.de>
13222
13223 * unexelf.c (unexec): Fix error message.
13224
13225 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13226
13227 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
13228 when modal window is active. (Bug #2152)
13229 (applicationShouldTerminate:): Remove now-unneeded while loop
13230 around NSRunAlertPanel.
13231
13232 * nsmenu.m (popupSession): New file-global variable.
13233 (pop_down_menu): End the popupSession before closing dialog.
13234 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13235 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13236 don't query NSApp for events (just sleep instead).
13237
13238 2009-02-07 Eli Zaretskii <eliz@gnu.org>
13239
13240 * coding.c (syms_of_coding) <translation-table-for-input>:
13241 Modify doc string to discourage use for character code unification.
13242
13243 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13244
13245 * atimer.c (run_timers): Update pending_atimers.
13246
13247 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
13248
13249 * image.c (svg_load_image): Fix last change.
13250
13251 * xfns.c (Fx_create_frame): Signal an error if no font is
13252 found (Bug#2147).
13253
13254 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
13255
13256 * character.c (syms_of_character) <script-representative-chars>:
13257 Fix typo in docstring.
13258
13259 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13260
13261 * nsmenu.m (pop_down_menu): New function.
13262 (ns_popup_dialog): Call it on unwind.
13263 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13264 call timer_check() (Bug#2154).
13265 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13266 handling_signal is set.
13267 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13268
13269 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
13270
13271 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13272
13273 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13274
13275 * keyboard.c (poll_for_input_1, handle_async_input):
13276 Set handling_signal under HAVE_NS.
13277
13278 2009-02-04 Glenn Morris <rgm@gnu.org>
13279
13280 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13281
13282 2009-02-04 Kenichi Handa <handa@m17n.org>
13283
13284 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13285
13286 * charset.c (Fchar_charset): New optional arg restriction.
13287
13288 * coding.h (coding_system_charset_list): Extern it.
13289
13290 * coding.c (coding_system_charset_list): New function.
13291
13292 * composite.c: Include coding.h and termhooks.h.
13293 (composition_gstring_p): Fix for the terminal case.
13294 (composition_gstring_width): Likewise.
13295 (fill_gstring_body): Likewise.
13296 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13297 the frame.
13298 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13299 is within a composition.
13300 (Fcomposition_get_gstring): Fix the terminal case.
13301
13302 * term.c (encode_terminal_code): Fix handling of composition.
13303 (produce_composite_glyph): For static composition, get pixel_width
13304 from struct composition.
13305
13306 2009-02-02 Andreas Schwab <schwab@suse.de>
13307
13308 * unexelf.c (unexec): Handle unaligned bss offset.
13309
13310 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13311
13312 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13313 XT,w32read_socket changes to ns_read_socket.
13314
13315 * keyboard.c (handle_interrupt): Don't call
13316 quit_throw_to_read_char() under NS.
13317
13318 * blockinput.h: Remove NS-specific code.
13319
13320 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13321
13322 * dispnew.c (window_change_signal): Don't try to get the size of a
13323 suspended tty frame.
13324 * term.c (Fresume_tty): Resize if the size has changed while the
13325 tty was suspended.
13326
13327 * alloc.c (mark_stack): Properly conditionalize previous change.
13328
13329 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13330
13331 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13332 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13333 Remove; this code is not used on Windows.
13334
13335 2009-01-30 Eli Zaretskii <eliz@gnu.org>
13336
13337 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13338 EOLs that also has stray ^M characters.
13339
13340 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13341
13342 * atimer.c (run_timers, alarm_signal_handler):
13343 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13344 * w32inevt.c (w32_console_read_socket):
13345 * w32term.c (w32_read_socket):
13346 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13347
13348 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
13349
13350 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13351 Initialize it as a relative filename pattern.
13352 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13353 (Fcall_process_region): Simplify temp file creation using
13354 temporary-file-directory.
13355
13356 2009-01-29 Eli Zaretskii <eliz@gnu.org>
13357
13358 * msdos.c: Rename pending_signals to msdos_pending_signals.
13359 (sig_suspender, sigprocmask): Adjust.
13360
13361 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
13362
13363 * keyboard.c (pending_signals): New var.
13364 (poll_for_input, input_available_signal, init_keyboard): Set it.
13365 (process_pending_signals): New function.
13366
13367 * lisp.h (QUIT): Check pending_signals instead of
13368 interrupt_input_pending. Use process_pending_signals.
13369
13370 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
13371
13372 * process.c (wait_reading_process_output): Use process_pending_signals.
13373
13374 * sysdep.c (emacs_write): Use process_pending_signals.
13375
13376 * xterm.c (XTread_socket): Update pending_signals.
13377
13378 * w32term.c (w32_read_socket): Update pending_signals.
13379
13380 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13381
13382 2009-01-29 Kenichi Handa <handa@m17n.org>
13383
13384 * xftfont.c (xftfont_has_char): New function.
13385 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13386
13387 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13388
13389 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13390 under GNUstep.
13391 (ns_query_color): New declaration.
13392
13393 * nsterm.m (ns_confirm_quit): New variable.
13394 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13395 (EmacsApp-applicationShouldTerminate:): Use it.
13396 (EmacsPrefsController): Let user set it.
13397 (ns_query_color): New function.
13398 (ns_defined_color): Use it.
13399 (ns_initialize): Drop.
13400 (ns_term_init): Add two lines from ns_initialize(), and set
13401 input_interrupt_mode to nil.
13402
13403 * image.c (svg_load_image): Don't right-shift background RGB when
13404 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
13405
13406 2009-01-28 Kenichi Handa <handa@m17n.org>
13407
13408 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13409 (fontset_get_font_group): Remember that no font-group is specified
13410 for C.
13411
13412 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
13413
13414 * fns.c (concat): Check for string overflow (bug#1787).
13415
13416 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13417 Quadruple undo limits (bug#1501).
13418
13419 2009-01-27 Kenichi Handa <handa@m17n.org>
13420
13421 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13422 directly use GT_Get_Char_index.
13423
13424 * xftfont.c (struct xftfont_info): New member `index'.
13425
13426 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13427 (Ffontset_font): Adjust for the change of fontset entry.
13428
13429 2009-01-26 Kenichi Handa <handa@m17n.org>
13430
13431 * fontset.c (fontset_find_font): Fix handling of non-cons return
13432 value of fontset_get_font_group.
13433 (fontset_font): Revert last change.
13434
13435 2009-01-26 Jason Rumney <jasonr@gnu.org>
13436
13437 * w32font.c (w32font_list_internal): Return quickly if registry is
13438 unknown. Simplify final return.
13439 (add_font_entity_to_list): Break complex logic down into more
13440 manageable chunks. Move unknown registry check to
13441 w32font_list_internal.
13442
13443 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13444
13445 Changes to remove Feval calls from GUI under NS.
13446
13447 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13448 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
13449 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13450
13451 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13452 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13453 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13454 instead of NON_ASCII_KEYSTROKE_EVENT.
13455 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13456 (EmacsApp-applicationShouldTerminate:): Query user.
13457 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13458 instead of Feval.
13459
13460 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13461
13462 * keyboard.c (kbd_buffer_get_event): Check for it.
13463 (keys_of_keyboard): Define lispy keys for
13464 ns-put/unput-working-text.
13465
13466 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13467 versions.
13468 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13469
13470 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
13471
13472 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
13473 setting current_buffer directly. (Bug#2044)
13474
13475 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
13476
13477 * fontset.c (fontset_font): If we know there is no font, don't do
13478 any work. (Bug#1952, bug#1990).
13479
13480 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
13481
13482 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13483
13484 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
13485 (ns_no_defaults): New declaration.
13486 (main): Use it.
13487
13488 * nsterm.h (ns_no_defaults): New declaration.
13489
13490 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
13491
13492 * nsterm.m (ns_no_defaults): New variable.
13493 (ns_initialize): Don't read defaults when ns_no_defaults.
13494 (EmacsView-readSelectionFromPasteboard:)
13495 (writeSelectionToPasteboard:types:): New stubbed-out methods for
13496 NSServicesRequests protocol. (Bug#1435)
13497 (ns_dumpglyphs_stretch): New function.
13498 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
13499 of 2008-11-15 to other terms. (Bug#615)
13500
13501 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13502
13503 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13504
13505 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13506 call for Sparc64.
13507
13508 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13509
13510 * nsfns.m:
13511 * nsgui.h:
13512 * nsmenu.m:
13513 * nsselect.m:
13514 * nsterm.h:
13515 * nsterm.m: Remove '23' comments that indicated code added during
13516 update from emacs-20 -> emacs-23.
13517
13518 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13519
13520 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
13521 ns_alternate_modifier. (Bug#1217)
13522
13523 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13524 Display all shortcuts, including those w/o super modifier.
13525
13526 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13527
13528 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
13529
13530 * fileio.c (Vwrite_region_post_annotation_function)
13531 (Vwrite_region_annotation_buffers): New vars.
13532 (build_annotations_unwind): Just reset
13533 Vwrite_region_annotation_buffers.
13534 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13535 Call write-region-post-annotation-function.
13536 (build_annotations): Add to Vwrite_region_annotation_buffers if
13537 buffer changes.
13538
13539 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13540
13541 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13542 Tiger.
13543 * nsfns.m (ns_do_applescript):
13544 Conditionalize typeUTF16ExternalRepresentation on Tiger.
13545
13546 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13547
13548 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13549
13550 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13551
13552 * nsmenu.m (NSMENUPROFILE): Change #if style.
13553
13554 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13555
13556 * nsterm.m (x_set_frame_alpha): Add prototype.
13557 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13558 handle Ctrl-tab. (Bug#1841)
13559 (ns_get_color): Use unsigned long long for scanned hex string value.
13560 (ns_term_shutdown): Abort on non SIGTERM signals.
13561 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
13562 (EmacsPrefsController-setPanelFromDefaultValues): New function.
13563 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
13564 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
13565 (ns_defined_color): Fix settings of the XColor variable fields:
13566 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
13567
13568 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
13569 DPI. (Bug#1316)
13570 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13571 values in onTiger section.
13572
13573 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
13574
13575 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13576 Check return value of font_spec_from_name.
13577 (Fx_list_fonts): Doc fix. (Bug#1951)
13578
13579 * font.c (font_spec_from_name): Return Qnil if font name could not
13580 be parsed.
13581 (font_parse_name): Treat a `?' character as part of an XLFD.
13582
13583 * fns.c (Fsubstring): Doc fix.
13584
13585 2009-01-19 Kenichi Handa <handa@m17n.org>
13586
13587 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
13588 (ftfont_list): Likewise.
13589
13590 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
13591
13592 * dbusbind.c (Fdbus_register_signal):
13593 * process.c (conv_sockaddr_to_lisp):
13594 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13595
13596 * callproc.c (Fgetenv_internal): Doc fix.
13597
13598 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
13599
13600 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13601 it is not even used.
13602
13603 2009-01-16 Glenn Morris <rgm@gnu.org>
13604
13605 * font.c (Ffont_variation_glyphs): Silence compiler.
13606
13607 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
13608
13609 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13610 Reported by David Robinow <drobinow@gmail.com>.
13611
13612 2009-01-15 Kenichi Handa <handa@m17n.org>
13613
13614 * coding.c (detect_coding_system): Fix handling of null_byte_found.
13615
13616 2009-01-14 Jason Rumney <jasonr@gnu.org>
13617
13618 * frame.c (x_set_font): Always store a font to the font parameter,
13619 never a fontset. (Bug#1562)
13620
13621 2009-01-14 Kenichi Handa <handa@m17n.org>
13622
13623 * coding.c (TWO_MORE_BYTES): New macro.
13624 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
13625
13626 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
13627
13628 * font.c (font_clear_prop): If clearing the family, clear the font
13629 width index too.
13630
13631 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
13632
13633 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
13634
13635 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13636 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13637 functions, use sizeof.
13638
13639 2009-01-12 Martin Rudalics <rudalics@gmx.at>
13640
13641 * keyboard.c (read_char): Fix case where last_nonmenu_event
13642 returned a bad value with submenus. (Bug#447)
13643
13644 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
13645
13646 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13647 family, clear the font width index too.
13648
13649 2009-01-11 Jason Rumney <jasonr@gnu.org>
13650
13651 * keyboard.c (cmd_error_internal): Exit when errors occur before
13652 frame creation and not in daemon mode. (Bug#1836)
13653
13654 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
13655
13656 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13657 of a display vector, backtrack.
13658 (try_window_reusing_current_matrix): Check glyph type before
13659 referencing charpos member.
13660
13661 2009-01-10 Eli Zaretskii <eliz@gnu.org>
13662
13663 Fix Bug #876:
13664
13665 * coding.c (inhibit_null_byte_detection): New variable.
13666 (detect_coding, detect_coding_system): Don't pay attention to null
13667 bytes if inhibit_null_byte_detection is non-zero.
13668 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
13669 <inhibit-iso-escape-detection>: Doc fix.
13670
13671 2009-01-09 Jason Rumney <jasonr@gnu.org>
13672
13673 * w32font.c (add_font_entity_to_list): Don't report unknown
13674 Windows charset as any unrecognized registry. (Bug#1548)
13675 Only report Unicode Plane 2 fonts as unicode-sip.
13676
13677 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
13678
13679 * xfaces.c (Fx_font_family_list): Delete function.
13680 Move compatibility version to faces.el.
13681
13682 * font.c (Ffont_family_list): Return a list of strings, not symbols.
13683
13684 2009-01-09 Martin Rudalics <rudalics@gmx.at>
13685
13686 * frame.c (x_set_frame_parameters): Remember requested value for
13687 fullscreen before it's reset by the parameter handler.
13688
13689 2009-01-09 Glenn Morris <rgm@gnu.org>
13690
13691 * keyboard.c (last_command_char): For clarity, rename to...
13692 (last_command_event): ... and update all users.
13693 (last_input_char): For clarity, rename to...
13694 (last_input_event): ... and update all users.
13695 (last-command-char, last-input-char): Move to subr.el as aliases.
13696 * cmds.c, commands.h: Update for last_command_char rename.
13697
13698 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
13699
13700 * font.c (font_open_for_lface): Handle unspecified height attribute.
13701
13702 2009-01-08 Jason Rumney <jasonr@gnu.org>
13703
13704 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13705 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13706 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13707 Don't declare.
13708 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
13709 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13710
13711 2009-01-07 Kenichi Handa <handa@m17n.org>
13712
13713 * fileio.c (Finsert_file_contents): In the case of replace,
13714 remember the coding system used for decoding in
13715 coding_system (Bug#1039).
13716
13717 * coding.c (decode_coding_utf_8): Check byte_after_cr before
13718 breaking the loop. (Bug#870)
13719 (decode_coding_utf_16, decode_coding_emacs_mule)
13720 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13721 (decode_coding_charset): Likewise.
13722
13723 2009-01-05 Martin Rudalics <rudalics@gmx.at>
13724
13725 * frame.c (x_set_frame_parameters): Make sure height (width) get
13726 applied when fullwidth (fullheight) is set. (Bug#1522)
13727
13728 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
13729
13730 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13731 (utc_base): Declare as ULONGLONG, not long double.
13732 (convert_time_raw): Delete.
13733 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13734 (initialize_utc_base): New function.
13735 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13736 (convert_from_time_t): Use initialize_utc_base; compute result with
13737 64-bit arithmetic.
13738 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13739
13740 2009-01-03 Eli Zaretskii <eliz@gnu.org>
13741
13742 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
13743 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13744 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13745 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13746 [!subprocesses]: Define.
13747 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13748 (Flist_system_processes, Fsystem_process_attributes)
13749 [!subprocesses]: Call list_system_processes and
13750 system_process_attributes instead of returning Qnil.
13751
13752 * dosfns.c (system_process_attributes, list_system_processes):
13753 New functions.
13754
13755 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13756
13757 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13758 Don't use the default (no-op) implementation.
13759
13760 2009-01-03 Jason Rumney <jasonr@gnu.org>
13761
13762 * keyboard.c (parse_modifiers_uncached): Wheel events are
13763 clicks (bug#687).
13764
13765 * w32term.c (x_query_colors, x_query_color): New functions.
13766
13767 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13768 (svg_load_image): Cast returned pointers from dynamically loaded
13769 functions. Eliminate W32 specific code.
13770
13771 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13772
13773 * nsfns.m (x_set_foreground_color, x_set_background_color)
13774 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13775 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13776 x_ prefix instead of ns_. Update references.
13777 (syms_of_nsfns): Add a FIXME comment.
13778
13779 * nsterm.m (x_set_cursor_type): New prototype.
13780 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13781
13782 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13783 for Solaris instead of incorrectly providing Qutime and Qcutime.
13784
13785 2009-01-02 Eli Zaretskii <eliz@gnu.org>
13786
13787 * w32.c (process_times): Compute sum of utime and stime.
13788 (system_process_attributes): Add Qtime to the alist.
13789
13790 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13791 and add them to the alist.
13792
13793 * process.c (top level) <Qtime, Qctime>: New variables.
13794 (syms_of_process): staticpro them.
13795 (Fsystem_process_attributes): Add their documentation to the doc
13796 string.
13797
13798 * process.h: Declare Qtime and Qctime.
13799
13800 2009-01-02 Jason Rumney <jasonr@gnu.org>
13801
13802 * image.c (Qgobject): New symbol.
13803 (syms_of_image): Initialize it.
13804 (init_svg_functions): Load some functions from gobject library.
13805
13806 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13807
13808 * frame.c (make_terminal_frame): Remove redundant code and useless
13809 block.
13810
13811 2009-01-01 Andreas Schwab <schwab@suse.de>
13812
13813 * process.c (conv_sockaddr_to_lisp): Add workaround for
13814 getsockname bug on BSD.
13815
13816 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
13817
13818 * xfns.c (x_create_tip_frame): Set border width of the X window.
13819
13820 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
13821
13822 2009-01-01 Jason Rumney <jasonr@gnu.org>
13823
13824 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
13825 Don't block input, as per earlier xterm.c changes.
13826
13827 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13828
13829 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13830 (ns_appkit_version_int): New function.
13831 (x-server-version): Use ns_appkit_version_int and follow 21+
13832 convention of returning 3 integers.
13833
13834 2008-12-30 Kenichi Handa <handa@m17n.org>
13835
13836 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13837 (CHAR_SURROGATE_PAIR_P): New macro.
13838
13839 * font.h (struct font_driver): New member get_variation_glyphs.
13840
13841 * font.c (font_range): Don't require a font for a variation selector.
13842 (Ffont_variation_glyphs): New function.
13843 (syms_of_font): Defsubr it.
13844
13845 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13846 ftfont_variation_glyphs.
13847 (setup_otf_gstring): New function.
13848 (ftfont_drive_otf): Use it.
13849 (ftfont_shape_by_flt): Handle variation selector.
13850 (ftfont_variation_glyphs): New function.
13851
13852 2008-12-30 Martin Rudalics <rudalics@gmx.at>
13853
13854 * frame.c (Vemacs_iconified): Remove.
13855
13856 2008-12-30 Jason Rumney <jasonr@gnu.org>
13857
13858 * frame.c (store_frame_param, x_get_arg): Enable newer code on
13859 WINDOWSNT too, as related changes have already been synced. (Bug#117)
13860
13861 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
13862
13863 * indent.c (Fvertical_motion): Don't advance iterator if we have
13864 reseated to the desired position.
13865
13866 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13867 checking for pos match.
13868
13869 2008-12-30 Kenichi Handa <handa@m17n.org>
13870
13871 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13872 just get the low 8-bit of the code.
13873
13874 * font.c (font_intern_prop): Validate str as multibyte.
13875
13876 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13877
13878 * dispextern.h (struct face): Move lface and hash from the middle
13879 of bitfields.
13880
13881 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13882
13883 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13884
13885 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13886 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13887 instead of intervals.h.
13888
13889 2008-12-26 Andreas Schwab <schwab@suse.de>
13890
13891 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13892 cons.
13893
13894 2008-12-26 Martin Rudalics <rudalics@gmx.at>
13895
13896 * textprop.c (Qminibuffer_prompt): New variable.
13897 (syms_of_textprop): Initialize it.
13898 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13899 in minibuffer-prompt face. (Bug#1662)
13900
13901 2008-12-25 Jason Rumney <jasonr@gnu.org>
13902
13903 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13904
13905 2008-12-24 Jason Rumney <jasonr@gnu.org>
13906
13907 * ralloc.c (r_alloc_reset_variable): New function.
13908
13909 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
13910 record of what points where. (Bug#716)
13911
13912 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13913
13914 * minibuf.c (read_minibuf): Follow the non-interactive case when
13915 running as a daemon, before detaching.
13916
13917 2008-12-22 Andreas Schwab <schwab@suse.de>
13918
13919 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13920 * gtkutil.c (free_widget_value): Use xfree instead of free.
13921
13922 2008-12-22 Martin Rudalics <rudalics@gmx.at>
13923
13924 * frame.c (delete_frame): New function derived from
13925 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13926 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13927 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13928 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13929 * frame.h: Extern delete_frame.
13930 * window.c (window_loop):
13931 * terminal.c (delete_terminal):
13932 * xterm.c (x_connection_closed):
13933 * xfns.c (Fx_hide_tip):
13934 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
13935
13936 2008-12-21 Jason Rumney <jasonr@gnu.org>
13937
13938 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13939 when character maps to .notdef character.
13940
13941 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13942
13943 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13944
13945 2008-12-20 Jason Rumney <jasonr@gnu.org>
13946
13947 * frame.c (Fmake_terminal_frame): Raise an error when called from
13948 a graphical frame on Windows. (Bug#1325)
13949
13950 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13951
13952 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13953
13954 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
13955
13956 * minibuf.c (Fread_buffer): Doc fix.
13957
13958 2008-12-20 Jason Rumney <jasonr@gnu.org>
13959
13960 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
13961 server name in UNC paths. (Bug#719)
13962
13963 * coding.c (decode_coding): Clear chars_at_source flag when using
13964 charbuf. (Bug#1035)
13965
13966 2008-12-19 Daniel Engeler <engeler@gmail.com>
13967
13968 * sysdep.c (serial_configure): Fix typo.
13969
13970 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13971
13972 * sysdep.c: Include alloca.h.
13973 (system_process_attributes): Add implementation for Solaris.
13974
13975 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
13976
13977 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13978
13979 Reorganize implementation of Flist_system_processes and
13980 Fsystem_process_attributes. No functional changes.
13981 * process.c: Don't #include pwd.h, grp.h and limits.h.
13982 (Flist_system_processes): Just call list_system_processes.
13983 (Fsystem_process_attributes): Just call system_process_attributes.
13984 (procfs_list_system_processes, time_from_jiffies)
13985 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13986 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13987
13988 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13989 (list_system_processes): Rename from
13990 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13991 Provide a do nothing implementation.
13992 (system_process_attributes): Rename from
13993 procfs_list_system_processes.
13994 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13995 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
13996
13997 * w32.c (list_system_processes): Rename from
13998 w32_list_system_processes.
13999 (system_process_attributes): Rename from
14000 w32_system_process_attributes.
14001
14002 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
14003
14004 * process.h (w32_list_system_processes)
14005 (w32_system_process_attributes): Remove.
14006 (list_system_processes, system_process_attributes):
14007 New prototypes.
14008
14009 2008-12-19 Kenichi Handa <handa@m17n.org>
14010
14011 * xfont.c (xfont_decode_coding_xlfd): New function.
14012 (xfont_encode_coding_xlfd): New function.
14013 (xfont_list_pattern): Decode XLFD by iso-8859-1.
14014 (xfont_list): Decode and encode XLFD by iso-8859-1.
14015 (xfont_match): Likewise.
14016 (xfont_list_family): Likewise.
14017 (xfont_open): Likewise.
14018
14019 * ftfont.c (ftfont_open): Generate a multibyte string if given
14020 names are utf-8.
14021
14022 * xftfont.c (xftfont_open): Generate a multibyte string if given
14023 names are utf-8.
14024
14025 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
14026
14027 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
14028 changed.
14029 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
14030 clicked on a detached tool bar button.
14031
14032 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
14033
14034 * emacs.c (main): Print and error and exit when no data is read
14035 from the pipe.
14036
14037 2008-12-17 Jason Rumney <jasonr@gnu.org>
14038
14039 * w32font.c (w32font_has_char): Always return -1.
14040
14041 2008-12-16 Kenichi Handa <handa@m17n.org>
14042
14043 * font.c (font_open_entity): Fix previous change.
14044
14045 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
14046
14047 * process.c: Include <limits.h>.
14048
14049 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
14050
14051 * font.c (font_update_drivers): Fix mistake in reconstructing the
14052 driver list.
14053
14054 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
14055
14056 * font.c (font_clear_cache): Fix format of font cache data.
14057
14058 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
14059
14060 * xftfont.c (xftfont_open): Free Xft font pattern if
14061 XftFontOpenPattern fails.
14062
14063 * xterm.c (x_free_frame_resources): Remove extraneous call to
14064 free_frame_faces.
14065
14066 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
14067
14068 * xterm.c (x_delete_display): Move xim_close_dpy call to
14069 x_delete_terminal.
14070 (x_delete_terminal): Call xim_close_dpy.
14071
14072 2008-12-13 Jason Rumney <jasonr@gnu.org>
14073
14074 * w32font.c (intern_font_name): New function.
14075 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
14076 (w32font_open_internal, Fx_select_font): Decode font name.
14077 (fill_in_logfont, list_all_matching_fonts): Encode font name.
14078
14079 * w32font.h (intern_font_name): Declare new function.
14080
14081 * w32uniscribe.c (add_opentype_font_name_to_list):
14082 Use intern_font_name.
14083
14084 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
14085
14086 * frame.c (Fdelete_frame): Call free_font_driver_list.
14087
14088 * font.c (free_font_driver_list): Implement missing function.
14089
14090 * w32term.c (w32_term_init): Don't initialize the image cache
14091 here; it will be done in init_frame_faces.
14092
14093 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
14094 (struct x_display_info): Remove unused member null_pixel.
14095 New member xim_callback_data.
14096
14097 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14098 (xim_initialize): Save pointer to callback function data.
14099 (xim_close_dpy): Free callback function data. Call XCloseIM,
14100 reverting 2008-11-04 change by David Smith.
14101 (x_term_init): Don't initialize the image cache here; it will be
14102 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14103 (x_delete_display): Free x_dnd_atoms member.
14104
14105 2008-12-13 Kenichi Handa <handa@m17n.org>
14106
14107 * font.c (font_rescale_ratio): Move from xfaces.c.
14108 Argument type changed. Handle a font-spec too.
14109 (font_score): Check Vface_font_rescale_alist.
14110 (font_open_entity): Likewise. (Bug#1547)
14111
14112 * xfaces.c (font_rescale_ratio): Move to font.c.
14113
14114 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
14115
14116 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14117
14118 2008-12-12 Jason Rumney <jasonr@gnu.org>
14119
14120 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14121 Set Vwindow_system_version to the real w32 major version.
14122
14123 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14124
14125 * term.c (init_tty): Move setting the terminal name before the
14126 potential user: maybe_fatal.
14127
14128 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
14129
14130 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
14131 all callers changed. Call free_frame_faces to free the face cache.
14132
14133 2008-12-11 Jason Rumney <jasonr@gnu.org>
14134
14135 * w32font.c (fill_in_logfont): Don't assume symbol script means
14136 SYMBOL_CHARSET. (Bug#547)
14137
14138 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
14139 size for surrogates. (Bug#1096, bug#872)
14140
14141 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14142
14143 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14144
14145 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14146
14147 * process.c (Fsystem_process_attributes, syms_of_process):
14148 Fix typo in name of Ssystem_process_attributes.
14149 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14150
14151 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14152
14153 * syntax.c (Fmodify_syntax_entry): Doc fix.
14154
14155 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
14156
14157 * font.c (Ffont_spec): Move usage to end of docstring.
14158
14159 2008-12-10 Jason Rumney <jasonr@gnu.org>
14160
14161 * w32font.c (Qcham): New symbol.
14162 (font_supported_scripts): Add cham, and comments for other new
14163 scripts in bitfield from OpenType spec.
14164 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14165 contain characters beyond the bmp.
14166
14167 2008-12-10 Kenichi Handa <handa@m17n.org>
14168
14169 * ftfont.c (fc_charset_table): Add "unicode-sip".
14170 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
14171 Qunicode_sip.
14172
14173 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
14174
14175 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14176 (Fcoding_system_put): Use QCdefault_char.
14177 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14178
14179 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
14180
14181 * xftfont.c (syms_of_xftfont): Fix typo.
14182
14183 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
14184
14185 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14186
14187 * emacs.c (main): Close daemon_pipe on exec.
14188
14189 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
14190
14191 * termchar.h (struct tty): New members termcap_term_buffer and
14192 termcap_strings_buffer.
14193
14194 * term.c (encode_terminal_code): Free any previous memory blocks
14195 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
14196 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14197 All callers changed.
14198 (init_tty): Store termcap data and string buffers in new struct
14199 tty members termcap_term_buffer and termcap_strings_buffer.
14200 (delete_tty): Free them.
14201 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
14202
14203 2008-12-07 Seiji Zenitani <zenitani@mac.com>
14204
14205 * nsfns.m (ns_set_background_color): Remove code duplication.
14206 It was a substitute for face-transparency on OS X 10.3.
14207
14208 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
14209
14210 * coding.c (make_conversion_work_buffer): Disable buffer
14211 modification hooks in the work buffer.
14212
14213 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14214
14215 * process.c (procfs_system_process_attributes): If `nread' has a
14216 negative value, assign zero to it.
14217
14218 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
14219
14220 * eval.c (Vdebug_on_error): Doc fix.
14221
14222 2008-12-05 Kenichi Handa <handa@m17n.org>
14223
14224 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14225 second character is a combining character.
14226
14227 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14228
14229 * process.c (procfs_system_process_attributes): Don't use cmd,
14230 cmdsize, and q without initializing them first.
14231
14232 2008-12-04 Jason Rumney <jasonr@gnu.org>
14233
14234 * w32font.c (w32font_draw): Initialize orig_clip before getting
14235 it, and delete it when finished.
14236
14237 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14238
14239 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14240 case when running as a daemon before detaching.
14241
14242 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
14243
14244 * w32.c (init_environment): Don't unload library shell32.dll.
14245
14246 2008-12-03 Kenichi Handa <handa@m17n.org>
14247
14248 * font.c (font_at): Set `multibyte' at first.
14249
14250 * coding.c (decode_coding_charset): Check type of an element of
14251 vector VALIDS.
14252 (encode_coding_emacs_mule): Be sure to set `code'.
14253
14254 * fontset.c (face_for_char): Handle invalid charset property correctly.
14255 (font_for_char): Likewise.
14256
14257 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
14258
14259 * font.c (Fopen_font): Compute pixel size correctly.
14260 (font_update_lface): Handle fonts with corrupted size specs,
14261 i.e. non-int and non-float.
14262
14263 * ftfont.c (ftfont_match): Initialize entity variable.
14264 (ftfont_resolve_generic_family): Avoid using uninitialized var.
14265 (ftfont_list_family): Initialize list var earlier.
14266
14267 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14268
14269 * xterm.c (x_draw_glyph_string): Fall back on
14270 underline_minimum_offset for underline position.
14271
14272 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14273
14274 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14275
14276 * character.c (c_string_width): Specify the type for LEN.
14277
14278 2008-12-03 Kenichi Handa <handa@m17n.org>
14279
14280 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
14281 (decode_coding_utf_8): Likewise.
14282 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
14283 (produce_chars): Initialize consumed_chars to 0.
14284
14285 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14286
14287 * keyboard.c (make_lispy_position): Only use PT if the selected
14288 window is current.
14289
14290 2008-12-02 Andreas Schwab <schwab@suse.de>
14291
14292 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14293
14294 * doprnt.c (doprnt1): Fix size of charbuf.
14295
14296 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14297
14298 * keyboard.c (timer_check): Revert last change.
14299
14300 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
14301
14302 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14303
14304 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
14305
14306 * makefile.w32-in: Update dependencies.
14307 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14308
14309 2008-12-01 Andreas Schwab <schwab@suse.de>
14310
14311 * font.c (register_font_driver): Use xmalloc.
14312 (font_put_frame_data): Likewise.
14313
14314 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
14315
14316 * xfaces.c (realize_x_face): Make abort condition clearer.
14317
14318 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14319
14320 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
14321
14322 * keyboard.c (timer_check): After a timer runs, ensure that the
14323 selected window's buffer is current.
14324
14325 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
14326
14327 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14328 It was accidentally restored by the Unicode merge.
14329
14330 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14331
14332 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
14333
14334 * w32proc.c: Include "coding.h".
14335 (Fw32_short_file_name): Encode filename passed to Windows API.
14336 (Fw32_long_file_name): Encode filename passed to Windows API and
14337 decode back the result. (Bug#1433)
14338
14339 2008-11-29 Kenichi Handa <handa@m17n.org>
14340
14341 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14342 not before accessing it.
14343
14344 * charset.c (Fdefine_charset_internal): After calculating
14345 min_char, max_char, and fastmap, copy the charset structure again.
14346 (encode_char): Fix the previous change.
14347
14348 2008-11-28 Seiji Zenitani <zenitani@mac.com>
14349
14350 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14351
14352 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14353
14354 * nsterm.m (x_set_frame_alpha): New function.
14355
14356 2008-11-27 Eli Zaretskii <eliz@gnu.org>
14357
14358 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14359
14360 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
14361
14362 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14363 pointer to check_face_name.
14364
14365 2008-11-27 Kenichi Handa <handa@m17n.org>
14366
14367 * category.h (SET_CATEGORY_SET): Call set_category_set.
14368 (set_category_set): Extern it.
14369
14370 * category.c (hash_get_category_set): New function.
14371 (Fmodify_category_entry): Adjust for the change of
14372 char_table_ref_and_range. Call hash_get_category_set to get a
14373 category set to store in the table.
14374
14375 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14376 Funify_charset.
14377
14378 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
14379 (DECODE_CHAR): Check if the decoder vector is ready.
14380 (ENCODE_CHAR): Check if the encoder char-table is ready.
14381 (maybe_unify_char): Extern it.
14382
14383 * charset.c (Vchar_unified_charset_table): Delete it.
14384 (inhibit_load_charset_map): New variable.
14385 (temp_charset_work): New variable.
14386 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14387 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14388 New macros.
14389 (load_charset_map): Meaning of control_flag changed.
14390 If inhibit_load_charset_map is nonzero, setup a table in
14391 temp_charset_work.
14392 (load_charset): New argument control_flag.
14393 (map_charset_for_dump): New function.
14394 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14395 map_charset_for_dump.
14396 (Fdefine_charset_internal): If the charset method is MAP, load
14397 mapping tables by calling load_charset.
14398 (Funify_charset): Don't load a mapping table but directly set
14399 Vchar_unify_table.
14400 (maybe_unify_char): New function.
14401 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14402 Handle the case of inhibit_load_charset_map being nonzero.
14403 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14404 Handle the case of inhibit_load_charset_map being nonzero.
14405 (Fclear_charset_maps): Just free temp_charset_work.
14406 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14407 variable.
14408
14409 * chartab.c (sub_char_table_ref_and_range): Adjust for the
14410 change of char_table_ref_and_range.
14411 (char_table_ref_and_range): Change the meaning of argument FROM
14412 and TO. Now the caller must provide initial values for *FROM
14413 and *TO.
14414
14415 * fontset.c (fontset_add): Adjust for the change of
14416 char_table_ref_and_range.
14417 (fontset_get_font_group): Likewise.
14418 (Ffontset_info): Likewise.
14419
14420 * keymap.c (describe_vector): Adjust for the change of
14421 char_table_ref_and_range. For char-table, put boundary between
14422 non-ASCII and 8-bit characters.
14423
14424 * print.c (print_object): For bool-vector, delete unnecessary
14425 check of ASCII_BYTE_P.
14426
14427 2008-11-26 Jason Rumney <jasonr@gnu.org>
14428
14429 * w32font.c (w32font_open_internal): Don't include external
14430 leading in font height. (Bug#879)
14431
14432 2008-11-26 Glenn Morris <rgm@gnu.org>
14433
14434 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14435 redefinition with ifdef. (Bug#1383)
14436
14437 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14438
14439 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14440
14441 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14442
14443 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14444 New EmacsView methods.
14445 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14446 Fixes bug #1048,1357,1414.
14447
14448 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14449
14450 Fix bug #1362.
14451 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14452 is not an indexed color.
14453 * nsterm.m (free_indexed_color): Add argument checking.
14454 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14455
14456 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
14457
14458 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14459 Document confirm-after-completion value for
14460 minibuffer-completion-confirm.
14461
14462 2008-11-24 Jason Rumney <jasonr@gnu.org>
14463
14464 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14465 warning.
14466
14467 2008-11-23 Jason Rumney <jasonr@gnu.org>
14468
14469 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14470 restored before returning.
14471
14472 * w32font.c (check_face_name): New function.
14473 (add_font_entity_to_list): Use it to filter out common substituted
14474 fonts. (Bug#642)
14475
14476 2008-11-22 Martin Rudalics <rudalics@gmx.at>
14477
14478 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14479 confirm-nonexistent-file-or-buffer in doc-string.
14480
14481 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14482
14483 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14484 Fix copy/paste typo. Add checks.
14485
14486 2008-11-21 Kenichi Handa <handa@m17n.org>
14487
14488 * coding.c (detect_coding_iso_2022): Reject invalid composition
14489 sequence.
14490 (DECODE_COMPOSITION_START): If the current source is the last
14491 block, and the current composition doesn't end, regard this
14492 sequence as invalid.
14493 (decode_coding_iso_2022): Handle invalid composition sequence.
14494
14495 2008-11-20 Martin Rudalics <rudalics@gmx.at>
14496
14497 * window.c (coordinates_in_window): Don't return
14498 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14499 line when the window is not the rightmost one. (Bug#1372)
14500
14501 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14502
14503 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14504
14505 2008-11-15 Eli Zaretskii <eliz@gnu.org>
14506
14507 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14508 and bright_bg if noninteractive is non-zero.
14509
14510 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14511
14512 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14513 x_draw_glyph_string_background.
14514
14515 * w32term.c (x_draw_glyph_string): Likewise.
14516
14517 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
14518
14519 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14520 the next glyph string once past the overhang width.
14521
14522 * nsterm.m (ns_draw_glyph_string): Likewise.
14523
14524 * w32term.c (x_draw_glyph_string): Likewise.
14525
14526 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14527
14528 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14529 double file close.
14530
14531 2008-11-14 Martin Rudalics <rudalics@gmx.at>
14532
14533 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14534 dedicated status of window before attempting to display another
14535 buffer in it.
14536
14537 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
14538
14539 * msdos.c (Fmsdos_long_file_names):
14540 (syms_of_msdos) <dos-unsupported-char-glyph>:
14541 * dosfns.c (Fint86): Fix typos in docstrings.
14542
14543 2008-11-14 Eli Zaretskii <eliz@gnu.org>
14544
14545 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14546
14547 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14548
14549 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14550
14551 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14552
14553 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14554
14555 * frame.h: Negative alpha means "don't touch".
14556
14557 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14558
14559 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14560
14561 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14562
14563 * hftctl.c:
14564 * chpdef.h:
14565 * acldef.h: Remove files used only for systems no longer supported.
14566
14567 * Makefile.in: Fix .o alphabetical ordering.
14568 (hftctl.o): Remove dependency, file removed.
14569 (keymap.o, print.o): Depend on charset.h.
14570
14571 2008-11-10 Kenichi Handa <handa@m17n.org>
14572
14573 * character.c (Fget_byte): Fix and make it faster for unibyte target.
14574
14575 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
14576
14577 * dired.c (file_name_completion): If completion_ignore_case is
14578 enabled, ignore case when checking completion-regexp-list.
14579
14580 2008-11-08 Eli Zaretskii <eliz@gnu.org>
14581
14582 * vm-limit.c (get_lim_data): Fix last change.
14583
14584 2008-11-08 Kenichi Handa <handa@m17n.org>
14585
14586 * character.c (Fget_byte): New function.
14587 (syms_of_character): Defsubr Fget_byte.
14588
14589 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
14590
14591 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14592 cursor position is valid after scrolling.
14593
14594 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
14595
14596 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14597
14598 2008-11-06 Glenn Morris <rgm@gnu.org>
14599
14600 * xterm.c (handle_one_xevent): Don't let popup menus cause
14601 mouse-autoselect-window related window switching. (Bug#1261)
14602
14603 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14604
14605 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14606
14607 2008-11-04 Andreas Schwab <schwab@suse.de>
14608
14609 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14610
14611 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
14612
14613 * xfns.c (Fx_wm_set_size_hint): New function.
14614
14615 2008-11-03 Martin Rudalics <rudalics@gmx.at>
14616
14617 * textprop.c (Fprevious_single_char_property_change): Return 0
14618 when there's no change in a string. (Bug#1301)
14619
14620 2008-11-02 Martin Rudalics <rudalics@gmx.at>
14621
14622 * frame.c (do_switch_frame): New argument NORECORD passed to
14623 Fselect_window.
14624 (Fselect_frame): New argument NORECORD passed to
14625 do_switch_frame.
14626 (Fset_frame_selected_window): New argument NORECORD passed to
14627 Fselect_frame.
14628 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14629 in call of do_switch_frame.
14630 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14631 Handle NORECORD argument in call of Fselect_frame.
14632 * lisp.h (do_switch_frame, Fselect_frame)
14633 (Fset_frame_selected_window): Adjust declarations.
14634 * window.c (select_frame_norecord): New function.
14635 (run_window_configuration_change_hook): Use it and call
14636 Fselect_frame with NORECORD set.
14637 (Fselect_window): Pass NORECORD to Fselect_frame.
14638 (Fset_window_configuration): Handle NORECORD argument in call of
14639 do_switch_frame.
14640 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14641 Fset_frame_selected_window.
14642 * keyboard.c (command_loop_1): Handle NORECORD in call of
14643 Fselect_frame (currently ifdefd).
14644
14645 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14646
14647 * emacs.c (USAGE2): Untabify.
14648
14649 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14650
14651 * composite.c (fill_gstring_header): Fix copy/paste typo.
14652
14653 2008-10-31 Martin Rudalics <rudalics@gmx.at>
14654
14655 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14656 (Fother_window): Rename argument and rewrite doc-string.
14657 (select_window_norecord): Fix return value. (Bug#1276)
14658
14659 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
14660
14661 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14662 new frames overriding foreground for tooltips. Based on similar patch
14663 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14664
14665 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
14666
14667 * emacs.c (Fdaemon_initialized): Initialize nfd.
14668
14669 2008-10-29 Martin Rudalics <rudalics@gmx.at>
14670
14671 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14672 (Fwindow_text_height): Clarify doc-strings.
14673 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14674 doc-string of window-scroll-functions.
14675
14676 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14677
14678 * category.c (syms_of_category): Fix typo in docstring.
14679
14680 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
14681
14682 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14683 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14684 Fix typos in docstrings.
14685
14686 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14687
14688 * emacs.c (daemon_pipe): Make non-static.
14689 (IS_DAEMON): Move definition ...
14690 * lisp.h (IS_DAEMON): ... here.
14691 (daemon_pipe): Declare.
14692 (is_daemon): Remove.
14693 * dispnew.c (init_display): Use IS_DAEMON.
14694
14695 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14696
14697 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14698 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14699
14700 * emacs.c (is_daemon): Remove.
14701 (main): Don't set is_daemon.
14702 (IS_DAEMON): New macro.
14703 (Fdaemonp, Fdaemon_initialized): Use it.
14704 (Fdaemon_initialized): Write a char into the pipe to make sure the
14705 parent exits.
14706 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14707
14708 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
14709
14710 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14711 over-sized glyph, draw it with the default glyph width.
14712
14713 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14714 glyph, draw it with the default glyph width.
14715
14716 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14717 glyph, draw it with the default glyph width.
14718
14719 * xdisp.c (try_scrolling): When computing the distance from the
14720 scroll margin to PT, try moving some distance past the window
14721 bottom before giving up.
14722
14723 2008-10-27 Martin Rudalics <rudalics@gmx.at>
14724
14725 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14726 (Fset_window_buffer): Explain in doc-string that a window can be
14727 "strongly" dedicated to its buffer.
14728
14729 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14730
14731 * emacs.c (daemon_name): New variable.
14732 (main): Deal with --daemon=SERVER_NAME.
14733 (Fdaemonp): Return a name if one was passed to --daemon.
14734
14735 2008-10-26 Romain Francoise <romain@orebokech.com>
14736
14737 * emacs.c (daemon_pipe): New variable.
14738 (main): Create a pipe before forking, make the parent exit only after
14739 the child has closed its end of the pipe. Move closing the
14740 descriptors ...
14741 (Fdaemon_initialized): ... here. New function.
14742
14743 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14744
14745 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14746 the previous unoptimized table.
14747
14748 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14749 the distinction between non-nil and non-t value of `dedicated'.
14750
14751 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
14752
14753 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
14754 read_char_minibuf_menu_text is large enough to hold the menu string.
14755
14756 2008-10-25 Martin Rudalics <rudalics@gmx.at>
14757
14758 * window.c (Fget_buffer_window, Fdelete_windows_on)
14759 (Freplace_buffer_in_windows): Make buffer argument optional and
14760 rename to buffer_or_name.
14761
14762 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
14763
14764 * xdisp.c (handle_single_display_spec, handle_display_prop):
14765 Undo 2005-05-16 change.
14766 (handle_stop): Pop iterator if it's loaded with an empty string.
14767 (get_overlay_strings_1): Don't save iterator if it's loaded with
14768 an empty string (bug#1201).
14769
14770 2008-10-24 Kenichi Handa <handa@m17n.org>
14771
14772 * ftfont.c (ftfont_otf_features): Fix previous change.
14773 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14774 calling ftfont_otf_features.
14775
14776 2008-10-24 Kenichi Handa <handa@m17n.org>
14777
14778 * font.c (font_match_p): Fix for the case that a vector of
14779 characters is in script-representative-chars.
14780
14781 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
14782
14783 * dbusbind.c (xd_in_read_queued_messages): New variable.
14784 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
14785 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14786 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
14787 macro. (Bug#1186)
14788
14789 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
14790
14791 * s/sol2-10.h: New file.
14792
14793 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14794
14795 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14796 poor beast has survived 9+ years and the jump from xterm.c!).
14797
14798 2008-10-23 Martin Rudalics <rudalics@gmx.at>
14799
14800 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14801 Reword doc-string.
14802 (Fbury_buffer): In doc-string say what happens to the buffer's window.
14803
14804 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14805
14806 * character.c (syms_of_character) <script-representative-chars>:
14807 <unicode-category-table>: Doc fixes.
14808
14809 2008-10-23 Noah Friedman <friedman@splode.com>
14810
14811 * coding.c (make_conversion_work_buffer): Check that
14812 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14813 Fget_buffer_create.
14814
14815 2008-10-23 Kenichi Handa <handa@m17n.org>
14816
14817 * font.c (font_add_log): Check the values of extra properties.
14818
14819 2008-10-22 Martin Rudalics <rudalics@gmx.at>
14820
14821 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14822 Reword doc-string.
14823 (Fset_window_parameter): Use NILP.
14824 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
14825 (Frecenter): Use "selected" instead of "current" window in doc-strings.
14826
14827 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14828
14829 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14830
14831 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14832
14833 * nsfns.m (ns_appkit_version): New function.
14834 (x-server-version): Use it.
14835 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14836 (x-server-vendor): Don't check_ns().
14837
14838 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14839
14840 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14841
14842 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14843 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14844
14845 2008-10-22 Kenichi Handa <handa@m17n.org>
14846
14847 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14848 scripts.
14849
14850 * category.c (word_boundary_p): Check scripts instead of charset.
14851 Handle nil value in word-separating-categories and
14852 word-combining-categories.
14853 (syms_of_category): Fix docstrings of word-separating-categories
14854 and word-combining-categories.
14855
14856 2008-10-21 Eli Zaretskii <eliz@gnu.org>
14857
14858 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14859 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14860
14861 2008-10-21 Martin Rudalics <rudalics@gmx.at>
14862
14863 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14864 Rename arg "buffer" to "buffer_or_name".
14865 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14866 it optional.
14867 (no_switch_window): Remove since the return value is not used.
14868 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
14869 Consider window as dedicated when Fwindow_dedicated_p returns a
14870 non-nil value.
14871 * lisp.h: Remove prototype for no_switch_window.
14872
14873 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14874
14875 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
14876 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
14877
14878 2008-10-21 Kenichi Handa <handa@m17n.org>
14879
14880 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14881 check Vlatin_extra_code_table.
14882
14883 2008-10-20 Eli Zaretskii <eliz@gnu.org>
14884
14885 * fileio.c (Fset_file_modes): Doc fix.
14886
14887 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
14888
14889 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14890 in arrays.
14891
14892 2008-10-19 Martin Rudalics <rudalics@gmx.at>
14893
14894 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14895 Mention kill-buffer in doc-string.
14896 (Fset_window_buffer): Reinsert tem check removed in last commit.
14897 (Fenlarge_window, Fshrink_window): Have argument names and
14898 doc-string follow Elisp manual more closely.
14899
14900 2008-10-18 Eli Zaretskii <eliz@gnu.org>
14901
14902 * fileio.c (Fset_file_modes): Doc fix.
14903
14904 2008-10-18 Martin Rudalics <rudalics@gmx.at>
14905
14906 * window.c (Fwindow_width, Fset_window_start)
14907 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
14908 (Fdelete_windows_on, Freplace_buffer_in_windows):
14909 Make doc-strings follow code and Elisp manual more closely.
14910 (Fwindow_dedicated_p): Make window argument optional.
14911 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14912 (Fset_window_buffer): Respect any non-nil dedicated value for
14913 window. Rename "buffer" argument to "buffer_or_name".
14914
14915 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
14916
14917 * m/sh3.h: New file, machine description for SuperH.
14918
14919 2008-10-17 Martin Rudalics <rudalics@gmx.at>
14920
14921 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14922
14923 2008-10-17 Kenichi Handa <handa@m17n.org>
14924
14925 * ftfont.c (ftfont_otf_features): Fix indexing
14926 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14927
14928 2008-10-16 Magnus Henoch <mange@freemail.hu>
14929
14930 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14931 (Fdbus_call_method_asynchronously): Ditto.
14932 This change makes C-h f display the argument list.
14933
14934 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
14935
14936 * fileio.c (Fexpand_file_name): Doc fix.
14937
14938 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14939 of :foreground and :background equivalent to unspecified (20.x
14940 compatibility).
14941
14942 2008-10-15 Eli Zaretskii <eliz@gnu.org>
14943
14944 * buffer.c (syms_of_buffer): Doc fix.
14945
14946 2008-10-14 Kenichi Handa <handa@m17n.org>
14947
14948 * font.c (font_clear_prop): When clearing font width, clear the
14949 average width field too.
14950
14951 2008-10-12 Andreas Schwab <schwab@suse.de>
14952
14953 * ftfont.c (ftfont_shape_by_flt): Make static.
14954 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14955
14956 * font.c: Don't include <m17n-flt.h>.
14957
14958 2008-10-10 Eli Zaretskii <eliz@gnu.org>
14959
14960 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14961
14962 2008-10-09 Eli Zaretskii <eliz@gnu.org>
14963
14964 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14965 away code.
14966
14967 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
14968
14969 * dispnew.c (update_text_area): Avoid looping due to large glyph
14970 overhangs (bug#1070).
14971
14972 2008-10-09 Kenichi Handa <handa@m17n.org>
14973
14974 * fontset.c (face_for_char): If face->fontset is negative, just
14975 return ascii_face.
14976
14977 * font.c (font_delete_unmatched): Fix previous change.
14978 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
14979
14980 2008-10-09 Martin Rudalics <rudalics@gmx.at>
14981
14982 * frame.c (Fraise_frame): On text-only terminals select frame in
14983 order to make it visible. (Bug#1061)
14984
14985 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
14986
14987 * fontset.c (fontset_find_font): Check frame validity.
14988
14989 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
14990
14991 * gtkutil.c (xg_display_open): Reset default display if none exists.
14992 (xg_display_close): Allow Emacs to close all displays (bug#985).
14993
14994 2008-10-06 Andreas Schwab <schwab@suse.de>
14995
14996 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
14997
14998 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
14999
15000 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
15001
15002 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
15003
15004 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
15005 during initialization.
15006
15007 2008-10-04 Eli Zaretskii <eliz@gnu.org>
15008
15009 * xdisp.c (redisplay_internal): If frame switched, redisplay the
15010 whole thing on MSDOS frames as well as on a TTY.
15011
15012 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
15013 well as for TTY.
15014 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
15015 well as on a TTY.
15016
15017 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
15018 as well as for TTY.
15019
15020 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
15021
15022 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
15023 MSDOS frames as well.
15024
15025 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15026
15027 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
15028 correct arguments.
15029 * menu.c (find_and_return_menu_selection): Add cast.
15030
15031 2008-10-03 Glenn Morris <rgm@gnu.org>
15032
15033 * emacs.c (USAGE1): Add --daemon.
15034
15035 2008-10-02 Eli Zaretskii <eliz@gnu.org>
15036
15037 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
15038 100, so it's in percents as advertised.
15039
15040 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15041
15042 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
15043 (ns_output.current_cursor, ns_output.desired_cursor)
15044 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
15045 (FRAME_NEW_CURSOR_COLOR): Remove.
15046
15047 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
15048 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
15049 enumeration (HOLLOW_BOX_CURSOR, etc.).
15050
15051 * nsterm.m (ns_frame_rehighlight): Remove commented code.
15052 (draw_window_cursor): Simplify code.
15053 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
15054 Don't change cursor type. In latter, call rehighlight instead of doing
15055 updates manually.
15056 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
15057 Use core Emacs cursor types.
15058
15059 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
15060
15061 2008-10-02 Martin Rudalics <rudalics@gmx.at>
15062
15063 * process.c (Faccept_process_output): Fix doc-string.
15064
15065 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
15066
15067 * gmalloc.c (__sbrk): Also define for uClibc.
15068
15069 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
15070 for uClibc.
15071
15072 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15073
15074 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
15075 styles.
15076 (nsfont_open): Reenable the cache.
15077
15078 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15079
15080 * font.c (font_matching_entity): Reflect ATTRS in font selection.
15081 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
15082
15083 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
15084
15085 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
15086 a suspended terminal.
15087
15088 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
15089
15090 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15091
15092 2008-09-30 Eli Zaretskii <eliz@gnu.org>
15093
15094 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15095
15096 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
15097
15098 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15099 in a continued line coincides with a line beginning.
15100
15101 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15102
15103 * nsfont.m (nsfont_trait_distance): Fix bug.
15104 (nsfont_list): Return a list rather than a vector (syncs with Handa
15105 changes of 2008-05-14).
15106 (nsfont_open): Improve logging.
15107
15108 2008-09-29 Andreas Schwab <schwab@suse.de>
15109
15110 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15111
15112 2008-09-28 Martin Rudalics <rudalics@gmx.at>
15113
15114 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15115 name as char-resolve-modifiers.
15116 Reported by: Markus Triska <markus.triska@gmx.at>
15117
15118 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15119
15120 * dispnew.c (init_display): Return earlier when running as a daemon.
15121
15122 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15123
15124 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15125
15126 2008-09-27 Eli Zaretskii <eliz@gnu.org>
15127
15128 * composite.c (Fcomposition_get_gstring)
15129 (Fcompose_region_internal, Fcompose_string_internal)
15130 (Ffind_composition_internal): Doc fix.
15131 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15132 (syms_of_composite) <auto-composition-function>: Doc fix.
15133 (syms_of_composite) <composition-function-table>: Doc fix.
15134
15135 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
15136
15137 * search.c (wordify): New argument for lax word-ends.
15138 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15139
15140 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15141
15142 * lisp.h (is_daemon): Declare.
15143 * dispnew.c (init_display): Do not try to initialize the terminal
15144 when running as a daemon.
15145
15146 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
15147
15148 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15149 x_display_pixel_height.
15150
15151 2008-09-22 Martin Rudalics <rudalics@gmx.at>
15152
15153 * undo.c (record_point): Don't call Fundo_boundary for first
15154 change. (Bug#731)
15155
15156 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
15157
15158 * emacs.c (Fdaemonp): Doc fix.
15159
15160 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15161
15162 * emacs.c (main): Place #ifdef in the proper place.
15163
15164 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15165
15166 * emacs.c (standard_args): Add --daemon.
15167 (main): Disconnect from the terminal when --daemon is passed.
15168 (is_daemon): New variable.
15169 (Fdaemonp): New function.
15170 (syms_of_emacs): Defsubr it.
15171
15172 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
15173
15174 * xdisp.c (get_next_display_element): Handle string display
15175 correctly when checking for the end of a box run.
15176
15177 2008-09-20 Glenn Morris <rgm@gnu.org>
15178
15179 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15180 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15181 (Frename_file): Avoid copying to trash if a rename involves
15182 a delete. (Bug#964).
15183
15184 2008-09-20 Eli Zaretskii <eliz@gnu.org>
15185
15186 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15187 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15188 frames as well as termcap frames.
15189 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15190 get_named_tty.
15191
15192 2008-09-19 Eli Zaretskii <eliz@gnu.org>
15193
15194 * process.c (procfs_system_process_attributes): Fix cmdline in
15195 case /proc/PID/cmdline is empty.
15196
15197 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15198 x_display_pixel_height.
15199
15200 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
15201
15202 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15203
15204 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15205 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15206
15207 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15208
15209 * dispextern.h (struct it): Move line_wrap away from the middle of
15210 bitfields. Move voffset in struct iterator_stack_entry after the
15211 bitfields. Move tab_width near after another short.
15212
15213 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15214
15215 * frame.h (struct frame): Move alpha from the middle of bitfields.
15216
15217 * window.h (struct window): Move frozen_window_start_p after the
15218 rest of the bitfields to reduce padding.
15219
15220 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
15221
15222 * xterm.h (x_display_info): Remove `height' and `width' members.
15223
15224 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15225
15226 * w32term.h (w32_display_info): Remove `height', `width',
15227 `height_in', and `width_in' members.
15228
15229 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15230 New functions.
15231 (x_calc_absolute_position): Use them.
15232 (x_term_init): Omit removed `height' and `width' members.
15233
15234 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15235 New functions.
15236 (w32_read_socket, x_calc_absolute_position): Use them.
15237 (w32_initialize_display_info, w32_term_init): Omit removed members
15238 of w32_display_info.
15239
15240 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15241 New functions.
15242 (ns_initialize_display_info): Omit removed members of ns_display_info.
15243
15244 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15245 New functions.
15246 (x_calc_absolute_position): Use them.
15247 (x_term_init): Omit removed `height' and `width' members.
15248
15249 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15250 (compute_tip_xy):
15251 * frame.c (x_fullscreen_adjust):
15252 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15253 x_display_pixel_width.
15254
15255 2008-09-18 Kenichi Handa <handa@m17n.org>
15256
15257 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15258 (composition_compute_stop_pos): Fix handling of static composition.
15259 (Fcomposition_get_gstring): Check FROM and TO at first.
15260
15261 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15262
15263 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
15264 mixup (YAILOM).
15265
15266 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
15267
15268 * indent.c (Fvertical_motion): Use position reported by iterator
15269 instead of PT for determining screen motion (bug#943).
15270
15271 2008-09-17 Romain Francoise <romain@orebokech.com>
15272
15273 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15274
15275 2008-09-17 Kenichi Handa <handa@m17n.org>
15276
15277 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15278
15279 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15280 if necessary.
15281
15282 2008-09-16 Kenichi Handa <handa@m17n.org>
15283
15284 * coding.c (make_conversion_work_buffer): Avoid calling
15285 Fget_buffer_create if it is not necessary.
15286
15287 2008-09-15 Martin Rudalics <rudalics@gmx.at>
15288
15289 * window.c (Fselect_window): Don't update window_select_count and
15290 use_time when norecord is not nil.
15291
15292 2008-09-14 Kenichi Handa <handa@m17n.org>
15293
15294 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15295 specpdl_ptr.
15296
15297 2008-09-12 Kenichi Handa <handa@m17n.org>
15298
15299 * indent.c (scan_for_column): Don't handle automatic composition
15300 if the current buffer is not associated with a window.
15301
15302 * composite.c (composition_reseat_it): If the current buffer is
15303 not associated with a window, ignore the automatic composition.
15304 (find_automatic_composition): Likewise.
15305
15306 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15307
15308 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15309 (Fgpm_mouse_stop): Use it.
15310 * termhooks.h (close_gpm): Declare.
15311 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15312 connection if Gpm_GetEvent fails.
15313
15314 * window.c (set_window_buffer): Always preserve current-buffer.
15315
15316 2008-09-12 Glenn Morris <rgm@gnu.org>
15317
15318 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15319
15320 2008-09-11 Glenn Morris <rgm@gnu.org>
15321
15322 * charset.c (charset-map-path): Doc fix.
15323
15324 2008-09-10 Kenichi Handa <handa@m17n.org>
15325
15326 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15327
15328 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15329 compose a grapheme cluster with the preceding base glyph.
15330
15331 * composite.c (composition_compute_stop_pos): Fix previous change.
15332 Reset cmp_it->id to -1 at first.
15333
15334 2008-09-10 Glenn Morris <rgm@gnu.org>
15335
15336 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15337
15338 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
15339
15340 * keyboard.c (read_key_sequence): Reapply translation maps when
15341 switching keyboards.
15342
15343 2008-09-09 Kenichi Handa <handa@m17n.org>
15344
15345 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15346 characters.
15347
15348 * composite.c (FORWARD_CHAR): Fix calculation
15349 of (POSITION).pos_byte.
15350 (composition_compute_stop_pos): Limit the search of composition to
15351 at most 500 characters ahead. If we reach the limit or find a
15352 newline, set cmp_it->ch to -2 and return 0.
15353 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15354
15355 2008-09-08 Kenichi Handa <handa@m17n.org>
15356
15357 * indent.c (Fvertical_motion): Be sure to set
15358 it_overshoot_expected if it.cmp_it.id is non-negative.
15359
15360 2008-09-07 Andreas Schwab <schwab@suse.de>
15361
15362 * callproc.c (Fcall_process): Don't hold references to string data
15363 across garbage collection. Move initialisation of new_argv down
15364 to avoid compiler bug.
15365
15366 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15367
15368 * process.c (Fsystem_process_attributes): Doc fix.
15369
15370 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
15371
15372 * callproc.c (Fcall_process): Canonicalize current directory name.
15373
15374 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15375 iterator advances to the next line if the current line ends in a
15376 continued tab.
15377
15378 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15379
15380 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15381 member to point to cmp_from.
15382
15383 * xdisp.c: Doc fix for references to gidx data member.
15384
15385 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15386
15387 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15388
15389 2008-09-07 Kenichi Handa <handa@m17n.org>
15390
15391 * composite.c (FORWARD_CHAR): Check STOP after
15392 incrementing (POSITION).pos.
15393
15394 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15395
15396 * process.c (Fsystem_process_attributes): Doc fix.
15397
15398 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
15399
15400 * keyboard.c (Ftop_level): Doc fix.
15401
15402 2008-09-06 Eli Zaretskii <eliz@gnu.org>
15403
15404 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15405 minibuffer, don't let lower part of menu invade the echo area.
15406
15407 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15408 "char *q" to access menu text and advance through it. Revert the
15409 change that displayed ">" instead of ASCII character 0x10.
15410
15411 2008-09-05 Eli Zaretskii <eliz@gnu.org>
15412
15413 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15414 toggle boxes and radio buttons on MS-DOS as well.
15415
15416 2008-09-05 Kenichi Handa <handa@m17n.org>
15417
15418 * composite.c (autocmp_chars): Check lookback count.
15419 (composition_compute_stop_pos): Set cmp_it->lookback.
15420 (composition_reseat_it): Check lookback count.
15421 (struct position_record): New struct.
15422 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15423 (find_automatic_composition): New function.
15424 (composition_adjust_point): Use find_automatic_composition.
15425
15426 * dispextern.h (struct composition_it): New member lookback.
15427
15428 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
15429
15430 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15431 if moving by a single line.
15432
15433 2008-09-02 Andreas Schwab <schwab@suse.de>
15434
15435 * xterm.c (x_delete_display): Fix merge error.
15436
15437 * fileio.c (Fexpand_file_name): Remove unused variables.
15438
15439 2008-09-02 Eli Zaretskii <eliz@gnu.org>
15440
15441 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15442 storage on all platforms, not just on DOS_NT.
15443
15444 2008-09-02 Jason Rumney <jasonr@gnu.org>
15445
15446 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15447 Ensure mouse is not grabbed after menu is finished.
15448
15449 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
15450
15451 * xfaces.c (Finternal_set_alternative_font_family_alist)
15452 (Finternal_set_alternative_font_registry_alist): Properly copy
15453 entire alist structure.
15454
15455 2008-09-01 Kenichi Handa <handa@m17n.org>
15456
15457 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
15458 representative chars of the script is a vector.
15459 (ftfont_list): Handle the case where the representative chars of
15460 the script is a vector.
15461
15462 * character.c (syms_of_character): Docstring of
15463 script-representative-chars fixed.
15464
15465 2008-08-31 Eli Zaretskii <eliz@gnu.org>
15466
15467 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15468 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15469 the menu. Allocate larger buffer for `text', to account for
15470 possible ^C characters.
15471
15472 2008-08-31 Martin Rudalics <rudalics@gmx.at>
15473
15474 * xdisp.c (prepare_menu_bars): Don't call
15475 Vwindow_size_change_functions with arg Qt.
15476
15477 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15478
15479 * font.h (font_range):
15480 * fileio.c (report_file_error):
15481 * composite.c (composition_update_it): Yet another int/Lisp_Object
15482 mixup (YAILOM).
15483
15484 2008-08-30 Glenn Morris <rgm@gnu.org>
15485
15486 * data.c (Fmake_variable_frame_local): Doc fix.
15487
15488 * frame.c (Fmodify_frame_parameters): Doc fix.
15489
15490 2008-08-30 Eli Zaretskii <eliz@gnu.org>
15491
15492 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15493 needed by GetTokenInformation.
15494 (w32_system_process_attributes): Check return values of all system
15495 APIs.
15496
15497 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15498 only when the state changes.
15499 (IT_update_begin, IT_update_end): Add termscript trace.
15500
15501 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15502 clipboard is unavailable. Set dst to NULL if it doesn't point to
15503 malloc'ed data.
15504 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15505 passing random values to xfree.
15506
15507 * dispnew.c (init_display): Set `tty's association in frame's
15508 parameters alist to the name of the terminal device, if that is known.
15509
15510 2008-08-29 Jason Rumney <jasonr@gnu.org>
15511
15512 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15513
15514 2008-08-29 Eli Zaretskii <eliz@gnu.org>
15515
15516 * composite.c (fill_gstring_body): Avoid compiler warnings.
15517
15518 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15519 LGLYPH_SET_CODE to avoid compiler warnings.
15520
15521 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
15522
15523 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15524
15525 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15526 LGLYPH_SET_CODE.
15527
15528 2008-08-29 Kenichi Handa <handa@m17n.org>
15529
15530 * fileio.c (report_file_error): Don't downcase the first character
15531 of errstring if it is still unibyte.
15532
15533 2008-08-29 Kenichi Handa <handa@m17n.org>
15534
15535 These changes are to re-implement the automatic composition so
15536 that it doesn't use text properties.
15537
15538 * Makefile.in (ftfont.o): Depend on composite.h.
15539 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15540
15541 * character.h (Vunicode_category_table): Extern it.
15542
15543 * character.c (Vunicode_category_table): New variable.
15544 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15545
15546 * chartab.c (optimize_sub_char_table): Perform more greedy
15547 optimization.
15548
15549 * composite.h (enum composition_method):
15550 Delete COMPOSITION_WITH_GLYPH_STRING.
15551 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15552 (Vcomposition_function_table): Extern it.
15553 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15554 (composition_gstring_put_cache, composition_gstring_from_id)
15555 (composition_gstring_p, composition_gstring_width)
15556 (composition_compute_stop_pos, composition_reseat_it)
15557 (composition_update_it, composition_adjust_point): Extern them.
15558 (Fcomposition_get_gstring): EXFUN it.
15559
15560 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
15561 (Vcomposition_function_table)
15562 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
15563 (gstring_hash_table, gstring_work, gstring_work_headers):
15564 New variables.
15565 (gstring_lookup_cache, composition_gstring_put_cache)
15566 (composition_gstring_from_id, composition_gstring_p)
15567 (composition_gstring_width, fill_gstring_header)
15568 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15569 (composition_reseat_it, composition_update_it)
15570 (composition_adjust_point, Fcomposition_get_gstring): New functions.
15571 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15572 and gstring_work_headers. DEFVAR_LISP composition-function-table.
15573 Defsubr composition_get_gstring.
15574
15575 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15576 cmp_id.
15577 (struct glyph_string): Delete the member gidx. New members
15578 cmp_id, cmp_from, and cmp_to.
15579 (enum it_method): Delete GET_FROM_COMPOSITION.
15580 (struct composition_it): New struct.
15581 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15582 Delete c, len, cmp_id, cmp_len in u.comp.
15583
15584 * font.h (enum lgstring_indices): Delete it.
15585 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
15586 (enum lglyph_indices): Likewise.
15587 (font_range): Adjust extern.
15588 (font_fill_lglyph_metrics): Extern it.
15589
15590 * font.c (QCf): New variable.
15591 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15592 (font_prepare_composition): Delete this function.
15593 (font_range): Type and arguments changed.
15594 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15595 (font_fill_lglyph_metrics): New function.
15596 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
15597 (syms_of_font): DEFSYM QCf. Delete defsubr for
15598 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15599 Defsubr Sfont_shape_gstring.
15600
15601 * fontset.h (font_for_char): Extern it.
15602
15603 * fontset.c (font_for_char): New function.
15604
15605 * ftfont.c: Include composite.h.
15606 (ftfont_resolve_generic_family): Add langset "en" to pattern.
15607 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15608
15609 * indent.c: Include composite.h and dispextern.h.
15610 (check_composition): Delete this function.
15611 (scan_for_column): Handle composition by
15612 composition_compute_stop_pos, composition_reseat_it, and
15613 composition_update_it.
15614 (compute_motion): Likewise.
15615 (Fvertical_motion): Fix checking of composition.
15616
15617 * keyboard.c (adjust_point_for_property): Check composition by
15618 composition_adjust_point.
15619
15620 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
15621 struct glyph_string.
15622
15623 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15624 (append_composite_glyph): Adjust for the change of struct it and
15625 struct glyph.
15626 (produce_composite_glyph): Likewise.
15627
15628 * w32term.c (x_draw_composite_glyph_string_foreground):
15629 Adjust for the change of struct glyph_string.
15630 (x_draw_glyph_string): Likewise.
15631
15632 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15633 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15634
15635 * xdisp.c: Include font.h.
15636 (it_props): Delete the entry for Qauto_composed.
15637 (init_iterator): Initialize it->cmp_it.id to -1.
15638 (compute_stop_pos): Call composition_compute_stop_pos.
15639 (face_before_or_after_it_pos): Adjust for the change of struct it.
15640 (handle_auto_composed_prop): Delete it.
15641 (handle_composition_prop): Handle only static composition.
15642 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15643 from xassert. Initialize it->cmp_it.stop_pos.
15644 (push_it): Adjust for the change of struct it.
15645 (pop_it): Likewise.
15646 (get_next_element): Delete next_element_from_composition.
15647 (CHAR_COMPOSED_P): New macro.
15648 (get_next_display_element): For automatic composition, get a face
15649 from the font in the glyph-string.
15650 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
15651 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
15652 (next_element_from_string): Check if the character at the current
15653 position is composed by CHAR_COMPOSED_P.
15654 (next_element_from_buffer): Likewise.
15655 (next_element_from_composition): Adjust for the change of struct it.
15656 Update it->cmp_it.
15657 (dump_glyph): Adjust for the change of struct glyph.
15658 (fill_composite_glyph_string): Adjust for the change of struct
15659 it and struct glyph. Don't handle automatic composition here.
15660 (fill_gstring_glyph_string): New function.
15661 (x_get_glyph_overhangs): Handle automatic composition.
15662 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
15663 (BUILD_GSTRING_GLYPH_STRING): New macro.
15664 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15665 automatic composition.
15666 (append_composite_glyph): Adjust for the change of struct it and
15667 struct glyph.
15668 (x_produce_glyphs): Adjust for the change of struct it.
15669
15670 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15671 the change of struct glyph_string.
15672 (x_draw_glyph_string): Likewise.
15673
15674 2008-08-29 Glenn Morris <rgm@gnu.org>
15675
15676 * buffer.c (word-wrap): Doc fix.
15677 * xdisp.c (truncate-partial-width-windows): Doc fix.
15678 Increase default to 50.
15679
15680 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
15681
15682 * xdisp.c (update_tool_bar_unwind): New function.
15683 (update_tool_bar): Temporarily set selected frame before building
15684 tool-bar items.
15685
15686 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
15687
15688 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15689 snprintf, respectively.
15690 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15691
15692 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
15693
15694 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15695 LDFLAGS to GNUstep CC invocation.
15696
15697 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
15698
15699 * indent.c (Fvertical_motion): Revert last change. Handle the
15700 general case where we are moving forward, and PT spans multiple
15701 screen lines.
15702
15703 * eval.c (find_handler_clause): Temporarily increase
15704 max-lisp-eval-depth while printing the backtrace buffer, to
15705 guarantee that help-mode code can run.
15706
15707 2008-08-27 Eli Zaretskii <eliz@gnu.org>
15708
15709 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15710 colors under -rv.
15711 (IT_set_frame_parameters): Don't swap foreground and background
15712 colors if `(reverse . t)' is present in the frame properties.
15713 (internal_terminal_init): Call init_frame_faces only for the
15714 initial frame.
15715
15716 2008-08-27 Andreas Schwab <schwab@suse.de>
15717
15718 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15719
15720 2008-08-27 Andreas Schwab <schwab@suse.de>
15721
15722 * search.c (search_buffer): Set char_base to zero only at the end.
15723
15724 2008-08-27 Kenichi Handa <handa@m17n.org>
15725
15726 * fileio.c (report_file_error): Fix handling of multibyte error string.
15727
15728 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15729
15730 * xterm.c (x_term_init): Temporarily hide the partially
15731 initialized terminal while calling vendor-specific-keysyms.
15732
15733 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15734
15735 * msdos.c (internal_terminal_init): Most initializations done only
15736 once, especially initial_screen_colors[] and termscript open.
15737
15738 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15739
15740 * eval.c (Fcondition_case): Doc fix.
15741
15742 * widgetprv.h (EmacsFramePart): Change font member to the new font
15743 struct.
15744
15745 * widget.c: Include character.h and font.h for XSETFONT.
15746 (setup_frame_gcs): Compute X font id from font struct, just once.
15747
15748 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15749
15750 * term.c (get_named_tty): Fix last change.
15751
15752 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15753
15754 * indent.c (Fvertical_motion): If moving forward starting from a
15755 multi-line string, move the iterator to the last line of that string.
15756
15757 2008-08-25 Eli Zaretskii <eliz@gnu.org>
15758
15759 * frame.c (do_switch_frame): Mark previously displayed frame as
15760 obscured for FRAME_MSDOS_P frames as well.
15761
15762 2008-08-24 Eli Zaretskii <eliz@gnu.org>
15763
15764 * frame.c (make_terminal_frame): Initialize f->terminal,
15765 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15766 Set the top frame to newly created frame.
15767 (Fmake_terminal_frame): Reuse the_only_display_info.
15768
15769 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15770 estimating available memory.
15771
15772 2008-08-23 David Reitter <david.reitter@gmail.com>
15773
15774 * nsterm.m (ns_draw_window_cursor): Don't call
15775 NSDisableScreenUpdates and NSEnableScreenUpdates on
15776 non-NS_IMPL_COCOA systems.
15777
15778 2008-08-23 Andreas Schwab <schwab@suse.de>
15779
15780 * process.c (procfs_system_process_attributes): Fix use of
15781 uninitialized variables.
15782
15783 2008-08-23 Eli Zaretskii <eliz@gnu.org>
15784
15785 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15786
15787 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15788 calling tty-set-up-initial-frame-faces.
15789
15790 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15791 Allow MSDOS frames along with X frames.
15792
15793 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15794 addition to output_termcap.
15795
15796 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15797
15798 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15799 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15800 highlight.
15801
15802 * process.c [!subprocesses]: Define QCname.
15803 (syms_of_process): Intern and staticpro it.
15804
15805 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
15806 Adjust for changes in encoding/decoding routines.
15807 Use encode_coding_object and decode_coding_object instead of
15808 encode_coding and decode_coding.
15809
15810 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
15811
15812 * dosfns.c: Include frame.h before termhooks.h.
15813 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15814 variable termscript.
15815
15816 * s/msdos.h (USER_FULL_NAME): Define.
15817 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15818
15819 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15820 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15821 pw->pw_gecos.
15822
15823 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15824 SELECTED_FRAME as additional (1st) argument.
15825 (tty_read_avail_input): Handle output_msdos_raw in
15826 addition to output_termcap.
15827
15828 * msdos.c: Include frame.h before termhooks.h.
15829 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15830 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15831 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15832 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15833 (IT_set_terminal_modes, IT_reset_terminal_modes)
15834 (IT_set_frame_parameters): Use tty->termscript instead of a global
15835 variable termscript.
15836 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15837 global variable terminal_coding. Don't refer to
15838 Vnonascii_translation_table.
15839 (internal_terminal_init): Set Vwindow_system in current_kboard.
15840 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15841 Announce date and time of session start, if termscript is open.
15842 Don't zero out the_only_display_info (it is done in
15843 term.c:init_tty). Open termscript only of not already open.
15844 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
15845 here instead of dos_ttraw. Don't initialize display if this is an
15846 initial tty. Don't set FRAME_FONT.
15847 (Vwindow_system_version): Bump to 23.
15848 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15849 is available, set up mouse_position_hook.
15850 (dos_ttraw, IT_set_terminal_modes): If called with initial
15851 terminal, do nothing.
15852 (IT_set_frame_parameters): Handle the Qtty_type frame
15853 parameter by calling internal_terminal_init.
15854 (dos_set_window_size, show_mouse_face)
15855 (clear_mouse_face, IT_note_mode_line_highlight)
15856 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15857 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15858 (initialize_msdos_display): New function.
15859 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15860 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15861 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15862 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
15863 Accept additional argument: a pointer to a frame. Update all callers.
15864 (request_sigio, unrequest_sigio): Don't define, now defined on
15865 sysdep.c.
15866 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15867
15868 * term.c [MSDOS]: Include msdos.h.
15869 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15870 conditional to DOS_NT. Allow only one call to this function in a
15871 session. Don't allocate a new struct tty_display_info; instead,
15872 reuse the_only_display_info. Call get_tty_size to get screen
15873 dimensions. Call init_baud_rate to set bad_rate.
15874 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15875 (Fsuspend_tty) [MSDOS]: Don't close input and output.
15876 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
15877 (get_tty_terminal, get_named_tty, Ftty_type)
15878 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15879 output_termcap.
15880 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15881 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
15882 only when subprocesses are supported.
15883
15884 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15885 f->output_data.x.
15886 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15887 terminal devices.
15888
15889 * msdos.h: Remove definition of struct x_display_info and struct
15890 x_output.
15891 (FRAME_FONT): Use output_data.tty.
15892 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
15893 (struct x_display_info): Rename from display_info. Update all users in
15894 msdos.c.
15895 (struct x_output): Remove background_pixel and foreground_pixel.
15896 (the_only_display_info): Rename from the_only_x_display.
15897 (dos_ttraw): Update prototype.
15898
15899 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15900 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15901
15902 2008-08-23 Jason Rumney <jasonr@gnu.org>
15903
15904 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15905 (fn_TIFFSetDirectory): New library function used.
15906 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15907 (tiff_load): Use :index to select among multiple images. Set count
15908 property when multiple images exist.
15909 (gif_format): Use :index, not :image.
15910
15911 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
15912
15913 * xdisp.c (try_scrolling): Check INT_MAX instead of
15914 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15915 to obtain INT_MAX.
15916
15917 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15918
15919 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15920
15921 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15922
15923 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15924 GNUstep library location.
15925
15926 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
15927
15928 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15929 before using it.
15930
15931 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15932
15933 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15934
15935 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15936 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15937 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15938 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15939 (EmacsApp-cursor_blink_handler): Remove declaration.
15940 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15941 match 01 Feb 2008 changes in xterm.c.
15942 (ns_read_socket): Add cast to avoid warning.
15943 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15944 GNUstep.
15945
15946 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
15947
15948 * xselect.c (x_get_foreign_selection): Return nil if desired
15949 selection could not be obtained, instead of signalling an error.
15950
15951 2008-08-20 David Reitter <david.reitter@gmail.com>
15952
15953 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15954 * nsterm.m: Remove ns-specific code for cursor blinking.
15955 (ns_draw_window_cursor): Clear cursor properly rather than
15956 redrawing the area. Respect width of bar cursors.
15957 These changes enable the use of generic blink-cursor-mode and
15958 generic cursor types in NS and support smooth cursor movements (do
15959 not blink off after command).
15960 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15961 Nextstep, too.
15962
15963 2008-08-19 Kenichi Handa <handa@m17n.org>
15964
15965 * font.c (Vfont_log_deferred): New variable.
15966 (font_add_log): Check Vfont_log_deferred.
15967 (font_deferred_log): New function.
15968
15969 * font.h (font_deferred_log): Extern it.
15970
15971 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15972 for sorting.
15973 (face_for_char): Use deferred log.
15974
15975 2008-08-18 Kenichi Handa <handa@m17n.org>
15976
15977 * fontset.c (face_for_char): Add font log.
15978
15979 * font.c (font_add_log): Add the font properties :script, :lang,
15980 and :otf in the log.
15981
15982 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
15983
15984 * xdisp.c: Remove dead code.
15985 (handle_invisible_prop, next_overlay_string): Defer call to
15986 setup_for_ellipsis.
15987 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15988
15989 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
15990
15991 * xfaces.c (lookup_derived_face): Properly handle possible zero
15992 return value of get_lface_attributes.
15993 (merge_faces): Don't tell lookup_derived_face to signal an error
15994 if face is not found.
15995
15996 * dired.c (Fdirectory_files): Doc fix.
15997
15998 * process.c (make_process): Initialize kill_without_query struct
15999 member.
16000
16001 2008-08-15 Eli Zaretskii <eliz@gnu.org>
16002
16003 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
16004 Alternative calculation of totphys for Visual Studio 6.
16005
16006 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
16007
16008 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
16009 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
16010 All users changed.
16011 (stat): Only root directory passed to GetDriveType. Allow RAM
16012 disk as well as local fixed disk when w32-get-true-file-attributes
16013 is set to `local'.
16014 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
16015 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
16016 (w32_cached_id, w32_add_to_cache): New functions.
16017 (get_name_and_id): Look account names in the cache before calling
16018 lookup_account_sid.
16019 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
16020 New initialization flags.
16021 (globals_of_w32): Initialize them to zero.
16022 (w32_system_process_attributes): Use w32_cached_id and
16023 w32_add_to_cache.
16024
16025 2008-08-14 Lawrence Mitchell <wence@gmx.li>
16026
16027 * lread.c (Fread_char, Fread_char_exclusive): If no character
16028 event is read before timeout is reached, return nil, rather than
16029 converting to a number.
16030
16031 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
16032
16033 * fns.c (use_dialog_box): Doc fix.
16034
16035 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
16036 on OS X.
16037
16038 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
16039
16040 * frame.c (Qns_parse_geometry): New var.
16041 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
16042
16043 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
16044
16045 * xdisp.c (x_produce_glyphs): Handle the case when font has no
16046 space character in calculating tabs.
16047
16048 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
16049
16050 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
16051
16052 2008-08-10 Glenn Morris <rgm@gnu.org>
16053
16054 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
16055 silence gcc "limited range of data type" warnings in some
16056 make_fixnum_or_float calls.
16057
16058 2008-08-09 Eli Zaretskii <eliz@gnu.org>
16059
16060 * w32.c (w32_system_process_attributes): If the process does not
16061 exist, return nil.
16062
16063 * w32.c: Include thelp32.h, psapi.h and coding.h.
16064 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
16065 declarations.
16066 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
16067 (Process32Next_Proc): New typedefs.
16068 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
16069 (g_b_init_process32_next, g_b_init_open_thread_token)
16070 (g_b_init_impersonate_self, g_b_init_revert_to_self)
16071 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
16072 (g_b_init_get_process_working_set_size)
16073 (g_b_init_global_memory_status_ex): New static variables.
16074 (globals_of_w32): Initialize them.
16075 (create_toolhelp32_snapshot, process32_first, process32_next)
16076 (open_thread_token, impersonate_self, revert_to_self)
16077 (get_process_memory_info, get_process_working_set_size)
16078 (global_memory_status, global_memory_status_ex): New wrapper
16079 functions.
16080 (w32_list_system_processes, w32_system_process_attributes)
16081 (enable_privilege, restore_privilege, ltime, process_times):
16082 New functions.
16083 (convert_time_raw): New function.
16084 (convert_time): Remove conversion of FILETIME into time in 100
16085 nsec units, call convert_time_raw instead.
16086
16087 * process.h (w32_list_system_processes, w32_system_process_attributes):
16088 Add prototypes.
16089 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16090 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16091 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16092 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16093
16094 * process.c (Fsystem_process_attributes): Doc fix.
16095
16096 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
16097
16098 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16099 a continued multi-char glyph; if so, advance to the actual glyph.
16100
16101 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16102
16103 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16104
16105 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16106 (.m.o): Use it.
16107 * config.in: Regenerate.
16108
16109 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
16110
16111 * xdisp.c (redisplay_window): Revert last change.
16112 (try_window): Check bottom scroll margin too.
16113
16114 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16115
16116 * config.in: Regenerate.
16117
16118 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16119 -list-load-path-shadows'.
16120 (nsgui.h): Reduce number of things depending on it.
16121
16122 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
16123
16124 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16125 instead of window-end which does the wrong thing at eob.
16126 (try_cursor_movement): Minor optimization.
16127 (redisplay_window): If scroll margin is defined, don't assume
16128 window doesn't need scrolling.
16129
16130 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16131
16132 * config.in: Regenerate.
16133
16134 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16135 (mostlyclean): Don't delete *.d under NS.
16136
16137 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16138
16139 2008-08-06 Kenichi Handa <handa@m17n.org>
16140
16141 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16142
16143 2008-08-06 Andreas Schwab <schwab@suse.de>
16144
16145 * config.in: Regenerate.
16146
16147 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
16148
16149 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16150 forcing a window start.
16151
16152 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16153 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16154
16155 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16156
16157 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16158 argument.
16159
16160 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
16161
16162 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16163 <scroll-down-aggressively, before-change-functions>:
16164 <after-change-functions>: Reflow docstrings.
16165
16166 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16167 Ken Raeburn <raeburn@gnu.org>
16168
16169 Dock menu customization, based on a patch by Ken Raeburn, plus some
16170 other fixes.
16171 * nsmenu.m (dockMenu): New variable.
16172 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16173
16174 * nsterm.h (dockMenu): Declare.
16175
16176 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16177 (ns_term_init): Initialize dockMenu.
16178 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16179 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16180 left.
16181
16182 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16183
16184 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
16185
16186 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16187
16188 * config.in: Regenerate.
16189
16190 2008-08-04 Seiji Zenitani <zenitani@mac.com>
16191
16192 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16193
16194 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
16195
16196 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16197
16198 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16199
16200 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16201
16202 * keyboard.h: Comment an #endif.
16203
16204 * lisp.h (have_menus_p): Adjust comment.
16205
16206 * menu.c (find_and_return_menu_selection): Fix comparison with
16207 client_data.
16208
16209 * nsmenu.m (popup_activated_flag): New variable.
16210 (popup_activated): New function.
16211 (menu-or-popup-active-p): New exported lisp definition.
16212 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16213 when popup done.
16214 (ns_popup_dialog): Set popup_activated_flag.
16215
16216 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16217 version for GNUstep (handled by conditional typedef in nsterm.m).
16218 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16219 in rgb.txt).
16220
16221 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16222
16223 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16224
16225 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16226
16227 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16228 shortcircuit if popup_activated like GTK and X toolkit.
16229
16230 * m/inter386.h: Change DARWIN to DARWIN_OS.
16231
16232 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16233 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
16234 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16235 Expand comment on NO_SOCK_SIGIO.
16236
16237 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
16238
16239 * nsterm.m (windowDidResize): Remove stopModal call.
16240
16241 2008-08-03 Andreas Schwab <schwab@suse.de>
16242
16243 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16244 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16245
16246 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
16247
16248 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16249 Don't use uninitialized pointer variable when using getrlimit.
16250
16251 2008-08-02 Jason Rumney <jasonr@gnu.org>
16252
16253 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16254
16255 2008-08-02 Eli Zaretskii <eliz@gnu.org>
16256
16257 * alloc.c (NSTATICS): Bump to 0x640.
16258
16259 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16260
16261 * lisp.h: Add prototype for directory_files_internal.
16262
16263 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16264 New functions.
16265 (syms_of_process): Defsubr them. Add initializations for various
16266 Q* symbols used in procfs_system_process_attributes.
16267 (procfs_list_system_processes, procfs_system_process_attributes)
16268 [HAVE_PROCFS]: New functions.
16269 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16270 (procfs_get_total_memory): New functions.
16271
16272 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16273
16274 * xfaces.c (Fx_load_color_file): Fix previous change;
16275 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16276
16277 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
16278
16279 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16280
16281 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16282
16283 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16284
16285 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
16286
16287 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16288
16289 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16290 define NSApplicationDelegateReplySuccess.
16291 (EmacsView -converstationIdentifier): Use long instead of
16292 NSInteger for GNUstep, since it doesn't have NSInteger.
16293
16294 * xmenu.c: Revert last change.
16295
16296 * keyboard.h: Fix last change.
16297
16298 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16299
16300 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16301 on Windows.
16302
16303 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16304
16305 Warning clearing and clean-up in NS port.
16306 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16307 Add prototypes.
16308 * nsgui.h (FACE_DEFAULT): Remove, unused.
16309 (XGCValues): Change colors to unsigned long.
16310 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16311 nsterm.m.
16312 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16313 (ns_list_fonts): Remove, unused.
16314 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16315 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16316 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16317 (nsfont_draw): Compare face colors to 0, not nil.
16318 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16319 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16320 (-addSubmenuWithTitle:): Use NSMenuItem class.
16321 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16322 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16323 (ns_clip_to_row): Make gc arg a BOOL.
16324 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16325 ns_clip_to_row() call.
16326 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16327 used). Cast FRAME_FONT assignments.
16328 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16329 (ns_string_to_lispmod): Change arg to const char.
16330 (ns_term_init): Use NSMenuItem class.
16331 (EmacsApp -openFile:): Move to different section of file.
16332 (EmacsApp -application:openFiles:): Don't return a value, call
16333 -replyToOpenOrPrint:.
16334 (EmacsView -keyDown:): Fix up cast.
16335 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16336 (EmacsView -menuDown:): Cast tag in call to
16337 find_and_call_menu_selection().
16338 (ns_list_fonts): Remove, unused.
16339 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16340 (ns_fontname_to_xlfd): Make static.
16341 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16342 Remove prototypes (now in keyboard.h).
16343 (next_menubar_widget_id): Remove, unused.
16344 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16345 Remove prototypes (now in keyboard.h).
16346 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16347
16348 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16349
16350 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16351 (floatfns.o): Depend on syssignal.h.
16352 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16353
16354 * systty.h: Fix previous change that removed BSD_TERMIOS.
16355 Add comments to #ifdefs.
16356
16357 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16358
16359 * w32fns.c (w32-load-color-file): Remove.
16360 (x-open-connection): Use renamed Fx_load_color_file.
16361 * xfaces.c (x-load-color-file): Add.
16362 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16363 Emacs.clr.
16364 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16365
16366 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
16367
16368 * dbusbind.c (Fdbus_call_method_asynchronously)
16369 (Fdbus_method_error_internal): New defuns.
16370 (xd_read_message): Handle also reply messages.
16371 (Vdbus_registered_functions_table): Extend docstring.
16372
16373 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
16374
16375 * keyboard.c (gobble_input): Fix previous change.
16376
16377 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16378
16379 * bitmaps/README:
16380 * xfns.c:
16381 * termcap.c:
16382 * term.c:
16383 * syswait.h:
16384 * systty.h:
16385 * systime.h:
16386 * syssignal.h:
16387 * sysdep.c:
16388 * process.h:
16389 * process.c:
16390 * print.c:
16391 * ndir.h:
16392 * lread.c:
16393 * keyboard.c:
16394 * getpagesize.h:
16395 * floatfns.c:
16396 * fileio.c:
16397 * emacs.c:
16398 * doc.c:
16399 * dispnew.c:
16400 * dired.c:
16401 * data.c:
16402 * callproc.c:
16403 * buffer.c:
16404 * README:
16405 * Makefile.in:
16406 * s/template.h:
16407 * s/msdos.h:
16408 * m/vax.h: Remove VMS support.
16409 * s/vms.h:
16410 * vlimit.h:
16411 * uaf.h:
16412 * temacs.opt:
16413 * param.h:
16414 * ioctl.h: Remove file.
16415
16416 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16417
16418 * s/ms-w32.h (MULTI_KBOARD): Remove.
16419 * xterm.c:
16420 * xselect.c:
16421 * xfns.c:
16422 * window.c:
16423 * w32term.c:
16424 * w32fns.c:
16425 * terminal.c:
16426 * termhooks.h:
16427 * term.c:
16428 * sysdep.c:
16429 * keyboard.h:
16430 * keyboard.c:
16431 * frame.h:
16432 * frame.c:
16433 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16434 * config.in: Regenerate.
16435
16436 2008-07-30 Jason Rumney <jasonr@gnu.org>
16437
16438 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16439
16440 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16441 (w32font_open_internal): Get unicode version of textmetrics.
16442 Don't enable or disable glyph indices here.
16443 (w32font_open): Disable use of glyph indices.
16444
16445 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16446
16447 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
16448
16449 * minibuf.c (Vread_buffer_function): Doc fix.
16450
16451 2008-07-30 John Paul Wallington <jpw@pobox.com>
16452
16453 * minibuf.c (read_buffer_completion_ignore_case): New var.
16454 (Fread_buffer): Use it.
16455
16456 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16457
16458 * systty.h (sensemode): Remove empty #if. Remove reference to
16459 BSD_TERMIOS, unused.
16460
16461 * sysdep.c: Remove reference to DGUX.
16462 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16463
16464 * config.in: Regenerate.
16465
16466 2008-07-30 Jason Rumney <jasonr@gnu.org>
16467
16468 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16469
16470 2008-07-29 Jason Rumney <jasonr@gnu.org>
16471
16472 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16473 is populated.
16474 (uniscribe_encode_char): Always use uniscribe.
16475 Avoid using context if cache is populated.
16476
16477 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16478
16479 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16480 open menu.
16481
16482 * gtkutil.c (menu_nav_ended): Remove.
16483 (create_menus): Remove signal connect for menu_nav_ended.
16484
16485 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
16486
16487 * xdisp.c (redisplay_window): Check return value of
16488 compute_window_start_on_continuation_line before forcing a window
16489 start.
16490
16491 2008-07-28 Jason Rumney <jasonr@gnu.org>
16492
16493 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16494
16495 * w32term.c (w32_enable_unicode_output, cleartype_active):
16496 Remove obsolete display options.
16497 (x_draw_glyph_string_background): Don't use old cleartype_active
16498 workaround.
16499 (w32_initialize): Remove cleartype_active initialization.
16500 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16501
16502 2008-07-28 Andreas Schwab <schwab@suse.de>
16503
16504 * lisp.h (init_weak_hash_tables, syms_of_font)
16505 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16506 (remove_hash_entry): Don't declare.
16507 * eval.c (maybe_call_debugger): Make static and move before use.
16508 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16509 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16510 * xterm.h (x_set_frame_alpha): Declare.
16511
16512 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16513
16514 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16515 (create_menus): Connect selection-done to menu_nav_ended.
16516
16517 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16518
16519 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16520 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16521 parameter with read of 'alpha' one.
16522 (Qns_frame_parameter): Remove.
16523 * nsselect.m (selection-coding-system)
16524 (next-selection-coding-system, Vselection_coding_system)
16525 (Vnext_selection_coding_system): Drop.
16526
16527 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16528
16529 * nsfns.m (do-applescript, do_applescript): Rename to
16530 ns-do-applescript, ns_do_applescript, and move within file.
16531
16532 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16533
16534 Remove support for Mac Carbon.
16535 * mactoolbox.c:
16536 * macterm.h:
16537 * macterm.c:
16538 * macselect.c:
16539 * macmenu.c:
16540 * macgui.h:
16541 * macfns.c:
16542 * mac.c: Remove file.
16543 * s/darwin.h:
16544 * m/intel386.h:
16545 * xfaces.c:
16546 * xdisp.c:
16547 * window.c:
16548 * tparam.c:
16549 * termhooks.h:
16550 * termcap.c:
16551 * term.c:
16552 * syssignal.h:
16553 * sysselect.h:
16554 * sysdep.c:
16555 * process.c:
16556 * lread.c:
16557 * lisp.h:
16558 * keyboard.c:
16559 * image.c:
16560 * fringe.c:
16561 * frame.h:
16562 * frame.c:
16563 * fontset.c:
16564 * font.h:
16565 * font.c:
16566 * fns.c:
16567 * fileio.c:
16568 * emacs.c:
16569 * dispnew.c:
16570 * dispextern.h:
16571 * config.in:
16572 * atimer.c:
16573 * Makefile.in: Remove code for Carbon.
16574
16575 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16576
16577 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16578
16579 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16580
16581 * macterm.h (kCGBitmapByteOrder32Host): New define for
16582 non-universal SDKs.
16583
16584 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16585 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16586
16587 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16588 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16589
16590 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16591
16592 * w32inevt.c: Include dispextern.h.
16593
16594 2008-07-26 Andreas Schwab <schwab@suse.de>
16595
16596 * print.c (print_object): Fix off-by-one in last change.
16597
16598 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
16599
16600 * term.c (syms_of_term): Don't initialize default_orig_pair,
16601 default_set_foreground and default_set_background on Windows.
16602
16603 2008-07-25 Jason Rumney <jasonr@gnu.org>
16604
16605 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16606 ScriptItemize. Clean up return value checking. Remove unused
16607 variables.
16608 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16609 shaping engine.
16610
16611 * w32font.c (w32font_has_char): Handle the case where we can't
16612 determine the script for a character.
16613
16614 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16615
16616 * term.c (syms_of_term): Initialize default_orig_pair,
16617 default_set_foreground, and default_set_background.
16618
16619 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16620 clash (bug#86).
16621 (getloadavg): Callers changed.
16622
16623 * image.c (svg_load_image): Fix last change.
16624 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16625 image size is valid. Use g_object_unref instead of deprecated
16626 rsvg_handle_free to free rsvg handle.
16627 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16628
16629 2008-07-25 Jason Rumney <jasonr@gnu.org>
16630
16631 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16632 surrogates before looking up glyph index.
16633 (w32font_text_extents): Encode as surrogates if falling back to
16634 functions that need UTF-16 wide chars.
16635
16636 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16637 BMP as surrogates before looking up glyph index.
16638
16639 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16640
16641 * image.c (svg_load_image): Check for failure in return value of
16642 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16643
16644 2008-07-25 Jason Rumney <jasonr@gnu.org>
16645
16646 * w32font.c (Fx_select_font): Reverse sense of second arg.
16647
16648 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16649
16650 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16651 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16652
16653 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16654 (PURESIZE): Use it.
16655
16656 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16657
16658 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16659 * m/alpha.h (TEXT_END):
16660 * m/ibmrs6000.h (TEXT_END):
16661 * m/macppc.h (TEXT_END):
16662 * s/darwin.h (TEXT_END):
16663 * s/msdos.h (TEXT_END): Remove, unused.
16664 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16665 * s/cygwin.h: Remove comment.
16666
16667 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16668 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16669 * m/intel386.h (DOT_GLOBAL_START):
16670 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16671 (USG): Remove, file not used on USG platforms.
16672
16673 * Makefile.in (HAVE_X11): Remove empty #else.
16674
16675 2008-07-24 Andreas Schwab <schwab@suse.de>
16676
16677 * fileio.c (Finsert_file_contents): Properly adjust undo list
16678 after format conversion.
16679
16680 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16681
16682 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16683 (menu_nav_ended): Remove.
16684 (create_menus): Remove signal connect for menu_nav_ended.
16685 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16686 create_menus.
16687 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16688
16689 2008-07-23 Jason Rumney <jasonr@gnu.org>
16690
16691 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16692 with opened font.
16693 (w32font_open): Set font type to gdi.
16694
16695 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16696
16697 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16698
16699 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16700 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16701 defines it.
16702 * unexec.c (ADDR_CORRECT): Define unconditionally.
16703
16704 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16705
16706 * unexec.c: Remove code depending on !COFF and USG, the file is
16707 not used for such systems.
16708
16709 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16710 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16711 (LD_SWITCH_SYSTEM_1): Remove, update users.
16712
16713 * s/darwin.h (DATA_END):
16714 * m/intel386.h (DATA_END):
16715 * m/ibmrs6000.h (DATA_END):
16716 * m/alpha.h (DATA_END): Remove, unused.
16717
16718 * config.in: Regenerate.
16719 * s/ms-w32.h (subprocesses): Define unconditionally.
16720 * s/template.h (subprocesses): Update comment.
16721 * s/vms.h (subprocesses):
16722 * s/usg5-4.h (subprocesses):
16723 * s/hpux10-20.h (subprocesses):
16724 * s/gnu-linux.h (subprocesses):
16725 * s/cygwin.h (subprocesses):
16726 * s/bsd-common.h (subprocesses):
16727 * s/aix4-2.h (subprocesses):
16728 * s/darwin.h (subprocesses): Do not define, defined by default now.
16729
16730 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16731 Remove all references.
16732 (temacs): Add GNUstep specific ld flags.
16733
16734 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16735 similarly to what X does.
16736
16737 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16738
16739 * nsfns.m (x-list-fonts): Remove.
16740 (syms_of_nsfns): Drop the x-list-fonts declaration.
16741 * nsterm.m: Get rid of remaining "//" comments.
16742
16743 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
16744
16745 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16746
16747 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16748 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16749 (Fns_own_selection_internal, Fx_disown_selection_internal)
16750 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16751
16752 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16753 ... */' style of docstrings. Doc fixes.
16754
16755 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16756
16757 * terminfo.c (UP, BC, PC): Undo previous change.
16758
16759 * nsfns.m: Rename ns prefixed functions/variables to the
16760 corresponding x versions. Update references.
16761
16762 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16763
16764 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16765
16766 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16767
16768 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16769 Remove forwarding functions.
16770 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16771 non-static.
16772 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16773 non-static.
16774 (ns_frame_parm_handlers): Use the new names.
16775 (syms_of_nsfns): Move to the end of file.
16776
16777 * nsterm.m (syms_of_nsterm): Move to the end of file.
16778
16779 * dispnew.c (init_display): Remove code for X10.
16780
16781 2008-07-22 Jason Rumney <jasonr@gnu.org>
16782
16783 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16784 bare drive.
16785
16786 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16787
16788 * nsterm.m (syms_of_nsterm): Remove debugging println.
16789
16790 2008-07-22 David Reitter <david.reitter@gmail.com>
16791
16792 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16793 Carbon implementation of the same functionality: execute arbitrary
16794 AppleScript code.
16795
16796 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16797
16798 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16799 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16800 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16801 (Fx_display_mm_height, Fx_display_mm_width)
16802 (Fx_display_backing_store, Fx_display_visual_class)
16803 (Fx_display_save_under, Fx_open_connection)
16804 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16805 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16806 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16807 (Fx_display_pixel_width, Fx_display_pixel_height)
16808 (Fx_display_usable_bounds, Fx_display_planes)
16809 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16810 ... */' style of docstrings.
16811
16812 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16813
16814 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16815 on this platform.
16816 (mips):
16817 * m/iris4d.h (mips): Do not define.
16818 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16819
16820 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16821
16822 * image.c:
16823 * nsfns.m:
16824 * nsselect.m:
16825 * nsterm.h:
16826 * nsterm.m: Rename ns prefixed functions/variables to the
16827 corresponding x versions. Update references.
16828
16829 * m/ibms390x.h (NO_REMAP): Do not undefine.
16830
16831 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16832
16833 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
16834
16835 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16836 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16837 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16838 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16839 (Fns_display_mm_height, Fns_display_mm_width)
16840 (Fns_display_backing_store, Fns_display_visual_class)
16841 (Fns_display_save_under, Fns_open_connection)
16842 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16843 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16844 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16845 (Fns_display_pixel_width, Fns_display_pixel_height)
16846 (Fns_display_usable_bounds, Fx_display_planes)
16847 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16848
16849 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16850
16851 * print.c (print_object): Check print_depth before searching for
16852 circularities.
16853
16854 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
16855
16856 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16857 only sprintf.
16858
16859 2008-07-21 Kenichi Handa <handa@m17n.org>
16860
16861 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16862
16863 2008-07-20 Andreas Schwab <schwab@suse.de>
16864
16865 * syntax.c (find_start_pos, find_start_value)
16866 (find_start_value_byte, find_start_begv, find_defun_start)
16867 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16868
16869 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16870
16871 * s/sol2-3.h: Insert contents of s/sol2.h.
16872 (LD_SWITCH_SYSTEM): Remove redundant definition.
16873 * s/sol2.h: Remove, unused.
16874
16875 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16876
16877 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16878
16879 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16880
16881 * Makefile.in (ns_appdir): Fix typo in find command.
16882
16883 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16884
16885 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16886
16887 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16888 added not supported anymore.
16889
16890 * s/usg5-4-2.h (LIBS_SYSTEM):
16891 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16892
16893 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16894 * s/lynxos.h (GETPGRP_NO_ARG):
16895 * s/hpux10-20.h (NO_SIOCTL_H):
16896 * s/gnu.h (GETPGRP_NO_ARG):
16897 * s/gnu-linux.h (NO_SIOCTL_H):
16898 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16899 * s/cygwin.h (GETPGRP_NO_ARG):
16900 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16901 (C_DEBUG_SWITCH): Remove duplicate definition.
16902
16903 * m/ibms390.h: Remove boilerplate comments.
16904
16905 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16906
16907 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16908 (wait_reading_process_output): Remove code for SunOS, platform not
16909 supported anymore. Use SOLARIS2 instead of sun.
16910
16911 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16912
16913 * font.c (font_open_by_name): Under NS, default lface height to zero.
16914 (font_open_for_lface): Under NS, set size based on frame fontsize.
16915 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16916 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16917
16918 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16919
16920 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16921 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16922 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16923 YES/NO.
16924 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16925 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16926 * Makefile.in (clean): Clear out build destination dir.
16927
16928 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16929
16930 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16931 xterm, xselect.
16932 * lisp.h: Remove declaration of hash_remove.
16933 * nsgui.h: Remove redefinitions of hash_remove.
16934 * fns.c (hash_remove): Rename to hash_remove_from_table.
16935
16936 2008-07-19 Seiji Zenitani <zenitani@mac.com>
16937
16938 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16939 strdup() the family UTF8String before modifying it.
16940
16941 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16942
16943 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16944 NS_FACE_BACKGROUND with 0 instead of nil.
16945 * nsfont.m (nsfont_draw): Same.
16946
16947 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
16948
16949 * nsfns.m (ns_set_background_color): Fix crash.
16950
16951 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
16952
16953 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16954
16955 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16956
16957 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16958
16959 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16960
16961 * gtkutil.c: Include <config.h> instead of "config.h".
16962
16963 * lisp.h (Foverlay_buffer): Add EXFUN.
16964
16965 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16966 child process to complete child_setup. Undo 2005-09-21 change.
16967
16968 * s/darwin.h: Mention setsid after vfork.
16969
16970 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16971
16972 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16973 Depend on macgui.h.
16974
16975 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16976 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16977
16978 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16979 and f19.
16980 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16981
16982 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16983 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16984 Remove enumerators.
16985
16986 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16987 Check if FACE_FROM_ID returns NULL.
16988
16989 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16990
16991 * w32inevt.c (change_frame_size): Remove extern declaration.
16992 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16993 change_frame_size.
16994
16995 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16996
16997 * getloadavg.c: Revert last change (2008-07-15).
16998
16999 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17000
17001 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
17002 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
17003 from configure.
17004
17005 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
17006
17007 * s/sol2.h:
17008 * s/sol2-4.h: Reorganize conditionals.
17009
17010 * ecrt0.c: Remove code depending on m68000, not used anymore.
17011
17012 * fns.c (hash_remove): Make static.
17013 * lisp.h (hash_remove): Don't prototype.
17014
17015 * m/ibmrs6000.h:
17016 * m/ibms390x.h:
17017 * m/macppc.h: Remove boilerplate comments.
17018
17019 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
17020 Solaris, which does not need them.
17021
17022 * m/vax.h: Remove comments about unsupported systems.
17023
17024 * s/darwin.h: Reorganize ifdefs.
17025
17026 2008-07-17 Andreas Schwab <schwab@suse.de>
17027
17028 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
17029
17030 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17031
17032 Use SDATA. Follow coding convention of placing operators at
17033 beginning of next line rather than end of previous line, and placing
17034 spaces around infix operators.
17035
17036 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
17037 in case it was defined already.
17038 USE @GNUSTEP_MAKEFILES@ rather than envvars.
17039 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
17040 ns_default.
17041 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
17042 Lisp_Objects.
17043 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
17044 (ns_defined_color, ns_color_to_lisp): Declare.
17045 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
17046 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
17047 it's accepted even with USE_LISP_UNION_TYPE.
17048 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
17049 (update_frame_tool_bar): Remove apparently obsolete tests for
17050 non-integerness of f->tool_bar_lines.
17051 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
17052 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
17053 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
17054 (nsfont_open): Don't confuse NULL for Qnil.
17055 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
17056 * menu.h (find_and_call_menu_selection):
17057 * menu.c (find_and_call_menu_selection): Use just int for vector size.
17058 (find_and_return_menu_selection): Always return something.
17059 * frame.h: Include dispextern.h for Display_Info.
17060 (display_x_get_resource): Declare.
17061
17062 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
17063
17064 * syntax.c: Remove stdio.h include accidentally introduced in
17065 Emacs.app commit.
17066 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
17067 NS_IMPL_COCOA.
17068 * keyboard.c (handle_async_input, input_available_signal): Remove
17069 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
17070
17071 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17072
17073 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
17074 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
17075 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
17076 Use SDATA.
17077
17078 * keymap.c: Remove all NS-specific code.
17079 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
17080 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
17081 where_is_preferred_modifier, return a different value depending on how
17082 preferred is the binding.
17083 (where_is_internal): Adjust accordingly.
17084 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
17085 Adjust to new preferred_sequence_p.
17086 (syms_of_keymap): Declare `where-is-preferred-modifier'.
17087 * keyboard.c (parse_solitary_modifier): Not static any more.
17088 * keyboard.h (parse_solitary_modifier): Declare.
17089
17090 2008-07-16 Andreas Schwab <schwab@suse.de>
17091
17092 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17093 of easymenu.
17094
17095 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
17096
17097 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17098 that we don't move off the line.
17099
17100 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17101
17102 * keyboard.c (Qsuper): Remove.
17103 (parse_menu_item): Don't call where_is_internal specially for NS.
17104
17105 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17106
17107 * s/gnu-linux.h: Remove boilerplate comments.
17108
17109 * m/alpha.h (__ELF__): Consolidate conditions.
17110
17111 * m/m68k.h (linux): Use GNU_LINUX instead.
17112 Remove boilerplate comments.
17113
17114 * m/intel386.h: Undo refactoring from previous change.
17115 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17116 too, remove dead code.
17117 (linux): Use GNU_LINUX instead.
17118
17119 2008-07-16 Jason Rumney <jasonr@gnu.org>
17120
17121 * w32gui.h: Repeat 26 June changes lost by last change.
17122
17123 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17124
17125 * systty.h: Remove code for Aix on 386, unsupported platform.
17126
17127 * s/ms-w32.h: Remove boilerplate comments.
17128 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17129
17130 * s/gnu-linux.h (TERM): Remove support.
17131 (HAVE_SYSVIPC): Remove, unused.
17132 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17133 for this system.
17134
17135 * process.c: Remove support for IRIS, unused.
17136 Remove support for TERM, not relevant anymore.
17137
17138 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17139 used with the definition.
17140
17141 * s/aix4-2.h (static): Do not undef.
17142
17143 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17144 only used on Aix.
17145 (HAVE_SYSVIPC): Remove, unused.
17146
17147 * m/hp800.h (CANNOT_DUMP): Do not undef.
17148
17149 * m/alpha.h: Fix comment.
17150
17151 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17152 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17153 used by this configuration.
17154 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17155 * unexec.c: Remove code depending on HPUX and
17156 USG_SHARED_LIBRARIES, not used with this file. Remove code
17157 depending on IRIS, unused. Remove if 0-ed code.
17158
17159 * s/template.h: Remove comments about static.
17160
17161 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17162 Remove if 0-ed code.
17163 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17164 were the same as the default.
17165 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17166 Remove boilerplate comments.
17167 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17168 (HAVE_SYSVIPC): Remove, unused.
17169 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17170
17171 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17172 Remove boilerplate comments.
17173 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17174 Remove boilerplate comments.
17175 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17176 Remove boilerplate comments.
17177 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17178
17179 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17180 USG systems which do not use DATA_SEG_BITS.
17181 Refactor code. Remove boilerplate comments.
17182
17183 * m/ibms390.h:
17184 * m/m68k.h:
17185 * s/bsd-common.h:
17186 * s/cygwin.h:
17187 * s/darwin.h:
17188 * s/freebsd.h:
17189 * s/gnu.h:
17190 * s/msdos.h: Remove boilerplate comments.
17191
17192 * m/iris4d.h: Remove boilerplate comments and code for systems that
17193 do not use this file.
17194 (IRIS_4D): Remove, unused.
17195
17196 * m/mips.h: Remove boilerplate comments and code for systems that
17197 do not use this file.
17198 (SIGN_EXTEND_CHAR):
17199 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17200 * unexmips.c: Remove file, unused.
17201
17202 * editfns.c (Fuser_full_name): Replace the only use of
17203 USER_FULL_NAME with its value.
17204 * config.in: Regenerate.
17205
17206 2008-07-16 David Reitter <david.reitter@gmail.com>
17207
17208 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17209 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17210
17211 2008-07-16 Glenn Morris <rgm@gnu.org>
17212
17213 * emacs.c (system-type): Doc fix.
17214
17215 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17216
17217 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17218 If the cache doesn't work, let's fix it, rather than work around it.
17219
17220 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17221
17222 * Makefile.in: Correct additions for nsfont.o in last commit.
17223 * nsfont.m: New file (forgot last commit).
17224
17225 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17226
17227 * callproc.c (set_initial_environment):
17228 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
17229 batch-compiling for bootstrap).
17230
17231 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17232 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17233
17234 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17235 CANNOT_DUMP case -- fix crash due to different init order.
17236
17237 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17238
17239 Changes and additions for NeXTstep windowing system (Cocoa and
17240 GNUstep) support.
17241
17242 * Makefile.in:
17243 * config.in: Support defines and build commands for NS port.
17244 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17245 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17246 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17247 windowing.
17248 (struct face): Add synth_ital field.
17249 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17250 (init_display): Initialize Vinitial_window_system to "ns" when so
17251 compiled.
17252 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17253 (display_arg): Use under NS.
17254 (main): Under NS, allocate autorelease pool and handle command line
17255 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17256 (standard_args): Add NS-specific args.
17257 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17258 * font.c (DEFAULT_ENCODING): New variable.
17259 (font_find_for_lface): Use it.
17260 (syms_of_font): Load syms_of_nsfont under NS.
17261 * font.h: Declare nsfont_driver when compiled under NS.
17262 * fontset.c: When compiling under NS, include nsterm.h.
17263 (fontset_from_font): Autoconstruct fontset under NS.
17264 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17265 symbol, document and use it.
17266 (do_switch_frame): When for_deletion under Cocoa, add
17267 Fraise_frame(Qnil).
17268 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17269 (x_get_arg): Allow "yes" and "no" as boolean values.
17270 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17271 Qright under Cocoa.
17272 (focus-follows-mouse): Default to 0 under NS.
17273 * frame.h (enum output_method): Add output_ns.
17274 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17275 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17276 (FRAME_WINDOW_P): NS-specific definition.
17277 * fringe.c (max_used_fringe_bitmap): Make public.
17278 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17279 (getloadavg): Use NeXT code under descendant OS's.
17280 * image.c (includes and header section, x_create_bitmap_from_data)
17281 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17282 (image_background_transparent, x_clear_image_1)
17283 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17284 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17285 (x_to_xcolors, x_from_xcolors, x_disable_image)
17286 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17287 other GUIs, including XPM support using code originally written for
17288 Carbon GUI.
17289 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17290 using NS API.
17291 (image_ascent): Use font metrics macros instead of direct struct field
17292 access.
17293 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17294 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17295 Also, handle NS as GTK for menu bar purposes.
17296 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17297 toolkit where they differ.
17298 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17299 use cachelist, still needed under NS.
17300 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17301 (struct widget_value): Define it here for menu.c.
17302 * keymap.c (includes): Include modifier internals.
17303 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17304 NS.
17305 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17306 support for preferring sequences using certain modifiers, specified by
17307 the FIRSTONLY argument.
17308 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17309 under NS GNUstep implementation.
17310 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17311 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17312 * menu.c: Include nsterm.h under NS.
17313 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17314 (free_menubar_widget_tree_value, update_submenu_strings)
17315 (find_and_call_menu_selection): Treat NS as X and NT.
17316 (find_and_return_menu_selection): New function, used for popup menus.
17317 * nsgui.h:
17318 * nsterm.h:
17319 * nsfns.m:
17320 * nsimage.m:
17321 * nsmenu.m:
17322 * nsselect.m:
17323 * nsterm.m: New files.
17324 * process.c (wait_reading_process_output): Under NS, call ns_select()
17325 instead of plain select().
17326 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17327 beginning of buffer.
17328 * sysselect.h (init_process): Rename when compiling under Cocoa to
17329 avoid name conflict.
17330 * termhooks.h (display_info): Add ns_display_info to union.
17331 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17332 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17333 COCOA environment.
17334 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17335 unexec() signature. (Note, this will dump, but the resulting file
17336 crashes; unexosx is used instead; keeping around for reference and
17337 possible aid in getting dump working under GNUstep.)
17338 * w32gui.h (button_type, widget_value): Remove definitions (now in
17339 keyboard.h).
17340 * window.c: Include nsterm.h when compiling under NS.
17341 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17342 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17343 other GUI windowing systems.
17344 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17345 GTK.
17346 (x_consider_frame_title): Under NS, set icon type and frame
17347 modified-state indicator; use ns_set_name_as_filename() when using
17348 formatted title.
17349 (update_window_cursor): Make public when compiling under NS.
17350 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17351 (hourglass_atimer, Vhourglass_delay
17352 * xfaces.c (header section, init_frame_faces, clear_font_table)
17353 (defined_color, unload_color, x_face_list_fonts)
17354 (prepare_face_for_display): Add NS support parallel to other GUIs.
17355 Emulate GCs like other non-X GUIs.
17356 (split_font_name): Don't lowercase font name under NS.
17357 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17358 under NS.
17359 * s/darwin.h: Add support for compilation under NS.
17360
17361 2008-07-15 Jason Rumney <jasonr@gnu.org>
17362
17363 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17364 (w32_show_hourglass): Rename from show_hourglass.
17365 (w32_hide_hourglass): Rename from hide_hourglass.
17366 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17367 (Vhourglass_delay): Declare extern.
17368 (hourglass_started): Remove.
17369
17370 * xdisp.c (Vhourglass_delay): Remove static.
17371 (hourglass_started, start_hourglass, cancel_hourglass):
17372 Don't include these versions on WINDOWSNT.
17373
17374 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17375
17376 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17377 variables (formerly in xfns.c).
17378 (show_hourglass, hide_hourglass): New prototypes (same).
17379 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17380 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17381 in xfns.c).
17382 (syms_of_xdisp): Declare/initialize display-hourglass,
17383 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17384 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17385 formerly in xfns.c.
17386 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17387 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17388 (start_hourglass, cancel_hourglass): Remove.
17389 (show_hourglass, hide_hourglass): Remove prototypes and static
17390 modifiers.
17391 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17392 hourglass_atimer, hourglass_shown_p declaration/initialization.
17393 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17394 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17395 (start_hourglass, cancel_hourglass): Remove.
17396 (show_hourglass, hide_hourglass): Remove prototypes and static
17397 modifiers.
17398 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17399 hourglass_atimer, hourglass_shown_p declaration/initialization.
17400 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17401 (DEFAULT_HOURGLASS_DELAY): Remove.
17402 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17403 hourglass_shown_p declaration/initialization.
17404
17405 2008-07-14 Jason Rumney <jasonr@gnu.org>
17406
17407 * w32fns.c (w32_get_arg): Remove wrapper function.
17408 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17409 directly.
17410 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17411
17412 2008-07-14 Kenichi Handa <handa@m17n.org>
17413
17414 * xfont.c (xfont_open): Add workaround for X's bug.
17415
17416 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17417
17418 * fontset.c: Include <stdio.h> unconditionally.
17419
17420 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
17421
17422 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17423 for filtering.
17424
17425 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17426
17427 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17428
17429 * m/macppc.h:
17430 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17431
17432 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
17433 (SPECIAL_EMACS_INT):
17434 * m/ia64.h (SPECIAL_EMACS_INT):
17435 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17436 * s/gnu.h (NLIST_STRUCT):
17437 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17438 * s/gnu-linux.h (LINUX):
17439 * s/msdos.h (HAVE_FACES):
17440 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17441
17442 * systty.h:
17443 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17444 anymore.
17445
17446 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17447
17448 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17449 always defined as int.
17450
17451 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17452 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17453 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17454 * s/freebsd.h (HAVE_WAIT_HEADER):
17455 * s/bsd-common.h (HAVE_UNION_WAIT):
17456 * s/aix4-2.h (HAVE_WAIT_HEADER):
17457 * m/mips.h (HAVE_UNION_WAIT):
17458 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17459 (COFF, static): Do not define, they are undefined later in the file.
17460
17461 * process.c (update_status): Don't use a union.
17462 (status_convert):
17463 (sigchld_handler): Use int instead of WAITTYPE.
17464
17465 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
17466
17467 * indent.c (Fvertical_motion): Restore hscroll before moving to
17468 goal column.
17469
17470 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17471
17472 * lisp.h: Remove left over code.
17473
17474 2008-07-11 Andreas Schwab <schwab@suse.de>
17475
17476 * lisp.h: Fix logic in last change.
17477
17478 * menu.h: New file.
17479 * menu.c: Include it.
17480 * xmenu.c: Likewise.
17481 * Makefile.in: Update dependencies.
17482
17483 2008-07-11 Kenichi Handa <handa@m17n.org>
17484
17485 * fontset.c (fontset_from_font): Cancel the previous change.
17486
17487 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17488
17489 * lisp.h:
17490 * w32heap.c:
17491 * emacs.c:
17492 * alloc.c: Replace all references of NO_UNION_TYPE with
17493 USE_LISP_UNION_TYPE.
17494
17495 * m/xtensa.h (NO_UNION_TYPE):
17496 * m/vax.h (NO_UNION_TYPE):
17497 * m/template.h (NO_UNION_TYPE):
17498 * m/sparc.h (NO_UNION_TYPE):
17499 * m/mips.h (NO_UNION_TYPE):
17500 * m/macppc.h (NO_UNION_TYPE):
17501 * m/m68k.h (NO_UNION_TYPE):
17502 * m/iris4d.h (NO_UNION_TYPE):
17503 * m/intel386.h (NO_UNION_TYPE):
17504 * m/ibms390x.h (NO_UNION_TYPE):
17505 * m/ibms390.h (NO_UNION_TYPE):
17506 * m/ibmrs6000.h (NO_UNION_TYPE):
17507 * m/ia64.h (NO_UNION_TYPE):
17508 * m/hp800.h (NO_UNION_TYPE):
17509 * m/arm.h (NO_UNION_TYPE):
17510 * m/amdx86-64.h (NO_UNION_TYPE):
17511 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17512 defining it the same.
17513
17514 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
17515
17516 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17517
17518 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17519
17520 * fileio.c:
17521 * sysdep.c:
17522 * systty.h:
17523 * m/ibmrs6000.h:
17524 * m/iris4d.h:
17525 * s/aix4-2.h:
17526 * s/freebsd.h:
17527 * s/gnu-linux.h:
17528 * s/hpux10-20.h:
17529 * s/hpux11.h:
17530 * s/netbsd.h:
17531 * s/sol2-3.h:
17532 * s/sol2-4.h:
17533 * s/sol2.h:
17534 * s/usg5-4.h:
17535 * s/vms.h: Remove references to unused variables.
17536
17537 2008-07-10 Andreas Schwab <schwab@suse.de>
17538
17539 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17540 pattern before matching the generic family.
17541
17542 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17543
17544 * unexec.c:
17545 * s/vms.h:
17546 * s/usg5-4-2.h:
17547 * s/sol2-5.h:
17548 * s/freebsd.h:
17549 * s/darwin.h: Remove dead code.
17550
17551 * m/template.h:
17552 * m/sparc.h:
17553 * m/mips.h:
17554 * m/m68k.h:
17555 * m/iris4d.h:
17556 * m/intel386.h:
17557 * m/ibms390x.h:
17558 * m/ibms390.h:
17559 * m/ia64.h:
17560 * m/hp800.h:
17561 * m/arm.h:
17562 * m/amdx86-64.h: Remove dead code and references to unused
17563 and compiler defined symbols.
17564
17565 * unexmips.c:
17566 * unexelf.c: Remove references to desupported systems.
17567
17568 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17569
17570 * m/powermac.h: Remove boilerplate comments.
17571 (NO_REMAP): Remove unused definition.
17572
17573 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17574 define them.
17575
17576 2008-07-10 Kenichi Handa <handa@m17n.org>
17577
17578 * xfont.c (xfont_open): Log the reason of failure.
17579
17580 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17581
17582 * fontset.c (fontset_get_font_group):
17583 * font.c (font_check_otf): Specify argument types.
17584
17585 2008-07-09 Kenichi Handa <handa@m17n.org>
17586
17587 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17588 non-ASCII char is found.
17589
17590 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17591 (reorder_font_vector): Change the arg preferred_family to font.
17592 Prefer the spec matching with font.
17593 (fontset_get_font_group): New function.
17594 (fontset_find_font): Change the format of an element of a realized
17595 fontset. Use fontset_get_font_group.
17596 (fontset_font): Try the current fontset, the default fontset, the
17597 fallbacks of the current fontset, and the fallbacks of the default
17598 fontset in this order.
17599 (face_for_char): Delete the shortcut to use the current font.
17600 (fontset_from_font): Don't set fonts for Latin in the fontset.
17601
17602 * font.h (font_make_object, font_match_p): Adjust prototypes.
17603
17604 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17605
17606 * font.c (font_make_object): New arg entity and pixelsize.
17607 (font_check_otf_features, font_check_otf): New functions.
17608 (font_match_p): Check :lang, :script, and :otf properties.
17609
17610 * xfont.c (xfont_open): Adjust it for the change of
17611 font_make_object.
17612 (xfont_text_extents): Fix initial setting of metrics.
17613
17614 * ftfont.c (struct ftfont_info): New member index, delete member
17615 fc_charset_idx. Make the member order compatible with struct
17616 xftfont_info.
17617 (fc_charset_table): Change charset names to registry names.
17618 (ftfont_pattern_entity): Delete the args registry and
17619 fc_charset_idx. Change the value of :font-entity property
17620 to (FONTNAME . INDEX). Always set :registry property to
17621 `iso10646-1'.
17622 (struct ftfont_cache_data): New struct.
17623 (ftfont_lookup_cache): New arg for_face.
17624 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17625 (ftfont_driver): Set the member otf_capability.
17626 (ftfont_get_charset): Adjust it for the change of
17627 fc_charset_table.
17628 (OTF_TAG_SYM): New macro.
17629 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17630 for the change of fc_charset_table.
17631 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17632 ftfont_pattern_entity. Add FC_INDEX to objset.
17633 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17634 and ftfont_pattern_entity.
17635 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17636 font_make_object, struct ftfont_info.
17637 (ftfont_has_char): Use ftfont_get_fc_charset.
17638 (ftfont_otf_features, ftfont_otf_capability): New functions.
17639 (ftfont_shape): Use ftfont_get_otf.
17640 (ftfont_text_extents): Fix initial setting of metrics.
17641
17642 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17643 member order compatible with struct ftfont_info.
17644 (xftfont_open): Add FC_CHARSET to the pattern.
17645 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
17646 properties if appropriate.
17647 (xftfont_close): Unlock the face.
17648 (xftfont_anchor_point, xftfont_shape): Deleted.
17649 (syms_of_xftfont): Don't set members anchor_point and shape of
17650 xftfont_driver.
17651
17652 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17653 font_make_object.
17654
17655 * w32font.c (w32font_open): Adjust it for the change of
17656 font_make_object.
17657 (w32font_open_internal): Don't set properties of font_object here.
17658
17659 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
17660
17661 * macfns.c (x_create_tip_frame):
17662 * w32fns.c (x_create_tip_frame):
17663 * xfns.c (x_create_tip_frame): Pass parameter argument to
17664 face-set-after-frame-default.
17665
17666 * xfaces.c (Finternal_merge_in_global_face): Save merged
17667 attributes for the default face back into the face vector.
17668
17669 2008-07-08 Andreas Schwab <schwab@suse.de>
17670
17671 * fontset.h: Declare fontset_from_font. Don't declare
17672 new_fontset_from_font and fontset_from_font_name.
17673 * xterm.c: Include "fontset.h".
17674 * Makefile.in (xterm.o): Update dependencies.
17675
17676 2008-07-08 Glenn Morris <rgm@gnu.org>
17677
17678 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17679 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17680
17681 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
17682
17683 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17684 (x_set_frame_parameters): Don't bind it.
17685
17686 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
17687
17688 * w32fns.c (map_w32_filename): Declare extern.
17689
17690 2008-07-07 Jason Rumney <jasonr@gnu.org>
17691
17692 * w32term.c (WS_EX_LAYERED): Define if not already.
17693
17694 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
17695
17696 * xfaces.c (set_font_frame_param): Don't try to set the font
17697 parameter if it is still unspecified in the lface.
17698
17699 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17700
17701 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17702 face if it didn't already exist.
17703
17704 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17705
17706 2008-07-05 Andreas Schwab <schwab@suse.de>
17707
17708 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17709
17710 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17711
17712 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17713 word-wrapping.
17714 (IT_DISPLAYING_WHITESPACE): New macro.
17715 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17716 when word-wrapping. Simplify word-wrapping logic. Use correct
17717 pixel positions when saving copies of the iterator.
17718 (display_line): Use proper wrap point if the last character on a
17719 line was preceded by whitespace.
17720
17721 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17722
17723 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17724
17725 2008-07-04 Kenichi Handa <handa@m17n.org>
17726
17727 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17728
17729 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17730
17731 2008-07-02 Jason Rumney <jasonr@gnu.org>
17732
17733 * xfns.c (syms_of_xfns): Only define x-select-font when both
17734 HAVE_FREETYPE and USE_GTK.
17735
17736 * xdisp.c (next_element_from_display_vector): Move assignment out
17737 of if statement.
17738
17739 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17740
17741 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17742
17743 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17744 (syms_of_fileio): Initialize and export them.
17745 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17746
17747 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17748 (Fsystem_move_file_to_trash): New function.
17749 (syms_of_w32fns): Export it to lisp.
17750
17751 2008-07-01 Jason Rumney <jasonr@gnu.org>
17752
17753 * w32font.c (w32font_text_extents): Don't count overhang as part
17754 of width.
17755
17756 2008-06-30 Miles Bader <miles@gnu.org>
17757
17758 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17759 Add `avoid_cursor_p' field.
17760
17761 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17762 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17763 (append_glyph, append_composite_glyph, produce_image_glyph)
17764 (append_stretch_glyph): Initialize avoid_cursor_p.
17765 (get_it_property): Rename from `get_line_height_property'.
17766 (x_produce_glyphs): Use get_it_property.
17767 (handle_line_prefix, push_display_prop): New functions.
17768 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17769 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17770 New variables.
17771 (syms_of_xdisp): Initialize them.
17772
17773 2008-06-30 Kenichi Handa <handa@m17n.org>
17774
17775 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17776 XftDefaultSubstitute (they are called in XftFontMatch).
17777 (xftfont_open): Fix args to ftfont_font_format.
17778
17779 * ftfont.c (fc_charset_table): New member lang.
17780 (ftfont_resolve_generic_family): New arg pattern.
17781 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
17782 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17783 (ftfont_open): Fix args to ftfont_font_format.
17784 (ftfont_font_format): New arg filename.
17785
17786 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
17787
17788 * xfaces.c (Finternal_merge_in_global_face): If default face was
17789 modified, realize it again. Update the font face attribute.
17790
17791 2008-06-29 Jason Rumney <jasonr@gnu.org>
17792
17793 * w32term.c (x_set_frame_alpha): Fix logic.
17794
17795 2008-06-29 Kenichi Handa <handa@m17n.org>
17796
17797 * fontset.c (Finternal_char_font): Return font-object instead of
17798 font-name.
17799
17800 * composite.c (get_composition_id): Fix the width calculation for TAB.
17801
17802 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17803
17804 * indent.c (Fvertical_motion): Properly handle float column arg.
17805
17806 2008-06-28 Jason Rumney <jasonr@gnu.org>
17807
17808 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17809 (pfnSetLayeredWindowAttributes): New function pointer.
17810 (w32_initialize): Initialize it when supported.
17811 (x_set_frame_alpha): New function.
17812
17813 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17814 (w32_frame_parm_handlers): Set alpha handler.
17815
17816 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17817
17818 2008-06-27 Jason Rumney <jasonr@gnu.org>
17819
17820 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17821 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17822 (w32_to_x_charset, x_to_w32_charset)
17823 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17824 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17825 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17826 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17827 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17828 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17829 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17830 (Qw32_charset_unicode): Remove.
17831 (syms_of_w32fns): Update for above changes.
17832
17833 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17834 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17835 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17836 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17837 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17838 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17839 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17840 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17841 (syms_of_w32font): Update for above changes.
17842
17843 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17844
17845 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17846 removed #if.
17847 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17848
17849 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17850 Eli Zaretskii <eliz@gnu.org>
17851
17852 * makefile.w32-in (LOCAL_FLAGS):
17853 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17854
17855 * sysdep.c (_spawnlp, _getpid):
17856 Declare with explicit _cdecl instead of _CRTAPI1.
17857
17858 * editfns.c (Fget_internal_run_time):
17859 Check for WINDOWSNT with #ifdef, not #if.
17860
17861 2008-06-26 Jason Rumney <jasonr@gnu.org>
17862
17863 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17864
17865 * w32term.c (x_draw_glyph_string_foreground)
17866 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17867 Use FONT_HANDLE macro.
17868 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17869
17870 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17871 (uniscribe_encode_char): Use FONT_HANDLE macro.
17872
17873 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17874 (w32font_text_extents): Use precast w32_font.
17875 (w32font_close): Free cached metrics.
17876 (w32font_open_internal): Allocate space for name on stack.
17877
17878 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
17879
17880 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17881
17882 2008-06-26 Jason Rumney <jasonr@gnu.org>
17883
17884 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17885 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17886
17887 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17888
17889 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17890
17891 2008-06-26 Jason Rumney <jasonr@gnu.org>
17892
17893 * w32bdf.c, w32bdf.h: Remove obsolete files.
17894
17895 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17896
17897 * w32gui.h: Don't include w32bdf.h.
17898 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17899 Remove obsolete font support.
17900
17901 * w32font.h (struct w32font_info): Remove compat_w32_font.
17902 Add hfont member.
17903 (FONT_COMPAT): Remove obsolete macro.
17904
17905 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17906 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17907 (w32font_open_internal): Remove compat code. Set new hfont member.
17908 (Fx_select_font): Use new hfont member.
17909
17910 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17911 (uniscribe_encode_char): Use new hfont member.
17912
17913 * w32term.c (x_draw_glyph_string_foreground)
17914 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17915 (x_draw_glyph_string): Use metrics in w32font_info.
17916
17917 2008-06-26 Kenichi Handa <handa@m17n.org>
17918
17919 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17920
17921 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17922
17923 * unexnext.c:
17924 * m/ews4800.h:
17925 * m/hp9000s300.h:
17926 * m/ibm370aix.h:
17927 * m/mips-siemens.h:
17928 * m/ncr386.h:
17929 * m/next.h:
17930 * m/pmax.h:
17931 * m/powerpcle.h:
17932 * m/tandem-s2.h:
17933 * s/386bsd.h:
17934 * s/bsd386.h:
17935 * s/bsd4-1.h:
17936 * s/bsd4-2.h:
17937 * s/bsdos2-1.h:
17938 * s/bsdos2.h:
17939 * s/bsdos3.h:
17940 * s/bsdos4.h:
17941 * s/nextstep.h:
17942 * s/ultrix4-3.h:
17943 * s/usg5-0.h:
17944 * s/usg5-2-2.h:
17945 * s/usg5-2.h:
17946 * s/usg5-4-3.h:
17947 * s/ux4800.h:
17948 * s/uxpds.h:
17949 * s/uxpv.h: Remove support for obsolete systems.
17950 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
17951 Remove, insert contents in s/hpux10-20.h.
17952 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17953 Remove, insert contents in s/aix4-2.h.
17954 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17955 * s/bsd4-3.h: Rename to ...
17956 * s/bsd-common.h: ... this.
17957 * data.c:
17958 * doc.c:
17959 * ecrt0.c:
17960 * emacs.c:
17961 * fileio.c:
17962 * floatfns.c:
17963 * keyboard.c:
17964 * mem-limits.h:
17965 * print.c:
17966 * process.c:
17967 * sysdep.c:
17968 * syssignal.h:
17969 * systty.h:
17970 * syswait.h:
17971 * term.c:
17972 * unexec.c:
17973 * unexelf.c:
17974 * unexhp9k800.c:
17975 * m/hp800.h:
17976 * m/ibmrs6000.h:
17977 * m/mips.h:
17978 * m/vax.h:
17979 * s/darwin.h:
17980 * s/freebsd.h:
17981 * s/gnu.h:
17982 * s/ms-w32.h:
17983 * s/msdos.h:
17984 * s/netbsd.h:
17985 * s/template.h: Remove references to obsolete variables.
17986
17987 * Makefile.in: Add dependencies for all unexec files.
17988 (admindir): Remove unused variable.
17989 (UNEXEC_SRC): Remove references.
17990
17991 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
17992
17993 * xfns.c (x_default_font_parameter): If Xft is available, first
17994 try Monospace-12 for the default font.
17995
17996 2008-06-25 Jason Rumney <jasonr@gnu.org>
17997
17998 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17999
18000 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
18001
18002 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
18003
18004 * buffer.c (syms_of_buffer): Remove default-word-wrap.
18005
18006 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
18007
18008 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
18009 <scroll-conservatively>: Fix typo in docstring.
18010
18011 * xselect.c (Fx_send_client_event): Doc fix.
18012
18013 2008-06-25 Kenichi Handa <handa@m17n.org>
18014
18015 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
18016
18017 * font.c (font_parse_fcname): Remove unused variables.
18018 (font_sort_entites): Delete the arg SPEC. Caller changed.
18019 Fix for the case of ! best_only.
18020 (font_delete_unmatched): Check DPI and AVGWIDTH too.
18021
18022 * lisp.h (Fstring_to_unibyte): EXFUN it.
18023
18024 * character.h (str_to_unibyte): Extern it.
18025
18026 * character.c (str_to_unibyte): New function.
18027
18028 * fns.c (Fstring_to_unibyte): New function.
18029 (syms_of_fns): Defsubr it.
18030
18031 2008-06-24 Kenichi Handa <handa@m17n.org>
18032
18033 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
18034 DPI too.
18035 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
18036
18037 2008-06-24 Andreas Schwab <schwab@suse.de>
18038
18039 * Makefile.in (${lispsource}loaddefs.el): Rename from
18040 ../lisp/loaddefs.el.
18041 (bootstrap-clean): Do what distclean does but don't remove
18042 Makefile.
18043 (distclean): Depend on bootstrap-clean and remove Makefile.
18044
18045 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
18046
18047 * buffer.h (struct buffer): New member word_wrap.
18048
18049 * buffer.c (syms_of_buffer): New variables default-word-wrap and
18050 word-wrap.
18051 (init_buffer_once): Initialize them.
18052
18053 * dispextern.h (struct it): Replace bool truncate_lines_p with a
18054 line_wrap enum possessing three possible values.
18055
18056 * termopts.h: Replace truncate_partial_width_windows with
18057 Vtruncate_partial_width_windows.
18058
18059 * dispnew.c (direct_output_for_insert): Avoid direct output when
18060 inserting a space with word wrap on.
18061
18062 * indent.c (compute_motion): Obey integer values of
18063 truncate-partial-width-windows.
18064
18065 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
18066 replacing truncate_partial_width_windows.
18067 (init_iterator): If Vtruncate_partial_width_windows is an integer,
18068 truncate only if the window width is below that integer.
18069 (start_display, resize_mini_window, produce_stretch_glyph)
18070 (display_string, move_it_in_display_line_to): Use line_wrap.
18071 (back_to_previous_visible_line_start, reseat_1):
18072 Reset string_from_display_prop_p.
18073 (display_line): Extend default face to end of line when wrapping.
18074
18075 2008-06-24 Kim F. Storm <storm@cua.dk>
18076
18077 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
18078 to wrap continued lines at word boundaries.
18079
18080 2008-06-24 Jason Rumney <jasonr@gnu.org>
18081
18082 * font.c (Ffont_face_attributes): Multiply pixel size before point
18083 conversion to avoid multiplying rounding error.
18084
18085 2008-06-23 Jason Rumney <jasonr@gnu.org>
18086
18087 * w32term.c (x_draw_glyph_string_background)
18088 (x_draw_glyph_string): Remove old bdf font code.
18089
18090 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18091
18092 2008-06-22 Kenichi Handa <handa@m17n.org>
18093
18094 * font.c (font_find_for_lface): Try the adstyle specified in
18095 the property of LFACE_FONT of LFACE (if any).
18096
18097 2008-06-21 Seiji Zenitani <zenitani@mac.com>
18098 Ryo Yoshitake <ryo@shiftmode.net>
18099
18100 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18101
18102 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18103
18104 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18105 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18106 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18107 (witness-emacs): Remove.
18108 (lisp, shortlisp): Move loaddefs.el earlier.
18109 (mostlyclean): Forget about witness-emacs.
18110
18111 2008-06-22 Glenn Morris <rgm@gnu.org>
18112
18113 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18114 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18115
18116 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18117
18118 * Makefile.in (PRECOMP): Remove.
18119 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18120 (witness-emacs): Run `compile-first'.
18121 (.el.elc): Use the new compile-onefile target.
18122
18123 2008-06-21 Kenichi Handa <handa@m17n.org>
18124
18125 * xftfont.c (xftfont_open): Handle QCembolden only when
18126 FC_EMBOLDEN is defined.
18127
18128 2008-06-21 Andreas Schwab <schwab@suse.de>
18129
18130 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18131 (.el.elc): Likewise.
18132
18133 2008-06-21 Miles Bader <miles@gnu.org>
18134
18135 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18136 build dir, not the lisp source dir.
18137
18138 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18139
18140 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18141 (bootstrapclean): Remove.
18142 (.el.elc): New rule.
18143 (PRECOMP): New var.
18144 (../lisp/subdirs.el): Remove.
18145 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18146 (witness-emacs): New target.
18147 (mostlyclean): Remove witness-emacs as well.
18148 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18149 Add witness-emacs dependency.
18150
18151 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
18152
18153 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18154 defined by the font.
18155
18156 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18157
18158 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18159 (bootstrap-clean): New target that keeps TAGS around.
18160 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18161 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18162
18163 2008-06-20 Jason Rumney <jasonr@gnu.org>
18164
18165 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18166 Remove obsolete font code.
18167
18168 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18169 to determine language support.
18170
18171 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18172
18173 * sysdep.c (cfsetspeed): New fun extracted from the code.
18174 (cfmakeraw): Move before first use.
18175
18176 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18177
18178 * sysdep.c (cfmakeraw): Provide fallback implementation.
18179 (serial_configure): Provide fallback implementation of cfsetspeed.
18180
18181 2008-06-20 Kenichi Handa <handa@m17n.org>
18182
18183 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18184 the pattern.
18185
18186 * fontset.c (fontset_from_font): Copy font_spec before changing
18187 the elements.
18188
18189 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18190
18191 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18192
18193 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18194 for explicit `font' parameters.
18195
18196 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18197
18198 2008-06-19 Kenichi Handa <handa@m17n.org>
18199
18200 * frame.c: Include <ctype.h>.
18201 (x_set_font_backend): Allow spacing characters in the X resource
18202 for FontBackend.
18203
18204 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18205
18206 * w32fns.c, xfns.c (Qfont_param): New var.
18207 (syms_of_w32fns): Initialize it.
18208 (x_default_font_parameter): Record explicit `font' into
18209 `font-parameter'.
18210
18211 2008-06-18 Kenichi Handa <handa@m17n.org>
18212
18213 * font.c (font_parse_xlfd): Fix previous change.
18214 (font_parse_fcname): Don't use :fc-unknown-spec.
18215 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18216 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18217 (font_add_log): Prepend the driver name to the resulting fonts.
18218
18219 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18220 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18221 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18222
18223 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18224 (QCembolden): New variables.
18225 (syms_of_xftfont): DEFSYM them.
18226 (xftfont_open): Call XftFontMatch. Don't trust the result of
18227 XftTextExtents8 if the pixel_size is less than 5.
18228
18229 2008-06-18 Andreas Schwab <schwab@suse.de>
18230
18231 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18232 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18233
18234 2008-06-18 Jason Rumney <jasonr@gnu.org>
18235
18236 * w32font.c (w32font_list, w32font_match): Add logging.
18237
18238 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18239
18240 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
18241
18242 * font.c (font_parse_fcname): Store divider characters for
18243 unknown-spec list. For known key symbols, intern using correct
18244 symbol name.
18245
18246 2008-06-17 Kenichi Handa <handa@m17n.org>
18247
18248 * xfaces.c (realize_default_face): If the frame is not on window
18249 system, set the fontset of face to nil.
18250
18251 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18252
18253 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18254
18255 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18256
18257 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18258 (build_font_name_from_vector): Delete externs.
18259
18260 * xfaces.c (struct font_name): Don't declare.
18261
18262 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18263
18264 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18265
18266 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18267
18268 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18269
18270 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18271
18272 * font.c (Ffont_spec): Fix usage in docstring.
18273 (Ffont_face_attributes): Doc fix.
18274
18275 2008-06-16 Andreas Schwab <schwab@suse.de>
18276
18277 * font.c (Ffont_face_attributes): Fix definition.
18278
18279 2008-06-16 Jason Rumney <jasonr@gnu.org>
18280
18281 * font.h (font_style_symbolic_from_value): Remove.
18282
18283 * font.c (font_style_symbolic_from_value): Remove.
18284 (font_style_symbolic): Revert to pre 2008-06-13 version.
18285
18286 * w32font.c (w32_to_fc_weight): New function.
18287 (w32font_full_name, logfont_to_fcname): Use it.
18288
18289 2008-06-16 Kenichi Handa <handa@m17n.org>
18290
18291 * font.c (font_check_object): Delete it.
18292 (font_clear_cache): Check if a font-object is alive.
18293 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18294 font-object to nil.
18295 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18296 (font_at): Don't call font_check_object.
18297 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18298
18299 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18300
18301 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18302
18303 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18304
18305 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18306
18307 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
18308
18309 * font.c (font_parse_fcname): Only one decimal point.
18310 (font_unparse_fcname): Handle data in family and foundry indices
18311 as symbols, not strings.
18312 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18313
18314 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18315
18316 * font.h (font_unparse_gtkname): Add prototype.
18317
18318 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18319
18320 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18321
18322 2008-06-15 Andreas Schwab <schwab@suse.de>
18323
18324 * font.c (font_update_drivers): Fix crash when no drivers match.
18325
18326 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18327
18328 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18329 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18330
18331 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18332
18333 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18334
18335 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18336
18337 * process.c (Fserial_process_configure, Fprocess_send_eof):
18338 Use EQ to compare Lisp_Objects.
18339
18340 2008-06-13 Jason Rumney <jasonr@gnu.org>
18341
18342 * w32fns.c (Fw32_select_font): Remove old font API function.
18343
18344 * w32font.c (logfont_to_fcname): New function.
18345 (Fx_select_font): New font dialog function compatible with
18346 GTK/fontconfig version.
18347
18348 * font.c (font_style_symbolic_from_value): New function.
18349 (font_style_symbolic): Use it.
18350
18351 * font.h (font_style_symbolic_from_value): Declare new function.
18352
18353 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
18354
18355 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18356 <font-width-table>: Fix typos in docstrings.
18357
18358 2008-06-13 Daniel Engeler <engeler@gmail.com>
18359
18360 These changes add serial port access.
18361 * process.c: Add HAVE_SERIAL.
18362 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18363 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18364 (list_processes_1, select_wrapper, Fstop_process)
18365 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18366 (status_notify): Modify to handle serial processes.
18367 [HAVE_SERIAL] (Fserial_process_configure)
18368 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18369 New functions.
18370 * process.h (struct Lisp_Process): Add `type'.
18371 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18372 New functions.
18373 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18374 serial ports.
18375 (serial_open, serial_configure): New functions.
18376 * w32.h: Add FILE_SERIAL.
18377 (struct _child_process): Add ovl_read, ovl_write.
18378
18379 2008-06-13 Kenichi Handa <handa@m17n.org>
18380
18381 * dispextern.h (enum lface_attribute_index): New member
18382 LFACE_FOUNDRY_INDEX.
18383
18384 * font.c (font_score): Delete arg alternate_families. Check only
18385 weight, slant, width, and size. Ignore the difference of alias
18386 style symbols.
18387 (font_sort_entites): Adjust for the above change. Reflect the
18388 order of font-driver to scores.
18389 (font_list_entities): Don't check alternate_familes here.
18390 (font_clear_prop): Handle foundry.
18391 (font_update_lface): Don't parse "foundry-family" form here.
18392 Handle FONT_FOUNDRY_INDEX.
18393 (font_find_for_lface): Likewise. Handle alternate families here.
18394 If registry is nil, try iso8859-1 and ascii-0.
18395 (font_open_for_lface): Pay attention to size in ENTITY.
18396 (font_open_by_name): Simplify by calling font_load_for_lface.
18397 (free_font_driver_list): Delete it.
18398 (font_update_drivers): Preserve the order of backends.
18399 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18400 of font_score and font_sort_entites.
18401 (font_update_sort_order): Likewise.
18402
18403 * xfaces.c (LFACE_FOUNDRY): New macro.
18404 (check_lface_attrs): Check foundry.
18405 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18406 (merge_face_vectors): Check foundry.
18407 (merge_face_ref): Likewise.
18408 (Finternal_set_lisp_face_attribute): Likewise.
18409 (x_update_menu_appearance): Likewise.
18410 (Finternal_get_lisp_face_attribute): Likewise.
18411 (lface_hash): Likewise.
18412 (lface_same_font_attributes_p): Likewise.
18413 (x_supports_face_attributes_p): Likewise.
18414 (tty_supports_face_attributes_p): Likewise.
18415 (Finternal_set_alternative_font_family_alist): Intern strings.
18416 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18417 (realize_default_face): Set LFACE_FOUNDRY (lface).
18418
18419 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18420 font-driver at first.
18421
18422 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18423
18424 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18425
18426 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18427
18428 2008-06-12 Jim Meyering <meyering@redhat.com>
18429
18430 Make unexec_free handle NULL the same way free does.
18431 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18432
18433 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18434
18435 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18436 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18437 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18438 (WEAK_ALIAS): Simplify.
18439 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18440 when searching a unibyte buffer.
18441
18442 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
18443
18444 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18445
18446 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
18447
18448 * w32font.c: Include ctype.h.
18449
18450 2008-06-11 Jason Rumney <jasonr@gnu.org>
18451
18452 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18453 misreported as space.
18454 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18455 as aliases for registry iso10646-1.
18456
18457 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18458
18459 * buffer.c (clone_per_buffer_values): Skip `name'.
18460
18461 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
18462
18463 * font.c (font_parse_fcname): Fix last change; accept decimal
18464 points in font size.
18465
18466 2008-06-10 Jason Rumney <jasonr@gnu.org>
18467
18468 * w32uniscribe.c (add_opentype_font_name_to_list):
18469 Skip non unicode fonts.
18470
18471 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18472
18473 * xfns.c (Fx_font_dialog): New function.
18474
18475 * gtkutil.c (xg_dialog_response_cb): Rename from
18476 xg_file_response_callback.
18477 (pop_down_dialog): Rename from pop_down_file_dialog.
18478 (xg_get_file_name): Callers changed.
18479 (xg_get_font_name): New function.
18480
18481 * gtkutil.h (xg_get_font_name): Insert prototype.
18482
18483 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18484
18485 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18486 x_underline_minimum_display_offset.
18487 (syms_of_xdisp): Declare it here rather than in xterm.c.
18488 * dispextern.h (underline_minimum_offset): Declare it.
18489 * w32term.c (x_draw_glyph_string): Use it.
18490 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18491 (syms_of_xterm): Don't declare it any more.
18492 (x_draw_glyph_string): Adjust to the new name.
18493
18494 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
18495
18496 * xterm.c (x_underline_minimum_display_offset): New var.
18497 (x_draw_glyph_string): Use it.
18498 (syms_of_xterm): Declare it.
18499
18500 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18501
18502 * font.c (font_parse_fcname): Accept GTK-style font names too.
18503
18504 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18505
18506 * dired.c (file_name_completion): Don't return t if the match is exact
18507 but with different capitalization.
18508 * minibuf.c (Ftry_completion): Simplify.
18509
18510 * window.c (Vwindow_point_insertion_type): New var.
18511 (set_window_buffer): Use it.
18512 (syms_of_window): Init and export it to Lisp.
18513
18514 2008-06-10 Kenichi Handa <handa@m17n.org>
18515
18516 * font.h (font_intern_prop): Prototype adjusted.
18517
18518 * font.c (font_intern_prop): New arg force_symbol.
18519 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18520 Adjust for the change of font_intern_prop.
18521
18522 * ftfont.c (ftfont_pattern_entity):
18523 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18524 (w32_registry):
18525 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18526 the change of font_intern_prop.
18527
18528 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
18529
18530 * w32menu.c (digest_single_submenu): Declare extern.
18531
18532 2008-06-09 Jason Rumney <jasonr@gnu.org>
18533
18534 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18535
18536 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18537 (parse_single_submenu): Remove.
18538 (digest_single_submenu): Remove.
18539 (syms_of_w32menu): Don't initialise variables that have moved
18540 to menu.c.
18541 (set_frame_menubar): Sync with version in xmenu.c.
18542 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18543
18544 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18545 Make static again.
18546
18547 2008-06-09 Jason Rumney <jasonr@gnu.org>
18548
18549 Changes to w32 files related to the move of common menu code
18550 to menu.c on 2008-06-08 by Chong Yidong.
18551
18552 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18553 defs to w32gui.h.
18554 (single_keymap_panes, push_menu_item, push_menu_pane):
18555 Make globally visible.
18556
18557 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18558 (local_free, malloc_widget_value, free_widget_value)
18559 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18560 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18561 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18562 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18563 (menu_items, menu_items_allocated, menu_items_used)
18564 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18565 (init_menu_items, finish_menu_items, discard_menu_items)
18566 (grow_menu_items, push_submenu_start, push_submenu_end)
18567 (push_left_right_boundary, push_menu_pane, push_menu_item)
18568 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18569 (free_menubar_widget_tree_value, parse_single_submenu)
18570 (update_submenu_strings): Remove functions.
18571 (xmalloc_widget_value): Remove and declare extern.
18572
18573 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18574 (OBJ1): Build it.
18575
18576 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18577 (local_heap, local_alloc, local_free, malloc_widget_value)
18578 (free_widget_value): Define here.
18579
18580 2008-06-09 Kenichi Handa <handa@m17n.org>
18581
18582 * font.h (Qascii_0): Extern it.
18583
18584 * font.c (Qascii_0): New variable.
18585 (syms_of_font): DEFSYM it.
18586 (font_open_by_name): If the registry "iso8859-1" fails, try also
18587 "ascii-0".
18588
18589 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18590
18591 2008-06-08 Kenichi Handa <handa@m17n.org>
18592
18593 * .gdbinit (xfont): New command.
18594
18595 2008-06-08 Andreas Schwab <schwab@suse.de>
18596
18597 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18598 * Makefile.in (menu.o): Update dependencies.
18599
18600 * Makefile.in (obj): Always add menu.o.
18601 * emacs.c (main): Always call syms_of_menu.
18602 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18603
18604 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
18605
18606 * Makefile.in: Compile menu.c.
18607
18608 * lisp.h: Declare syms_of_menu.
18609
18610 * emacs.c (main): Call syms_of_menu.
18611
18612 * keyboard.h: Relocate platform-independent menu definitions from
18613 xmenu.c.
18614
18615 * menu.c: New file. Relocate platform-independent menu
18616 definitions from xmenu.c. Suggested by Adrian Robert.
18617
18618 * xmenu.c: Remove platform-independent menu definitions.
18619 (menu_items, menu_items_inuse, menu_items_allocated)
18620 (menu_items_used, menu_items_n_panes)
18621 (menu_items_submenu_depth): Move to keyboard.h.
18622 (init_menu_items, finish_menu_items, unuse_menu_items)
18623 (discard_menu_items, restore_menu_items, save_menu_items)
18624 (grow_menu_items, push_submenu_start, push_submenu_end)
18625 (push_left_right_boundary, push_menu_pane, push_menu_item)
18626 (keymap_panes, single_keymap_panes, single_menu_item)
18627 (list_of_panes, list_of_items, find_and_call_menu_selection)
18628 (xmalloc_widget_value, free_menubar_widget_value_tree)
18629 (parse_single_submenu, digest_single_submenu)
18630 (update_submenu_strings): Move to menu.c.
18631
18632 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18633
18634 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18635
18636 2008-06-06 Miles Bader <miles@gnu.org>
18637
18638 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18639 face, not frame default.
18640
18641 2008-06-05 Martin Rudalics <rudalics@gmx.at>
18642
18643 * window.c (pop_up_windows, pop_up_frames)
18644 (display_buffer_reuse_frames, Vpop_up_frame_function)
18645 (Vdisplay_buffer_function, Veven_window_heights)
18646 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18647 (Vspecial_display_function, Vsame_window_buffer_names)
18648 (Vsame_window_regexps, split_height_threshold)
18649 (Vsplit_window_preferred_function): Move those vars to window.el.
18650 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18651 (Fdisplay_buffer): Move those functions to window.el.
18652 (syms_of_window): Remove corresponding declarations.
18653 (display_buffer): New function.
18654 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18655 * dispnew.c (Flast_nonminibuf_frame): New function.
18656 * buffer.c (Fpop_to_buffer): Move to window.el.
18657
18658 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18659
18660 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18661
18662 2008-06-05 Kenichi Handa <handa@m17n.org>
18663
18664 * coding.c (detect_coding): Fix previous change.
18665 (detect_coding_system): Likewise.
18666
18667 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18668
18669 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18670
18671 * keymap.c (Vminibuffer_local_filename_must_match_map):
18672 Rename from Vminibuffer_local_must_match_filename_map.
18673 (syms_of_keymap):
18674 * minibuf.c (Fcompleting_read): Adjust accordingly.
18675 * commands.h: Rename declaration as well.
18676
18677 2008-06-05 Kenichi Handa <handa@m17n.org>
18678
18679 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18680 family name.
18681 (Ffont_put): Likewise.
18682
18683 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18684 current font-spec.
18685
18686 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18687 is unspecified.
18688
18689 * xfaces.c (realize_x_face): If the font-related face attributes
18690 are the same as those of default face, realize a new fontset from
18691 default->fontset.
18692 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18693
18694 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18695
18696 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18697 (move_it_in_display_line): New wrapper.
18698
18699 * window.c (window_scroll_pixel_based_preserve_x)
18700 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18701 (window_scroll_pixel_based, window_scroll_line_based):
18702 Use them to preserve column positions.
18703 (syms_of_window): Initialize them.
18704
18705 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18706 (HPOS . VPOS) pair.
18707
18708 * dispextern.h (move_it_in_display_line): Declare.
18709
18710 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
18711
18712 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18713 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18714 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18715
18716 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
18717
18718 * window.c (Fset_window_parameter): Doc fix.
18719 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18720
18721 2008-06-04 Joakim Verona <joakim@verona.se>
18722
18723 * window.h (struct window): Add new member window_parameters.
18724
18725 * window.c (Fwindow_parameters, Fwindow_parameter)
18726 (Fset_window_parameter): New defuns.
18727 (syms_of_window): Defsubr the new defuns.
18728 (make_window): Initialize window_parameters to nil.
18729
18730 2008-06-04 John Paul Wallington <jpw@pobox.com>
18731
18732 * eval.c (Fdefmacro): Doc fix.
18733
18734 2008-06-04 Kenichi Handa <handa@m17n.org>
18735
18736 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18737 Be sure to call setup_coding_system when we find a proper coding system.
18738 (detect_coding_system): Fix handling of coding->head_ascii.
18739
18740 2008-06-03 Andreas Schwab <schwab@suse.de>
18741
18742 * font.c (font_prop_validate_spacing): Fix last change.
18743
18744 2008-06-03 Kenichi Handa <handa@m17n.org>
18745
18746 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18747 (font_parse_fcname): Fix handling of unknown key.
18748
18749 * xfont.c (xfont_list): Try an alias.
18750
18751 * charset.c (char_charset): Return NULL if the arg charset_list is
18752 specified and C doesn't belong to any of them.
18753
18754 2008-06-02 Chip Coldwell <coldwell@redhat.com>
18755
18756 * font.c (font_pixel_size): Don't take cdr of an integer.
18757
18758 2008-06-02 Jim Meyering <meyering@redhat.com>
18759
18760 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18761 * alloc.c (xfree): Return right away for a NULL arg.
18762 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18763 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18764 * mac.c (create_apple_event_from_event_ref): Likewise.
18765 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18766 Likewise.
18767 * doprnt.c (doprnt1): Likewise.
18768 * frame.c (frame): Likewise.
18769 * keyboard.c (wipe_kboard): Likewise.
18770 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18771 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18772 * term.c (tty_default_color_capabilities, maybe_fatal)
18773 (delete_tty): Likewise.
18774 * w16select.c (string): Likewise.
18775 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18776 * w32bdf.c (w32_free_bdf_font): Likewise.
18777 * w32fns.c (w32_unload_font): Likewise.
18778 * w32font.c (w32font_close): Likewise.
18779 * window.c (size_window): Likewise.
18780 * xselect.c (receive_incremental_selection): Likewise.
18781 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18782 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18783 * w32.c (stat): Likewise.
18784
18785 Remove useless if-before-free tests.
18786 * editfns.c (Fset_time_zone_rule): Likewise.
18787 * lread.c (nosuffix): Likewise.
18788 * ralloc.c (get_bloc): Likewise.
18789 * regex.c (reg_free): Likewise.
18790 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18791 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18792 * xsmfns.c (smc_save_yourself_CB): Likewise.
18793
18794 2008-06-02 Kenichi Handa <handa@m17n.org>
18795
18796 * font.c (font_find_for_lface): Handle float font size.
18797 (font_open_for_lface): Likewise.
18798
18799 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18800 comparing the properties.
18801
18802 2008-06-01 Jason Rumney <jasonr@gnu.org>
18803
18804 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18805 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18806 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18807 Don't add empty script list.
18808 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18809
18810 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18811
18812 * Makefile.in (dot, dotdot): Remove, update users.
18813 ".." has been used elsewhere in the file for a long time.
18814 (LIBXT_STATIC): Remove conditional based on unused variable.
18815
18816 2008-06-01 Miles Bader <miles@gnu.org>
18817
18818 * xfaces.c (Vface_remapping_alist): New variable.
18819 (syms_of_xfaces): Initialize it.
18820 (enum named_merge_point_kind): New type.
18821 (struct named_merge_point): Add `named_merge_point_kind' field.
18822 (push_named_merge_point): Make cycle detection respect different
18823 named-merge-point kinds.
18824 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18825 Remove face-name alias resolution.
18826 (lface_from_face_name): New definition using
18827 `lface_from_face_name_no_resolve'.
18828 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18829 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18830 (get_lface_attributes): New definition that layers face-remapping on
18831 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18832 (lookup_basic_face): New function.
18833 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18834 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18835 `get_lface_attributes'.
18836 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18837 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18838 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18839
18840 * xdisp.c (init_iterator): Pass base_face_id through
18841 `lookup_basic_face' when we actually use it as a face-id.
18842 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18843 DEFAULT_FACE_ID.
18844
18845 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18846 lookup the initial face-id.
18847
18848 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18849
18850 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
18851
18852 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18853 (Fremove_text_properties): Fix typos in docstrings.
18854
18855 2008-05-31 Kenichi Handa <handa@m17n.org>
18856
18857 * font.c (font_list_entities): Fix the car part of data to be
18858 stored in the cache.
18859
18860 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18861
18862 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18863
18864 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18865 Add a `test' argument so another predicate than `equal' can be used.
18866 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18867 (map_char_table): Remove unused vars `c' and `i'.
18868 * lisp.h (Foptimize_char_table): Adjust declaration.
18869 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18870
18871 2008-05-30 Kenichi Handa <handa@m17n.org>
18872
18873 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18874 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18875 defined.
18876
18877 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18878
18879 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18880 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18881 frame-local settings for the same variable.
18882
18883 2008-05-30 Kenichi Handa <handa@m17n.org>
18884
18885 * fontset.c (Ffont_info): Move to font.c.
18886 (syms_of_fontset): Delete defsubr of Sfont_info.
18887
18888 * font.c (font_style_to_value, font_score): Delete casting of the
18889 args to xstcasecmp.
18890 (register_font_driver): Increment num_font_drivers only when
18891 registering the driver globally.
18892 (Ffont_info): Move from fontset.c. Handle a font object too.
18893 (syms_of_font): Defsubr Sfont_info.
18894
18895 2008-05-29 Kenichi Handa <handa@m17n.org>
18896
18897 * coding.h (enum define_coding_utf8_arg_index): New enum.
18898 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18899 coding_attr_utf_bom.
18900 (enum utf_bom_type): Rename from utf_16_bom_type.
18901 (struct utf_16_spec): Adjust for the above change.
18902 (struct coding_system): Add utf_8_bom in `spec' union.
18903
18904 * coding.c (CODING_UTF_8_BOM): New macro.
18905 (enum coding_category): Delete coding_category_utf_8, add
18906 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18907 coding_category_utf_8_sig.
18908 (CATEGORY_MASK_UTF_8): Delete it.
18909 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18910 (CATEGORY_MASK_UTF_8_SIG): New macros.
18911 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18912 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18913 CATEGORY_MASK_UTF_8_SIG.
18914 (CATEGORY_MASK_UTF_8): New macro.
18915 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18916 (detect_coding_utf_8): Check BOM.
18917 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18918 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18919 (encode_coding_utf_16): Likewise.
18920 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18921 (detect_coding, detect_coding_system): Handle utf-8-auto.
18922 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18923 (syms_of_coding): Fix setting up of Vcoding_category_table.
18924
18925 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18926
18927 * process.c (Faccept_process_output): If `millisec' is non-nil,
18928 `seconds' default to 0.
18929 (wait_reading_process_output): Also return non-nil if we read output
18930 from a non-running process.
18931
18932 2008-05-29 Jason Rumney <jasonr@gnu.org>
18933
18934 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18935 `raster' specified.
18936 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18937 in the uniscribe backend, but disallow any font that has no
18938 unicode subrange support.
18939
18940 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
18941
18942 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18943 Fix typos in docstrings.
18944
18945 2008-05-29 Kenichi Handa <handa@m17n.org>
18946
18947 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18948 (Fx_family_fonts): Set frame correctly.
18949
18950 2008-05-28 Jason Rumney <jasonr@gnu.org>
18951
18952 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18953
18954 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18955
18956 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18957 calling build_annotations.
18958
18959 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
18960
18961 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18962 (Fencode_coding_string):
18963 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18964 <latin-extra-code-table>: Fix typos in docstrings.
18965 (syms_of_coding) <coding-system-alist>: Doc fix.
18966 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18967
18968 2008-05-28 Kenichi Handa <handa@m17n.org>
18969
18970 * fontset.c (Ffont_info): Don't call font_close_object.
18971
18972 * font.c (font_parse_family_registry): Use Ffont_put to validate
18973 foundry and family.
18974 (font_delete_unmatched): Don't check spacing.
18975 (font_list_entities): Add spacing to the spec to list fonts.
18976
18977 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18978 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18979
18980 * coding.c (encode_coding_raw_text): Fix previous change.
18981 (encode_coding_object): When the dst_object is a buffer and is
18982 different from src_object, move gap to PT.
18983
18984 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18985
18986 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18987
18988 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18989
18990 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18991 all branches. Compute it differently.
18992
18993 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18994
18995 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
18996
18997 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18998 into "else if () ... else ...".
18999
19000 2008-05-27 Jason Rumney <jasonr@gnu.org>
19001
19002 * w32font.c (w32font_open_internal): Determine if glyph indices
19003 are likely to work here.
19004
19005 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
19006
19007 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
19008 draw overlap glyphs with appropriate highlighting.
19009
19010 2008-05-27 Kenichi Handa <handa@m17n.org>
19011
19012 * xfont.c (xfont_open): Fix calculation of font->average_width.
19013
19014 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19015
19016 * casefiddle.c (casify_object): Try to guess better whether the
19017 argument is a byte or a char.
19018
19019 2008-05-26 Andreas Schwab <schwab@suse.de>
19020
19021 * xselect.c (x_reply_selection_request): Properly handle format == 32.
19022 Always send multiples of format size.
19023
19024 * xterm.c (x_set_frame_alpha): Fix type mismatch.
19025
19026 2008-05-26 Jason Rumney <jasonr@gnu.org>
19027
19028 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
19029 (compute_metrics): Don't set failure if we just cleared the cache.
19030 (w32_weight_table): Remove unused variable.
19031 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
19032 backwards compatibility.
19033
19034 2008-05-25 Kenichi Handa <handa@m17n.org>
19035
19036 * w32term.c (x_draw_glyph_string):
19037 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
19038
19039 * xfaces.c: Delete unused function prototypes.
19040 (xstrlwr, font_frame): Delete them.
19041 (clear_face_cache): Delete unused variable.
19042
19043 * xftfont.c (xftfont_open): Delete unused variable.
19044 If underline_thickness is not 1, adjust underline_position.
19045
19046 * ftxfont.c (ftxfont_open): Delete unused variable.
19047
19048 * fontset.c (face_for_char): Optimize for the case of no charset
19049 property.
19050
19051 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
19052 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
19053 (otf_open, font_otf_capability, generate_otf_features)
19054 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19055 Comment out by surrounding "#if 0" and "#endif" for the moment.
19056 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
19057 (syms_of_font): Codes for accessing above commented out.
19058
19059 2008-05-24 Eli Zaretskii <eliz@gnu.org>
19060
19061 * w32proc.c: Include dispextern.h.
19062
19063 * w32.c: Include dispextern.h.
19064
19065 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
19066
19067 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
19068 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
19069 Fix typos in docstrings.
19070
19071 2008-05-23 Jason Rumney <jasonr@gnu.org>
19072
19073 * xsmfns.c: Remove includes that are already included by config.h.
19074
19075 2008-05-23 Kenichi Handa <handa@m17n.org>
19076
19077 * charset.c (Qemacs, charset_emacs): New variables.
19078 (char_charset): Fix for non-Unicode characters.
19079 (syms_of_charset): Define charset_emacs.
19080
19081 * w32term.c (x_draw_glyph_string): Be sure to update
19082 s->underline_thickness and s->underline_position. Be sure to draw
19083 underline within the current line area.
19084
19085 * xterm.c (x_draw_glyph_string): Be sure to update
19086 s->underline_thickness and s->underline_position. Be sure to draw
19087 underline within the current line area.
19088
19089 * fontset.c: Delete unused variables and add casting for char *
19090 throughout the file.
19091 (fontset_font): Try the fallback fonts of the current fontset
19092 before consulting the default fontset.
19093
19094 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19095
19096 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19097
19098 2008-05-22 Jason Rumney <jasonr@gnu.org>
19099
19100 * font.c: Don't include strings.h.
19101
19102 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19103
19104 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19105 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19106 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19107 to call xstrcasecmp.
19108
19109 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19110
19111 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19112
19113 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19114
19115 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19116
19117 2008-05-22 Kenichi Handa <handa@m17n.org>
19118
19119 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19120
19121 * font.c (font_prop_validate_style): Adjust for the format
19122 change of font_style_table.
19123
19124 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19125 two args.
19126
19127 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19128 two args.
19129
19130 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19131
19132 * minibuf.c (keys_of_minibuf): Delete.
19133 * lisp.h (keys_of_minibuf): Delete.
19134 * emacs.c (main): Don't call keys_of_minibuf.
19135
19136 2008-05-22 Kenichi Handa <handa@m17n.org>
19137
19138 * ftfont.c (ftfont_resolve_generic_family): Rename from
19139 ftfont_list_generic_family. Return a single family for each
19140 generic family.
19141 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19142 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19143 Call font_add_log.
19144 (ftfont_match): Call font_add_log.
19145
19146 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19147 (FONT_DEBUG): Define it.
19148 (font_add_log): Extern it.
19149 (font_assert): Rename from xassert.
19150
19151 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19152 (xfont_list_family): Call font_add_log.
19153 (xfont_match): Likewise.
19154 (memq_no_quit): Delete.
19155
19156 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19157 call of Ffont_xlfd_name.
19158
19159 * xfaces.c (struct table_entry, slant_table, weight_table)
19160 (swidth_table): Move to font.c.
19161
19162 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19163 xassert are changed to font_assert. Delete many unused variables.
19164 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19165 New variables.
19166 (struct table_entry): Move from xfaces.c and modified.
19167 (weight_table, slant_table, width_table): Move from xfaces.c and
19168 contents adjusted for the change of struct table_entry.
19169 (font_style_to_value, font_style_symbolic): Adjust for the
19170 format change of font_style_table.
19171 (font_parse_family_registry): Don't overwrite existing foundry and
19172 family of font_spec.
19173 (font_score): Fix calculation of diff for sizes.
19174 (font_sort_entites): Call font_add_log.
19175 (font_delete_unmatched): Return a newly created list.
19176 (font_list_entities): Fix previous change. Call font_add_log.
19177 (font_matching_entity, font_open_entity, font_close_entity):
19178 Call font_add_log.
19179 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19180 (Finternal_set_font_style_table): Delete.
19181 (BUILD_STYLE_TABLE): New macro.
19182 (build_style_table): New function.
19183 (Vfont_log, font_log_env_checked): New variables.
19184 (font_add_log): New function.
19185 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19186 Declare Lisp variables "font-weight-table", "font-slant-table",
19187 "font-width-table", and "font-log". Initialize font_style_table.
19188
19189 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19190
19191 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19192
19193 2008-05-21 Seiji Zenitani <zenitani@mac.com>
19194 Ryo Yoshitake <ryo@shiftmode.net>
19195
19196 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19197 (Vframe_alpha_lower_limit): New variable.
19198 (x_set_alpha): New function.
19199
19200 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19201
19202 * xfns.c (x-create-frame, Qalpha):
19203 Initialize the frame parameter `alpha'.
19204 * xterm.c (OPAQUE, OPACITY): New.
19205 (x_set_frame_alpha): New function.
19206 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19207
19208 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19209 * w32fns.c (w32_frame_parm_handlers): Likewise.
19210
19211 2008-05-20 Jason Rumney <jasonr@gnu.org>
19212
19213 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19214 truetype fonts to opentype list.
19215
19216 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
19217
19218 * fontset.c (Ffontset_info): Doc fix.
19219 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19220 <ignore-relative-composition>: Fix typos in docstrings.
19221
19222 * font.c (syms-of-font) <font-encoding-alist>:
19223 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19224 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19225 (Ffont_otf_alternates): Doc fixes.
19226
19227 2008-05-20 Kenichi Handa <handa@m17n.org>
19228
19229 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19230 font.h through out the file.
19231 (FONT_DRIVERS): Rename from FONTOBJ.
19232 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19233 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19234
19235 * emacs.c (main): Call syms_of_font unconditionally.
19236
19237 * font.h (find_font_encoding): Extern it.
19238
19239 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19240 fontset.c.
19241 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
19242 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19243 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19244 only when HAVE_WINDOW_SYSTEM is defined.
19245 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19246 when HAVE_WINDOW_SYSTEM is defined.
19247
19248 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19249 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19250
19251 * xfaces.c: Include font.h unconditionally.
19252 (merge_face_ref, merge_face_vectors)
19253 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19254
19255 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19256
19257 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19258 indirect_variable.
19259 * eval.c (lisp_indirect_variable): New fun.
19260 (Fuser_variable_p): Use it.
19261
19262 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19263
19264 * lisp.h (indirect_variable):
19265 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19266 Use Lisp_Symbol pointers rather than Lisp_Object.
19267 Adjust callers.
19268 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19269 To this end, change calling-convention.
19270
19271 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19272 if some non-hidden buffers are selected by string&pred.
19273
19274 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
19275
19276 * process.c (wait_reading_process_output): Always check status
19277 when in batch mode.
19278
19279 2008-05-19 Kenichi Handa <handa@m17n.org>
19280
19281 * font.c (font_list_entities): Fix handling of cache.
19282 (font_matching_entity): Likewise.
19283
19284 * ftfont.c (cs_iso8859_1): Delete.
19285 (ft_face_cache): New variable.
19286 (struct ftfont_info): New member fc_charset_idx.
19287 (ftfont_build_basic_charsets): Delete.
19288 (fc_charset_table): New variable.
19289 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19290 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19291 Callers changed.
19292 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19293 (ftfont_spec_pattern): New argument fc_charset_idx.
19294 Check registry more rigidly. Change callers.
19295 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19296 change of :font-entity property of the font.
19297
19298 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19299 property of the font.
19300
19301 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
19302
19303 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19304 (Funencodable_char_position, Fcheck_coding_systems_region)
19305 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19306 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19307 (Ffind_operation_coding_system, Fset_coding_system_priority)
19308 (Fcoding_system_eol_type): Doc fixes.
19309
19310 2008-05-17 Glenn Morris <rgm@gnu.org>
19311
19312 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19313
19314 2008-05-16 Eli Zaretskii <eliz@gnu.org>
19315
19316 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19317 and st_gid.
19318
19319 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19320 HAVE_WINDOW_SYSTEM is not defined.
19321
19322 * xfaces.c (merge_face_ref, merge_face_vectors)
19323 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19324 HAVE_WINDOW_SYSTEM is defined.
19325 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19326
19327 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19328
19329 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19330
19331 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19332
19333 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19334
19335 2008-05-15 Kenichi Handa <handa@m17n.org>
19336
19337 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19338 preference.
19339
19340 2008-05-15 Glenn Morris <rgm@gnu.org>
19341
19342 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19343
19344 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
19345
19346 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19347 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19348
19349 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19350
19351 2008-05-15 Kenichi Handa <handa@m17n.org>
19352
19353 * ftfont.c (ftfont_list): Downcase family name to check generic
19354 families.
19355
19356 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19357 font-spec for QCfont value.
19358
19359 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19360 buffer. Check the return value of it.
19361
19362 2008-05-14 Jason Rumney <jasonr@gnu.org>
19363
19364 * w32term.c (w32_get_glyph_overhangs): Remove.
19365 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19366
19367 2008-05-14 Kenichi Handa <handa@m17n.org>
19368
19369 * font.c (font_prop_validate): Make nil a valid value.
19370 (font_clear_cache): Check if the cached vector of entities is nil
19371 or not.
19372
19373 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19374
19375 * emacs.c (main_thread): Conditionalize on
19376 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19377 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19378
19379 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19380 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19381 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19382
19383 2008-05-14 Kenichi Handa <handa@m17n.org>
19384
19385 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19386 has no corresponding coding system.
19387
19388 2008-05-14 Jason Rumney <jasonr@gnu.org>
19389
19390 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19391
19392 * w32font.h (w32font_open_internal): Update declaration.
19393
19394 * w32font.c (w32font_open_internal): Change last argument from
19395 w32font_info struct to font object. Fill in font object from
19396 font_entity. Get Outline metrics if possible. Use them to
19397 calculate underline position and thickness. Use xlfd name as name
19398 property. Don't set codepage.
19399 (w32font_open): Pass font_object to w32font_open_internal. Don't
19400 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19401 (w32font_draw): Use s->font.
19402 (clear_cached_metrics): Don't clear non-existent blocks.
19403
19404 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19405 font was not found.
19406 (x_draw_glyph_string): Use underline position and thickness from font.
19407
19408 * w32uniscribe.c (uniscribe_open): Pass font_object to
19409 w32font_open_internal.
19410
19411 2008-05-14 Kenichi Handa <handa@m17n.org>
19412
19413 These changes are to delete all legacy font-handling codes, and
19414 make Emacs use only font-backends.
19415
19416 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19417 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19418
19419 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19420
19421 * charset.h (Vcharset_non_preferred_head)
19422 (Vcurrent_iso639_language): Extern them.
19423
19424 * charset.c (Vcharset_non_preferred_head): New variable.
19425 (Vcurrent_iso639_language): New variable.
19426 (syms_of_charset): Declare it as a Lisp variable.
19427 (char_charset): Don't check non preferred charsets. As a last
19428 resort, return charset_unicode.
19429 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19430
19431 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19432 conditionals. Don't check enable_font_backend. Delete all codes
19433 used only when USE_FONT_BACKEND is not defined.
19434
19435 * dispextern.h (struct glyph_string): Change type of `font' to
19436 `struct font *'.
19437 (struct glyph_string): New member underline_position and
19438 underline_thickness.
19439 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
19440 (struct face): Change type of `font' to `struct font *'.
19441 Remove members `font_name', `font_info_id'.
19442 (per_char_metric, encode_char): Delete externs.
19443 (calc_pixel_width_or_height): Adjust the prototype.
19444
19445 * emacs.c (enable_font_backend): Delete extern.
19446 (main): Don't set enable_font_backend. Don't check the command
19447 line argument "-disable-font-backend".
19448
19449 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19450 (enum font_property_index): New members FONT_DPI_INDEX,
19451 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19452 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19453 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19454 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19455 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19456 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19457 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19458 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19459 (struct font_spec, struct font_entity): New structs.
19460 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
19461 (struct font): Many members from old "struct font_info" moved to
19462 here. Members font and entity deleted.
19463 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19464 the new font-related objects.
19465 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19466 (CHECK_FONT_GET_OBJECT): Likewise.
19467 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
19468 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
19469 (struct font_driver): New members case_sensitive anc check.
19470 Type of the member list and open changed.
19471 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19472 (font_symbolic_width, font_find_object, font_get_spec)
19473 (font_set_lface_from_name): Delete extern.
19474 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19475
19476 * font.c: Include <strings.h>.
19477 (enable_font_backend): Delete it.
19478 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19479 (CHECK_VALIDATE_FONT_SPEC): Delete it.
19480 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
19481 (null_string): Delete it.
19482 (null_vector): Make it static.
19483 (font_family_alist): Delete it.
19484 (Qnormal): Extern it.
19485 (QCextra, QClanguage): Delete it.
19486 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19487 (font_make_spec, font_make_entity, font_make_object)
19488 (font_intern_prop): Rename from intern_downcase. Don't downcase
19489 the string. Callers changed.
19490 (font_pixel_size): Adjust for the format change of font-related
19491 objects.
19492 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19493 (font_style_to_value, font_style_symbolic): New function.
19494 (build_font_family_alist): Delete it.
19495 (font_registry_charsets): Use Fassoc_string instead of
19496 assq_no_quit.
19497 (font_prop_validate_symbol): Don't return null_string.
19498 (font_prop_validate_style): Adjust for the change of
19499 style-related values in a font vector.
19500 (font_property_table): Delete entries for QClanguage and
19501 QCantialias, add entries for QCavgwidth.
19502 (get_font_prop_index): Delete the 2nd argument FROM.
19503 (font_prop_validate): Arguments changed.
19504 (font_put_extra): Adjust for the change of font-related objects.
19505 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19506 (font_parse_fcname, font_unparse_fcname)
19507 (font_prepare_composition): Likewise.
19508 (font_parse_family_registry): Rename from font_merge_old_spec.
19509 (otf_open): Delete the 1st arg entity.
19510 (font_otf_capability): Adjust for the above change.
19511 (font_score): New arg alternate_families. Adjusted for the change
19512 of font-related objects.
19513 (font_sort_entites): New arg best_only.
19514 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19515 Delete them.
19516 (font_match_p): Check alternate families.
19517 (font_find_object): Delete it.
19518 (font_check_object): New function.
19519 (font_clear_cache): Adjust for the change of font-related objects.
19520 (font_delete_unmatched): New arg.
19521 (font_list_entities): Call font_driver->list with a spec that
19522 doesn't specify style-related properties.
19523 (font_matching_entity): Arguments changed. Caller changed.
19524 (font_open_entity): Adjust for the change of font-related objects.
19525 (font_close_object, font_has_char, font_encode_char)
19526 (font_get_name, font_get_spec): Likewise.
19527 (font_spec_from_name, font_clear_prop, font_update_lface):
19528 New functions.
19529 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19530 (font_prepare_for_face, font_done_for_face, font_open_by_name)
19531 (font_at): Adjust for the change of font-related objects.
19532 (font_range): New function.
19533 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
19534 (Ffont_xlfd_name): Adjust for the change of font-related objects.
19535 (Fcopy_font_spec, Fmerge_font_spec): New function.
19536 (Ffont_family_list): Rename from list-families.
19537 (Finternal_set_font_style_table): Arguments changed.
19538 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
19539 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
19540 change of font-related objects.
19541 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19542
19543 * fontset.h (struct font_info): Delete it. Most members go to
19544 struct font.
19545 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
19546 (enum FONT_SPEC_INDEX): Delete it.
19547 (font_info, list_fonts_func, load_font_func, query_font_func)
19548 (set_frame_fontset_func, find_ccl_program_func)
19549 (get_font_repertory_func, new_fontset_from_font_name):
19550 Delete externs.
19551 (fontset_from_font_name): Extern it.
19552 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19553 (FONT_INFO_FROM_FACE): Deleted.
19554 (face_for_font): Adjust prototype.
19555
19556 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19557 conditionals. Don't check enable_font_backend. Delete all codes
19558 used only when USE_FONT_BACKEND is not defined.
19559 (get_font_info_func, list_font_func, load_font_func)
19560 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19561 (get_font_repertory_func): Delete them.
19562 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19563 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19564 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19565 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19566 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19567 (fontset_compare_rfontdef): New function.
19568 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19569 rfont-defs by qsort. Adjusted for the change of font-group vector.
19570 (load_font_get_repertory): Deleted.
19571 (fontset_find_font): Use new macros to ref/set elements of
19572 font-def and rfont-def.
19573 (fontset_font): Fix the timing of remembering that no font for C.
19574 (free_face_fontset): Do nothing if the face has no fontset.
19575 (face_suitable_for_char_p): Use new macros to ref/set elements of
19576 rfont-def.
19577 (face_for_char): Likewise. Call face_for_char with font_object.
19578 (fs_load_font): Delete. Delete #pragma surrounding it.
19579 (fs_query_fontset): Use strcasecmp instead of strcmp.
19580 (generate_ascii_font_name): Adjust for the format change of
19581 font-spec.
19582 (Fset_fontset_font): Likewise. Use new macros to set elements of
19583 font-def.
19584 (Fnew_fontset): Use font_unparse_xlfd to generate
19585 FONTSET_ASCII (fontset).
19586 (new_fontset_from_font_name): Deleted.
19587 (fontset_from_font): Rename from new_fontset_from_font. Check if
19588 a fontset is already created for the font. FIx updating of
19589 Vfontset_alias_alist.
19590 (fontset_ascii_font): Deleted.
19591 (Ffont_info): Adjust for the format change of font-spec.
19592 (Finternal_char_font): Likewise.
19593 (Ffontset_info): Likewise.
19594 (syms_of_fontset): Don't check load_font_func.
19595
19596 * fns.c (internal_equal): Handle PREV_FONT.
19597
19598 * frame.h: Delete USE_FONT_BACKEND conditional.
19599
19600 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19601 conditionals. Don't check enable_font_backend. Delete all codes
19602 used only when USE_FONT_BACKEND is not defined.
19603 (x_set_font): Call x_new_font, not x_new_fontset2.
19604 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19605 already set for the frame.
19606
19607 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19608 Make a font-entity by font_make_entity. Use font_intern_prop instead
19609 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19610 font property. If a font is scalable, set avgwidth property to 0.
19611 Set font-entity property by font_put_extra.
19612 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
19613 (ffont_driver): Adjust for the change of struct font_driver.
19614 (ftfont_spec_pattern): New function.
19615 (ftfont_list): Return a list, not vector.
19616 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19617 (ftfont_list_family): Don't downcase names.
19618 (ftfont_free_entity): Deleted.
19619 (ftfont_open): Return a font-object. Adjusted for the change of
19620 struct font. Get underline_thickness and underline_position from
19621 font property. Don't update dpyinfo->smallest_font_height and
19622 dpyinfo->smallest_char_width.
19623 (ftfont_close): Don't free `struct font'.
19624 (ftfont_has_char): Adjust for the format change of font-entity.
19625 (ftfont_encode_char, ftfont_text_extents): Likewise.
19626
19627 * ftxfont.c (ftxfont_list): Return a list, not vector.
19628 (ftxfont_open): Return a font-object. Adjusted for the change of
19629 struct font. Get underline_thickness and underline_position from
19630 font property. Don't update dpyinfo->smallest_font_height and
19631 dpyinfo->smallest_char_width.
19632 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
19633 (ftxfont_draw): Adjust for the change of struct font.
19634
19635 * image.c (image_ascent): Don't include "charset.h".
19636 Include "character.h" and "font.h".
19637
19638 * lisp.h (enum pvec_type): New member PREV_FONT.
19639 (Fassoc_string): EXFUN it.
19640
19641 * print.c: Include font.h.
19642 (print_object): Handle font-related objects.
19643
19644 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19645 conditionals. Don't check enable_font_backend. Delete all codes
19646 used only when USE_FONT_BACKEND is not defined.
19647 (handle_auto_composed_prop): Do nothing if it->f is not on a
19648 window system. Check how many following characters can be
19649 displayed by the same font.
19650 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19651 'struct font *'.
19652 (get_char_face_and_encoding): Assign the whole encoding task to
19653 the `encode-char' method of a font driver.
19654 (fill_composite_glyph_string): Adjust for the change of `struct
19655 face' and `struct glyph_string'.
19656 (fill_glyph_string): Likewise.
19657 (get_per_char_metric): Arguments changed.
19658 (x_get_glyph_overhangs): Adjust for the change of `struct face'
19659 and `struct glyph_string'.
19660 (produce_stretch_glyph, calc_line_height_property)
19661 (x_produce_glyphs): Likewise.
19662
19663 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19664 conditionals. Don't check enable_font_backend. Delete all codes
19665 used only when USE_FONT_BACKEND is not defined.
19666 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
19667 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19668 (Qp): Extern them.
19669 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19670 Deleted.
19671 (struct font_name): Deleted.
19672 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19673 (compare_fonts_by_sort_order): New function.
19674 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19675 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19676 Deleted.
19677 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19678 compare_fonts_by_sort_order.
19679 (Fx_font_family_list): Call Ffont_family_list.
19680 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19681 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19682 (face_symbolic_slant, face_symbolic_swidth)
19683 (split_font_name_into_vector, build_font_name_from_vector)
19684 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19685 (font_rescale_ratio, split_font_name, build_font_name)
19686 (free_font_names, sort_fonts, x_face_list_fonts)
19687 (face_font_available_p, sorted_font_list, cmp_font_names)
19688 (font_list_1, concat_font_list, font_list, remove_duplicates):
19689 Deleted.
19690 (Fx_list_fonts): Use Ffont_list.
19691 (LFACE_AVGWIDTH): Deleted.
19692 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19693 by FONTP.
19694 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19695 (set_lface_from_font_name): Delete it.
19696 (set_lface_from_font): Rename from
19697 set_lface_from_font_and_fontset. Caller changed. Don't set
19698 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19699 for face.
19700 (merge_face_vectors): Copy font-spec if necessary.
19701 Clear properties of the font-spec if necessary.
19702 (merge_face_ref): Clear properties of the font-spec if necessary.
19703 (Finternal_set_lisp_face_attribute): Likewise.
19704 (set_font_frame_param): Use font_load_for_lface to load a
19705 font-object, and call Fmodify_frame_parameters with it.
19706 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19707 font name by Ffont_xlfd_name.
19708 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19709 QCslant, and QCwidth.
19710 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19711 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19712 Compare fonts by EQ.
19713 (lookup_non_ascii_face): Deleted.
19714 (face_for_font): The 2nd argument changed.
19715 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19716 Check atomic font properties by case insensitive.
19717 (realize_non_ascii_face): Set face->overstrike correctly.
19718 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19719 (dump_realized_face): Get font name from
19720 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19721
19722 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19723 conditionals. Don't check enable_font_backend. Delete all codes
19724 used only when USE_FONT_BACKEND is not defined.
19725 (xic_create_xfontset): Original code deleted and renamed from
19726 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19727 (x_make_gc): Don't set GCFont in GCs.
19728 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19729 opened by "fixed".
19730 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19731 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19732 get_font_repertory_func.
19733
19734 * xfont.c: Include <stdlib.h> and "ccl.h".
19735 (struct xfont_info): New structure.
19736 (xfont_query_font): Deleted.
19737 (xfont_find_ccl_program): Rename from x_find_ccl_program and
19738 moved from xterm.c.
19739 (xfont_driver): Adjust for the change of struct font_driver.
19740 (compare_font_names): New function.
19741 (xfont_list_pattern): Sort font names case insensitively.
19742 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
19743 (xfont_list): Return a list, not vector.
19744 (xfont_match): If the font doesn't have QCname property, generate
19745 a name from the other font properties.
19746 (xfont_open): Return a font-object. Adjusted for the change of
19747 struct font. Get underline_thickness and underline_position from
19748 font property. Don't update dpyinfo->smallest_font_height and
19749 dpyinfo->smallest_char_width.
19750 (xfont_close): Don't free struct font.
19751 (xfont_prepare_face): Adjust for the change of struct font.
19752 (xfont_done_face): Deleted.
19753 (xfont_has_char): Adjust for the change of struct font.
19754 (xfont_encode_char, xfont_draw): Likewise.
19755 (xfont_check): New function.
19756
19757 * xftfont.c (xftfont_list): Adjust for the change of `list'
19758 callback function.
19759 (xftfont_match): Adjust for the format change of font-entity.
19760 (xftfont_open): Adjust for the format change of font-entity and
19761 font-object. Adjusted for the change of struct font. Return a
19762 font-object. Don't update dpyinfo->smallest_font_height and
19763 dpyinfo->smallest_char_width.
19764 (xftfont_close): Block input while calling XftFontClose.
19765 (xftfont_prepare_face): Don't block input while calling
19766 xftfont_get_colors. Adjusted for the change of struct font.
19767 (xftfont_shape): Return value of error case fixed.
19768
19769 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19770
19771 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19772 conditionals.
19773 (FONT_WIDTH): Return (f)->max_width.
19774 (struct x_display_info): Delete member `font'.
19775 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19776 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19777 (struct x_output): Change type of `font' to `struct font *'.
19778
19779 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19780 conditionals. Don't check enable_font_backend. Delete all codes
19781 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19782 (x_per_char_metric, x_encode_char): Deleted.
19783 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
19784 (x_compute_glyph_string_overhangs): Adjust for the change of
19785 `struct face'.
19786 (x_draw_glyph_string_foreground)
19787 (x_draw_composite_glyph_string_foreground): Likewise.
19788 (x_draw_glyph_string): Likewise. Use font->underline_position and
19789 font->underline_thickness.
19790 (x_new_font): Rename from x_new_fontset2.
19791 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19792 (x_check_font): Call `check' method of a font driver.
19793 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19794 (x_query_font, x_get_font_repertory): Deleted.
19795 (x_find_ccl_program): Rename and moved to xfont.c.
19796 (x_redisplay_interface): Adjust for the change of `struct
19797 redisplay_interface'.
19798
19799 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19800 conditionals. Don't check enable_font_backend. Delete all codes
19801 used only when USE_FONT_BACKEND is not defined. Surround non-used
19802 code by "#ifdef OLD_FONT" and "endif".
19803 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19804
19805 * w32font.h (struct w32font_info): New member.
19806 (FONT_COMPAT): New macro.
19807 (w32font_open_internal): Prototype adjusted.
19808
19809 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19810 OLD_FONT" and "endif".
19811
19812 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19813 conditionals. Don't check enable_font_backend. Delete all codes
19814 used only when USE_FONT_BACKEND is not defined.
19815 (w32font_open): Return a font-object. Make a font-object by
19816 font_make_object. Adjusted for the change of struct w32font_info.
19817 (w32font_close): Don't free struct font. Adjusted for the change
19818 of struct w32font_info.
19819 (w32font_encode_char, w32font_text_extents, w32font_draw):
19820 Adjust for the change of struct w32font_info.
19821 (w32font_draw): Likewise.
19822 (w32font_list_internal): Return a list, not vector.
19823 (w32font_open_internal): Change the 4th arg to font-object.
19824 Adjusted for the change of struct w32font_info and font-object format.
19825 (add_font_name_to_list): Don't downcase names.
19826 (w32_enumfont_pattern_entity): Make a font-entity by
19827 font_make_entity. Adjusted for the format change of font-entity.
19828 Use FONT_SET_STYLE to set a style-related font property. If a
19829 font is scalable, set avgwidth property to 0. Set font-entity
19830 property by font_put_extra.
19831 (font_matches_spec): Adjust for the format change of font-entity.
19832 (w32_weight_table, w32_decode_weight): New variables.
19833 (w32_encode_weight): New function.
19834 (fill_in_logfont): Adjust for the format change of font-spec.
19835 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19836 weight value.
19837 (w32font_driver): Adjust for the change of struct font_driver.
19838
19839 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19840 conditionals. Don't check enable_font_backend. Surround non-used
19841 code by "#ifdef OLD_FONT" and "endif".
19842 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
19843 (FONT_AVG_WIDTH): Adjust for the change of struct font.
19844
19845 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19846 conditionals. Don't check enable_font_backend. Delete all codes
19847 used only when USE_FONT_BACKEND is not defined. Surround non-used
19848 code by "#ifdef OLD_FONT" and "endif".
19849
19850 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19851 (uniscribe_open): Return value changed to font-object.
19852 Adjusted for the format change of font-object.
19853 (uniscribe_otf_capability): Adjust for the change of struct font.
19854 (add_opentype_font_name_to_list): Don't downcase names.
19855 (uniscribe_font_driver): Adjust for the change of struct
19856 font_driver.
19857
19858 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
19859
19860 * dispnew.c (update_frame_1): Check if tty output is still valid
19861 before flushing it.
19862
19863 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19864
19865 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19866 to Gtk+ menus.
19867
19868 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19869
19870 * dired.c (file_name_completion): Tweak the code so as to always do it
19871 in a single pass. Tighten the scope of some variables.
19872
19873 * dired.c (Qdefault_directory): New var.
19874 (file_name_completion): Use it instead of Fexpand_file_name.
19875 (syms_of_dired): Initialize it.
19876
19877 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19878
19879 * fileio.c (double_dollars): Remove dead code.
19880
19881 2008-05-10 Eli Zaretskii <eliz@gnu.org>
19882
19883 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19884 Mention w32-get-true-file-attributes in doc string.
19885
19886 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19887
19888 2008-05-09 Glenn Morris <rgm@gnu.org>
19889
19890 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19891 2008-04-23.
19892
19893 2008-05-09 Eli Zaretskii <eliz@gnu.org>
19894
19895 Support for reporting owner and group of each file on MS-Windows:
19896 * dired.c (stat_uname, stat_gname): New functions, with special
19897 implementation for w32.
19898 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19899
19900 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19901 (dflt_group_name): New static variable.
19902 (dflt_group): Rename from the_group.
19903 (init_user_info): Init dflt_group fields. Get user's group name
19904 from LookupAccountSid.
19905 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19906 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19907 New initialization states.
19908 (globals_of_w32): Initialize them to zero. Initialize the default
19909 group name to "None".
19910 (GetFileSecurity_Name): New global var, the name of the function
19911 to call for GetFileSecurity.
19912 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19913 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19914 (get_file_security, get_security_descriptor_owner)
19915 (get_security_descriptor_group, is_valid_sid)
19916 (get_file_security_desc, get_rid, get_name_and_id)
19917 (get_file_owner_and_group): New functions.
19918 (stat): Use get_file_security_desc and get_file_owner_and_group to
19919 report the owner and primary group of each file. Don't ignore the
19920 high 32 bits of file's size, now that st_size is 64-bit wide.
19921 Fix test when to get true file attributes.
19922 (init_user_info): Use get_rid instead of equivalent inline code.
19923 (fstat): Don't ignore the high 32 bits of file's size.
19924
19925 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
19926
19927 * image.c (png_load): Use correct bit-depth for setting background
19928 color.
19929
19930 2008-05-08 Eli Zaretskii <eliz@gnu.org>
19931
19932 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19933 epa-hook.elc.
19934
19935 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
19936
19937 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19938
19939 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19940
19941 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19942 because the original parameters are in pure storage now.
19943 (mac_window): Remove unused params. Update callers.
19944
19945 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19946
19947 * lread.c (substitute_object_recurse): Use lower-level primitives.
19948 Don't signal errors when traversing sub-char-tables.
19949 Don't loop over all the possible characters when traversing char-tables.
19950
19951 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19952 just like we do in print.c.
19953
19954 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19955
19956 * minibuf.c (Ftry_completion): Remove code left over from when we used
19957 scmp instead of Fcompare_strings.
19958
19959 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
19960
19961 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19962
19963 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19964
19965 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19966 Create bitmap context in native byte order.
19967
19968 * macterm.c (XDrawLine)
19969 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19970 context in native byte order.
19971
19972 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19973
19974 * config.in: Regenerate.
19975
19976 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19977 New definitions for Image I/O support.
19978 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19979 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19980 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19981 (mac_data_provider_release_data, image_load_image_io)
19982 [USE_MAC_IMAGE_IO]: New functions.
19983 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19984 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19985 (init_image_func_pointer) [MAC_OSX]: Remove function.
19986 (image_load_quartz2d) [MAC_OSX]: Check availability of
19987 CGImageCreateWithPNGDataProvider at compile time.
19988 Use lowercase `false' for boolean constant.
19989 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19990 Use image_load_image_io.
19991 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19992 Don't check MyCGImageCreateWithPNGDataProvider.
19993 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19994 Don't call init_image_func_pointer.
19995
19996 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19997
19998 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19999 Make variable non-static.
20000 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
20001 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20002
20003 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
20004 (RED_FROM_ULONG): Mask off higher bits.
20005 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
20006
20007 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
20008 Include AvailabilityMacros.h.
20009 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
20010 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
20011
20012 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
20013
20014 * chartab.c (Fset_char_table_range): If range is t, really set all
20015 chars to that value.
20016
20017 2008-05-03 Eli Zaretskii <eliz@gnu.org>
20018
20019 * dired.c (Ffile_attributes): Don't allow the device number become
20020 negative.
20021
20022 2008-05-02 Daiki Ueno <ueno@unixuser.org>
20023
20024 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
20025
20026 2008-05-02 Juri Linkov <juri@jurta.org>
20027
20028 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
20029 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
20030 DEFAULT argument as a list of default values in docstrings.
20031
20032 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
20033
20034 * puresize.h (BASE_PURESIZE): Increase to 1210000.
20035
20036 2008-05-01 Martin Rudalics <rudalics@gmx.at>
20037
20038 * dispnew.c (change_frame_size_1): Preserve small windows when
20039 shrinking frames by calling set_window_height|width with third
20040 arg 2.
20041
20042 * window.h (struct window): Replace field too_small_ok by field
20043 resize_proportionally.
20044
20045 * window.c (make_window): Initialize resize_proportionally.
20046 (enlarge_window): Temporarily set resize_proportionally to make
20047 sure that shrink_windows does scale the window proportionally.
20048 (shrink_windows): When window has resize_proportionally set try
20049 to shrink it proportionally by stealing from other windows.
20050 (struct saved_window, Fset_window_configuration)
20051 (compare_window_configurations): Handle resize_proportionally.
20052 (WINDOW_TOTAL_SIZE): New macro.
20053 (window_min_size, shrink_windows, size_window): Use it.
20054 (check_min_window_sizes): Remove. Invalid values of
20055 window-min-height|width are handled by window_min_size_2 now.
20056 (size_window, Fsplit_window, enlarge_window)
20057 (adjust_window_trailing_edge, grow_mini_window): Don't call
20058 check_min_window_sizes.
20059 (window_min_size_2, window_min_size_1, window_min_size):
20060 New argument safe_p for retrieving "safe" minimum sizes.
20061 (Fdisplay_buffer, Fsplit_window, enlarge_window)
20062 (adjust_window_trailing_edge, grow_mini_window):
20063 Adjust arguments of window_min_size... functions.
20064 (shrink_windows): Argument min_size removed. New argument
20065 safe_p allows shrinking windows to their safe minimum sizes.
20066 Calculate minimum size and decide whether a window shall be
20067 deleted for each window individually.
20068 (size_window): When nodelete_p equals 2, tell shrink_windows to
20069 delete windows only if their new minimum size is no more safe.
20070 (shrink_window_lowest_first): Call window_min_size_1 to make
20071 sure to preserve modeline of bottom-most window when resizing
20072 the minibuffer.
20073 (Fset_window_configuration, Fcurrent_window_configuration)
20074 (compare_window_configurations): Do not handle
20075 window-min-height|width any more.
20076 (syms_of_window): Clarify window-min-height|width doc-strings.
20077
20078 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
20079
20080 * dired.c (file_name_completion): Fix up the encoding/decoding issue
20081 some more. Copy some of the code from Ftry_completions.
20082 Remove special case code that dates back to initial revision when the
20083 slash was only added when necessary and that can't trigger nowadays.
20084
20085 2008-04-27 Kenichi Handa <handa@m17n.org>
20086
20087 * font.c (font_prop_validate): Signal `error' instead of `font'.
20088
20089 2008-04-29 Jason Rumney <jasonr@gnu.org>
20090
20091 * w32fns.c (Fw32_battery_status): New defun.
20092 (syms_of_w32fns): Defsubr it.
20093
20094 2008-04-28 Andreas Schwab <schwab@suse.de>
20095
20096 * dired.c (file_name_completion): Fix another mixing of encoded
20097 and decoded names.
20098
20099 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
20100
20101 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20102
20103 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
20104
20105 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20106
20107 2008-04-27 Andreas Schwab <schwab@suse.de>
20108
20109 * dired.c (file_name_completion): Fix inappropriate mixing of
20110 encoded and decoded names.
20111
20112 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20113
20114 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20115
20116 2008-04-26 Eli Zaretskii <eliz@gnu.org>
20117
20118 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20119 2008-03-31, it's not needed anymore with `struct stat' definition
20120 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20121 for the same reasons.
20122
20123 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20124
20125 * m/sparc.h: Additional redefinitions for GNU/Linux.
20126
20127 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20128
20129 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20130 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20131 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20132 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20133 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20134 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20135 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20136 Likewise.
20137
20138 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20139 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20140 (mac_ax_number_of_characters): Add externs.
20141 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20142 [USE_MAC_TSM]: Likewise.
20143 (mac_handle_text_input_event) [MAC_OSX]:
20144 Handle kEventTextInputOffsetToPos for no active input area case.
20145 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20146 (mac_handle_document_access_event)
20147 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20148 (install_application_handler) [MAC_OSX]: Register handlers for
20149 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20150 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20151 Register mac_handle_document_access_event.
20152
20153 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20154 Make functions non-static.
20155
20156 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20157
20158 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20159 (read_file_name_completion_ignore_case, insert_default_directory)
20160 (Qdefault_directory): Move to minibuffer.el.
20161 (Fread_file_name): Call the new `read-file-name' instead.
20162
20163 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20164
20165 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20166 Make function non-static.
20167 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20168 Remove function.
20169 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20170 Move to mactoolbox.c.
20171 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20172
20173 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20174 (mac_rect_make): New macro.
20175
20176 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20177 instead of float.
20178 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20179 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20180 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20181 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20182 CGRectMake.
20183 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20184 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20185 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20186 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20187 instead of WindowRef in argument type.
20188 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20189 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20190 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20191 instead of DISPLAY. All uses changed.
20192 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20193 (x_calc_absolute_position): Simplify so as not to use
20194 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20195
20196 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20197 instead of WindowRef in argument type.
20198 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20199 [TARGET_API_MAC_CARBON]: Remove externs.
20200 (create_apple_event, mac_event_parameters_to_lisp)
20201 [TARGET_API_MAC_CARBON]: Add externs.
20202
20203 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20204 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20205 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20206 is clicked.
20207 (x_activate_menubar): Remove extern for saved_menu_event_location.
20208 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20209 Move from mac.c.
20210
20211 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20212
20213 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20214 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20215
20216 2008-04-23 Jason Rumney <jasonr@gnu.org>
20217
20218 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20219 attributes only for local files.
20220
20221 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20222 default to Qlocal.
20223
20224 2008-04-22 Juri Linkov <juri@jurta.org>
20225
20226 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20227 read-buffer-to-switch instead of using the letter "B".
20228
20229 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20230
20231 * fileio.c (Qdefault_directory): New variable.
20232 (Fread_file_name): Use it to pass `dir' to the completion functions.
20233
20234 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
20235
20236 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20237
20238 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20239
20240 * keyboard.c (Vpre_help_message): Remove.
20241 (show_help_echo): Remove default C code.
20242
20243 * dired.c (directory_files_internal, file_name_completion):
20244 Only call ENCODE_FILE if the string is indeed decoded.
20245
20246 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20247
20248 * Makefile.in (TOOLKIT_DEFINES): Remove.
20249 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20250
20251 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20252
20253 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20254 (mactoolbox.o): New target.
20255
20256 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20257 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20258
20259 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20260 Use mac_set_frame_window_background instead of XSetWindowBackground.
20261 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20262 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20263 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20264 instead of SetWindowTitleWithCFString.
20265 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20266 Move function to mactoolbox.c.
20267 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20268 Use mac_set_window_modified instead of SetWindowModified.
20269 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20270 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20271 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20272 FrontNonFloatingWindow. Use mac_activate_window instead of
20273 ActivateWindow. Use mac_active_non_floating_window instead of
20274 ActiveNonFloatingWindow.
20275 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20276 Use mac_show_hourglass and mac_hide_hourglass.
20277 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20278 instead of GetGlobalMouse.
20279 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20280 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20281 Use mac_bring_window_to_front instead of BringToFront.
20282 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20283 mactoolbox.c.
20284 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20285 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20286 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20287 mactoolbox.c.
20288
20289 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20290 (XtPointer): Move typedef from macmenu.c.
20291 (enum button_type): Move enum from macmenu.c.
20292 (widget_value): Move typedef from macmenu.c.
20293 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20294 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20295 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20296 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20297 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20298 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20299 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20300 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20301 (Selection): Move typedef from macselect.c.
20302 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20303 macterm.c.
20304 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20305 (mac_is_window_collapsed, mac_bring_window_to_front)
20306 (mac_send_window_behind, mac_hide_window, mac_show_window)
20307 (mac_collapse_window, mac_front_non_floating_window)
20308 (mac_active_non_floating_window, mac_activate_window)
20309 (mac_move_window_structure, mac_move_window, mac_size_window)
20310 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20311
20312 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20313 (enum mac_menu_kind): Move enum to mactoolbox.c.
20314 (min_menu_id): Move variable to mactoolbox.c.
20315 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20316 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20317 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20318 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20319 [TARGET_API_MAC_CARBON]: Likewise.
20320 (XtPointer): Move typedef to macgui.h.
20321 (enum button_type): Move enum to macgui.h.
20322 (widget_value): Move typedef to macgui.h.
20323 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20324 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20325 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20326 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20327 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20328 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20329 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20330 (popup_activated_flag): Make variable non-static.
20331 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20332 (add_menu_item, fill_menu, dispose_menus):
20333 Move functions to mactoolbox.c.
20334 (restore_show_help_function, menu_target_item_handler)
20335 (install_menu_target_item_handler, mac_handle_dialog_event)
20336 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20337 [TARGET_API_MAC_CARBON]: Likewise.
20338 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20339 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20340 (find_and_call_menu_selection, name_is_separator): Make function
20341 non-static.
20342 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20343 to mactoolbox.c.
20344 (set_frame_menubar): Don't call install_menu_quit_handler.
20345 (menu_item_selection): New variable.
20346 (mac_menu_show): Use create_and_show_popup_menu.
20347 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20348 selection but set variable menu_item_selection. All uses changed.
20349 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20350 Call install_menu_quit_handler. Move to mactoolbox.c.
20351
20352 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20353 (Selection): Move typedef to macgui.h.
20354 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20355 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20356 Make variables non-static.
20357 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20358 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20359 Make functions non-static.
20360 (Vmac_service_selection) [MAC_OSX]: Likewise.
20361 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20362 (mac_valid_selection_target_p, mac_clear_selection)
20363 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20364 (mac_put_selection_value, mac_selection_has_target_p)
20365 (mac_get_selection_value, mac_get_selection_target_list)
20366 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20367 Move functions to mactoolbox.c.
20368 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20369 Likewise.
20370 (copy_scrap_flavor_data, mac_handle_service_event)
20371 (install_service_handler) [MAC_OSX]: Likewise.
20372 (syms_of_macselect) <Vmac_dnd_known_types>:
20373 Use mac_dnd_default_known_types.
20374
20375 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20376 Move to mactoolbox.c.
20377 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20378 (Fx_selection_owner_p): Add EXFUN.
20379 (install_window_handler, remove_window_handler, XSetWindowBackground):
20380 Remove externs.
20381 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20382 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20383 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20384 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20385 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20386 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20387 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20388 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20389 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20390 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20391 (mac_valid_selection_target_p, mac_clear_selection)
20392 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20393 (mac_put_selection_value, mac_selection_has_target_p)
20394 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20395 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20396 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20397 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20398 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20399 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20400 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20401 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20402 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20403
20404 * mactoolbox.c: New file.
20405
20406 2008-04-18 Jason Rumney <jasonr@gnu.org>
20407
20408 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20409
20410 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20411
20412 * character.c (Fmultibyte_char_to_unibyte):
20413 Return latin1 chars unchanged.
20414
20415 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20416 relocated if it points to `name'.
20417
20418 2008-04-17 Kenichi Handa <handa@m17n.org>
20419
20420 * data.c (Faset): Allow setting a multibyte character in an
20421 ASCII-only unibyte string.
20422
20423 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20424
20425 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20426
20427 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20428 done in config.h.
20429
20430 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
20431
20432 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20433 (Fchar_direction): Add usage in the docstring.
20434
20435 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
20436
20437 * keyboard.c (read_key_sequence): Remove always-true checks.
20438
20439 2008-04-14 Jason Rumney <jasonr@gnu.org>
20440
20441 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20442 compatibility struct, for better underline positioning.
20443
20444 2008-04-13 David Hansen <david.hansen@gmx.net>
20445
20446 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20447 string.
20448
20449 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20450
20451 * m/hp800.h (XUINT, XSET): Remove.
20452
20453 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
20454
20455 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20456 previous change.
20457
20458 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20459
20460 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20461 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20462
20463 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20464
20465 * keymap.h (map_keymap_canonical): Declare.
20466 * xmenu.c (single_keymap_panes): Use it.
20467
20468 2008-04-11 Glenn Morris <rgm@gnu.org>
20469
20470 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20471 set the target's value to that of the alias.
20472
20473 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20474
20475 * term.c (set_tty_color_mode): Left over typo.
20476
20477 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
20478
20479 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20480 only after check for file name handler functions. Signal, when
20481 native functionality is not supported.
20482 (syms_of_fileio): Declare it unconditionally.
20483
20484 2008-04-10 Jason Rumney <jasonr@gnu.org>
20485
20486 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20487 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20488
20489 * w32.c (logon_network_drive): Also logon to remote drives that
20490 are mapped to drive letters.
20491
20492 2008-04-10 Glenn Morris <rgm@gnu.org>
20493
20494 * xdisp.c (truncate-partial-width-windows): Doc fix.
20495
20496 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20497
20498 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20499 Move functions to minibuffer.el.
20500 (syms_of_fileio): Don't declare them.
20501
20502 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20503
20504 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20505 (syms_of_minibuf): Remove its initialization.
20506
20507 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20508
20509 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
20510
20511 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20512
20513 2008-04-09 Jason Rumney <jasonr@gnu.org>
20514
20515 * makefile.w32-in (distclean): Delete makefile too.
20516 (maintainer-clean): New target.
20517
20518 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20519
20520 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20521 for new font backend and composite cases.
20522
20523 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20524
20525 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20526 Most of the code moved to run_timers.
20527 (do_pending_atimers): Call run_timers.
20528 (run_timers): New function.
20529
20530 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20531 run atimers.
20532
20533 * process.c (wait_reading_process_output): The same as above.
20534
20535 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20536
20537 * minibuf.c (last_exact_completion): Remove variable.
20538 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20539 (complete_and_exit_1, complete_and_exit_2)
20540 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20541 (Fdisplay_completion_list, display_completion_list_1)
20542 (Fminibuffer_completion_help, Fself_insert_and_exit)
20543 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20544 minibuffer.el.
20545 (syms_of_minibuf): Remove corresponding initializations.
20546
20547 * keyboard.c (Qdeactivate_mark): New var.
20548 (command_loop_1): Use it to call `deactivate-mark'.
20549 (syms_of_keyboard): Initialize it.
20550
20551 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20552 to another frame.
20553 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20554 Don't call set_tty_color_mode.
20555 (store_frame_param): Reset previous_frame rather than call
20556 set_tty_color_mode.
20557 * term.c (set_tty_color_mode): Rewrite.
20558 * dispextern.h (set_tty_color_mode): New type.
20559 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20560
20561 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20562
20563 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20564 for generic chars, which do not exist any more in emacs-unicode.
20565
20566 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
20567
20568 * coding.c (detect_coding_emacs_mule)
20569 (Ffind_operation_coding_system): Fix typo.
20570
20571 2008-04-08 Jason Rumney <jasonr@gnu.org>
20572
20573 * w32uniscribe.c (SNAME): Extract only symbol name.
20574
20575 * w32font.h (struct w32_metric_cache): New struct.
20576 (w32font_info): Use it.
20577 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20578 (CACHE_BLOCKSIZE): New constants.
20579
20580 * w32font.c (Qja, Qko, Qzh): New symbols.
20581 (syms_of_w32font): Initialise them.
20582 (font_matches_spec): Use them to filter by language.
20583 (recompute_cached_metrics): Remove function.
20584 (compute_metrics, clear_cached_metrics): New functions.
20585 (w32font_encode_char): Use them to manage metric cache.
20586 (w32font_text_extents): Cache metrics for all glyphs on demand.
20587 Delay converting glyph indices to WORD until needed.
20588 (w32font_open_internal): Initialize metric cache to empty.
20589 (registry_to_w32_charset): Charset should always be a symbol.
20590 (fill_in_logfont, list_all_matching_fonts): Family should
20591 always be a symbol.
20592
20593 2008-04-06 Jason Rumney <jasonr@gnu.org>
20594
20595 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20596 Give up if glyph indices not supported. Use uniscribe obtained
20597 ABC widths for individual metrics. Map glyph clusters back to
20598 characters using fClusterStart flag. Return number of glyphs
20599 produced, not chars processed.
20600 (uniscribe_shape): Map char at FROM to current glyph.
20601
20602 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20603
20604 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20605 Use SetMenuItemHierarchicalMenu.
20606
20607 2008-04-05 Jason Rumney <jasonr@gnu.org>
20608
20609 * image.c (pbm_load): Allow color values up to 65535.
20610 Throw an error if max_color_idx is outside the supported range.
20611 Report an error when image size is invalid.
20612 Read two bytes at a time when raw images have max_color_idx above 255.
20613
20614 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20615
20616 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20617 append "CCL: Quitted" when the CCL program is quitted.
20618 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20619
20620 * ccl.h (struct ccl_program): New member quit_silently.
20621
20622 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
20623
20624 * search.c (compile_pattern_1): Treat non-nil and non-string of
20625 search-spaces-regexp as nil.
20626
20627 * minibuf.c (Fassoc_string): Tweak docstring.
20628
20629 2008-04-05 Eli Zaretskii <eliz@gnu.org>
20630
20631 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20632 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20633 2008-03-14 to force inode be positive.
20634
20635 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20636 _S_* ones, since we now use our own sys/stat.h.
20637 (stat, fstat): Don't mangle the inode number.
20638 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20639
20640 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20641
20642 * frame.h (struct frame): Give one more bit to `visible' since we use
20643 values larger than 1 to indicate obscured frames on ttys.
20644
20645 * keymap.c (Qkeymap_canonicalize): New var.
20646 (Fmap_keymap_internal): New fun.
20647 (describe_map): Use keymap-canonicalize.
20648
20649 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20650 (Fundo_boundary): Set them.
20651 (syms_of_undo): Initialize them.
20652 (record_point): Use them instead of last_point_position*.
20653 (last_undo_buffer): Change type.
20654
20655 2008-04-04 Jason Rumney <jasonr@gnu.org>
20656
20657 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20658 (recompute_cached_metrics): Don't set ascent and descent per char.
20659
20660 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20661 (uniscribe_check_otf): Add GC protection before consing.
20662 Rearrange loop for counting features.
20663
20664 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20665
20666 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20667 buffer with byte-size of source buffer.
20668
20669 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
20670
20671 * callint.c (Fcall_interactively): Handle temporary region even
20672 when shift-select-mode is off.
20673
20674 2008-04-03 Jason Rumney <jasonr@gnu.org>
20675
20676 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20677
20678 2008-04-03 Kenichi Handa <handa@m17n.org>
20679
20680 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20681 (CATEGORY_MASK_UTF_16): Likewise.
20682 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20683 binary file.
20684 (detect_coding): Add null-byte detection for a binary file.
20685 (detect_coding_system): Likewise.
20686
20687 2008-04-03 Jason Rumney <jasonr@gnu.org>
20688
20689 * w32uniscribe.c: New file.
20690
20691 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20692
20693 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20694
20695 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20696 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20697 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20698 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20699 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20700 (Qphonetic): New symbols.
20701 (syms_of_w32font): Initialize them.
20702 (font_supported_scripts): Use them.
20703 (w32font_list_family): List all charsets.
20704 (w32font_text_extents, recompute_cached_metrics): Fix metric
20705 calculations.
20706 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20707 Give opentype fonts their own format.
20708 (font_matches_spec): New arguments backend and logfont.
20709 Handle :otf spec for uniscribe backend.
20710 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20711 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20712
20713 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20714 font backend.
20715 (globals_of_w32fns): Initialize uniscribe font backend.
20716
20717 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20718 dependencies.
20719 (w32uniscribe.$(O)): New file to build.
20720 (FONT_OBJ): Include w32uniscribe.$(O).
20721 (LIBS): Add uniscribe libraries.
20722
20723 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20724
20725 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
20726
20727 * callint.c (Vshift_select_mode): New var.
20728 (Finteractive): Document new ^ spec.
20729 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20730 is present.
20731
20732 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20733 (command_loop_1): Avoid running the direct display versions of
20734 forward-char and backward-char if shift-selection may occur.
20735 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20736 shift-translation takes place.
20737
20738 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20739 avoid clobbering by define-minor-mode.
20740
20741 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20742 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20743
20744 * syntax.c (Fforward_word): Add ^ interactive spec.
20745
20746 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20747 (Fscroll_right): Add ^ interactive spec.
20748
20749 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20750
20751 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20752
20753 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20754
20755 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20756
20757 2008-03-31 Juri Linkov <juri@jurta.org>
20758
20759 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20760
20761 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20762
20763 * gtkutil.c (xg_set_geometry): Fix indentation.
20764 (xg_resize_outer_widget): Remove.
20765 (x_wm_size_hint_off): Fix indentation.
20766 (xg_frame_set_char_size): Call flush_and_sync after
20767 gtk_window_resize.
20768 (x_wm_set_size_hint): Pass NULL as geometry window to
20769 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20770 Add menu bar and tool bar height to base height.
20771 (xg_update_frame_menubar, free_frame_menubar)
20772 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20773 (update_frame_tool_bar, free_frame_tool_bar):
20774 Change xg_resize_outer_widget to xg_frame_set_char_size.
20775
20776 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
20777
20778 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20779 (Fdbus_call_method): New parameter TIMEOUT.
20780 (dbus-send-signal): Optimize UNGCPRO call.
20781
20782 2008-03-29 Juri Linkov <juri@jurta.org>
20783
20784 * window.c (Fdisplay_buffer): Move call to
20785 Vsplit_window_preferred_function out of conditions that check
20786 if window is eligible for vertical splitting.
20787 When Vsplit_window_preferred_function is non-nil, call it and use
20788 its non-nil return value as window. Otherwise, continue doing
20789 vertical splitting using Fsplit_window with arg horflag=nil.
20790 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20791 default value from `split-window' to nil.
20792
20793 2008-03-29 Juri Linkov <juri@jurta.org>
20794
20795 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20796 for interactive code letters 'b' and 'B'.
20797
20798 2008-03-29 Eli Zaretskii <eliz@gnu.org>
20799
20800 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20801 multibyte string.
20802
20803 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20804
20805 * keyboard.c (pending_funcalls): New var.
20806 (timer_check): Run it.
20807 (syms_of_keyboard): Initialize it.
20808 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20809 (Vdelete_terminal_functions): New vars.
20810 (syms_of_terminal): Initialize them.
20811 (Fdelete_terminal): Run delete-terminal-functions.
20812 * xdisp.c (safe_eval): Rewrite.
20813 (safe_call2): New fun.
20814 * frame.c (Qdelete_frame_functions): New var.
20815 (syms_of_frame): Initialize it.
20816 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20817 * lisp.h (safe_call2, pending_funcalls): Declare.
20818
20819 2008-03-28 Andreas Schwab <schwab@suse.de>
20820
20821 * indent.c (Fmove_to_column): Move declaration before statements.
20822
20823 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20824
20825 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20826 (struct frame): Use bit fields for boolean vars.
20827
20828 * process.c (server_accept_connection): Simplify naming.
20829 (emacs_get_tty_pgrp): Use SDATA.
20830
20831 * coding.c (decode_coding_object): Fix last change.
20832
20833 2008-03-27 Jason Rumney <jasonr@gnu.org>
20834
20835 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20836
20837 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20838
20839 * charset.c (Fdefine_charset_internal): Change the way of
20840 registering charsets in Vcharset_order_list.
20841 (syms_of_charset): Make the charset `eight-bit' supplementary.
20842
20843 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20844
20845 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20846 operations, to avoid having the difference between pointers
20847 overflow.
20848
20849 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20850
20851 * indent.c (check_display_width): New fun.
20852 (scan_for_column): Use it.
20853
20854 * data.c (syms_of_data): Mark most-positive-fixnum and
20855 most-negative-fixnum as constants.
20856
20857 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20858
20859 * indent.c (scan_for_column): Extract from current_column_1.
20860 Merge with the same code from Fmove_to_column.
20861 (current_column_1, Fmove_to_column): Use it.
20862
20863 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20864
20865 * keymap.c (map_keymap_internal): New fun.
20866 (map_keymap): Use it.
20867 (Fmap_keymap_internal): New fun.
20868 (Fmap_keymap): Remove left-out test from before make_save_value.
20869
20870 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20871
20872 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20873 Use XCAR/XCDR.
20874
20875 * process.h (struct Lisp_Process): Remove filter_multibyte.
20876 * process.c (QCfilter_multibyte): Remove.
20877 (setup_process_coding_systems): Don't use filter_multibyte.
20878 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20879 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20880 (Fset_process_filter_multibyte): Change the coding-system to
20881 approximate the previous behavior.
20882 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20883 coding-system.
20884
20885 * coding.c (decode_coding_object): When not decoding into a buffer,
20886 obey the coding system's preference of (uni|multi)byte.
20887
20888 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20889
20890 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20891 every char is changed and has a different byte-length.
20892 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20893 Fix int -> EMACS_INT.
20894
20895 2008-03-23 David Hansen <david.hansen@gmx.net>
20896
20897 * dbusbind.c (xd_read_message): Remove extra copying of message
20898 strings. Check for NULL `interface' or `member'.
20899
20900 2008-03-22 Eli Zaretskii <eliz@gnu.org>
20901
20902 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20903 cFileName a file name that includes `?' characters, use the 8+3
20904 alias in cAlternateFileName instead.
20905
20906 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20907
20908 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20909
20910 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20911
20912 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20913 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20914 work on current_buffer only instead (that was already the case
20915 for some of the code anyway).
20916 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20917 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20918 (SET_PT, SET_PT_BOTH): Adjust.
20919 * intervals.h (set_point, temp_set_point, set_point_both)
20920 (temp_set_point_both): Remove redundant declarations.
20921
20922 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20923
20924 * fileio.c (Finsert_file_contents):
20925 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20926 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20927 when buffer != current_buffer anyway.
20928
20929 2008-03-20 Andreas Schwab <schwab@suse.de>
20930
20931 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20932 as default.
20933
20934 2008-03-19 Jason Rumney <jasonr@gnu.org>
20935
20936 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20937 (syms_of_w32fns): Initialize them.
20938 (HOURGLASS_ID): New constant.
20939 (x_window_to_frame): Don't check hourglass_window.
20940 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20941 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20942 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20943 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20944 Only change the cursor if hourglass is not active.
20945 (Fx_create_frame): Initialize frame's current_cursor.
20946 (hourglass_atimer): Remove.
20947 (hourglass_started): New function.
20948 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20949 (show_hourglass): Adapt to w32, changing argument to frame.
20950
20951 * w32term.h (struct w32_output): Remove hourglass_window.
20952 Add current_cursor.
20953
20954 * eval.c (call_debugger, Fsignal):
20955 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20956 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20957 (Fexecute_extended_command, cancel_hourglass_unwind):
20958 * minibuf.c (read_minibuf):
20959 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20960
20961 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20962
20963 * window.c (run_funs): New fun.
20964 (run_window_configuration_change_hook): Use it to run the buffer-local
20965 and the global part of the hook.
20966
20967 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20968 (unwind_format_mode_line): Restore selected window.
20969 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20970
20971 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20972
20973 * editfns.c (Fchar_equal): Check they are valid characters.
20974
20975 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20976
20977 2008-03-17 Andreas Schwab <schwab@suse.de>
20978
20979 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20980 against a charset.
20981
20982 * lisp.h (Fbuffer_list): Declare.
20983
20984 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
20985
20986 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20987 handlebox_widget is != 0.
20988
20989 2008-03-16 Juri Linkov <juri@jurta.org>
20990
20991 * callint.c (Fcall_interactively): For interactive code letters
20992 'b' and 'B' put the buffer list into the list of default "future"
20993 values of the minibuffer.
20994
20995 2008-03-16 Andreas Schwab <schwab@suse.de>
20996
20997 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20998 modifiers.
20999
21000 * regex.c (re_match_2_internal): Correct matching of a charset
21001 against latin-1 characters.
21002
21003 2008-03-16 Kenichi Handa <handa@m17n.org>
21004
21005 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
21006 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
21007 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
21008 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
21009 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
21010 CHAR_STRING_ADVANCE.
21011 (produce_chars): Fix for the case that the source and the
21012 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
21013 instead of CHAR_STRING_ADVANCE.
21014 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
21015 STRING_CHAR_ADVANCE.
21016
21017 2008-03-15 Andreas Schwab <schwab@suse.de>
21018
21019 * regex.c (re_match_2_internal): Correct matching of eight bit
21020 characters in unibyte strings.
21021
21022 2008-03-15 Martin Rudalics <rudalics@gmx.at>
21023
21024 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
21025 at end of range when it coincides with the end of the buffer.
21026
21027 2008-03-14 Eli Zaretskii <eliz@gnu.org>
21028
21029 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
21030
21031 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
21032
21033 2008-03-14 Jason Rumney <jasonr@gnu.org>
21034
21035 * editfns.c (initial_tz): New variable.
21036 (syms_of_editfns): Initialize it.
21037 (Fset_time_zone_rule): Set it when first called.
21038 Use it when TZSTRING is nil.
21039
21040 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
21041 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
21042 (monitor_from_point_fn, get_monitor_info_fn): New globals.
21043 (globals_of_w32fns): Initialize them.
21044 (compute_tip_xy): Use them to position tooltips.
21045
21046 2008-03-14 Glenn Morris <rgm@gnu.org>
21047
21048 * emacs.c (main): Revert previous change.
21049 (standard_args): Revert -internal-script back to -scriptload,
21050 and remove the long-option form.
21051
21052 2008-03-13 Glenn Morris <rgm@gnu.org>
21053
21054 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
21055 Remove option -enable-font-backend.
21056
21057 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
21058
21059 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
21060
21061 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
21062
21063 * xterm.c (x_connection_closed): For GTK: If this is the last
21064 terminal just exit without closing the display.
21065
21066 2008-03-11 Jason Rumney <jasonr@gnu.org>
21067
21068 * w32font.c (w32font_full_name): Use floor to round.
21069
21070 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21071
21072 * sound.c (alsa_configure): Declare vol at beginning of block.
21073
21074 * fontset.c (Ffontset_info): Remove extra semicolon.
21075
21076 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
21077
21078 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
21079 size of resulting string.
21080
21081 2008-03-10 Jason Rumney <jasonr@gnu.org>
21082
21083 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
21084
21085 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21086
21087 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
21088 Don't pretend as if characters with display property haven't been
21089 consumed for string-replacing-string case.
21090
21091 2008-03-08 Kim F. Storm <storm@cua.dk>
21092
21093 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21094 (get_next_display_element, next_element_from_string)
21095 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21096
21097 2008-03-08 Andreas Schwab <schwab@suse.de>
21098
21099 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21100
21101 2008-03-06 Jason Rumney <jasonr@gnu.org>
21102
21103 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21104 when charset not specified. Only translate ANSI to unicode when
21105 font_type is truetype.
21106 (w32font_coverage_ok): New function.
21107 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21108
21109 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21110
21111 * lread.c (Fread_char): Resolve modifiers.
21112 (Fread_char_exclusive): Likewise.
21113
21114 * character.c (char_resolve_modifier_mask): New function.
21115 (char_string): Use char_resolve_modifier_mask.
21116 (Fchar_resolve_modifiers): New function.
21117 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21118 function.
21119
21120 2008-03-04 Jason Rumney <jasonr@gnu.org>
21121
21122 * makefile.w32-in: Always include w32font.c in the build.
21123 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21124
21125 2008-03-04 Andreas Schwab <schwab@suse.de>
21126
21127 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21128 (versionclean): Likewise.
21129
21130 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
21131
21132 * .cvsignore: Add oo.
21133
21134 2008-03-03 Andreas Schwab <schwab@suse.de>
21135
21136 * coding.c (decode_coding_object): Inhibit gap shrinking while
21137 decoding in place.
21138
21139 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21140
21141 * w32term.c: Remove unused include "gnu.h".
21142 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21143
21144 * gnu.h: Rename to ...
21145 * emacs-icon.h: ... this.
21146 * xterm.c: Use emacs-icon.h instead of gnu.h.
21147 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21148
21149 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
21150
21151 * w32font.c: Include math.h.
21152
21153 2008-03-03 Jason Rumney <jasonr@gnu.org>
21154
21155 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21156 Compute options separately.
21157 (w32font_open_internal): Set glyph_idx before caching metrics.
21158
21159 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21160 Define if system headers don't.
21161 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21162 (w32font_encode_char): Don't declare here.
21163
21164 * w32font.c (Quniscribe, QCformat): New symbols.
21165 (syms_of_w32font): Define them.
21166 (w32font_has_char): Indicate uncertainty.
21167 (w32font_encode_char): Encode as glyph point. Make static.
21168 (recompute_cached_metrics): New function.
21169 (w32font_open_internal): Use it. Set font to use glyph points
21170 initially. Set format based on type of font.
21171 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21172 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21173 on it. Set format based on information available here.
21174 (add_font_entity_to_list): Identify backend based on opentype_only.
21175
21176 2008-03-02 Andreas Schwab <schwab@suse.de>
21177
21178 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21179
21180 * coding.c (decode_coding_big5, produce_chars):
21181 Fix typos in last change.
21182
21183 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21184
21185 * gnu.h: New icon.
21186
21187 2008-03-02 Kenichi Handa <handa@m17n.org>
21188
21189 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21190 `dos', don't decode '\r' if that is the last in the source.
21191 (decode_coding_utf_16, decode_coding_emacs_mule)
21192 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21193 (decode_coding_raw_text, decode_coding_charset): Likewise.
21194 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21195
21196 2008-03-01 Jason Rumney <jasonr@gnu.org>
21197
21198 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21199
21200 2008-03-01 Kim F. Storm <storm@cua.dk>
21201
21202 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21203
21204 2008-03-01 Jason Rumney <jasonr@gnu.org>
21205
21206 * w32font.c (w32font_full_name): New function.
21207 (w32font_open_internal): Use it.
21208
21209 2008-03-01 Kim F. Storm <storm@cua.dk>
21210
21211 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21212
21213 2008-03-01 Jason Rumney <jasonr@gnu.org>
21214
21215 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21216
21217 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21218
21219 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21220 xg_frame_resized when the event is for the edit widget.
21221
21222 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
21223
21224 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21225 set_char_size.
21226 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
21227 operations on widgets here. Just set frame size if needed.
21228 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21229 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21230 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21231 the whole frame.
21232 (xg_create_tool_bar): Move attachment of the tool bar to
21233 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21234 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21235
21236 2008-03-01 Jason Rumney <jasonr@gnu.org>
21237
21238 * w32fns.c (w32_msg_pump): Disable debug code.
21239
21240 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21241
21242 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21243
21244 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21245
21246 * xdisp.c (next_overlay_string): Don't set
21247 overlay_strings_at_end_processed_p if we're currently reading from
21248 a display string.
21249
21250 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21251
21252 * xdisp.c (get_overlay_strings_1): Fix typo.
21253
21254 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21255
21256 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21257
21258 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21259
21260 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21261
21262 * xdisp.c (display_mode_element): Cancel the previous change.
21263 (decode_mode_spec): Likewise.
21264 (handle_auto_composed_prop): Don't make composition if it->string
21265 is a string.
21266
21267 2008-02-27 Kim F. Storm <storm@cua.dk>
21268
21269 * lisp.h (GLYPH): Change type from int to struct with separate char
21270 and face_id members.
21271 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21272 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21273 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21274 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21275 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21276 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21277 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21278 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21279 handle new Lisp glyph code encoding, either an integer or a cons.
21280
21281 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21282 (GLYPH_ALIAS): Delete.
21283 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21284 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21285 (GLYPH_FROM_CHAR): Replace macro by ...
21286 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21287
21288 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21289 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21290 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21291 (GLYPH_INVALID_P): New macro.
21292 (spec_glyph_lookup_face): Update prototype.
21293
21294 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21295 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21296 new glyph code encoding.
21297 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21298 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21299
21300 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21301 Adapt to new glyph type and new glyph code encoding.
21302
21303 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21304
21305 * indent.c (current_column, current_column_1, Fmove_to_column)
21306 (compute_motion): Adapt to new glyph code encoding.
21307
21308 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21309
21310 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
21311
21312 * process.c (wait_reading_process_output): Check for window
21313 changes caused by timers.
21314 Suggested by Johan Bockgård.
21315
21316 2008-02-27 Glenn Morris <rgm@gnu.org>
21317
21318 * emacs.c (USAGE1): Add `--disable-font-backend'.
21319
21320 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21321
21322 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21323 is made to the buffer.
21324
21325 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21326
21327 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21328 (face_at_string_position):
21329 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21330 (face_at_string_position):
21331 * xdisp.c (display_string, next_overlay_change):
21332 * buffer.h (overlays_at):
21333 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21334 Update callers.
21335
21336 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
21337
21338 * editfns.c (Fformat): Doc fix.
21339
21340 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
21341
21342 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21343 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21344 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21345
21346 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21347
21348 * buffer.c (Fbuffer_swap_text): New function.
21349 (syms_of_buffer): Defsubr it.
21350
21351 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
21352
21353 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21354
21355 2008-02-25 Jason Rumney <jasonr@gnu.org>
21356
21357 * w32font.c (w32font_draw): Draw one character at a time when padding.
21358
21359 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21360
21361 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21362 Handle a nil arg. Use run_window_configuration_change_hook.
21363 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21364 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21365 Use run_window_configuration_change_hook.
21366
21367 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21368
21369 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21370 1-pixel width.
21371
21372 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21373
21374 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21375 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21376 if the glyph in the font is zero pixel with.
21377
21378 * dispextern.h (struct glyph_string): New member padding_p.
21379
21380 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21381
21382 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21383
21384 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21385
21386 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21387
21388 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21389
21390 2008-02-25 Jason Rumney <jasonr@gnu.org>
21391
21392 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21393
21394 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21395
21396 Allow fine-grained image-cache flushing.
21397 * dispextern.h (struct image): Add `dependencies' field.
21398 (clear_image_caches): Change arg to Lisp_Object.
21399 * image.c (make_image): Initialize `dependencies' field.
21400 (clear_image_cache): Change arg to allow fine-grained flushing.
21401 Perform the flush even if image-cache-eviction-delay is nil.
21402 (clear_image_caches): Change arg to Lisp_Object.
21403 (Fclear_image_cache): Expand meaning of the argument.
21404 (mark_image): Mark `dependencies' field.
21405 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21406 (lface_hash): Use XHASH rather than XFASTINT.
21407 (face_at_buffer_position): Fix int -> EMACS_INT position.
21408 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21409 (select_frame_for_redisplay): Remove code duplication.
21410 (redisplay_internal): Adapt arg to call to clear_image_caches.
21411
21412 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21413
21414 * s/vms4-0.h:
21415 * s/vms4-2.h:
21416 * s/vms4-4.h:
21417 * s/vms5-5.h: Remove, unused.
21418
21419 * s/irix5-2.h:
21420 * s/irix6-0.h:
21421 * s/riscos5.h:
21422 * s/mach-bsd4-3.h:
21423 * m/mips4.h: Remove files for obsolete systems.
21424
21425 * Makefile.in:
21426 * filelock.c:
21427 * unexmips.c:
21428 * m/hp9000s300.h:
21429 * m/iris4d.h:
21430 * s/aix3-1.h:
21431 * s/hpux.h:
21432 * s/msdos.h:
21433 * s/usg5-0.h:
21434 * s/usg5-2-2.h:
21435 * s/usg5-2.h:
21436 * s/usg5-3.h: Remove references to obsolete variables.
21437
21438 * s/irix5-0.h: Remove, move all the contents ...
21439 * s/irix6-5.h: ... here. Simplify.
21440 * config.in: Regenerate.
21441
21442 2008-02-24 Jason Rumney <jasonr@gnu.org>
21443
21444 * w32term.c (x_draw_glyph_string_background): Clear the background
21445 manually when cleartype is in use.
21446 (x_draw_glyph_string_foreground): Draw text transparently when
21447 cleartype is in use.
21448
21449 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21450 a font into it unless we have to.
21451
21452 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21453
21454 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21455 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
21456
21457 2008-02-18 Jason Rumney <jasonr@gnu.org>
21458
21459 * w32fns.c (Fw32_shell_execute): Encode parameters.
21460
21461 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21462
21463 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21464
21465 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
21466
21467 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21468
21469 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21470
21471 * xterm.c (x_set_offset): Don't change the gravity if
21472 CHANGE_GRAVITY is -1.
21473
21474 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
21475
21476 * fileio.c (auto_save_error_occurred): New var.
21477 (auto_save_error): Set it.
21478 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21479 error occurred.
21480
21481 2008-02-23 Eli Zaretskii <eliz@gnu.org>
21482
21483 * w32.c (globals_of_w32): Add initializations for
21484 g_b_init_get_sid_sub_authority and
21485 g_b_init_get_sid_sub_authority_count.
21486
21487 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21488
21489 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21490 (font_parse_xlfd): Use them for sanity check.
21491 (Finternal_set_font_style_table): Make sure the table is bijective.
21492
21493 Consolidate the image_cache to the terminal struct.
21494 * termhooks.h (P_): Remove redundant def.
21495 (struct terminal): New field `image_cache'.
21496 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21497 of FRAME_X_IMAGE_CACHE.
21498 * xterm.h (struct x_display_info): Remove image_cache field.
21499 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21500 * w32term.h (struct w32_display_info): Remove image_cache field.
21501 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21502 * macterm.h (struct mac_display_info): Remove image_cache field.
21503 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21504 * xterm.c (x_term_init):
21505 * w32term.c (w32_term_init):
21506 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21507 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21508 Remove declarations.
21509 (clear_image_caches, mark_image_cache): New declarations.
21510 * xfaces.c (clear_face_cache):
21511 * xdisp.c (redisplay_internal): Use clear_image_caches.
21512 * image.c (clear_image_cache): Don't check that a frame is on
21513 a window-system before checking if it shares the same cache.
21514 (clear_image_caches): New function.
21515 (Fclear_image_cache): Use it.
21516 (mark_image): Move from allo.c.
21517 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21518 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21519 (mark_object): Don't call mark_image_cache for frames.
21520 (mark_terminals): Call mark_image_cache.
21521
21522 * lisp.h (Fdelete_terminal): Declare.
21523
21524 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21525 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21526 wrong_type_argument.
21527
21528 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21529
21530 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21531 malayalam.el, and tamil.el. Add sinhala.el.
21532
21533 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21534
21535 * xterm.c (x_connection_closed): Consolidate identical tests.
21536 (x_delete_terminal): Don't crash if called via x_connection_closed.
21537
21538 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21539
21540 * xdisp.c (decode_mode_spec): New arg string.
21541 (display_mode_element): Adjust for the above change.
21542
21543 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21544
21545 * callint.c (Fcall_interactively): Use AREF.
21546
21547 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21548
21549 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21550
21551 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21552
21553 * xfns.c (Fx_show_tip): Set string to " " if empty.
21554
21555 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21556
21557 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21558 with Qt.
21559
21560 2008-02-17 Kenichi Handa <handa@m17n.org>
21561
21562 * ftfont.c (ftfont_shape): Return Lispy number.
21563
21564 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21565 for GCs.
21566 (Finternal_set_font_selection_order): Call font_update_sort_order
21567 only when enable_font_backend is set.
21568 (realize_x_face): Set face->font_info to that of default face only
21569 when enable_font_backend is set.
21570
21571 * xdisp.c (handle_composition_prop): Set it->c to the fist
21572 character of the composed region.
21573 (fill_composite_glyph_string): Set base_face->font_info to
21574 s->font_info. Get a face for ascii from base_face->ascii_face.
21575 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21576 with a face already decided.
21577 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21578 non-negative.
21579 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21580 call font_prepare_composition unconditionally.
21581
21582 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21583
21584 * xterm.h (struct x_display_info): New member font.
21585
21586 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21587 (x_set_mouse_face_gc, x_new_font): Likewise.
21588 (x_term_init): Setup display_info->font.
21589 (x_delete_terminal): Free display_info->font.
21590
21591 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21592
21593 * ftxfont.c (ftxfont_default_fid): Delete it.
21594 (ftxfont_open): Set xfont->fid to 0.
21595 (ftxfont_end_for_frame): Clear data specific to the frame and the
21596 font-driver.
21597
21598 * xftfont.c (xftfont_default_fid): Delete it.
21599 (xftfont_open): Set xfont->fid to 0.
21600
21601 * fontset.c (FONTSET_OBJLIST): New macro.
21602 (fontset_find_font): Update font-object list of the fontset.
21603 (free_realized_fontset): New function.
21604 (free_face_fontset): Call free_realized_fontset.
21605 (Ffont_info): Call font_close_object only when enable_font_backend
21606 is set.
21607
21608 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21609 [HAVE_NTGUI]: Include w32term.h.
21610 [MAC_OS]: Include macterm.ch.
21611 (font_otf_ValueRecord): Use make_number.
21612 (font_finish_cache): Fix handling of reference count.
21613 (font_clear_cache): Update num_fonts.
21614 (font_open_entity): Update smallest_char_width and
21615 smallest_font_height of the frame.
21616 (font_close_object): Update num_fonts.
21617 (Fclear_font_cache): Fix finding the target cache data.
21618
21619 2008-02-16 Glenn Morris <rgm@gnu.org>
21620
21621 * fontset.c (Finternal_char_font): Fix compilation warning.
21622
21623 2008-02-16 Eli Zaretskii <eliz@gnu.org>
21624
21625 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21626 instead of char arrays. Enlarge the size of array passed to
21627 get_token_information.
21628
21629 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21630 warnings.
21631
21632 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21633
21634 * .gdbinit: Don't set `args', it breaks gdb --args.
21635
21636 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21637
21638 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21639 within a narrowed buffer.
21640
21641 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21642
21643 * coding.c (decode_coding_object, encode_coding_object):
21644 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21645
21646 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21647
21648 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21649 hardcoding 1.
21650 (detect_coding_system):
21651 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21652 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21653 * insdel.c (insert_from_gap):
21654 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21655 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21656 (string_to_multibyte):
21657 * character.c (chars_in_text, multibyte_chars_in_text):
21658 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21659
21660 * character.h (FETCH_STRING_CHAR_ADVANCE)
21661 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21662 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21663 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21664
21665 * casefiddle.c (casify_region): Only call after-change and composition
21666 functions on the part of the region that was changed.
21667
21668 * keyboard.c (read_avail_input):
21669 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21670
21671 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21672
21673 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21674 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21675
21676 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
21677
21678 * w32menu.c (push_submenu_start, push_submenu_end)
21679 (push_left_right_boundary, push_menu_pane, push_menu_item):
21680 * keyboard.c (read_key_sequence): Don't pass args with side effects
21681 to AREF, it fails when compiling with -DENABLE_CHECKING.
21682
21683 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21684
21685 * Makefile.in (${lispsource}international/charprop.el):
21686 Delete this target.
21687
21688 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21689 emacs-unicode-2.
21690
21691 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21692
21693 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21694
21695 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21696
21697 * frame.c (Qnoelisp): New symbol.
21698 (syms_of_frame): Initialize it.
21699 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21700 harmless Elisp code, from a strong `force' from x_connection_closed.
21701 * frame.h (Qnoelisp): Declare.
21702 * xterm.c (x_connection_closed): Pass `noelisp'.
21703
21704 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21705 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21706 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21707 rather than `int' for the type of `type'.
21708
21709 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21710
21711 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21712
21713 * Makefile.in (GNUC): Remove support for gcc-1.x.
21714
21715 2008-02-10 Richard Stallman <rms@gnu.org>
21716
21717 * lisp.h (ASET): Use AREF, not ASLOT.
21718
21719 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21720
21721 * lisp.h (ASET): Check bounds.
21722
21723 2008-02-10 Glenn Morris <rgm@gnu.org>
21724
21725 * buffer.c (mode-name): Doc fix.
21726
21727 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21728
21729 * Makefile.in:
21730 * emacs.c:
21731 * gmalloc.c:
21732 * keyboard.c:
21733 * lisp.h:
21734 * m/ibm370aix.h:
21735 * process.c:
21736 * regex.c:
21737 * s/hpux.h:
21738 * sysdep.c:
21739 * sysselect.h:
21740 * systty.h:
21741 * unexec.c:
21742 * w32term.c:
21743 * xsmfns.c:
21744 * xterm.c: Remove code that deals with obsolete variables.
21745
21746 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21747
21748 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21749 nothing else needs it anymore.
21750
21751 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21752
21753 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21754 instead of unibyte_char_to_multibyte.
21755
21756 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21757
21758 * s/gnu-linux.h: Remove commented out code.
21759
21760 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21761
21762 * Makefile.in: Update what RMS says about using autoconf.
21763 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21764 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21765 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21766 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21767
21768 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21769
21770 * keymap.c (Fkey_description): Move side effect outside of macro call.
21771
21772 * xfaces.c (Finternal_make_lisp_face):
21773 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21774
21775 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21776 (syms_of_fontset): Use ASET.
21777
21778 * fns.c (concat): Move side effect outside of macro call.
21779 (hash_clear): Use ASET.
21780
21781 2008-02-08 Richard Stallman <rms@gnu.org>
21782
21783 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21784 If FORCE, and frame has a surrogate minibuffer for another frame,
21785 delete the other frame first.
21786
21787 2008-02-07 Timo Savola <timo.savola@iki.fi>
21788
21789 * xterm.c (x_detect_focus_change): Handle embed client message.
21790 (handle_one_xevent): Ditto.
21791 (handle_one_xevent): If embedded and we get a button press/release,
21792 request focus.
21793 (xembed_set_info, xembed_send_message): New functions.
21794 (x_make_frame_visible): Call xembed_set_info if embedded.
21795 (x_make_frame_invisible): Call xembed_set_info if embedded.
21796 (x_term_init): Initialize Xatom_XEMBED.
21797 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21798 (x_iconify_frame): Ditto.
21799
21800 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21801 (enum xembed_info, enum xembed_message, enum xembed_focus)
21802 (enum xembed_modifier, enum xembed_accelerator): New.
21803 (xembed_set_info, xembed_send_message): Declare.
21804 (FRAME_X_EMBEDDED_P): New.
21805
21806 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21807 gtk_plug_new.
21808
21809 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21810 window ID of a frame.
21811 (x_window): Reparent frame if embedded.
21812 (Fx_create_frame): Don't set border width if embedded.
21813
21814 * emacs.c (USAGE3): Add --parent-id.
21815 (standard_args): Ditto.
21816
21817 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21818
21819 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21820
21821 2008-02-07 Jim Meyering <meyering@redhat.com>
21822
21823 Use "do...while (0)", not "if (1)...else" in macro definitions.
21824 The latter provokes a warning from gcc about the empty else, when
21825 followed by ";". Also, without that trailing semicolon, it would
21826 silently swallow up any following statement.
21827 * syntax.h (SETUP_SYNTAX_TABLE)
21828 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21829 * buffer.h (DECODE_POSITION): Likewise.
21830 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21831 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21832 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21833 (FETCH_CHAR_ADVANCE): Likewise.
21834 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21835
21836 2008-02-07 Jim Meyering <meyering@redhat.com>
21837
21838 * lread.c [lint]: Don't include <sys/inode.h>.
21839
21840 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21841
21842 * xselect.c (x_handle_dnd_message):
21843 * xmenu.c (digest_single_submenu, xmenu_show):
21844 * xdisp.c (with_echo_area_buffer_unwind_data)
21845 (format_mode_line_unwind_data, unwind_format_mode_line)
21846 (display_menu_bar):
21847 * eval.c (Ffetch_bytecode):
21848 * doc.c (store_function_docstring):
21849 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21850 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21851 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21852
21853 2008-02-07 Kenichi Handa <handa@m17n.org>
21854
21855 * ftxfont.c (ftxfont_open): Don't set
21856 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21857
21858 * ftfont.c (ftfont_open): Fix previous change.
21859
21860 2008-02-06 Jason Rumney <jasonr@gnu.org>
21861
21862 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21863 Use cached metrics for ASCII characters.
21864 (w32font_open_internal): Don't set font's owning_frame.
21865 Cache metrics for ASCII characters.
21866
21867 * w32font.h (struct w32font_info): Add ascii_metrics.
21868 Remove owning_frame.
21869
21870 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21871
21872 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21873 to negative value.
21874
21875 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21876
21877 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21878
21879 * charset.c (syms_of_charset): Set QCtest and Qeq.
21880
21881 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21882
21883 * process.c (Fstart_process):
21884 * callproc.c (Fcall_process): Handle the case where
21885 Funhandled_file_name_directory returns nil.
21886
21887 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21888 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21889 * font.c (check_gstring): Use them and AREF to access the vector before
21890 we know it's really a gstring.
21891 (Ffont_shape_text): Fix typo.
21892 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
21893
21894 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21895 Declare.
21896
21897 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21898
21899 2008-02-05 Jason Rumney <jasonr@gnu.org>
21900
21901 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21902 Set smallest_font_height and smallest_char_width in display info.
21903
21904 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21905
21906 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21907
21908 2008-02-05 Miles Bader <miles@gnu.org>
21909
21910 * xfaces.c (get_lface_attributes, merge_named_face)
21911 (lookup_named_face, lookup_derived_face, realize_named_face):
21912 Revert 2008-02-01 change by cyd@stupidchicken.com.
21913
21914 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21915
21916 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21917 fallback fonts.
21918 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21919
21920 2008-02-04 Jason Rumney <jasonr@gnu.org>
21921
21922 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21923 set full_name.
21924 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21925
21926 2008-02-03 Jason Rumney <jasonr@gnu.org>
21927
21928 * makefile.w32-in (OBJ1): Include font.o here.
21929 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21930
21931 2008-02-02 Jason Rumney <jasonr@gnu.org>
21932
21933 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21934
21935 2008-02-01 Jason Rumney <jasonr@gnu.org>
21936
21937 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21938
21939 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21940
21941 2008-02-01 Andreas Schwab <schwab@suse.de>
21942
21943 * Makefile.in (shortlisp, lisp): Update for rename of
21944 ../lisp/language/myanmar.el.
21945
21946 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
21947
21948 * xfaces.c (get_lface_attributes): Delete function.
21949 (merge_named_face, lookup_named_face, lookup_derived_face)
21950 (realize_named_face): Call lface_from_face_name directly, and use
21951 the fact that merge_face_vectors does not alter its FROM argument.
21952
21953 2008-02-01 Jason Rumney <jasonr@gnu.org>
21954
21955 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21956 input in the default locale. Handle non-Unicode multibyte input.
21957
21958 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21959
21960 * fontset.c (reorder_font_vector): Exclude nil elements from the
21961 font group. Don't try multiple fonts.
21962 (fontset_font): Adjust for the above change.
21963 (Finternal_char_font): Return nil if the found font doesn't
21964 contain the character ch.
21965
21966 * Makefile.in (lisp, shortlisp): Add cham.el.
21967
21968 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21969
21970 * font.h (FONTP): Make it return 1 also for a font-object.
21971
21972 * .gdbinit (xfontset): New function.
21973
21974 * font.c (font_find_for_lface): Check if the character C is
21975 supported or not only for the first font.
21976
21977 * fontset.c (reorder_font_vector): Fix typo.
21978 (fontset_find_font): Don't add a font-spec specifying a script.
21979 Use 0 (not Qt) for the indication of empty font-group. Change the
21980 format of RFONT-DEF. Return Qt if no font in the font-group
21981 support the character.
21982 (fontset_font): Adjust for the above change. If no font was
21983 found the character, remember that.
21984 (face_for_char): Adjust for the change of RFONT-DEF.
21985 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21986 no font for the target.
21987 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21988
21989 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21990
21991 * font.c (font_load_for_face): Handle the case that the font in
21992 face->lface is a string.
21993
21994 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21995
21996 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21997
21998 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21999
22000 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
22001 Fix previous change. If the frame is not on a window system,
22002 signal an error.
22003
22004 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22005
22006 * coding.c (decode_coding_object, encode_coding_object):
22007 Adjust marker positions after conversion.
22008
22009 * lisp.h (struct Lisp_Marker): New member need_adjustment.
22010
22011 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22012
22013 * font.c (font_find_for_lface): Fix the handling of the return
22014 value of font_has_char.
22015 (Ffont_shape_text): Fix previous change.
22016
22017 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
22018 (fontset_ref_and_range): Delete it.
22019 (fontset_find_font): Call char_table_ref_and_range instead of
22020 FONTSET_REF_AND_RANGE.
22021 (make_fontset): Don't setup font groups of Latin here.
22022 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
22023 (new_fontset_from_font): Make the specified font the default for
22024 all Latin characters.
22025
22026 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22027
22028 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
22029 is on a window system before accessing the fontset of the frame.
22030
22031 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22032
22033 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
22034
22035 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
22036 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
22037
22038 * font.c (Ffont_shape_text): If the font driver doesn't have a
22039 shaper function, make zero-width glyphs to have at least one-pixel
22040 width. Fix setting of `to' field of glyphs.
22041
22042 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22043
22044 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
22045 glyphs.
22046
22047 * font.h (struct font_driver): Improve docstring of member `shape'.
22048
22049 2008-02-01 Kenichi Handa <handa@m17n.org>
22050
22051 * composite.c (syms_of_composite): Fix docstring of
22052 auto-composition-function.
22053
22054 * font.h (LGLYPH_SIZE): New macro.
22055
22056 * font.c (Ffont_fill_gstring): Stop filling when a character not
22057 supported by the font is found.
22058 (Ffont_shape_text): When a shape callback function returns nil,
22059 try at most two more times with larger gstring.
22060 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
22061
22062 * xdisp.c (handle_auto_composed_prop): Change the argument to
22063 auto-composition-function.
22064
22065 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
22066 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
22067 Lispy glyph and store it in the lgstring.
22068
22069 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
22070
22071 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
22072
22073 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22074
22075 * font.c (Ffont_shape_text): Avoid unnecessary composition.
22076
22077 * fontset.c (Vfont_encoding_charset_alist): New variable.
22078 (syms_of_fontset): DEFVAR it.
22079 (reorder_font_vector, fontset_find_font): Optimize for the case of
22080 no need of reordering.
22081 (face_for_char): Map the charset property by
22082 Vfont_encoding_charset_alist.
22083
22084 2008-02-01 Jason Rumney <jasonr@gnu.org>
22085
22086 * w32font.c (logfonts_match): Don't check adstyle here.
22087 (font_matches_spec): Check here against physical font instead.
22088 (add_font_entity_to_list): Avoid some substitutions.
22089
22090 * font.c (font_parse_fcname): Default weight and slant to normal.
22091 (font_score): Prefer normal fonts if weight or slant unspecified.
22092 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22093 match freetype scores.
22094
22095 2008-02-01 Jason Rumney <jasonr@gnu.org>
22096
22097 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22098 font, as it may have been deleted.
22099 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22100 most common hyphenless variation.
22101 (logfonts_match): Check generic family.
22102 (font_matches_spec): Don't check generic family here.
22103 (fill_in_logfont): Set generic family based on adstyle.
22104
22105 * w32font.h (w32font_get_cache): Update declaration.
22106
22107 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22108
22109 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22110
22111 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22112 If none of the new drivers are available, call font_update_drivers
22113 with the old drivers.
22114
22115 * w32font.c (w32font_get_cache): Adjust the argument type.
22116
22117 * xfont.c (xfont_get_cache): Adjust the argument type.
22118
22119 * font.h (struct font_driver): Change argument type of get_cache.
22120
22121 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22122
22123 * font.c (Ffont_get): Fix arguments to Fassoc.
22124 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22125 (font_clear_cache): New function.
22126 (font_list_entities, font_matching_entity): Use font_get_cache.
22127 (font_update_drivers): Call font_clear_cache when finishing a driver.
22128
22129 * fontset.c (fontset_find_font): Fix previous change.
22130
22131 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22132
22133 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22134 dpyinfo->font_table.
22135 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22136 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22137
22138 * font.c (font_at): Handle the case that the arg C is negative.
22139 Handle the unibyte case.
22140 (Ffont_at): Call font_at with the arg C -1.
22141
22142 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22143 the position here, and call font_at with the arg C -1.
22144 Don't check the range of the existing composition at the point.
22145
22146 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22147
22148 * fontset.c (fontset_add): New args charset_id and family.
22149 Change caller.
22150 (load_font_get_repertory, fontset_find_font): Assume that
22151 font_spec is always a font-spec object.
22152 (Fset_fontset_font): Always store a font-spec object in a fontset.
22153
22154 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22155 instead of get_property_and_range.
22156
22157 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22158
22159 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22160 (xftfont_open): Don't keep locking face.
22161 (xftfont_close): Don't unlock face.
22162 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22163
22164 * fontset.c (fontset_find_font): Don't prefer a font of
22165 supplementary charset.
22166
22167 2008-02-01 Kenichi Handa <handa@m17n.org>
22168
22169 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22170 script, langsys_tag to langsys, new member script.
22171 (OTF_TAG_STR): Terminate by '\0'.
22172 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
22173 listing to the script specified in that property. Fix arg to
22174 OTF_check_features.
22175
22176 2008-02-01 Jason Rumney <jasonr@gnu.org>
22177
22178 * w32font.h: New file.
22179
22180 * w32font.c: Include it.
22181 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22182 (w32font_open): Set owning_frame.
22183 (w32font_text_extents): Use owning_frame.
22184 (struct font_callback_data): Add opentype_only field.
22185 (add_font_entity_to_list): Use it to filter fonts.
22186 Don't check against full name.
22187 (w32font_list_internal): New function.
22188 (w32font_list): Use it.
22189 (w32font_match_internal): New function.
22190 (w32font_match): Use it.
22191 (w32font_open_internal): New function.
22192 (w32font_open): Use it.
22193 (w32font_get_cache, w32font_close, w32font_has_char)
22194 (w32font_encode_char, w32font_text_extents, w32font_draw):
22195 Make non-static.
22196
22197 * makefile.w32-in (w32font.o): Depend on w32font.h.
22198
22199 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22200
22201 * charset.c (Fdefine_charset_internal): Record a supplementary
22202 charset at the tail of Vcharset_order_list.
22203
22204 * font.c (Ffont_shape_text): Fix the return value.
22205
22206 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22207
22208 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22209
22210 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22211
22212 * ftfont.c (struct OpenTypeSpec): New struct.
22213 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22214 (ftfont_get_open_type_spec): New function.
22215 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22216
22217 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22218
22219 2008-02-01 Jason Rumney <jasonr@gnu.org>
22220
22221 * w32font.c (add_font_entity_to_list): Compare only the beginning
22222 of full name.
22223
22224 2008-02-01 Kenichi Handa <handa@m17n.org>
22225
22226 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22227 Never return HANDLED_RECOMPUTE_PROPS.
22228
22229 2008-02-01 Kenichi Handa <handa@m17n.org>
22230
22231 * font.c (font_gstring_produce): Delete it.
22232
22233 * composite.h (COMPOSITION_METHOD):
22234 Handle COMPOSITION_WITH_GLYPH_STRING.
22235
22236 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22237
22238 * xfont.c (Qx): Delete.
22239 (syms_of_xfont): Don't initialize Qx.
22240
22241 * composite.h (enum composition_method):
22242 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22243
22244 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22245
22246 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22247 (choose_face_font): Accept new form of font-spec.
22248
22249 * frame.h (font_driver_list): Declare it unconditionally.
22250 (struct frame): Define members font_driver_list and font_data_list
22251 unconditionally.
22252
22253 * fontset.c: Include "font.h" unconditionally.
22254 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22255 (Fset_fontset_font): Accept a font-spec object.
22256
22257 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22258 PIXEL_SIZE part a wild card.
22259
22260 * dispextern.h (struct glyph_string): Define members clip and
22261 num_clips unconditionally.
22262 (struct face): Define members font_info and extra unconditionally.
22263
22264 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22265 ftfont_info only when HAVE_LIBOTF is defined.
22266
22267 2008-02-01 Andreas Schwab <schwab@suse.de>
22268
22269 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22270 and end.
22271
22272 2008-02-01 Jason Rumney <jasonr@gnu.org>
22273
22274 * w32font.c (w32font_driver): Add new fields.
22275
22276 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22277
22278 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22279 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22280 (LIBES): Add @M17N_FLT_CFLAGS@.
22281
22282 * composite.c (compose_text): Don't treat the new style
22283 composition specially.
22284
22285 * emacs.c (main): Call syms_of_font unconditionally.
22286
22287 * font.h (FONT_ENTITY_NOT_LOADABLE)
22288 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22289 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22290 (struct font_driver): New member shape.
22291 (font_registry_charsets): Extern it.
22292 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22293 (font_otf_capability, font_drive_otf): Delete their externs.
22294
22295 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22296 (font_charset_alist, font_registry_charsets): Move from xfont.c
22297 and rename.
22298 (font_prop_validate_otf): New function.
22299 (font_property_table): Register it for QCotf.
22300 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22301 (font_drive_otf): Delete.
22302 (font_prepare_composition): New arg F. Adjust for the change of
22303 lispy gstring.
22304 (font_find_for_lface): New arg C.
22305 (font_load_for_face): Adjust for the change of font_find_for_lface.
22306 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22307 lispy gstring.
22308 (Ffont_shape_text): New function.
22309 (Fopen_font): If the font size is not given, use 12-pixel.
22310 (Ffont_at): New arg STRING.
22311 (syms_of_font): Initialize font_charset_alist.
22312 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22313 conditionally.
22314
22315 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22316 fonts of the same font-spec. Change the format of RFONT-DEF.
22317 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22318 Adjust for the change of RFONT-DEF.
22319 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22320
22321 * ftfont.h: New file.
22322
22323 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22324 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22325 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22326 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22327 font_otf_capability and font_drive_otf, set ftfont_shape.
22328 (ftfont_list): Adjust for the change of :otf property value.
22329 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22330 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22331 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22332 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22333 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22334 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22335
22336 * w32term.c (x_draw_composite_glyph_string_foreground):
22337 Adjust for the change of lispy gstring.
22338
22339 * xdisp.c (handle_composition_prop): Adjust for the change of
22340 lispy gstring. Call a function for auto-composition with the
22341 third arg it->window.
22342 (fill_composite_glyph_string): Adjust for the change of lispy string.
22343 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22344
22345 * xfaces.c (set_font_frame_param): Adjust for the change of
22346 font_find_for_lface.
22347
22348 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22349 (xfont_registry_charsets): Likewise. Change caller.
22350 (syms_of_xfont): Don't handle x_font_charset_alist.
22351
22352 * xftfont.c: Include "ftfont.h".
22353 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22354 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22355 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22356 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22357 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22358 Set xftfont_driver.shape to xftfont_shape.
22359
22360 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22361 the change of lispy gstring.
22362
22363 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22364
22365 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22366
22367 2008-02-01 Jason Rumney <jasonr@gnu.org>
22368
22369 * w32font.c (w32font_draw): Fill background manually.
22370
22371 2008-02-01 Jason Rumney <jasonr@gnu.org>
22372
22373 * font.c (Qfontp): Remove unused symbol.
22374 (QCantialias): New symbol.
22375 (syms_of_font): Define it.
22376 (font_property_table): Set a validator for QCantialias.
22377
22378 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22379 Define if not already.
22380 (QCfamily): Share with xfaces.c.
22381 (Qstandard, Qsubpixel, Qnatural): New symbols.
22382 (syms_of_w32font): Define them. Don't define QCfamily here.
22383 (w32_antialias_type, lispy_antialias_type): New functions.
22384 (w32_enumfont_pattern_entity): New arg requested_font.
22385 Set antialias parameter if non-default was requested.
22386 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22387
22388 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22389
22390 * lread.c (read1): Undo the previous change.
22391
22392 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22393
22394 * frame.c (Fdelete_frame): Call font_update_drivers only when
22395 USE_FONT_BACKEND is defined.
22396
22397 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22398
22399 * font.h (struct font_bitmap): New member bits_per_pixel.
22400 (struct font_driver): New members start_for_frame and end_for_frame.
22401 (struct font_data_list): New struct.
22402 (font_put_frame_data, font_get_frame_data): Extern them.
22403
22404 * frame.h (struct frame): New member font_data_list.
22405
22406 * font.c (font_update_drivers): Call driver->start_for_frame and
22407 driver->end_for_frame at proper timings.
22408 (font_put_frame_data, font_get_frame_data): New functions.
22409 (Ffont_spec): Add usage in the docstring.
22410
22411 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22412 (Fdelete_frame): Call font_update_drivers.
22413
22414 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22415 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22416 (xftfont_get_xft_draw): New function.
22417 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22418 (xftfont_end_for_frame): New function.
22419 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22420
22421 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22422 Change argument. Cache GCs in the per-frame data.
22423 (struct ftxfont_frame_data): New struct.
22424 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22425 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22426 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22427 (ftxfont_end_for_frame): New function.
22428 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22429
22430 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22431
22432 2008-02-01 Kenichi Handa <handa@m17n.org>
22433
22434 * xselect.c (Vselection_coding_system)
22435 (Vnext_selection_coding_system): Delete them.
22436 (syms_of_xselect): Don't declare selection-coding-system and
22437 next-selection-coding-system. They are declared in select.el.
22438
22439 2008-02-01 Jason Rumney <jasonr@gnu.org>
22440
22441 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22442
22443 * w32fns.c: Include imm.h.
22444 (get_composition_string_fn, get_ime_context_fn): New optional
22445 system functions.
22446 (globals_of_w32fns): Load them from imm32.dll.
22447 (ignore_ime_char): New flag.
22448 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22449 WM_IME_ENDCOMPOSITION messages.
22450
22451 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22452 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22453
22454 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22455
22456 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22457 (READCHAR_REPORT_MULTIBYTE): New macro.
22458 (readchar): New 2nd arg MULTIBYTE.
22459 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22460 Make symbol's name multibyte according to the multibyteness of the
22461 source.
22462
22463 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22464
22465 * xfaces.c (face_for_overlay_string): Call lookup_face with
22466 correct arguments (fix of synching with the trunk).
22467
22468 2008-02-01 Kenichi Handa <handa@m17n.org>
22469
22470 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22471 (font_prop_validate_non_neg, font_prop_validate_spacing):
22472 Delete argument prop_index.
22473 (font_property_table): Change arguments to validater. Change Callers.
22474 (font_lispy_object): Delete.
22475 (font_at): Use font_find_object instead fo font_lispy_object.
22476
22477 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22478
22479 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22480 and file names.
22481
22482 2008-02-01 Jason Rumney <jasonr@gnu.org>
22483
22484 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22485 (font_matches_spec): Remove debug output.
22486 (add_font_entity_to_list): Avoid using substituted fonts.
22487
22488 2008-02-01 Jason Rumney <jasonr@gnu.org>
22489
22490 * doc.c (Fsnarf_documentation):
22491 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22492
22493 2008-02-01 Miles Bader <miles@gnu.org>
22494
22495 * dispextern.h (struct glyph_row): Only define "clip" field if
22496 HAVE_WINDOW_SYSTEM is defined.
22497
22498 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22499
22500 Fix up multi-tty merge.
22501
22502 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22503 and indentation.
22504
22505 * xfaces.c (free_realized_face, clear_face_gcs):
22506 Include font_done_for_face in the input_blocked section, just in case.
22507
22508 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22509 (get_char_face_and_encoding): Undo last change and remove the *other*
22510 duplicate definition (i.e. keep the one that's better scoped and that
22511 includes code for the font-backend).
22512
22513 * terminal.c (create_terminal): Default keyboard_coding to
22514 `no-conversion' and terminal_coding to `undecided'.
22515
22516 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22517
22518 * fontset.c (free_realized_fontsets): Check that the table entry does
22519 contain a fontset before trying to compare it to `base'.
22520
22521 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22522 syms_of_charset, and syms_of_coding earlier because init_window_once
22523 now needs Vcoding_system_hash_table to be setup.
22524
22525 * coding.h (default_buffer_file_coding): Remove.
22526
22527 * coding.c (default_buffer_file_coding): Remove.
22528 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22529 than ->symbol, and use the terminal-local coding system.
22530 (syms_of_coding): Don't setup the coding-systems that are not
22531 terminal-local.
22532 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22533
22534 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22535 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22536
22537 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22538 in chartab.c and were re-added here by mistake.
22539 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22540
22541 * doc.c (Fsnarf_documentation):
22542 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22543 src to etc.
22544
22545 * ChangeLog.10: Add mistakenly removed entry.
22546
22547 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22548
22549 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22550
22551 2008-02-01 Miles Bader <miles@gnu.org>
22552
22553 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22554 Add extra args to FACE_FOR_CHAR.
22555
22556 2008-02-01 Kenichi Handa <handa@m17n.org>
22557
22558 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22559 in sequence.
22560
22561 * chartab.c (map_sub_char_table, map_char_table): If the range
22562 contains just one character, call the function with that character
22563 even if the depth is not 3.
22564
22565 2008-02-01 Jason Rumney <jasonr@gnu.org>
22566
22567 * w32font.c (w32font_text_extents): Calculate metrics for the
22568 whole string.
22569
22570 2008-02-01 Jason Rumney <jasonr@gnu.org>
22571
22572 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22573
22574 2008-02-01 Jason Rumney <jasonr@gnu.org>
22575
22576 * w32term.c (x_set_glyph_string_clipping):
22577 Use get_glyph_string_clip_rects.
22578 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22579 Adjust for the change of struct glyph_string.
22580
22581 * w32font.c (w32font_draw): Do clipping here.
22582
22583 2008-02-01 Kenichi Handa <handa@m17n.org>
22584
22585 * xftfont.c (xftfont_draw): Adjust for the change of struct
22586 glyph_string.
22587
22588 * xterm.c (x_set_glyph_string_clipping):
22589 Use get_glyph_string_clip_rects.
22590 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22591 Adjust for the change of struct glyph_string.
22592
22593 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22594 the resulting clip(s}.
22595 (expose_overlaps): Add arg r. Change callers. Set it to
22596 row->clip temporarily.
22597 (expose_window): Redraw rows overlapping the exposed area.
22598
22599 * dispextern.h (struct glyph_row): New member clip.
22600 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22601 clip_height, new member clip, and num_clips.
22602
22603 2008-02-01 Kenichi Handa <handa@m17n.org>
22604
22605 * data.c (Fchar_or_string_p): Fix docstring.
22606
22607 2008-02-01 Kenichi Handa <handa@m17n.org>
22608
22609 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22610 create a temporary XftDraw object.
22611
22612 2008-02-01 Kenichi Handa <handa@m17n.org>
22613
22614 * font.c (Ffontp): Fix docstring.
22615
22616 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22617 strong evidence of ISO-2022.
22618
22619 2008-02-01 Kenichi Handa <handa@m17n.org>
22620
22621 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22622 SYNTAX_ENTRY_FOLLOW_PARENT.
22623
22624 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22625
22626 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22627 its type.
22628 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22629 Update to the new type of weak_hash_tables and next_weak.
22630
22631 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22632 a plain C pointer to Lisp_Hash_Table.
22633
22634 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22635 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22636 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22637 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22638 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22639 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22640 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22641 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22642 (GC_EQ): Remove since they've been identical to their non-GC_
22643 alter-egos ever since the markbit was eradicated.
22644
22645 * alloc.c:
22646 * buffer.c:
22647 * buffer.h:
22648 * data.c:
22649 * fileio.c:
22650 * filelock.c:
22651 * fns.c:
22652 * frame.h:
22653 * lisp.h:
22654 * macterm.c:
22655 * print.c:
22656 * process.c:
22657 * w32fns.c:
22658 * w32menu.c:
22659 * w32term.c:
22660 * xfns.c:
22661 * xmenu.c:
22662 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22663
22664 2008-02-01 Kenichi Handa <handa@m17n.org>
22665
22666 * chartab.c (map_sub_char_table): Make it work for the top-level
22667 char-table. Fix handling of parent char-table.
22668 (map_char_table): Adjust for the above change.
22669
22670 2008-02-01 Jason Rumney <jasonr@gnu.org>
22671
22672 * w32font.c (Qgdi): Rename from Qw32.
22673
22674 2008-02-01 Jason Rumney <jasonr@gnu.org>
22675
22676 * w32bdf.c (get_quoted_string): Make function static.
22677
22678 2008-02-01 Kenichi Handa <handa@m17n.org>
22679
22680 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22681 bigger ascent and descent than those of the font, use them as
22682 font's ascent and descent.
22683
22684 2008-02-01 Kenichi Handa <handa@m17n.org>
22685
22686 * Makefile.in (${lispsource}international/charprop.el): Move this
22687 target within "#ifdef HAVE_UNIDATA" and "#endif".
22688
22689 2008-02-01 Kenichi Handa <handa@m17n.org>
22690
22691 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22692 (shortlisp): Add ../lisp/language/tai-viet.el.
22693
22694 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
22695
22696 * Makefile.in (${lispsource}international/charprop.el): Depend on
22697 temacs${EXEEXT}.
22698
22699 2008-02-01 Jason Rumney <jasonr@gnu.org>
22700
22701 * w32font.c (w32font_close): Delete the GDI font object.
22702
22703 * w32menu.c: Include character.h.
22704
22705 * w32proc.c: Likewise.
22706
22707 * w32select.c: Likewise.
22708
22709 * makefile.w32-in (w32proc.o): Depend on character.h.
22710
22711 2008-02-01 Jason Rumney <jasonr@gnu.org>
22712
22713 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22714
22715 * w32menu.c (syms_of_w32menu): Likewise.
22716
22717 * w32proc.c (syms_of_ntproc): Likewise.
22718
22719 * w32select.c (syms_of_w32select): Likewise.
22720
22721 * w32term.c (syms_of_w32term): Likewise.
22722
22723 2008-02-01 Jason Rumney <jasonr@gnu.org>
22724
22725 * w32font.c (w32font_draw): Delete brush after using it.
22726
22727 2008-02-01 Jason Rumney <jasonr@gnu.org>
22728
22729 * w32font.c (w32font_open): Don't set font_idx.
22730 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22731 to font settings.
22732 (w32font_draw): Fill background explicitly.
22733
22734 2008-02-01 Jason Rumney <jasonr@gnu.org>
22735
22736 * w32term.c (w32_initialize): Don't call w32font_initialize.
22737
22738 * w32font.c (w32font_info): Remove subranges.
22739 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22740 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22741 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22742 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22743 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22744 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22745 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22746 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22747 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22748 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22749 New symbols.
22750 (font_callback_data): New struct.
22751 (w32font_list, w32font_match): Use it.
22752 (w32font_open): Don't populate subranges.
22753 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22754 (w32font_encode_char): Always return unicode code-point as-is.
22755 (w32font_text_extents): Supply a transformation matrix to
22756 GetGlyphOutline. Never look up by glyph index. Avoid looping
22757 twice. Use unicode version of GetTexExtentPoint32 instead of
22758 glyph index version.
22759 (set_fonts_frame): Remove.
22760 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22761 set frame parameter. Use backward compatible fake foundries.
22762 Save generic family in extra slot under QCfamily. Make width slot
22763 constant. Save QCspacing value. Save list of scripts instead of
22764 binary subranges.
22765 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
22766 (add_font_entity_to_list): Use font_callback_data struct.
22767 Filter unwanted fonts.
22768 (add_one_font_entity_to_list): Use font_callback_data struct.
22769 (w32_registry): Default to iso10646_1.
22770 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22771 string font registries. Don't fill in font name if it is a generic
22772 family name, fill family instead. Use spacing, family and script
22773 extra info to fill pitch, family and charset fields.
22774 (list_all_matching_fonts): Use font_callback_data struct.
22775 (unicode_range_for_char): Remove.
22776 (font_supported_scripts): New function.
22777 (w32font_initialize): Remove.
22778 (syms_of_w32font): Update which symbols are defined.
22779
22780 2008-02-01 Jason Rumney <jasonr@gnu.org>
22781
22782 * font.c (font_pixel_size): Reverse assq_no_quit args.
22783
22784 * w32term.h (FONT_WIDTH): Report max width, not average.
22785 (FONT_MAX_WIDTH): Remove.
22786 (FONT_AVG_WIDTH): New macro.
22787
22788 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22789 redefinition of FONT_WIDTH.
22790
22791 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22792 (w32_cache_char_metrics): Use FONT_WIDTH.
22793
22794 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22795
22796 2008-02-01 Jason Rumney <jasonr@gnu.org>
22797
22798 * w32font.c (w32font_open): Make lfHeight negative.
22799
22800 * w32fns.c (x_default_font_parameter): Use new style font name.
22801 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22802
22803 2008-02-01 Jason Rumney <jasonr@gnu.org>
22804
22805 * w32font.c (QCsubranges): New symbol.
22806 (w32font_open, w32font_has_char): Get subranges from subproperty
22807 of extra.
22808 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22809 (syms_of_w32font): Define :subranges symbol.
22810
22811 * font.c (font_put_extra): Expose externally.
22812
22813 * font.h (font_put_extra): Move declaration from font.c.
22814
22815 * font.c (Ffont_get): Use font driver to determine otf capability.
22816 (adjust_anchor): Check if driver defines anchor_point before using.
22817
22818 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22819 (w32font_draw): Use options.
22820 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22821 Fix detection of truetype fonts.
22822 (registry_to_w32_charset): Handle charsets other than iso8859-1
22823 expressed as lisp symbols.
22824 (w32_registry): Express charset as lisp symbol.
22825 (fill_in_logfont): Reverse pixel and point height logic.
22826 Don't set width here. Set quality to default.
22827
22828 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22829 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22830
22831 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22832 Remove redundant loop and allocation.
22833
22834 * makefile.w32-in (font.o, w32font.o): New objects.
22835 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22836 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22837
22838 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22839 STORE_XCHARB a valid l-value.
22840
22841 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22842 calculations for non-Truetype fonts.
22843 (x_draw_glyph_string): Sync with xterm.c.
22844 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22845 Remove redundant code.
22846 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22847
22848 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22849 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22850
22851 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22852 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22853
22854 * w32font.c: New file for w32 font backend.
22855
22856 2008-02-01 Kenichi Handa <handa@m17n.org>
22857
22858 * term.c: Don't include "buffer.h" twice.
22859
22860 2008-02-01 Kenichi Handa <handa@m17n.org>
22861
22862 * character.c (Funibyte_string): New function.
22863 (syms_of_character): Defsubr it.
22864
22865 2008-02-01 Jason Rumney <jasonr@gnu.org>
22866
22867 * w32term.c [USE_FONT_BACKEND]:
22868 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22869 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22870 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22871 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22872 (x_free_frame_resources): Sync with xterm.c.
22873
22874 2008-02-01 Andreas Schwab <schwab@suse.de>
22875
22876 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22877 char-table size.
22878
22879 2008-02-01 Kenichi Handa <handa@m17n.org>
22880
22881 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22882
22883 2008-02-01 Kenichi Handa <handa@m17n.org>
22884
22885 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22886 font_otf_gpos, add font_drive_otf.
22887
22888 * fontset.c (fontset_find_font): Pay attention to font size
22889 specified for a font.
22890 (reorder_font_vector): Check contents of font_def.
22891
22892 * font.c (struct otf_list): Delete it.
22893 (otf_list): Make it a lisp variable.
22894 (otf_open): Use lispy otf_list.
22895 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22896 (check_otf_features): New function.
22897 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22898 New functions.
22899 (font_drive_otf): New function merging font_otf_gsub and
22900 font_otf_gpos.
22901 (font_open_for_lface): New arg spec. Change argument order.
22902 (font_load_for_face): Adjust for the change of font_open_for_lface.
22903 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22904 Ffont_otf_gpos.
22905 (syms_of_font): Staticpro otf_list. Delete defsubr of
22906 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22907
22908 * xfaces.c (set_font_frame_param): Adjust for the change of
22909 font_open_for_lface.
22910
22911 * font.h (font_open_for_lface): Adjust prototype.
22912 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22913 member otf_drive.
22914 (font_otf_gsub, font_otf_gpos): Delete externs.
22915 (font_drive_otf): Extern it.
22916
22917 2008-02-01 Kenichi Handa <handa@m17n.org>
22918
22919 * font.c (font_at): If the window W is not on a window system,
22920 return Qnil.
22921
22922 * coding.c (produce_chars, encode_coding): Don't call
22923 insert_from_gap if no characters to produce.
22924
22925 2008-02-01 Kenichi Handa <handa@m17n.org>
22926
22927 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22928 Fclear_face_cache.
22929
22930 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22931
22932 2008-02-01 Miles Bader <miles@gnu.org>
22933
22934 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22935 Parse "--disable-font-backend" option.
22936 (standard_args): Add "--disable-font-backend" option.
22937
22938 2008-02-01 Kenichi Handa <handa@m17n.org>
22939
22940 * fontset.c (fontset_find_font): New function.
22941 (fontset_font): Use fontset_find_font.
22942 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22943 Register the specified font for all Latin characters.
22944 (new_fontset_from_font): Register the specified font for all Latin
22945 characters.
22946 (dump_fontset): For a realized fontset, include the base fontset
22947 name in the returned vector.
22948
22949 2008-02-01 Kenichi Handa <handa@m17n.org>
22950
22951 * character.h (CHAR_STRING): Cast C to unsigned on calling
22952 char_string.
22953
22954 * character.c (char_string): Type of arg C changed to unsigned.
22955 Signal an error if C is an invalid character code.
22956
22957 * editfns.c (general_insert_function, Fchar_to_string):
22958 Use CHARACTERP, not INTEGERP.
22959
22960 2008-02-01 Kenichi Handa <handa@m17n.org>
22961
22962 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22963 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22964
22965 * regex.c (analyse_first): Fix for multibyte characters in "case
22966 charset:" and "case categoryspec:".
22967
22968 2008-02-01 Andreas Schwab <schwab@suse.de>
22969
22970 * Makefile.in (LIBES): Move standard libraries to the end.
22971
22972 2008-02-01 Kenichi Handa <handa@m17n.org>
22973
22974 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22975 nonzero, don't shrink the buffer nextb.
22976
22977 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22978
22979 * coding.c (coding_alloc_by_making_gap): New arg offset.
22980 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22981 offset.
22982 (decode_coding_iso_2022): Update coding->safe_charsets.
22983 (decode_coding_gap): Temporarily set
22984 current_buffer->text->inhibit_shrinking to 1.
22985
22986 2008-02-01 Kenichi Handa <handa@m17n.org>
22987
22988 * xterm.c (x_draw_composite_glyph_string_foreground):
22989 Fix indexing into elements of s->cmp and s->char2b.
22990
22991 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
22992
22993 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22994
22995 2008-02-01 Kenichi Handa <handa@m17n.org>
22996
22997 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22998 target_multibyte instead of multibyte.
22999 (re_match_2_internal): Call bcmp_translate with target_multibyte.
23000 (bcmp_translate): Change the argument name from multibyte to
23001 target_multibyte.
23002
23003 2008-02-01 Kenichi Handa <handa@m17n.org>
23004
23005 These changes are to compile a regexp into a pattern that can be
23006 used both for multibyte and unibyte targets.
23007
23008 * Makefile.in (search.o): Depend on charset.h.
23009
23010 * character.c (multibyte_char_to_unibyte_safe): New function.
23011
23012 * search.c: Include "charset.h".
23013 (compile_pattern_1): Delete argument multibyte. Don't set
23014 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
23015 (compile_pattern): Don't compare cp->buf.target_multibyte.
23016 Compare cp->buf.charset_unibyte.
23017 (compile_pattern): Set cp->buf.target_multibyte.
23018
23019 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
23020
23021 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
23022
23023 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
23024 multibyte. Change callers.
23025 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
23026 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
23027 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
23028 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
23029 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
23030 (regex_compile): Make the compiled pattern usable both for
23031 multibyte and unibyte targets.
23032 (analyse_first): Make the fastmap usable both for multibyte and
23033 unibyte targets.
23034 (TRANSLATE_VIA_MULTIBYTE): Delete.
23035 (re_match_2_internal): Pay attention to the case that the
23036 multibyteness of bufp and target may be different.
23037
23038 2008-02-01 Kenichi Handa <handa@m17n.org>
23039
23040 * xdisp.c (x_produce_glyphs): When a font is not found, make the
23041 empty box occupy at least one column width.
23042
23043 2008-02-01 Miles Bader <miles@gnu.org>
23044
23045 * Makefile.in: Remove redundant HAVE_XFT clause.
23046
23047 2008-02-01 Kenichi Handa <handa@m17n.org>
23048
23049 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
23050
23051 2008-02-01 Kenichi Handa <handa@m17n.org>
23052
23053 * fontset.c (Finternal_char_font): Fix for the case of POSITION
23054 being nil.
23055
23056 2008-02-01 Kenichi Handa <handa@m17n.org>
23057
23058 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
23059
23060 2008-02-01 Kenichi Handa <handa@m17n.org>
23061
23062 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
23063
23064 2008-02-01 Kenichi Handa <handa@m17n.org>
23065
23066 * search.c (simple_search): Fix previous change.
23067
23068 2008-02-01 Kenichi Handa <handa@m17n.org>
23069
23070 * xftfont.c (ftfont_font_format): Extern declaration.
23071
23072 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
23073
23074 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
23075 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
23076
23077 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
23078 (ftfont_font_format): Fix previous change.
23079
23080 * font.h (Ffont_xlfd_name): EXFUN it.
23081
23082 * font.c (font_parse_xlfd): Fix the array size of `f'.
23083 (register_font_driver): Use EQ to compare driver->type.
23084
23085 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
23086 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
23087 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
23088
23089 2008-02-01 Kenichi Handa <handa@m17n.org>
23090
23091 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23092 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23093
23094 2008-02-01 Kenichi Handa <handa@m17n.org>
23095
23096 * xfont.c (xfont_open): Set font->format.
23097
23098 * xftfont.c (xftfont_open): Set font->format.
23099
23100 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23101 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23102 (ftfont_open): Set font->format.
23103 (ftfont_font_format): New function.
23104
23105 * font.h (struct font): New member format.
23106
23107 * font.c (Qopentype): New variable.
23108 (syms_of_font): Defsym it.
23109 (Fquery_font): Change the format of the last element of the return
23110 value.
23111
23112 2008-02-01 Kenichi Handa <handa@m17n.org>
23113
23114 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23115 last resort.
23116
23117 2008-02-01 Kenichi Handa <handa@m17n.org>
23118
23119 * coding.c (detect_coding_charset): Fix detection of multi-byte
23120 charset.
23121
23122 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23123
23124 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23125
23126 2008-02-01 Kenichi Handa <handa@m17n.org>
23127
23128 * xdisp.c (get_next_display_element): Set it->face_id for the
23129 first component of a composition.
23130 (x_produce_glyphs): Check if the font is changed or not for composition.
23131
23132 2008-02-01 Kenichi Handa <handa@m17n.org>
23133
23134 * fontset.c (Qlatin): New variable.
23135 (syms_of_fontset): Define it as a lisp symbol.
23136 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23137
23138 2008-02-01 Kenichi Handa <handa@m17n.org>
23139
23140 * font.c (font_unparse_fcname): Pay attention to the case that
23141 some of font property is a null string.
23142
23143 2008-02-01 Kenichi Handa <handa@m17n.org>
23144
23145 * term.c: Include "composite.h".
23146 (encode_terminal_code): Output all components of composition.
23147 Check the size of encode_terminal_src.
23148 (produce_glyphs): For composition, call produce_composite_glyph.
23149 (append_composite_glyph, produce_composite_glyph): New functions.
23150
23151 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23152 is not found, get font_info from the current ascii face.
23153
23154 2008-02-01 Kenichi Handa <handa@m17n.org>
23155
23156 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23157 buffer-file-name to Qnil before calling insert_from_buffer.
23158
23159 * font.c (font_unparse_fcname): Pay attention to the case that
23160 foundry is a null string.
23161
23162 2008-02-01 Kenichi Handa <handa@m17n.org>
23163
23164 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23165
23166 * font.c (Qunicode_sip): New variable.
23167 (syms_of_font): Declare it as a Lisp symbol.
23168
23169 * font.h (Qunicode_sip): Extern it.
23170
23171 2008-02-01 Kenichi Handa <handa@m17n.org>
23172
23173 * composite.c (get_composition_id): Pay attention to TAB component.
23174
23175 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23176 TAB. Adjust for the change of s->char2b which always points to
23177 the first element of allocated memory.
23178
23179 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23180
23181 * xdisp.c (handle_composition_prop): Set it->c to the first
23182 non-TAB component.
23183 (fill_composite_glyph_string): Change argument.
23184 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23185 (x_produce_glyphs): Fix handling of left/right padding.
23186
23187 2008-02-01 Kenichi Handa <handa@m17n.org>
23188
23189 * coding.c (detect_coding_system): Fix for handling off
23190 inhibit_iso_escape_detection. Fix for the case that no coding
23191 system is defined for a specific coding category.
23192
23193 2008-02-01 Kenichi Handa <handa@m17n.org>
23194
23195 * font.c (font_matching_entity): Delete unused local var.
23196
23197 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23198 opening a font.
23199
23200 * fileio.c (Finsert_file_contents): On recovering a file, assume
23201 Unix-like eol.
23202 (choose_write_coding_system): On auto-saving a file, force
23203 Unix-like eol.
23204
23205 * coding.c (setup_coding_system): Fix setting of
23206 coding->common_flags based on eol_type.
23207 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23208 inherit from it.
23209
23210 2008-02-01 Kenichi Handa <handa@m17n.org>
23211
23212 * alloc.c (NSTATICS): Increas to 0x600.
23213
23214 2008-02-01 Kenichi Handa <handa@m17n.org>
23215
23216 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23217 (ftfont_list): Don't check :name property.
23218 (ftfont_match): New function.
23219 (ftfont_pattern_entity): If the pattern doesn't contain
23220 FC_SPACING, don't assume FC_MONO.
23221
23222 * font.h (struct font_driver): New member `match'.
23223 (font_update_drivers): Adjust prototype.
23224
23225 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23226 property of FONT.
23227 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23228 Define them unconditionally.
23229 (font_matching_entity): New function.
23230 (font_open_by_name): Try font_matching_entity if exact match is
23231 not found.
23232 (font_update_drivers): Delete the arg FONT. Return a list of
23233 actually used backends. Don't free faces, font caches here.
23234 Don't store data in frame parameters. Don't call x_set_font.
23235 (Ffont_spec): Store :name property as is.
23236 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23237 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23238 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23239 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23240 Call font->driver->otf_gsub instead of font_otf_gsub.
23241
23242 * frame.c (x_set_font_backend): Do more works that were done in
23243 font_update_drivers before.
23244
23245 * xfont.c (xfont_match): New function.
23246 (xfont_driver): Set xfont_driver.match to xfont_match.
23247 (xfont_draw): Set font in GC if necessary.
23248
23249 * ftxfont.c (ftxfont_match): New function.
23250 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23251
23252 * xftfont.c (xftfont_match): New function.
23253 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23254
23255 2008-02-01 Kenichi Handa <handa@m17n.org>
23256
23257 * font.h (struct font): New member scalable.
23258 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23259 (font_otf_gsub): Adjust prototype.
23260
23261 * font.c (font_otf_capability): Fix handling of the default langsys.
23262 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23263 Check the contents of SPEC.
23264 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23265 (check_gstring): New function.
23266 (REPLACEMENT_CHARACTER): New macro.
23267 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23268 glyph codes of GSTRING.
23269 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23270 (font_prepare_composition): Set cmp->glyph_len.
23271 (font_open_entity): Set font->scalable.
23272 (Ffont_get): Handle :otf property.
23273 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23274 New functions.
23275 (Fquery_font): Use font->font.full_name.
23276 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23277 Sfont_otf_alternates.
23278
23279 * ftfont.c (ftfont_open): Set font->font.full_name and
23280 font->font.name properly. Fix calculation of font->font.height
23281 and font->min_width.
23282
23283 * ftxfont.c (ftxfont_create_gcs): New function.
23284 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23285 (ftxfont_draw_backgrond): Fix filling region.
23286 (ftxfont_default_fid): New function.
23287 (ftxfont_open): Set xfont->fid to the return value of
23288 ftxfont_default_fid.
23289 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23290 (ftxfont_done_face): Free only GCs that are created by
23291 ftxfont_create_gcs.
23292 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23293
23294 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23295 Clip to src->width, etc (not src->clip_XXX).
23296
23297 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23298 FontBackend frame parameter.
23299
23300 2008-02-01 Kenichi Handa <handa@m17n.org>
23301
23302 * font.h (struct font_driver_list): New member `on'.
23303 (Fclear_font_cache): EXFUN it.
23304 (font_update_drivers): Extern it.
23305
23306 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23307 (font_list_entities): Check driver_list->on.
23308 (register_font_driver): Initialize `on' member to 0.
23309 (font_update_drivers): New function.
23310 (Fclear_font_cache): Check driver_list->on.
23311
23312 * frame.h (Qfont_backend): Extern it.
23313 (x_set_font_backend): Extern it.
23314
23315 * frame.c (Qfont_backend): New variable.
23316 (frame_parms): New element for font-backend.
23317 (x_set_font_backend): New function.
23318
23319 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23320 FontBackend frame parameter.
23321 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23322 x_set_font_backend.
23323
23324 * xfont.c (xfont_list): Don't try listing by :name property if the
23325 name is not for XLFD.
23326
23327 2008-02-01 Kenichi Handa <handa@m17n.org>
23328
23329 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23330 (LGLYPH_SET_TO): New macros.
23331 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23332 element of G is vector or not.
23333 (font_at): Extern it.
23334
23335 * font.c: Include window.h.
23336 (font_lispy_object): New function.
23337 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23338 end of valid glyph.
23339 (font_close_object): Fix getting (struct font *).
23340 (font_at): New function.
23341 (Ffont_get): If FONT is a font-object, get entity from it.
23342 (Ffont_make_gstring): Initialize elements of glyphs with nil.
23343 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23344 Fix range check.
23345 (Ffont_at): New function.
23346 (syms_of_font): Defsubr Sfont_at.
23347
23348 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23349 before the entry for Qcomposition.
23350 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23351 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23352 the font in gstring.
23353 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23354 LGLYPH_FORM (g) to detect the end of valid glyph.
23355 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23356 we are composing with gstring.
23357
23358 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23359 Check if adjustment is vector or not.
23360
23361 * Makefile.in (font.o): Make it depends on window.h.
23362
23363 2008-02-01 Kenichi Handa <handa@m17n.org>
23364
23365 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23366 adjustment is vector or not.
23367
23368 2008-02-01 Miles Bader <miles@gnu.org>
23369
23370 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23371
23372 2008-02-01 Kenichi Handa <handa@m17n.org>
23373
23374 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
23375 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
23376 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23377
23378 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23379 (DEVICE_DELTA): Fix typo.
23380 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23381 LGLYPH format.
23382
23383 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23384 the change of LGLYPH format.
23385
23386 2008-02-01 Kenichi Handa <handa@m17n.org>
23387
23388 * ftfont.c (ftfont_list): Fix typo.
23389 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23390
23391 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23392
23393 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23394
23395 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23396 xftface_info is non-NULL.
23397
23398 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23399
23400 * ftfont.c (ftfont_list): Move misplaced #endif.
23401
23402 2008-02-01 Kenichi Handa <handa@m17n.org>
23403
23404 * ftfont.c (ftfont_list): Pay attention to the case that
23405 FC_CAPABILITY is not defined.
23406
23407 2008-02-01 Kenichi Handa <handa@m17n.org>
23408
23409 * xftfont.c (xftfont_open): Set charset related members to -1.
23410
23411 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23412 QCname.
23413 (ftfont_open): Set charset related members to -1.
23414
23415 * fontset.c (Votf_script_alist): New variable.
23416 (syms_of_fontset): Initialize it.
23417 (fontset_font): Delete unused variable.
23418
23419 * fontset.h (Votf_script_alist): Extern it.
23420
23421 * font.c (font_find_for_lface): Optimize code.
23422
23423 * font.h (font_close_object, font_merge_old_spec): Extern them.
23424
23425 2008-02-01 Kenichi Handa <handa@m17n.org>
23426
23427 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23428 (syms_of_font): Initialize them.
23429 (font_pixel_size): Allow float value in dpi.
23430 (font_prop_validate_type): Delete.
23431 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23432 Change caller.
23433 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23434 (font_prop_validate_extra): Delete.
23435 (font_prop_validate_spacing): New function.
23436 (font_property_table): Add elements for all known properties.
23437 (get_font_prop_index): Rename from check_font_prop_name.
23438 New argument FROM. Change caller.
23439 (font_prop_validate): Validate all known properties.
23440 (font_put_extra): Delete argument force. Change caller.
23441 (font_expand_wildcards): Make it static. Fix the way of shrinking
23442 the possible range.
23443 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23444 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23445 Change caller.
23446 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23447 (font_parse_fcname): Delete argument merge. Fix parsing of point
23448 size. Don't validate properties values here. Change caller.
23449 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23450 (font_open_by_name): Delete unused variable.
23451 (Ffont_spec): Likewise. Validate property values.
23452 (Ffont_match_p): New function.
23453
23454 * font.h (QCscalable): Extern it.
23455 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23456
23457 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23458
23459 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23460 (xfont_list_pattern): New function.
23461 (xfont_list): Use xfont_list_pattern.
23462
23463 2008-02-01 Kenichi Handa <handa@m17n.org>
23464
23465 * font.h (Flist_fonts): EXFUN it.
23466
23467 2008-02-01 Jason Rumney <jasonr@gnu.org>
23468
23469 * w32term.c (w32_initialize): Add back smoothing_type and
23470 smoothing_enabled definitions.
23471
23472 2008-02-01 Kenichi Handa <handa@m17n.org>
23473
23474 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23475 s->face->font on determining underline position.
23476
23477 2008-02-01 Kenichi Handa <handa@m17n.org>
23478
23479 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23480 (font_has_char): Accept font-object too.
23481 (font_find_for_lface): Try at first with a size specified in face.
23482
23483 2008-02-01 Kenichi Handa <handa@m17n.org>
23484
23485 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23486 font_open_by_name.
23487
23488 2008-02-01 Kenichi Handa <handa@m17n.org>
23489
23490 * font.h (QCspacing, QCdpi): Extern them.
23491 (enum font_spacing): New enum.
23492 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23493
23494 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23495 (QCspacing, QCdpi): New variables.
23496 (syms_of_font): Initialize them.
23497 (font_pixel_size): New function.
23498 (font_put_extra): New function.
23499 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23500 in FONT_EXTRA.
23501 (font_parse_fcname): Handle enumerated values (e.g. bold).
23502 Fix handling font size. Add QCname property that contains only
23503 unknown properties.
23504 (font_score): Change argument. Change caller. Pay attention to
23505 FONT_PIXEL_SIZE_QUANTUM.
23506 (font_sort_entites, font_list_entities, font_find_for_lface)
23507 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23508 (Ffont_spec): Add QCname property that contains only unknown properties.
23509
23510 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23511 Don't include weight in listing pattern, instead check weight of each
23512 listed font. Don't include scalable in pattern. Pay attention to
23513 FONT_PIXEL_SIZE_QUANTUM.
23514
23515 2008-02-01 Kenichi Handa <handa@m17n.org>
23516
23517 * font.c (font_parse_fcname): Fix parsing of point-size.
23518 (font_unparse_fcname): Produce symbolic names for style properties.
23519 (font_list_entities): Handle float size correctly.
23520 (font_open_by_name): Prefer `normal' property values if the name
23521 doesn't specify them.
23522
23523 * fontset.c (Finternal_char_font): Use font_get_name, not
23524 Ffont_xlfd_name.
23525
23526 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23527 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23528 pattern. Don't force scalable.
23529
23530 * xftfont.c (xftfont_open): For generating a name, start from
23531 96-byte buffer.
23532
23533 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23534
23535 * frame.h (x_new_fontset2): Fix prototype.
23536
23537 2008-02-01 Kenichi Handa <handa@m17n.org>
23538
23539 * font.h (struct font_driver): Delete member parse_name.
23540 (font_match_p, font_get_spec, font_parse_fcname)
23541 (font_unparse_fcname): Extern them.
23542 (font_get_name): Adjust prototype.
23543
23544 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23545 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
23546 (font_expand_wildcards): Fix handling ENCODING field.
23547 Avoid unnecessary checks for weight, slant, and swidth.
23548 (font_parse_fcname): New function.
23549 (font_unparse_fcname): New function.
23550 (font_parse_name): New function.
23551 (font_match_p): New function.
23552 (font_get_name): Change return value to Lisp string.
23553 (font_get_spec): New function.
23554 (Qunspecified, Qignore_defface): Don't extern them.
23555 (font_find_for_lface): Assume that LFACE is fully specified.
23556 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23557 object, use it for FACE.
23558 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23559 driver->parse_name.
23560 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23561
23562 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23563 prototype.
23564
23565 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23566 argument F. Don't call Fnew_fontset. Instead, directly call
23567 make_fontset.
23568
23569 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23570
23571 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23572 of x_new_fontset2.
23573
23574 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23575 (Qsans__serif): New variables.
23576 (ftfont_generic_family_list): New variable.
23577 (syms_of_ftfont): Initialize the above variables.
23578 (ftfont_pattern_entity): Delete argument NAME.
23579 (ftfont_list_generic_family): New function.
23580 (ftfont_parse_name): Delete this function.
23581 (ftfont_list): Try generic family only when FcFontList found no font.
23582 (ftfont_list_family): Fix args to FcObjectSetBuild.
23583
23584 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23585 object in attrs[LFACE_FONT_INDEX].
23586 (set_lface_from_font_name): Cancel all changes for font-backend.
23587 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23588 function.
23589 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23590 font object in QCfont attribute.
23591 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23592 (realize_default_face) [USE_FONT_BACKEND]: Call
23593 set_lface_from_font_and_fontset.
23594
23595 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23596 "fixed", and signal error here if no suitable font was found.
23597
23598 * xfont.c (xfont_parse_name): Delete this function.
23599
23600 * xftfont.c (xftfont_open): Change coding style of error
23601 handling. Generate fontconfig's fontname pattern.
23602
23603 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23604 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23605
23606 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23607 Both args FONTSET and FONT_OBJECT must be existing ones.
23608
23609 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23610
23611 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23612
23613 2008-02-01 Kenichi Handa <handa@m17n.org>
23614
23615 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23616
23617 * font.h (struct font): Fix typo.
23618
23619 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23620 XLFD_XXX_INDEX.
23621 (enum xlfd_field_mask): New enum.
23622 (intern_font_field): Change argument. Change caller. If digits
23623 are followed by non-digits, return a symbol.
23624 (font_expand_wildcards): New function.
23625 (font_parse_xlfd): Fix wildcard handling.
23626 (Ffont_spec): If :name is specified, reflect the info in the other
23627 properties.
23628
23629 * ftfont.c (ftfont_pattern_entity): Fix typo.
23630 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23631 locale.
23632
23633 2008-02-01 Kenichi Handa <handa@m17n.org>
23634
23635 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23636
23637 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23638 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23639 registry doesn't specify encoding part.
23640 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23641 (font_open_by_name): At first try parsing the name.
23642 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23643 as Lisp symbols.
23644
23645 * fontset.c (reorder_font_vector): Pay attention to the case that
23646 the 3rd element of font_def is nil.
23647 (fontset_font): For the default fontset, append one more fontset
23648 elements for a script-based font specification. Don't add script
23649 attribute on finding a font.
23650 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23651 font name.
23652 (fontset_ascii_font): If a font can't be opened, return nil.
23653
23654 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23655 (ftfont_pattern_entity): New function.
23656 (ftfont_get_cache): Assume that freetype_font_cache is already
23657 initialized.
23658 (ftfont_list): Handle the case that a file is specified in font
23659 name. Use ftfont_pattern_entity to generate entities.
23660 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23661 (syms_of_ftfont): Initialize freetype_font_cache.
23662
23663 * xftfont.c (xftfont_open): Make the font name fontconfig's
23664 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23665 (xftfont_close): Free font->font.name if not NULL.
23666
23667 * xfont.c (xfont_list): If script is specified for a font, return
23668 null_vector.
23669 (xfont_list_family): Declare argument type.
23670
23671 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23672 name, set LFACE_FONT (lface) to nil.
23673
23674 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23675 return Qnil.
23676
23677 2008-02-01 Kenichi Handa <handa@m17n.org>
23678
23679 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23680 (standard_args): Add "-enable-font-backend".
23681
23682 2008-02-01 Kenichi Handa <handa@m17n.org>
23683
23684 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23685 (struct xftdraw_list, xftdraw_list): Delete them.
23686 (register_xftdraw, check_xftdraw): Delete them.
23687 (xftfont_prepare_face): Don't call register_xftdraw.
23688 (xftfont_done_face): Don't call check_xftdraw.
23689 (xftfont_draw): Get background color only when with_background is
23690 nonzero.
23691
23692 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23693
23694 2008-02-01 Kenichi Handa <handa@m17n.org>
23695
23696 These changes are for the new font handling codes.
23697
23698 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23699 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23700 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23701 (FONTSRC, FONTOBJ): New variables.
23702 (obj): Add $(FONTOBJ).
23703 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23704 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23705 @LIBOTF_LIBS@.
23706 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23707 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23708
23709 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23710
23711 * character.h (Vscript_representative_chars): Extern it.
23712
23713 * character.c (Vscript_representative_chars): New variable.
23714 (syms_of_character): Declare it as a Lisp variable.
23715
23716 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23717 enable_font_backend is nonzero, accept the composition method
23718 COMPOSITION_WITH_GLYPH_STRING.
23719
23720 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23721 enumeration COMPOSITION_WITH_GLYPH_STRING.
23722
23723 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23724 members clip_x, clip_y, clip_width, and clip_height.
23725 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23726
23727 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23728 --enable-font-backend. Call syms_of_font.
23729
23730 * fns.c (assoc_no_quit): New function.
23731
23732 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23733 (face_for_font, new_fontset_from_font)
23734 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23735
23736 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23737 (fontset_font, fontset_ascii, face_for_char)
23738 (make_fontset_for_ascii_face, Ffont_info)
23739 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23740 is nonzero, use font-backend mechanism.
23741 (find_font_encoding): Make it non-static.
23742 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23743 New functions.
23744
23745 * frame.h (struct frame): New members resx and resy.
23746 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23747 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23748
23749 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23750 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23751
23752 * lisp.h (assoc_no_quit): Extern it.
23753
23754 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23755 Through out the file, use FONT_INFO_FROM_FACE instead of
23756 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23757 rif->per_char_metric.
23758 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23759 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23760 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23761 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23762 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23763 nonzero, use font-backend mechanism.
23764 (get_per_char_metric): New function.
23765
23766 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23767 (set_lface_from_font_name)
23768 (set_font_frame_param, free_realized_face)
23769 (prepare_face_for_display, clear_face_gcs)
23770 (Finternal_set_font_selection_order, realize_x_face)
23771 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23772 font-backend mechanism.
23773 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23774 (load_face_font) [USE_FONT_BACKEND]: Abort.
23775 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23776 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23777
23778 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23779 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23780 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
23781 nonzero, register all available font drivers.
23782 Call x_default_font_parameter for deciding a font.
23783 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23784
23785 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23786 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23787 (x_set_glyph_string_clipping_exactly)
23788 (x_compute_glyph_string_overhangs)
23789 (x_draw_glyph_string_foreground)
23790 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23791 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23792 enable_font_backend is nonzero, use font-backend mechanism.
23793 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23794
23795 2008-02-01 Kenichi Handa <handa@m17n.org>
23796
23797 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23798 system_eol_type.
23799 (syms_of_coding): Initialize system_eol_type.
23800
23801 * process.c (Fset_process_coding_system): Inherit system's eol
23802 format if necessary.
23803
23804 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23805
23806 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23807
23808 2008-02-01 Kenichi Handa <handa@m17n.org>
23809
23810 * coding.c (decode_eol): Pay attention to buffer relocation in
23811 del_range_2.
23812 (decode_coding): Call decode_eol before restoring undo_list.
23813
23814 2008-02-01 Kenichi Handa <handa@m17n.org>
23815
23816 * charset.c (Fdefine_charset_internal): Fix setting of
23817 emacs_mule_bytes.
23818
23819 2008-02-01 Kenichi Handa <handa@m17n.org>
23820
23821 * keyboard.c (read_char): Check if C is a character or not before
23822 looking up Vkeyboard_translate_table.
23823
23824 2008-02-01 Kenichi Handa <handa@m17n.org>
23825
23826 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23827 Fix condition to terminate the loop.
23828
23829 2008-02-01 Kenichi Handa <handa@m17n.org>
23830
23831 * coding.c (produce_composition): Compare charbuf[i] instead of
23832 args[i] against 0.
23833 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23834
23835 2008-02-01 Kenichi Handa <handa@m17n.org>
23836
23837 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23838 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23839 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23840 detect_coding.
23841 (emacs_mule_char): Handle old style (Emacs 20) component character
23842 of a composition.
23843 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23844 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23845 composition rule.
23846 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23847
23848 2008-02-01 Kenichi Handa <handa@m17n.org>
23849
23850 * coding.c (encode_coding_ccl): Allocate destination dynamically
23851 when necessary.
23852
23853 2008-02-01 Kenichi Handa <handa@m17n.org>
23854
23855 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23856 the loop. When quitted, show a proper error message.
23857
23858 2008-02-01 Kenichi Handa <handa@m17n.org>
23859
23860 * xterm.c (x_set_glyph_string_clipping_exactly):
23861 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
23862
23863 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23864 character sequence.
23865 (Fccl_execute_on_string): Use ASET, not XSET.
23866
23867 2008-02-01 Kenichi Handa <handa@m17n.org>
23868
23869 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23870
23871 2008-02-01 Kenichi Handa <handa@m17n.org>
23872
23873 * coding.c (decode_coding): Fix the condition of terminating the
23874 decoding loop.
23875
23876 2008-02-01 Kenichi Handa <handa@m17n.org>
23877
23878 * data.c (Faset): On setting a character bigger than 255 in a
23879 unibyte string, signal an error instead of make the string multibyte.
23880
23881 2008-02-01 Kenichi Handa <handa@m17n.org>
23882
23883 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23884 made by a mapping table.
23885
23886 2008-02-01 Kenichi Handa <handa@m17n.org>
23887
23888 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23889 not.
23890 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23891 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23892
23893 * xterm.c (x_draw_composite_glyph_string_foreground):
23894 Check s->face is NULL or not.
23895
23896 2008-02-01 Kenichi Handa <handa@m17n.org>
23897
23898 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23899 (x_draw_glyph_string): Fix drawing of right_overhang and
23900 left_overhang around/on cursor.
23901
23902 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23903
23904 2008-02-01 Kenichi Handa <handa@m17n.org>
23905
23906 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23907
23908 2008-02-01 Kenichi Handa <handa@m17n.org>
23909
23910 * coding.c (Fdefine_coding_system_internal)
23911 (Fdefine_coding_system_alias): Avoid a duplicated element in
23912 Vcoding_system_alist.
23913
23914 2008-02-01 Kenichi Handa <handa@m17n.org>
23915
23916 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23917
23918 * coding.c (Qcoding_system_define_form): New variable.
23919 (syms_of_coding): Intern and staticpro it.
23920 (Fcoding_system_p): Check Qcoding_system_define_form.
23921 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23922
23923 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23924 Fcoding_system_p.
23925 (CHECK_CODING_SYSTEM): If ID is not available, call
23926 Fcheck_coding_system.
23927 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23928 Try also Fcheck_coding_system.
23929
23930 2008-02-01 Kenichi Handa <handa@m17n.org>
23931
23932 * coding.c (code_conversion_restore): GCPRO arg.
23933
23934 2008-02-01 Kenichi Handa <handa@m17n.org>
23935
23936 * character.c (lisp_string_width): Check multibyteness of STRING.
23937
23938 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23939
23940 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23941 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23942 (decode_mac_font_name): Use decode_coding_c_string instead of
23943 decode_coding.
23944 (x_load_font): Initialize fontp->fontset to -1.
23945 Set fontp->encoding_type.
23946
23947 2008-02-01 Kenichi Handa <handa@m17n.org>
23948
23949 * search.c (search_buffer): Give up BM search on case-fold-search
23950 if one of a target character has a case-equivalence of different
23951 byte length even if that target character is an ASCII.
23952 (simple_search): Fix calculation of byte length of matched text.
23953 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23954
23955 2008-02-01 Kenichi Handa <handa@m17n.org>
23956
23957 * coding.c (decode_coding): Fix handling of invalid bytes.
23958
23959 2008-02-01 Kenichi Handa <handa@m17n.org>
23960
23961 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23962 Unicode characters.
23963
23964 2008-02-01 Kenichi Handa <handa@m17n.org>
23965
23966 * coding.c (encode_coding_object): If a pre-write-conversion
23967 function makes a new buffer, kill it.
23968
23969 2008-02-01 Kenichi Handa <handa@m17n.org>
23970
23971 * coding.c (QCascii_compatible_p): New variable.
23972 (syms_of_coding): Initialize it.
23973 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23974 calling string_char.
23975 (record_conversion_result): Add `default:' case.
23976 (coding_charset_list): Delete unused variable `coding_type'.
23977 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23978 property in the plist of the coding system.
23979 (Fcoding_system_put): Check QCascii_compatible_p.
23980
23981 2008-02-01 Miles Bader <miles@gnu.org>
23982
23983 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23984 removed calculation of frame `f', as it's now used.
23985
23986 2008-02-01 Kenichi Handa <handa@m17n.org>
23987
23988 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23989 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23990 (UNIDATA): New variable.
23991 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
23992 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23993 Run $(RUN_TEMACS) unconditionally.
23994
23995 2008-02-01 Kenichi Handa <handa@m17n.org>
23996
23997 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23998 (admindir): New variable.
23999 ($(lispsource)international/charprop.el): New target.
24000
24001 2008-02-01 Miles Bader <miles@gnu.org>
24002
24003 * character.c (chars-in-region): Remove obsolete function.
24004 (syms_of_character): Remove its initialization.
24005
24006 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
24007
24008 * w32select.c (validate_coding_system)
24009 (setup_windows_coding_system): New functions.
24010 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
24011 Use setup_windows_coding_system.
24012 (setup_config, Fw32_get_clipboard_data):
24013 Use validate_coding_system.
24014 (Fx_selection_exists): Move call to setup_config to a place
24015 where signals are allowed.
24016
24017 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
24018 (Fcheck_coding_system): Add declarations.
24019
24020 2008-02-01 Kenichi Handa <handa@m17n.org>
24021
24022 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
24023
24024 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24025
24026 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
24027 string as the second argument for x_new_fontset.
24028
24029 2008-02-01 Kenichi Handa <handa@m17n.org>
24030
24031 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
24032 (encode_coding_object): Use safe_call instead of call2.
24033
24034 2008-02-01 Kenichi Handa <handa@m17n.org>
24035
24036 * fontset.c (Fset_fontset_font): Check family element of a given vector.
24037
24038 * Makefile.in (lisp): Include charprop.el.
24039
24040 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24041
24042 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
24043 Not sure if it's unnecessary.
24044
24045 2008-02-01 Steven Tamm <steventamm@mac.com>
24046
24047 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
24048 some possibly unnecessary fontset checking code that crashed
24049 when creating a new frame.
24050
24051 2008-02-01 Kenichi Handa <handa@m17n.org>
24052
24053 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
24054 lookup_face.
24055
24056 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
24057
24058 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
24059
24060 2008-02-01 Kenichi Handa <handa@m17n.org>
24061
24062 * coding.c: Cancel the change done in HEAD on 2008-02-01.
24063 (coding_charset_list): New function.
24064
24065 * coding.h (coding_charset_list): Extern it.
24066
24067 2008-02-01 Kenichi Handa <handa@m17n.org>
24068
24069 * fontset.c (Fset_fontset_font): Call find_font_encoding with
24070 concatenation of family and registry.
24071
24072 2008-02-01 Kenichi Handa <handa@m17n.org>
24073
24074 * character.h (BYTE8_STRING): Fix typo.
24075
24076 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
24077 string to multibyte (sync to HEAD).
24078
24079 * casefiddle.c (casify_region): Handle changes in byte-length
24080 using replace_range_2 (sync to HEAD).
24081
24082 2008-02-01 Andreas Schwab <schwab@suse.de>
24083
24084 * chartab.c (map_char_table): GCPRO table and arg.
24085
24086 2008-02-01 Kenichi Handa <handa@m17n.org>
24087
24088 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24089 already at limit.
24090
24091 2008-02-01 Kenichi Handa <handa@m17n.org>
24092
24093 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24094 instead of fast_c_string_match_ignore_case.
24095 (find_font_encoding): Change argument to Lisp_Object.
24096 Use fast_string_match_ignore_case instead of
24097 fast_c_string_match_ignore_case. Change caller.
24098
24099 2008-02-01 Kenichi Handa <handa@m17n.org>
24100
24101 * xdisp.c (get_next_display_element): In unibyte case, decide to
24102 display in octal form by checking a character by
24103 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24104
24105 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24106
24107 * character.c (unibyte_has_multibyte_table): New variable.
24108
24109 * character.h (unibyte_has_multibyte_table): Extern it.
24110 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24111
24112 2008-02-01 Kenichi Handa <handa@m17n.org>
24113
24114 * coding.c (encode_coding_iso_2022): Fix handling of charset
24115 annotation.
24116
24117 2008-02-01 Kenichi Handa <handa@m17n.org>
24118
24119 * coding.c (setup_coding_system): If coding_system is nil, use
24120 Qundecided.
24121 (Fterminal_coding_system): Return nil if terminal coding system is
24122 `undecided'.
24123 (syms_of_coding): Define coding-system `undecided' here.
24124 Setup terminal_coding as `undecided'.
24125
24126 2008-02-01 Kenichi Handa <handa@m17n.org>
24127
24128 * xdisp.c (message_dolog, set_message_1):
24129 Call unibyte_char_to_multibyte with arg type int.
24130
24131 * lread.c (read1): Fix reading of a char-table.
24132
24133 * print.c (print_object): Include sub char-table in circularities
24134 detection.
24135
24136 2008-02-01 Kenichi Handa <handa@m17n.org>
24137
24138 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24139 Append the found sequences in car of ARGS instead of prepending.
24140
24141 2008-02-01 Kenichi Handa <handa@m17n.org>
24142
24143 * fileio.c (report_file_error): Make a unibyte string from
24144 strerror (errorno).
24145 (Fsubstitute_in_file_name): Fix the arg to
24146 unibyte_char_to_multibyte. It is evaluated twice.
24147
24148 2008-02-01 Kenichi Handa <handa@m17n.org>
24149
24150 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24151
24152 2008-02-01 Kenichi Handa <handa@m17n.org>
24153
24154 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24155 BOM is not found.
24156 (detect_coding, detect_coding_system): Optimization for ISO-2022
24157 when no 8-bit data is found.
24158
24159 2008-02-01 Jason Rumney <jasonr@gnu.org>
24160
24161 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24162
24163 2008-02-01 Kenichi Handa <handa@m17n.org>
24164
24165 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24166 CHARS.
24167
24168 2008-02-01 Steven Tamm <steventamm@mac.com>
24169
24170 * macterm.c (mac_encode_char): Add charset argument and update
24171 to use encoding_type.
24172 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24173 switch to pure fontset.
24174 (decode_mac_font_name): Temporarily remove decoding.
24175 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24176 (x_load_font): Temporarily remove encoding.
24177
24178 2008-02-01 Kenichi Handa <handa@m17n.org>
24179
24180 * xfaces.c (Fface_font): If frame is not on a window system,
24181 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24182 refer to face->font.
24183 (split_font_name_into_vector, build_font_name_from_vector)
24184 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24185 when HAVE_WINDOW_SYSTEM is defined.
24186
24187 2008-02-01 Kenichi Handa <handa@m17n.org>
24188
24189 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24190 (x_produce_glyphs): Fix setting of members of cmp in case
24191 cmp->glyph_len is zero.
24192
24193 * fontset.c (Fset_fontset_font): Fix docstring.
24194 (Ffontset_info): Make it backward compatible. New arg ALL.
24195
24196 2008-02-01 Kim F. Storm <storm@cua.dk>
24197
24198 * process.c (read_process_output): Grow decoding_buf when needed;
24199 this could cause a crash in allocate_string and compact_small_strings.
24200
24201 2008-02-01 Kenichi Handa <handa@m17n.org>
24202
24203 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24204
24205 2008-02-01 Kenichi Handa <handa@m17n.org>
24206
24207 * coding.c (setup_coding_system): Set coding->common_flags
24208 correctly for raw-text.
24209 (consume_chars): On encoding unibyte text by raw-text, don't check
24210 multibyte form.
24211 (encode_coding): On encoding by raw-text, never use translation tables.
24212
24213 * fileio.c (e_write): Short cut for the case of no encoding.
24214
24215 2008-02-01 Kenichi Handa <handa@m17n.org>
24216
24217 * coding.c (detect_coding, detect_coding_system): Delete unused
24218 variables.
24219
24220 2008-02-01 Kenichi Handa <handa@m17n.org>
24221
24222 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24223 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24224
24225 2008-02-01 Kenichi Handa <handa@m17n.org>
24226
24227 * coding.c (Ffind_coding_systems_region_internal):
24228 Include raw-text and no-conversion in the result.
24229
24230 2008-02-01 Kenichi Handa <handa@m17n.org>
24231
24232 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24233 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24234 FONT_DEF.
24235 (font_def_arg, add_arg, from_arg, to_arg): New args.
24236 (set_fontset_font): Change argument.
24237 (Fset_fontset_font): Fix for the case that TARGET is a script
24238 name and charset name.
24239 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24240
24241 2008-02-01 Kenichi Handa <handa@m17n.org>
24242
24243 * fontset.c (fontset_font): Rename from fontset_face. Change return
24244 value.
24245 (face_suitable_for_char_p, face_for_char): Adjust for the change
24246 of fontset_font.
24247 (make_fontset_for_ascii_face): Fix setting of the fontset element
24248 for ASCII.
24249 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24250 to get a font name.
24251 (Ffontset_info): Adjust for the change of fontset_font.
24252
24253 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24254
24255 * character.h (LEADING_CODE_LATIN_1_MIN)
24256 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24257
24258 2008-02-01 Kenichi Handa <handa@m17n.org>
24259
24260 * editfns.c (check_translation): New function.
24261 (Ftranslate_region_internal): Handle M:N mapping.
24262
24263 2008-02-01 Kenichi Handa <handa@m17n.org>
24264
24265 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24266
24267 2008-02-01 Kenichi Handa <handa@m17n.org>
24268
24269 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24270 goto invalid_code.
24271 (decode_coding_iso_2022): Fix handling of invalid designation.
24272
24273 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24274 after calling code_conversion_save.
24275
24276 2008-02-01 Kenichi Handa <handa@m17n.org>
24277
24278 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24279
24280 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24281
24282 * fontset.c: Include "intervals.h".
24283 (fontset_face): Fix comparing of Lisp_Objects.
24284 (free_face_fontset, new_fontset_from_font_name):
24285 Fix Lisp_Object/int mixup.
24286
24287 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24288
24289 * coding.c: Add many prototypes for static functions.
24290 (get_translation_table): Allow max_lookup to be NULL.
24291 (decode_coding, Ffind_coding_systems_region_internal)
24292 (Funencodable_char_position, Fcheck_coding_systems_region):
24293 Call get_translation_table with max_lookup NULL.
24294
24295 2008-02-01 Kenichi Handa <handa@m17n.org>
24296
24297 * coding.c (get_translation_table): Declare it as Lisp_Object.
24298 (LOOKUP_TRANSLATION_TABLE): New macro.
24299 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24300 instead of CHAR_TABLE_REF.
24301
24302 2008-02-01 Kenichi Handa <handa@m17n.org>
24303
24304 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24305 annotation data format.
24306 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24307 Change arguments FROM and TO to single argument NCHARS. Change caller.
24308 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24309 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24310 (decode_coding_ccl, decode_coding_charset): Pay attention to
24311 coding->charbuf_used.
24312 (get_translation): New function.
24313 (produce_chars): New arguments translation_table and last_block.
24314 Translate characters here. Return number of carryover chars.
24315 Change caller.
24316 (produce_composition): New argument pos. Change caller.
24317 Adjust for the change of annotation data format.
24318 (produce_charset, produce_annotation): Likewise.
24319 (decode_coding, encode_coding): Don't call translate_chars.
24320 (consume_chars): New arg translation_table. Change caller.
24321 (translate_chars): Delete.
24322 (syms_of_coding): Make translation-table's number of extra slots 2.
24323
24324 2008-02-01 Kenichi Handa <handa@m17n.org>
24325
24326 * search.c (simple_search): Fix setting this_pos_byte in backward
24327 search.
24328
24329 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24330 byte sequence.
24331 (detect_coding_ccl): Fix setting of the variable valids.
24332
24333 2008-02-01 Kenichi Handa <handa@m17n.org>
24334
24335 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24336
24337 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24338
24339 * editfns.c (Ftranslate_region_internal): Rename from
24340 Ftranslate_region. Accept a char-table in TABLE.
24341 (syms_of_editfns): Defsubr Stranslate_region_internal.
24342
24343 * xfaces.c (set_lface_from_font_name): If a font is specified for
24344 a frame, generate a fontset from the font.
24345 (build_scalable_font_name): If the scalable font is requested for
24346 a specific size, don't change that size.
24347 (try_font_list): Try a scalable font also in the case that a
24348 pattern string is specified.
24349
24350 2008-02-01 Kenichi Handa <handa@m17n.org>
24351
24352 * xfaces.c (Fface_font): New optional arg CHARACTER.
24353
24354 2008-02-01 Kenichi Handa <handa@m17n.org>
24355
24356 * charset.h (CHARSET_OFFSET): New macro.
24357
24358 2008-02-01 Kenichi Handa <handa@m17n.org>
24359
24360 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24361
24362 * fontset.c (fontset_face): Handle the case that repertory is a
24363 char-table.
24364 (find_font_encoding): Return nil for unknown encoding.
24365 (Fset_fontset_font): Ignore a font of unknown encoding.
24366
24367 2008-02-01 Kenichi Handa <handa@m17n.org>
24368
24369 * keymap.c (describe_vector): Handle default value of a char table.
24370
24371 * fontset.c (fontset_face): Handle fallback fonts correctly.
24372 (Ffontset_info): Return infomation about fallback fonts.
24373
24374 2008-02-01 Kenichi Handa <handa@m17n.org>
24375
24376 * fontset.c (FONTSET_DEFAULT): New macro.
24377 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24378 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24379 the case that it is nil.
24380 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24381 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24382
24383 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24384 subset or superset.
24385
24386 2008-02-01 Kenichi Handa <handa@m17n.org>
24387
24388 * emacs.c (main): Call init_charset after syms_of_XXX.
24389
24390 * charset.c (Vcharset_map_directory): Delete.
24391 (Vcharset_map_path): New variable.
24392 (load_charset_map_from_file): Use Vcharset_map_path instead.
24393 (init_charset): Initialize Vcharset_map_path.
24394 (syms_of_charset): Delete declaration of "charset-map-directory",
24395 add declaration of "charset-map-path".
24396
24397 2008-02-01 Kenichi Handa <handa@m17n.org>
24398
24399 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24400 ASCII only string.
24401
24402 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24403
24404 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24405 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24406
24407 2008-02-01 Kenichi Handa <handa@m17n.org>
24408
24409 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24410
24411 * coding.c (QCmnemonic, QCdefalut_char)
24412 (QCdecode_translation_table, QCencode_translation_table)
24413 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24414 (get_translation_table): Return a list of translation tables if
24415 necessary.
24416 (decode_coding): Call get_translation_table with ENCODEP 0.
24417 (char_encodable_p): If translation_table is non-nil, always call
24418 translate_char.
24419 (Fdefine_coding_system_internal): Accept list of translation
24420 tables as :encode-translation-table and :decode-translation-table.
24421 (Fcoding_system_put): New function.
24422 (syms_of_coding): Declare new symbols.
24423 Defsubr Scoding_system_put.
24424 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24425 typically JISX0212.
24426
24427 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24428 when the charset is superset type.
24429
24430 * character.c (translate_char): Accept list of translation tables.
24431
24432 2008-02-01 Kenichi Handa <handa@m17n.org>
24433
24434 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24435 (CODING_ATTR_TRANS_TBL): New macro.
24436
24437 * coding.c (get_translation_table): New function.
24438 (translate_chars): Fix the bug of skipping annotation data.
24439 (decode_coding, encode_coding): Utilize get_translation_table.
24440 (char_encodable_p, Funencodable_char_position): Translate char if
24441 necessary.
24442 (Ffind_coding_systems_region_internal)
24443 (Fcheck_coding_systems_region): Setup translation table for encode
24444 in a coding system attribute vector in advance.
24445 (Fdefine_coding_system_internal): Allow a symbol as translation
24446 table. For shift-jis type coding system, allow 4th charset.
24447
24448 2008-02-01 Kenichi Handa <handa@m17n.org>
24449
24450 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24451
24452 * xdisp.c (get_next_display_element): Pass -1 as POS to
24453 FACE_FOR_CHAR if displaying a C-string.
24454
24455 2008-02-01 Kenichi Handa <handa@m17n.org>
24456
24457 * composite.c (get_composition_id): Handle xoff and yoff in a
24458 composition rule.
24459
24460 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24461 (struct composition): New member lbearing and rbearing.
24462
24463 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24464 (x_get_glyph_overhangs): Handle a composition glyph.
24465 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24466
24467 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24468 composition glyph.
24469
24470 2008-02-01 Kenichi Handa <handa@m17n.org>
24471
24472 * print.c: Include charset.h.
24473 (Vprint_charset_text_property): New variable.
24474 (Qdefault): Extern it.
24475 (PRINT_STRING_NON_CHARSET_FOUND)
24476 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24477 (print_check_string_result): New variable.
24478 (print_check_string_charset_prop): New function.
24479 (print_prune_charset_plist): New variable.
24480 (print_prune_string_charset): New function.
24481 (print_object): Call print_prune_string_charset if
24482 Vprint_charset_text_property is not t.
24483 (print_interval): Print nothing if interval->plist is nil.
24484 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24485 variable. Init and staticpro print_prune_charset_plist.
24486
24487 2008-02-01 Kenichi Handa <handa@m17n.org>
24488
24489 * fontset.c (new_fontset_from_font_name): Use the specified font
24490 for all characters in the new fontset.
24491
24492 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24493 OBJECT args.
24494
24495 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24496 OBJECT args for composition too.
24497
24498 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24499 OBJECT args.
24500
24501 2008-02-01 Kenichi Handa <handa@m17n.org>
24502
24503 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24504
24505 * fontset.c (reorder_font_vector): Adjust for the change of
24506 FONT_DEF format.
24507 (fontset_face): New arg id. Change caller.
24508 (face_for_char): New args pos and object.
24509 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24510 (fs_query_fontset): Check NAME by Fassoc too.
24511 (Fset_fontset_font): Allow non-XLFD font name.
24512 (Ffontset_info): Adjust for the change of FONT_DEF format.
24513
24514 * fontset.h (face_for_char): Adjust prototype.
24515
24516 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24517 (append_space, extend_face_to_end_of_line)
24518 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24519 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24520
24521 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24522 POS and OBJECT args.
24523
24524 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24525 POS and OBJECT args.
24526
24527 2008-02-01 Jason Rumney <jasonr@gnu.org>
24528
24529 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24530 of GlobalAlloc'ed memory.
24531
24532 2008-02-01 Kenichi Handa <handa@m17n.org>
24533
24534 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24535
24536 * charset.h (charset_table_used): Delete extern.
24537
24538 * charset.c (charset_table_used): Make it static.
24539 (map_charset_chars): Fix args to c_function with.
24540
24541 * chartab.c (map_sub_char_table_for_charset): Fix args to
24542 c_function with.
24543
24544 * coding.h (enum coding_result_code):
24545 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
24546
24547 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24548 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24549 (Vlast_code_conversion_error): New variables.
24550 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24551 (ONE_MORE_BYTE): Record error if any instead of signaling an
24552 error. If non-ASCII multibyte char is found, return the negative
24553 value of the code. All callers changed to check it.
24554 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24555 (record_conversion_result): New function. Change all codes setting
24556 coding->result to call this function.
24557 (detect_coding_utf_8, decode_coding_utf_8)
24558 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24559 Don't use the local variable incomplete.
24560 (emacs_mule_char): Change the second arg to `const'.
24561 (decode_coding): Fix of flushing out unprocessed data.
24562 (make_conversion_work_buffer): Fix making of a work buffer.
24563 (decode_coding_object): Return coding->dst_object.
24564
24565 * fontset.c (set_fontset_font): Fix args.
24566
24567 * lisp.h (CHARACTERBITS): Define as 22.
24568
24569 * process.c (send_process): Be sure to set coding->src_multibyte.
24570
24571 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24572
24573 2008-02-01 Kenichi Handa <handa@m17n.org>
24574
24575 * xdisp.c (handle_auto_composed_prop): Give limit to
24576 Fnext_single_char_property_change.
24577
24578 2008-02-01 Kenichi Handa <handa@m17n.org>
24579
24580 * composite.c (syms_of_composite): Don't make the composition hash
24581 table weak.
24582
24583 * fontset.c (Fset_fontset_font): Fix docstring.
24584
24585 * lisp.h (detect_coding_system): Adjust prototype.
24586
24587 * fileio.c (kill_workbuf_unwind): Delete this function.
24588 (Finsert_file_contents): Adjust the call of detect_coding_system.
24589 Get conversion_buffer by code_conversion_save. Use the macro
24590 CODING_MAY_REQUIRE_DECODING. After decoding, update
24591 coding_system.
24592
24593 * coding.h (make_conversion_work_buffer): Delete extern.
24594 (code_conversion_save): Extern it.
24595
24596 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24597 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24598 (decode_coding_utf_8): Don't do eol converion.
24599 (detect_coding_utf_16): Check coding->src_chars, not
24600 coding->src_bytes. Add heuristics for those that have no signature.
24601 (decode_coding_emacs_mule, decode_coding_iso_2022)
24602 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24603 Don't do eol converion.
24604 (adjust_coding_eol_type): Return a new coding system.
24605 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24606 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24607 each change.
24608 (decode_coding): Pay attention to undo_list. Do eol conversion for
24609 all types of coding-systems (if necessary).
24610 (Vcode_conversion_work_buf_list): Delete it.
24611 (Vcode_conversion_reused_workbuf): Rename from
24612 Vcode_conversion_reused_work_buf.
24613 (Vcode_conversion_workbuf_name): New variable.
24614 (reused_workbuf_in_use): New variable.
24615 (make_conversion_work_buffer): Delete the arg DEPTH.
24616 (code_conversion_restore): Change argument to cons.
24617 (code_conversion_save): Delete the argument BUFFER. Change callers.
24618 (detect_coding_system): New argument src_chars. Change callers.
24619 Fix for utf-16 detection.
24620 (init_coding_once): Don't use ISO_carriage_return.
24621 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24622 reused_workbuf_in_use.
24623
24624 2008-02-01 Kenichi Handa <handa@m17n.org>
24625
24626 * keymap.c (store_in_keymap): Pay attention to the case that idx
24627 is a cons specifying a character range.
24628
24629 2008-02-01 Kenichi Handa <handa@m17n.org>
24630
24631 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24632 HANDLED_RECOMPUTE_PROPS.
24633
24634 * coding.c (Fdefine_coding_system_internal): Fix checking of
24635 ascii compatibility.
24636
24637 2008-02-01 Kenichi Handa <handa@m17n.org>
24638
24639 * charset.c (find_charsets_in_text): Delete unused locale variable.
24640 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24641
24642 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24643 Resync charset_list to Vemacs_mule_charset_list.
24644
24645 * keymap.c (store_in_keymap): Pay attention to the case that idx
24646 is a cons specifying a character range.
24647
24648 2008-02-01 Kenichi Handa <handa@m17n.org>
24649
24650 * composite.c (update_compositions): Bind inhibit-read-only, etc
24651 to t before calling remove-list-of-text-properties.
24652
24653 * print.c (print_object): Always print ASCII chars as is.
24654
24655 2008-02-01 Kenichi Handa <handa@m17n.org>
24656
24657 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24658
24659 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24660 is a char table.
24661
24662 2008-02-01 Kenichi Handa <handa@m17n.org>
24663
24664 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24665
24666 2008-02-01 Kenichi Handa <handa@m17n.org>
24667
24668 * xfaces.c (set_lface_from_font_name): Fix for the case that
24669 FONTNAME is not fontset name.
24670
24671 2008-02-01 Kenichi Handa <handa@m17n.org>
24672
24673 * fns.c (base64_encode_1): Fix previous change.
24674
24675 2008-02-01 Kenichi Handa <handa@m17n.org>
24676
24677 * fontset.c (set_fontset_font): New function.
24678 (Fset_fontset_font): If a font is specified for a charset, use
24679 map_charset_chars to store the font spec in a fontset.
24680
24681 2008-02-01 Kenichi Handa <handa@m17n.org>
24682
24683 * fontset.c (fontset_face): Create a fallback fontset on demand.
24684 (make_fontset): Don't create a fallback fontset here.
24685 (free_face_fontset): Free a fallback fontset (if any) too.
24686 (n_auto_fontsets): Delete this variable.
24687 (auto_fontset_alist): New variable.
24688 (new_fontset_from_font_name): Check auto_fontset_alist.
24689 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24690 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24691 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24692 Defsubr Sfontset_list_all.
24693
24694 2008-02-01 Kenichi Handa <handa@m17n.org>
24695
24696 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24697
24698 2008-02-01 Kenichi Handa <handa@m17n.org>
24699
24700 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24701
24702 2008-02-01 Kenichi Handa <handa@m17n.org>
24703
24704 * editfns.c (Fgoto_char): Fix docstring.
24705
24706 2008-02-01 Kenichi Handa <handa@m17n.org>
24707
24708 * insdel.c (insert_from_gap): Adjust intervals correctly.
24709
24710 2008-02-01 Jason Rumney <jasonr@gnu.org>
24711
24712 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24713 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24714 (w32_initialize): Try to load it.
24715 (x_get_font_repertory): Use it if available.
24716 (w32_encode_char): Add shortcut for unicode output.
24717
24718 * w32fns.c (w32_load_system_font): Default charset to -1.
24719 (x_to_w32_charset): Match all fonts for unicode.
24720 (w32_to_x_charset): New parameter matching. Don't return partial
24721 or wildcard charsets.
24722 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24723 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24724 (w32_to_x_font): Match charset to real charset.
24725 (enum_font_cb2): Always list unicode versions.
24726
24727 * makefile.w32-in (temacs): Increase EMHEAP.
24728
24729 2008-02-01 Jason Rumney <jasonr@gnu.org>
24730
24731 * w32term.c (w32_encode_char): New charset parameter.
24732 font_info.encoding becomes encoding_type.
24733 (x_get_font_repertory): New function. Warning: stub only!
24734 (x_new_font): Return quickly if font already set.
24735 (x_new_fontset): fontsetname parameter is Lisp_Object.
24736 Use new fs_query_fontset. Try new_fontset_from_font_name.
24737 Use fontset_name for return value.
24738
24739 * w32term.h: Declare x_get_font_repertory.
24740
24741 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24742 place of find_charset_in_text. Use encode_coding_object in place
24743 of encode_coding.
24744 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24745 decode_coding.
24746
24747 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24748 of x_new_fontset.
24749 (w32_load_system_font): Initialize charset as unicode.
24750 font_info.encoding becomes encoding_type.
24751 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24752 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24753 (syms_of_w32fns): Set get_font_repertory_func.
24754
24755 * w32console.c: Include character.h. Use terminal_encode_buffer
24756 from term.c.
24757 (write_glyphs): Use new version of encode_terminal_code.
24758 Use encode_coding_object in place of encode_coding.
24759
24760 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24761 encoding becomes encoding_type.
24762
24763 * term.c (terminal_encode_buffer): Make externally visible.
24764
24765 * makefile.w32-in: Add character.h dependancies.
24766 (character.o, chartab.o): New targets.
24767
24768 2008-02-01 Kenichi Handa <handa@m17n.org>
24769
24770 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24771 CODING_ID_EOL_TYPE.
24772
24773 2008-02-01 Andreas Schwab <schwab@suse.de>
24774
24775 * coding.c (produce_chars): Revert last change.
24776
24777 2008-02-01 Kenichi Handa <handa@m17n.org>
24778
24779 * charset.h (charset_unicode): Extern it.
24780
24781 * charset.c (string_xstring_p): Check by (C >= 0x100).
24782 (find_charsets_in_text): Change format of the arc CHARSETS.
24783 New arg MULTIBYTE.
24784 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24785 change of find_charsets_in_text.
24786 (Fsplit_char): Fix doc. Never return unknown.
24787
24788 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24789
24790 * coding.c (Fdefine_coding_system_alias):
24791 Update Vcoding_system_list.
24792
24793 * fontset.c (load_font_get_repertory): Pay attention to the case
24794 that ENCODING of a font is specified by a char-table.
24795
24796 * xterm.c (x_get_font_repertory): Handle the case that the
24797 encoding of font is other than Unicode.
24798
24799 2008-02-01 Kenichi Handa <handa@m17n.org>
24800
24801 * term.c (encode_terminal_code): Don't handle glyph-table.
24802 Check if a character is encodable by the terminal coding system.
24803 If not, produces proper number of `?'s. Update
24804 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24805 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24806
24807 2008-02-01 Kenichi Handa <handa@m17n.org>
24808
24809 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24810 New variables.
24811 (encode_terminal_code): Change argument. Encode multiple
24812 characters at once. Store the result of encoding in
24813 terminal_encode_buffer.
24814 (write_glyphs, insert_glyphs): Adjust for the change of
24815 encode_terminal_code.
24816 (term_init): Initialize terminal_encode_buffer and
24817 terminal_encode_buf_size.
24818
24819 * coding.c (consume_chars): If coding->src_object is nil, don't
24820 check annotation.
24821
24822 2008-02-01 Kenichi Handa <handa@m17n.org>
24823
24824 * character.c (char_string): Use ASCII_CHAR_P instead of
24825 SINGLE_BYTE_CHAR_P.
24826
24827 2008-02-01 Kenichi Handa <handa@m17n.org>
24828
24829 * xdisp.c (handle_auto_composed_prop): Check if the last
24830 characters of auto-composed region is newly composed with the
24831 following characters.
24832 (handle_composition_prop): Fix checking of point being inside
24833 composition.
24834
24835 2008-02-01 Kenichi Handa <handa@m17n.org>
24836
24837 * fns.c (concat): Don't change multibyteness of the result by
24838 concatenating an 8-bit character.
24839
24840 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24841 multibyteness of the result when newelt is an 8-bit character.
24842
24843 2008-02-01 Dave Love <fx@gnu.org>
24844
24845 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24846 EMACS_INT.
24847
24848 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24849
24850 * xfaces.c (face_numeric_value): Declare dim size_t.
24851 (Finternal_lisp_face_equal_p): Remove unused f.
24852
24853 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24854 (MATRIX_ROW): Remove unused vars.
24855 (draw_glyphs, x_insert_glyphs, fast_find_position)
24856 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24857 byte/char counts.
24858
24859 * regex.c (regex_compile): Remove unused var.
24860
24861 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24862
24863 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24864 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24865
24866 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24867
24868 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24869
24870 * fileio.c (Fwrite_region): Remove unused var.
24871
24872 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24873 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24874
24875 * composite.c (Fremove_list_of_text_properties): Declare.
24876
24877 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24878 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24879 (coding_inherit_eol_type): Remove unused attrs.
24880 (detect_coding): Cast arg of detect_eol.
24881
24882 * charset.c (syms_of_charset): Remove unused var p.
24883 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24884 byte/char counts.
24885
24886 * casetab.c (set_case_table): Remove unused var.
24887
24888 * window.c (Fdisplay_buffer, Fframe_selected_window):
24889 Remove unused vars.
24890
24891 2008-02-01 Dave Love <fx@gnu.org>
24892
24893 * xterm.c (x_bitmap_mask): Declare.
24894
24895 2008-02-01 Dave Love <fx@gnu.org>
24896
24897 * xterm.c (x_term_init): Fix type error.
24898
24899 * lisp.h: Add Funibyte_char_to_multibyte.
24900
24901 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24902 (Fset_coding_system_priority): Doc fix.
24903
24904 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24905
24906 * indent.c (check_composition): Make start and end EMACS_INT.
24907
24908 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24909
24910 * xdisp.c (handle_composition_prop, check_point_in_composition):
24911 Make buffer positions EMACS_INT.
24912
24913 * composite.c (find_composition, run_composition_function)
24914 (update_compositions, Ffind_composition_internal): Make buffer
24915 positions EMACS_INT.
24916
24917 * composite.h (find_composition, update_compositions):
24918 Make position args EMACS_INT.
24919
24920 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24921
24922 * intervals.c (get_property_and_range):
24923 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24924
24925 * unexalpha.c: Don't include varargs.h.
24926
24927 2008-02-01 Dave Love <fx@gnu.org>
24928
24929 * coding.h (ENCODE_UTF_8): New.
24930
24931 * Makefile.in (gtkutil.o): Depend on coding.h.
24932
24933 * coding.c (Fset_coding_system_priority): Doc fix.
24934
24935 2008-02-01 Kenichi Handa <handa@m17n.org>
24936
24937 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24938 the case of auto saving.
24939
24940 2008-02-01 Andreas Schwab <schwab@suse.de>
24941
24942 * chartab.c (map_char_table, map_char_table_for_charset):
24943 Protect `range' from GC.
24944
24945 2008-02-01 Kenichi Handa <handa@m17n.org>
24946
24947 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24948
24949 2008-02-01 Kenichi Handa <handa@m17n.org>
24950
24951 * fileio.c (choose_write_coding_system): Return a decided coding system.
24952 (Fwrite_region): Set Vlast_coding_system_used to the return value
24953 of choose_write_coding_system.
24954
24955 2008-02-01 Kenichi Handa <handa@m17n.org>
24956
24957 * charset.c (Fset_charset_priority): Pay attention to duplicated
24958 arguments.
24959
24960 * coding.c (QCcategory): New variable.
24961 (syms_of_coding): Defsym it. Set all elements of
24962 Vcoding_category_table and their symbol values.
24963 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24964 coding-category-XXX, and coding-category-list.
24965 (Fdefine_coding_system_internal): Add category in the plist.
24966
24967 2008-02-01 Kenichi Handa <handa@m17n.org>
24968
24969 * callproc.c (Fcall_process): Handle carryover correctly.
24970
24971 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24972 (raw_text_coding_system): Check NILP (coding_system).
24973 (coding_inherit_eol_type): Check NILP (coding_system) and
24974 NILP (parent).
24975 (consume_chars): Fix for the case of raw-text.
24976
24977 * process.c (read_process_output): Handle carryover correctly.
24978
24979 2008-02-01 Dave Love <fx@gnu.org>
24980
24981 * regex.c (re_search_2): Fix last change.
24982
24983 2008-02-01 Kenichi Handa <handa@m17n.org>
24984
24985 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24986 target_multibyte. Even in a unibyte case, return a converted
24987 multibyte char.
24988 (GET_CHAR_AFTER): New macro.
24989 (PATFETCH): Translate via multibyte char.
24990 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24991 (SETUP_MULTIBYTE_RANGE): New macro.
24992 (regex_compile): Setup compiled code so that its multibyteness
24993 matches that of a target. Fix the handling of "[X-YZ]" using
24994 SETUP_MULTIBYTE_RANGE.
24995 (analyse_first) <charset>: For filling fastmap for all multibyte
24996 characters, don't check by BASE_LEADING_CODE_P.
24997 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24998 the same as RE_MULTIBYTE_P (bufp) now.
24999 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
25000 (TARGET_CHAR_AND_LENGTH): Delete this macro.
25001 (TRANSLATE_VIA_MULTIBYTE): New macro.
25002 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
25003 It is the same as RE_MULTIBYTE_P (bufp) now.
25004 <exactn>: Translate via multibyte.
25005 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
25006 Don't translate it.
25007 <charset, charset_not>: Fetch a character by
25008 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
25009 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
25010 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
25011 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
25012 by GET_CHAR_AFTER.
25013 (bcmp_translate): Likewise.
25014
25015 * search.c (compile_pattern): Check the member target_multibyte,
25016 not the member multibyte of buf.
25017
25018 * lread.c (read1): While reading a string, set force_singlebyte
25019 and force_multibyte correctly.
25020
25021 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
25022 up of unibyte_to_multibyte_table.
25023
25024 2008-02-01 Kenichi Handa <handa@m17n.org>
25025
25026 * coding.c (setup_coding_system): If coding has
25027 post-read-conversion or pre-write-conversion, set
25028 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
25029 respectively.
25030 (decode_coding_gap): Run post-read-conversion if any.
25031
25032 * fileio.c (Finsert_file_contents): Even if we read into a
25033 unibyte buffer, check if we must decode the result or not.
25034
25035 2008-02-01 Kenichi Handa <handa@m17n.org>
25036
25037 * coding.c (make_conversion_work_buffer): Change the work buffer
25038 name to the same one as that of Emacs 21.
25039
25040 2008-02-01 Kenichi Handa <handa@m17n.org>
25041
25042 * coding.h (make_conversion_work_buffer): Adjust prototype.
25043 (code_conversion_restore): Don't extern it.
25044
25045 * coding.c (detected_mask): Delete unused variable.
25046 (decode_coding_iso_2022): Pay attention to the byte sequence of
25047 CTEXT extended segment, and retain those bytes as is.
25048 (decode_coding_ccl): Delete unused variable `valids'.
25049 (setup_coding_system): Delete unused variable `category'.
25050 (consume_chars): Delete unused variable `category'. Make it work
25051 for non-multibyte case.
25052 (make_conversion_work_buffer): Change argument.
25053 (saved_coding): Delete unused variable.
25054 (code_conversion_restore): Don't check saved_coding->destination.
25055 (code_conversion_save): New function.
25056 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
25057 instead of record_unwind_protect.
25058 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
25059 (detect_coding_system): Delete unused variable `mask'.
25060 (Fdefine_coding_system_internal): Delete unused variable id.
25061
25062 * fileio.c (kill_workbuf_unwind): New function.
25063 (Finsert_file_contents): On replacing, call
25064 make_conversion_work_buffer with correct args, and call
25065 record_unwind_protect with the first arg kill_workbuf_unwind.
25066
25067 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
25068
25069 2008-02-01 Kenichi Handa <handa@m17n.org>
25070
25071 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
25072 (fontset_add): Fix for the case that TO is less than TO1.
25073 (Ffontset_info): Don't use fallback fontset on checking the
25074 default fontset.
25075 (dump_fontset): New function for debugging.
25076
25077 * coding.c (Fdefine_coding_system_internal): Fix for the case that
25078 coding_type is Qcharset.
25079
25080 2008-02-01 Kenichi Handa <handa@m17n.org>
25081
25082 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
25083 (map_char_table): Don't inherit the value from the parent on
25084 initializing VAL. Adjust for the above change.
25085
25086 2008-02-01 Kenichi Handa <handa@m17n.org>
25087
25088 * coding.c (Qsignature, Qendian): Delete these variables.
25089 (syms_of_coding): Don't initialize them.
25090 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25091 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25092 detect_info->found.
25093 (decode_coding_utf_16): Don't detect BOM here.
25094 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25095 is NOT utf_16_without_bom.
25096 (setup_coding_system): For a coding system of type utf-16, check
25097 if the attribute :endian is Qbig or not (not nil or not), and set
25098 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25099 (detect_coding): If coding type is utf-16 and BOM detection is
25100 required, detect it.
25101 (Fdefine_coding_system_internal): For a coding system of type
25102 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25103
25104 2008-02-01 Kenichi Handa <handa@m17n.org>
25105
25106 * coding.c (coding_set_source): Fix for the case that the current
25107 buffer is different from coding->src_object.
25108 (decode_coding_object): Don't use the conversion work buffer if
25109 DST_OBJECT is a buffer.
25110
25111 2008-02-01 Dave Love <fx@gnu.org>
25112
25113 * lread.c (read_emacs_mule_char) [len==2]: Index
25114 emacs_mule_charset correctly.
25115
25116 2008-02-01 Dave Love <fx@gnu.org>
25117
25118 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25119 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25120 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25121 treated specially.)
25122 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25123 (detected_mask): Remove Big5 bits.
25124
25125 2008-02-01 Kenichi Handa <handa@m17n.org>
25126
25127 The following changes are to make the font rescaling facility
25128 compatible with Emacs 21.
25129
25130 * xfaces.c (Vface_font_rescale_alist): Rename from
25131 Vface_resizing_fonts.
25132 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25133 (font_rescale_ratio): Rename from font_resizing_ratio.
25134 (split_font_name): Set font->rescale_ratio.
25135 (better_font_p): Pay attention to font->rescale_ratio.
25136 (build_scalable_font_name): Likewise. Change RESX, and RESY
25137 fields.
25138 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25139
25140 2008-02-01 Kenichi Handa <handa@m17n.org>
25141
25142 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25143 (Qutf_16_le): Remove these variables.
25144 (syms_of_coding): Don't DEFSYM them.
25145 (decode_coding_utf_16): Fix handling of BOM.
25146 (encode_coding_utf_16): Fix handling of BOM.
25147
25148 2008-02-01 Kenichi Handa <handa@m17n.org>
25149
25150 * fileio.c (Finsert_file_contents): On replacing, before decoding
25151 the file into the work buffer, set point of the work buffer to the end.
25152
25153 2008-02-01 Dave Love <fx@gnu.org>
25154
25155 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25156
25157 2008-02-01 Dave Love <fx@gnu.org>
25158
25159 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25160 and fix C types.
25161
25162 2008-02-01 Kenichi Handa <handa@m17n.org>
25163
25164 * xdisp.c (SKIP_GLYPHS): New macro.
25165 (set_cursor_from_row): Pay attention to string display properties.
25166
25167 * category.c (copy_category_entry): Fix for the case that RANGE
25168 is an integer.
25169
25170 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25171
25172 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25173
25174 2008-02-01 Kenichi Handa <handa@m17n.org>
25175
25176 * charset.c (Fcharset_id_internal): New function.
25177 (syms_of_charset): Defsubr it.
25178
25179 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25180 with the last arg charset_list acquired from coding.
25181 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25182 the attribute coding_attr_ccl_valids.
25183
25184 * coding.h (enum define_coding_ccl_arg_index): Set the first
25185 member coding_arg_ccl_decoder to coding_arg_max.
25186
25187 * ccl.h (ccl_driver): Adjust prototype.
25188
25189 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25190 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
25191 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
25192 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25193 last arg Qnil.
25194
25195 2008-02-01 Kenichi Handa <handa@m17n.org>
25196
25197 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25198 call encode_char.
25199
25200 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25201
25202 2008-02-01 Dave Love <fx@gnu.org>
25203
25204 * composite.c (syms_of_composite): Make composition_hash_table weak.
25205
25206 2008-02-01 Kenichi Handa <handa@m17n.org>
25207
25208 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25209 (font_name_registry): Don't extern them.
25210 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25211
25212 * fontset.h (Qfontset): Don't extern it.
25213 (new_fontset_from_font_name): Extern it.
25214
25215 * fontset.c: Give 8 extra slots to fontset objects.
25216 (Qfontset_info): New variable.
25217 (syms_of_fontset): Defsym it.
25218 (FONTSET_FALLBACK): New macro.
25219 (fontset_face): Try also the default fontset.
25220 (make_fontset): Realize a fallback fontset from the default fontset.
25221 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25222 using split_font_name_into_vector and build_font_name_from_vector.
25223 (Fset_fontset_font): Access the elements of font_spec by enum
25224 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25225 name by using split_font_name_into_vector.
25226 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
25227 generate a proper font name from the fontset name.
25228 Update Vfontset_alias_alist.
25229 (n_auto_fontsets): New variable.
25230 (new_fontset_from_font_name): New function.
25231 (Ffont_info): Store the information about fonts generated from the
25232 default fontset in the first extra slot of the returned char-table.
25233
25234 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25235 (font_name_registry): Delete function.
25236 (split_font_name_into_vector): New function.
25237 (build_font_name_from_vector): New function.
25238 (font_list): The argument REGISTRY is now a list of registry names.
25239 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25240 specifies an explicit font name, return the name as is. Make a
25241 list of registy names.
25242
25243 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25244 of x_new_fontset.
25245 (Fx_create_frame): Don't call x_new_fontset here. Just use
25246 x_list_fonts to check the existence of fonts.
25247
25248 * xterm.h (x_new_fontset): Adjust prototype.
25249
25250 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25251 string. Use new_fontset_from_font_name to create a fontset from a
25252 font name.
25253
25254 2008-02-01 Kenichi Handa <handa@m17n.org>
25255
25256 * syntax.c (Vfind_word_boundary_function_table): New name for
25257 Vnext_word_boundary_function_table.
25258 (find-word-boundary-function-table): New name for
25259 next-word-boundary-function-table.
25260
25261 2008-02-01 Dave Love <fx@gnu.org>
25262
25263 * Makefile.in: Fix some dependencies.
25264
25265 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25266 set it to nil before returning.
25267
25268 * composite.c (update_compositions): Fix type error.
25269
25270 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25271
25272 2008-02-01 Kenichi Handa <handa@m17n.org>
25273
25274 * xterm.c (x_new_font): Optimize for the case that the font is
25275 already set for the frame.
25276
25277 2008-02-01 Kenichi Handa <handa@m17n.org>
25278
25279 * chartab.c (char_table_ascii): Check if the char table contents
25280 is sub-char-table or not.
25281 (char_table_set, char_table_set_range): Fix argument to
25282 char_table_ascii.
25283
25284 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25285 (detect_coding_utf_8, detect_coding_utf_16)
25286 (detect_coding_emacs_mule, detect_coding_iso_2022)
25287 (detect_coding_sjis, detect_coding_big5)
25288 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25289 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25290 sequence is valid in this coding system. Change callers.
25291 (MAX_ANNOTATION_LENGTH): New macro.
25292 (ADD_ANNOTATION_DATA): New macro.
25293 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25294 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
25295 (ADD_CHARSET_DATA): New macro.
25296 (emacs_mule_char): New argument ID. Change callers.
25297 (decode_coding_emacs_mule, decode_coding_iso_2022)
25298 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25299 Produce charset annotation data in coding->charbuf.
25300 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25301 to charset annotation data in coding->charbuf.
25302 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25303 coding->common_flags if the coding system is iso-2022 based and
25304 uses designation.
25305 (produce_composition): Adjust for the new annotation data format.
25306 (produce_charset): New function.
25307 (produce_annotation): Handle charset annotation.
25308 (handle_composition_annotation, handle_charset_annotation):
25309 New functions.
25310 (consume_chars): Handle charset annotation. Utilize the above two
25311 functions.
25312 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25313 buffer, get the deleted text as a string and set
25314 coding->src_object to that string.
25315 (detect_coding, detect_coding_system): Use the new struct
25316 coding_detection_info.
25317
25318 * coding.h (struct coding_detection_info): New structure.
25319 (struct coding_system): Adjust prototype of the member `detector'.
25320 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25321
25322 2008-02-01 Kenichi Handa <handa@m17n.org>
25323
25324 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25325
25326 2008-02-01 Dave Love <fx@gnu.org>
25327
25328 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25329 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25330 to new local and nullify apropos_accumulate before returning.
25331 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25332
25333 2008-02-01 Kenichi Handa <handa@m17n.org>
25334
25335 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25336 correctly.
25337
25338 2008-02-01 Dave Love <fx@gnu.org>
25339
25340 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25341
25342 2008-02-01 Kenichi Handa <handa@m17n.org>
25343
25344 The following changes are to make character composition happen
25345 automatically on displaying.
25346
25347 * Makefile.in (lisp, shortlisp): Add composite.elc.
25348
25349 * composite.h (Qauto_composed, Vauto_composition_function)
25350 (Qauto_composition_function): Extern them.
25351
25352 * composite.c (Vcomposition_function_table)
25353 (Qcomposition_function_table): Delete variables.
25354 (Qauto_composed, Vauto_composition_function)
25355 (Qauto_composition_function): New variables.
25356 (run_composition_function): Don't call
25357 compose-chars-after-function.
25358 (update_compositions): Clear `auto-composed' text property.
25359 (compose_chars_in_text): Delete this function.
25360 (syms_of_composite): Staticpro Qauto_composed and
25361 Qauto_composition_function. Declare Vauto_composition_function as
25362 a Lisp variable.
25363
25364 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25365
25366 * xdisp.c (it_props): Add an entry for Qauto_composed.
25367 (handle_auto_composed_prop): New function.
25368
25369 * xselect.c (selection_data_to_lisp_data): Don't call
25370 compose_chars_in_text.
25371
25372 2008-02-01 Dave Love <fx@gnu.org>
25373
25374 * keyboard.c (read_char): Modify checking around use of
25375 Vkeyboard_translate_table.
25376
25377 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25378 and fix C types.
25379
25380 2008-02-01 Kenichi Handa <handa@m17n.org>
25381
25382 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25383 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25384 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25385 the case that the last byte is '\r' correctly.
25386 (decode_coding): Flush out the unprocessed data correctly.
25387 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25388
25389 2008-02-01 Dave Love <fx@gnu.org>
25390
25391 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25392 Add XK_ISO... case.
25393 (xaw_scroll_callback): Revert last change.
25394
25395 2008-02-01 Kenichi Handa <handa@m17n.org>
25396
25397 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25398
25399 2008-02-01 Kenichi Handa <handa@m17n.org>
25400
25401 * xfaces.c (Vface_resizing_fonts): New variable.
25402 (struct font_name): New member `resizing_ratio'.
25403 (font_resizing_ratio): New function.
25404 (split_font_name): Set font->resizing_ratio.
25405 (better_font_p): Pay attention to font->resizing_ratio.
25406 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25407 RESX, and RESY fields.
25408 (try_alternative_families): Try scalable fonts if
25409 Vscalable_fonts_allowed is not Qt.
25410 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25411
25412 2008-02-01 Dave Love <fx@gnu.org>
25413
25414 * xterm.c (xaw_scroll_callback): Cast correctly.
25415
25416 2008-02-01 Dave Love <fx@gnu.org>
25417
25418 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25419 (lispy_kana_keys): Comment out.
25420 (make_lispy_event) [XK_kana_A]: Comment out.
25421
25422 * xterm.c (xaw_scroll_callback): Cast call_data.
25423 (XTread_socket): Deal with ASCII keysyms.
25424 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25425
25426 2008-02-01 Dave Love <fx@gnu.org>
25427
25428 * xterm.c (Vx_keysym_table): New.
25429 (syms_of_xterm): Initialize it.
25430 (XTread_socket): Use it.
25431 From head: Eliminate incorrect optimization that tried to avoid
25432 decoding the output of X*LookupString.
25433 (x_get_font_repertory): Delete charset declaration.
25434
25435 2008-02-01 Kenichi Handa <handa@m17n.org>
25436
25437 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25438 return 0.
25439 (Fdefine_coding_system_internal):
25440 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
25441
25442 2008-02-01 Dave Love <fx@gnu.org>
25443
25444 * coding.c (Fcheck_coding_system): Doc fix.
25445
25446 * editfns.c (Finsert_byte): Return a proper value.
25447
25448 2008-02-01 Kenichi Handa <handa@m17n.org>
25449
25450 * coding.c (decode_coding): Fix args to translate_chars.
25451 Pay attention to Vstandard_translation_table_for_decode.
25452 (encode_coding): Fix args to translate_chars. Pay attention to
25453 Vstandard_translation_table_for_encode.
25454
25455 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25456 SINGLE_BYTE_CHAR_P.
25457
25458 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25459 not by SINGLE_BYTE_CHAR_P.
25460
25461 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25462 SINGLE_BYTE_CHAR_P.
25463
25464 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25465 SINGLE_BYTE_CHAR_P.
25466
25467 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25468 by SINGLE_BYTE_CHAR_P.
25469
25470 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25471 SINGLE_BYTE_CHAR_P.
25472
25473 2008-02-01 Dave Love <fx@gnu.org>
25474
25475 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25476
25477 2008-02-01 Dave Love <fx@gnu.org>
25478
25479 * fns.c (Flanginfo): Fix typo.
25480
25481 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25482
25483 2008-02-01 Kenichi Handa <handa@m17n.org>
25484
25485 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25486 (detect_coding_emacs_mule, detect_coding_iso_2022)
25487 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25488 incomplete byte sequence. Don't update *mask when correctly detected.
25489 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25490 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25491 (detect_coding, detect_coding_system): Adjust for the changes above.
25492
25493 2008-02-01 Kenichi Handa <handa@m17n.org>
25494
25495 * character.c (char_string): Rename from
25496 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25497 (string_char): Rename from string_char.
25498
25499 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25500 if C is greater than MAX_3_BYTE_CHAR.
25501 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25502 Call string_char instead of string_char_with_unification.
25503
25504 2008-02-01 Dave Love <fx@gnu.org>
25505
25506 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25507
25508 2008-02-01 Kenichi Handa <handa@m17n.org>
25509
25510 * keymap.c (push_key_description): Pay attention to force_multibyte.
25511
25512 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25513
25514 2008-02-01 Dave Love <fx@gnu.org>
25515
25516 * charset.c (define_charset_internal): Rename `supprementary'.
25517
25518 * Makefile.in (lisp, shortlisp): Remove latin-N.
25519
25520 2008-02-01 Dave Love <fx@gnu.org>
25521
25522 * xfns.c (x_window, x_window): Use use_xim.
25523
25524 * xterm.c (use_xim): Initialize.
25525 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25526 (x_term_init): Maybe set use_xim.
25527
25528 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25529
25530 2008-02-01 Kenichi Handa <handa@m17n.org>
25531
25532 * search.c (search_buffer): Fix case-fold-search of multibyte
25533 characters.
25534 (boyer_moore): Rename the last argument to char_high_bits.
25535
25536 2008-02-01 Kenichi Handa <handa@m17n.org>
25537
25538 * xdisp.c (display_string): Fix for the case of zero width glyph.
25539
25540 * xfns.c (x_set_font): Change the error message of the case that
25541 x_new_fontset returns Qt.
25542
25543 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25544 (Finternal_set_lisp_face_attribute): Use signal_error for the
25545 error of invalid fontset.
25546
25547 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25548 fontset, return Qt.
25549
25550 2008-02-01 Dave Love <fx@gnu.org>
25551
25552 * unexelf.c (unexec): Make .got handling not SGI-specific.
25553
25554 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25555
25556 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25557
25558 * keyboard.c (read_key_sequence): Fix type error.
25559
25560 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25561 Fix type error.
25562
25563 * fontset.c (fontset_add): Return Lisp_Object.
25564
25565 2008-02-01 Dave Love <fx@gnu.org>
25566
25567 * charset.h (charset_ordered_list_tick): Declare extern.
25568
25569 2008-02-01 Kenichi Handa <handa@m17n.org>
25570
25571 The following changes (and some of 2008-02-01 changes of mine) are
25572 for handling syntax, category, and case conversion for unibyte
25573 characters by converting them to multibyte on the fly. With these
25574 changes, we don't have to setup syntax and case tables for unibyte
25575 characters in each language environment.
25576
25577 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25578 multibyte if necessary.
25579
25580 * bytecode.c (Fbyte_code): Likewise.
25581
25582 * character.h (LEADING_CODE_LATIN_1_MIN)
25583 (LEADING_CODE_LATIN_1_MAX): New macros.
25584 (unibyte_to_multibyte_table): Extern it.
25585 (unibyte_char_to_multibyte): New macro.
25586 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25587 (CHAR_LEADING_CODE): New macro.
25588 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25589
25590 * character.c (unibyte_to_multibyte_table): New variable.
25591 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25592 (multibyte_char_to_unibyte): If C is an eight-bit character,
25593 convert it to the corresponding byte value.
25594
25595 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25596 not 1, signals an error. Update the elements of
25597 unibyte_to_multibyte_table.
25598 (init_charset_once): Initialize unibyte_to_multibyte_table.
25599 (syms_of_charset): Define the charset `iso-8859-1'.
25600
25601 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25602 as is without converting it to unibyte. In a unibyte buffer,
25603 convert C to multibyte before checking the syntax.
25604
25605 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25606
25607 * minibuf.c (Fminibuffer_complete_word): Use the macro
25608 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25609
25610 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25611
25612 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
25613 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25614 If that is zero, convert an eight-bit char to multibyte.
25615 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25616 non-emacs case.
25617 (PATFETCH): Convert an eight-bit char to multibyte.
25618 (HANDLE_UNIBYTE_RANGE): New macro.
25619 (regex_compile): Setup the compiled pattern for multibyte chars
25620 even if the given regex string is unibyte. Use PATFETCH_RAW
25621 instead of PATFETCH in many places. To handle `charset'
25622 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25623 only for ASCII chars.
25624 (analyse_first) <exactn>: Simplify because the compiled pattern
25625 is multibyte.
25626 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25627 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25628 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25629 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25630 multibyte always 1.
25631 (re_search_2): In emacs, set the locale variable multibyte to 1,
25632 otherwise to 0. New local variable target_multibyte. Check it
25633 to decide the multibyteness of STR1 and STR2.
25634 If target_multibyte is zero, convert unibyte chars to multibyte
25635 before translating and checking fastmap.
25636 (TARGET_CHAR_AND_LENGTH): New macro.
25637 (re_match_2_internal): In emacs, set the locale variable multibyte
25638 to 1, otherwise to 0. New local variable target_multibyte.
25639 Check it to decide the multibyteness of STR1 and STR2.
25640 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
25641 <charset, charset_not>: If multibyte is nonzero, check fastmap
25642 only for ASCII chars. Call bcmp_translate with
25643 target_multibyte, not with multibyte.
25644 <begline>: Declare the local variable C as `unsigned'.
25645 (bcmp_translate): Change the last arg name to target_multibyte.
25646
25647 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25648 the regexp pattern and the matching target. Set cp->buf.multibyte
25649 to the multibyteness of the regexp pattern. Set
25650 cp->but.target_multibyte to the multibyteness of the matching target.
25651 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25652 FETCH_STRING_CHAR_ADVANCE.
25653 (Freplace_match): Convert unibyte chars to multibyte.
25654
25655 * syntax.c (char_quoted, back_comment, scan_words)
25656 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25657 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25658 unibyte chars to multibyte.
25659 (skip_chars): Delete the arg syntaxp, and move the code for
25660 handling syntaxes to skip_syntaxes. Change callers.
25661 Fix the case that the multibyteness of STRING and the current
25662 buffer doesn't match.
25663 (skip_syntaxes): New function.
25664 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25665 SINGLE_BYTE_CHAR_P.
25666
25667 2008-02-01 Kenichi Handa <handa@m17n.org>
25668
25669 * xfaces.c (QCfontset): New variable.
25670 (LFACE_FONTSET): New macro.
25671 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25672 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25673 (Finternal_set_lisp_face_attribute)
25674 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25675 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25676 check also LFACE_FONTSET_INDEX.
25677 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25678 attrs[LFACE_FONT_INDEX].
25679 (syms_of_xfaces): Intern and staticpro QCfontset.
25680
25681 * dispextern.h (enum lface_attribute_index): New member
25682 LFACE_FONTSET_INDEX.
25683
25684 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25685
25686 2008-02-01 Kenichi Handa <handa@m17n.org>
25687
25688 * coding.c (coding_set_destination): Fix coding->destination for
25689 the case converting a region.
25690 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25691 (encode_coding_object): Fix coding->dst_pos and
25692 coding->dst_pos_byte for the case converting a region.
25693
25694 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25695
25696 * character.h (BYTE8_STRING): New macro.
25697
25698 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25699
25700 2008-02-01 Kenichi Handa <handa@m17n.org>
25701
25702 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25703 characters by octal form.
25704
25705 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25706
25707 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25708 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25709 _fetch_multibyte_char_len.
25710 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25711
25712 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25713
25714 * casefiddle.c (casify_object): Simplify. Handle the case that
25715 the case conversion change the byte length.
25716 (casify_region): Likewise.
25717
25718 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25719
25720 * character.c (_fetch_multibyte_char_len): Delete this variable.
25721 (syms_of_character): Setup Vprintable_chars.
25722
25723 * editfns.c (Fchar_equal): Fix for the unibyte case.
25724 (Finsert_byte): New function.
25725 (syms_of_editfns): Defsubr it.
25726
25727 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25728 of direct code 0x3ffff.
25729
25730 * search.c (Freplace_match): Fix for the unibyte case.
25731
25732 2008-02-01 Kenichi Handa <handa@m17n.org>
25733
25734 * lread.c (safe_to_load_p): Fix the logic.
25735
25736 * syntax.c (scan_words): Don't treat characters belonging to
25737 different scripts as constituting a word.
25738
25739 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25740
25741 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25742
25743 * emacs.c (main): In the case of --unibyte, instead of aborting on
25744 finding non-empty buffer, make it unibyte.
25745
25746 2008-02-01 Kenichi Handa <handa@m17n.org>
25747
25748 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25749 to create a fontset.
25750
25751 2008-02-01 Dave Love <fx@gnu.org>
25752
25753 * character.c (Funibyte_char_to_multibyte): Doc fix.
25754
25755 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25756
25757 2008-02-01 Kenichi Handa <handa@m17n.org>
25758
25759 * fontset.c (fontset_add): Make the type `int'.
25760 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25761
25762 * character.c (unibyte_char_to_multibyte)
25763 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25764 charset_unibyte, not charset_primary.
25765
25766 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25767
25768 * charset.c (charset_unibyte): Rename from charset_primary.
25769 (Funibyte_charset): Rename from Fprimary_charset.
25770 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25771 (syms_of_charset): Adjust for the above changes.
25772
25773 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25774 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25775 it->multibyte_p is zero.
25776
25777 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25778 Delete extern.
25779
25780 2008-02-01 Kenichi Handa <handa@m17n.org>
25781
25782 * coding.c (Fdefine_coding_system_internal): Fix category setting
25783 for a coding system of type iso-2022.
25784
25785 2008-02-01 Kenichi Handa <handa@m17n.org>
25786
25787 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25788
25789 2008-02-01 Kenichi Handa <handa@m17n.org>
25790
25791 * syntax.c (Vnext_word_boundary_function_table): New variable.
25792 (next-word-boundary-function-table): Declare it as a Lisp variable
25793 in syms_of_syntax.
25794 (scan_words): Call functions in Vnext_word_boundary_function_table
25795 if any.
25796
25797 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25798
25799 * fontset.c (fs_load_font): If fontp->charset is not negative,
25800 return fontp without setting its members.
25801
25802 2008-02-01 Dave Love <fx@gnu.org>
25803
25804 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25805
25806 * m/sparc.h (HAVE_ALLOCA): Delete.
25807
25808 * s/irix6-5.h: Don't include strings.h.
25809 (bcopy, bzero, bcmp): Don't undef.
25810
25811 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25812
25813 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25814 (TIOCSIGSEND): Don't test IRIX6.
25815 (bcopy, bzero, bcmp): Define conditionally.
25816
25817 2008-02-01 Kenichi Handa <handa@m17n.org>
25818
25819 * buffer.c (Qas, Qmake, Qto): New variables.
25820 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25821 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25822
25823 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25824 we are inserting a process output into a multibyte buffer.
25825
25826 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25827 multibyte_char_to_unibyte.
25828
25829 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25830 by the primary charset, make it eight-bit char.
25831 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25832
25833 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25834 (charset_8_bit__control, charset_8_bit_graphic)
25835 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25836 (define_charset_internal): New function.
25837 (syms_of_charset): Call define_charset_internal for pre-defined
25838 charsets.
25839
25840 * charset.h (charset_8_bit): Extern it.
25841
25842 * coding.c (make_conversion_work_buffer): Adjust for the change
25843 of Fset_buffer_multibyte.
25844 (encode_coding_raw_text): Increment p0 in the loop.
25845
25846 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25847
25848 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25849 Adjust for the change of Fset_buffer_multibyte.
25850
25851 * fns.c (Fstring_to_multibyte): New function.
25852 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25853
25854 2008-02-01 Dave Love <fx@gnu.org>
25855
25856 * xfns.c (x_put_x_image): Declare args.
25857
25858 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25859 (try_font_list): Declare an arg.
25860
25861 * xdisp.c (message2_nolog, set_message): Declare an arg.
25862
25863 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25864
25865 * syntax.c (scan_sexps_forward): Declare an arg.
25866
25867 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25868 Declare an arg.
25869
25870 * lisp.h (Fnew_fontset): Declare.
25871
25872 * keymap.c (push_key_description): Call CHARACTERP correctly.
25873
25874 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25875 (face_for_char): Delete unused vars.
25876 (Fset_fontset_font): Doc fix. Delete unused vars.
25877
25878 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25879
25880 * composite.c (update_compositions): Declare arg.
25881
25882 * cm.c (calccost, cmgoto): Declare args.
25883
25884 * charset.c: Remove `emacs' conditional. Doc fixes.
25885 (map_char_table_for_charset): Declare.
25886
25887 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25888
25889 * ccl.c: Remove `emacs' conditional.
25890
25891 2008-02-01 Kenichi Handa <handa@m17n.org>
25892
25893 The following changes are to allow specifying multiple font
25894 patterns for a character range (specified by script or charset).
25895
25896 * Makefile.in (abbrev.o): Depend on syntax.h.
25897 (xfaces.o): Depend on charset.h.
25898
25899 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25900 SINGLE_BYTE_CHAR_P.
25901
25902 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25903
25904 * character.h (Vchar_script_table): Extern it.
25905
25906 * character.c (Vscript_alist): Delete.
25907 (Vchar_script_table, Qchar_script_table): New variable.
25908 (syms_of_character): Declare Vchar_script_table as a lisp variable
25909 and initialize it.
25910
25911 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25912 have property char-table-extra-slots, make no extra slot.
25913
25914 * dispextern.h (struct face): Delete member `charset'.
25915 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25916 SINGLE_BYTE_CHAR_P.
25917 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25918 Add prototypes.
25919 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25920 (generate_ascii_font_name): Rename from generate_ascii_font.
25921
25922 * fontset.h (get_font_repertory_func): New prototype.
25923 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25924 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25925
25926 * fontset.c (Qprepend, Qappend): New variables.
25927 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25928 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25929 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25930 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25931 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25932 (load_font_get_repertory): New functions.
25933 (fontset_set): Delete.
25934 (fontset_face): New arg FACE. Return face ID, not face.
25935 Complete re-write to handle new fontset structure. Change caller.
25936 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25937 (face_for_char): Don't call lookup_face.
25938 (make_fontset_for_ascii_face): New arg FACE.
25939 (fs_load_font): New arg CHARSET_ID. Don't check
25940 Vfont_encoding_alist here.
25941 (find_font_encoding): New function.
25942 (list_fontsets): Use STRINGP, not ! NILP.
25943 (accumulate_script_ranges): New function.
25944 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25945 Completely re-written to handle new fontset structure.
25946 (Ffontset_font): Return a copy of element.
25947 (syms_of_fontset): Define symbols Qprepend and Qappend.
25948 Fix docstring of font-encoding-alist.
25949
25950 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25951 (Fset_fotset_font): Fix arguments to 5.
25952
25953 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25954
25955 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25956 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25957 (highlight_trailing_whitespace): Adjust for the change of
25958 lookup_named_face.
25959
25960 * xfaces.c: Include charset.h.
25961 (load_face_font): Delete argument C. Change caller.
25962 (generate_ascii_font_name): Rename from generate_ascii_font.
25963 (font_name_registry): New function.
25964 (cache_face): Store ascii faces before non-ascii faces in buckets.
25965 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25966 Lookup only ascii faces.
25967 (lookup_non_ascii_face): New function.
25968 (lookup_named_face): Delete argument C. Change caller.
25969 (lookup_derived_face): Delete argument C. Change caller.
25970 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25971 a string, just call font_list with it.
25972 (choose_face_font): Delete arguments FACE and C. New arg
25973 FONT_SPEC. Change caller.
25974 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25975 Change caller.
25976 (realize_non_ascii_face): New function.
25977 (realize_x_face): Call load_face_font here.
25978 (realize_tty_face): Delete argument C. Change caller.
25979 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25980 get a face ID.
25981 (dump_realized_face): Don't print charset of FACE.
25982
25983 * xfns.c (x_set_font): Always call x_new_fontset and
25984 store_frame_parameter.
25985 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25986 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25987
25988 * xterm.h (x_get_font_repertory): Extern it.
25989
25990 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25991 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25992 it->multibyte_p is zero.
25993 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25994 (x_new_fontset): If FONTSETNAME doesn't match any existing
25995 fontsets, create a new one.
25996 (x_get_font_repertory): New function.
25997
25998 2008-02-01 Kenichi Handa <handa@m17n.org>
25999
26000 * coding.c (Ffind_coding_systems_region_internal): Detect an
26001 ASCII only string correctly.
26002
26003 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
26004 version is 0.
26005
26006 2008-02-01 Kenichi Handa <handa@m17n.org>
26007
26008 * lread.c: Include "coding.h".
26009 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
26010 (load_each_byte, unread_char): New variables.
26011 (readchar_backlog): Delete.
26012 (readchar): Return a character unless load_each_byte is nonzero.
26013 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
26014 cons. If unread_char is not -1, simply return it.
26015 (unreadchar): Handle the case that readcharfun is
26016 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
26017 (read_multibyte): Delete.
26018 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
26019 (read_emacs_mule_char): New functions.
26020 (Fload): Even if the file doesn't have the extension ".elc", if
26021 safe_to_load_p returns a positive version number, assume that the
26022 file contains bytecompiled code. If the version is less than 22,
26023 load the file while decoding multibyte sequences by emacs-mule.
26024 (readevalloop): Don't use readchar_backlog.
26025 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
26026 (Fread_from_string): Pay attention to the case that STREAM is a cons.
26027 (read_escape): Delete the arg BYTEREP.
26028 (read1): Set load_each_byte to 1 temporarily while handling
26029 #@NUMBER. Don't call read_multibyte.
26030 (read_vector): Call Fread with a cons. If readcharfun is
26031 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
26032 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
26033 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
26034 and Qload_force_doc_strings.
26035
26036 2008-02-01 Kenichi Handa <handa@m17n.org>
26037
26038 * xdisp.c (face_before_or_after_it_pos):
26039 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
26040
26041 2008-02-01 Kenichi Handa <handa@m17n.org>
26042
26043 * character.h (TRAILING_CODE_P): New macro.
26044 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
26045 (string_char_with_unification): Fix prototype.
26046 (Vscript_alist): Extern it.
26047
26048 * character.c (Vscript_alist): New variable.
26049 (string_char_with_unification, str_as_unibyte)
26050 (string_escape_byte8): Add `const' to local variables.
26051 (syms_of_character): Declare script-alist as a Lisp variable.
26052
26053 * charset.h (Vcharset_ordered_list): Extern it.
26054 (charset_ordered_list_tick): Extern it.
26055 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
26056 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
26057 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
26058 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
26059 (Funify_charset): Adjust for the change of Funify_charset.
26060
26061 * charset.c (charset_ordered_list_tick): New variable.
26062 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
26063 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
26064 deunify instead of unify a charset.
26065 (string_xstring_p): Add `const' to local variables.
26066 (find_charsets_in_text): Add `const' to arguments and local variables.
26067 (encode_char): Adjust for the change of Funify_charset.
26068 Fix detecting of invalid code.
26069 (Fset_charset_priority): Increment charset_ordered_list_tick.
26070 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
26071 and TO_CODE.
26072
26073 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
26074 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
26075 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
26076 (decode_coding_ccl, consume_chars)
26077 (Ffind_coding_systems_region_internal)
26078 (Fcheck_coding_systems_region): Add `const' to local variables.
26079
26080 * print.c (print_object): Use octal form for printing the
26081 contents of a bool vector.
26082
26083 2008-02-01 Dave Love <fx@gnu.org>
26084
26085 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
26086 <version == 20>: Refuse to load.
26087
26088 2008-02-01 Dave Love <fx@gnu.org>
26089
26090 * fns.c: Move coding.h.
26091 (Qcodeset, Qdays, Qmonths): New.
26092 (concat): Use CHARACTERP instead of INTEGERP.
26093 (Flocale_codeset): Delete.
26094 (Flanginfo): New function.
26095 (syms_of_fns): Change accordingly.
26096
26097 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26098
26099 2008-02-01 Dave Love <fx@gnu.org>
26100
26101 * casetab.c (init_casetab_once, init_casetab_once):
26102 Fix CHAR_TABLE_SET call.
26103
26104 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26105
26106 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26107
26108 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26109 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26110 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26111
26112 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26113
26114 * coding.c (ENCODE_DESIGNATION, decode_eol)
26115 (make_conversion_work_buffer, code_conversion_restore)
26116 (Fdefine_coding_system_internal): Convert Lisp types.
26117 (code_conversion_restore): Use EQ, not ==.
26118 (Fencode_coding_string): Fix code_convert_string call.
26119
26120 * coding.h (code_convert_region): Fix prototype.
26121
26122 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26123
26124 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26125 (Ffontset_info): Convert Lisp types.
26126
26127 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26128
26129 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26130
26131 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26132
26133 * chartab.c: Include "...h", not <...h> in some cases.
26134
26135 * callproc.c (Fcall_process): Remove unused variables.
26136
26137 2008-02-01 Dave Love <fx@gnu.org>
26138
26139 * coding.c (Fset_coding_system_priority): Allow null arg list.
26140
26141 2008-02-01 Dave Love <fx@gnu.org>
26142
26143 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26144 (Fself_insert_and_exit): Use CHARACTERP.
26145
26146 * callproc.c (Fcall_process): Remove unused vars.
26147
26148 * xterm.c (XTread_socket): Add extra dead keysyms.
26149
26150 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26151
26152 * dispextern.h: Remove prototypes for redraw_frame,
26153 redraw_garbaged_frames.
26154
26155 * cmds.c (Fself_insert_command): Use CHARACTERP.
26156
26157 * chartab.c (make_sub_char_table): Remove unused var.
26158 (Fset_char_table_default, Fmap_char_table): Doc fix.
26159
26160 * keymap.c (access_keymap): Remove generic char code.
26161 (push_key_description): Use CHARACTERP.
26162
26163 2008-02-01 Dave Love <fx@gnu.org>
26164
26165 * charset.c: Doc fixes.
26166 (Funify_charset): Extra checking.
26167
26168 2008-02-01 Dave Love <fx@gnu.org>
26169
26170 * lread.c: Remove some unused variables.
26171 (safe_to_load_p): If safe, return the magic number version byte.
26172 (Fload): Maybe use load-with-code-conversion.
26173
26174 2008-02-01 Kenichi Handa <handa@m17n.org>
26175
26176 * category.c (Fmodify_category_entry): Don't modify the contents
26177 of category_set for characters out of the range.
26178 Avoid unnecessary modification.
26179
26180 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26181 Vchar_unify_table. The default value of the table is now nil.
26182
26183 * character.c (syms_of_character): Setup Vchar_width_table for
26184 eight-bit-control and raw-byte chars.
26185
26186 * charset.h (enum define_charset_arg_index):
26187 Delete charset_arg_parents and add charset_arg_subset and
26188 charset_arg_superset.
26189 (enum charset_attr_index): Delete charset_parents and add
26190 charset_subset and charset_superset.
26191 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26192 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26193 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26194 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26195 (CHARSET_SUPERSET): New macros.
26196 (charset_work): Extern it.
26197 (ENCODE_CHAR): Use charset_work.
26198 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26199 (map_charset_chars): Extern it.
26200
26201 * charset.c (load_charset_map): Set the default value of encoder
26202 and deunifier char-tables to nil.
26203 (map_charset_chars): Change argument. Change callers.
26204 Use map_char_table_for_charset instead of map_char_table.
26205 (Fmap_charset_chars): New optional args from_code and to_code.
26206 (Fdefine_charset_internal): Adjust for the change of
26207 `define-charset' (:parents -> :subset or :superset).
26208 (charset_work): New variable.
26209 (encode_char, syms_of_charset): Adjust for the change of
26210 Fdefine_charset_internal.
26211 (Ffind_charset_string): Setup the vector `charsets' correctly.
26212
26213 * chartab.c (sub_char_table_ref_and_range): New arg default.
26214 Fix the previous change.
26215 (char_table_ref_and_range): Adjust for the above change.
26216 (map_sub_char_table_for_charset): New function.
26217 (map_char_table_for_charset): New function.
26218
26219 * keymap.c (describe_vector): Handle a char-table directly here.
26220 (describe_char_table): Delete.
26221
26222 * lisp.h (map_charset_chars): Delete.
26223
26224 2008-02-01 Dave Love <fx@gnu.org>
26225
26226 * fns.c (count_combining): Comment out (unused).
26227 (Flocale_codeset): New.
26228 (syms_of_fns): Defsubr it.
26229
26230 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26231 (size_t): Remove.
26232
26233 2008-02-01 Dave Love <fx@gnu.org>
26234
26235 * Makefile.in (chartab.o): Depend on charset.h.
26236
26237 2008-02-01 Kenichi Handa <handa@m17n.org>
26238
26239 * character.c (syms_of_character): Set the default value of
26240 Vprintable_chars to Qnil.
26241
26242 2008-02-01 Dave Love <fx@gnu.org>
26243
26244 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26245
26246 2008-02-01 Kenichi Handa <handa@m17n.org>
26247
26248 * charset.c (load_charset_map): Handle the case that from < to
26249 correctly.
26250
26251 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26252 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26253 Pay attention to raw-8-bit chars.
26254
26255 2008-02-01 Kenichi Handa <handa@m17n.org>
26256
26257 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26258 It is not bytecompiled now.
26259
26260 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26261 (charset_jisx0208): New variables.
26262 (Fdefine_charset_internal): Setup them if appropriate.
26263 (init_charset_once): Initialize them to -1.
26264
26265 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26266 (charset_jisx0208): Extern them.
26267
26268 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26269 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26270 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26271 (setup_iso_safe_charsets): Fix arguments to Fassq.
26272 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26273 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26274 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26275 (encode_coding_iso_2022): Change the 1st arg to
26276 ENCODE_ISO_CHARACTER to a variable.
26277
26278 2008-02-01 Kenichi Handa <handa@m17n.org>
26279
26280 * charset.h (enum define_charset_arg_index): New enums
26281 charset_arg_min_code and charset_arg_max_code.
26282 (struct charset): New member char_index_offset.
26283
26284 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26285 Take charset->char_index_offset into account.
26286 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26287 args[charset_arg_max_code]. Setup charset.char_index_offset.
26288 (syms_of_charset): Fix args to Fdefine_charset_internal.
26289
26290 2008-02-01 Dave Love <fx@gnu.org>
26291
26292 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26293
26294 2008-02-01 Dave Love <fx@gnu.org>
26295
26296 * coding.c: Doc fixes.
26297 (Fcoding_system_aliases): Fix return value.
26298 (Qmac): Remove (duplicated) definition.
26299
26300 2008-02-01 Dave Love <fx@gnu.org>
26301
26302 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26303 New functions.
26304
26305 * character.c (Fstring): Doc fix.
26306
26307 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26308
26309 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
26310 (font-encoding-alist): Doc fix.
26311
26312 2008-02-01 Dave Love <fx@gnu.org>
26313
26314 * term.c (costs_set): Declare static, non-initialized for pcc.
26315 (encode_terminal_code): Remove unused var.
26316
26317 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26318 for K&R.
26319
26320 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26321
26322 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26323 (suffixes): Move out of make_subsidiaries for K&R.
26324
26325 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26326
26327 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26328
26329 2008-02-01 Dave Love <fx@gnu.org>
26330
26331 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26332
26333 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26334
26335 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26336
26337 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26338
26339 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26340
26341 2008-02-01 Kenichi Handa <handa@m17n.org>
26342
26343 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26344 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26345
26346 2008-02-01 Kenichi Handa <handa@m17n.org>
26347
26348 * coding.c (decode_coding_charset): Adjust for the change of
26349 Fdefine_coding_system_internal.
26350 (Fdefine_coding_system_internal): For a coding system of
26351 `charset' type, store a list of charset IDs in
26352 `charset_attr_charset_valids' element of coding attributes.
26353
26354 2008-02-01 Kenichi Handa <handa@m17n.org>
26355
26356 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
26357 (emacs_mule_char): New arg src. Delete arg `composition'.
26358 Change caller. Handle 2-byte and 3-byte charsets correctly.
26359 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26360 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26361 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
26362 (DECODE_EMACS_MULE_21_COMPOSITION):
26363 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
26364 sequence.
26365 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26366 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26367 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26368 and alt&rule composition.
26369 (decode_coding_iso_2022): Handle composition correctly.
26370 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26371
26372 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26373 re-defining a charset. If the charset has :emacs-mule-id, setup
26374 emacs_mule_bytes.
26375 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26376
26377 2008-02-01 Kenichi Handa <handa@m17n.org>
26378
26379 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26380 (encode_coding_big5, encode_coding_charset): If coding requires safe
26381 encoding, produce a character specified by
26382 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26383
26384 2008-02-01 Dave Love <fx@gnu.org>
26385
26386 * xterm.c (XSetIMValues): Declare.
26387
26388 * process.c: Conditionally include sys/wait.h, pty.h.
26389
26390 * print.c (print_object): Fix print format for 64-bit systems.
26391
26392 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26393
26394 * buffer.c (emacs_strerror): Declare.
26395
26396 * fontset.c (Fclear_face_cache): Declare.
26397 (accumulate_font_info): Comment-out (unused).
26398 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26399 variables.
26400
26401 * character.h (string_escape_byte8): Declare.
26402
26403 * charset.c (load_charset_map, load_charset_map_from_file):
26404 Remove unused vars.
26405 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26406 (Fmap_charset_chars): Doc fix.
26407
26408 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26409 (Fset_coding_system_priority, Fset_coding_system_priority)
26410 (Fdefine_coding_system_internal): Doc fix.
26411
26412 2008-02-01 Dave Love <fx@gnu.org>
26413
26414 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26415
26416 2008-02-01 Kenichi Handa <handa@m17n.org>
26417
26418 * character.c (string_escape_byte8): Make multibyte string with
26419 correct size.
26420
26421 * charset.c (Fmake_char): Delete unnecessary code.
26422
26423 2008-02-01 Kenichi Handa <handa@m17n.org>
26424
26425 * xfns.c (x_encode_text): Allocate coding.destination here, and
26426 call encode_coding_object with dst_object Qnil.
26427
26428 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26429 multibyte form correctly.
26430
26431 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26432 against Vfont_encoding_alist.
26433
26434 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26435 handling of charset list.
26436 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26437 (decode_coding_object): Move point to coding->dst_pos before
26438 calling post-read-conversion function.
26439 (encode_coding_object): Give correct arguments to
26440 pre-write-conversion. Ignore the return value of
26441 pre-write-conversion function. Pay attention to the case that
26442 pre-write-conversion changes the current buffer. If dst_object is
26443 Qt, even if coding->src_bytes is zero, allocate at least one byte
26444 to coding->destination.
26445
26446 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26447
26448 * charset.c (Fmake_char): Make it more backward compatible.
26449 (Fmap_charset_chars): Fix docstring.
26450
26451 2008-02-01 Dave Love <fx@gnu.org>
26452
26453 * coding.c: Doc fixes.
26454 (Fdefine_coding_system_alias): Use names, not symbols, in
26455 coding-system-alist.
26456
26457 2008-02-01 Kenichi Handa <handa@m17n.org>
26458
26459 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26460 of calling free_realized_face.
26461
26462 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26463
26464 * charset.c (read_hex): Don't treat SPC as a comment starter.
26465 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26466 (Fdecode_char): Fix typo.
26467
26468 2008-02-01 Kenichi Handa <handa@m17n.org>
26469
26470 * charset.h (struct charset): New member `code_space_mask'.
26471
26472 * coding.c (coding_set_source): Delete the local variable beg_byte.
26473 (encode_coding_charset, Fdefine_coding_system_internal):
26474 Delete the local variable charset.
26475 (Fdefine_coding_system_internal):
26476 Setup attrs[coding_attr_charset_valids] correctly.
26477
26478 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26479 member to check if CODE is valid or not.
26480 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26481 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26482 is within the range of charset->min_code and carset->max_code.
26483
26484 2008-02-01 Dave Love <fx@gnu.org>
26485
26486 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26487
26488 * dispextern.h (generate_ascii_font): Fix return type.
26489
26490 * xfaces.c (generate_ascii_font): Fix arg declaration.
26491
26492 * coding.c (coding_inherit_eol_type)
26493 (Fset_terminal_coding_system_internal)
26494 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26495
26496 2008-02-01 Kenichi Handa <handa@m17n.org>
26497
26498 * coding.c (decode_coding_charset, encode_coding_charset):
26499 Handle multiple charsets correctly.
26500
26501 2008-02-01 Kenichi Handa <handa@m17n.org>
26502
26503 * search.c (boyer_moore): Fix handling of multibyte character
26504 translation.
26505
26506 * xdisp.c (display_mode_element): When the variable `elt' is
26507 changed, update `this' and `lisp_string'.
26508
26509 2008-02-01 Kenichi Handa <handa@m17n.org>
26510
26511 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26512
26513 * callproc.c (Fcall_process): Be sure to give the current buffer
26514 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26515
26516 * charset.c (struct charset_map_entries): New struct.
26517 (load_charset_map): Rename from parse_charset_map. New args
26518 entries and n_entries. Change caller.
26519 (load_charset_map_from_file): Rename from load_charset_map.
26520 Change caller. New arg control_flag. Call load_charset_map at
26521 the tail.
26522 (load_charset_map_from_vector): New function.
26523 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26524 (encode_char): If the charset is compact, change a character index
26525 to a code point.
26526
26527 * coding.c (coding_alloc_by_making_gap): Check the case that the
26528 source and destination are the same correctly.
26529 (decode_coding_raw_text): Set coding->consumed_char and
26530 coding->consumed to 0.
26531 (produce_chars): If coding->chars_at_source is nonzero, update
26532 coding->consumed_char and coding->consumed before calling
26533 alloc_destination.
26534 (Fdefine_coding_system_alias): Register ALIAS in
26535 Vcoding_system_alist.
26536 (syms_of_coding): Define `no-conversion' coding system at the tail.
26537
26538 * fileio.c (Finsert_file_contents): Set coding_system instead of
26539 val. If the current buffer is multibyte, always call
26540 decode_coding_gap.
26541
26542 * xfaces.c (try_font_list): Give higher priority to fontset's
26543 family than face's family.
26544
26545 2008-02-01 Kenichi Handa <handa@m17n.org>
26546
26547 * callproc.c (Fcall_process): Be sure to give the current buffer
26548 to decode_coding_c_string.
26549
26550 * xfaces.c (try_font_list): Give a family specified in a fontset
26551 higher priority than a family specified in a face.
26552
26553 2008-02-01 Kenichi Handa <handa@m17n.org>
26554
26555 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26556 Fix arguments to insert_from_buffer.
26557
26558 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26559
26560 2008-02-01 Kenichi Handa <handa@m17n.org>
26561
26562 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26563 (decode_coding_gap): Set coding->dst_multibyte correctly.
26564
26565 2008-02-01 Kenichi Handa <handa@m17n.org>
26566
26567 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26568 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26569 (encode_coding_utf_16): Substitute coding->default_char for
26570 non-Unicode characters.
26571 (decode_coding): Don't call record_insert here.
26572 (setup_coding_system): Initialize `surrogate' of
26573 coding->spec.utf_16 to 0.
26574 (EMIT_ONE_BYTE): Fix for multibyte case.
26575
26576 * insdel.c (insert_from_gap): Call record_insert.
26577
26578 2008-02-01 Kenichi Handa <handa@m17n.org>
26579
26580 * casefiddle.c (casify_region): Fix multibyte case.
26581
26582 * character.c (c_string_width): Add return type `int'.
26583 (char_string_with_unification): Delete arg ADVANCED.
26584
26585 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26586 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26587 (CHAR_STRING_ADVANCE): Make it do-while statement.
26588
26589 * chartab.c (sub_char_table_set_range): Optimize for the case
26590 DEPTH == 3. Add workaround code for a GCC optimization bug.
26591
26592 * charset.c (parse_charset_map): Remove an unused variable.
26593
26594 * coding.c: Delete unused variables.
26595
26596 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26597 earlier. If inserted is zero and the coding system doesn't
26598 require flushing, don't call decode_coding_gap.
26599
26600 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26601
26602 2008-02-01 Kenichi Handa <handa@m17n.org>
26603
26604 The following changes are for using Unicode as an internal
26605 character model, and use UTF-8 format for buffer/string
26606 representation.
26607
26608 * .gdbinit (xchartable): Adjust for the change of char table structure.
26609 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26610
26611 * Makefile.in (obj): Add character.o and chartab.o.
26612 (lisp, shortlisp): Remove utf-8.elc.
26613 (*.o): For many files, change dependency on charset.h to
26614 character.h, and add dependency on character.h.
26615 (character.o, chartab.o): New targets.
26616
26617 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26618 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26619 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26620 of "charset.h".
26621
26622 * dired.c, filelock.c: Include "character.h".
26623
26624 * alloc.c: Include "character.h" instead of "charset.h".
26625 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26626 (syms_of_alloc): Remove defsubr for Smake_char_table.
26627
26628 * buffer.c: Include "character.h" instead of "charset.h", don't
26629 include "coding.h".
26630 (Fset_buffer_multibyte): Adjust for UTF-8.
26631
26632 * buffer.h: EXFUN Fbuffer_live_p.
26633
26634 * callproc.c: Include "character.h" instead of "charset.h".
26635 (Fcall_process): Big change for the new code-conversion APIs.
26636
26637 * casetab.c: Include "character.h" instead of "charset.h".
26638 (set_canon, set_identity, shuffle): Adjust for the new
26639 map_char_table spec.
26640 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26641 accessing the char table structure.
26642
26643 * chartab.c: New file that implements char table.
26644
26645 * category.c: Include "character.h".
26646 (copy_category_entry): New function.
26647 (copy_category_table): Call map_char_table and copy_category_entry.
26648 (Fmake_category_table): Initialize all top-level slots.
26649 (char_category_set): New function.
26650 (modify_lower_category_set): Delete.
26651 (Fmodify_category_entry): Call char_table_ref_and_range.
26652
26653 * category.h (CATEGORY_SET): Just call char_category_set.
26654
26655 * ccl.c: Include "character.h".
26656 (Qccl, Qcclp): New variables.
26657 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26658 it's less than 256.
26659 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26660 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26661 and DST type.
26662 (ccl_driver): Change types of argument, adjust code accordingly.
26663 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26664 ccl_driver.
26665 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26666
26667 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26668 New members src_multibyte, dst_multibyte, consumed, and produced.
26669 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26670 (CODING_SPEC_CCL_PROGRAM): New macro.
26671 (ccl_driver): Update prototype.
26672 (Qccl, Qcclp, Fccl_program_p): Extern them.
26673 (CHECK_CCL_PROGRAM): New macro.
26674
26675 * character.c, character.h, chartab.c: New files.
26676
26677 * charset.c: Mostly re-written. Move character and multibyte sequence
26678 handling codes to character.c.
26679
26680 * charset.h: Mostly re-written. Move character and multibyte sequence
26681 handling codes to character.h.
26682
26683 * coding.c, coding.h: Mostly re-written.
26684
26685 * composite.c: Include "character.h" instead of "charset.h".
26686 (CHAR_WIDTH): Move to character.h.
26687 (HASH_KEY, HASH_VALUE): Delete.
26688
26689 * composite.h (enum composition_method): Change order of enumeration
26690 symbols.
26691
26692 * data.c: Include "character.h" instead of "charset.h".
26693 (Faref): Call CHAR_TABLE_REF for a char table.
26694 (Faset): Call CHAR_TABLE_SET for a char table.
26695
26696 * dispextern.h (free_realized_face, check_face_attribytes)
26697 (generate_ascii_font): Extern them.
26698 (free_realized_multibyte_face): Delete extern.
26699
26700 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26701 table structure.
26702
26703 * editfns.c: Include "character.h" instead of "charset.h".
26704 (Fchar_to_string): Always call CHAR_STRING.
26705
26706 * emacs.c (main): Call init_charset_once, init_charset,
26707 syms_of_chartab, and syms_of_character.
26708
26709 * fileio.c: Include "character.h" instead of "charset.h".
26710 (Finsert_file_contents): Big change for the new code-conversion API.
26711 (choose_write_coding_system, Fwrite_region): Likewise.
26712 (build_annotations_2): Delete.
26713 (e_write): Big change for the new code-conversion API.
26714
26715 * fns.c: Include "character.h" instead of "charset.h".
26716 (copy_sub_char_table): Move to chartab.c.
26717 (Fcopy_sequence): Call copy_char_table for a char table.
26718 (concat): Delete codes calling count_multibyte.
26719 (string_char_to_byte, string_byte_to_char): Adjust for the new
26720 multibyte form.
26721 (internal_equal): Adjust for the change of char table structure.
26722 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26723 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26724 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26725 (char_table_translate, optimize_sub_char_table)
26726 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26727 chartab.c.
26728 (char_table_ref_and_index): Delete.
26729 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26730 (Fmd5): Call preferred_coding_system instead of accessing
26731 Vcoding_category_list. Adjust for the new code-conversion API.
26732 (syms_of_fns): Move defsubr for char table related functions to
26733 chartab.c.
26734
26735 * fontset.c: Mostly re-written.
26736
26737 * fontset.h (struct font_info): Change type of the member encoding_type.
26738 (enum FONT_SPEC_INDEX): New enum.
26739 (fontset_font_pattern, fs_load_font): Update prototype.
26740 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26741
26742 * indent.c: Include "character.h" instead of "charset.h".
26743 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26744
26745 * insdel.c: Include "character.h" instead of "charset.h".
26746 (copy_text): Don't refer to Vnonascii_translation_table.
26747 (insert_from_gap): New function.
26748
26749 * keyboard.c: Include "character.h" instead of "charset.h".
26750 (command_loop_1): Never call direct_output_forward_char before
26751 a non-ASCII character.
26752 (read_char): If Vkeyboard_translate_table is a char table, always
26753 translate a character.
26754
26755 * keymap.c: Include "character.h".
26756 (store_in_keymap): Handle the case that IDX is a cons.
26757 (Fdefine_key): Handle the case that KEY is a cons and the car part
26758 is also a cons (range).
26759 (push_key_description): Adjust for the new character code.
26760 (describe_vector): Call describe_char_table for a char table.
26761 (describe_char_table): New function.
26762
26763 * keymap.h (describe_char_table): Extern it.
26764
26765 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26766 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26767 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26768 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26769 Delete.
26770 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26771 structure.
26772 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26773 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26774 (CHARTAB_SIZE_BITS_3): New macros.
26775 (chartab_size): Extern it.
26776 (struct Lisp_Char_Table): Re-design.
26777 (struct Lisp_Sub_Char_Table): New structure.
26778 (HASH_KEY, HASH_VALUE): Move from fns.c.
26779 (CHARACTERBITS): Define as 22.
26780 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26781 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26782 (GC_SUB_CHAR_TABLE_P): New macro.
26783 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
26784 (code_convert_string_norecord): Delete extern.
26785 (init_character_once, syms_of_character, init_charset)
26786 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26787
26788 * lread.c: Include "character.h".
26789 (read_multibyte): New arg NBYTES.
26790 (read_escape): Change the meaning of returned *BYTEREP.
26791 (to_multibyte): Delete.
26792 (read1): Adjust the handling of char table and string.
26793
26794 * print.c: Include "character.h" instead of "charset.h".
26795 (print_string): Convert 8-bit raw bytes to octal form by
26796 string_escape_byte8.
26797 (print_object): Adjust for the new multibyte form. Print 8-bit
26798 raw bytes always in octal form. Handle sub char table correctly.
26799
26800 * process.c: Include "character.h" instead of "charset.h".
26801 (read_process_output, send_process): Adjust for the new
26802 code-conversion API.
26803
26804 * puresize.h (BASE_PURESIZE): Increase.
26805
26806 * regex.c: Include "character.h" instead of "charset.h".
26807 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26808 (regex_compile): Accept a range whose starting and ending
26809 character have different leading bytes.
26810 (analyse_first): Adjust for the above change.
26811
26812 * search.c: Include "character.h" instead of "charset.h".
26813 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26814 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26815
26816 * syntax.c: Include "character.h" instead of "charset.h".
26817 (syntax_parent_lookup): Delete.
26818 (Fmodify_syntax_entry): Accept a cons as CHAR.
26819 (skip_chars): Adjust for the new multibyte form.
26820 (init_syntax_once): Call char_table_set_range instead of directly
26821 accessing the structure of a char table.
26822
26823 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26824 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26825 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26826 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26827
26828 * term.c: Include "buffer.h" and "character.h".
26829 (encode_terminal_code, write_glyphs): Adjust for the new
26830 code-conversion API.
26831 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26832
26833 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26834
26835 * xdisp.c: Include "character.h".
26836 (get_next_display_element): Adjust for the new multibyte form.
26837 (disp_char_vector): Adjust for the new char table structure.
26838 (decode_mode_spec_coding): Adjust for the new structure of
26839 coding system.
26840 (decode_mode_spec): Adjust for the new code-conversion API.
26841
26842 * xfaces.c: Include "character.h" instead of "charset.h".
26843 (load_face_font): Adjust for the change of choose_face_font and
26844 FS_LOAD_FONT.
26845 (generate_ascii_font): New function.
26846 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26847 (set_font_frame_param): Adjust for the change of choose_face_font.
26848 (free_realized_face): Make it public.
26849 (free_realized_faces_for_fontset): Rename from
26850 free_realized_multibyte_face. Free also faces realized for ASCII.
26851 (choose_face_font): Change arguments. Adjust for the change of
26852 fontset_font_pattern and FS_LOAD_FONT.
26853
26854 * xfns.c: Include "character.h".
26855 (x_encode_text): Adjust for the new code-conversion API.
26856
26857 * xselect.c: Don't include "charset.h".
26858 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26859
26860 * xterm.c: Include "character.h".
26861 (x_encode_char): New argument CHARSET. Change caller.
26862 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26863 Call ENCODE_CHAR instead of SPLIT_CHAR.
26864 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26865 CHAR_WIDTH instead of CHARSET_WIDTH.
26866 (XTread_socket): Adjust for the new code-conversion API.
26867 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26868 (x_load_font): Adjust for the change of struct font.
26869
26870 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26871
26872 * xfaces.c (face_at_buffer_position): Remove unused vars.
26873
26874 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26875
26876 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26877 Fix overflow checking.
26878
26879 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26880
26881 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26882 Cancel previous change.
26883
26884 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26885
26886 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26887 ccl->eight_bit_control. Fix check for buffer overflow.
26888 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26889 (ccl_driver): Initialize extra_bytes to 0.
26890
26891 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26892
26893 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26894 return it ORed with ctrl_modifier.
26895
26896 2008-01-29 Miles Bader <miles@gnu.org>
26897
26898 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26899
26900 2008-01-28 Jason Rumney <jasonr@gnu.org>
26901
26902 * w32.c (stat): Don't double check for networked drive.
26903
26904 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26905
26906 * window.c (run_window_configuration_change_hook): New function.
26907 Code extracted from set_window_buffer. Set the selected frame.
26908 (set_window_buffer): Use it.
26909 * window.h (run_window_configuration_change_hook): Declare.
26910 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26911
26912 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26913
26914 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26915
26916 * Makefile.in: Remove references to unused macros.
26917
26918 2008-01-26 Eli Zaretskii <eliz@gnu.org>
26919
26920 * w32.c (g_b_init_get_sid_sub_authority)
26921 (g_b_init_get_sid_sub_authority_count): New static variables.
26922 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26923 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26924 (init_user_info): Use them to retrieve uid and gid.
26925 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26926 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26927 st_uid and st_gid of the file.
26928
26929 2008-01-26 Jason Rumney <jasonr@gnu.org>
26930
26931 * w32.c (logon_network_drive): New function.
26932 (stat): Use it.
26933
26934 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
26935
26936 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26937 invisible text covered with an ellipsis.
26938
26939 2008-01-25 Richard Stallman <rms@gnu.org>
26940
26941 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26942 jump back to beginning. Move some other initializations after that.
26943 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26944 New variables.
26945 (syms_of_xdisp): Init them.
26946
26947 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26948
26949 * buffer.c (reset_buffer_local_variables):
26950 Implement `permanent-local-hook'.
26951 (Qpermanent_local_hook): New variable.
26952 (syms_of_buffer): Init and staticpro it.
26953
26954 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
26955
26956 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26957
26958 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26959
26960 * fns.c (Fclrhash): Return TABLE.
26961
26962 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26963
26964 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26965 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26966 is set even without positional changes.
26967 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26968
26969 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26970
26971 2008-01-23 Jason Rumney <jasonr@gnu.org>
26972
26973 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26974
26975 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26976 the unicode range available in MULE by locale-coding-system.
26977 Improve dbcs lead byte detection. Set event timestamp and modifiers
26978 earlier.
26979
26980 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26981
26982 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26983 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26984 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26985 when used on child processes.
26986
26987 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
26988
26989 * dbusbind.c (Fdbus_method_return_internal): Rename from
26990 Fdbus_method_return.
26991 (Fdbus_unregister_object): Move to dbus.el.
26992 (Fdbus_call_method, Fdbus_method_return_internal)
26993 (Fdbus_send_signal): Improve debug messages.
26994
26995 2008-01-20 Martin Rudalics <rudalics@gmx.at>
26996
26997 * undo.c (undo_inhibit_record_point): New variable.
26998 (syms_of_undo): Initialize it.
26999 (record_point): Don't record point when undo_inhibit_record_point
27000 is set.
27001
27002 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
27003
27004 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
27005
27006 * xdisp.c (Qauto_hscroll_mode): New var.
27007 (syms_of_xdisp): Initialize it.
27008 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
27009 window's buffer.
27010 (hscroll_windows): Don't check automatic_hscrolling_p here.
27011
27012 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
27013 vscroll if we're setting window-buffer to the value it already has.
27014
27015 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
27016
27017 * m/intel386.h: Remove references to XENIX.
27018
27019 2008-01-17 Andreas Schwab <schwab@suse.de>
27020
27021 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
27022 instead of HAVE_X86_64_LIB64_DIR.
27023 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
27024
27025 2008-01-17 Glenn Morris <rgm@gnu.org>
27026
27027 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
27028 to HAVE_X86_64_LIB64_DIR.
27029
27030 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
27031
27032 * s/irix3-3.h:
27033 * s/irix4-0.h:
27034 * s/386-ix.h:
27035 * s/domain.h:
27036 * s/hpux9-x11r4.h:
27037 * s/hpux9shxr4.h: Remove files for systems no longer supported.
27038
27039 * sysdep.c: Remove code containing references to symbols defined
27040 by unsupported systems.
27041
27042 2008-01-16 Glenn Morris <rgm@gnu.org>
27043
27044 * coding.c (select-safe-coding-system-function): Doc fix.
27045
27046 2008-01-15 Glenn Morris <rgm@gnu.org>
27047
27048 * config.in: Revert 2008-01-13 change: this is a generated file.
27049
27050 2008-01-13 Tom Tromey <tromey@redhat.com>
27051
27052 * lisp.h: Fix typo.
27053
27054 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27055
27056 * m/sequent-ptx.h:
27057 * m/sequent.h:
27058 * s/ptx.h:
27059 * s/ptx4-2.h:
27060 * s/ptx4.h: Remove files for systems no longer supported.
27061
27062 * callproc.c (Fcall_process): Fix previous change.
27063
27064 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27065
27066 * unexsunos4.c: Remove file, system not supported anymore.
27067
27068 * m/mips.h:
27069 * m/intel386.h:
27070 * callproc.c:
27071 * config.in:
27072 * ecrt0.c:
27073 * emacs.c:
27074 * fileio.c:
27075 * frame.c:
27076 * getpagesize.h:
27077 * keyboard.c:
27078 * lread.c:
27079 * process.c:
27080 * puresize.h:
27081 * sysdep.c:
27082 * systty.h:
27083 * syswait.h:
27084 * unexec.c:
27085 * xdisp.c:
27086 * alloc.c: Remove code containing references to symbols defined by
27087 unsupported systems.
27088
27089 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27090
27091 * coding.c (detect_coding_mask): Fix previous change.
27092
27093 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27094
27095 * coding.c (detect_coding_iso2022): New arg
27096 latin_extra_code_state. Allow Latin extra codes only
27097 when *latin_extra_code_state is nonzero.
27098 (detect_coding_mask): If there is a NULL byte, detect the encoding
27099 as UTF-16 or binary. If Latin extra codes exist, detect the
27100 encoding as ISO-2022 only when there's no other proper encoding is
27101 found.
27102
27103 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27104
27105 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27106 #ifdef MAC_OS.
27107
27108 2008-01-08 Richard Stallman <rms@gnu.org>
27109
27110 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27111
27112 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
27113
27114 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27115 menu bar in parentheses.
27116
27117 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27118
27119 * m/7300.h:
27120 * m/acorn.h:
27121 * m/alliant-2800.h:
27122 * m/alliant.h:
27123 * m/alliant1.h:
27124 * m/alliant4.h:
27125 * m/altos.h:
27126 * m/amdahl.h:
27127 * m/apollo.h:
27128 * m/att3b.h:
27129 * m/aviion-intel.h:
27130 * m/aviion.h:
27131 * m/celerity.h:
27132 * m/clipper.h:
27133 * m/cnvrgnt.h:
27134 * m/convex.h:
27135 * m/cydra5.h:
27136 * m/delta88k.h:
27137 * m/dpx2.h:
27138 * m/dual.h:
27139 * m/elxsi.h:
27140 * m/f301.h:
27141 * m/gould-np1.h:
27142 * m/gould.h:
27143 * m/i860.h:
27144 * m/ibmps2-aix.h:
27145 * m/ibmrt-aix.h:
27146 * m/ibmrt.h:
27147 * m/irist.h:
27148 * m/is386.h:
27149 * m/isi-ov.h:
27150 * m/mega68.h:
27151 * m/mg1.h:
27152 * m/news-r6.h:
27153 * m/news-risc.h:
27154 * m/news.h:
27155 * m/nh3000.h:
27156 * m/nh4000.h:
27157 * m/ns16000.h:
27158 * m/ns32000.h:
27159 * m/nu.h:
27160 * m/orion.h:
27161 * m/orion105.h:
27162 * m/paragon.h:
27163 * m/pfa50.h:
27164 * m/plexus.h:
27165 * m/pyramid.h:
27166 * m/pyrmips.h:
27167 * m/sh3el.h:
27168 * m/sps7.h:
27169 * m/sr2k.h:
27170 * m/stride.h:
27171 * m/sun1.h:
27172 * m/sun2.h:
27173 * m/sun3-68881.h:
27174 * m/sun3-fpa.h:
27175 * m/sun3-soft.h:
27176 * m/sun3.h:
27177 * m/sun386.h:
27178 * m/symmetry.h:
27179 * m/tad68k.h:
27180 * m/tahoe.h:
27181 * m/targon31.h:
27182 * m/tek4300.h:
27183 * m/tekxd88.h:
27184 * m/tower32.h:
27185 * m/tower32v3.h:
27186 * m/ustation.h:
27187 * m/wicat.h:
27188 * m/xps100.h:
27189 * s/cxux.h:
27190 * s/cxux7.h:
27191 * s/dgux.h:
27192 * s/dgux4.h:
27193 * s/dgux5-4-3.h:
27194 * s/dgux5-4r2.h:
27195 * s/esix.h:
27196 * s/esix5r4.h:
27197 * s/hiuxmpp.h:
27198 * s/hiuxwe2.h:
27199 * s/iris3-5.h:
27200 * s/iris3-6.h:
27201 * s/isc2-2.h:
27202 * s/isc3-0.h:
27203 * s/isc4-0.h:
27204 * s/isc4-1.h:
27205 * s/newsos5.h:
27206 * s/newsos6.h:
27207 * s/osf1.h:
27208 * s/osf5-0.h:
27209 * s/riscix1-1.h:
27210 * s/riscix12.h:
27211 * s/sco4.h:
27212 * s/sco5.h:
27213 * s/sunos4-0.h:
27214 * s/sunos4-1.h:
27215 * s/sunos413.h:
27216 * s/sunos4shr.h:
27217 * s/umax.h:
27218 * s/unipl5-2.h:
27219 * s/xenix.h:
27220 * cxux-crt0.s:
27221 * unexapollo.c:
27222 * unexconvex.c:
27223 * unexenix.c:
27224 * unexsni.c: Remove files for systems no longer supported.
27225
27226 * m/intel386.h: Remove references to unsupported systems.
27227
27228 * w32.c (get_emacs_configuration): Remove reference to i860.
27229
27230 * sysdep.c: Remove dead code.
27231
27232 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27233
27234 * s/rtu.h:
27235 * m/masscomp.h: Remove files. Platform is obsolete.
27236
27237 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
27238
27239 * dbusbind.c (Fdbus_method_return): New function.
27240 (xd_read_message): Add the serial number to the event.
27241 (Fdbus_register_method): Activate the function.
27242
27243 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27244
27245 * keyboard.c (read_key_sequence): Fix typo.
27246
27247 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
27248
27249 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27250 (xd_signature, xd_append_arg): Handle element type detection for
27251 empty arrays.
27252 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27253 SDATA () calls; this must be solved more general.
27254 (Fdbus_register_signal): Use SBYTES instead of strlen.
27255
27256 2008-01-03 Magnus Henoch <magnus@zemdatav>
27257
27258 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27259 unsigned int for byte values (necessary for big-endian platform).
27260 (Fdbus_call_method): Handle the case of no returned arguments.
27261
27262 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27263
27264 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27265
27266 2007-12-31 Magnus Henoch <mange@freemail.hu>
27267
27268 * dbusbind.c (xd_signature): Signature of variant is just "v".
27269
27270 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
27271
27272 * dbusbind.c: Fix several errors and compiler warnings.
27273 Reported by Tom Tromey <tromey@redhat.com>.
27274 (XD_ERROR, XD_DEBUG_MESSAGE)
27275 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27276 (xd_append_arg): Part for basic D-Bus types rewritten.
27277 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27278 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27279 appropriate.
27280 (xd_read_message): Return Qnil. Don't signal an error; it is not
27281 useful during event reading.
27282 (Fdbus_register_signal): Signal an error if the check for
27283 FUNCTIONP fails.
27284 (Fdbus_register_method): New function. The implementation is not
27285 complete, the call of the function signals an error therefore.
27286 (Fdbus_unregister_object): New function, renamed from
27287 Fdbus_unregister_signal. The initial check signals an error, if
27288 the object is not well formed.
27289
27290 2007-12-30 Richard Stallman <rms@gnu.org>
27291
27292 * textprop.c (get_char_property_and_overlay):
27293 Signal error if POSITION is out of range in a buffer.
27294
27295 2007-12-29 Martin Rudalics <rudalics@gmx.at>
27296
27297 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27298 because the original parameters are in pure storage now.
27299
27300 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27301
27302 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27303
27304 2007-12-22 Eli Zaretskii <eliz@gnu.org>
27305
27306 * callint.c (syms_of_callint) <command-history>: Add reference to
27307 history-length in the doc string.
27308
27309 2007-12-17 Jason Rumney <jasonr@gnu.org>
27310
27311 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27312 before passing as wParam.
27313
27314 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
27315
27316 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27317 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27318 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27319 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27320 as number.
27321 (Fdbus_call_method): Fix docstring.
27322
27323 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
27324
27325 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27326 New macros.
27327 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27328 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27329 Simplify.
27330 (xd_signature): New function.
27331 (xd_append_arg): Compute also signatures. Major rewrite.
27332 (xd_retrieve_arg): Make debug messages friendly.
27333 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27334 Check for signatures of arguments.
27335
27336 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
27337
27338 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27339 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27340 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27341 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27342 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27343 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27344 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27345 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27346 (xd_retrieve_value): Remove. Functionality included in ...
27347 (xd_append_arg): New function.
27348 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27349
27350 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
27351
27352 * dbusbind.c (top): Include <stdio.h>.
27353 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27354 dbus_message_new_method_call and dbus_message_new_signal.
27355 (Fdbus_register_signal): Rename unique_name to uname.
27356 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27357 non-existing unique name. Fix typos in matching rule. Return an
27358 object which is useful in Fdbus_unregister_signal.
27359 (Fdbus_unregister_signal): Reimplementation, in order to remove
27360 only the corresponding entry.
27361 (Vdbus_registered_functions_table): Change the order of entries.
27362 Apply these changes in xd_read_message and Fdbus_register_signal.
27363
27364 2007-12-16 Andreas Schwab <schwab@suse.de>
27365
27366 * fileio.c (Finsert_file_contents): Fix overflow check to not
27367 depend on undefined integer overflow.
27368
27369 2007-12-14 Jason Rumney <jasonr@gnu.org>
27370
27371 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27372 for characters above 127.
27373
27374 2007-12-13 Jason Rumney <jasonr@gnu.org>
27375
27376 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27377 before dereferencing array.
27378 (lookup_vk_code): Remove zero comparison.
27379
27380 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
27381
27382 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27383 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27384 Use `unsigned int' instead of `uint'.
27385 (xd_read_message, Fdbus_register_signal): Split expressions into
27386 multiple lines before operators "&&" and "||", according to the
27387 GNU Coding Standards.
27388
27389 2007-12-14 Eli Zaretskii <eliz@gnu.org>
27390
27391 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27392
27393 2007-12-12 Juri Linkov <juri@jurta.org>
27394
27395 * buffer.c (Frename_buffer): In interactive spec replace
27396 `read-buffer' with `read-string' that uses `buffer-name-history'
27397 as history, and the current buffer's name as default.
27398
27399 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27400
27401 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27402 manipulating the backtrace manually.
27403 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27404 (struct backtrace, backtrace_list): Remove.
27405 (command_loop_1): Remove dead var `no_direct'.
27406
27407 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27408 preserve non-built-in buffer-local variables.
27409 (Fkill_all_local_variables): Don't re-create&re-set permanent
27410 buffer-local variables.
27411
27412 2007-12-09 Juri Linkov <juri@jurta.org>
27413
27414 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27415 Lisp code that uses `read-buffer' with current buffer as default.
27416
27417 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
27418
27419 * dbusbind.c (xd_read_message): Generate an event for every
27420 registered handler. There might be several handlers registered
27421 for the same signal.
27422 (Fdbus_register_signal): Don't overwrite a registration for the
27423 same signal. Add a new registration if handlers are different.
27424 (Vdbus_registered_functions_table): Rework doc string.
27425
27426 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
27427
27428 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27429 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27430 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27431 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27432 Unify argument lists.
27433 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27434 arguments and hash table keys. Use unique name for service.
27435 (Fdbus_unregister_signal): Remove checks.
27436 (Vdbus_registered_functions_table): Fix doc string.
27437
27438 2007-12-05 Magnus Henoch <mange@freemail.hu>
27439
27440 * process.c (make_process): Initialize pty_flag to 0.
27441
27442 2007-12-05 Jason Rumney <jasonr@gnu.org>
27443
27444 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27445 specified XBMs.
27446
27447 2007-12-05 Richard Stallman <rms@gnu.org>
27448
27449 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27450
27451 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27452
27453 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27454 New variable.
27455 (mac_try_close_socket) [MAC_OSX]: New function.
27456 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27457 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27458
27459 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27460 Use mac_try_close_socket.
27461
27462 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27463
27464 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27465 reloc_base.
27466 (copy_dysymtab): Compute relocation base here.
27467 (rebase_reloc_address) [__ppc64__]: New function.
27468 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27469 changed.
27470
27471 2007-12-05 Jason Rumney <jasonr@gnu.org>
27472
27473 * w32proc.c (sys_spawnve): Quote args with wildcards.
27474
27475 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27476
27477 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27478 __objc_* sections.
27479 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27480
27481 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
27482
27483 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27484 Move check for Vdbus_registered_functions_table to
27485 xd_read_queued_messages.
27486 (xd_read_queued_messages): Protect xd_read_message calls by
27487 internal_condition_case_1.
27488
27489 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
27490
27491 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27492 Qdbus_system_bus and Qdbus_session_bus, respectively.
27493 (Vdbus_intern_symbols): Remove.
27494 (Vdbus_registered_functions_table): New hash table.
27495 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27496 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27497 Rewrite in order to manage registered functions by hash table
27498 Vdbus_registered_functions_table.
27499
27500 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27501
27502 * xterm.c: Update URL to Window Manager Specification in comment.
27503
27504 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
27505
27506 * config.in (HAVE_DBUS): Add.
27507
27508 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27509 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27510 (obj): Add $(DBUS_OBJ).
27511 (LIBES): Add $(DBUS_LIBS).
27512 (dbusbind.o): New target.
27513
27514 * dbusbind.c: New file.
27515
27516 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27517
27518 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27519 (Qdbus_event): New Lisp symbol.
27520 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27521 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
27522 (keys_of_keyboard): Define dbus-event.
27523
27524 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27525
27526 2007-12-01 Richard Stallman <rms@gnu.org>
27527
27528 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27529
27530 2007-11-30 Jason Rumney <jasonr@gnu.org>
27531
27532 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27533 (w32con_reset_terminal_modes): Clear screen buffer.
27534 (w32_face_attributes): Don't use color indexes that are out of range.
27535 Only reverse the default colors.
27536
27537 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27538 WINDOWSNT.
27539
27540 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27541
27542 2007-11-29 Jason Rumney <jasonr@gnu.org>
27543
27544 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27545 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27546 if the terminal colors are initialized.
27547 (unspecified_fg, unspecified_bg): Remove unused declarations.
27548
27549 2007-11-29 Andreas Schwab <schwab@suse.de>
27550
27551 * keyboard.c (apply_modifiers): Fix typo.
27552
27553 2007-11-29 Richard Stallman <rms@gnu.org>
27554
27555 * keymap.c (Fcurrent_local_map): Doc fix.
27556
27557 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27558
27559 * s/gnu-kfreebsd.h: New file.
27560
27561 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27562
27563 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27564 Don't cast redundantly.
27565
27566 * keyboard.c (KEY_TO_CHAR): New macro.
27567 (parse_modifiers, apply_modifiers): Accept integer arguments.
27568 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27569 for chars and symbol keys.
27570 After doing such remapping, apply function-key-map again.
27571
27572 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27573
27574 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27575 compiled anymore.
27576
27577 2007-11-26 Andreas Schwab <schwab@suse.de>
27578
27579 * process.c (list_processes_1): Fix indentation level of the
27580 command column.
27581
27582 2007-11-23 Andreas Schwab <schwab@suse.de>
27583
27584 * editfns.c (Fformat): Handle %c specially since it requires the
27585 argument to be of type int.
27586
27587 2007-11-23 Markus Triska <markus.triska@gmx.at>
27588
27589 * emacs.c (main): Call init_editfns before init_process, since
27590 init_process sets Vprocess_connection_type depending on OS release.
27591
27592 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27593
27594 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27595 (find_symbol_value): Use do_symval_forwarding.
27596
27597 * data.c (set_internal): Set the value in the `cons-cell' (for
27598 Buffer_Local_values) not only for frame-local variables.
27599
27600 2007-11-22 Andreas Schwab <schwab@suse.de>
27601
27602 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27603 values to sprintf.
27604 * keymap.c (Fsingle_key_description): Likewise.
27605 * print.c (print_object): Likewise.
27606
27607 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27608
27609 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27610 file for image is nil.
27611
27612 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27613
27614 * term.c: Include stdarg.h.
27615 (fatal): Implement using varargs.
27616 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27617
27618 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27619
27620 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27621 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27622 Update call to buffer_slot_type_mismatch.
27623 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27624 (buffer_slot_type_mismatch): Update.
27625 * buffer.c (buffer_local_types): Remove.
27626 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27627 (defvar_per_buffer): Set the type in the buffer_objfwd.
27628
27629 2007-11-21 Jason Rumney <jasonr@gnu.org>
27630
27631 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27632 CreateFileMapping returns NULL on failure.
27633
27634 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27635
27636 * search.c (Fset_match_data): Remove the `evaporate' feature.
27637 (unwind_set_match_data): Don't use the `evaporate' feature.
27638
27639 2007-11-21 Jason Rumney <jasonr@gnu.org>
27640
27641 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27642
27643 * w32console.c (w32con_write_glyphs): Remove unused variables.
27644
27645 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27646
27647 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27648
27649 * s/darwin.h (MULTI_KBOARD): Remove.
27650
27651 * macfns.c (x_create_tip_frame, Fx_create_frame)
27652 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27653
27654 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27655
27656 * buffer.c (Fbuffer_local_value): Remove redundant test.
27657 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27658 than in `current-buffer' to match the comment.
27659 Do the swap using swap_in_global_binding.
27660
27661 * data.c (store_symval_forwarding, set_internal):
27662 * eval.c (specbind): Remove dead code.
27663
27664 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27665 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27666 Since we do not want to see internal Lisp_*fwd objects here.
27667
27668 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27669
27670 * sysdep.c (init_system_name): Use getaddrinfo if available.
27671
27672 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27673 (x_scroll_bar_note_movement): start, end, with, height in struct
27674 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27675
27676 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27677
27678 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27679
27680 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27681
27682 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27683 This undoes Richard's change of 14-Oct-2002.
27684
27685 * alloc.c (allocate_other_vector):
27686 * lisp.h (allocate_other_vector): Remove.
27687
27688 * window.c (struct save_window_data): Move non-lisp data to the end
27689 and make it `int' rather than Lisp_Object.
27690 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27691 Done wrap/unwrap integer values.
27692 (Fset_window_configuration, compare_window_configurations):
27693 Update use of fields to their new types.
27694
27695 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27696 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27697 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27698 (SET_SCROLL_BAR_X_WINDOW): Remove.
27699 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27700 Access the new x_window field directly.
27701 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27702 Don't wrap/unwrap integers into Lisp_Objects.
27703 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27704 (x_scroll_bar_report_motion):
27705 Don't wrap/unwrap integers into Lisp_Objects.
27706 (x_term_init): Use SDATA.
27707 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27708 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27709 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27710 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27711 * xfns.c (x_set_background_color):
27712 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27713 Access the new x_window field directly.
27714
27715 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27716 (allocate_pseudovector): Make non-static.
27717
27718 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27719 (allocate_pseudovector): Declare.
27720 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27721
27722 2007-11-15 Andreas Schwab <schwab@suse.de>
27723
27724 * editfns.c (Fformat): Correctly format EMACS_INT values.
27725 Also take precision into account when formatting an integer.
27726
27727 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27728
27729 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27730
27731 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27732 (syms_of_keyboard): Defsubr it.
27733
27734 * data.c (swap_in_global_binding): Fix longstanding bug where
27735 store_symval_forwarding was not called with the right second argument,
27736 thus causing objfwd-ing from being dropped.
27737
27738 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27739
27740 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27741 (Fx_display_pixel_height, Fx_display_planes)
27742 (Fx_display_color_cells, Fx_server_max_request_size)
27743 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27744 (Fx_display_visual_class, Fx_display_save_under):
27745 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27746 (Fx_display_pixel_height, Fx_display_planes)
27747 (Fx_display_color_cells, Fx_server_max_request_size)
27748 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27749 (Fx_display_mm_height, Fx_display_mm_width)
27750 (Fx_display_backing_store, Fx_display_visual_class)
27751 (Fw32_select_font, Fx_display_save_under):
27752 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27753 (Fx_display_pixel_height, Fx_display_planes)
27754 (Fx_display_color_cells, Fx_server_max_request_size)
27755 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27756 (Fx_display_save_under): Fix typos in docstrings.
27757
27758 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27759
27760 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27761 corresponding to deleted entries; they are an implementation detail.
27762 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27763 Remove variables.
27764 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27765 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27766 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27767 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27768 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27769 (Fw32_define_rgb_color, Fw32_load_color_file)
27770 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27771 Fix typos in docstrings.
27772 (Fx_server_version): Reflow docstring.
27773 (Fw32_shell_execute): Doc fixes.
27774
27775 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
27776
27777 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27778 if w32_parse_hot_key returned nil.
27779
27780 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27781
27782 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27783
27784 2007-11-09 Jason Rumney <jasonr@gnu.org>
27785
27786 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27787
27788 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27789
27790 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27791 Remove W32_SCROLL_BAR_CLICK_EVENT.
27792
27793 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27794 Add MULTIMEDIA_KEY_EVENT.
27795
27796 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27797 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27798 (make_lispy_event) [WINDOWSNT]: Use it to translate
27799 MULTIMEDIA_KEY_EVENT.
27800
27801 * w32term.h (WM_APPCOMMAND): Define if not already.
27802 (GET_APPCOMMAND_LPARAM): Likewise.
27803
27804 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27805 WM_APPCOMMAND.
27806
27807 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27808 (syms_of_w32fns): Export and initialize it.
27809 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27810
27811 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
27812
27813 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27814 twice.
27815
27816 * xdisp.c (handle_face_prop): Fix last change.
27817
27818 2007-11-09 Richard Stallman <rms@gnu.org>
27819
27820 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27821 not just for after-strings and before-strings.
27822 Call face_for_overlay_string and pass the overlay to it.
27823 (handle_display_prop): Determine whether property came from an overlay.
27824 Pass OVERLAY arg to handle_single_display_spec.
27825 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27826 (load_overlay_strings): Fill in it->string_overlays.
27827 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27828
27829 * xfaces.c (face_for_overlay_string): Function renamed from
27830 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27831
27832 * dispextern.h (struct it): New elt string_overlays.
27833 New elt from_overlay, also in stack.
27834 Rearrange a few elements.
27835 (face_for_overlay_string): Decl renamed from
27836 face_at_buffer_position_no_overlays, and add argument.
27837
27838 2007-11-09 Richard Stallman <rms@gnu.org>
27839
27840 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27841 to get the base face for an overlay string.
27842
27843 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27844
27845 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27846
27847 * xdisp.c (handle_stop): Move some code out of loop.
27848
27849 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27850
27851 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27852 Fix conversion from Lisp object to ATSUFontID.
27853
27854 2007-11-09 Jason Rumney <jasonr@gnu.org>
27855
27856 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27857
27858 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27859
27860 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27861 Don't assume regions are aligned to page boundary.
27862 (print_load_command_name): Add LC_UUID if defined.
27863
27864 2007-11-09 Richard Stallman <rms@gnu.org>
27865
27866 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27867
27868 2007-11-07 Jason Rumney <jasonr@gnu.org>
27869
27870 * s/windows95.h: Remove.
27871
27872 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27873
27874 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27875 abort with a message on unhandled store_type values.
27876
27877 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27878
27879 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27880 Remove HAVE_X11R5 and HAVE_X11R4.
27881
27882 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27883
27884 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27885
27886 2007-11-01 Johan Bockgård <bojohan@gnu.org>
27887
27888 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27889 Don't set s->stippled_p here, since it has already been set by
27890 x_set_glyph_string_gc from x_draw_glyph_string.
27891
27892 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27893
27894 * sunfns.c: Remove file.
27895
27896 * m/sun386.h:
27897 * m/sun2.h:
27898 * m/sparc.h: Remove Sun windows code.
27899
27900 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27901
27902 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27903 (init_keyboard): Set current_kboard's window-system to nil.
27904 (tty_read_avail_input): Typo.
27905 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27906
27907 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27908
27909 * s/usg5-4.h:
27910 * s/usg5-3.h:
27911 * s/ptx.h:
27912 * m/is386.h:
27913 * m/ibmps2-aix.h:
27914 * Makefile.in: Remove all mentions of X10.
27915
27916 * dispnew.c (syms_of_display): Don't mention version 10.
27917
27918 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
27919
27920 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27921 ($(BLD)/abbrev.$(O)): Remove.
27922
27923 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27924
27925 Rewrite abbrev.c in Elisp.
27926 * image.c (Qcount): Don't declare as extern.
27927 (syms_of_image): Initialize and staticpro `Qcount'.
27928 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27929 * emacs.c (main): Don't call syms_of_abbrev.
27930 * Makefile.in (obj): Remove abbrev.o.
27931 (abbrev.o): Remove.
27932 * abbrev.c: Remove.
27933
27934 2007-10-26 Martin Rudalics <rudalics@gmx.at>
27935
27936 * window.c (window_min_size_2): Don't count header-line.
27937
27938 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27939
27940 * frame.h (struct frame): Move all bit fields after the first bit
27941 field to take advantage of the available space. Group all the
27942 chars together to reduce wasted space due to padding.
27943
27944 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
27945
27946 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27947
27948 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27949 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27950 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27951 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27952 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27953 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27954 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27955 (last_marked, mark_object_loop_halt): Make static.
27956
27957 * frame.c (syms_of_frame) <delete-frame-functions>:
27958 Fix typo in docstring.
27959
27960 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
27961
27962 * w32.c (init_environment): Fix tiny memory leak.
27963 (w32_get_resource): Remove unused variable `ok'.
27964
27965 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27966
27967 Make `window-system' into a keyboard-local variable (rather than
27968 frame-local as done originally by multi-tty).
27969
27970 * keyboard.h (struct kboard): Add Vwindow_system.
27971 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27972 (mark_kboards): Mark Vwindow_system.
27973
27974 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27975 (init_display): Don't set the obsolete `window-system' frame-param.
27976
27977 * xterm.c (x_term_init):
27978 * w32term.c (w32_create_terminal):
27979 * term.c (init_tty): Set Vwindow_system.
27980 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27981 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27982
27983 * xfns.c (Fx_create_frame, x_create_tip_frame):
27984 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27985 * macfns.c (Fx_create_frame):
27986 Don't set the obsolete `window-system' frame-param.
27987
27988 * frame.h (Qwindow_system): Remove.
27989 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27990 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27991
27992 2007-10-24 Richard Stallman <rms@gnu.org>
27993
27994 * frame.c (x_figure_window_size): For fullscreen case,
27995 set USPosition | PPosition without clobbering rest of window_prompting.
27996
27997 * keyboard.c (Fcurrent_idle_time): Doc fix.
27998
27999 * print.c (Fwith_output_to_temp_buffer): Doc fix.
28000
28001 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
28002
28003 * process.c (unwind_request_sigio): Only define if __ultrix__.
28004
28005 * callproc.c (child_setup): Remove spurious *.
28006
28007 * lisp.h (Fget_text_property): Declare.
28008 (have_menus_p): Declare it here rather than in sys-dep header files.
28009 * macterm.h (have_menus_p):
28010 * msdos.h (have_menus_p):
28011 * xterm.h (have_menus_p): Remove.
28012
28013 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
28014 (Fmake_variable_frame_local): Just check the variable's const-ness
28015 rather than checking nil or t.
28016
28017 2007-10-22 Jason Rumney <jasonr@gnu.org>
28018
28019 * w32fns.c: Include math.h.
28020 (w32_abort): Declaration moved to nt/config.nt.
28021
28022 * s/ms-w32.h (HAVE_STDLIB_H): Define.
28023 (abort): Redefinition moved to nt/config.nt.
28024
28025 * m/windowsnt.h: Remove.
28026
28027 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
28028
28029 * emacs.c (Fdump_emacs): Fix typo in message.
28030 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
28031 <installation-directory>: Reflow docstring.
28032
28033 2007-10-22 Juri Linkov <juri@jurta.org>
28034
28035 * minibuf.c: Allow minibuffer default to be a list of default values.
28036 With empty input use the first element of this list as returned default.
28037 (string_to_object)
28038 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
28039 (read_minibuf): If defalt is cons, set histstring to its car.
28040 (Fread_string): If default_value is cons, set val to its car.
28041 (Fread_buffer): If def is cons, use its car.
28042 (Fcompleting_read): If defalt is cons, set val to its car.
28043
28044 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
28045
28046 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
28047
28048 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
28049
28050 * doc.c (Fdocumentation): Check for advice in all cases.
28051
28052 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
28053
28054 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
28055
28056 2007-10-19 Richard Stallman <rms@gnu.org>
28057
28058 * doc.c (Fdocumentation): Check for and handle an advised function.
28059
28060 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
28061
28062 * process.c (Fset_process_filter): Doc fix.
28063
28064 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
28065
28066 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
28067 which caused key-translation-map to applied repeatedly (thus breaking
28068 double-mode).
28069
28070 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28071
28072 * xselect.c (x_own_selection, x_handle_selection_clear)
28073 (x_clear_frame_selections):
28074 * w32menu.c (list_of_panes, list_of_items):
28075 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
28076 * textprop.c (validate_plist, interval_has_all_properties)
28077 (interval_has_some_properties, interval_has_some_properties_list)
28078 (add_properties, text_property_list):
28079 * process.c (Fget_buffer_process, list_processes_1, status_notify):
28080 * minibuf.c (Fassoc_string):
28081 * macselect.c (x_own_selection, x_clear_frame_selections)
28082 (Fx_disown_selection_internal):
28083 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
28084 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
28085
28086 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
28087
28088 * process.c: Link to libs for calling res_init() if available.
28089 (Fmake_network_process): Call res_init() before getaddrinfo or
28090 gethostbyname, if possible.
28091
28092 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28093
28094 * lread.c (read1): Set pvectype for char_tables.
28095
28096 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28097 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28098 Add type checks.
28099 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28100
28101 * alloc.c (free_misc): Use XMISCTYPE.
28102 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28103
28104 2007-10-17 Glenn Morris <rgm@gnu.org>
28105
28106 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28107 (syms_of_minibuf): Add Qcompletion_ignore_case.
28108 * dired.c (Qcompletion_ignore_case): Change to external.
28109 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28110 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28111 (Fread_file_name): Use it rather than intern'ing.
28112
28113 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28114 (Fread_coding_system): Ignore case of user input.
28115
28116 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28117
28118 * xdisp.c (handle_display_prop): Ignore display specs after
28119 replacing one when string text is being replaced.
28120 (handle_single_display_spec): Pretend as if characters with display
28121 property haven't been consumed only when buffer text is being replaced.
28122
28123 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28124
28125 * xfns.c (Fx_create_frame, Fx_display_list):
28126 * window.c (window_fixed_size_p, enlarge_window)
28127 (shrink_window_lowest_first):
28128 * macterm.c (init_font_name_table):
28129 * macfns.c (Fx_create_frame, Fx_display_list):
28130 * lread.c (close_load_descs):
28131 * keyboard.c (read_char_x_menu_prompt):
28132 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28133 * coding.c (code_convert_region_unwind): Test the type of an object
28134 rather than just !NILP before extracting data from it.
28135
28136 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28137
28138 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28139 (XMISCANY): New macro.
28140 (XMISCTYPE): Use it.
28141 (struct Lisp_Misc_Any): New type.
28142 (union Lisp_Misc): Use it.
28143 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28144 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28145 (find_symbol_value, set_internal, default_value, Fset_default)
28146 (Fmake_variable_buffer_local, Fmake_local_variable)
28147 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28148 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28149 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28150 * alloc.c (allocate_buffer): Set the size and tag.
28151 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28152 Use XMISCANY.
28153 (die): Follow the GNU convention for error messages.
28154 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28155 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28156 tag any more.
28157 (set_buffer_internal_1):
28158 * frame.c (store_frame_param):
28159 * eval.c (specbind):
28160 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28161
28162 * doc.c (Fsnarf_documentation): Simplify.
28163
28164 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
28165
28166 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28167 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28168
28169 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28170
28171 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28172
28173 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
28174
28175 * eval.c (do_autoload): Don't save autoloads.
28176
28177 * data.c (Ffset): Save autoload of the function being set.
28178
28179 2007-10-07 John Paul Wallington <jpw@pobox.com>
28180
28181 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28182 parameter before setting up faces.
28183
28184 2007-10-13 Eli Zaretskii <eliz@gnu.org>
28185
28186 * ccl.c (Fregister_code_conversion_map):
28187 * keyboard.c (append_tool_bar_item): Reformat last change.
28188
28189 * lisp.h (eabs): Rename from `abs'. All callers changed.
28190
28191 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28192
28193 * buffer.c (add_overlay_mod_hooklist):
28194 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28195 * fontset.c (make_fontset):
28196 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28197 (append_tool_bar_item):
28198 * macmenu.c (grow_menu_items):
28199 * w32menu.c (grow_menu_items):
28200 * xmenu.c (grow_menu_items): Use larger_vector.
28201
28202 2007-10-13 Eli Zaretskii <eliz@gnu.org>
28203
28204 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28205 selected frame'' on MSDOS).
28206
28207 2007-10-12 Martin Rudalics <rudalics@gmx.at>
28208
28209 * frame.c (Qexplicit_name): New variable.
28210 (x_report_frame_params): Report it in parameter alist.
28211 (syms_of_frame): Intern and staticpro it.
28212
28213 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28214
28215 * macfns.c (x_create_tip_frame): Set terminal for frame.
28216
28217 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28218
28219 * frame.c (Qenvironment): Remove.
28220 (syms_of_frame) <Qenvironment>: Don't initialize.
28221 (Fdelete_frame): Don't treat the `environment' param specially.
28222 * frame.h (Qenvironment): Don't declare.
28223 * callproc.c (set_initial_environment): Don't set unused frame param.
28224
28225 * frame.c (Fframe_with_environment): Remove.
28226 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28227
28228 * lisp.h (Fframe_with_environment): Don't declare.
28229
28230 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
28231
28232 * indent.c (indent_tabs_mode, last_known_column)
28233 (last_known_column_modified): Make static.
28234 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28235
28236 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28237
28238 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28239
28240 2007-10-09 Jason Rumney <jasonr@gnu.org>
28241
28242 * w32term.c (x_set_window_size): Disable code that attempts to tell
28243 Lisp code about a size change before it actually happens.
28244
28245 2007-10-09 Richard Stallman <rms@gnu.org>
28246
28247 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28248 return HANDLED_RETURN.
28249
28250 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28251
28252 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28253 when there's an unread command event.
28254
28255 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28256 window autoselection act appropriately when leaving selected frame.
28257 (syms_of_frame): Initialize focus_follows_mouse.
28258 * frame.h (focus_follows_mouse): Extern it.
28259 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28260 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28261 * msdos.c (dos_rawgetc): Likewise.
28262 * w32term.c (w32_read_socket): Likewise.
28263 * xterm.c (handle_one_xevent): Likewise.
28264 * xdisp.c (syms_of_xdisp): In doc-string of
28265 mouse-autoselect-window mention focus-follows-mouse.
28266
28267 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28268
28269 * macterm.c (mac_load_query_font): Fix missing return value.
28270 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28271 Add BLOCK_INPUT.
28272
28273 2007-10-08 Richard Stallman <rms@gnu.org>
28274
28275 * xdisp.c (get_window_cursor_type): Implement documented behavior
28276 for cursor-in-non-selected-windows = t.
28277
28278 2007-10-08 Jason Rumney <jasonr@gnu.org>
28279
28280 * w32.c (w32_get_resource): Always close registry keys.
28281
28282 2007-10-08 Jason Rumney <jasonr@gnu.org>
28283
28284 * makefile.w32-in (LIBS): Add COMCTL32.
28285
28286 * w32fns.c (globals_of_w32fns): Init common controls.
28287
28288 2007-10-08 Richard Stallman <rms@gnu.org>
28289
28290 * image.c (our_memory_buffer): Rename from omfib_buffer.
28291
28292 2007-10-08 Richard Stallman <rms@gnu.org>
28293
28294 * buffer.c (Foverlays_at): Doc fix.
28295
28296 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28297
28298 * fns.c (Fplist_put): Preserve uneven tail data.
28299
28300 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28301
28302 * termhooks.h (enum event_kind): Remove trailing comma.
28303
28304 * frame.h (enum): Remove trailing comma.
28305
28306 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28307
28308 * w32proc.c (delete_child): Don't terminate threads of zombies.
28309
28310 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28311
28312 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28313
28314 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28315 last-repeatable-command.
28316 (init_kboard): Initialize Vlast_repeatable_command.
28317 (command_loop_1): Set it to real_this_command unless that was
28318 bound to an input event.
28319 (mark_kboards): Mark it.
28320
28321 2007-10-08 Richard Stallman <rms@gnu.org>
28322
28323 * eval.c (condition-case): Doc fix.
28324
28325 2007-10-08 Masatake YAMATO <jet@gyve.org>
28326
28327 * xfaces.c (tty_supports_face_attributes_p): Fix code
28328 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28329 was copied and not edited.
28330
28331 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28332
28333 Add new `input-decode-map' keymap and use it for terminal
28334 escape sequences.
28335 * keyboard.h (struct kboard): Add Vinput_decode_map.
28336 Remove Vlocal_key_translation_map.
28337 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28338 (init_kboard): Init input-decode-map.
28339 Replace local-key-translation-map back with key-translation-map.
28340 (syms_of_keyboard): Declare input-decode-map.
28341 Remove local-key-translation-map. Update docstrings.
28342 (mark_kboards): Mark Vinput_decode_map.
28343 Don't mark Vlocal_key_translation_map.
28344 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28345 Replace local-key-translation-map back with key-translation-map.
28346 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28347 Bind in input-decode-map rather than function-key-map.
28348
28349 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28350 This was made redundant by the previous introduction of XSETPVECTYPE.
28351
28352 2007-10-09 Richard Stallman <rms@gnu.org>
28353
28354 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28355
28356 2007-09-29 Richard Stallman <rms@gnu.org>
28357
28358 * eval.c (internal_condition_case_2, internal_condition_case_1)
28359 (internal_condition_case): Reenable abort if x_catching_errors ()
28360 to see if that really happens and why.
28361
28362 2007-10-06 Andreas Schwab <schwab@suse.de>
28363
28364 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28365
28366 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
28367
28368 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28369
28370 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28371
28372 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28373
28374 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28375
28376 * window.h (struct window):
28377 * window.c (struct save_window_data, struct saved_window):
28378 * termhooks.h (struct terminal):
28379 * process.h (struct Lisp_Process):
28380 * frame.h (struct frame):
28381 * buffer.h (struct buffer):
28382 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28383 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28384 The size field of (pseudo)vectors is now unsigned.
28385 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28386
28387 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28388 Turn `count' into an integer.
28389
28390 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28391 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28392 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28393 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28394 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28395
28396 * alloc.c (allocate_pseudovector): New fun.
28397 (ALLOCATE_PSEUDOVECTOR): New macro.
28398 (allocate_window, allocate_terminal, allocate_frame)
28399 (allocate_process): Use it.
28400 (mark_vectorlike): New function.
28401 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28402 (mark_terminals): Use it.
28403 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28404 (Fmake_byte_code): Use XSETPVECTYPE.
28405
28406 * frame.c (Fframe_parameters): Minor simplification.
28407
28408 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28409
28410 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28411
28412 * buffer.c (Fget_buffer_create, init_buffer_once):
28413 * lread.c (defsubr):
28414 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28415
28416 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28417 defined differently in the m/*.h files.
28418 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28419 (XSETPVECTYPE): New macro.
28420 (XSETPSEUDOVECTOR): Use it.
28421
28422 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28423 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28424
28425 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28426 * lread.c (defvar_per_buffer):
28427 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28428
28429 * window.c (candidate_window_p): Only consider as visible frames that
28430 are on the same terminal.
28431
28432 * m/ibms390x.h (MARKBIT): Remove unused macro.
28433
28434 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
28435
28436 * lread.c (Fload): Fix typo in docstring.
28437
28438 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28439
28440 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28441 of a non-zero value can't yield zero.
28442
28443 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28444
28445 * term.c (term_clear_mouse_face, term_mouse_highlight)
28446 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28447
28448 * print.c (safe_debug_print): Use XHASH.
28449
28450 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28451 Lisp elements such as tags.
28452 (XHASH): New macro.
28453 (EQ): Use it.
28454 (SREF, SSET, STRING_COPYIN): Use SDATA.
28455 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28456
28457 * alloc.c (mark_terminal): Remove left-over declaration.
28458 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28459 (allocate_vectorlike): Remove type argument. Adjust callers.
28460 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28461 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28462
28463 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28464 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28465 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28466 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28467 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28468 Use them.
28469
28470 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28471 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28472 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28473
28474 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28475
28476 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28477 loaded by default.
28478
28479 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28480
28481 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28482 on this tty.
28483 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28484
28485 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28486 Update all users.
28487 (handle_one_term_event): Use Gpm_DrawPointer.
28488 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28489 Signal errors instead of returning nil. Always return nil.
28490 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28491 Make it a noop if gpm-mouse was not activated.
28492 (syms_of_term): Update names.
28493
28494 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28495
28496 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28497 (init_sys_modes): Check that gpm_tty is the current tty.
28498
28499 * alloc.c (allocate_terminal): Set the vector size to only count the
28500 lisp fields. Initialize those to nil.
28501 (mark_object): Don't treat terminals specially.
28502 (mark_terminal): Remove.
28503 (mark_terminals): Use mark_object instead.
28504
28505 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28506 the GC to the beginning.
28507
28508 * indent.h:
28509 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28510
28511 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28512
28513 2007-09-25 Jason Rumney <jasonr@gnu.org>
28514
28515 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28516
28517 * w32console.c (create_w32cons_output): Remove.
28518
28519 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28520
28521 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28522 (reset_sys_modes): Use reset_terminal_modes_hook.
28523
28524 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28525
28526 * eval.c (do_autoload): Don't output any message.
28527
28528 2007-09-24 Juri Linkov <juri@jurta.org>
28529
28530 * emacs.c (standard_args): Change priority of "--no-splash"
28531 from 40 to 3. Add "--no-desktop" with the same priority.
28532
28533 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28534
28535 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28536 and optimize the case where they are all 1.
28537
28538 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
28539
28540 * lisp.h (abs): Define if not defined.
28541 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28542 Don't define `abs', since it's defined in lisp.h.
28543
28544 2007-09-22 Eli Zaretskii <eliz@gnu.org>
28545
28546 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28547 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28548 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28549 (init_tty): Use DEV_TTY instead of "/dev/tty".
28550 [WINDOWSNT]: No need to protect from NAME arg being null.
28551
28552 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28553
28554 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28555 up the tty state.
28556
28557 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28558
28559 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28560 (gpm_tty): Change its type.
28561 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28562 (gpm_tty): Change its type and initialize it.
28563 (Fterm_open_connection): Check the frame is indeed a tty.
28564 Use the new gpm_tty.
28565 (Fterm_close_connection): Use the new gpm_tty.
28566 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28567 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28568
28569 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
28570
28571 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28572 underline_color, to draw strike-through.
28573
28574 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28575
28576 * lisp.h (allocate_terminal): Declare.
28577
28578 * window.c (candidate_window_p): Consider frames that are being placed
28579 by the user as somewhere between visible and iconified.
28580 (window_loop): Prefer windows on the current frame.
28581 (Fselect_window): Move the use of select-frame to the beginning so we
28582 can just delegate all the work (it'll call us back anyway).
28583
28584 * frame.c (Qdisplay_environment_variable):
28585 * frame.h (Qdisplay_environment_variable): Delete.
28586
28587 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28588 of the first arg, since that value may be a union.
28589
28590 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28591 parameter rather than Qdisplay_environment_variable. If all else
28592 fails, look for DISPLAY in initial-environment.
28593
28594 2007-09-21 Glenn Morris <rgm@gnu.org>
28595
28596 * Makefile.in (emacstool): Remove target.
28597 (lisp, shortlisp): Remove termdev.elc.
28598
28599 2007-09-21 Markus Triska <markus.triska@gmx.at>
28600
28601 * xterm.c (x_delete_display): Compile session management conditionally.
28602
28603 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28604
28605 * callproc.c (getenv_internal_1): New function.
28606 (getenv_internal): Use it.
28607 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28608
28609 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28610 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28611 (Fset_terminal_parameter): Work with dead terminals as well.
28612 (Fmodify_terminal_parameters): Remove.
28613
28614 * terminal.c (get_terminal): Handle terminals.
28615 Make sure the terminal returned is live.
28616 (create_terminal): Use allocate_terminal.
28617 (mark_terminals): Move to alloc.c.
28618 (delete_terminal): Use terminal->name as liveness status.
28619 NULL out fields after freeing their contents.
28620 Don't deallocate the object.
28621 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28622 rather than an int.
28623 (Fterminal_live_p): Accept non-integer arguments.
28624 (Fterminal_list): Return terminal objects rather than an ints.
28625
28626 * alloc.c (enum mem_type): New member for `terminal' objects.
28627 (allocate_terminal): New function.
28628 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28629 Handle terminals.
28630 (mark_terminal): New fun.
28631 (mark_terminals): Move from terminal.c.
28632
28633 * term.c (get_tty_terminal): Don't treat output_initial specially.
28634 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28635 (delete_tty): Use terminal->name as liveness status.
28636
28637 * termhooks.h (struct terminal): Make it into a pseudovector.
28638 Remove `deleted' replaced by checking `name's nullness.
28639
28640 * print.c (print_object): Handle terminals.
28641
28642 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28643 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28644
28645 * frame.c (make_terminal_frame):
28646 * keyboard.c (tty_read_avail_input):
28647 * w32term.c (x_delete_terminal):
28648 * xfns.c (Fx_create_frame, x_create_tip_frame):
28649 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28650
28651 2007-09-20 Glenn Morris <rgm@gnu.org>
28652
28653 * process.c (Fmake_network_process): Doc fix.
28654
28655 2007-09-19 Jason Rumney <jasonr@gnu.org>
28656
28657 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28658
28659 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28660
28661 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28662 Fix a C warning regarding variable constness.
28663
28664 * xterm.c (handle_one_xevent): Fix a C warning.
28665
28666 2007-09-18 Jason Rumney <jasonr@gnu.org>
28667
28668 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28669
28670 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28671
28672 * gtkutil.c (gdpy_def): New variable.
28673 (xg_initialize): Initialize gdpy_def.
28674 (xg_display_close): If no other display exists, set gdpy_def to a
28675 new connection.
28676
28677 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28678
28679 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28680 when we have no file name for the icon.
28681 (xg_tool_bar_expose_callback): Remove.
28682 (xg_create_tool_bar): Don't connect expose signal to
28683 xg_tool_bar_expose_callback.
28684 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28685
28686 2007-09-16 Andreas Schwab <schwab@suse.de>
28687
28688 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28689 values instead of zapping them.
28690
28691 2007-09-14 Glenn Morris <rgm@gnu.org>
28692
28693 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28694 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28695 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28696 scope and rename to omfib_buffer for clarity.
28697 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28698
28699 2007-09-14 Kenichi Handa <handa@m17n.org>
28700
28701 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28702
28703 2007-09-13 Jason Rumney <jasonr@gnu.org>
28704
28705 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28706
28707 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28708
28709 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28710 (mac_term_init): Call here instead, passing rif.
28711
28712 2007-09-13 Glenn Morris <rgm@gnu.org>
28713
28714 * s/hpux.h: No longer define `static' as nothing.
28715
28716 2007-09-13 Johan Bockgård <bojohan@gnu.org>
28717
28718 * callint.c (Fcall_interactively): Remove unused var `fun'.
28719
28720 2007-09-12 Romain Francoise <romain@orebokech.com>
28721
28722 * window.c (prefer_window_split_horizontally, display_buffer):
28723 Revert 2007-09-08 change.
28724
28725 2007-09-12 Glenn Morris <rgm@gnu.org>
28726
28727 * alloca.c: Remove file.
28728 * Makefile.in (alloca): Do not undef.
28729 (allocaobj, alloca.o): Remove.
28730 (otherobj): Remove allocaobj.
28731 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28732 * regex.c (C_ALLOCA): Remove all references and code that was only
28733 used when this was defined.
28734 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28735 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28736 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28737
28738 * Makefile.in (SOURCES, unlock, relock): Delete.
28739
28740 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28741 (menu_grab_callback): All uses changed.
28742
28743 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28744 (x_reply_selection_request): All uses changed.
28745
28746 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28747
28748 * lread.c (load_warn_old_style_backquotes): Change message to look
28749 better when it appears in the middle of byte-compiler messages.
28750
28751 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28752
28753 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28754
28755 * xterm.c (x_create_terminal): Add comment.
28756
28757 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28758
28759 2007-09-10 Richard Stallman <rms@gnu.org>
28760
28761 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28762
28763 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28764
28765 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28766 (DEFUN): Document `intspec', use it instead of `prompt'.
28767
28768 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28769
28770 * data.c (Finteractive_form): If the interactive specification starts
28771 with a `(', use it as a Lisp form.
28772
28773 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28774 name and file modes.
28775
28776 * callint.c (Fcall_interactively): Comment fixes.
28777
28778 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28779
28780 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28781 and compiled functions.
28782
28783 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28784
28785 * window.c (prefer_window_split_horizontally): New variable.
28786 (display_buffer): Consider splitting window horizontally depending
28787 on prefer_window_split_horizontally.
28788
28789 2007-09-08 Eli Zaretskii <eliz@gnu.org>
28790
28791 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28792
28793 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28794
28795 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28796
28797 * frame.c (x_set_frame_parameters): Check number is positive before
28798 using XFASTINT.
28799
28800 * window.c (freeze_window_start): Don't presume selected_window holds
28801 a window object.
28802 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28803
28804 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28805
28806 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28807
28808 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28809
28810 * window.c (Vsplit_window_preferred_function): New var.
28811 (Fdisplay_buffer): Use it.
28812 (syms_of_window): Export, and initialize it.
28813
28814 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28815
28816 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28817
28818 2007-09-06 Glenn Morris <rgm@gnu.org>
28819
28820 * gtkutil.c (menu_grab_callback) <cnt>:
28821 * xselect.c (x_reply_selection_request) <cnt>: Move static
28822 variable to file scope.
28823
28824 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28825
28826 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28827 consistent values of selected_frame and selected_window.
28828
28829 2007-09-04 Jason Rumney <jasonr@gnu.org>
28830
28831 * w32console.c (initialize_w32_display): Zero unused hooks.
28832
28833 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28834
28835 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28836 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28837
28838 2007-09-04 Jason Rumney <jasonr@gnu.org>
28839
28840 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28841 in w32console.c. Set up input. Remove XXX comments that have been
28842 confirmed as correct.
28843
28844 * s/ms-w32.h (MULTI_KBOARD): Define.
28845
28846 * w32console.c (one_and_only_w32cons): Remove.
28847 (initialize_w32_display): Take terminal argument.
28848
28849 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28850 initialize_w32_display.
28851 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28852
28853 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28854
28855 * keyboard.c (discard_mouse_events): Discard it.
28856 (make_lispy_event): Translate it to a lisp event.
28857 (lispy_wheel_names): Add wheel-left and right events.
28858 (syms_of_keyboard): Enlarge wheel_syms.
28859
28860 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28861 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28862
28863 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28864
28865 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28866 from WM_MOUSEHWHEEL.
28867 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28868
28869 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28870 terminal.
28871
28872 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28873 keyboard for the terminal.
28874
28875 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28876
28877 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28878 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28879 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28880 and resume-tty-function to resume-tty-hook.
28881 (Fsuspend_tty, Fresume_tty): Use new names.
28882
28883 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28884
28885 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28886 if it starts with "n:".
28887
28888 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28889
28890 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28891
28892 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28893
28894 * frame.h:
28895 * frame.c (Qterm_environment_variable): Remove.
28896 (syms_of_frame): Don't init and staticpro it.
28897
28898 * callproc.c (getenv_internal): Remove special case for $TERM.
28899
28900 * callproc.c (Vinitial_environment): New variable.
28901 (set_initial_environment): Initialize it.
28902 (syms_of_callproc): Declare it.
28903 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28904 TERM under which a process runs is never related to the TERM in which
28905 Emacs is running.
28906
28907 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28908
28909 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28910 * s/darwin.h: ... do it here.
28911
28912 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28913
28914 * lisp.h (set_initial_environment): Rename from set_global_environment.
28915
28916 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28917 removed by mistake on the multi-tty branch.
28918
28919 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28920 (Fmodify_frame_parameters): Return a value.
28921
28922 * image.c (png_load): Comment-out var only used in commented-out code.
28923
28924 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28925 before passing it to mark_object.
28926
28927 * xfaces.c (internal_resolve_face_name): Return a value.
28928 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28929
28930 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28931 (x_icon): Comment-out var only used in commented-out code.
28932
28933 2007-08-29 Romain Francoise <romain@orebokech.com>
28934
28935 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28936 QUIT hasn't been provided.
28937
28938 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28939
28940 * callproc.c (child_setup, getenv_internal): Use the
28941 display-environment-variable and term-environment-variable frame params.
28942 (set_initial_environment): Initialise Vprocess_environment.
28943
28944 * config.in: Disable multi-keyboard support on a mac.
28945
28946 * frame.c (Qterm_environment_variable)
28947 (Qdisplay_environment_variable): New variables.
28948 (syms_of_frame): Intern and staticpro them.
28949 (Fmake_terminal_frame): Disable output method test.
28950
28951 * frame.h: Declare them here.
28952
28953 * macfns.c (x_set_mouse_color): Get rif from the frame.
28954 (x_set_tool_bar_lines): Don't use updating_frame.
28955 (mac_window): Add 2 new parameters for consistency with other systems.
28956 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28957 frame parameters following what is done in X11 and w32. Don't use
28958 FRAME_MAC_DISPLAY_INFO.
28959 (Fx_open_connection, start_hourglass): Remove window-system check.
28960 (x_create_tip_frame): Get the keyboard from the terminal.
28961
28962 * macmenu.c: Reorder includes.
28963 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28964
28965 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28966 terminal parameter.
28967 (x_clear_frame): Add a frame parameter.
28968 (note_mouse_movement): Get rif from the frame.
28969 (mac_term_init): Initialize the terminal.
28970 (mac_initialize): Make static and move terminal initialization ...
28971 (mac_create_terminal): ... to this new function.
28972
28973 * macterm.h (struct mac_display_info): Add terminal.
28974 (mac_initialize): Delete declaration.
28975
28976 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28977
28978 * sysdep.c: Comment out text after #endif.
28979
28980 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28981 is defined. Better initialize ttys in windows. Use terminal
28982 specific mouse_position_hook.
28983
28984 * termhooks.h (union display_info): Add mac_display_info.
28985
28986 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28987 Set the default minibuffer frame, window_system and the rest of the
28988 frame parameters following what is done in X11.
28989
28990 * w32term.c (w32_initialize): Make static.
28991
28992 * xselect.c (x_handle_selection_clear): Only access
28993 terminal->kboard when MULTI_KBOARD is defined.
28994
28995 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28996 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28997
28998 2007-08-29 Jason Rumney <jasonr@gnu.org>
28999
29000 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
29001 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
29002
29003 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
29004 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
29005
29006 * keyboard.c (restore_kboard_configuration): Only define when
29007 MULTI_KBOARD defined.
29008
29009 * makefile.w32-in: Update dependancies from Makefile.in.
29010 (OBJ1): Add terminal.$(O)
29011
29012 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
29013 Don't define function body.
29014 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
29015
29016 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
29017
29018 * w32.c (request_sigio, unrequest_sigio): Remove.
29019
29020 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
29021 (w32con_clear_frame, w32con_clear_end_of_line)
29022 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
29023 (w32con_delete_glyphs, w32con_set_terminal_window)
29024 (scroll_line, w32_sys_ring_bell): Add frame arg.
29025 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
29026 Add terminal arg.
29027 (PICK_FRAME): Remove.
29028 (w32con_write_glyphs): Use frame specific terminal coding.
29029 (one_and_only_w32cons): New global variable.
29030 (initialize_w32_display): Use it for storing hooks.
29031 (create_w32cons_output): New function.
29032
29033 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
29034 arg a frame.
29035
29036 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
29037 Set window_system.
29038 (x_set_tool_bar_lines): Don't use updating_frame.
29039 (Fx_create_frame): Set terminal and ref count.
29040 (Fx_open_connection): Remove window-system check.
29041
29042 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
29043
29044 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
29045 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
29046 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
29047 Add frame arg.
29048 (x_delete_terminal, w32_create_terminal): New functions.
29049 (w32_term_init): Create a terminal.
29050 (w32_initialize): Move terminal specific initialization to
29051 w32_create_terminal.
29052
29053 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
29054 (w32_clear_rect, w32_clear_area): Use background from frame.
29055 (w32_display_info): Add terminal.
29056 (w32_sys_ring_bell, x_delete_display): Declare here.
29057
29058 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
29059
29060 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
29061
29062 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
29063
29064 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
29065 Fix get_named_tty calls for the controlling tty.
29066
29067 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
29068
29069 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
29070
29071 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
29072
29073 * term.c (tty_insert_glyphs): Add missing first parameter.
29074
29075 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
29076
29077 * buffer.c (Fbuffer_list, Fbury_buffer):
29078 Take frame->buried_buffer_list into account.
29079
29080 * cm.c (current_tty): New variable, for cmputc().
29081 (cmputc): Use it.
29082 (cmcheckmagic): Add tty parameter, look up terminal streams there.
29083 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
29084 (cmgoto): Add tty parameter. Pass it on to calccost().
29085 Use emacs_tputs() instead of tputs().
29086
29087 * cm.h (emacs_tputs): New macro to set current_tty, and then call
29088 tputs().
29089 (current_tty): New variable, for cmputc().
29090 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29091
29092 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29093 (internal_condition_case, internal_condition_case_1)
29094 (internal_condition_case_2): Don't abort when x_catching_errors.
29095
29096 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29097 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29098 prevent crashes caused by bogus longjmps in read_char.
29099
29100 * keymap.h (Fset_keymap_parent): Add EXFUN.
29101
29102 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29103 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29104 Remove redundant definition.
29105
29106 * macfns.c (x_set_mouse_color, x_make_gc):
29107 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29108
29109 * w32term.c (x_free_frame_resources):
29110 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29111 (w32_initialize): Use the accessor macros for terminal characteristics.
29112
29113 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29114 Use the accessor macros for terminal characteristics.
29115 * msdos.c (internal_terminal_init): Use the accessor macros for
29116 terminal characteristics.
29117 (ScreenVisualBell, internal_terminal_init):
29118 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29119
29120 * termopts.h (no_redraw_on_reenter): Declare.
29121
29122 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29123 (mark_terminals, mark_ttys): Declare.
29124 (Fgarbage_collect): Call them.
29125 (mark_object): Mark buried_buffer_list.
29126
29127 * prefix-args.c: Include stdlib.h for exit.
29128
29129 * syssignal.h: Add comment.
29130
29131 * indent.c: Include stdio.h.
29132
29133 * window.h (Vinitial_window_system): Declare.
29134 (Vwindow_system): Delete declaration.
29135
29136 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29137
29138 * image.c (lookup_image): Don't initialize `c' until the xasserts
29139 have been run.
29140
29141 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29142 FRAME_FOREGROUND_PIXEL.
29143
29144 * print.c (print_preprocess): Don't lose print_depth levels while
29145 iterating.
29146
29147 * widget.c (update_from_various_frame_slots):
29148 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29149
29150 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29151 frames.
29152 (window_internal_height): Remove bogus make_number call.
29153 (init_window_once): Call make_terminal_frame with two zero parameters.
29154
29155 * fileio.c (Fread_file_name): Update comment.
29156
29157 * callint.c (Fcall_interactively):
29158 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29159 Make sure it is correctly unwound.
29160
29161 * xsmfns.c (x_session_close): New function.
29162
29163 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29164 Delete declarations.
29165
29166 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29167 (x_output): Remove background_pixel and foreground_pixel fields.
29168 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29169 (x_delete_device, x_session_close): Declare.
29170
29171 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29172 (read_filtered_event): Call `read_char' with a local
29173 `wrong_kboard_jmpbuf'.
29174
29175 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29176 Don't call single_kboard_state. Use FRAME_RIF.
29177
29178 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29179 systems.
29180
29181 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29182 (Fframe_with_environment, Fset_input_meta_mode)
29183 (Fset_quit_char): EXFUN.
29184 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29185 (init_sys_modes, reset_sys_modes): Update prototypes.
29186 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29187
29188 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29189 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29190 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29191 Delete declarations.
29192 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29193 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29194 New declarations.
29195
29196 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29197 already does that during init_display(). Call syms_of_keymap
29198 before syms_of_keyboard. Call `syms_of_terminal'.
29199 Call set_initial_environment, not set_process_environment.
29200 (shut_down_emacs): Call reset_all_sys_modes() instead of
29201 reset_sys_modes().
29202
29203 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29204 (internal_resolve_face_name, resolve_face_name_error): New functions.
29205 (resolve_face_name): Protect against loops and errors thrown by Fget.
29206 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29207 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29208
29209 * scroll.c: Replace CURTTY() with local variables throughout the
29210 file (where applicable).
29211 (calculate_scrolling, calculate_direct_scrolling)
29212 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29213 characteristics.
29214
29215 * keymap.c (Vfunction_key_map): Remove.
29216 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29217 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29218 (Vkey_translation_map): Remove.
29219 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29220 (Fdescribe_buffer_bindings)
29221 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29222 Update for terminal-local key-translation-map.
29223
29224 * Makefile.in (callproc.o): Update dependencies.
29225 (lisp, shortlisp): Add termdev.elc.
29226 (obj): Add terminal.o.
29227 (terminal.o): Add dependencies.
29228 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29229 (data.o, fns.o): Add termhooks.h dependency.
29230 (SOME_MACHINE_LISP): Add dnd.elc.
29231 (minibuf.o): Fix typo.
29232 Update dependencies.
29233
29234 * data.c (do_symval_forwarding, store_symval_forwarding)
29235 (find_symbol_value): Use the selected frame's keyboard, not
29236 current_kboard.
29237
29238 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29239 Vwindow_system.
29240
29241 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29242 Fmenu_bar_open.
29243 (syms_of_xmenu): Update defsubr.
29244 (mouse_position_for_popup, Fx_popup_menu)
29245 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29246 (set_frame_menubar, free_frame_menubar)
29247 (create_and_show_popup_menu, xmenu_show)
29248 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29249 an X frame.
29250
29251 * xselect.c (x_own_selection): Abort if not an X frame.
29252 (some_frame_on_display): Check if it is an X frame.
29253 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29254
29255 * coding.c: Include frame.h and termhooks.h.
29256 (terminal_coding, keyboard_coding): Delete.
29257 (Fset_terminal_coding_system_internal)
29258 (Fset_keyboard_coding_system_internal)
29259 (Fkeyboard_coding_system)
29260 (Fterminal_coding_system): Add a terminal parameter.
29261 Get terminal_coding from the terminal.
29262 (init_coding_once): Don't call setup_coding_system here.
29263
29264 * dispextern.h (set_scroll_region, turn_off_insert)
29265 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29266 (tty_clear_end_of_line, tty_setup_colors)
29267 (delete_tty, updating_frame)
29268 (produce_special_glyphs, produce_glyphs, write_glyphs)
29269 (insert_glyphs): Remove.
29270 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29271 (tty_turn_off_highlight, get_tty_size): Add declaration.
29272 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29273
29274 * frame.h (enum output_method): Add output_initial.
29275 (struct x_output): Delete.
29276 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29277 Access foreground_pixel and background_pixel directly from the frame.
29278 (tty_display): Delete.
29279 (struct frame): Add buried_buffer_list, foreground_pixel,
29280 background_pixel and terminal. Delete kboard.
29281 (union output_data): Add tty.
29282 (FRAME_KBOARD): Get the kboard from the terminal.
29283 (FRAME_INITIAL_P): New macro.
29284 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29285 (Qterm_environment_variable, Qdisplay_environment_variable)
29286 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29287 New declarations.
29288
29289 * termchar.h (tty_output, tty_display_info): New structures.
29290 (tty_list): Declare.
29291 (FRAME_TTY, CURTTY): New macros.
29292 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29293 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29294 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29295 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29296
29297 * callproc.c: Include frame.h and termhooks.h, for terminal
29298 parameters.
29299 (add_env): New function.
29300 (child_setup): Use it.
29301 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29302 (getenv_internal): Fix get_terminal_param call.
29303 (Fgetenv_internal, egetenv): Update doc.
29304 (syms_of_callproc): Initialize Vprocess_environment to nil.
29305 Register and initialize them. Remove obsolete defvars. Update doc
29306 strings.
29307 (child_setup): Handle Vlocal_environment_variables.
29308 (getenv_internal): Add terminal parameter.
29309 Handle Vlocal_environment_variables.
29310 (Fgetenv_internal): Add terminal parameter.
29311 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29312 environment in a frame (not terminal) parameter. Update doc strings.
29313 (set_initial_environment): Rename from set_global_environment.
29314 Store Emacs environment in initial frame parameter.
29315
29316 * xdisp.c (redisplay_internal): Update references to
29317 `previous_terminal_frame'.
29318 (display_mode_line, Fformat_mode_line): Replace calls to
29319 `push_frame_kboard' with `push_kboard'.
29320 (get_glyph_string_clip_rects): Add extra parentheses and
29321 braces to prevent compiler warnings.
29322 (calc_pixel_width_or_height): Add xassert to check that the
29323 frame is alive. Don't call `lookup_image' on a termcap frame.
29324 (message2_nolog, message3_nolog, redisplay_internal)
29325 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29326 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29327 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29328 (Fx_display_pixel_width, Fx_display_pixel_height)
29329 (Fx_display_planes, Fx_display_color_cells)
29330 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29331 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29332 (Fx_display_backing_store, Fx_display_visual_class)
29333 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29334 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29335
29336 * xfns.c (x_set_foreground_color x_set_background_color)
29337 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29338 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29339 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29340 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29341 terminal that is being deleted.
29342 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29343 frame parameter, and make sure it overrides any user-supplied setting.
29344 (Fx_close_connection, Fx_synchronize): Unify argument names with
29345 the rest of the DEFUNs.
29346
29347 * dispnew.c (Fsend_string_to_terminal): Update call to
29348 `get_tty_terminal'.
29349 (Fredraw_frame, Fsend_string_to_terminal)
29350 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29351 FRAME_TERMCAP_P and FRAME_TTY.
29352 (window_change_signal): Don't believe width/height values that are
29353 impossibly small.
29354 (Vinitial_window_system): Rename from Vwindow_system.
29355 (termscript, Wcm, rif): Delete.
29356
29357 * termhooks.h (struct terminal): New struct containing the
29358 previously global text display hooks and new members NAME,
29359 DELETED and PARAM_ALIST.
29360 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29361 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29362 (FRAME_RIF): New macros.
29363 (get_terminal_param, get_device): New declarations.
29364 (termscript): Delete declaration.
29365
29366 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29367 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29368 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29369 FRAME_FOREGROUND_PIXEL.
29370 (x_fully_uncatch_errors): Disable definition.
29371 (x_scroll_bar_expose): Fix reference to foreground pixel.
29372 (XTread_socket): Disable loop on all X displays.
29373 (x_delete_terminal): Don't set terminal->deleted and let
29374 delete_terminal delete the frames on the terminal.
29375 (x_delete_display): Doc update to reflect changes in
29376 delete_terminal.
29377 (x_display_info) <terminal>: Move member earlier in the struct.
29378 (deleting_tty): Remove old variable.
29379 (Fsuspend_tty): Call clear_tty_hooks.
29380 (Fresume_tty, init_tty): Call set_tty_hooks.
29381 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29382 errors on X frames.
29383 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29384 (handle_one_xevent): Initialize `f' to NULL.
29385 (x_delete_terminal, x_create_terminal): New functions.
29386 (XTset_terminal_modes, XTreset_terminal_modes)
29387 (XTread_socket, x_connection_closed, x_term_init)
29388 (x_term_init, x_delete_display): Add terminal parameter.
29389 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29390 X connections.
29391
29392 * frame.c: Include termchar.h.
29393 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29394 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29395 (Qdisplay_environment_variable): New vars.
29396 (Fframep): Deal with output_initial.
29397 (Fframe-live-p): Doc fix.
29398 (Fwindow-system): New function.
29399 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29400 (make_terminal_frame): Don't create frames on a terminal that is
29401 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29402 (store_frame_param): Check for found_for_frame before calling XFRAME.
29403 (Fmake_terminal_frame): Handle NULL tty names correctly.
29404 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29405 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29406 frames to refer to a deleted frame in their 'environment parameter.
29407 (Fframe_with_environment): New function.
29408 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29409 (get_future_frame_param): New function.
29410 (Fmake_terminal_frame): Use it.
29411 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29412
29413 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29414 * sysdep.c (reset_sys_modes): Update for renames.
29415
29416 * keyboard.c (tty_read_avail_input): New function.
29417 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29418 (syms_of_keyboard): Defsubr them.
29419 (Fset_input_meta_mode, Fset_quit_char): New functions.
29420 (Fset_input_mode): Split to above functions.
29421 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29422 parameter. Use it in call to `read_char'.
29423 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29424 Set wrong_kboard_jmpbuf correctly in recursive calls.
29425 Use current_kboard to access Vkeyboard_translate_table.
29426 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29427 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29428 Update longjmp invocations. Remember the original current_kboard,
29429 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29430 changes it. Comment out unnecessary calls to
29431 `record_single_kboard_state' and `any_kboard_state'.
29432 Update recursive calls.
29433 (wrong_kboard_jmpbuf): Remove global variable.
29434 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29435 Handle deleted interrupted_kboards correctly; that is a legal
29436 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29437 and read_char calls. Abort if interrupted_kboard died in read_char.
29438 (any_kboard_state, single_kboard_state)
29439 (push_frame_kboard): Remove function.
29440 (pop_kboard): Switch out of single_kboard mode if the kboard has
29441 been deleted. Remove unused variable. Help debugging by not
29442 changing current_kboard unnecessarily. Set current_kboard to the
29443 kboard of the selected frame when the stored kboard object has
29444 been deleted before pop_kboard.
29445 (temporarily_switch_to_single_kboard): Change first parameter to a
29446 frame pointer. Throw an error when caller wants to change kboards
29447 while in single_kboard mode. Don't push_kboard if we weren't in
29448 single kboard state. Don't pop_kboard if we popped into any
29449 kboard state.
29450 (restore_kboard_configuration): Abort if pop_kboard changed the
29451 kboard in single_kboard mode. Call pop_kboard only after setting
29452 up single_kboard mode.
29453 (Frecursive_edit): Switch to single_kboard mode only in nested
29454 command loops.
29455 (cmd_error, command_loop, command_loop_1, timer_check):
29456 Comment out unnecessary call to `any_kboard_state' and
29457 `record_single_kboard_state'.
29458 (delete_kboard): Exit single_kboard mode if we have just deleted
29459 that kboard. Use FRAME_KBOARD.
29460 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29461 `fatal_error_signal'.
29462 (record_single_kboard_state): Don't push_kboard if we weren't in
29463 single kboard state. Don't pop_kboard if we popped into any
29464 kboard state.
29465 (push_frame_kboard): Rename to push_kboard.
29466 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29467 (read_avail_input): Read input from all terminals.
29468 (mark_kboards): Also mark Vkeyboard_translate_table.
29469 (kbd_buffer_store_event_hold): Simplify condition.
29470 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29471 (Vkeyboard_translate_table): Move to struct kboard.
29472 (init_kboard): Initialize Vkeyboard_translate_table.
29473 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29474 Vkeyboard_translate_table. Update doc strings. Update docs of
29475 local-function-key-map and function-key-map.
29476
29477 * terminal.c: New file.
29478
29479 * term.c: Include errno.h.
29480 (Vring_bell_function, device_list, initial_device)
29481 (next_device_id, ring_bell, update_begin, update_end)
29482 (set_terminal_window, cursor_to, raw_cursor_to)
29483 (clear_to_end, clear_frame, clear_end_of_line)
29484 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29485 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29486 (syms_of_term): Move their initialization to terminal.c.
29487 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29488 (Ftty_display_color_cells)
29489 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29490 (clear_tty_hooks, set_tty_hooks)
29491 (init_tty, maybe_fatal): New functions.
29492 (Ftty_type): Return nil if terminal is not on a tty instead of
29493 throwing an error. Doc update.
29494 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29495 Doc update. Initialize new subrs and variables.
29496 (delete_tty): Use terminal->deleted.
29497 (tty_set_terminal_modes): Rename from set_terminal_modes.
29498 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29499 (set_scroll_region): Rename to `tty_set_scroll_region'.
29500 (turn_on_insert): Rename to `tty_turn_on_insert'.
29501 (turn_off_insert): Rename to `tty_turn_off_insert'.
29502 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29503 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29504 (toggle_highligh): Rename to `tty_toggle_highlight'.
29505 (background_highlight): Rename to `tty_background_highlight'.
29506 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29507 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29508 (tty_set_scroll_region, tty_background_highlight)
29509 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29510 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29511 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29512 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29513 Add static modifier.
29514 (tty_reset_terminal_modes, tty_set_terminal_window)
29515 (tty_set_scroll_region, tty_background_highlight)
29516 (tty_highlight_if_desired, tty_cursor_to)
29517 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29518 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29519 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29520 renames.
29521
29522 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29523
29524 * keyboard.c: Qrtl is new.
29525 (parse_tool_bar_item): Handle :rtl keyword.
29526 (syms_of_keyboard): Intern :rtl keyword.
29527
29528 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29529
29530 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29531 so no Lisp code is executed.
29532 (file_for_image, find_rtl_image): New functions.
29533 (xg_get_image_for_pixmap): Use file_for_image.
29534 (update_frame_tool_bar): If direction is RTL, use RTL image if
29535 defined. Use Gtk stock images if defined.
29536
29537 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29538
29539 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29540 for nonexistent or zero-width glyph in composition glyph.
29541
29542 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29543
29544 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29545
29546 * xdisp.c (Finvisible_p): New function.
29547 (syms_of_xdisp): defsubr it.
29548
29549 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
29550
29551 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29552 Doc fixes.
29553
29554 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29555
29556 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29557
29558 2007-08-24 Martin Rudalics <rudalics@gmx.at>
29559
29560 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29561 whether decoding has modified buffer contents.
29562
29563 2007-08-24 Jason Rumney <jasonr@gnu.org>
29564
29565 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29566 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29567 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29568 (init_svg_functions) [HAVE_NTGUI]: New function.
29569 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29570 (svg_load_image): Use them.
29571 (svg_load_image) [HAVE_NTGUI]: Implement background.
29572
29573 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29574
29575 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29576 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29577 (LIBX): Remove @RSVG_LIBS@.
29578 (LIBES): Add $(RSVG_LIBS).
29579
29580 * image.c (svg_load_image): Blend with specified background if exists.
29581 Use IMAGE_BACKGROUND. Add Mac OS Support.
29582
29583 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29584 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29585 Remove macros.
29586 [MAC_OSX] (socket_callback): Do nothing.
29587 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29588 ReceiveNextEvent.
29589 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29590 socket_callback.
29591 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29592
29593 2007-08-22 Glenn Morris <rgm@gnu.org>
29594
29595 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29596
29597 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29598
29599 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29600
29601 * image.c: Add support for SVG images. Some additional comments
29602 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29603 (svg_image_p): New function to test for SVG image.
29604 (svg_load): New function to load SVG image.
29605 (svg_load_image): New function, helper for svg_load.
29606 (Qsvg): New Lisp_object.
29607 (svg_keyword_index): New enum.
29608 (svg_format): New static `image_keyword' struct.
29609 (svg_type): New static `image_type' struct.
29610 (librsvg/rsvg.h): Include it.
29611
29612 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29613
29614 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29615
29616 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29617
29618 * lread.c (Qold_style_backquotes): New var.
29619 (syms_of_lread): Init and staticpro it.
29620 (load_warn_old_style_backquotes): New fun.
29621 (Fload): Use them to warn about old style backquotes.
29622 (end_of_file_error, Fload): Remove unused vars.
29623
29624 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29625
29626 * lread.c (Vold_style_backquotes): New var.
29627 (syms_of_lread): Init and export it to Elisp.
29628 (read1): Set it when we find an old-style (back)quote.
29629
29630 2007-08-22 Jason Rumney <jasonr@gnu.org>
29631
29632 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29633
29634 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29635
29636 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29637
29638 2007-08-19 Richard Stallman <rms@gnu.org>
29639
29640 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29641
29642 2007-08-19 Andreas Schwab <schwab@suse.de>
29643
29644 * alloc.c (pure): Round PURESIZE up.
29645
29646 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29647
29648 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29649 active frame.
29650
29651 2007-08-16 Richard Stallman <rms@gnu.org>
29652
29653 * eval.c (Fcommandp): Add parens to clarify.
29654
29655 * minibuf.c (Fall_completions): Use enum for type of table.
29656
29657 * emacs.c (USAGE2): Improve text.
29658
29659 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29660
29661 * term.c (tty_default_color_capabilities): Declare static
29662 variables in file scope, to avoid HPUX compiler problem.
29663
29664 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29665
29666 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29667 to gtk_toolbar_insert.
29668
29669 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29670
29671 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29672
29673 * insdel.c (reset_var_on_error): New fun.
29674 (signal_before_change, signal_after_change):
29675 Use it to reset (after|before)-change-functions to nil in case of error.
29676 Bind inhibit-modification-hooks to t.
29677 Don't bind (after|before)-change-functions to nil while they run.
29678
29679 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29680
29681 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29682 filling pixmap with stippled background.
29683
29684 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29685
29686 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29687 Don't use invisible frame as parent window for repositioning.
29688
29689 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29690
29691 * print.c (new_backquote_output): Rename from old_backquote_output.
29692 (print): Inverse its logic (according to its name) so as to match the
29693 behavior of new_backquote_flag in lread.c.
29694
29695 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29696
29697 * gmalloc.c (posix_memalign): New function.
29698
29699 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29700 ActivateControl/DeactivateControl here.
29701 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29702 frame-notice-user-settings is non-nil.
29703 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29704 for kEventParamFMFontStyle.
29705 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29706 mac_pass_command_to_system and mac_pass_control_to_system here.
29707 (XTread_socket): Call ActivateControl/DeactivateControl here.
29708 (XTread_socket) [TARGET_API_MAC_CARBON]:
29709 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29710 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29711 for window repositioning.
29712
29713 2007-08-08 Glenn Morris <rgm@gnu.org>
29714
29715 * Replace `iff' in doc-strings and comments.
29716
29717 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
29718
29719 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29720
29721 2007-08-07 Martin Rudalics <rudalics@gmx.at>
29722
29723 * fileio.c (Finsert_file_contents): Run format-decode and
29724 after_insert_file_functions on entire buffer when REPLACE is
29725 non-nil and inhibit modification_hooks and point_motion_hooks.
29726 For consistency, run after_insert_file_functions iff something
29727 got inserted. Move signal_after_change and update_compositions
29728 after code running after_insert_file_functions. Make sure that
29729 undo_list doesn't record intermediate steps of the decoding process.
29730
29731 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29732
29733 * emacs.c (main)
29734 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29735 Call malloc_enable_thread on interactive startup.
29736
29737 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29738 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29739 [USE_PTHREAD]: Conditionalize with it.
29740 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29741 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29742 New functions.
29743
29744 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
29745
29746 * xdisp.c (redisplay_window): When restoring original buffer
29747 position, make sure it is still valid.
29748
29749 * image.c (png_load): Ignore png-supplied background color.
29750
29751 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29752
29753 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29754 Use kCFAbsoluteTimeIntervalSince1970.
29755
29756 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29757 New variable.
29758 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29759 event loop should be quit.
29760 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29761 Quit dialog event loop if quit_dialog_event_loop is set.
29762
29763 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29764 (Selection): New typedef. Use instead of ScrapRef.
29765 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29766 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29767 (mac_clear_selection): Rename from clear_scrap.
29768 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29769 scrap_has_target_type. All uses changed.
29770 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29771 (mac_selection_has_target_p): New functions.
29772 (mac_put_selection_value): Rename from put_scrap_string.
29773 (mac_get_selection_value): Rename from get_scrap_string.
29774 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29775 (put_scrap_private_timestamp, scrap_has_target_type)
29776 (get_scrap_private_timestamp): Remove functions.
29777 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29778 (x_own_selection, x_get_local_selection):
29779 Use mac_valid_selection_value_p.
29780 (x_own_selection): Don't use put_scrap_private_timestamp.
29781 Record OWNERSHIP-INFO into Vselection_alist instead.
29782 (x_get_local_selection): Don't check type if request is local.
29783 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29784 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29785
29786 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29787
29788 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29789 add comment explaining why.
29790
29791 2007-08-03 Richard Stallman <rms@gnu.org>
29792
29793 * fileio.c (Fvisited_file_modtime): Use make_time.
29794
29795 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29796
29797 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29798 build.
29799
29800 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29801
29802 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29803
29804 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29805
29806 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29807
29808 2007-07-30 Richard Stallman <rms@gnu.org>
29809
29810 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29811
29812 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29813
29814 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29815
29816 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
29817
29818 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29819 remote default-directory.
29820
29821 * buffer.c (mode-line-format): Update doc string.
29822
29823 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29824
29825 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29826 scroll bar gap.
29827 (x_scroll_bar_create): Set bar->fringe_extended_p.
29828 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29829 on frame edge. Check fringe background extension. Don't clear
29830 extended fringe background area.
29831
29832 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29833 (w32_fill_area): Enclose multiple statements with do ... while (0).
29834
29835 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29836 Extend fringe background to scroll bar gap.
29837 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29838 Set bar->fringe_extended_p.
29839 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29840 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29841 background extension. Don't clear extended fringe background area.
29842
29843 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29844 New member fringe_extended_p.
29845
29846 2007-07-25 Glenn Morris <rgm@gnu.org>
29847
29848 * Relicense all FSF files to GPLv3 or later.
29849
29850 * COPYING: Switch to GPLv3.
29851
29852 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29853
29854 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29855
29856 * data.c (Finteractive_form): Check for the presence of an
29857 `interactive-form' symbol property more thoroughly.
29858
29859 * data.c (Finteractive_form): Use an `interactive-form' property if
29860 present, analogous to the function-documentation property.
29861
29862 2007-07-24 Jason Rumney <jasonr@gnu.org>
29863
29864 * w32fns.c (x_real_positions): Get real position from OS instead of
29865 calculating it.
29866
29867 2007-07-23 Jason Rumney <jasonr@gnu.org>
29868
29869 * filelock.c (current_lock_owner): Allow for @ sign in username.
29870
29871 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
29872
29873 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29874 remote default-directory.
29875
29876 * buffer.c (mode-line-format): Describe above case in doc string.
29877
29878 2007-07-20 Eli Zaretskii <eliz@gnu.org>
29879
29880 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29881 Define if not defined.
29882
29883 2007-07-18 Jason Rumney <jasonr@gnu.org>
29884
29885 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29886
29887 2007-07-18 Richard Stallman <rms@gnu.org>
29888
29889 * data.c (Fsetq_default): Doc fix.
29890
29891 * eval.c (Fsetq): Doc fix.
29892
29893 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
29894
29895 * coding.c (Ffind_operation_coding_system):
29896 * eval.c (For, Fand): Doc fixes.
29897 Reported by Johan Bockgård.
29898
29899 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29900
29901 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29902
29903 * xterm.h: Declare x_ewmh_activate_frame.
29904
29905 * xterm.c (x_ewmh_activate_frame): New function.
29906 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29907
29908 2007-07-17 Martin Rudalics <rudalics@gmx.at>
29909
29910 * window.c (Fdisplay_buffer): If largest or LRU window is the
29911 only window, split it even if it is not eligible for splitting.
29912 This restores the original behavior broken by the 2007-07-15
29913 change.
29914
29915 2007-07-17 Glenn Morris <rgm@gnu.org>
29916
29917 * abbrev.c (abbrev_check_chars): New function.
29918 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29919 Call abbrev_check_chars to check abbrev characters are word
29920 constituents. Doc fix.
29921
29922 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29923
29924 * process.c (Fstart_process, Fmake_network_process)
29925 (read_process_output): Fix up last changes.
29926
29927 2007-07-16 Eli Zaretskii <eliz@gnu.org>
29928
29929 * makefile.w32-in (clean): Don't delete *~.
29930
29931 2007-07-16 Andreas Schwab <schwab@suse.de>
29932
29933 * window.c (Fdisplay_buffer): Use NILP.
29934 (Fset_window_scroll_bars): Likewise.
29935
29936 2007-07-15 Martin Rudalics <rudalics@gmx.at>
29937
29938 * window.c (window_min_size_2): New function.
29939 (window_min_size_1, size_window, Fdisplay_buffer)
29940 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29941 windows without mode- or header-lines when window-min-height is
29942 too small.
29943 (size_window): Reset nodelete_p after testing it, following an
29944 earlier note by Kim F. Storm.
29945 (display_buffer): Do not set split_height_threshold to twice the
29946 value of window_min_height to avoid changing the value of a
29947 customizable variable. Rather explicitly check whether the
29948 height of the window that shall be splitted is at least as large
29949 as split_height_threshold.
29950 (Fwindow_full_width_p): New defun.
29951 (syms_of_window): Defsubr it.
29952
29953 * window.h: Add EXFUN for Fwindow_full_width_p.
29954
29955 2007-07-14 Jason Rumney <jasonr@gnu.org>
29956
29957 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29958
29959 2007-07-14 Richard Stallman <rms@gnu.org>
29960
29961 * eval.c (maybe_call_debugger): New function.
29962 (find_handler_clause): Use maybe_call_debugger.
29963 Call it when the handler says `debug'.
29964 Eliminate DEBUGGER_VALUE_PTR.
29965 (Fsignal): Eliminate debugger_value.
29966 (Qdebug): New variable.
29967 (syms_of_eval): Initialize it.
29968
29969 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
29970
29971 * eval.c (Fprogn):
29972 * keyboard.c (Ftrack_mouse):
29973 * print.c (Fwith_output_to_temp_buffer):
29974 * window.c (Fsave_window_excursion): Doc fix.
29975
29976 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29977
29978 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29979
29980 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29981
29982 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29983 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29984 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29985 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29986 Remove unused encoding_carryover.
29987 * process.c: Adjust all functions accordingly.
29988
29989 2007-07-12 Richard Stallman <rms@gnu.org>
29990
29991 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29992
29993 2007-07-11 Jason Rumney <jasonr@gnu.org>
29994
29995 * makefile.w32-in (LIBS): Include OLE32.
29996
29997 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29998 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29999
30000 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
30001
30002 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
30003 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
30004 from a Lisp_Object into a bare pointer.
30005 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
30006 Adjust the code correspondingly.
30007
30008 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
30009
30010 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
30011 (term_show_mouse_face): Remove unused var `j'.
30012 (handle_one_term_event): Remove unused vars `i' and `j'.
30013 Don't cast return value of ttyname since it's not necessary.
30014
30015 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
30016
30017 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
30018 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
30019
30020 * fns.c (map_char_table): Use an array of int for `indices' rather than
30021 an array of Lisp_Objects (which are only ever integers anyway).
30022 (Fmap_char_table): Update caller.
30023 * lisp.h: Update prototype.
30024 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
30025 * fontset.c (Ffontset_info):
30026 * casetab.c (set_case_table): Update callers.
30027
30028 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
30029
30030 * keymap.c (struct accessible_keymaps_data)
30031 (struct where_is_internal_data): New structures.
30032 (accessible_keymaps_1, where_is_internal_1): Use them to change
30033 interface to adhere to the one used by map_keymap.
30034 (Faccessible_keymaps, where_is_internal): Use map_keymap.
30035 (accessible_keymaps_char_table, where_is_internal_2): Remove.
30036
30037 * keymap.h (map_keymap_function_t): More informative prototype.
30038
30039 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
30040
30041 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
30042 (looking_at_1): Don't change search_regs and last_thing_searched
30043 if `inhibit-changing-match-data' is non-nil.
30044 (string_match_1, search_buffer, set_search_regs): Likewise.
30045 (syms_of_search): Add Lisp level definition for
30046 `inhibit-changing-match-data' and set it to nil.
30047 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
30048 start and end of the match, instead of using values in search_regs.
30049
30050 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
30051
30052 * minibuf.c (Fcompleting_read): New value `confirm-only'
30053 for `require-match'.
30054
30055 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
30056
30057 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
30058 part of the 2007-06-27 change to syms_of_fileio.
30059
30060 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30061
30062 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
30063 Check WINDOWP before using XWINDOW. Consolidate return statements.
30064
30065 2007-06-27 Richard Stallman <rms@gnu.org>
30066
30067 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
30068
30069 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
30070
30071 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
30072
30073 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30074
30075 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
30076 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
30077 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
30078 (_free_internal, memalign): Use them.
30079 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
30080 Initialize to PTHREAD_MUTEX_INITIALIZER.
30081 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
30082 (morecore_nolock): Rename from morecore. All uses changed.
30083 Use only nolock versions of internal allocation functions.
30084 (_malloc_internal_nolock, _realloc_internal_nolock)
30085 (_free_internal_nolock): New functions created from
30086 _malloc_internal, _realloc_internal, and _free_internal.
30087 (_malloc_internal, _realloc_internal, _free_internal): Use them.
30088 Copy hook value to automatic variable before its use.
30089 (memalign): Copy hook value to automatic variable before its use.
30090
30091 2007-06-26 Kenichi Handa <handa@m17n.org>
30092
30093 * coding.c (Ffind_operation_coding_system): Docstring improved.
30094 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30095
30096 2007-06-25 David Kastrup <dak@gnu.org>
30097
30098 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30099 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30100 cater for additional parameter.
30101
30102 * keymap.h: Adjust number of parameters to `current-active-maps'.
30103
30104 * doc.c (Fsubstitute_command_keys): Adjust call of
30105 `current-active-maps'.
30106
30107 2007-06-25 David Kastrup <dak@gnu.org>
30108
30109 * callint.c (Fcall_interactively): Make the parsing of interactive
30110 specs somewhat more readable.
30111
30112 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30113
30114 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30115 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30116 if extended background has already been filled.
30117
30118 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30119
30120 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30121 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30122
30123 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30124 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30125 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30126 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30127 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30128 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30129 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30130 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30131 Run timers during dialog popup.
30132 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30133
30134 2007-06-21 Jason Rumney <jasonr@gnu.org>
30135
30136 * image.c (convert_mono_to_color_image): Swap fore and background.
30137
30138 2007-06-20 Jason Rumney <jasonr@gnu.org>
30139
30140 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30141 (w32_free_bdf_font): Unmap memory not handle.
30142
30143 2007-06-20 Sam Steingold <sds@gnu.org>
30144
30145 * gmalloc.c (__morecore): Fix the declaration to comply with the
30146 definition.
30147
30148 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
30149
30150 * w32term.c (w32_delete_display): Remove leftover declaration.
30151 (w32_define_cursor, w32_initialize): Make static.
30152
30153 * w32.c (_wsa_errlist): Fix typo in error message.
30154 (init_environment): Ignore any environment variable from the
30155 registry having a null value.
30156
30157 2007-06-20 Glenn Morris <rgm@gnu.org>
30158
30159 * Makefile.in (LIBGIF): Default to -lgif.
30160
30161 2007-06-17 Jason Rumney <jasonr@gnu.org>
30162
30163 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30164 unicode strings.
30165
30166 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
30167
30168 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30169 Fix typo in docstring.
30170
30171 2007-06-16 Eli Zaretskii <eliz@gnu.org>
30172
30173 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30174 and their keybindings.
30175
30176 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
30177
30178 * composite.c (update_compositions): Fix last fix.
30179
30180 2007-06-14 Jason Rumney <jasonr@gnu.org>
30181
30182 * w32.c (get_process_times_fn): New function pointer.
30183 (globals_of_w32): Intialize it if present in kernel32.dll.
30184 (w32_get_internal_run_time): New function.
30185
30186 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30187
30188 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30189
30190 * composite.c (update_compositions): Check the validness of
30191 compositions.
30192
30193 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30194
30195 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30196 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30197
30198 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30199 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30200
30201 * macgui.h (USE_MAC_TOOLBAR): New define.
30202
30203 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30204 Return immediately unless popup is activated.
30205
30206 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30207 background to scroll bar gap.
30208 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30209 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30210 scroll bars on frame edge. Check fringe background extension.
30211 Don't clear extended fringe background area.
30212 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30213 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30214 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30215 [USE_MAC_TOOLBAR]: New macros.
30216 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30217 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30218 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30219 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30220 [USE_MAC_TOOLBAR]: New functions.
30221 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30222 manually if previous repositioning has failed.
30223 (mac_handle_keyboard_event): Use precomputed event kind.
30224 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30225 as tool bar item click. Handle mouse movement over tool bar items.
30226
30227 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30228 toolbar_win_gravity.
30229 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30230 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30231 Add externs.
30232
30233 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30234 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30235
30236 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
30237
30238 * image.c (search_image_cache): Remove unused variable.
30239
30240 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
30241
30242 * xfns.c, xmenu.c: Link to xaw3d if available.
30243
30244 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30245
30246 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30247 frame_foreground and frame_background.
30248
30249 * image.c (lookup_image): Save frame foreground and background colors.
30250 (search_image_cache): Check if saved and current frame colors match.
30251
30252 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30253
30254 * regex.c (regex_compile): Remove the `regnum' counter.
30255 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30256
30257 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30258
30259 * term.c: Include intervals.h to declare Fget_text_property.
30260
30261 2007-06-10 Jason Rumney <jasonr@gnu.org>
30262
30263 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30264
30265 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
30266
30267 * callint.c (Fcall_interactively):
30268 * editfns.c (Fdelete_and_extract_region):
30269 * fileio.c (Fread_file_name):
30270 * fns.c (Fmapconcat):
30271 * keyboard.c (cmd_error_internal):
30272 * keymap.c (Fkey_description):
30273 * lread.c (openp):
30274 * minibuf.c (read_minibuf):
30275 * search.c (wordify):
30276 * sunfns.c (sel_read):
30277 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30278 * xfns.c (x_default_scroll_bar_color_parameter):
30279 * xmenu.c (menu_help_callback):
30280 * xselect.c (Fx_get_atom_name):
30281 * xterm.c (x_term_init): Use empty_unibyte_string.
30282
30283 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30284
30285 * alloc.c (init_strings): Initialize canonical empty strings.
30286 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30287 canonical empty string when the requested size is 0.
30288
30289 * emacs.c (empty_unibyte_string): Rename from empty_string.
30290 (empty_multibyte_string): New canonical empty string.
30291 (syms_of_emacs): Don't initialize empty_string.
30292
30293 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30294 string, if appropriate.
30295 (empty_unibyte_string, empty_multibyte_string): New externs.
30296 (empty_string): Remove extern.
30297
30298 * lread.c (syms_of_lread): Use empty_unibyte_string.
30299
30300 2007-06-07 Jason Rumney <jasonr@gnu.org>
30301
30302 * s/ms-w32.h: Don't define HAVE_TZNAME.
30303
30304 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30305
30306 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30307
30308 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30309
30310 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30311 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30312
30313 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30314 Don't call next handler.
30315 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30316 Remove argument. Install handler to application.
30317 (set_frame_menubar): Don't change deep_p.
30318 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30319 FRAME_OUTER_TO_INNER_DIFF_Y.
30320 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30321 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30322 [HAVE_DIALOGS]: New macros.
30323 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30324 Use them.
30325 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30326
30327 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30328 init_service_handler. All callers changed. Return OSStatus value.
30329
30330 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30331 All callers changed so as not to call SetPortWindowPort.
30332 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30333 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30334 mac_draw_string_common.
30335 (mac_draw_image_string_qd): Likewise.
30336 (mac_draw_string_common): Use them. Add INLINE.
30337 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30338 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30339 GetGlobalMouse.
30340 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30341 and FRAME_OUTER_TO_INNER_DIFF_Y.
30342 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30343 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30344 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30345 repositioning window to mac_handle_window_event.
30346 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30347 saving window location to mac_handle_window_event
30348 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30349 (install_menu_target_item_handler): Remove argument in extern.
30350 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30351 Also accept command events.
30352 (do_keystroke): New function created from XTread_socket.
30353 (init_command_handler): Remove functions.
30354 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30355 and save window location by kEventWindowShowing and kEventWindowHiding
30356 handlers here. Don't call next handler for window state change and
30357 focus events.
30358 (mac_handle_application_event, mac_handle_keyboard_event)
30359 [TARGET_API_MAC_CARBON]: New functions.
30360 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30361 kEventWindowShowing and kEventWindowHiding events. Move installation
30362 of mouse, font, text input and menu target item handlers to
30363 install_application_handler.
30364 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30365 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30366 New function.
30367 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30368 Register it.
30369 (XTread_socket) [TARGET_API_MAC_CARBON]:
30370 Consolidate SendEventToEventTarget calls.
30371 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30372 Move application activation handler to mac_handle_application_event.
30373 Move keyboard handler to mac_handle_keyboard_event.
30374 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30375 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30376 init_command_handler. Call install_application_handler.
30377
30378 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30379 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30380
30381 2007-06-07 Glenn Morris <rgm@gnu.org>
30382
30383 * emacs.c (main): Use `emacs-copyright' in --version output.
30384
30385 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
30386
30387 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30388
30389 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30390
30391 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30392
30393 * macgui.h: Replace WindowPtr with WindowRef.
30394
30395 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30396 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30397 Replace ControlHandle with ControlRef.
30398 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30399
30400 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30401 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30402 Replace ControlHandle with ControlRef.
30403 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30404 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30405
30406 * macterm.h (struct scroll_bar): Rename member control_handle_low
30407 and control_handle_high to control_ref_low and control_ref_high.
30408 All uses changed.
30409 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30410 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30411 respectively. All uses changed.
30412 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30413 (install_window_handler, remove_window_handler): Replace WindowPtr
30414 with WindowRef in externs.
30415
30416 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
30417
30418 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30419
30420 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
30421
30422 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30423
30424 * frame.c (Fmouse_position, Fmouse_pixel_position):
30425 Condition on HAVE_GPM too.
30426
30427 * term.c (term_mouse_highlight): Remove unused variables.
30428 (Fterm_open_connection): Set gpm_zerobased to 1.
30429 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30430 Use zero based co-ordinates.
30431 (handle_one_term_event): Report a drag as mouse movement too.
30432
30433 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30434
30435 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
30436
30437 * image.c (search_image_cache): New function. Require background
30438 color match if background color is unspecified in the image spec.
30439 (uncache_image, lookup_image): Use it.
30440
30441 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
30442
30443 * window.c (Fshrink_window): Reflow docstring.
30444
30445 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
30446
30447 * Version 22.1 released.
30448
30449 2007-06-01 Richard Stallman <rms@gnu.org>
30450
30451 * xfns.c (x_encode_text): Add GCPRO.
30452
30453 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30454
30455 * xfns.c (x_set_name_internal): Save encoded name before
30456 x_encode_text in case string data is relocated.
30457
30458 2007-05-31 Richard Stallman <rms@gnu.org>
30459
30460 * buffer.c (syms_of_buffer): Doc fix.
30461
30462 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
30463
30464 * sysdep.c (init_sys_modes): Add rather than replace with
30465 O_NONBLOCK.
30466
30467 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30468 term_mouse_moveto.
30469
30470 * termhooks.h (term_mouse_moveto): New extern.
30471
30472 * term.c (mouse_face_window): Rename...
30473 (Qmouse_face_window): ...to this.
30474 (term_show_mouse_face, term_clear_mouse_face)
30475 (term_mouse_highlight): Use Qmouse_face_window.
30476 (term_mouse_moveto): New function.
30477 (term_mouse_position): Make it work.
30478 (syms_of_term): Uncomment assignment to mouse_position_hook.
30479 Staticpro Qmouse_face_window.
30480
30481 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30482
30483 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30484 around current_column call.
30485
30486 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30487
30488 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30489 * xdisp.c (next_element_from_buffer):
30490 * window.c (delete_window):
30491 * term.c (term_mouse_highlight):
30492 * msdos.c (getdefdir):
30493 * macterm.c (mac_create_bitmap_from_bitmap_data)
30494 (init_font_name_table):
30495 * fns.c (Fsxhash):
30496 * data.c (Fmake_local_variable):
30497 * ccl.c (ccl_driver): Likewise.
30498
30499 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30500
30501 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30502 Call mac_wakeup_from_rne on window size change.
30503
30504 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
30505
30506 * image.c (uncache_image): Fix typo.
30507
30508 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30509
30510 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30511
30512 2007-05-22 Richard Stallman <rms@gnu.org>
30513
30514 * xterm.c (x_connection_closed): Remove NO_RETURN.
30515
30516 2007-05-22 Martin Rudalics <rudalics@gmx.at>
30517
30518 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30519
30520 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
30521
30522 * image.c (uncache_image): New function.
30523 (Fimage_refresh): New function.
30524
30525 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30526
30527 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30528
30529 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30530
30531 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30532 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30533
30534 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30535
30536 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30537 conditional on [HAVE_GPM_H].
30538
30539 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30540
30541 * syntax.c (skip_chars): Update syntax-table only after we checked that
30542 the new location is valid.
30543
30544 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30545
30546 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30547 mac_get_window_bounds.
30548
30549 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30550
30551 * Makefile.in (LIBGPM): Allow it to be set from configure.
30552 If set then link Emacs with it.
30553
30554 * config.in: Regenerate.
30555
30556 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30557 New externs.
30558
30559 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30560 Include gpm.h.
30561 (handle_one_term_event, term_gpm): New externs.
30562
30563 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30564 and allow it to be interrupted by SIGIO.
30565
30566 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30567 (wait_reading_process_output): Wait on gpm_fd too.
30568 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30569 (add_gpm_wait_descriptor_called_flag): New variable.
30570 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30571
30572 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30573 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30574 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30575 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30576 (make_lispy_event): Add case GPM_CLICK_EVENT.
30577 (read_avail_input): Handle mouse input.
30578
30579 * term.c (write_glyphs_with_face): New function.
30580 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30581 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30582 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30583 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30584 (last_mouse_x, last_mouse_y): New variables.
30585 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30586 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30587 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30588 (Fterm_close_connection): New functions.
30589 (term_init): Initialise mouse_face_window.
30590
30591 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
30592
30593 * xdisp.c (redisplay_window): If first window line is a
30594 continuation line, recompute the new window start instead of
30595 recentering.
30596
30597 2007-05-18 Glenn Morris <rgm@gnu.org>
30598
30599 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30600 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30601
30602 2007-05-17 Glenn Morris <rgm@gnu.org>
30603
30604 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30605
30606 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30607
30608 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30609 dead key repeat and up events.
30610
30611 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
30612
30613 * image.c (pbm_load): Check image size for monochrome pbm.
30614
30615 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
30616
30617 * xterm.c (XTread_socket): Revert last change.
30618
30619 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
30620
30621 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30622
30623 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30624
30625 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30626
30627 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30628 mixup (YAILOM).
30629
30630 2007-05-07 Andreas Schwab <schwab@suse.de>
30631
30632 * keymap.c (Flookup_key): Fix typo in last change.
30633
30634 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30635
30636 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30637 mapping for unibyte strings.
30638
30639 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30640
30641 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30642 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30643
30644 2007-04-29 Richard Stallman <rms@gnu.org>
30645
30646 * insdel.c (replace_range): For undo, record insertion first.
30647
30648 2007-04-29 Andreas Schwab <schwab@suse.de>
30649
30650 * lisp.h (VECSIZE): Use OFFSETOF.
30651
30652 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30653
30654 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30655 disabled lines.
30656
30657 2007-04-28 Richard Stallman <rms@gnu.org>
30658
30659 * lread.c (read_escape): In a string, \s is always space.
30660
30661 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30662
30663 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30664
30665 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30666 submenu for menu bar items.
30667
30668 See ChangeLog.10 for earlier changes.
30669
30670 ;; Local Variables:
30671 ;; coding: utf-8
30672 ;; End:
30673
30674 Copyright (C) 2007-2011 Free Software Foundation, Inc.
30675
30676 This file is part of GNU Emacs.
30677
30678 GNU Emacs is free software: you can redistribute it and/or modify
30679 it under the terms of the GNU General Public License as published by
30680 the Free Software Foundation, either version 3 of the License, or
30681 (at your option) any later version.
30682
30683 GNU Emacs is distributed in the hope that it will be useful,
30684 but WITHOUT ANY WARRANTY; without even the implied warranty of
30685 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30686 GNU General Public License for more details.
30687
30688 You should have received a copy of the GNU General Public License
30689 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.